users@glassfish.java.net

Re: exception deploying custom jax-ws SOAPHandler in v1 UR1 and v2 b33

From: <glassfish_at_javadesktop.org>
Date: Wed, 07 Mar 2007 07:49:59 PST

I have tried my project against glassfish v2 b33, and I get the same deploy-time StackOverflowError...


BiztalkClientMessageHandler: static initializer called.
java.lang.reflect.InvocationTargetException
        at sun.reflect.GeneratedConstructorAccessor111.newInstance(Unknown Source)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
        at com.sun.enterprise.naming.NamingManagerImpl.initiateInstance(NamingManagerImpl.java:1025)
        at com.sun.enterprise.naming.NamingManagerImpl.getClientServiceObject(NamingManagerImpl.java:1068)
        at com.sun.enterprise.naming.NamingManagerImpl.lookup(NamingManagerImpl.java:930)
        at com.sun.enterprise.naming.java.javaURLContext.lookup(javaURLContext.java:160)
        at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:313)
        at javax.naming.InitialContext.lookup(InitialContext.java:351)
        at com.sun.enterprise.util.InjectionManagerImpl._inject(InjectionManagerImpl.java:274)
        at com.sun.enterprise.util.InjectionManagerImpl.inject(InjectionManagerImpl.java:193)
        at com.sun.enterprise.util.InjectionManagerImpl.injectInstance(InjectionManagerImpl.java:87)
        at com.sun.enterprise.webservice.WsUtil.processConfiguredHandlers(WsUtil.java:2388)
        at com.sun.enterprise.webservice.WsUtil.configureJAXWSClientHandlers(WsUtil.java:2505)
        at com.sun.enterprise.naming.NamingManagerImpl.getClientServiceObject(NamingManagerImpl.java:1145)
        at com.sun.enterprise.naming.NamingManagerImpl.lookup(NamingManagerImpl.java:930)
        at com.sun.enterprise.naming.java.javaURLContext.lookup(javaURLContext.java:160)
        at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:313)
        at javax.naming.InitialContext.lookup(InitialContext.java:351)
...
        at javax.naming.InitialContext.lookup(InitialContext.java:351)
        at com.sun.enterprise.util.InjectionManagerImpl._inject(InjectionManagerImpl.java:274)
        at com.sun.enterprise.util.InjectionManagerImpl.inject(InjectionManagerImpl.java:193)
        at com.sun.enterprise.util.InjectionManagerImpl.injectInstance(InjectionManagerImpl.java:87)
        at com.sun.enterprise.webservice.WsUtil.processConfiguredHandlers(WsUtil.java:2388)
        at com.sun.enterprise.webservice.WsUtil.configureJAXWSClientHandlers(WsUtil.java:2505)
Caused by: java.lang.StackOverflowError
        at java.lang.String.indexOf(String.java:1352)
        at java.net.URLStreamHandler.parseURL(URLStreamHandler.java:127)
        at sun.net.www.protocol.file.Handler.parseURL(Handler.java:50)
        at java.net.URL.<init>(URL.java:596)
        at java.net.URL.<init>(URL.java:464)
        at sun.misc.URLClassPath$FileLoader.getResource(URLClassPath.java:881)
        at sun.misc.URLClassPath$FileLoader.findResource(URLClassPath.java:871)
        at sun.misc.URLClassPath.findResource(URLClassPath.java:142)
        at java.net.URLClassLoader$2.run(URLClassLoader.java:362)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findResource(URLClassLoader.java:359)
        at java.lang.ClassLoader.getResource(ClassLoader.java:977)
        at java.lang.ClassLoader.getResource(ClassLoader.java:972)
        at java.lang.ClassLoader.getResource(ClassLoader.java:972)
        at java.lang.ClassLoader.getResource(ClassLoader.java:972)
        at java.lang.ClassLoader.getResource(ClassLoader.java:972)
        at java.lang.ClassLoader.getResourceAsStream(ClassLoader.java:1159)
        at com.sun.enterprise.loader.EJBClassLoader.getResourceAsStream(EJBClassLoader.java:782)
        at org.apache.catalina.loader.WebappClassLoader.getResourceAsStream(WebappClassLoader.java:1271)
        at javax.xml.ws.spi.FactoryFinder.find(FactoryFinder.java:83)
        at javax.xml.ws.spi.Provider.provider(Provider.java:84)
        at javax.xml.ws.Service.<init>(Service.java:56)
        at net.nanonation.rccl.client.biztalkwebservice.BizTalkWebService.<init>(BizTalkWebService.java:39)
        at sun.reflect.GeneratedConstructorAccessor111.newInstance(Unknown Source)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
        at com.sun.enterprise.naming.NamingManagerImpl.initiateInstance(NamingManagerImpl.java:1025)
        at com.sun.enterprise.naming.NamingManagerImpl.getClientServiceObject(NamingManagerImpl.java:1068)
        at com.sun.enterprise.naming.NamingManagerImpl.lookup(NamingManagerImpl.java:930)
        at com.sun.enterprise.naming.java.javaURLContext.lookup(javaURLContext.java:160)
        at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:313)
        at javax.naming.InitialContext.lookup(InitialContext.java:351)
        at com.sun.enterprise.util.InjectionManagerImpl._inject(InjectionManagerImpl.java:274)
        at com.sun.enterprise.util.InjectionManagerImpl.inject(InjectionManagerImpl.java:193)
        at com.sun.enterprise.util.InjectionManagerImpl.injectInstance(InjectionManagerImpl.java:87)
        at com.sun.enterprise.webservice.WsUtil.processConfiguredHandlers(WsUtil.java:2388)
        at com.sun.enterprise.webservice.WsUtil.configureJAXWSClientHandlers(WsUtil.java:2505)
        at com.sun.enterprise.naming.NamingManagerImpl.getClientServiceObject(NamingManagerImpl.java:1145)
        at com.sun.enterprise.naming.NamingManagerImpl.lookup(NamingManagerImpl.java:930)
        at com.sun.enterprise.naming.java.javaURLContext.lookup(javaURLContext.java:160)
        at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:313)
        at javax.naming.InitialContext.lookup(InitialContext.java:351)
