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 "Samuel Isokpunwu (JIRA)" <ji...@apache.org> on 2006/07/18 22:01:13 UTC

[jira] Created: (AXIS2-905) An ExceptionFactory implementation

An ExceptionFactory implementation
----------------------------------

                 Key: AXIS2-905
                 URL: http://issues.apache.org/jira/browse/AXIS2-905
             Project: Apache Axis 2.0 (Axis2)
          Issue Type: Improvement
          Components: jaxws
    Affects Versions: 1.0
            Reporter: Samuel Isokpunwu


Working on implementing an ExceptionFactory class that will wrap the JAXWS WebServiceException to eliminate any possible nested exception between WebServiceException and the root cause exception. The wrapper will also allow for easy addition of any useful information to facilitate traceability and serviceability.

An example Usage:
           //implementing class example
           public class Foo{
             //Optional global initialization
             private ExceptionFactory ef [ = ExceptionFactory.instance(this, propertyFile) ];
             
             public Foo(){
                //Optionally, can choose to create or initialize the ExceptionFactory global variable from the
                //constructor
                ef = ExceptionFactory.instance(this, propertyFile);
             }
             ---
             ---
             public fooMethod(){
                try{
                   throw ef.webServiceException([message | key]);
                }
                catch(Exception e){
                   throw ef.webServiceException(e, [message | key]);
                }
             }
             ---
             ---
          }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Assigned: (AXIS2-905) An ExceptionFactory implementation

Posted by "Rich Scheuerle (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2-905?page=all ]

Rich Scheuerle reassigned AXIS2-905:
------------------------------------

    Assignee: Rich Scheuerle

> An ExceptionFactory implementation
> ----------------------------------
>
>                 Key: AXIS2-905
>                 URL: http://issues.apache.org/jira/browse/AXIS2-905
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Improvement
>          Components: jaxws
>    Affects Versions: 1.0
>            Reporter: Samuel Isokpunwu
>         Assigned To: Rich Scheuerle
>         Attachments: ExceptionFactoryPatch.txt
>
>
> Working on implementing an ExceptionFactory class that will wrap the JAXWS WebServiceException to eliminate any possible nested exception between WebServiceException and the root cause exception. The wrapper will also allow for easy addition of any useful information to facilitate traceability and serviceability.
> An example Usage:
>            //implementing class example
>            public class Foo{
>              //Optional global initialization
>              private ExceptionFactory ef [ = ExceptionFactory.instance(this, propertyFile) ];
>              
>              public Foo(){
>                 //Optionally, can choose to create or initialize the ExceptionFactory global variable from the
>                 //constructor
>                 ef = ExceptionFactory.instance(this, propertyFile);
>              }
>              ---
>              ---
>              public fooMethod(){
>                 try{
>                    throw ef.webServiceException([message | key]);
>                 }
>                 catch(Exception e){
>                    throw ef.webServiceException(e, [message | key]);
>                 }
>              }
>              ---
>              ---
>           }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Commented: (AXIS2-905) An ExceptionFactory implementation

Posted by "Rich Scheuerle (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-905?page=comments#action_12422452 ] 
            
Rich Scheuerle commented on AXIS2-905:
--------------------------------------

Sam and I are working on this and it should be ready in a few minutes.

Here are the major points.

1) All JAX-WS WebServiceExceptions will be created using the ExceptionFactory.  This will give us a single point of control; thus helping us with serviceability and logging.
2) The ExceptionFactory will have similar concepts as AxisFault.makeFault.  For example, it will examine the root cause chain and return an exisiting WebServiceException.  It will also smartly walk over TargetInvocationException and AxisFaults that are in the chain.

Thanks,
scheu

> An ExceptionFactory implementation
> ----------------------------------
>
>                 Key: AXIS2-905
>                 URL: http://issues.apache.org/jira/browse/AXIS2-905
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Improvement
>          Components: jaxws
>    Affects Versions: 1.0
>            Reporter: Samuel Isokpunwu
>         Assigned To: Rich Scheuerle
>
> Working on implementing an ExceptionFactory class that will wrap the JAXWS WebServiceException to eliminate any possible nested exception between WebServiceException and the root cause exception. The wrapper will also allow for easy addition of any useful information to facilitate traceability and serviceability.
> An example Usage:
>            //implementing class example
>            public class Foo{
>              //Optional global initialization
>              private ExceptionFactory ef [ = ExceptionFactory.instance(this, propertyFile) ];
>              
>              public Foo(){
>                 //Optionally, can choose to create or initialize the ExceptionFactory global variable from the
>                 //constructor
>                 ef = ExceptionFactory.instance(this, propertyFile);
>              }
>              ---
>              ---
>              public fooMethod(){
>                 try{
>                    throw ef.webServiceException([message | key]);
>                 }
>                 catch(Exception e){
>                    throw ef.webServiceException(e, [message | key]);
>                 }
>              }
>              ---
>              ---
>           }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Updated: (AXIS2-905) An ExceptionFactory implementation

Posted by "Rich Scheuerle (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2-905?page=all ]

Rich Scheuerle updated AXIS2-905:
---------------------------------

    Attachment: patch.txt

