Re: XML problem with OpenAMF

[email protected]
Newsgroups gmane.comp.java.openamf.user
Message-ID <[email protected]>
Not sure what you are doing but you can always pass the xml value as a String instead. I do that for all my xml comm. and it works great.

Hi,

I'm using a ValueObject with a org.w3c.dom.Document property in it and I'm having problems when I send XML docs to the server.

if I send the VO to flash I have no problems, but when I fill the XML property in the Flash VO and send it to openamf gateway (running in JOnAS-Tomcat installation) I get the following trace:

[Fatal Error] :1:92: Content is not allowed in trailing section.

11:50:49,061 : XMLUtils.convertToDOM : org.xml.sax.SAXParseException: Content is not allowed in trailing section.

org.xml.sax.SAXParseException: Content is not allowed in trailing section.

at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)

at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)

at org.openamf.util.XMLUtils.convertToDOM(XMLUtils.java:101)

at org.openamf.io.AMFDeserializer.readData(AMFDeserializer.java:346)

at org.openamf.io.AMFDeserializer.readObject(AMFDeserializer.java:191)

at org.openamf.io.AMFDeserializer.readCustomClass(AMFDeserializer.java:166)

at org.openamf.io.AMFDeserializer.readData(AMFDeserializer.java:348)

at org.openamf.io.AMFDeserializer.readArray(AMFDeserializer.java:226)

at org.openamf.io.AMFDeserializer.readData(AMFDeserializer.java:335)

at org.openamf.io.AMFDeserializer.readBodies(AMFDeserializer.java:144)

at org.openamf.io.AMFDeserializer.<init>(AMFDeserializer.java:83)

at org.openamf.DefaultGateway.deserializeAMFMessage(DefaultGateway.java:154)

at org.openamf.DefaultGateway.service(DefaultGateway.java:85)

....

11:50:49,191 : DefaultGateway.logRequestException : Error in service

java.io.IOException: Error while parsing xml: Content is not allowed in trailing section.

at org.openamf.util.XMLUtils.convertToDOM(XMLUtils.java:104)

at org.openamf.io.AMFDeserializer.readData(AMFDeserializer.java:346)

at org.openamf.io.AMFDeserializer.readObject(AMFDeserializer.java:191)

at org.openamf.io.AMFDeserializer.readCustomClass(AMFDeserializer.java:166)

at org.openamf.io.AMFDeserializer.readData(AMFDeserializer.java:348)

.....

it seems that OpenAMF doesn't like the XML object send in the valueobject because I don't reach the requested method and all the problem is deserializing the XML member. make it sense?

Maybe I'm doing something wrong or is a bug?

Anyone knows about some kind of problem sending XML objects?

thanks.

Carlos.

----------------------------- Carlos Rovira -- www.carlosrovira.com ------------------------------

Comparte tus fotos y revélalas sin moverte de casa. Papel Kodak Royal, ¡Sólo 1 Euro gastos de envío!
OFERTA ANIVERSARIO: 15x20 por sólo 0.50eur.Tus fotos digitales en PIXELIN.COM
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.