You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Stefan Lischke (JIRA)" <ji...@apache.org> on 2008/05/07 16:30:55 UTC
[jira] Created: (AXIS2-3788) NPE in finally block in generate Stub
methods
NPE in finally block in generate Stub methods
---------------------------------------------
Key: AXIS2-3788
URL: https://issues.apache.org/jira/browse/AXIS2-3788
Project: Axis 2.0 (Axis2)
Issue Type: Bug
Components: codegen
Affects Versions: 1.4
Reporter: Stefan Lischke
The methods generated in the Stub have a try catch block
try{
}catch(org.apache.axis2.AxisFault f){
...
}
finally {
_messageContext.getTransportOut().getSender().cleanup(_messageContext);
}
A "org.apache.axis2.AxisFault: Transport out has not been set" is catched and
_messageContext.getTransportOut() is NULL
That results in an ugly NPE
--
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
[jira] Issue Comment Edited: (AXIS2-3788) NPE in finally block in
generate Stub methods
Posted by "Perriman (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-3788?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12668524#action_12668524 ]
chuchiperriman edited comment on AXIS2-3788 at 1/29/09 9:27 AM:
----------------------------------------------------------
First we get this error:
org.apache.axis2.AxisFault: Transport out has not been set
org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:435)
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:401)
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:228)
org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
Then the finally block try to do:
_messageContext.getTransportOut().getSender().cleanup(_messageContext);
but getTransportOut returns null
This bug is in 1.4.1 too
was (Author: chuchiperriman):
First we get this error:
org.apache.axis2.AxisFault: Transport out has not been set
org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:435)
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:401)
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:228)
org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
Then the finally block try to do:
_messageContext.getTransportOut().getSender().cleanup(_messageContext);
but getTransportOut returns null
> NPE in finally block in generate Stub methods
> ---------------------------------------------
>
> Key: AXIS2-3788
> URL: https://issues.apache.org/jira/browse/AXIS2-3788
> Project: Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: codegen
> Affects Versions: 1.4
> Reporter: Stefan Lischke
> Assignee: Amila Chinthaka Suriarachchi
>
> The methods generated in the Stub have a try catch block
> try{
> }catch(org.apache.axis2.AxisFault f){
> ...
> }
> finally {
> _messageContext.getTransportOut().getSender().cleanup(_messageContext);
> }
> A "org.apache.axis2.AxisFault: Transport out has not been set" is catched and
> _messageContext.getTransportOut() is NULL
> That results in an ugly NPE
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Issue Comment Edited: (AXIS2-3788) NPE in finally block in
generate Stub methods
Posted by "shpelda (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-3788?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12669892#action_12669892 ]
shpelda edited comment on AXIS2-3788 at 2/2/09 11:44 PM:
---------------------------------------------------------
there's a workaround available at http://mail-archives.apache.org/mod_mbox/ws-axis-user/200604.mbox/%3C7DEAA1ADB60C8046BDBC04273BDFF89BB4C399@s-osl-23-0031.corp.4tel.no%3E
It's for different issue but works for this one as well.
was (Author: shpelda):
there's a workaround available at http://mail-archives.apache.org/mod_mbox/ws-axis-user/200604.mbox/<7D...@s-osl-23-0031.corp.4tel.no>
It's for different issue but works for this one as well.
> NPE in finally block in generate Stub methods
> ---------------------------------------------
>
> Key: AXIS2-3788
> URL: https://issues.apache.org/jira/browse/AXIS2-3788
> Project: Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: codegen
> Affects Versions: 1.4
> Reporter: Stefan Lischke
> Assignee: Amila Chinthaka Suriarachchi
>
> The methods generated in the Stub have a try catch block
> try{
> }catch(org.apache.axis2.AxisFault f){
> ...
> }
> finally {
> _messageContext.getTransportOut().getSender().cleanup(_messageContext);
> }
> A "org.apache.axis2.AxisFault: Transport out has not been set" is catched and
> _messageContext.getTransportOut() is NULL
> That results in an ugly NPE
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (AXIS2-3788) NPE in finally block in generate Stub
methods
Posted by "Deepal Jayasinghe (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-3788?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Deepal Jayasinghe reassigned AXIS2-3788:
----------------------------------------
Assignee: Amila Chinthaka Suriarachchi
> NPE in finally block in generate Stub methods
> ---------------------------------------------
>
> Key: AXIS2-3788
> URL: https://issues.apache.org/jira/browse/AXIS2-3788
> Project: Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: codegen
> Affects Versions: 1.4
> Reporter: Stefan Lischke
> Assignee: Amila Chinthaka Suriarachchi
>
> The methods generated in the Stub have a try catch block
> try{
> }catch(org.apache.axis2.AxisFault f){
> ...
> }
> finally {
> _messageContext.getTransportOut().getSender().cleanup(_messageContext);
> }
> A "org.apache.axis2.AxisFault: Transport out has not been set" is catched and
> _messageContext.getTransportOut() is NULL
> That results in an ugly NPE
--
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
[jira] Commented: (AXIS2-3788) NPE in finally block in generate
Stub methods
Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-3788?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12668754#action_12668754 ]
Amila Chinthaka Suriarachchi commented on AXIS2-3788:
-----------------------------------------------------
Put a debug pointer and see whether you message serialize properly. Seems that some problem occurs before sending the message.
Or comment out this finally block and see what the real exception is.
> NPE in finally block in generate Stub methods
> ---------------------------------------------
>
> Key: AXIS2-3788
> URL: https://issues.apache.org/jira/browse/AXIS2-3788
> Project: Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: codegen
> Affects Versions: 1.4
> Reporter: Stefan Lischke
> Assignee: Amila Chinthaka Suriarachchi
>
> The methods generated in the Stub have a try catch block
> try{
> }catch(org.apache.axis2.AxisFault f){
> ...
> }
> finally {
> _messageContext.getTransportOut().getSender().cleanup(_messageContext);
> }
> A "org.apache.axis2.AxisFault: Transport out has not been set" is catched and
> _messageContext.getTransportOut() is NULL
> That results in an ugly NPE
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (AXIS2-3788) NPE in finally block in generate
Stub methods
Posted by "Perriman (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-3788?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12668524#action_12668524 ]
Perriman commented on AXIS2-3788:
---------------------------------
First we get this error:
org.apache.axis2.AxisFault: Transport out has not been set
org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:435)
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:401)
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:228)
org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
Then the finally block try to do:
_messageContext.getTransportOut().getSender().cleanup(_messageContext);
but getTransportOut returns null
> NPE in finally block in generate Stub methods
> ---------------------------------------------
>
> Key: AXIS2-3788
> URL: https://issues.apache.org/jira/browse/AXIS2-3788
> Project: Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: codegen
> Affects Versions: 1.4
> Reporter: Stefan Lischke
> Assignee: Amila Chinthaka Suriarachchi
>
> The methods generated in the Stub have a try catch block
> try{
> }catch(org.apache.axis2.AxisFault f){
> ...
> }
> finally {
> _messageContext.getTransportOut().getSender().cleanup(_messageContext);
> }
> A "org.apache.axis2.AxisFault: Transport out has not been set" is catched and
> _messageContext.getTransportOut() is NULL
> That results in an ugly NPE
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (AXIS2-3788) NPE in finally block in generate
Stub methods
Posted by "shpelda (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-3788?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12669892#action_12669892 ]
shpelda commented on AXIS2-3788:
--------------------------------
there's a workaround available at http://mail-archives.apache.org/mod_mbox/ws-axis-user/200604.mbox/<7D...@s-osl-23-0031.corp.4tel.no>
It's for different issue but works for this one as well.
> NPE in finally block in generate Stub methods
> ---------------------------------------------
>
> Key: AXIS2-3788
> URL: https://issues.apache.org/jira/browse/AXIS2-3788
> Project: Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: codegen
> Affects Versions: 1.4
> Reporter: Stefan Lischke
> Assignee: Amila Chinthaka Suriarachchi
>
> The methods generated in the Stub have a try catch block
> try{
> }catch(org.apache.axis2.AxisFault f){
> ...
> }
> finally {
> _messageContext.getTransportOut().getSender().cleanup(_messageContext);
> }
> A "org.apache.axis2.AxisFault: Transport out has not been set" is catched and
> _messageContext.getTransportOut() is NULL
> That results in an ugly NPE
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.