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 "Haneef Ali (JIRA)" <ji...@apache.org> on 2007/08/16 08:05:30 UTC

[jira] Created: (AXIS2-3123) Axis 1.3 exception class doesn't inherit from java.lang.exception ( broken)

Axis 1.3 exception class  doesn't inherit from java.lang.exception  ( broken)
-----------------------------------------------------------------------------

                 Key: AXIS2-3123
                 URL: https://issues.apache.org/jira/browse/AXIS2-3123
             Project: Axis 2.0 (Axis2)
          Issue Type: Bug
    Affects Versions: 1.3
            Reporter: Haneef Ali
            Priority: Blocker


In my WSDL I have a faultType say "MyFault". In Axis2_1.2 there used to be a class called MyFaultException which inherited from java.lang.Exception

In Axis2_1.3 there is no such class, but the generated class "MyFault"
doesn't inherit from java.lang.Exception. Generated stub/skeleton looks like

	class MyStub{
		public class MyResponse myMethod (myRequest pRequest) throws MyFault
	} 

Which obviously won't compile, since MyFault is not inherited from java.lang.Exception.



-- 
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-3123) Axis 1.3 exception class doesn't inherit from java.lang.exception ( broken)

Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-3123?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12520457 ] 

Amila Chinthaka Suriarachchi commented on AXIS2-3123:
-----------------------------------------------------

what is the data bind you use?
the problem here is you have a seperate element with the name MyFault.
as an alternative you can use -p option to specify a defferent package to fault and web services specific classes.

> Axis 1.3 exception class  doesn't inherit from java.lang.exception  ( broken)
> -----------------------------------------------------------------------------
>
>                 Key: AXIS2-3123
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3123
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>    Affects Versions: 1.3
>            Reporter: Haneef Ali
>            Priority: Blocker
>
> In my WSDL I have a faultType say "MyFault". In Axis2_1.2 there used to be a class called MyFaultException which inherited from java.lang.Exception
> In Axis2_1.3 there is no such class, but the generated class "MyFault"
> doesn't inherit from java.lang.Exception. Generated stub/skeleton looks like
> 	class MyStub{
> 		public class MyResponse myMethod (myRequest pRequest) throws MyFault
> 	} 
> Which obviously won't compile, since MyFault is not inherited from java.lang.Exception.

-- 
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-3123) Axis 1.3 exception class doesn't inherit from java.lang.exception ( broken)

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

Haneef Ali updated AXIS2-3123:
------------------------------

    Attachment: Test.wsdl

Please use the following wsdl to reproduce it.


This issue was already reported and fixed. But looks like it got reintroduced once  again.


Please see the issue AXIS2-2881. It is once again happening

> Axis 1.3 exception class  doesn't inherit from java.lang.exception  ( broken)
> -----------------------------------------------------------------------------
>
>                 Key: AXIS2-3123
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3123
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>    Affects Versions: 1.3
>            Reporter: Haneef Ali
>            Priority: Blocker
>         Attachments: Test.wsdl
>
>
> In my WSDL I have a faultType say "MyFault". In Axis2_1.2 there used to be a class called MyFaultException which inherited from java.lang.Exception
> In Axis2_1.3 there is no such class, but the generated class "MyFault"
> doesn't inherit from java.lang.Exception. Generated stub/skeleton looks like
> 	class MyStub{
> 		public class MyResponse myMethod (myRequest pRequest) throws MyFault
> 	} 
> Which obviously won't compile, since MyFault is not inherited from java.lang.Exception.

-- 
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-3123) Axis 1.3 exception class doesn't inherit from java.lang.exception ( broken)

Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-3123?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12528264 ] 

Amila Chinthaka Suriarachchi commented on AXIS2-3123:
-----------------------------------------------------

Can you try with the Axis2 1.3 release or with an SNAPSHOT?
I could generate code correctly for this. Here you should not get any problems since your messages and schema elements in two different namespaces.

> Axis 1.3 exception class  doesn't inherit from java.lang.exception  ( broken)
> -----------------------------------------------------------------------------
>
>                 Key: AXIS2-3123
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3123
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>    Affects Versions: 1.3
>            Reporter: Haneef Ali
>            Priority: Blocker
>         Attachments: Test.wsdl
>
>
> In my WSDL I have a faultType say "MyFault". In Axis2_1.2 there used to be a class called MyFaultException which inherited from java.lang.Exception
> In Axis2_1.3 there is no such class, but the generated class "MyFault"
> doesn't inherit from java.lang.Exception. Generated stub/skeleton looks like
> 	class MyStub{
> 		public class MyResponse myMethod (myRequest pRequest) throws MyFault
> 	} 
> Which obviously won't compile, since MyFault is not inherited from java.lang.Exception.

