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 "Roy A. Wood Jr. (JIRA)" <ji...@apache.org> on 2007/07/16 21:46:04 UTC

[jira] Created: (AXIS2-2975) Enable AxisFault to display correct 'caused by' exception

Enable AxisFault to display correct 'caused by' exception
---------------------------------------------------------

                 Key: AXIS2-2975
                 URL: https://issues.apache.org/jira/browse/AXIS2-2975
             Project: Axis 2.0 (Axis2)
          Issue Type: Improvement
          Components: jaxws, kernel
            Reporter: Roy A. Wood Jr.


When an application throws an exception, the JAXWSMessageReceiver
throws a new exception which does not include as it's initalCause
the initial exception. This is done by the following code:
  faultToReturn = new AxisFault("An error was detected during JAXWS processing",
                                          axisResponseMsgCtx);

This results in the following logging data which is totally uninformative and doesn't make clear
that the exception came from user code, nor will it help them debug their application
(note, the application exception is not output to SystemOut or SystemErr)

The original exception caught from the user application should be retained and set as the
initial cause on the new AxisFault so that exception will be outputted.

This fix will allow the original 'caused by' exception to be captured and retained for logging purposes

-- 
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] Work stopped: (AXIS2-2975) Enable AxisFault to display correct 'caused by' exception

Posted by "Rich Scheuerle (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-2975?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Work on AXIS2-2975 stopped by Rich Scheuerle.

> Enable AxisFault to display correct 'caused by' exception
> ---------------------------------------------------------
>
>                 Key: AXIS2-2975
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2975
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Improvement
>          Components: jaxws, kernel
>            Reporter: Roy A. Wood Jr.
>            Assignee: Rich Scheuerle
>         Attachments: patch_to_2464_1.txt, patch_to_2464_2.txt
>
>
> When an application throws an exception, the JAXWSMessageReceiver
> throws a new exception which does not include as it's initalCause
> the initial exception. This is done by the following code:
>   faultToReturn = new AxisFault("An error was detected during JAXWS processing",
>                                           axisResponseMsgCtx);
> This results in the following logging data which is totally uninformative and doesn't make clear
> that the exception came from user code, nor will it help them debug their application
> (note, the application exception is not output to SystemOut or SystemErr)
> The original exception caught from the user application should be retained and set as the
> initial cause on the new AxisFault so that exception will be outputted.
> This fix will allow the original 'caused by' exception to be captured and retained for logging purposes

-- 
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] Closed: (AXIS2-2975) Enable AxisFault to display correct 'caused by' exception

Posted by "Roy A. Wood Jr. (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-2975?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Roy A. Wood Jr. closed AXIS2-2975.
----------------------------------


> Enable AxisFault to display correct 'caused by' exception
> ---------------------------------------------------------
>
>                 Key: AXIS2-2975
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2975
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Improvement
>          Components: jaxws, kernel
>            Reporter: Roy A. Wood Jr.
>            Assignee: Rich Scheuerle
>         Attachments: patch_to_2464_1.txt, patch_to_2464_2.txt
>
>
> When an application throws an exception, the JAXWSMessageReceiver
> throws a new exception which does not include as it's initalCause
> the initial exception. This is done by the following code:
>   faultToReturn = new AxisFault("An error was detected during JAXWS processing",
>                                           axisResponseMsgCtx);
> This results in the following logging data which is totally uninformative and doesn't make clear
> that the exception came from user code, nor will it help them debug their application
> (note, the application exception is not output to SystemOut or SystemErr)
> The original exception caught from the user application should be retained and set as the
> initial cause on the new AxisFault so that exception will be outputted.
> This fix will allow the original 'caused by' exception to be captured and retained for logging purposes

-- 
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] Updated: (AXIS2-2975) Enable AxisFault to display correct 'caused by' exception

Posted by "Roy A. Wood Jr. (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-2975?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Roy A. Wood Jr. updated AXIS2-2975:
-----------------------------------

    Attachment: patch_to_2464_2.txt

Attach this patch as part 2 of the fix (dependent on part 1)

> Enable AxisFault to display correct 'caused by' exception
> ---------------------------------------------------------
>
>                 Key: AXIS2-2975
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2975
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Improvement
>          Components: jaxws, kernel
>            Reporter: Roy A. Wood Jr.
>         Attachments: patch_to_2464_1.txt, patch_to_2464_2.txt
>
>
> When an application throws an exception, the JAXWSMessageReceiver
> throws a new exception which does not include as it's initalCause
> the initial exception. This is done by the following code:
>   faultToReturn = new AxisFault("An error was detected during JAXWS processing",
>                                           axisResponseMsgCtx);
> This results in the following logging data which is totally uninformative and doesn't make clear
> that the exception came from user code, nor will it help them debug their application
> (note, the application exception is not output to SystemOut or SystemErr)
> The original exception caught from the user application should be retained and set as the
> initial cause on the new AxisFault so that exception will be outputted.
> This fix will allow the original 'caused by' exception to be captured and retained for logging purposes

-- 
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] Assigned: (AXIS2-2975) Enable AxisFault to display correct 'caused by' exception

