Andreas,
it's very odd indeed -- the exception does not occur every time (it
suggests me that is a concurrency problem).
I'm not testing a deployed service, so I really don't know what
getMessageReceiver() should return.
Michele
On 10 Jan 2008, at 19:32, Andreas Veithen wrote:
Michele,
This would mean that mc.getAxisOperation().getMessageReceiver()
returns null. I don't know the code very well, but this seems
indeed strange. Can you also post your unit test?
Andreas
On 10 Jan 2008, at 19:14, Michele Mazzucco wrote:
mr.receive(nioFaultMessageContext);
On 10 Jan 2008, at 16:45, Andreas Veithen wrote:
Michele,
Can you post the code at line 442 in HttpCoreNIOSender.java that
triggers the error?
Andreas
Quoting Michele Mazzucco <[EMAIL PROTECTED]>:
Andreas,
it must be a concurrency-related problem because I cannot
reproduce it
when I execute instructions step-by-step with the debugger.
Michele
On 10 Jan 2008, at 14:59, Andreas Veithen wrote:
Hi Mechele,
This issue is indeed strictly related to connection timeouts.
I remember that there were other issues with NPEs in
HTTPCoreNIOSender. These were resolved in the meantime, but
probably those corrections have not yet been propagated to Axis2.
It would be interesting to know which variable is actually null
in the handleError method. Do you think that you will be able
to check this?
Regards,
Andreas
Quoting Michele Mazzucco <[EMAIL PROTECTED]>:
Andreas,
my problem looks quite similar to JIRA Synapse-205 [1], the
difference
is that the second row of the stack trace is "failed" and not
"timeout".
Michele
[1] http://issues.apache.org/jira/browse/SYNAPSE-205
On 10 Jan 2008, at 13:23, Andreas Veithen wrote:
Hi Michele!
I think the NIO HTTP code in Axis2 actually comes from the
Apache Synapse project. There were several issues about
NPEs reported for Synapse. Maybe you can search the JIRA
issues to see if your particular issue has already been
solved in Synapse.
Regards,
Andreas
Quoting Michele Mazzucco <[EMAIL PROTECTED]>:
Hi all,
I'm unit testing some code and I see a NPE in the
HTTPCoreNIOSender.
The stack trace is the following:
Exception in thread "HttpCoreNIOSender"
java.lang.NullPointerException
at
org.apache.axis2.transport.nhttp.HttpCoreNIOSender
$2.handleError(HttpCoreNIOSender.java:442)
at
org.apache.axis2.transport.nhttp.HttpCoreNIOSender$2.failed
(HttpCoreNIOSender.java:412)
at
org.apache.http.impl.nio.reactor.SessionRequestImpl.failed
(SessionRequestImpl.java:139)
at
org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor.pro
cessSessionRequests(DefaultConnectingIOReactor.java:249)
at
org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor.exe
cute(DefaultConnectingIOReactor.java:109)
at
org.apache.axis2.transport.nhttp.HttpCoreNIOSender.executeClien
tEngine(HttpCoreNIOSender.java:127)
at
org.apache.axis2.transport.nhttp.HttpCoreNIOSender.access$000
(HttpCoreNIOSender.java:69)
at
org.apache.axis2.transport.nhttp.HttpCoreNIOSender$1.run
(HttpCoreNIOSender.java:102)
at java.lang.Thread.run(Thread.java:613)
Any idea?
Michele
---------------------------------------------------------------
------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
----------------------------------------------------------------
-----
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-----------------------------------------------------------------
----
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
------------------------------------------------------------------
---
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-------------------------------------------------------------------
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]