Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Connect Exception from ws cleint axis

 
enrico crocetti
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have a signed applet in wich I call a ws by Axis client classes,but when the applet try to make the http call I receive the following exception.


java.security.PrivilegedActionException: java.net.ConnectException: Connection refused: connect
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.deploy.net.CrossDomainXML.check(Unknown Source)
at com.sun.deploy.net.CrossDomainXML.check(Unknown Source)
at sun.plugin2.applet.Applet2SecurityManager.checkConnect(Unknown Source)
at java.net.InetAddress.getLocalHost(Unknown Source)
at org.apache.axis.utils.NetworkUtils.getLocalHostname(NetworkUtils.java:65)
at org.apache.axis.AxisFault.addHostnameIfNeeded(AxisFault.java:881)
at org.apache.axis.AxisFault.initFromException(AxisFault.java:280)
at org.apache.axis.AxisFault.<init>(AxisFault.java:181)
at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:154)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
at org.apache.axis.client.Call.invoke(Call.java:2767)
at org.apache.axis.client.Call.invoke(Call.java:2443)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)

AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: java.security.AccessControlException: access denied (java.net.SocketPermission myServer resolve)
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:java.security.AccessControlException: access denied (java.net.SocketPermission gedox resolve)
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkConnect(Unknown Source)
at sun.plugin2.applet.Applet2SecurityManager.checkConnect(Unknown Source)
at java.net.InetAddress.getAllByName0(Unknown Source)
at java.net.InetAddress.getAllByName(Unknown Source)
at java.net.InetAddress.getAllByName(Unknown Source)


I have two machine in wich my servers work.In the first machine a pop-up with autentication for server machine appear,and when I put user e pass the applet works fine.
In the second mahchine the pop-up DOESN'T appear and I receive the error.
I have tried to write explicit doProvoleged code for force the peimission too,like I have done for access to filesystem,but it does'nt work.
I call the applet from javascript.
Can anyone help me to resolve this problem please?
thanks.



 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic