Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

java.net.connect.exception with an applet

807607Jan 3 2007 — edited Jan 3 2007
Hi,
I am trying to connect apache tomcat using an applet. I am communicating with tomcat using soap messages. But i have an java.net.connection.exception after the soap envelope sent to tomcat. When i tried to connect the application after changing the applet code to a jframe code it works. I also checked the port,the url in the two examples and they are same. I could not solve the problem. It can be a security issue about applet but i don't know what it is. I need help.

The exception:

org.uddi4j.transport.TransportException: Error opening socket: java.net.ConnectException: Connection refused: connect
at org.uddi4j.transport.ApacheSOAPTransport.send(ApacheSOAPTransport.java:88)
at org.uddi4j.transport.TransportBase.send(TransportBase.java:57)
at org.uddi4j.client.UDDIProxy.send(UDDIProxy.java:1942)
at org.uddi4j.client.UDDIProxy.get_authToken(UDDIProxy.java:1626)
at broker.Service.saveBusinessService(Service.java:73)
at broker.ServisKayit2$1.mouseClicked(ServisKayit2.java:132)
at java.awt.AWTEventMulticaster.mouseClicked(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)

Nested exception:
[SOAPException: faultCode=SOAP-ENV:Client; msg=Error opening socket: java.net.ConnectException: Connection refused: connect; targetException=java.lang.IllegalArgumentException: Error opening socket: java.net.ConnectException: Connection refused: connect]
at org.apache.soap.transport.http.SOAPHTTPConnection.send(SOAPHTTPConnection.java:354)
at org.apache.soap.messaging.Message.send(Message.java:123)
at org.uddi4j.transport.ApacheSOAPTransport.send(ApacheSOAPTransport.java:78)
at org.uddi4j.transport.TransportBase.send(TransportBase.java:57)
at org.uddi4j.client.UDDIProxy.send(UDDIProxy.java:1942)
at org.uddi4j.client.UDDIProxy.get_authToken(UDDIProxy.java:1626)
at broker.Service.saveBusinessService(Service.java:73)
at broker.ServisKayit2$1.mouseClicked(ServisKayit2.java:132)
at java.awt.AWTEventMulticaster.mouseClicked(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 31 2007
Added on Jan 3 2007
1 comment
88 views