[prev in list] [next in list] [prev in thread] [next in thread]
List: uddi4j-general
Subject: [Uddi4j-general] UDDI Connection failed
From: "Ranga Pasumarti" <rpasumar () siemens-emis ! com>
Date: 2004-08-12 19:29:58
Message-ID: 002b01c480a2$c32362f0$3d1b86a1 () ww003 ! Siemens ! net
[Download RAW message or body]
Could you pls help?
Here is my program, but I am getting errors. See below the errors:
UDDIProxy proxy = new UDDIProxy();
System.setProperty("org.uddi4j.TransportClassName","org.uddi4j.transport
.ApacheAxisTransport");
System.setProperty("org.uddi4j.logEnabled","true");
System.setProperty("java.protocol.handler.pkgs","com.sun.net.ssl.interna
l.www.protocol");
java.security.Security.addProvider(new
com.sun.net.ssl.internal.ssl.Provider());
//http://www-3.ibm.com/services/uddi/testregistry/inquiryapi");
proxy.setInquiryURL("http://www-3.ibm.com/services/uddi/testregistry/inq
uiryapi ");
proxy.setPublishURL("https://www-3.ibm.com/services/uddi/testregistry/in
quiryapi ");
System.out.println("\n Get authtoken");
AuthToken token = proxy.get_authToken("pm_gupta@yahoo.com","pasumarti");
System.out.println(" Returned authToken:" + token.getAuthInfoString());
Vector names = new Vector();
names.add(new Name("TestBpi"));
// Finds one more business .
// And setting the maximum rows to be returned as 5.
String toKey = "";
BusinessList businessList = proxy.find_business(names, null, null,
null,null,null,5);
Vector businessInfoVector businessList.getBusinessInfos().getBusinessInfoVector();
if( businessInfoVector.size() > 0 )
{
BusinessInfo bi = (BusinessInfo)businessInfoVector.elementAt(0);
toKey = bi.getBusinessKey();
}
-----------------Error------------------
*********** Running PublisherAssertionExample ***********
Get authtoken
TransportFactory: Using transport
name:org.uddi4j.transport.ApacheAxisTransport
Request message:
<get_authToken cred="pasumarti" generic="2.0"
userID="pm_gupta@yahoo.com" xmlns="urn:uddi-org:api_v2"/>
Response message:
<ns1:Fault xmlns:ns1="http://schemas.xmlsoap.org/soap/envelope/">
<faultcode>soapenv:Server.userException</faultcode>
<faultstring>java.net.ConnectException: Connection refused:
connect</faultstring>
<detail>
<ns1:stackTrace
xmlns:ns1="http://xml.apache.org/axis/">java.net.ConnectException:
Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
at java.net.Socket.connect(Socket.java:434)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.connect(DashoA6275)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.<init>(DashoA6275)
at
com.sun.net.ssl.internal.ssl.SSLSocketFactoryImpl.createSocket(DashoA627
5)
at
org.apache.axis.components.net.JSSESocketFactory.create(JSSESocketFactor
y.java:130)
at
org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:157)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:114)
at
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.j
ava:71)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:150)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:120)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:180)
at org.apache.axis.client.Call.invokeEngine(Call.java:2564)
at org.apache.axis.client.Call.invoke(Call.java:2553)
at org.apache.axis.client.Call.invoke(Call.java:1672)
at org.uddi4j.transport.ApacheAxisTransport.send(Unknown Source)
at org.uddi4j.transport.TransportBase.send(Unknown Source)
at org.uddi4j.client.UDDIProxy.send(Unknown Source)
at org.uddi4j.client.UDDIProxy.get_authToken(Unknown Source)
at PublishExample.run(PublishExample.java:81)
at PublishExample.main(PublishExample.java:57)
</ns1:stackTrace>
</detail>
</ns1:Fault>
java.net.ConnectException: Connection refused: connect
at org.uddi4j.UDDIElement.<init>(Unknown Source)
at org.uddi4j.response.AuthToken.<init>(Unknown Source)
at org.uddi4j.client.UDDIProxy.get_authToken(Unknown Source)
at PublishExample.run(PublishExample.java:81)
at PublishExample.main(PublishExample.java:57)
[Attachment #3 (text/html)]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.0.4630.0">
<TITLE>UDDI Connection failed</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->
<P><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">Could you pls help?</FONT><FONT \
FACE="Times New Roman"> </FONT>
<BR><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">Here is my program, but I am getting \
errors. See below the errors:</FONT><FONT FACE="Times New Roman"> </FONT>
<BR><FONT SIZE=2 FACE="Times New Roman">UDDIProxy proxy =<B> </B></FONT><B><FONT \
COLOR="#800080" SIZE=2 FACE="Times New Roman">new</FONT></B><FONT SIZE=2 FACE="Times \
New Roman"> UDDIProxy();</FONT>
<BR><FONT SIZE=2 FACE="Times New Roman">System.setProperty(</FONT><FONT \
COLOR="#0000FF" SIZE=2 FACE="Times New \
Roman">"org.uddi4j.TransportClassName"</FONT><FONT SIZE=2 FACE="Times New \
Roman">,</FONT><FONT COLOR="#0000FF" SIZE=2 FACE="Times New \
Roman">"org.uddi4j.transport.ApacheAxisTransport"</FONT><FONT SIZE=2 \
FACE="Times New Roman">);</FONT>
<BR><FONT SIZE=2 FACE="Times New Roman">System.setProperty(</FONT><FONT \
COLOR="#0000FF" SIZE=2 FACE="Times New \
Roman">"org.uddi4j.logEnabled"</FONT><FONT SIZE=2 FACE="Times New \
Roman">,</FONT><FONT COLOR="#0000FF" SIZE=2 FACE="Times New \
Roman">"true"</FONT><FONT SIZE=2 FACE="Times New Roman">);</FONT>
<BR><FONT SIZE=2 FACE="Times New Roman">System.setProperty(</FONT><FONT \
COLOR="#0000FF" SIZE=2 FACE="Times New \
Roman">"java.protocol.handler.pkgs"</FONT><FONT SIZE=2 FACE="Times New \
Roman">,</FONT><FONT COLOR="#0000FF" SIZE=2 FACE="Times New \
Roman">"com.sun.net.ssl.internal.www.protocol"</FONT><FONT SIZE=2 \
FACE="Times New Roman">);</FONT>
<BR><FONT SIZE=2 FACE="Times New \
Roman">java.security.Security.addProvider(</FONT><B><FONT COLOR="#800080" SIZE=2 \
FACE="Times New Roman">new</FONT></B><FONT SIZE=2 FACE="Times New Roman"> \
com.sun.net.ssl.internal.ssl.Provider());</FONT>
<BR><FONT COLOR="#008080" SIZE=2 FACE="Times New Roman">//<A \
HREF="http://www-3.ibm.com/services/uddi/testregistry/inquiryapi">http://www-3.ibm.com/services/uddi/testregistry/inquiryapi</A>"); \
</FONT>
<BR><FONT SIZE=2 FACE="Times New Roman">proxy.setInquiryURL(</FONT><FONT \
COLOR="#0000FF" SIZE=2 FACE="Times New Roman">"<A \
HREF="http://www-3.ibm.com/services/uddi/testregistry/inquiryapi=20">http://www-3.ibm.com/services/uddi/testregistry/inquiryapi=20</A>"</FONT><FONT \
SIZE=2 FACE="Times New Roman">);</FONT>
<BR><FONT SIZE=2 FACE="Times New Roman">proxy.setPublishURL(</FONT><FONT \
COLOR="#0000FF" SIZE=2 FACE="Times New Roman">"<A \
HREF="https://www-3.ibm.com/services/uddi/testregistry/inquiryapi=20">https://www-3.ibm.com/services/uddi/testregistry/inquiryapi=20</A>"</FONT><FONT \
SIZE=2 FACE="Times New Roman">);</FONT>
<BR><FONT SIZE=2 FACE="Times New Roman">System.out.println(</FONT><FONT \
COLOR="#0000FF" SIZE=2 FACE="Times New Roman">"\n Get \
authtoken"</FONT><FONT SIZE=2 FACE="Times New Roman">);</FONT>
<BR><FONT SIZE=2 FACE="Times New Roman">AuthToken token = \
proxy.get_authToken(</FONT><FONT COLOR="#0000FF" SIZE=2 FACE="Times New \
Roman">"pm_gupta@yahoo.com"</FONT><FONT SIZE=2 FACE="Times New \
Roman">,</FONT><FONT COLOR="#0000FF" SIZE=2 FACE="Times New \
Roman">"pasumarti"</FONT><FONT SIZE=2 FACE="Times New Roman">);</FONT>
<BR><FONT SIZE=2 FACE="Times New Roman">System.out.println(</FONT><FONT \
COLOR="#0000FF" SIZE=2 FACE="Times New Roman">" Returned \
authToken:"</FONT><FONT SIZE=2 FACE="Times New Roman"> + \
token.getAuthInfoString());</FONT>
<BR><FONT SIZE=2 FACE="Times New Roman">Vector names =</FONT><B> <FONT \
COLOR="#800080" SIZE=2 FACE="Times New Roman">new</FONT></B><FONT SIZE=2 FACE="Times \
New Roman"> Vector();</FONT>
<BR><FONT SIZE=2 FACE="Times New Roman">names.add(</FONT><B><FONT COLOR="#800080" \
SIZE=2 FACE="Times New Roman">new</FONT></B><FONT SIZE=2 FACE="Times New Roman"> \
Name(</FONT><FONT COLOR="#0000FF" SIZE=2 FACE="Times New \
Roman">"TestBpi"</FONT><FONT SIZE=2 FACE="Times New Roman">));</FONT>
<BR><FONT COLOR="#008080" SIZE=2 FACE="Times New Roman">// Finds one more business \
.</FONT>
<BR><FONT COLOR="#008080" SIZE=2 FACE="Times New Roman">// And setting the maximum \
rows to be returned as 5.</FONT>
<BR><FONT SIZE=2 FACE="Times New Roman">String toKey = </FONT><FONT COLOR="#0000FF" \
SIZE=2 FACE="Times New Roman">""</FONT><FONT SIZE=2 FACE="Times New \
Roman">;</FONT>
<BR><FONT SIZE=2 FACE="Times New Roman">BusinessList businessList = \
proxy.find_business(names,</FONT><B> <FONT COLOR="#800080" SIZE=2 FACE="Times New \
Roman">null</FONT></B><FONT SIZE=2 FACE="Times New Roman">,</FONT><B> <FONT \
COLOR="#800080" SIZE=2 FACE="Times New Roman">null</FONT></B><FONT SIZE=2 FACE="Times \
New Roman">,</FONT><B> <FONT COLOR="#800080" SIZE=2 FACE="Times New \
Roman">null</FONT></B><FONT SIZE=2 FACE="Times New Roman">,</FONT><B><FONT \
COLOR="#800080" SIZE=2 FACE="Times New Roman">null</FONT></B><FONT SIZE=2 FACE="Times \
New Roman">,</FONT><B><FONT COLOR="#800080" SIZE=2 FACE="Times New \
Roman">null</FONT></B><FONT SIZE=2 FACE="Times New Roman">,5);</FONT>
<BR><FONT SIZE=2 FACE="Times New Roman">Vector businessInfoVector = \
businessList.getBusinessInfos().getBusinessInfoVector();</FONT>
<BR><B><FONT COLOR="#800080" SIZE=2 FACE="Times New Roman">if</FONT></B><FONT SIZE=2 \
FACE="Times New Roman">( businessInfoVector.size() > 0 )</FONT>
<BR><FONT SIZE=2 FACE="Times New Roman">{</FONT>
<BR><FONT SIZE=2 FACE="Times New Roman">BusinessInfo bi = \
(BusinessInfo)businessInfoVector.elementAt(0);</FONT>
<BR><FONT SIZE=2 FACE="Times New Roman">toKey = bi.getBusinessKey();</FONT>
<BR><FONT SIZE=2 FACE="Times New Roman">}</FONT>
<BR><FONT COLOR="#0000FF" SIZE=2 \
FACE="Arial">-----------------Error------------------</FONT><FONT FACE="Times New \
Roman"> </FONT>
<BR><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">*********** Running \
PublisherAssertionExample ***********</FONT>
<BR><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">Get authtoken</FONT>
<BR><FONT COLOR="#FF0000" SIZE=2 FACE="Arial">TransportFactory: Using transport \
name:org.uddi4j.transport.ApacheAxisTransport</FONT>
<BR><FONT COLOR="#FF0000" SIZE=2 FACE="Arial">Request message:</FONT>
<BR><FONT COLOR="#FF0000" SIZE=2 FACE="Arial"><get_authToken \
cred="pasumarti" generic="2.0" \
userID="pm_gupta@yahoo.com" \
xmlns="urn:uddi-org:api_v2"/></FONT>
<BR><FONT COLOR="#FF0000" SIZE=2 FACE="Arial">Response message:</FONT>
<BR><FONT COLOR="#FF0000" SIZE=2 FACE="Arial"><ns1:Fault xmlns:ns1="<A \
HREF="http://schemas.xmlsoap.org/soap/envelope/">http://schemas.xmlsoap.org/soap/envelope/</A>"></FONT>
<BR><FONT COLOR="#FF0000" SIZE=2 \
FACE="Arial"><faultcode>soapenv:Server.userException</faultcode></FONT>
<BR><FONT COLOR="#FF0000" SIZE=2 \
FACE="Arial"><faultstring>java.net.ConnectException: Connection refused: \
connect</faultstring></FONT>
<BR><FONT COLOR="#FF0000" SIZE=2 FACE="Arial"><detail></FONT>
<BR><FONT COLOR="#FF0000" SIZE=2 FACE="Arial"><ns1:stackTrace xmlns:ns1="<A \
HREF="http://xml.apache.org/axis/">http://xml.apache.org/axis/</A>">java.net.ConnectException: \
Connection refused: connect</FONT>
<BR><FONT COLOR="#FF0000" SIZE=2 FACE="Arial">at \
java.net.PlainSocketImpl.socketConnect(Native Method)</FONT>
<BR><FONT COLOR="#FF0000" SIZE=2 FACE="Arial">at \
java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)</FONT>
<BR><FONT COLOR="#FF0000" SIZE=2 FACE="Arial">at \
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)</FONT>
<BR><FONT COLOR="#FF0000" SIZE=2 FACE="Arial">at \
java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)</FONT>
<BR><FONT COLOR="#FF0000" SIZE=2 FACE="Arial">at \
java.net.Socket.connect(Socket.java:434)</FONT>
<BR><FONT COLOR="#FF0000" SIZE=2 FACE="Arial">at \
com.sun.net.ssl.internal.ssl.SSLSocketImpl.connect(DashoA6275)</FONT>
<BR><FONT COLOR="#FF0000" SIZE=2 FACE="Arial">at \
com.sun.net.ssl.internal.ssl.SSLSocketImpl.&lt;init&gt;(DashoA6275)</FONT>
<BR><FONT COLOR="#FF0000" SIZE=2 FACE="Arial">at \
com.sun.net.ssl.internal.ssl.SSLSocketFactoryImpl.createSocket(DashoA6275)</FONT>
<BR><FONT COLOR="#FF0000" SIZE=2 FACE="Arial">at \
org.apache.axis.components.net.JSSESocketFactory.create(JSSESocketFactory.java:130)</FONT>
<BR><FONT COLOR="#FF0000" SIZE=2 FACE="Arial">at \
org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:157)</FONT>
<BR><FONT COLOR="#FF0000" SIZE=2 FACE="Arial">at \
org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:114)</FONT>
<BR><FONT COLOR="#FF0000" SIZE=2 FACE="Arial">at \
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:71)</FONT>
<BR><FONT COLOR="#FF0000" SIZE=2 FACE="Arial">at \
org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:150)</FONT>
<BR><FONT COLOR="#FF0000" SIZE=2 FACE="Arial">at \
org.apache.axis.SimpleChain.invoke(SimpleChain.java:120)</FONT>
<BR><FONT COLOR="#FF0000" SIZE=2 FACE="Arial">at \
org.apache.axis.client.AxisClient.invoke(AxisClient.java:180)</FONT>
<BR><FONT COLOR="#FF0000" SIZE=2 FACE="Arial">at \
org.apache.axis.client.Call.invokeEngine(Call.java:2564)</FONT>
<BR><FONT COLOR="#FF0000" SIZE=2 FACE="Arial">at \
org.apache.axis.client.Call.invoke(Call.java:2553)</FONT>
<BR><FONT COLOR="#FF0000" SIZE=2 FACE="Arial">at \
org.apache.axis.client.Call.invoke(Call.java:1672)</FONT>
<BR><FONT COLOR="#FF0000" SIZE=2 FACE="Arial">at \
org.uddi4j.transport.ApacheAxisTransport.send(Unknown Source)</FONT>
<BR><FONT COLOR="#FF0000" SIZE=2 FACE="Arial">at \
org.uddi4j.transport.TransportBase.send(Unknown Source)</FONT>
<BR><FONT COLOR="#FF0000" SIZE=2 FACE="Arial">at \
org.uddi4j.client.UDDIProxy.send(Unknown Source)</FONT>
<BR><FONT COLOR="#FF0000" SIZE=2 FACE="Arial">at \
org.uddi4j.client.UDDIProxy.get_authToken(Unknown Source)</FONT>
<BR><FONT COLOR="#FF0000" SIZE=2 FACE="Arial">at \
PublishExample.run(PublishExample.java:81)</FONT>
<BR><FONT COLOR="#FF0000" SIZE=2 FACE="Arial">at \
PublishExample.main(PublishExample.java:57)</FONT>
<BR><FONT COLOR="#FF0000" SIZE=2 FACE="Arial"></ns1:stackTrace></FONT>
<BR><FONT COLOR="#FF0000" SIZE=2 FACE="Arial"></detail></FONT>
<BR><FONT COLOR="#FF0000" SIZE=2 FACE="Arial"></ns1:Fault></FONT>
<BR><FONT COLOR="#FF0000" SIZE=2 FACE="Arial">java.net.ConnectException: Connection \
refused: connect</FONT>
<BR><FONT COLOR="#FF0000" SIZE=2 FACE="Arial">at \
org.uddi4j.UDDIElement.<init>(Unknown Source)</FONT>
<BR><FONT COLOR="#FF0000" SIZE=2 FACE="Arial">at \
org.uddi4j.response.AuthToken.<init>(Unknown Source)</FONT>
<BR><FONT COLOR="#FF0000" SIZE=2 FACE="Arial">at \
org.uddi4j.client.UDDIProxy.get_authToken(Unknown Source)</FONT>
<BR><FONT COLOR="#FF0000" SIZE=2 FACE="Arial">at \
PublishExample.run(PublishExample.java:81)</FONT>
<BR><FONT COLOR="#FF0000" SIZE=2 FACE="Arial">at \
PublishExample.main(PublishExample.java:57)</FONT> </P>
</BODY>
</HTML>
_______________________________________________
Uddi4j-general mailing list
Uddi4j-general@www-124.ibm.com
http://www-124.ibm.com/developerworks/oss/mailman/listinfo/uddi4j-general
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic