1 Reply Latest reply on Jul 9, 2007 3:57 AM by paul williams

    NullPointerException in ServiceEndpointManagerFactory

    paul williams Newbie

      I'm currently running a fresh install of JBoss AS 4.2.0 and have installed JBossWS 1.2.1 using the installation notes i.e. via the Ant script.

      I've tried to run the examples that come with the 1.2.1 release but I keep getting a NullPointerException within the ServiceEndpointManagerFactory class:

      java.lang.NullPointerException
       org.jboss.ws.core.server.ServiceEndpointManagerFactory.getServiceEndpointManager(ServiceEndpointManagerFactory.java:52)
       org.jboss.ws.core.server.AbstractServiceEndpointServlet.initServiceEndpointManager(AbstractServiceEndpointServlet.java:135)
       org.jboss.ws.core.server.AbstractServiceEndpointServlet.init(AbstractServiceEndpointServlet.java:60)
       org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
       org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
       org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
       org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
       org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
       org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
       org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
       org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
       java.lang.Thread.run(Thread.java:619)
      
      


      It appears that the code is trying to obtain a KernelRegistry object but is failing:

      public ServiceEndpointManager getServiceEndpointManager()
       {
       KernelRegistry registry = KernelLocator.getKernel().getRegistry();
       KernelRegistryEntry entry = registry.getEntry(ServiceEndpointManager.BEAN_NAME);
       return (ServiceEndpointManager)entry.getTarget();
       }


      Does anyone know if this is an installation issue or a bug?

      Regards.