Posted by "Rich Scheuerle (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-2975?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rich Scheuerle reassigned AXIS2-2975:
-------------------------------------

    Assignee: Rich Scheuerle

> Enable AxisFault to display correct 'caused by' exception
> ---------------------------------------------------------
>
>                 Key: AXIS2-2975
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2975
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Improvement
>          Components: jaxws, kernel
>            Reporter: Roy A. Wood Jr.
>            Assignee: Rich Scheuerle
>         Attachments: patch_to_2464_1.txt, patch_to_2464_2.txt
>
>
> When an application throws an exception, the JAXWSMessageReceiver
> throws a new exception which does not include as it's initalCause
> the initial exception. This is done by the following code:
>   faultToReturn = new AxisFault("An error was detected during JAXWS processing",
>                                           axisResponseMsgCtx);
> This results in the following logging data which is totally uninformative and doesn't make clear
> that the exception came from user code, nor will it help them debug their application
> (note, the application exception is not output to SystemOut or SystemErr)
> The original exception caught from the user application should be retained and set as the
> initial cause on the new AxisFault so that exception will be outputted.
> This fix will allow the original 'caused by' exception to be captured and retained for logging purposes

-- 
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] Work started: (AXIS2-2975) Enable AxisFault to display correct 'caused by' exception

Posted by "Rich Scheuerle (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-2975?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Work on AXIS2-2975 started by Rich Scheuerle.

> Enable AxisFault to display correct 'caused by' exception
> ---------------------------------------------------------
>
>                 Key: AXIS2-2975
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2975
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Improvement
>          Components: jaxws, kernel
>            Reporter: Roy A. Wood Jr.
>            Assignee: Rich Scheuerle
>         Attachments: patch_to_2464_1.txt, patch_to_2464_2.txt
>
>
> When an application throws an exception, the JAXWSMessageReceiver
> throws a new exception which does not include as it's initalCause
> the initial exception. This is done by the following code:
>   faultToReturn = new AxisFault("An error was detected during JAXWS processing",
>                                           axisResponseMsgCtx);
> This results in the following logging data which is totally uninformative and doesn't make clear
> that the exception came from user code, nor will it help them debug their application
> (note, the application exception is not output to SystemOut or SystemErr)
> The original exception caught from the user application should be retained and set as the
> initial cause on the new AxisFault so that exception will be outputted.
> This fix will allow the original 'caused by' exception to be captured and retained for logging purposes

-- 
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] Updated: (AXIS2-2975) Enable AxisFault to display correct 'caused by' exception

Posted by "Roy A. Wood Jr. (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-2975?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Roy A. Wood Jr. updated AXIS2-2975:
-----------------------------------

    Attachment: patch_to_2464_1.txt

Attach this patch as part 1 the fix (dependent on part 2)

> Enable AxisFault to display correct 'caused by' exception
> ---------------------------------------------------------
>
>                 Key: AXIS2-2975
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2975
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Improvement
>          Components: jaxws, kernel
>            Reporter: Roy A. Wood Jr.
>         Attachments: patch_to_2464_1.txt, patch_to_2464_2.txt
>
>
> When an application throws an exception, the JAXWSMessageReceiver
> throws a new exception which does not include as it's initalCause
> the initial exception. This is done by the following code:
>   faultToReturn = new AxisFault("An error was detected during JAXWS processing",
>                                           axisResponseMsgCtx);
> This results in the following logging data which is totally uninformative and doesn't make clear
> that the exception came from user code, nor will it help them debug their application
> (note, the application exception is not output to SystemOut or SystemErr)
> The original exception caught from the user application should be retained and set as the
> initial cause on the new AxisFault so that exception will be outputted.
> This fix will allow the original 'caused by' exception to be captured and retained for logging purposes

-- 
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] Resolved: (AXIS2-2975) Enable AxisFault to display correct 'caused by' exception

Posted by "Rich Scheuerle (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-2975?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rich Scheuerle resolved AXIS2-2975.
-----------------------------------

    Resolution: Fixed

Thanks Roy !

Revision=556750

> Enable AxisFault to display correct 'caused by' exception
> ---------------------------------------------------------
>
>                 Key: AXIS2-2975
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2975
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Improvement
>          Components: jaxws, kernel
>            Reporter: Roy A. Wood Jr.
>            Assignee: Rich Scheuerle
>         Attachments: patch_to_2464_1.txt, patch_to_2464_2.txt
>
>
> When an application throws an exception, the JAXWSMessageReceiver
> throws a new exception which does not include as it's initalCause
> the initial exception. This is done by the following code:
>   faultToReturn = new AxisFault("An error was detected during JAXWS processing",
>                                           axisResponseMsgCtx);
> This results in the following logging data which is totally uninformative and doesn't make clear
> that the exception came from user code, nor will it help them debug their application
> (note, the application exception is not output to SystemOut or SystemErr)
> The original exception caught from the user application should be retained and set as the
> initial cause on the new AxisFault so that exception will be outputted.
> This fix will allow the original 'caused by' exception to be captured and retained for logging purposes

-- 
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