users@glassfish.java.net

Re: Web service invocation slow when run from Java Web Start

From: <glassfish_at_javadesktop.org>
Date: Tue, 10 Apr 2007 01:04:57 PDT

JSAS started to misbehave for me yesterday (I got NullPointerExceptions when attempting to launch my app using javaws.exe and launching from the browser stopped working as well). So
I decided to move from JSAS 9.0 to Glassfish build 41 and now I get an access denied exception when trying to invoke the web service:

Exception in thread "AWT-EventQueue-0" java.lang.ExceptionInInitializerError
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
        at java.lang.reflect.Constructor.newInstance(Unknown Source)
        at java.lang.Class.newInstance0(Unknown Source)
        at java.lang.Class.newInstance(Unknown Source)
        at javax.xml.ws.spi.FactoryFinder.newInstance(Unknown Source)
        at javax.xml.ws.spi.FactoryFinder.find(Unknown Source)
        at javax.xml.ws.spi.Provider.provider(Unknown Source)
        at javax.xml.ws.Service.<init>(Unknown Source)
        at com.sun.firstcup.client.DukesAgeService.<init>(DukesAgeService.java:40)
        at com.sun.firstcup.client.MainFrame.refreshDukesAgeActionPerformed(MainFrame.java:142)
        at com.sun.firstcup.client.MainFrame.access$100(MainFrame.java:21)
        at com.sun.firstcup.client.MainFrame$2.actionPerformed(MainFrame.java:73)
        at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
        at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
        at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
        at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
        at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
        at java.awt.Component.processMouseEvent(Unknown Source)
        at javax.swing.JComponent.processMouseEvent(Unknown Source)
        at java.awt.Component.processEvent(Unknown Source)
        at java.awt.Container.processEvent(Unknown Source)
        at java.awt.Component.dispatchEventImpl(Unknown Source)
        at java.awt.Container.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
        at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
        at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
        at java.awt.Container.dispatchEventImpl(Unknown Source)
        at java.awt.Window.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.security.AccessControlException: access denied (java.util.PropertyPermission javax.xml.bind.JAXBContext read)
        at java.security.AccessControlContext.checkPermission(Unknown Source)
        at java.security.AccessController.checkPermission(Unknown Source)
        at java.lang.SecurityManager.checkPermission(Unknown Source)
        at java.lang.SecurityManager.checkPropertyAccess(Unknown Source)
        at java.lang.System.getProperty(Unknown Source)
        at javax.xml.bind.ContextFinder.find(Unknown Source)
        at javax.xml.bind.JAXBContext.newInstance(Unknown Source)
        at javax.xml.bind.JAXBContext.newInstance(Unknown Source)
        at com.sun.xml.ws.spi.ProviderImpl.getEPRJaxbContext(ProviderImpl.java:186)
        at com.sun.xml.ws.spi.ProviderImpl.<clinit>(ProviderImpl.java:65)
        ... 39 more

I'm going to try fixing it later today and will post the results then.
[Message sent by forum member 'koser' (koser)]

http://forums.java.net/jive/thread.jspa?messageID=211630