[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.&lt;init&gt;(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">&quot;org.uddi4j.TransportClassName&quot;</FONT><FONT SIZE=2 FACE="Times New \
Roman">,</FONT><FONT COLOR="#0000FF" SIZE=2 FACE="Times New \
Roman">&quot;org.uddi4j.transport.ApacheAxisTransport&quot;</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">&quot;org.uddi4j.logEnabled&quot;</FONT><FONT SIZE=2 FACE="Times New \
Roman">,</FONT><FONT COLOR="#0000FF" SIZE=2 FACE="Times New \
Roman">&quot;true&quot;</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">&quot;java.protocol.handler.pkgs&quot;</FONT><FONT SIZE=2 FACE="Times New \
Roman">,</FONT><FONT COLOR="#0000FF" SIZE=2 FACE="Times New \
Roman">&quot;com.sun.net.ssl.internal.www.protocol&quot;</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>&quot;); \
</FONT>

<BR><FONT SIZE=2 FACE="Times New Roman">proxy.setInquiryURL(</FONT><FONT \
COLOR="#0000FF" SIZE=2 FACE="Times New Roman">&quot;<A \
HREF="http://www-3.ibm.com/services/uddi/testregistry/inquiryapi=20">http://www-3.ibm.com/services/uddi/testregistry/inquiryapi=20</A>&quot;</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">&quot;<A \
HREF="https://www-3.ibm.com/services/uddi/testregistry/inquiryapi=20">https://www-3.ibm.com/services/uddi/testregistry/inquiryapi=20</A>&quot;</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">&quot;\n Get \
authtoken&quot;</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">&quot;pm_gupta@yahoo.com&quot;</FONT><FONT SIZE=2 FACE="Times New \
Roman">,</FONT><FONT COLOR="#0000FF" SIZE=2 FACE="Times New \
Roman">&quot;pasumarti&quot;</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">&quot; Returned \
authToken:&quot;</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">&quot;TestBpi&quot;</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">&quot;&quot;</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() &gt; 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">&lt;get_authToken \
cred=&quot;pasumarti&quot; generic=&quot;2.0&quot; \
userID=&quot;pm_gupta@yahoo.com&quot; \
xmlns=&quot;urn:uddi-org:api_v2&quot;/&gt;</FONT>

<BR><FONT COLOR="#FF0000" SIZE=2 FACE="Arial">Response message:</FONT>

<BR><FONT COLOR="#FF0000" SIZE=2 FACE="Arial">&lt;ns1:Fault xmlns:ns1=&quot;<A \
HREF="http://schemas.xmlsoap.org/soap/envelope/">http://schemas.xmlsoap.org/soap/envelope/</A>&quot;&gt;</FONT>


<BR><FONT COLOR="#FF0000" SIZE=2 \
FACE="Arial">&lt;faultcode&gt;soapenv:Server.userException&lt;/faultcode&gt;</FONT>

<BR><FONT COLOR="#FF0000" SIZE=2 \
FACE="Arial">&lt;faultstring&gt;java.net.ConnectException: Connection refused: \
connect&lt;/faultstring&gt;</FONT>

<BR><FONT COLOR="#FF0000" SIZE=2 FACE="Arial">&lt;detail&gt;</FONT>

<BR><FONT COLOR="#FF0000" SIZE=2 FACE="Arial">&lt;ns1:stackTrace xmlns:ns1=&quot;<A \
HREF="http://xml.apache.org/axis/">http://xml.apache.org/axis/</A>&quot;&gt;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.&amp;lt;init&amp;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">&lt;/ns1:stackTrace&gt;</FONT>

<BR><FONT COLOR="#FF0000" SIZE=2 FACE="Arial">&lt;/detail&gt;</FONT>

<BR><FONT COLOR="#FF0000" SIZE=2 FACE="Arial">&lt;/ns1:Fault&gt;</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.&lt;init&gt;(Unknown Source)</FONT>

<BR><FONT COLOR="#FF0000" SIZE=2 FACE="Arial">at \
org.uddi4j.response.AuthToken.&lt;init&gt;(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