Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6892898

AccessControlException in IntegrationService.requestAssociation() on Ubuntu Linux

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b05
    • CPU:
      generic
    • OS:
      linux
    • Verification:
      Verified

      Backports

        Description

        When calling IntegrationService.requestAssociation() on Linux using the following testcase:

        http://sqindia.india.sun.com/disk01/raghu/TestSpec/TestCases/RequestAssociationMimeFileExtn.jnlp

        You will get an AccessControlException:

        java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at com.sun.javaws.Launcher.executeApplication(Launcher.java:1664)
        at com.sun.javaws.Launcher.executeMainClass(Launcher.java:1610)
        at com.sun.javaws.Launcher.doLaunchApp(Launcher.java:1415)
        at com.sun.javaws.Launcher.run(Launcher.java:127)
        at java.lang.Thread.run(Thread.java:619)
        Caused by: java.lang.ExceptionInInitializerError
        at com.sun.deploy.association.utility.AppAssociationWriterFactory.newInstance(AppAssociationWriterFactory.java:16)
        at com.sun.deploy.association.AssociationService.<init>(AssociationService.java:67)
        at com.sun.javaws.UnixInstallHandler.unregisterAssociationInternal(UnixInstallHandler.java:138)
        at com.sun.jnlp.IntegrationServiceImpl.removeAssociation(IntegrationServiceImpl.java:148)
        at is05.RequestAssociationMimeFileExtn.<init>(RequestAssociationMimeFileExtn.java:16)
        at is05.RequestAssociationMimeFileExtn.main(RequestAssociationMimeFileExtn.java:30)
        ... 9 more
        Caused by: java.security.AccessControlException: access denied (java.util.PropertyPermission user.home read)
        at java.security.AccessControlContext.checkPermission(AccessControlContext.java:323)
        at java.security.AccessController.checkPermission(AccessController.java:546)
        at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
        at java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1285)
        at java.lang.System.getProperty(System.java:650)
        at com.sun.deploy.association.utility.GnomeAppAssociationWriter.<clinit>(GnomeAppAssociationWriter.java:53)
        ... 15 more

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                rkennke Roman Kennke
                Reporter:
                rkennke Roman Kennke
                Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: