You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jaxme-dev@ws.apache.org by "Jochen Wiedmann (JIRA)" <ja...@ws.apache.org> on 2004/10/28 22:36:32 UTC
[jira] Resolved: (JAXME-45) Namespace prefix is not included after first sibling
[ http://issues.apache.org/jira/browse/JAXME-45?page=history ]
Jochen Wiedmann resolved JAXME-45:
----------------------------------
Resolution: Fixed
The method marshalAtomicChild did not check, whether a namespace
prefix had to be declared.
> Namespace prefix is not included after first sibling
> ----------------------------------------------------
>
> Key: JAXME-45
> URL: http://issues.apache.org/jira/browse/JAXME-45
> Project: JaxMe
> Type: Bug
> Versions: current (nightly)
> Environment: Windows XP Pro SP 2
> JaxMe 0.3.1
> JDK 1.4.2 04
> Reporter: Dogan Atay
> Priority: Blocker
> Attachments: CarTester.java, buildCarAnt.xml, car.xsd, engine.xsd, jaxme-45-0.3.patch, jaxme-45.patch
>
> Two schemas car.xsd and engine.xsd are defined with two different targetNamespaces.
> car.xsd imports engine.xsd and defines some elements. The elements are defined either in car.xsd or in engine.xsd.
> Car.xsd is compiled using the buildCarAnt.xml file.
> The generated classes are used in the CarTester.java program.
> The result of CarTester.java is as follows
> <car:car xmlns:car="http://car.aflac.com">
> <car:engine>
> <engine:cylinderCount xmlns:engine="http://engine.aflac.com">6</engine:cylinderCount>
> <engine:cylinder>
> <engine:diameter>12.44</engine:diameter>
> <engine:volume>750.45</engine:volume>
> <engine:valveCount>32</engine:valveCount>
> </engine:cylinder>
> <engine:material>
> <engine:name>Al</engine:name>
> <engine:percentage>90.14</engine:percentage>
> </engine:material>
> </car:engine>
> <car:body>
> <car:style>Coupe</car:style>
> <car:weight>3454.54</car:weight>
> <car:doorCount>2</car:doorCount>
> </car:body>
> </car:car>
> Time to unmarshall it
> [Fatal Error] :4:22: The prefix "engine" for element "engine:cylinder" is not bound.
> javax.xml.bind.UnmarshalException: The prefix "engine" for element "engine:cylinder" is not bound.
> at org.apache.ws.jaxme.impl.JMUnmarshallerImpl.unmarshal(JMUnmarshallerImpl.java:103)
> at org.apache.ws.jaxme.impl.JMUnmarshallerImpl.unmarshal(JMUnmarshallerImpl.java:85)
> at com.aflac.quote.client.simple.CarTester.main(CarTester.java:73)
> Caused by:
> org.xml.sax.SAXParseException: The prefix "engine" for element "engine:cylinder" is not bound.
> at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
> at org.apache.ws.jaxme.impl.JMUnmarshallerImpl.unmarshal(JMUnmarshallerImpl.java:98)
> at org.apache.ws.jaxme.impl.JMUnmarshallerImpl.unmarshal(JMUnmarshallerImpl.java:85)
> at com.aflac.quote.client.simple.CarTester.main(CarTester.java:73)
> --------------------------------------------------------------------------
> <engine:cylinder> and <engine:material> tags are missing the attribute
> xmlns:engine="http://engine.aflac.com"
> I mark this as Blocker because my client cannot unmarshall the XML and I cannot find a workaround.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: jaxme-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: jaxme-dev-help@ws.apache.org