axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nikita Tovstoles <Nikita.Tovsto...@Sun.COM>
Subject SAXException while deserializing
Date Mon, 01 Aug 2005 22:35:12 GMT
Hi,

I'm getting the following exception while running a J2SE 1.5-based web 
service client:

SAXException
- Could not convert java.util.HashSet to bean field 'rackSystems', type 
java.util.Set
- Exception:
Caused by: org.xml.sax.SAXException: Could not set Class 
demolab.simdatacenter.common.TemplateLibrary Field rackSystems to value 
[[Ljava.lang.Object;@dc57db, [Ljava.lang.Object;@b02efa, 
[Ljava.lang.Object;@9ced8e] - Exception [Ljava.lang.Object;
        at 
org.apache.axis.encoding.ser.BeanPropertyTarget.set(BeanPropertyTarget.java:149)
        at 
org.apache.axis.encoding.DeserializerImpl.valueComplete(DeserializerImpl.java:249)
        at 
org.apache.axis.encoding.ser.ArrayDeserializer.valueComplete(ArrayDeserializer.java:583)
        at 
org.apache.axis.encoding.DeserializerImpl.endElement(DeserializerImpl.java:509)...

SOAP Fault is:
org.xml.sax.SAXException: Could not set Class 
demolab.simdatacenter.common.TemplateLibrary Field rackSystems to value 
[[Ljava.lang.Object;@dc57db, [Ljava.lang.Object;@b02efa, 
[Ljava.lang.Object;@9ced8e] - Exception [Ljava.lang.Object;
AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
 faultSubcode:
 faultString: org.xml.sax.SAXException: Could not set Class 
demolab.simdatacenter.common.TemplateLibrary Field rackSystems to value 
[[Ljava.lang.Object;@dc57db, [Ljava.lang.Object;@b02efa, 
[Ljava.lang.Object;@9ced8e] - Exception [Ljava.lang.Object;
 faultActor:
 faultNode:
 faultDetail:
        
{http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXException: Could 
not set Class demolab.simdatacenter.common.TemplateLibrary Field 
rackSystems to value [[Ljava.lang.Object;@dc57db, 
[Ljava.lang.Object;@b02efa, [Ljava.lang.Object;@9ced8e] - Exception 
[Ljava.lang.Object;
        at 
org.apache.axis.encoding.ser.BeanPropertyTarget.set(BeanPropertyTarget.java:149)\


The relevant method is:

(TemplateLibrary) public void setRackSystems(Set<RackSystemModel> rsms) {
        this.rackSystems = rsms;}

and rackSystems is:
private Set<RackSystemModel> rackSystems = new HashSet<RackSystemModel>();


HashSet implements Set, so I am not sure what the problem is... Are 1.5 
features used here confusing Axis?

thanks
-nikita

Mime
View raw message