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 "Davanum Srinivas (JIRA)" <ji...@apache.org> on 2007/06/30 04:10:04 UTC
[jira] Created: (AXIS2-2881) ADB wsdl2java Code generation broken
when wsdl has faults defined.
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: Addressing
Reporter: Davanum Srinivas
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
[jira] Reopened: (AXIS2-2881) ADB wsdl2java Code generation broken
when wsdl has faults defined.
Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-2881?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Davanum Srinivas reopened AXIS2-2881:
-------------------------------------
Fix broke build. i reverted the change. Please review.
thanks,
dims
> 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
[jira] Updated: (AXIS2-2881) ADB wsdl2java Code generation broken
when wsdl has faults defined.
Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-2881?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Davanum Srinivas updated AXIS2-2881:
------------------------------------
Component/s: (was: Addressing)
adb
Assignee: Amila Chinthaka Suriarachchi
> 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
[jira] Resolved: (AXIS2-2881) ADB wsdl2java Code generation broken
when wsdl has faults defined.
Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
[ 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. called the correct method
> 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
[jira] Resolved: (AXIS2-2881) ADB wsdl2java Code generation broken
when wsdl has faults defined.
Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
[ 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
[jira] Updated: (AXIS2-2881) ADB wsdl2java Code generation broken
when wsdl has faults defined.
Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-2881?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Davanum Srinivas updated AXIS2-2881:
------------------------------------
Attachment: EmployeeRecordService.wsdl
> 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: Addressing
> Reporter: Davanum Srinivas
> 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