3 Replies Latest reply on Mar 5, 2009 9:47 AM by Ken Ringdahl

    What could cause a null Endpoint?

    Ken Ringdahl Newbie

      I'm creating a new web service using JBoss 4.2.3.GA with the WS 3.0.5.GA CXF stack. The call is coming in correctly but I'm getting a NPE because of a null endpoint. The stack trace is below. I've dropped in to the debugger and verified what was already obvious that the endpoint was not being set. My question is what could cause this? Am I missing an import or maybe something else form the endpoint config? FWIW, this web service is configured via Spring. The service is bound correctly:

      2009-01-20 17:10:17,461 INFO [org.apache.cxf.service.factory.ReflectionServiceFactoryBean] Creating Service {http://hostmanager.service.virtualizationmanager.desktone.com/}VMgrService from class com.desktone.virtualizationmanager.service.hostmanager.VMgrService
      2009-01-20 17:10:22,843 INFO [org.apache.cxf.endpoint.ServerImpl] Setting the server's publish address to be /VMgrService
      


      And if I hit the URL with a ?wsdl on the end , I do get my wsdl definition back. Here is the endpoint configuration in my application context file:

      <?xml version="1.0" encoding="UTF-8"?>
      
      <beans
       xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:jaxws="http://cxf.apache.org/jaxws"
       xsi:schemaLocation="
       http://cxf.apache.org/jaxws
       http://cxf.apache.org/schemas/jaxws.xsd
       http://www.springframework.org/schema/beans
       http://www.springframework.org/schema/beans/spring-beans.xsd">
      
       <import resource="classpath:META-INF/cxf/cxf.xml" />
       <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
       <import resource="classpath:META-INF/cxf/cxf-servlet.xml" />
      
       <jaxws:endpoint id="VMgrService" address="/VMgrService" implementor="#vMgrServiceImpl">
       <jaxws:invoker>
       <bean class='org.jboss.wsf.stack.cxf.InvokerJSE' />
       </jaxws:invoker>
       </jaxws:endpoint>
      
      </beans>
      


      The referenced Spring bean "vMgrServiceImpl" is in another application context file

      Here is the exception:

      2009-01-20 17:16:26,256 INFO [org.apache.cxf.phase.PhaseInterceptorChain] Interceptor has thrown exception, unwinding now
      java.lang.NullPointerException
       at org.jboss.wsf.stack.cxf.AbstractInvoker.invoke(AbstractInvoker.java:98)
       at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:56)
       at org.apache.cxf.workqueue.SynchronousExecutor.execute(SynchronousExecutor.java:37)
       at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:92)
       at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:221)
       at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:78)
       at org.apache.cxf.transport.servlet.ServletDestination.invoke(ServletDestination.java:92)
       at org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:214)
       at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:151)
       at org.apache.cxf.transport.servlet.AbstractCXFServlet.invoke(AbstractCXFServlet.java:170)
       at org.apache.cxf.transport.servlet.AbstractCXFServlet.doPost(AbstractCXFServlet.java:148)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
       at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:96)
       at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
       at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
       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:230)
       at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
       at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
       at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
       at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
       at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
       at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
       at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
       at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
       at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
       at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
       at java.lang.Thread.run(Thread.java:619)