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 ax...@ws.apache.org on 2004/09/14 12:49:46 UTC

[jira] Created: (AXIS-1554) attempting to use incompatible return type - method getCause()

Message:

  A new issue has been created in JIRA.

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/AXIS-1554

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: AXIS-1554
    Summary: attempting to use incompatible return type - method getCause()
       Type: Bug

     Status: Unassigned
   Priority: Blocker

    Project: Axis
 Components: 
             WSDL processing
   Versions:
             current (nightly)

   Assignee: 
   Reporter: Andrei Iltchenko

    Created: Tue, 14 Sep 2004 3:49 AM
    Updated: Tue, 14 Sep 2004 3:49 AM
Environment: JDK 1.4.X

Description:
WSDL2Java's bean and fault writers are oblivious to the fact that java.lang.Throwable and org.apache.axis.AxisFault, which always serve as base classes for service specific exception classes that it generates, have a certain set of properties. So that when we are dealing with a fault part that refers to a complex type like the one defined below:

<complexType name="MyException">
  <sequence>
    <element name="cause" type="xsd:string" /> 
    <element name="message" type="xsd:int" /> 
  </sequence>
</complexType>

WSDL2Java gemerates Java code that violates the semantic rules of Java:

MyException.java [36:1] getCause() in 
mypackage.myexception cannot override getCause() in 
java.rmi.RemoteException; attempting to use incompatible return type
found   : java.lang.String
required: java.lang.Throwable
    public java.lang.String getCause() {
                            ^



---------------------------------------------------------------------
JIRA INFORMATION:
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


[jira] Updated: (AXIS-1554) attempting to use incompatible return type - method getCause()

Posted by ax...@ws.apache.org.
The following issue has been updated:

    Updater: Andrei Iltchenko (mailto:andrei.iltchenko@nl.compuware.com)
       Date: Tue, 14 Sep 2004 3:51 AM
    Comment:
Please find attached the patch for the problem.
    Changes:
             Attachment changed to 27372.txt
    ---------------------------------------------------------------------
For a full history of the issue, see:

  http://issues.apache.org/jira/browse/AXIS-1554?page=history

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/AXIS-1554

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: AXIS-1554
    Summary: attempting to use incompatible return type - method getCause()
       Type: Bug

     Status: Unassigned
   Priority: Blocker

    Project: Axis
 Components: 
             WSDL processing
   Versions:
             current (nightly)

   Assignee: 
   Reporter: Andrei Iltchenko

    Created: Tue, 14 Sep 2004 3:49 AM
    Updated: Tue, 14 Sep 2004 3:51 AM
Environment: JDK 1.4.X

Description:
WSDL2Java's bean and fault writers are oblivious to the fact that java.lang.Throwable and org.apache.axis.AxisFault, which always serve as base classes for service specific exception classes that it generates, have a certain set of properties. So that when we are dealing with a fault part that refers to a complex type like the one defined below:

<complexType name="MyException">
  <sequence>
    <element name="cause" type="xsd:string" /> 
    <element name="message" type="xsd:int" /> 
  </sequence>
</complexType>

WSDL2Java gemerates Java code that violates the semantic rules of Java:

MyException.java [36:1] getCause() in 
mypackage.myexception cannot override getCause() in 
java.rmi.RemoteException; attempting to use incompatible return type
found   : java.lang.String
required: java.lang.Throwable
    public java.lang.String getCause() {
                            ^



---------------------------------------------------------------------
JIRA INFORMATION:
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


[jira] Commented: (AXIS-1554) attempting to use incompatible return type - method getCause()

Posted by ax...@ws.apache.org.
The following comment has been added to this issue:

     Author: Andrei Iltchenko
    Created: Tue, 14 Sep 2004 3:50 AM
       Body:
<i>Note</i>: this bug is a JIRA version of Bugzilla Bug 27372 -- <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=27372>.
---------------------------------------------------------------------
View this comment:
  http://issues.apache.org/jira/browse/AXIS-1554?page=comments#action_53081

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/AXIS-1554

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: AXIS-1554
    Summary: attempting to use incompatible return type - method getCause()
       Type: Bug

     Status: Unassigned
   Priority: Blocker

    Project: Axis
 Components: 
             WSDL processing
   Versions:
             current (nightly)

   Assignee: 
   Reporter: Andrei Iltchenko

    Created: Tue, 14 Sep 2004 3:49 AM
    Updated: Tue, 14 Sep 2004 3:50 AM
Environment: JDK 1.4.X

Description:
WSDL2Java's bean and fault writers are oblivious to the fact that java.lang.Throwable and org.apache.axis.AxisFault, which always serve as base classes for service specific exception classes that it generates, have a certain set of properties. So that when we are dealing with a fault part that refers to a complex type like the one defined below:

<complexType name="MyException">
  <sequence>
    <element name="cause" type="xsd:string" /> 
    <element name="message" type="xsd:int" /> 
  </sequence>
</complexType>

WSDL2Java gemerates Java code that violates the semantic rules of Java:

MyException.java [36:1] getCause() in 
mypackage.myexception cannot override getCause() in 
java.rmi.RemoteException; attempting to use incompatible return type
found   : java.lang.String
required: java.lang.Throwable
    public java.lang.String getCause() {
                            ^



---------------------------------------------------------------------
JIRA INFORMATION:
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


[jira] Commented: (AXIS-1554) attempting to use incompatible return type - method getCause()

Posted by ax...@ws.apache.org.
The following comment has been added to this issue:

     Author: Glen Daniels
    Created: Thu, 23 Sep 2004 12:05 PM
       Body:
Looks like this patch has already been applied....

What's up with the bug, can it be marked fixed/closed?
---------------------------------------------------------------------
View this comment:
  http://issues.apache.org/jira/browse/AXIS-1554?page=comments#action_53368

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/AXIS-1554

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: AXIS-1554
    Summary: attempting to use incompatible return type - method getCause()
       Type: Bug

     Status: Unassigned
   Priority: Blocker

    Project: Axis
 Components: 
             WSDL processing
   Versions:
             current (nightly)

   Assignee: 
   Reporter: Andrei Iltchenko

    Created: Tue, 14 Sep 2004 3:49 AM
    Updated: Thu, 23 Sep 2004 12:05 PM
Environment: JDK 1.4.X

Description:
WSDL2Java's bean and fault writers are oblivious to the fact that java.lang.Throwable and org.apache.axis.AxisFault, which always serve as base classes for service specific exception classes that it generates, have a certain set of properties. So that when we are dealing with a fault part that refers to a complex type like the one defined below:

<complexType name="MyException">
  <sequence>
    <element name="cause" type="xsd:string" /> 
    <element name="message" type="xsd:int" /> 
  </sequence>
</complexType>

WSDL2Java gemerates Java code that violates the semantic rules of Java:

MyException.java [36:1] getCause() in 
mypackage.myexception cannot override getCause() in 
java.rmi.RemoteException; attempting to use incompatible return type
found   : java.lang.String
required: java.lang.Throwable
    public java.lang.String getCause() {
                            ^



---------------------------------------------------------------------
JIRA INFORMATION:
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


[jira] Resolved: (AXIS-1554) attempting to use incompatible return type - method getCause()

Posted by "Davanum Srinivas (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS-1554?page=history ]
     
Davanum Srinivas resolved AXIS-1554:
------------------------------------

    Resolution: Fixed

Closing the bug.

-- dims

> attempting to use incompatible return type - method getCause()
> --------------------------------------------------------------
>
>          Key: AXIS-1554
>          URL: http://issues.apache.org/jira/browse/AXIS-1554
>      Project: Axis
>         Type: Bug
>   Components: WSDL processing
>     Versions: current (nightly)
>  Environment: JDK 1.4.X
>     Reporter: Andrei Iltchenko
>     Priority: Blocker
>  Attachments: 27372.txt
>
> WSDL2Java's bean and fault writers are oblivious to the fact that java.lang.Throwable and org.apache.axis.AxisFault, which always serve as base classes for service specific exception classes that it generates, have a certain set of properties. So that when we are dealing with a fault part that refers to a complex type like the one defined below:
> <complexType name="MyException">
>   <sequence>
>     <element name="cause" type="xsd:string" /> 
>     <element name="message" type="xsd:int" /> 
>   </sequence>
> </complexType>
> WSDL2Java gemerates Java code that violates the semantic rules of Java:
> MyException.java [36:1] getCause() in 
> mypackage.myexception cannot override getCause() in 
> java.rmi.RemoteException; attempting to use incompatible return type
> found   : java.lang.String
> required: java.lang.Throwable
>     public java.lang.String getCause() {
>                             ^

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