The Artima Developer Community
Sponsored Link

Web Services Forum
Strange Exception

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Trey Howard

Posts: 1
Nickname: trey
Registered: Jul, 2005

Strange Exception Posted: Jul 12, 2005 2:40 PM
Reply to this message Reply
Advertisement
Hi All.

I'm developing a thick-client using web services (Axis). I'm getting a very strange exception, the likes of which I've never seen before:

ERROR BeanPropertyTarget:135 - Could not convert [Lcom.ic_institute.jitcube.client.model.bean.Organization; to bean field 'organizations', type [Lcom.ic_institute.jitcube.client.model.bean.Organization;
ERROR Call:2450 - Exception:
org.xml.sax.SAXException: Could not set Class com.ic_institute.jitcube.client.model.bean.Manifest Field organizations to value [Lcom.ic_institute.jitcube.client.model.bean.Organization;@1b03c1a - Exception null
at org.apache.axis.encoding.ser.BeanPropertyTarget.set(BeanPropertyTarget.java:149 )
at org.apache.axis.encoding.DeserializerImpl.valueComplete(DeserializerImpl.java:2 49)
at org.apache.axis.encoding.ser.ArrayDeserializer.valueComplete(ArrayDeserializer. java:583)
at org.apache.axis.encoding.DeserializerImpl.endElement(DeserializerImpl.java:509)
at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationConte xt.java:1087)
at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:171)
at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:114 1)
at org.apache.axis.encoding.DeserializerImpl.startElement(DeserializerImpl.java:36 9)
at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationCon text.java:1048)
at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165)
at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:114 1)
at org.apache.axis.encoding.DeserializerImpl.startElement(DeserializerImpl.java:36 9)
at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationCon text.java:1048)
at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165)
at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:114 1)
at org.apache.axis.encoding.DeserializerImpl.startElement(DeserializerImpl.java:36 9)
at org.apache.axis.encoding.ser.BeanDeserializer.startElement(BeanDeserializer.jav a:154)
at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationCon text.java:1048)
at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165)
at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:114 1)
at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:345)
at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384)
at org.apache.axis.client.Call.invoke(Call.java:2448)
at org.apache.axis.client.Call.invoke(Call.java:2347)
at org.apache.axis.client.Call.invoke(Call.java:1804)
... (the rest of the stack trace is my code)


My data structure contains a hierarchy of elements Manifest - Organization - Item. All are defined the same way as far as I can tell, that is I have all defined in a .wsdd, etc. However, if I try to query for an Item, then I get I get the above exception. What's further frustrating is that I can query a Manifest or Organization without a problem.

My question is this:
Does anyone know what can cause this exception? Based on the Exception message, it looks like Axis is dealing with Class objects for Manifest/Organization rather than instances of Manifest/Organization.

I've investigated everything I could think of and I'm still totally lost.
Any help would be greatly appreciated.

Thanks in advance
-Trey

Topic: Problem serializing complex object Previous Topic   Next Topic Topic: How to use webservices with SSL?

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use