cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "willem Jiang (JIRA)" <j...@apache.org>
Subject [jira] Created: (CXF-1552) When publish the endpoint by using Serlvet transport without the spring , get the NPE for injecting the bus resource to JMSTransportFactory
Date Sun, 27 Apr 2008 14:20:55 GMT
When publish the endpoint by using Serlvet transport without the spring , get the NPE for injecting
the bus resource to JMSTransportFactory
-------------------------------------------------------------------------------------------------------------------------------------------

                 Key: CXF-1552
                 URL: https://issues.apache.org/jira/browse/CXF-1552
             Project: CXF
          Issue Type: Bug
          Components: Transports
    Affects Versions: 2.0.5, 2.0.4, 2.0.3
            Reporter: willem Jiang
            Assignee: willem Jiang
             Fix For: 2.1.1


{code}
public class AbcCxfServlet extends CXFNonSpringServlet {

    public void init(ServletConfig servletConfig) throws ServletException {
        super.init(servletConfig);
        Bus bus = this.getBus();
        BusFactory.setDefaultBus(bus);
	  Endpoint.publish("/users", new HelloWorldImpl());
    }
}
{code}
   

SEVERE: an AnnotationVisitor (org.apache.cxf.common.injection.ResourceInjector@aeea66) raised
an exception on element public void org.apache.cxf.transport.jms.JMSTransportFactory.setBus(org.apache.cxf.Bus).
java.lang.NullPointerException
        at javax.naming.InitialContext.getURLScheme(InitialContext.java:228)
        at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:277)
        at javax.naming.InitialContext.lookup(InitialContext.java:351)
        at org.apache.cxf.transport.servlet.ServletContextResourceResolver.resolve(ServletContextResourceResolver.java:62)
        at org.apache.cxf.resource.DefaultResourceManager.findResource(DefaultResourceManager.java:99)
        at org.apache.cxf.resource.DefaultResourceManager.resolveResource(DefaultResourceManager.java:55)
        at org.apache.cxf.common.injection.ResourceInjector.resolveResource(ResourceInjector.java:401)
        at org.apache.cxf.common.injection.ResourceInjector.visitMethod(ResourceInjector.java:185)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.cxf.common.annotation.AnnotationProcessor.visitAnnotatedElement(AnnotationProcessor.java:131)
        at org.apache.cxf.common.annotation.AnnotationProcessor.processMethods(AnnotationProcessor.java:103)
        at org.apache.cxf.common.annotation.AnnotationProcessor.accept(AnnotationProcessor.java:90)
        at org.apache.cxf.common.injection.ResourceInjector.inject(ResourceInjector.java:81)
        at org.apache.cxf.common.injection.ResourceInjector.inject(ResourceInjector.java:76)
        at org.apache.cxf.bus.extension.ExtensionManagerImpl.loadAndRegister(ExtensionManagerImpl.java:165)
        at org.apache.cxf.bus.extension.ExtensionManagerImpl.activateViaNS(ExtensionManagerImpl.java:86)
        at org.apache.cxf.bus.extension.ExtensionManagerImpl.activateAll(ExtensionManagerImpl.java:94)
        at org.apache.cxf.bus.extension.DeferredMap.undefer(DeferredMap.java:36)
        at org.apache.cxf.transport.DestinationFactoryManagerImpl.getDestinationFactoryForUri(DestinationFactoryManagerImpl.java:127)
        at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpointInfo(AbstractWSDLBasedEndpointFactory.java:155)
        at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:97)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message