You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Trustin Lee (JIRA)" <ji...@apache.org> on 2007/09/13 11:34:32 UTC
[jira] Resolved: (DIRMINA-437) AccessControlException on 127.0.01
when using Mina in an Applet
[ https://issues.apache.org/jira/browse/DIRMINA-437?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Trustin Lee resolved DIRMINA-437.
---------------------------------
Resolution: Fixed
SocketSessionConfigImpl was catching IOExceptions only. Catching all exceptions (i.e. Exception) fix es this issue.
> AccessControlException on 127.0.01 when using Mina in an Applet
> ---------------------------------------------------------------
>
> Key: DIRMINA-437
> URL: https://issues.apache.org/jira/browse/DIRMINA-437
> Project: MINA
> Issue Type: Bug
> Components: Transport
> Affects Versions: 1.0.5, 1.1.2
> Reporter: Trustin Lee
> Assignee: Trustin Lee
> Priority: Blocker
> Fix For: 1.0.6, 1.1.3
>
>
> On 9/8/07, Fady <fa...@legsem.com> wrote:
> >
> > Hello
> >
> > Using Mina 1.1.2 from an Applet, trying to connect to a remote server
> > (192.168.0.6 port 1139) from which the Applet originates. I get the
> > following exception:
> >
> > Caused by: java.security.AccessControlException: access denied
> > (java.net.SocketPermission [0:0:0:0:0:0:0:1]:1025 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.nio.SocketSessionConfigImpl.initializeDefaultSocketParameters(SocketSessionConfigImpl.java:144)
> > at
> > org.apache.mina.transport.socket.nio.SocketSessionConfigImpl.<clinit>(SocketSessionConfigImpl.java:77)
> > ... 15 more
> >
> > As you can see the access is denied for address 0 port 1025 which is not the
> > IP address I am trying to connect to.
> >
> > Looking into the SocketSessionConfigImpl code, it seems this is a
> > consequence of a series of attempts to connect locally in
> > initializeDefaultSocketParameters().
> >
> > In Mina 1.1.0, there was no attempts to connect locally and my applet worked
> > fine.
> >
> > Has anyone else run into a similar issue? Any workarounds?
> >
> > Thanks for your help.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.