Issue Details (XML | Word | Printable)

Key: SFOS-1171
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Critical Critical
Assignee: Steve Loughran
Reporter: Steve Loughran
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
SmartFrog

RMI security problems on Java6 with Hadoop

Created: 01/Apr/09 05:25 PM (BST)   Updated: 06/May/09 05:06 PM (BST)
Return to search
Component/s: .sfCore, _service_hadoop
Affects Version/s: 3.16.004, 3.17.010
Fix Version/s: 3.17.010

Time Tracking:
Not Specified

File Attachments: 1. Text File SFOS-1171.patch (8 kB)

Environment: Linux running Java6
Issue Links:
Depends
 
caused
 

Compatibility: unknown


 Description  « Hide
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


 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Steve Loughran made changes - 01/Apr/09 05:32 PM (BST)
Field Original Value New Value
Link This issue caused SFOS-1154 [ SFOS-1154 ]
Steve Loughran made changes - 01/Apr/09 05:48 PM (BST)
Link This issue caused SFOS-1172 [ SFOS-1172 ]
Steve Loughran made changes - 01/Apr/09 05:59 PM (BST)
Link This issue is depended on by SFOS-1166 [ SFOS-1166 ]
Steve Loughran made changes - 03/Apr/09 01:16 PM (BST)
Attachment SFOS-1171.patch [ 10072 ]
Steve Loughran made changes - 28/Apr/09 12:28 PM (BST)
Summary RMI security problems on Java6 RMI security problems on Java6 with Hadoop
Component/s _service_hadoop [ 10090 ]
Assignee Antonio Lain [ antlai ] Steve Loughran [ stevel ]
Steve Loughran made changes - 28/Apr/09 12:28 PM (BST)
Status Open [ 1 ] In Progress [ 3 ]
Steve Loughran made changes - 28/Apr/09 12:33 PM (BST)
Link This issue caused SFOS-1162 [ SFOS-1162 ]
Steve Loughran made changes - 06/May/09 05:06 PM (BST)
Status In Progress [ 3 ] Resolved [ 5 ]
Fix Version/s 3.17.x [ 10160 ]
Resolution Fixed [ 1 ]