[jboss-jira] [JBoss JIRA] Commented: (JBMESSAGING-863) Bisocket test fails with socket listen security violation on client-side

Ovidiu Feodorov (JIRA) jira-events at lists.jboss.org
Tue Feb 20 14:12:39 EST 2007


    [ http://jira.jboss.com/jira/browse/JBMESSAGING-863?page=comments#action_12353707 ] 
            
Ovidiu Feodorov commented on JBMESSAGING-863:
---------------------------------------------

It is possible that the "fake" port bisocket uses is negative?


ServerInvoker.java, line 908

 int port = locator.getPort();
      if(port <= 0)
      {
         port = assignPort();
      }


> Bisocket test fails with socket listen security violation on client-side
> ------------------------------------------------------------------------
>
>                 Key: JBMESSAGING-863
>                 URL: http://jira.jboss.com/jira/browse/JBMESSAGING-863
>             Project: JBoss Messaging
>          Issue Type: Bug
>          Components: JMS Remoting
>            Reporter: Ovidiu Feodorov
>         Assigned To: Ron Sigal
>            Priority: Blocker
>             Fix For: 1.2.0.CR1
>
>
> Caused by: java.lang.SecurityException: ConfigurableSecurityManager[4f9fdc] does not allow (java.net.SocketPermission localhost:2183 listen,resolve), action listen
> 	at org.jboss.test.messaging.tools.misc.ConfigurableSecurityManager.checkPermission(ConfigurableSecurityManager.java:83)
> 	at java.lang.SecurityManager.checkListen(SecurityManager.java:1112)
> 	at java.net.ServerSocket.bind(ServerSocket.java:317)
> 	at java.net.ServerSocket.<init>(ServerSocket.java:185)
> 	at org.jboss.remoting.transport.PortUtil.checkPort(PortUtil.java:65)
> 	at org.jboss.remoting.transport.PortUtil.getFreePort(PortUtil.java:123)
> 	at org.jboss.remoting.transport.PortUtil.findFreePort(PortUtil.java:101)
> 	at org.jboss.remoting.ServerInvoker.assignPort(ServerInvoker.java:1012)
> 	at org.jboss.remoting.ServerInvoker.setup(ServerInvoker.java:911)
> 	at org.jboss.remoting.transport.socket.SocketServerInvoker.setup(SocketServerInvoker.java:140)
> 	at org.jboss.remoting.transport.bisocket.BisocketServerInvoker.setup(BisocketServerInvoker.java:244)
> 	at org.jboss.remoting.ServerInvoker.create(ServerInvoker.java:756)
> 	... 35 more

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list