Re: Re: XML problem with OpenAMF

Dan Glauser <[email protected]>
Newsgroups gmane.comp.java.openamf.user
Organization Roundbox Media
Message-ID <1111707913.4381.15.camel@nano>
Perhaps I'm missing something but why are people trying to send XML via
OpenAMF?  OpenAMF allows you to send objects, why do those objects need
to contain XML?  I would think that instead of containing XML these
objects could contain other objects.  I feel that one of the beauties of
OpenAMF is that you don't have to send XML.

On the project where we started using OpenAMF we had one Flash control
that used XML which was written into the JSP page.  The other Flash
control used OpenAMF to get/send information to the server.  I must say
that the OpenAMF control worked so quickly and was so easy to maintain
the we built another app which only used OpenAMF.  All we passed back
and forth were objects containing integers, strings, and other objects. 
No XML!  This app works great and has become a template for our standard
architecture.

Again, you may have unique requirements that I am not aware of but it
seems like you may be making more work for yourself if you try and send
XML via OpenAMF.

Good luck!

--
Dan



On Thu, 2005-03-24 at 18:03, Carlos Rovira wrote:

> Thanks, but I'm currently sending it as String and works fine, but I
> feel like I'm loosing the power of remoting
> 
>  
> 
> This is a workaround and we must be able to send XML as an object...
> 
>  
> 
> Anybody have the same problem????
> 
>  
> 
> ...or I'm doing something wrong?
> 
>  
> 
> thanks in advance.
> 
>  
> 
> C.
> 
> 
> ----------------------------- Carlos Rovira -- www.carlosrovira.com
> ------------------------------
> 
> 
> 
> 
> ______________________________________________________________________
> 
> > De:: [email protected]
> > Para: [email protected]
> > Asunto:: Re: [Openamf-user] XML problem with OpenAMF
> > BCC: Tue, 22 Mar 2005 21:25:47 -0500
> 
> 
> 
> 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
> 
> 
> 
> Lycos amplía todas las cuentas a 300Mb. 
> ¿Todavía no tienes la tuya?
DG-rbxmedia_eCard.gif (image/gif, 4 KB) - not displayed
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.