axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anne Thomas Manes" <atma...@gmail.com>
Subject Re: Exception in thread "main" org.apache.axis2.AxisFault: java.lang.NullPointerException
Date Tue, 29 Aug 2006 13:16:14 GMT
More information, please:
- WSDL
- configuration

On 8/29/06, Eric Chow <eric138@gmail.com> wrote:
> What caused the following error ?
>
>
>
> package test.client;
>
> import java.util.Calendar;
>
> import org.apache.axis2.databinding.ADBBean;
>
> import test.gen.EchoserviceStub;
> import test.service.xsd.Echo;
> import test.service.xsd.EchoResponse;
> import test.service.xsd.User;
>
>
>
> /**
>  * Client.java
>  *
>  * @author Chao Hoi Ka, Eric
>  *
>  */
> public class Client {
>          public static void main(String[] args) throws Exception {
>                  EchoserviceStub stub = new EchoserviceStub();
>                  Echo echo = (Echo)((ADBBean)Echo.class.newInstance());
>
>
>                  User u = (User)((ADBBean)User.class.newInstance());
>                  u.setName("Eric");
>                  u.setBirth(Calendar.getInstance());
>
>                  echo.setU(u);
>
>
>                 EchoResponse resp = stub.echo(echo);
>             }
>
> }
>
>
>
>
>
> og4j:WARN No appenders could be found for logger
> (org.apache.axiom.om.impl.builder.StAXOMBuilder).
> log4j:WARN Please initialize the log4j system properly.
> Exception in thread "main" org.apache.axis2.AxisFault:
> java.lang.NullPointerException
>         at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:287)
>         at test.gen.EchoserviceStub.echo(EchoserviceStub.java:133)
>         at test.client.Client.main(Client.java:40)
> Caused by: java.lang.Exception: org.apache.axis2.AxisFault:
> java.lang.NullPointerException; nested exception is:
>         org.apache.axiom.om.OMException: java.lang.NullPointerException
>         at org.apache.axis2.AxisFault.makeFault(AxisFault.java:318)
>         at org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:136)
>         at org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(AbstractInOutSyncMessageReceiver.java:37)
>         at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:454)
>         at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284)
>         at org.apache.axis2.transport.http.HTTPWorker.processRequest(HTTPWorker.java:255)
>         at org.apache.axis2.transport.http.server.SimpleConnectionThread.run(SimpleConnectionThread.java:92)
>         at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
>         at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
>         at java.lang.Thread.run(Thread.java:595)
> Caused by: org.apache.axiom.om.OMException: java.lang.NullPointerException
>         at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:206)
>         at org.apache.axiom.om.impl.llom.OMNodeImpl.build(OMNodeImpl.java:298)
>         at org.apache.axiom.om.impl.llom.OMElementImpl.detach(OMElementImpl.java:584)
>         at org.apache.axiom.om.impl.llom.OMNodeImpl.setParent(OMNodeImpl.java:118)
>         at org.apache.axiom.om.impl.llom.OMElementImpl.addChild(OMElementImpl.java:240)
>         at org.apache.axiom.om.impl.llom.OMElementImpl.addChild(OMElementImpl.java:197)
>         at org.apache.axis2.rpc.receivers.RPCUtil.processResponse(RPCUtil.java:71)
>         at org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:130)
>         ... 8 more
> Caused by: java.lang.NullPointerException
>         at org.apache.axis2.databinding.utils.reader.WrappingXMLStreamReader.getEventType(WrappingXMLStreamReader.java:141)
>         at org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl.processProperties(ADBXMLStreamReaderImpl.java:964)
>         at org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl.next(ADBXMLStreamReaderImpl.java:807)
>         at org.apache.axis2.util.StreamWrapper.next(StreamWrapper.java:68)
>         at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:123)
>         ... 15 more
>
>         at org.apache.axis2.AxisFault.<init>(AxisFault.java:159)
>         ... 3 more
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>

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


Mime
View raw message