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 "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org> on 2007/06/30 07:11:04 UTC

[jira] Resolved: (AXIS2-2881) ADB wsdl2java Code generation broken when wsdl has faults defined.

     [ https://issues.apache.org/jira/browse/AXIS2-2881?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Amila Chinthaka Suriarachchi resolved AXIS2-2881.
-------------------------------------------------

    Resolution: Fixed

fixed with the  revision 552106.
check the existing class names before generating the exception class

> ADB wsdl2java Code generation broken when wsdl has faults defined.
> ------------------------------------------------------------------
>
>                 Key: AXIS2-2881
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2881
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: adb
>            Reporter: Davanum Srinivas
>            Assignee: Amila Chinthaka Suriarachchi
>            Priority: Blocker
>             Fix For: 1.3
>
>         Attachments: EmployeeRecordService.wsdl
>
>
> when i run wsdl2java against the uploaded wsdl with the following command line:
> wsdl2java.bat -ss -sd -uri EmployeeRecordService.wsdl -o generated
> and then try to build the generated code, i get the following errors:
>     [javac] Compiling 12 source files to C:\axis2-SNAPSHOT\emp\generated\build\classes
>     [javac] C:\axis2-SNAPSHOT\emp\generated\src\org\wso2\employee\EmployeeRecordServiceServiceMessageReceiverInOut.java:63: incompatible types
>     [javac] found   : org.wso2.employee.EmployeeNotFoundException
>     [javac] required: java.lang.Throwable
>     [javac]         } catch (EmployeeNotFoundException e) {
>     [javac]                  ^
>     [javac] C:\axis2-SNAPSHOT\emp\generated\src\org\wso2\employee\EmployeeRecordServiceServiceMessageReceiverInOut.java:66: createAxisFault(java.lang.Exception) in org.wso2.employee.EmployeeRecordServ
> iceServiceMessageReceiverInOut cannot be applied to (org.wso2.employee.EmployeeNotFoundException)
>     [javac]             org.apache.axis2.AxisFault f = createAxisFault(e);
>     [javac]                                            ^
>     [javac] C:\axis2-SNAPSHOT\emp\generated\src\org\wso2\employee\EmployeeRecordServiceServiceMessageReceiverInOut.java:67: cannot find symbol
>     [javac] symbol  : method getFaultMessage()
>     [javac] location: class org.wso2.employee.EmployeeNotFoundException
>     [javac]             if (e.getFaultMessage() != null){
>     [javac]                  ^
>     [javac] C:\axis2-SNAPSHOT\emp\generated\src\org\wso2\employee\EmployeeRecordServiceServiceMessageReceiverInOut.java:68: cannot find symbol
>     [javac] symbol  : method getFaultMessage()
>     [javac] location: class org.wso2.employee.EmployeeNotFoundException
>     [javac]                 f.setDetail(toOM(e.getFaultMessage(),false));
>     [javac]                                   ^
>     [javac] C:\axis2-SNAPSHOT\emp\generated\src\org\wso2\employee\EmployeeRecordServiceServiceSkeleton.java:27: incompatible types
>     [javac] found   : org.wso2.employee.EmployeeNotFoundException
>     [javac] required: java.lang.Throwable
>     [javac]             throws EmployeeNotFoundException{
>     [javac]                    ^
>     [javac] Note: C:\axis2-SNAPSHOT\emp\generated\src\org\wso2\employee\EmployeeRecordServiceServiceMessageReceiverInOut.java uses or overrides a deprecated API.
>     [javac] Note: Recompile with -Xlint:deprecation for details.
>     [javac] Note: Some input files use unchecked or unsafe operations.
>     [javac] Note: Recompile with -Xlint:unchecked for details.
>     [javac] 5 errors

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