...
        at javax.naming.InitialContext.lookup(InitialContext.java:351)
        at com.sun.enterprise.util.InjectionManagerImpl._inject(InjectionManagerImpl.java:274)
        at com.sun.enterprise.util.InjectionManagerImpl.inject(InjectionManagerImpl.java:193)
Handler net.nanonation.rccl.handler.BiztalkClientMessageHandler instance injection failed : Exception attempting to inject Env-Prop: net.nanonation.rccl.service.NPFolioData/service_at_Field-Injectable Resource. Class name = net.nanonation.rccl.service.NPFolioData Field name=service_at_javax.jws.WebServiceRef@@@ into class net.nanonation.rccl.handler.BiztalkClientMessageHandler
Handler net.nanonation.rccl.handler.BiztalkClientMessageHandler instance injection failed : Exception attempting to inject Env-Prop: net.nanonation.rccl.service.NPFolioData/service_at_Field-Injectable Resource. Class name = net.nanonation.rccl.service.NPFolioData Field name=service_at_javax.jws.WebServiceRef@@@ into class net.nanonation.rccl.handler.BiztalkClientMessageHandler
Handler net.nanonation.rccl.handler.BiztalkClientMessageHandler instance injection failed : Exception attempting to inject Env-Prop: net.nanonation.rccl.service.NPFolioData/service_at_Field-Injectable Resource. Class name = net.nanonation.rccl.service.NPFolioData Field name=service_at_javax.jws.WebServiceRef@@@ into class net.nanonation.rccl.handler.BiztalkClientMessageHandler
Handler net.nanonation.rccl.handler.BiztalkClientMessageHandler instance injection failed : Exception attempting to inject Env-Prop: net.nanonation.rccl.service.NPFolioData/service_at_Field-Injectable Resource. Class name = net.nanonation.rccl.service.NPFolioData Field name=service_at_javax.jws.WebServiceRef@@@ into class net.nanonation.rccl.handler.BiztalkClientMessageHandler
java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
        at com.sun.enterprise.naming.NamingManagerImpl.initiateInstance(NamingManagerImpl.java:1025)
        at com.sun.enterprise.naming.NamingManagerImpl.getClientServiceObject(NamingManagerImpl.java:1068)
        at com.sun.enterprise.naming.NamingManagerImpl.lookup(NamingManagerImpl.java:930)
        at com.sun.enterprise.naming.java.javaURLContext.lookup(javaURLContext.java:160)
        at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:313)
        at javax.naming.InitialContext.lookup(InitialContext.java:351)
...
        at javax.naming.InitialContext.lookup(InitialContext.java:351)
        at com.sun.enterprise.util.InjectionManagerImpl._inject(InjectionManagerImpl.java:274)
        at com.sun.enterprise.util.InjectionManagerImpl.inject(InjectionManagerImpl.java:193)
        at com.sun.enterprise.util.InjectionManagerImpl.injectInstance(InjectionManagerImpl.java:87)
        at com.sun.enterprise.webservice.WsUtil.processConfiguredHandlers(WsUtil.java:2388)
Caused by: java.lang.StackOverflowError
        at java.lang.ClassLoader.findBootstrapClass(Native Method)
        at java.lang.ClassLoader.findBootstrapClass0(ClassLoader.java:891)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
        at com.sun.appserv.server.util.ASURLClassLoader.loadClass(ASURLClassLoader.java:131)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
        at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.parseInputBinding(RuntimeWSDLParser.java:489)
        at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.parseBindingOperation(RuntimeWSDLParser.java:446)
        at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.parseBinding(RuntimeWSDLParser.java:421)
        at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.parseWSDL(RuntimeWSDLParser.java:301)
        at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.parseWSDL(RuntimeWSDLParser.java:255)
        at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.parse(RuntimeWSDLParser.java:133)
        at com.sun.xml.ws.client.WSServiceDelegate.parseWSDL(WSServiceDelegate.java:222)
        at com.sun.xml.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:184)
        at com.sun.xml.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:159)
        at com.sun.xml.ws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:82)
        at javax.xml.ws.Service.<init>(Service.java:56)
        at net.nanonation.rccl.client.reservations.Reservations.<init>(Reservations.java:37)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
        at com.sun.enterprise.naming.NamingManagerImpl.initiateInstance(NamingManagerImpl.java:1025)
        at com.sun.enterprise.naming.NamingManagerImpl.getClientServiceObject(NamingManagerImpl.java:1068)
        at com.sun.enterprise.naming.NamingManagerImpl.lookup(NamingManagerImpl.java:930)
        at com.sun.enterprise.naming.java.javaURLContext.lookup(javaURLContext.java:160)
        at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:313)
        at javax.naming.InitialContext.lookup(InitialContext.java:351)
...
Handler net.nanonation.rccl.handler.BiztalkClientMessageHandler instance injection failed : Exception attempting to inject Env-Prop: net.nanonation.rccl.service.NPFinancial/service_at_Field-Injectable Resource. Class name = net.nanonation.rccl.service.NPFinancial Field name=service_at_javax.jws.WebServiceRef@@@ into class net.nanonation.rccl.handler.BiztalkClientMessageHandler
[Message sent by forum member 'pohl' (pohl)]

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