-- 
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-3123) Axis 1.3 exception class doesn't inherit from java.lang.exception ( broken)

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

Amila Chinthaka Suriarachchi reassigned AXIS2-3123:
---------------------------------------------------

    Assignee: Amila Chinthaka Suriarachchi

> Axis 1.3 exception class  doesn't inherit from java.lang.exception  ( broken)
> -----------------------------------------------------------------------------
>
>                 Key: AXIS2-3123
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3123
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>    Affects Versions: 1.3
>            Reporter: Haneef Ali
>            Assignee: Amila Chinthaka Suriarachchi
>            Priority: Blocker
>         Attachments: Test.wsdl
>
>
> In my WSDL I have a faultType say "MyFault". In Axis2_1.2 there used to be a class called MyFaultException which inherited from java.lang.Exception
> In Axis2_1.3 there is no such class, but the generated class "MyFault"
> doesn't inherit from java.lang.Exception. Generated stub/skeleton looks like
> 	class MyStub{
> 		public class MyResponse myMethod (myRequest pRequest) throws MyFault
> 	} 
> Which obviously won't compile, since MyFault is not inherited from java.lang.Exception.

-- 
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-3123) Axis 1.3 exception class doesn't inherit from java.lang.exception ( broken)

Posted by "Haneef Ali (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-3123?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12520464 ] 

Haneef Ali commented on AXIS2-3123:
-----------------------------------

I'm using  ADB binding. I don't understand your question.

For all the elements declared in wsdl, ADB binding generates classes.  If any element is used as fault then it also needs to implement java.lang.Throwable.  

You can easily check this by generating  stubs from a wsdl which has operation defined with faults. Generated stubs won't compile.


Note:
  In Axis 1.2 this was done by creating one more class called "MyFaultException"  besides "MyFault". In Axis 1.3  in the feature list it is mentioned that that they have renamed the class as "MyFault" instead of MyFaultException. But looks like they forgot to derive it from Throwable.

This is the feature in the release notes I'm talking about
    ----- Name of the wsdl2java generated Exception classes changed ----

> Axis 1.3 exception class  doesn't inherit from java.lang.exception  ( broken)
> -----------------------------------------------------------------------------
>
>                 Key: AXIS2-3123
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3123
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>    Affects Versions: 1.3
>            Reporter: Haneef Ali
>            Priority: Blocker
>
> In my WSDL I have a faultType say "MyFault". In Axis2_1.2 there used to be a class called MyFaultException which inherited from java.lang.Exception
> In Axis2_1.3 there is no such class, but the generated class "MyFault"
> doesn't inherit from java.lang.Exception. Generated stub/skeleton looks like
> 	class MyStub{
> 		public class MyResponse myMethod (myRequest pRequest) throws MyFault
> 	} 
> Which obviously won't compile, since MyFault is not inherited from java.lang.Exception.

-- 
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-3123) Axis 1.3 exception class doesn't inherit from java.lang.exception ( broken)

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

Amila Chinthaka Suriarachchi resolved AXIS2-3123.
-------------------------------------------------

    Resolution: Fixed

generates the code correctly for given wsdl

> Axis 1.3 exception class  doesn't inherit from java.lang.exception  ( broken)
> -----------------------------------------------------------------------------
>
>                 Key: AXIS2-3123
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3123
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>    Affects Versions: 1.3
>            Reporter: Haneef Ali
>            Assignee: Amila Chinthaka Suriarachchi
>            Priority: Blocker
>         Attachments: Test.wsdl
>
>
> In my WSDL I have a faultType say "MyFault". In Axis2_1.2 there used to be a class called MyFaultException which inherited from java.lang.Exception
> In Axis2_1.3 there is no such class, but the generated class "MyFault"
> doesn't inherit from java.lang.Exception. Generated stub/skeleton looks like
> 	class MyStub{
> 		public class MyResponse myMethod (myRequest pRequest) throws MyFault
> 	} 
> Which obviously won't compile, since MyFault is not inherited from java.lang.Exception.

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