Hello!
I have a server and client both running Mina (2.0.0-M3).
The client is running as an applet and is connecting through the filters
that do object serialization and ssl.
When I run the client in the browser (firefox) I get the following
exception:
Exception in thread "Thread-15" java.lang.ExceptionInInitializerError
at
org.apache.mina.transport.socket.nio.NioSocketConnector.<init>(NioSocketConnector.java:56)
at
com.testproject.client.dataaccess.NioSocketClient.run(NioSocketClient.java:73)
Caused by: java.security.AccessControlException: access denied
(java.net.SocketPermission 127.0.0.1:1074 connect,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 java.net.Socket.connect(Unknown Source)
at
org.apache.mina.transport.socket.DefaultSocketSessionConfig.initializeDefaultSocketParameters(DefaultSocketSessionConfig.java:135)
at
org.apache.mina.transport.socket.DefaultSocketSessionConfig.<clinit>(DefaultSocketSessionConfig.java:65)
... 2 more
The port it attempts to connect to seems to be random, but in the same
range as in this case.
Anyone has any idea why it would attempt to connect to localhost and how
to keep it from doing this?
Line 56 of NioSocketConnector is a simple
this.connector = new NioSocketConnector();
so the ssl and the serialization hasn't even been introduced yet, so
that can't be it...
Any help is greatly appreciated.
Alex