You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Raymond Feng (JIRA)" <tu...@ws.apache.org> on 2008/03/27 00:37:25 UTC

[jira] Resolved: (TUSCANY-2108) Java 2 Security - ReallySmallRuntime AccessController blocks

     [ https://issues.apache.org/jira/browse/TUSCANY-2108?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Raymond Feng resolved TUSCANY-2108.
-----------------------------------

    Resolution: Fixed

Patch applied under r641645. Thank you for the contribution!

> Java 2 Security - ReallySmallRuntime AccessController blocks
> ------------------------------------------------------------
>
>                 Key: TUSCANY-2108
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-2108
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Core Runtime
>    Affects Versions: Java-SCA-1.1
>         Environment: Run with JDK 1.5, Windows XP system
>            Reporter: Dan Becker
>            Assignee: Raymond Feng
>             Fix For: Java-SCA-Next
>
>         Attachments: tuscany2108-2.txt, tuscany2108.txt
>
>
> Add Java 2 Security to SCA core accessed via ReallySmallRuntime. This can be seen by running the sample-calculator program with -Djava.security.manager  for the Java application runtime.
> This JIRA is a preliminary prereq for JIRA TUSCANY-2030. That JIRA covers the code entry points via
> org.apache.tuscany.sca.host.embedded.impl.EmbeddedSCADomain.getService(EmbeddedSCADomain.java:138) and com.ibm.ws.soa.sca.runtime.impl.SimpleCompositeContextImpl.locateService(SimpleCompositeContextImpl.java:86) 
> This JIRA covers all "internal" entry points that are accessed via 
> Exception in thread "main" org.osoa.sca.ServiceRuntimeException: java.lang.NullPointerException
> 	at org.apache.tuscany.sca.host.embedded.SCADomain.createNewInstance(SCADomain.java:264)
> 	at org.apache.tuscany.sca.host.embedded.SCADomain.newInstance(SCADomain.java:69)
> 	at calculator.CalculatorClient.main(CalculatorClient.java:31)
> Caused by: java.lang.NullPointerException
> 	at org.apache.tuscany.sca.host.embedded.impl.ReallySmallRuntime.start(ReallySmallRuntime.java:116)
> 	at org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.init(DefaultSCADomain.java:118)
> 	at org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.<init>(DefaultSCADomain.java:109)
> 	at org.apache.tuscany.sca.host.embedded.SCADomain.createNewInstance(SCADomain.java:231)
> There needs to be AccessController.doPrivileged blocks around all sensitive code that  creates a ClassLoader, accesses the file system via stream or URL, reads system properties and all other sensitive areas not covered by the security.policy file.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org