> An ExceptionFactory implementation
> ----------------------------------
>
>                 Key: AXIS2-905
>                 URL: http://issues.apache.org/jira/browse/AXIS2-905
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Improvement
>          Components: jaxws
>    Affects Versions: 1.0
>            Reporter: Samuel Isokpunwu
>         Assigned To: Rich Scheuerle
>         Attachments: patch.txt
>
>
> Working on implementing an ExceptionFactory class that will wrap the JAXWS WebServiceException to eliminate any possible nested exception between WebServiceException and the root cause exception. The wrapper will also allow for easy addition of any useful information to facilitate traceability and serviceability.
> An example Usage:
>            //implementing class example
>            public class Foo{
>              //Optional global initialization
>              private ExceptionFactory ef [ = ExceptionFactory.instance(this, propertyFile) ];
>              
>              public Foo(){
>                 //Optionally, can choose to create or initialize the ExceptionFactory global variable from the
>                 //constructor
>                 ef = ExceptionFactory.instance(this, propertyFile);
>              }
>              ---
>              ---
>              public fooMethod(){
>                 try{
>                    throw ef.webServiceException([message | key]);
>                 }
>                 catch(Exception e){
>                    throw ef.webServiceException(e, [message | key]);
>                 }
>              }
>              ---
>              ---
>           }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Updated: (AXIS2-905) An ExceptionFactory implementation

Posted by "Samuel Isokpunwu (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2-905?page=all ]

Samuel Isokpunwu updated AXIS2-905:
-----------------------------------

    Attachment: ExceptionFactoryPatch.txt

Patch file for ExceptionFactory implementation code  and testcase. 

> An ExceptionFactory implementation
> ----------------------------------
>
>                 Key: AXIS2-905
>                 URL: http://issues.apache.org/jira/browse/AXIS2-905
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Improvement
>          Components: jaxws
>    Affects Versions: 1.0
>            Reporter: Samuel Isokpunwu
>         Attachments: ExceptionFactoryPatch.txt
>
>
> Working on implementing an ExceptionFactory class that will wrap the JAXWS WebServiceException to eliminate any possible nested exception between WebServiceException and the root cause exception. The wrapper will also allow for easy addition of any useful information to facilitate traceability and serviceability.
> An example Usage:
>            //implementing class example
>            public class Foo{
>              //Optional global initialization
>              private ExceptionFactory ef [ = ExceptionFactory.instance(this, propertyFile) ];
>              
>              public Foo(){
>                 //Optionally, can choose to create or initialize the ExceptionFactory global variable from the
>                 //constructor
>                 ef = ExceptionFactory.instance(this, propertyFile);
>              }
>              ---
>              ---
>              public fooMethod(){
>                 try{
>                    throw ef.webServiceException([message | key]);
>                 }
>                 catch(Exception e){
>                    throw ef.webServiceException(e, [message | key]);
>                 }
>              }
>              ---
>              ---
>           }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Updated: (AXIS2-905) An ExceptionFactory implementation

Posted by "Rich Scheuerle (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2-905?page=all ]

Rich Scheuerle updated AXIS2-905:
---------------------------------

    Attachment:     (was: ExceptionFactoryPatch.txt)

> An ExceptionFactory implementation
> ----------------------------------
>
>                 Key: AXIS2-905
>                 URL: http://issues.apache.org/jira/browse/AXIS2-905
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Improvement
>          Components: jaxws
>    Affects Versions: 1.0
>            Reporter: Samuel Isokpunwu
>         Assigned To: Rich Scheuerle
>
> Working on implementing an ExceptionFactory class that will wrap the JAXWS WebServiceException to eliminate any possible nested exception between WebServiceException and the root cause exception. The wrapper will also allow for easy addition of any useful information to facilitate traceability and serviceability.
> An example Usage:
>            //implementing class example
>            public class Foo{
>              //Optional global initialization
>              private ExceptionFactory ef [ = ExceptionFactory.instance(this, propertyFile) ];
>              
>              public Foo(){
>                 //Optionally, can choose to create or initialize the ExceptionFactory global variable from the
>                 //constructor
>                 ef = ExceptionFactory.instance(this, propertyFile);
>              }
>              ---
>              ---
>              public fooMethod(){
>                 try{
>                    throw ef.webServiceException([message | key]);
>                 }
>                 catch(Exception e){
>                    throw ef.webServiceException(e, [message | key]);
>                 }
>              }
>              ---
>              ---
>           }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Resolved: (AXIS2-905) An ExceptionFactory implementation

Posted by "Rich Scheuerle (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2-905?page=all ]

Rich Scheuerle resolved AXIS2-905.
----------------------------------

    Resolution: Fixed

> An ExceptionFactory implementation
> ----------------------------------
>
>                 Key: AXIS2-905
>                 URL: http://issues.apache.org/jira/browse/AXIS2-905
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Improvement
>          Components: jaxws
>    Affects Versions: 1.0
>            Reporter: Samuel Isokpunwu
>         Assigned To: Rich Scheuerle
>         Attachments: patch.txt
>
>
> Working on implementing an ExceptionFactory class that will wrap the JAXWS WebServiceException to eliminate any possible nested exception between WebServiceException and the root cause exception. The wrapper will also allow for easy addition of any useful information to facilitate traceability and serviceability.
> An example Usage:
>            //implementing class example
>            public class Foo{
>              //Optional global initialization
>              private ExceptionFactory ef [ = ExceptionFactory.instance(this, propertyFile) ];
>              
>              public Foo(){
>                 //Optionally, can choose to create or initialize the ExceptionFactory global variable from the
>                 //constructor
>                 ef = ExceptionFactory.instance(this, propertyFile);
>              }
>              ---
>              ---
>              public fooMethod(){
>                 try{
>                    throw ef.webServiceException([message | key]);
>                 }
>                 catch(Exception e){
>                    throw ef.webServiceException(e, [message | key]);
>                 }
>              }
>              ---
>              ---
>           }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org