You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by park sunghyun <s_...@mebius.co.jp> on 2004/10/20 03:53:49 UTC

Object array problem

I use axis with obeject array as return value.
When a few files generated with wsdl2java, object array changed to obejct 
(TrafficJamInfo[] -> TrafficJamInfo) in generated locator and service java 
files.



Process:

1. Making TrafficJam.wsdl file with java2wsdl



* TrafficJam.java
----------------------------------

package Test;

public interface TrafficJam extends java.rmi.Remote {
    public Test.TrafficJamInfo[] getTrafficJamInfo() throws 
java.rmi.RemoteException;
}

----------------------------------



* TrafficJamInfo.java file
----------------------------------

package Test;

public class TrafficJamInfo  implements java.io.Serializable {
    private java.lang.String headName;
    private java.lang.String no;
    private java.lang.String direction;
    private java.lang.String mapURL;
    private java.lang.String roadName;
    private java.lang.String trafficJamLevel;
    private java.lang.String trafficJamLength;
    private java.lang.String endName;

-----------------------------------

2.  When I generated java files with wsdl2java. It was found that 
'TrafficJamInfo[]' changed to 'Test.TrafficJamInfo' in locator and service 
files files.(No compile error)
 and  I deployed them and call this, error messages are follows.

AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
 faultSubcode:
 faultString: java.lang.reflect.InvocationTargetException
 faultActor:
 faultNode:
 faultDetail:
 {http://xml.apache.org/axis/}stackTrace: AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
 faultSubcode:
 faultString: java.lang.reflect.InvocationTargetException
 faultActor:
 faultNode:
 faultDetail:


 Do you have any idea? I attach all files.