Re: [Simple-support] Stackoverflow in Simple XML
Brought to you by:
niallg
|
From: Eddy U. <edd...@we...> - 2012-03-18 23:45:13
|
Hi, sorry for the late response. What do you mean exactly by "...writing XML out"? Wrinting it to the console? (I'm german and my english is not the best - sorry :-/ ) regards eddy ~~~ www.eduardunruh.de 2012/3/14 Niall Gallagher <gal...@ya...> > Hi, > > I took a quick look, and it seems this error could only happen when > writing the XML out, is this when it happens? > > Thanks, > Niall > > > > --- On *Wed, 14/3/12, Eddy Unruh <edd...@we...>* wrote: > > > From: Eddy Unruh <edd...@we...> > Subject: Re: [Simple-support] Stackoverflow in Simple XML > To: "Niall Gallagher" <gal...@ya...> > Cc: sim...@li... > Received: Wednesday, 14 March, 2012, 5:42 AM > > > Hi, > > how do I check this property? Iam using glassfish 3.1.1... executed this > line of > code: XMLInputFactory.newInstance().getProperty(XMLInputFactory.IS_NAMESPACE_AWARE) > > which returned "true"; > > Here is one example-console-output of the error: > > <?xml version="1.0" encoding="UTF-8" standalone="yes"?> > <shoppinglistItem> > <id>0</id> > <article> > <id>16</id> > <name>Schwartau Erdbeer Marmelade</name> > <price>1.12</price> > <description>EXTRA Konfitüre Erdbeer Gönnen Sie sich das erste Extra > des Tages mit Schwartau Extra. Schwartau Für Schwartau Extra sind nur > ausgesuchte Früchte gut genug.</description> > <picture> > http://localhost:8081/capstore/images/articles/schwartau-erdbeer.png > </picture> > <ean>124</ean> > <substances class="java.util.ArrayList"/> > <comments class="java.util.ArrayList"/> > <ratings class="java.util.ArrayList"/> > <stores class="java.util.ArrayList"> > <store> > <id>4</id> > <name>Rewe</name> > <picture> > http://localhost:8081/capstore/images/stores/store3.jpg</picture> > <address> > <id>9</id> > <street>Kurfürstenallee</street> > <number>32</number> > <plz>28211</plz> > <city>Bremen</city> > <gpsLatitude>53.082477</gpsLatitude> > <gpsLongitude>8.84614</gpsLongitude> > </address> > <openinghours>Mo. - Fr. von 10.00 - 21.00 Uhr</openinghours> > <email>su...@re... <http://mc/compose?to=...@re...> > </email> > <phone>0521/2483349</phone> > <offer>http://localhost:8081/capstore/images/offers/offer.jpg > </offer> > </store> > </stores> > </article> > <count>1</count> > </shoppinglistItem> > > at > org.simpleframework.xml.stream.PrefixResolver.getPrefix(PrefixResolver.java:123) > at > org.simpleframework.xml.stream.PrefixResolver.resolvePrefix(PrefixResolver.java:183) > at > org.simpleframework.xml.stream.PrefixResolver.getPrefix(PrefixResolver.java:123) > at > org.simpleframework.xml.stream.PrefixResolver.resolvePrefix(PrefixResolver.java:183) > at > org.simpleframework.xml.stream.PrefixResolver.getPrefix(PrefixResolver.java:123) > at > org.simpleframework.xml.stream.PrefixResolver.resolvePrefix(PrefixResolver.java:183) > at > org.simpleframework.xml.stream.PrefixResolver.getPrefix(PrefixResolver.java:123) > at > org.simpleframework.xml.stream.PrefixResolver.resolvePrefix(PrefixResolver.java:183) > at > org.simpleframework.xml.stream.PrefixResolver.getPrefix(PrefixResolver.java:123) > at > org.simpleframework.xml.stream.PrefixResolver.resolvePrefix(PrefixResolver.java:183) > ... > > > regards > eddy > ~~~ > www.eduardunruh.de > > > 2012/3/14 Niall Gallagher <gal...@ya...<http://mc/compose?to=...@ya...> > > > > Next time it happens dump out the XML it occurs with. I think this may > have something to do with the weblogic stax parser. At any rate the XML is > the most important part here, I think it is has a prefix without a > reference. Or your StAX parser is NOT enabled for namespaces...Check out > the StAX config option. > > javax.xml.stream.isNamespaceAware=true > > > --- On *Wed, 14/3/12, Eddy Unruh <edd...@we...<http://mc/compose?to=...@we...> > >* wrote: > > > From: Eddy Unruh <edd...@we...<http://mc/compose?to=...@we...> > > > Subject: Re: [Simple-support] Stackoverflow in Simple XML > To: "Niall Gallagher" <gal...@ya...<http://mc/compose?to=...@ya...> > > > Cc: sim...@li...<http://mc/compose?to=...@li...> > Received: Wednesday, 14 March, 2012, 4:51 AM > > > Hi, > > thanks for your reply! > I've posted some code here: http://pastebin.de/24221 > The class, which is (de)serialized and the methods... > > Im using no XML parser - only the SimpleXML-tools.. or what do you mean? > > The strange thing is, that it does not always occur and its not always the > same object... it behaves really randomly.. > > > regards > eddy > > > > 2012/3/13 Niall Gallagher <gal...@ya...<http://mc/compose?to=...@ya...> > > > > Can u provide some code to illustrate your annotated class, also what XML > parser are u using? > > --- On *Tue, 13/3/12, Eddy Unruh <edd...@we...<http://mc/compose?to=...@we...> > >* wrote: > > > From: Eddy Unruh <edd...@we...<http://mc/compose?to=...@we...> > > > Subject: [Simple-support] Stackoverflow in Simple XML > To: sim...@li...<http://mc/compose?to=...@li...> > Received: Tuesday, 13 March, 2012, 3:13 AM > > > Hi, > > I have currently a problem with the library which I am not able to solve > on my own.. =/ > The problem is also posted here: > http://stackoverflow.com/questions/9676138/simple-xml-framework-weird-error > > > I would be very happy if someone could help me an give me a hint... > > > regards > Eddy > > > -----Inline Attachment Follows----- > > > ------------------------------------------------------------------------------ > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > > -----Inline Attachment Follows----- > > _______________________________________________ > Simple-support mailing list > Sim...@li...<http://mc/compose?to=...@li...> > https://lists.sourceforge.net/lists/listinfo/simple-support > > > > |