axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alex Boisvert (JIRA)" <j...@apache.org>
Subject [jira] Created: (AXIS2-3219) NPE in LocalTransportReceiver.processMessage()
Date Thu, 20 Sep 2007 22:03:57 GMT
NPE in LocalTransportReceiver.processMessage() 
-----------------------------------------------

                 Key: AXIS2-3219
                 URL: https://issues.apache.org/jira/browse/AXIS2-3219
             Project: Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: transports
            Reporter: Alex Boisvert
             Fix For: 1.4


I tried to invoke a service through the local transport and got:

java.lang.NullPointerException
        at org.apache.axis2.transport.local.LocalTransportReceiver.processMessage(LocalTransportReceiver.java:58)
        at org.apache.axis2.transport.local.LocalTransportSender.finalizeSendWithToAddress(LocalTransportSender.java:112)
        at org.apache.axis2.transport.local.LocalTransportSender.invoke(LocalTransportSender.java:87)
        at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:396)
        at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:374)
        at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:211)
        at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
        at org.apache.ode.axis2.ExternalService$1$1.call(ExternalService.java:150)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
        at java.util.concurrent.FutureTask.run(FutureTask.java:123)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
        at java.lang.Thread.run(Thread.java:595)

Looking at the code (trunk r577941),

public class LocalTransportReceiver {
    public static ConfigurationContext CONFIG_CONTEXT;
    private ConfigurationContext confContext;
    private LocalTransportSender sender;

    public LocalTransportReceiver(ConfigurationContext configContext) {
        confContext = configContext;
    }

    public LocalTransportReceiver(LocalTransportSender sender) {
        this(CONFIG_CONTEXT);
        this.sender = sender;
    }

    // REST OF CLASS NOT INCLUDED
}

It doesn't look like CONFIG_CONTEXT is being initalized, and I would expect the current ConfigurationContext
to be supplied by the LocalTransportSender.


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


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Mime
View raw message