Uploaded image for project: 'Tuscany'
  1. Tuscany
  2. TUSCANY-3925

AccessControl Exception originating from DefaultFactoryExtensionPoint.getFactory, JDKProxyFactory.createCallbackProxy, WSDLHelper.createWSDLInterfaceContract

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • Java-SCA-2.x
    • Java-SCA-2.x
    • SCA Java Runtime
    • None
    • Patch Available

    Description

      When running with Java 2 security enabled the following AccessControlExceptions are encountered:

      Caused by: java.security.AccessControlException: Access denied (java.lang.RuntimePermission getClassLoader)
      at java.security.AccessController.checkPermission(AccessController.java:108)
      at java.lang.SecurityManager.checkPermission(SecurityManager.java:544)
      at com.ibm.ws.security.core.SecurityManager.checkPermission(SecurityManager.java:208)
      at java.lang.Class.getClassLoader(Class.java:237)
      at org.apache.tuscany.sca.core.DefaultFactoryExtensionPoint.getFactory(DefaultFactoryExtensionPoint.java:132)
      ... 63 more

      Caused by: java.security.AccessControlException: Access denied (java.lang.RuntimePermission getClassLoader)
      at java.security.AccessController.checkPermission(AccessController.java:108)
      at java.lang.SecurityManager.checkPermission(SecurityManager.java:544)
      at com.ibm.ws.security.core.SecurityManager.checkPermission(SecurityManager.java:208)
      at java.lang.Class.getClassLoader(Class.java:237)
      at org.apache.tuscany.sca.core.invocation.impl.JDKProxyFactory.createCallbackProxy(JDKProxyFactory.java:151)
      at org.apache.tuscany.sca.core.invocation.impl.JDKProxyFactory.createCallbackProxy(JDKProxyFactory.java:144)
      at org.apache.tuscany.sca.core.invocation.ExtensibleProxyFactory.createCallbackProxy(ExtensibleProxyFactory.java:76)
      at org.apache.tuscany.sca.core.invocation.CallbackWireObjectFactory.getInstance(CallbackWireObjectFactory.java:45)
      at org.apache.tuscany.sca.implementation.java.injection.MethodInjector.inject(MethodInjector.java:55)
      at org.apache.tuscany.sca.implementation.java.invocation.JavaImplementationInvoker.injectCallbacks(JavaImplementationInvoker.java:287)
      ... 74 more

      java.security.AccessControlException: Access denied (java.io.FilePermission /opt/Moonstone/WAS/java/jre/lib/wsdl.properties read)
      at java.security.AccessController.checkPermission(AccessController.java:108)
      at java.lang.SecurityManager.checkPermission(SecurityManager.java:544)
      at com.ibm.ws.security.core.SecurityManager.checkPermission(SecurityManager.java:208)
      at java.lang.SecurityManager.checkRead(SecurityManager.java:883)
      at java.io.FileInputStream.<init>(FileInputStream.java:117)
      at javax.wsdl.factory.WSDLFactory.findFactoryImplName(WSDLFactory.java:262)
      at javax.wsdl.factory.WSDLFactory.newInstance(WSDLFactory.java:60)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
      at java.lang.reflect.Method.invoke(Method.java:611)
      at org.apache.tuscany.sca.core.DefaultFactoryExtensionPoint.getFactory(DefaultFactoryExtensionPoint.java:142)

      Caused by: java.security.AccessControlException: Access denied (java.io.FilePermission <filename> read)
      at java.security.AccessController.checkPermission(AccessController.java:108)
      at java.lang.SecurityManager.checkPermission(SecurityManager.java:544)
      at com.ibm.ws.security.core.SecurityManager.checkPermission(SecurityManager.java:208)
      at java.lang.SecurityManager.checkRead(SecurityManager.java:883)
      at java.io.FileInputStream.(FileInputStream.java:117)
      at javax.wsdl.factory.WSDLFactory.findFactoryImplName(WSDLFactory.java:262)
      at javax.wsdl.factory.WSDLFactory.newInstance(WSDLFactory.java:60)
      at org.apache.tuscany.sca.core.assembly.impl.WSDLHelper.createWSDLInterfaceContract(WSDLHelper.java:200)
      ... 54 more

      java.security.AccessControlException: Access denied (java.lang.RuntimePermission accessDeclaredMembers)
      at java.security.AccessController.checkPermission(AccessController.java:108)
      at java.lang.SecurityManager.checkPermission(SecurityManager.java:544)
      at com.ibm.ws.security.core.SecurityManager.checkPermission(SecurityManager.java:208)
      at java.lang.SecurityManager.checkMemberAccess(SecurityManager.java:1689)
      at java.lang.Class.checkMemberAccess(Class.java:105)
      at java.lang.Class.getDeclaredMethod(Class.java:574)
      at org.apache.tuscany.sca.core.DefaultFactoryExtensionPoint.getFactory(DefaultFactoryExtensionPoint.java:133)

      Attachments

        1. TUSCANY-3925.patch
          8 kB
          Jennifer Thompson

        Activity

          People

            simonslaws Simon Laws
            jennthom Jennifer Thompson
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified