From: Steve L. (JIRA) <ji...@sm...> - 2009-04-29 14:32:54
|
[ http://jira.smartfrog.org/jira/browse/SFOS-1171?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=11650#action_11650 ] Steve Loughran commented on SFOS-1171: -------------------------------------- With the latest hadoop commit this is *probably* fixed. only one way to know though: tests! > RMI security problems on Java6 with Hadoop > ------------------------------------------ > > Key: SFOS-1171 > URL: http://jira.smartfrog.org/jira/browse/SFOS-1171 > Project: SmartFrog > Issue Type: Bug > Components: .sfCore, _service_hadoop > Affects Versions: 3.16.004, 3.17.x > Environment: Linux running Java6 > Reporter: Steve Loughran > Assignee: Steve Loughran > Priority: Critical > Attachments: SFOS-1171.patch > > > I've been dealing with stack trace problems with security turned on, that I've assumed have been related to my work. But it could be that it is related to Java6 RMI. > First, a stack trace > [sf-system-test-junit] Testcase: testSecurityForked took 5.58 sec > [sf-system-test-junit] Caused an ERROR > [sf-system-test-junit] java.lang.SecurityException: attempt to add a Permission to a readonly Permissions object > [sf-system-test-junit] SmartFrogException:: java.lang.SecurityException: attempt to add a Permission to a readonly Permissions object, SmartFrog 3.17.007dev (2009-04-01 15:28:11 BST) > [sf-system-test-junit] at org.smartfrog.sfcore.common.SmartFrogException.forward(SmartFrogException.java:92) > [sf-system-test-junit] at org.smartfrog.sfcore.common.ActionDeploy.Deploy(ActionDeploy.java:192) > [sf-system-test-junit] at org.smartfrog.sfcore.common.ActionDeploy.doDeploy(ActionDeploy.java:297) > [sf-system-test-junit] at org.smartfrog.sfcore.common.ActionDeploy.execute(ActionDeploy.java:272) > [sf-system-test-junit] at org.smartfrog.sfcore.common.ConfigurationAction.execute(ConfigurationAction.java:113) > [sf-system-test-junit] at org.smartfrog.sfcore.common.ConfigurationDescriptor.execute(ConfigurationDescriptor.java:1076) > [sf-system-test-junit] at org.smartfrog.SFSystem.runConfigurationDescriptor(SFSystem.java:367) > [sf-system-test-junit] at org.smartfrog.test.DeployingTestBase$ApplicationLoaderThread.execute(DeployingTestBase.java:215) > [sf-system-test-junit] at org.smartfrog.sfcore.utils.SmartFrogThread.run(SmartFrogThread.java:279) > [sf-system-test-junit] Caused by: java.lang.SecurityException: attempt to add a Permission to a readonly Permissions object > [sf-system-test-junit] at java.security.Permissions.add(Permissions.java:110) > [sf-system-test-junit] at java.security.Policy$UnsupportedEmptyCollection.add(Policy.java:790) > [sf-system-test-junit] at sun.rmi.server.LoaderHandler.getLoaderAccessControlContext(LoaderHandler.java:985) > [sf-system-test-junit] at sun.rmi.server.LoaderHandler.lookupLoader(LoaderHandler.java:861) > [sf-system-test-junit] at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:385) > [sf-system-test-junit] at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:165) > [sf-system-test-junit] at java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:620) > [sf-system-test-junit] at org.smartfrog.sfcore.security.SFRMIClassLoaderSpi.loadClass(SFRMIClassLoaderSpi.java:90) > [sf-system-test-junit] at java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:247) > [sf-system-test-junit] at sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.java:197) > [sf-system-test-junit] at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1575) > [sf-system-test-junit] at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496) > [sf-system-test-junit] at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1732) > [sf-system-test-junit] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329) > [sf-system-test-junit] at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351) > [sf-system-test-junit] at sun.rmi.server.UnicastRef.unmarshalValue(UnicastRef.java:306) > [sf-system-test-junit] at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:290) > [sf-system-test-junit] at sun.rmi.transport.Transport$1.run(Transport.java:159) > [sf-system-test-junit] at sun.rmi.transport.Transport.serviceCall(Transport.java:155) > [sf-system-test-junit] at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535) > [sf-system-test-junit] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790) > [sf-system-test-junit] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649) > [sf-system-test-junit] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885) > [sf-system-test-junit] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907) > [sf-system-test-junit] at java.lang.Thread.run(Thread.java:619) > [sf-system-test-junit] at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:255) > [sf-system-test-junit] at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:233) > [sf-system-test-junit] at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:142) > [sf-system-test-junit] at org.smartfrog.sfcore.processcompound.ProcessCompoundImpl_Stub.sfDeployComponentDescription(Unknown Source) > [sf-system-test-junit] at org.smartfrog.sfcore.common.ActionDeploy.Deploy(ActionDeploy.java:155) > [sf-system-test-junit] TEST org.smartfrog.services.hadoop.test.system.local.cluster.SecurityExitBlockingTest FAILED > [sf-system-test-junit] Testsuite: org.smartfrog.services.hadoop.test.system.local.clusterconf.ClusterconfTest -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.smartfrog.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |