Discussion:
Geronimo.Axis2 NullPointerException GeronimoFactoryRegistry
Miika Kalske
2013-08-13 06:50:53 UTC
Permalink
Hi

I posted this first at wrong mailing list I guess, sorry if some of you see
this second time..

I am implementing a JAX-WS service that uses SOAP. I get the following
error message when I try to call the service:



org.apache.axis2.AxisFault: java.lang.NullPointerException

at
org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)

at
org.apache.axis2.jaxws.server.JAXWSMessageReceiver.receive(JAXWSMessageReceiver.java:250)

at
org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:181)

at
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:172)

at
org.apache.geronimo.axis2.pojo.POJOWebServiceContainer.processXMLRequest(POJOWebServiceContainer.java:144)

at
org.apache.geronimo.axis2.Axis2WebServiceContainer.processPOSTRequest(Axis2WebServiceContainer.java:390)

at
org.apache.geronimo.axis2.Axis2WebServiceContainer.doService2(Axis2WebServiceContainer.java:312)

at
org.apache.geronimo.axis2.Axis2WebServiceContainer.doService(Axis2WebServiceContainer.java:244)

at
org.apache.geronimo.axis2.Axis2WebServiceContainer.getWsdl(Axis2WebServiceContainer.java:191)

at
org.apache.geronimo.webservices.WebServiceContainerInvoker.service(WebServiceContainerInvoker.java:74)

at
org.apache.geronimo.webservices.POJOWebServiceServlet.service(POJOWebServiceServlet.java:79)

at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at
java.security.AccessController.doPrivileged(Native Method)

at
javax.security.auth.Subject.doAsPrivileged(Subject.java:517)

at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)

at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)

at
org.apache.geronimo.tomcat.security.SecurityValve.invoke(SecurityValve.java:131)

at
org.apache.geronimo.tomcat.security.jacc.JACCSecurityValve.invoke(JACCSecurityValve.java:54)

at
org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke(GeronimoStandardContext.java:420)

at
org.apache.geronimo.tomcat.valve.GeronimoBeforeAfterValve.invoke(GeronimoBeforeAfterValve.java:47)

at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)

at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555)

at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)

at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)

at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)

at
org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:396)

at
org.apache.geronimo.pool.ThreadPool$1.run(ThreadPool.java:214)

at
org.apache.geronimo.pool.ThreadPool$ContextClassLoaderRunnable.run(ThreadPool.java:344)

at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

at java.lang.Thread.run(Thread.java:662)

Caused by: javax.xml.ws.WebServiceException: java.lang.NullPointerException

at
org.apache.axis2.jaxws.ExceptionFactory.createWebServiceException(ExceptionFactory.java:175)

at
org.apache.axis2.jaxws.ExceptionFactory.makeWebServiceException(ExceptionFactory.java:70)

at
org.apache.axis2.jaxws.ExceptionFactory.makeWebServiceException(ExceptionFactory.java:128)

at
org.apache.axis2.jaxws.server.EndpointController.handleRequest(EndpointController.java:312)

at
org.apache.axis2.jaxws.server.EndpointController.invoke(EndpointController.java:103)

at
org.apache.axis2.jaxws.server.JAXWSMessageReceiver.receive(JAXWSMessageReceiver.java:169)

... 37 more

Caused by: java.lang.NullPointerException

at
org.apache.geronimo.axis2.GeronimoEndpointLifecycleManagerFactory.createEndpointLifecycleManager(GeronimoEndpointLifecycleManagerFactory.java:33)

at
org.apache.axis2.jaxws.server.ServiceInstanceFactoryImpl.createServiceInstance(ServiceInstanceFactoryImpl.java:48)

at
org.apache.axis2.jaxws.server.EndpointController.handleRequest(EndpointController.java:247)

... 39 more



I use geronimo version 2.2.1 and geronimo.axis2 version is also 2.2.1.

It seems like GeronimoFactoryRegistry is never set and therefore it's null
and causes this exception. I have virtual hosts setup with geronimo can
that have something to do with this? Or is this caused because I am missing
something from my geronimo setup?


Thanks in advance!

Loading...