ws-jaxme-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t..@nitwit.de
Subject unmarshalling exception
Date Wed, 26 May 2004 11:21:52 GMT
Hi!

I defined an element foo maxOccurs="unbounded".

<xs:element name="foo" maxOccurs="unbounded">
	<xs:complexType>
		<xs:attribute name="id" type="xs:string" use="required" />
	</xs:complexType>
</xs:element>

xjc generates somewhat strange code (List getQuery() and no Setter, no 
delegate method) but at least it does work on marshalling:

List l = bar.getFoo();       
l.add(one);
l.add(two);

XML as expected:

<foo id="oneid" />
<foo id="twoid" />

But unmarshalling throws an exception without any more details:

Exception in thread "main" javax.xml.bind.UnmarshalException
    at 
org.apache.ws.jaxme.impl.JMUnmarshallerImpl.unmarshal(JMUnmarshallerImpl.java:135) 

---------------------------------------------------------------------
To unsubscribe, e-mail: jaxme-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: jaxme-dev-help@ws.apache.org


Mime
View raw message