[
https://issues.apache.org/jira/browse/AXIS2-2878?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jason Manfield updated AXIS2-2878:
----------------------------------
Attachment: AddressBookADBClient.java
AddressBookService.java
AddressBookService.wsdl.dupl
The AddressException is a simple class that just extends AxisFault
public class AddressException extends AxisFault {
public AddressException(String message) {
super(message);
}
public AddressException(java.lang.String message,
java.lang.Throwable cause) {
super(message, cause);
}
....
When compiling and running client program, this is what I get:
C:\axis\axis2-1.2\samples\pojo>ant adb.client -Dwsdl=http://localhost:8804/axis2
/services/AddressBookService?wsdl
Buildfile: build.xml
check-parameters:
print-usage:
adb.client:
clean:
[delete] Deleting directory C:\axis\axis2-1.2\samples\pojo\build
[delete] DEPRECATED - Use of the implicit FileSet is deprecated. Use a neste
d fileset element instead.
prepare:
[mkdir] Created dir: C:\axis\axis2-1.2\samples\pojo\build
[mkdir] Created dir: C:\axis\axis2-1.2\samples\pojo\build\classes
[mkdir] Created dir: C:\axis\axis2-1.2\samples\pojo\build\lib
[mkdir] Created dir: C:\axis\axis2-1.2\samples\pojo\build\classes\META-INF
adb.client.codegen-stub:
[java] Jun 28, 2007 7:06:14 PM org.apache.axis2.wsdl.codegen.writer.ClassWr
iter createOutFile
[java] INFO: The src\sample\addressbook\stub\AddEntryFaultException.java fi
le cannot be overwritten.
[java] Jun 28, 2007 7:06:15 PM org.apache.axis2.wsdl.codegen.writer.ClassWr
iter createOutFile
[java] INFO: The src\sample\addressbook\stub\AddEntryFaultException.java fi
le cannot be overwritten.
adb.client.compile:
[javac] Compiling 8 source files to C:\axis\axis2-1.2\samples\pojo\build\cla
sses
adb.client.jar:
[jar] Building jar: C:\axis\axis2-1.2\samples\pojo\build\lib\adb-client.ja
r
adb.client.run:
[java] org.apache.axis2.AxisFault: Message Receiver not found for AxisOpera
tion: addEntry
[java] at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext
(Utils.java:434)
[java] at org.apache.axis2.description.RobustOutOnlyAxisOperation$Robus
tOutOnlyOperationClient.send(RobustOutOnlyAxisOperation.java:108)
[java] at org.apache.axis2.description.OutInAxisOperationClient.execute
(OutInAxisOperation.java:294)
[java] at sample.addressbook.stub.AddressBookServiceAddressBookServiceS
OAP11Port_httpStub.addEntry(Unknown Source)
[java] at sample.addressbook.adbclient.AddressBookADBClient.main(Unknow
n Source)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
sorImpl.java:39)
[java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
hodAccessorImpl.java:25)
[java] at java.lang.reflect.Method.invoke(Method.java:324)
[java] at org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.jav
a:193)
[java] at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava
.java:130)
[java] at org.apache.tools.ant.taskdefs.Java.run(Java.java:705)
[java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:177)
[java] at org.apache.tools.ant.taskdefs.Java.execute(Java.java:83)
[java] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.ja
va:275)
[java] at org.apache.tools.ant.Task.perform(Task.java:364)
[java] at org.apache.tools.ant.Target.execute(Target.java:341)
[java] at org.apache.tools.ant.Target.performTasks(Target.java:369)
[java] at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
[java] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:386)
[java] at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.j
ava:106)
[java] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.ja
va:275)
[java] at org.apache.tools.ant.Task.perform(Task.java:364)
[java] at org.apache.tools.ant.Target.execute(Target.java:341)
[java] at org.apache.tools.ant.Target.performTasks(Target.java:369)
[java] at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
[java] at org.apache.tools.ant.Project.executeTargets(Project.java:1062
)
[java] at org.apache.tools.ant.Main.runBuild(Main.java:673)
[java] at org.apache.tools.ant.Main.startAnt(Main.java:188)
[java] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
[java] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)
BUILD SUCCESSFUL
Total time: 12 seconds
C:\axis\axis2-1.2\samples\pojo>
> Axis2 cannot handle POJO classes where multiple methods throw same exception
> or fault
> -------------------------------------------------------------------------------------
>
> Key: AXIS2-2878
> URL: https://issues.apache.org/jira/browse/AXIS2-2878
> Project: Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: adb, client-api, codegen, wsdl
> Affects Versions: 1.2
> Environment: Windows XP
> Reporter: Jason Manfield
> Priority: Blocker
> Attachments: AddressBookADBClient.java, AddressBookService.java,
> AddressBookService.wsdl.dupl, AddressException.java
>
>
> If a POJO class has multiple methods throwing same exception or fault, the
> wsdl has duplicate elements. Removing the duplicate element by hand still
> does not help; tje adb client does not run. It runs only if the class does
> not throw exceptions.
> The existing pojo sample can be modified to test this.
--
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]