getCause generating Client Exception
------------------------------------

         Key: AXIS-1830
         URL: http://issues.apache.org/jira/browse/AXIS-1830
     Project: Axis
        Type: Bug
  Components: WSDL processing  
    Versions: 1.1    
 Environment: Windows 2000, J2SDK1.4.2_04, 
Eclipse 3 with task ant axis-wsdl2java: <taskdef 
resource="axis-tasks.properties" classpathref="axis.classpath" /> 
axis.classpath pointing to axis.1_1 jars + xerces 1.4.4 + activation.jar.


    Reporter: Sebastiao Alessandro Linhares dos Santos
    Priority: Minor


When I generate client stubs I generate 1 business exception inherited of 
RemoteException.

My "client" generated exception override getCause of RemoteException returning 
Object, when must return Throwable. 

This cause client compilation error.

I resolve this rewriting getCause on my client on this way:

---     
public Throwable getCause() {
                if (cause instanceof Throwable)
                        return (Throwable) cause;

                return new Exception((cause == null ? "null cause" : 
cause.toString()));
        }
---

But, I will need to do this every client rebuild until this bug was fine 
controlled.

Thanks.

-- 
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
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira

Reply via email to