I am getting the NPE below trying to send from an InOutAsyncMessageReceiver. It is possible that the envelope may not be correctly put together, but without any more clues, it's not clear what may be causing the NPE, which seems to happen inside Axiom.
One thing to notice is that the code that invokes AxisEngine.send catches Throwable in addition to AxisFault, and nothing gets caught, so is also seems like the NPE is being swallowed somewhere and not being thrown back.
Any help is appreciated.
Thanks
Thread [pool-2-thread-2] (Suspended (exception NullPointerException))
InternalOutputBuffer.realWriteBytes(byte[], int, int) line: 746
ByteChunk.flushBuffer () line: 433
InternalOutputBuffer.flush() line: 304
Http11Processor.action(ActionCode, Object) line: 991
Response.action(ActionCode, Object) line: 182
OutputBuffer.doFlush(boolean) line: 322
OutputBuffer.flush() line: 293
CoyoteOutputStream.flush() line: 97
StreamEncoder$ConverterSE.implFlush() line: 290
StreamEncoder$ConverterSE(StreamEncoder).flush() line: 200
OutputStreamWriter.flush() line: 236
BufferedWriter.flush() line: 257
BufferingXmlWriter.flush() line: 184
SimpleNsStreamWriter(BaseStreamWriter).flush() line: 269
MTOMXMLStreamWriter.flush() line: 119
SOAPEnvelopeImpl(OMNodeImpl).serializeAndConsume(OutputStream, OMOutputFormat) line: 412
CommonsHTTPTransportSender.sendUsingOutputStream (MessageContext, OMOutputFormat, OMElement) line: 276
CommonsHTTPTransportSender.invoke(MessageContext) line: 210
AxisEngine.send(MessageContext) line: 642
Axis2ServiceCallbackTargetInvoker.invokeTarget (Object) line: 76
Axis2ServiceCallbackTargetInvoker.invoke(Message) line: 90
InvokerInterceptor.invoke(Message) line: 44
SynchronousBridgingInterceptor.invoke(Message) line: 41
DataBindingInteceptor.invoke(Message) line: 71
JDKCallbackInvocationHandler(AbstractOutboundInvocationHandler).invoke(OutboundInvocationChain, TargetInvoker, Object[]) line: 60
JDKCallbackInvocationHandler.invoke(Object, Method, Object[]) line: 71
$Proxy31.getGreetingsCallback(String) line: not available
HelloWorldImpl.getGreetings(String) line: 50
NativeMethodAccessorImpl.invoke0(Method, Object, Object[]) line: not available [native method]
NativeMethodAccessorImpl.invoke(Object, Object[]) line: 64
DelegatingMethodAccessorImpl.invoke (Object, Object[]) line: 43
Method.invoke(Object, Object...) line: 615
AsyncJavaTargetInvoker(PojoTargetInvoker).invokeTarget(Object
InternalOutputBuffer.realWriteBytes(byte[], int, int) line: 746
ByteChunk.flushBuffer () line: 433
InternalOutputBuffer.flush() line: 304
Http11Processor.action(ActionCode, Object) line: 991
Response.action(ActionCode, Object) line: 182
OutputBuffer.doFlush(boolean) line: 322
OutputBuffer.flush() line: 293
CoyoteOutputStream.flush() line: 97
StreamEncoder$ConverterSE.implFlush() line: 290
StreamEncoder$ConverterSE(StreamEncoder).flush() line: 200
OutputStreamWriter.flush() line: 236
BufferedWriter.flush() line: 257
BufferingXmlWriter.flush() line: 184
SimpleNsStreamWriter(BaseStreamWriter).flush() line: 269
MTOMXMLStreamWriter.flush() line: 119
SOAPEnvelopeImpl(OMNodeImpl).serializeAndConsume(OutputStream, OMOutputFormat) line: 412
CommonsHTTPTransportSender.sendUsingOutputStream (MessageContext, OMOutputFormat, OMElement) line: 276
CommonsHTTPTransportSender.invoke(MessageContext) line: 210
AxisEngine.send(MessageContext) line: 642
Axis2ServiceCallbackTargetInvoker.invokeTarget (Object) line: 76
Axis2ServiceCallbackTargetInvoker.invoke(Message) line: 90
InvokerInterceptor.invoke(Message) line: 44
SynchronousBridgingInterceptor.invoke(Message) line: 41
DataBindingInteceptor.invoke(Message) line: 71
JDKCallbackInvocationHandler(AbstractOutboundInvocationHandler).invoke(OutboundInvocationChain, TargetInvoker, Object[]) line: 60
JDKCallbackInvocationHandler.invoke(Object, Method, Object[]) line: 71
$Proxy31.getGreetingsCallback(String) line: not available
HelloWorldImpl.getGreetings(String) line: 50
NativeMethodAccessorImpl.invoke0(Method, Object, Object[]) line: not available [native method]
NativeMethodAccessorImpl.invoke(Object, Object[]) line: 64
DelegatingMethodAccessorImpl.invoke (Object, Object[]) line: 43
Method.invoke(Object, Object...) line: 615
AsyncJavaTargetInvoker(PojoTargetInvoker).invokeTarget(Object