[Axis2] NPE in HttpCoreNIOSender
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.processSessi onRequests(DefaultConnectingIOReactor.java:249) at org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor.execute (DefaultConnectingIOReactor.java:109) at org.apache.axis2.transport.nhttp.HttpCoreNIOSender.executeClientEngine (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]
Re: [Axis2] NPE in HttpCoreNIOSender
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.processSessionRequests(DefaultConnectingIOReactor.java:249) at org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor.execute(DefaultConnectingIOReactor.java:109) at org.apache.axis2.transport.nhttp.HttpCoreNIOSender.executeClientEngine(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]
Re: [Axis2] NPE in HttpCoreNIOSender
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.processSe ssionRequests(DefaultConnectingIOReactor.java:249) at org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor.execute (DefaultConnectingIOReactor.java:109) at org.apache.axis2.transport.nhttp.HttpCoreNIOSender.executeClientEngin e(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]
Re: [Axis2] NPE in HttpCoreNIOSender
Michele You might want to check the latest Synapse code from the QA 1.1.1 build. I know that Asankha usually prototypes his improvements in Synapse first and then ports them over to Axis2. Paul On Jan 10, 2008 1:57 PM, Michele Mazzucco [EMAIL PROTECTED] wrote: 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.processSe ssionRequests(DefaultConnectingIOReactor.java:249) at org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor.execute (DefaultConnectingIOReactor.java:109) at org.apache.axis2.transport.nhttp.HttpCoreNIOSender.executeClientEngin e(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] -- Paul Fremantle Co-Founder and VP of Technical Sales, WSO2 OASIS WS-RX TC Co-chair blog: http://pzf.fremantle.org [EMAIL PROTECTED] Oxygenating the Web Service Platform, www.wso2.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Axis2] NPE in HttpCoreNIOSender
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.processSessionRequests(DefaultConnectingIOReactor.java:249) at org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor.execute(DefaultConnectingIOReactor.java:109) at org.apache.axis2.transport.nhttp.HttpCoreNIOSender.executeClientEngine(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]
Re: [Axis2] NPE in HttpCoreNIOSender
On 10 Jan 2008, at 14:59, Andreas Veithen wrote: 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? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Axis2] NPE in HttpCoreNIOSender
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.process SessionRequests(DefaultConnectingIOReactor.java:249) at org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor.execute (DefaultConnectingIOReactor.java:109) at org.apache.axis2.transport.nhttp.HttpCoreNIOSender.executeClientEng ine(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]
Re: [Axis2] NPE in HttpCoreNIOSender
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.processSessionRequests(DefaultConnectingIOReactor.java:249) at org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor.execute(DefaultConnectingIOReactor.java:109) at org.apache.axis2.transport.nhttp.HttpCoreNIOSender.executeClientEngine(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]
Re: [Axis2] NPE in HttpCoreNIOSender
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.proce ssSessionRequests(DefaultConnectingIOReactor.java:249) at org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor.execu te(DefaultConnectingIOReactor.java:109) at org.apache.axis2.transport.nhttp.HttpCoreNIOSender.executeClientE ngine(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]
Re: [Axis2] NPE in HttpCoreNIOSender
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]
Re: [Axis2] NPE in HttpCoreNIOSender
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]
Re: [Axis2] NPE in HttpCoreNIOSender
Hi Michele , Will you be able to contribute that test case to Axis2 , may be you could create a JIRA and attach the test case :) -Deepal 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.processSessionRequests(DefaultConnectingIOReactor.java:249) at org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor.execute(DefaultConnectingIOReactor.java:109) at org.apache.axis2.transport.nhttp.HttpCoreNIOSender.executeClientEngine(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]