xmlbeans-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wing Yew Poon" <wp...@bea.com>
Subject FW: Parser corruption?
Date Mon, 19 Mar 2007 19:31:49 GMT
forward to the dev list. 

-----Original Message-----
From: Garth Patil [mailto:garthpatil@gmail.com] 
Sent: Monday, March 19, 2007 12:01 PM
To: user@xmlbeans.apache.org
Subject: Re: Parser corruption?

hi,
here's a patch that works for head. given my unfamiliarity with the
code, i'm not sure if this is a great solution. it takes a pretty
blunt approach to the problem by just assuming that the piccolo
instance is unusable if the parse() method throws any kind of
exception. in that event, it sets a flag, and the piccolo instance is
recreated when getPiccoloSaxLoader() is called the next time. this
solves my problem, but hopefully someone can comment on this approach
in terms of correctness and impact on performance.
thanks,
/garth

Index: src/store/org/apache/xmlbeans/impl/store/Locale.java
===================================================================
--- src/store/org/apache/xmlbeans/impl/store/Locale.java
(revision 520016)
+++ src/store/org/apache/xmlbeans/impl/store/Locale.java	(working
copy)
@@ -710,10 +710,12 @@

             return c;
         }
-        catch (IOException e)
+        catch (Exception e)
         {
             assert false: "StringReader should not throw IOException";

+	    piccoloCorrupt = true;
+
             throw new XmlException(e.getMessage(), e);
         }
         finally
@@ -3041,13 +3043,16 @@
         }
     }

+    private static boolean piccoloCorrupt = false;
+
     private static SaxLoader getPiccoloSaxLoader()
     {
         SaxLoader piccoloLoader = (SaxLoader)
SystemCache.get().getSaxLoader();
-        if (piccoloLoader == null)
+        if (piccoloLoader == null || piccoloCorrupt)
         {
             piccoloLoader = PiccoloSaxLoader.newInstance();
             SystemCache.get().setSaxLoader(piccoloLoader);
+	    piccoloCorrupt = false;
         }
         return piccoloLoader;
     }


On 3/17/07, Wing Yew Poon <wpoon@bea.com> wrote:
> Garth,
> if you open the xbean.jar from the release, you will find a
> manifest under meta-inf, and if you open the manifest, you will
> see the svn revision number in the version: 2.2.0-r413705.
> So the release was built from revision 413705.
> - Wing Yew
>
> -----Original Message-----
> From: Garth Patil [mailto:garthpatil@gmail.com]
> Sent: Friday, March 16, 2007 10:46 PM
> To: user@xmlbeans.apache.org
> Subject: Re: Parser corruption?
>
> hi radu,
> thanks for the insight. i looked around in the message archive, but
> couldn't find this exact problem before. however, if it's a known
> issue, i agree that it probably needs to be fixed, as not all
> applications can control the input of malformed xml.
> i think i see the way to dispose of the piccolo instance if a parse
> exception occurs. for those familiar with the code, do you think this
> would be an acceptable solution?
> also, does someone know the svn revision number the 2.2.0 release was
> built from? in addition to offering a patch for head, i'd like to do
> the same for 2.2.0, so that those who are using it in production can
> do so with minimal risk.
> thanks,
> /garth
>
> On 3/16/07, Radu Preotiuc-Pietro <radup@bea.com> wrote:
> > To be honest, I have heard about this problem before, sounds like
> > something that needs to be fixed.
> >
> > The Factory caches the Piccolo instance, so it may be that something
> > doesn't get cleaned up properly between parsing sessions in there.
> >
> > Thanks Jacob and Garth for looking into this!
> > Radu
> >
> > On Fri, 2007-03-16 at 13:19 -0700, Jacob Danner wrote:
> > > Fantastic, this will certainly help with my repro :)
> > > trying now.
> > > -Jacobd
> > >
> > > On 3/16/07, Garth Patil <garthpatil@gmail.com> wrote:
> > > > Hi,
> > > > I built a simple test program that shows this behavior. You can
> get it
> > > > at: http://tunnel19.com/xmlbeanstest.tar.gz
> > > > All you have to do is un-tar it and run 'ant'. It runs the
xmlbean
> ant
> > > > task against a minimal xsd (xsd/Test.xsd), compiles the
generated
> > > > files and a src/Test.java test program, and runs the test
program.
> The
> > > > test program loads two files (xml/good.xml and xml/bad.xml) as
> > > > Strings, and attempts to parse them using the Factory parse()
> method.
> > > > After the first bad xml is used, the parser does not recover on
> any
> > > > subsequent calls to parse(), even with good xml. I've attached
the
> > > > expected output that shows the bug.
> > > > Best,
> > > > Garth
> > > >
> > > > [garth@gpatil-workstation xmlbeanstest]$ ant clean;ant
> > > > Buildfile: build.xml
> > > >
> > > > init:
> > > >
> > > > clean:
> > > >    [delete] Deleting directory /home/garth/xmlbeanstest/build
> > > >
> > > > BUILD SUCCESSFUL
> > > > Total time: 0 seconds
> > > > Buildfile: build.xml
> > > >
> > > > init:
> > > >
> > > > prepare:
> > > >     [mkdir] Created dir: /home/garth/xmlbeanstest/build
> > > >     [mkdir] Created dir: /home/garth/xmlbeanstest/build/classes
> > > >     [mkdir] Created dir: /home/garth/xmlbeanstest/build/gensrc
> > > >
> > > > generate:
> > > >   [xmlbean] Time to build schema type system: 0.93 seconds
> > > >   [xmlbean] Time to generate code: 0.073 seconds
> > > >     [javac] Compiling 4 source files to
> /home/garth/xmlbeanstest/build/classes
> > > >     [javac] Note: Some input files use or override a deprecated
> API.
> > > >     [javac] Note: Recompile with -Xlint:deprecation for details.
> > > >
> > > > compile:
> > > >     [javac] Compiling 1 source file to
> /home/garth/xmlbeanstest/build/classes
> > > >
> > > > run:
> > > >      [java] 1
> > > >      [java] 2
> > > >      [java] 3
> > > >      [java] 4
> > > >      [java] org.apache.xmlbeans.XmlException: error: XML
> Declaration
> > > > not well-formed
> > > >      [java]
> org.apache.xmlbeans.impl.piccolo.io.FileFormatException:
> > > > XML Declaration not well-formed
> > > >      [java]     at
> > > >
>
org.apache.xmlbeans.impl.piccolo.xml.XMLDeclParser.parse(XMLDeclParser.j
> ava:907)
> > > >      [java]     at
> > > >
>
org.apache.xmlbeans.impl.piccolo.xml.XMLInputReader.parseXMLDeclaration(
> XMLInputReader.java:56)
> > > >      [java]     at
> > > >
>
org.apache.xmlbeans.impl.piccolo.xml.XMLReaderReader.processXMLDecl(XMLR
> eaderReader.java:258)
> > > >      [java]     at
> > > >
>
org.apache.xmlbeans.impl.piccolo.xml.XMLReaderReader.reset(XMLReaderRead
> er.java:85)
> > > >      [java]     at
> > > >
>
org.apache.xmlbeans.impl.piccolo.xml.DocumentEntity.open(DocumentEntity.
> java:75)
> > > >      [java]     at
> > > >
>
org.apache.xmlbeans.impl.piccolo.xml.PiccoloLexer.reset(PiccoloLexer.jav
> a:982)
> > > >      [java]     at
> > > >
> org.apache.xmlbeans.impl.piccolo.xml.Piccolo.parse(Piccolo.java:709)
> > > >      [java]     at
> > > >
> org.apache.xmlbeans.impl.store.Locale$SaxLoader.load(Locale.java:3435)
> > > >      [java]     at
> org.apache.xmlbeans.impl.store.Locale.parse(Locale.java:706)
> > > >      [java]     at
> > > >
>
org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:690)
> > > >      [java]     at
> > > >
>
org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:677)
> > > >      [java]     at
> > > >
>
org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoa
> derBase.java:208)
> > > >      [java]     at
> > > >
noNamespace.RequestDocument$Factory.parse(RequestDocument.java:52)
> > > >      [java]     at Test.main(Test.java:25)
> > > >      [java]     at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > > >      [java]     at
> > > >
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
> a:39)
> > > >      [java]     at
> > > >
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
> Impl.java:25)
> > > >      [java]     at
> java.lang.reflect.Method.invoke(Method.java:585)
> > > >      [java]     at
> > > >
> org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:217)
> > > >      [java]     at
> > > >
>
org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:152)
> > > >      [java]     at
> org.apache.tools.ant.taskdefs.Java.run(Java.java:747)
> > > >      [java]     at
> org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:201)
> > > >      [java]     at
> org.apache.tools.ant.taskdefs.Java.execute(Java.java:104)
> > > >      [java]     at
> > > >
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
> > > >      [java]     at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > > >      [java]     at
> > > >
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
> a:39)
> > > >      [java]     at
> > > >
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
> Impl.java:25)
> > > >      [java]     at
> java.lang.reflect.Method.invoke(Method.java:585)
> > > >      [java]     at
> > > >
>
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:1
> 05)
> > > >      [java]     at
> org.apache.tools.ant.Task.perform(Task.java:348)
> > > >      [java]     at
> org.apache.tools.ant.Target.execute(Target.java:357)
> > > >      [java]     at
> org.apache.tools.ant.Target.performTasks(Target.java:385)
> > > >      [java]     at
> > > >
> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
> > > >      [java]     at
> org.apache.tools.ant.Project.executeTarget(Project.java:1298)
> > > >      [java]     at
> > > >
>
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecut
> or.java:41)
> > > >      [java]     at
> > > > org.apache.tools.ant.Project.executeTargets(Project.java:1181)
> > > >      [java]     at
> org.apache.tools.ant.Main.runBuild(Main.java:698)
> > > >      [java]     at
> org.apache.tools.ant.Main.startAnt(Main.java:199)
> > > >      [java]     at
> org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
> > > >      [java]     at
> org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
> > > >      [java]
> > > >      [java]     at
> > > >
> org.apache.xmlbeans.impl.store.Locale$SaxLoader.load(Locale.java:3467)
> > > >      [java]     at
> org.apache.xmlbeans.impl.store.Locale.parse(Locale.java:706)
> > > >      [java]     at
> > > >
>
org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:690)
> > > >      [java]     at
> > > >
>
org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:677)
> > > >      [java]     at
> > > >
>
org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoa
> derBase.java:208)
> > > >      [java]     at
> > > >
noNamespace.RequestDocument$Factory.parse(RequestDocument.java:52)
> > > >      [java]     at Test.main(Test.java:25)
> > > >      [java]     at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > > >      [java]     at
> > > >
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
> a:39)
> > > >      [java]     at
> > > >
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
> Impl.java:25)
> > > >      [java]     at
> java.lang.reflect.Method.invoke(Method.java:585)
> > > >      [java]     at
> > > >
> org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:217)
> > > >      [java]     at
> > > >
>
org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:152)
> > > >      [java]     at
> org.apache.tools.ant.taskdefs.Java.run(Java.java:747)
> > > >      [java]     at
> org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:201)
> > > >      [java]     at
> org.apache.tools.ant.taskdefs.Java.execute(Java.java:104)
> > > >      [java]     at
> > > >
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
> > > >      [java]     at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > > >      [java]     at
> > > >
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
> a:39)
> > > >      [java]     at
> > > >
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
> Impl.java:25)
> > > >      [java]     at
> java.lang.reflect.Method.invoke(Method.java:585)
> > > >      [java]     at
> > > >
>
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:1
> 05)
> > > >      [java]     at
> org.apache.tools.ant.Task.perform(Task.java:348)
> > > >      [java]     at
> org.apache.tools.ant.Target.execute(Target.java:357)
> > > >      [java]     at
> org.apache.tools.ant.Target.performTasks(Target.java:385)
> > > >      [java]     at
> > > >
> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
> > > >      [java]     at
> org.apache.tools.ant.Project.executeTarget(Project.java:1298)
> > > >      [java]     at
> > > >
>
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecut
> or.java:41)
> > > >      [java]     at
> > > > org.apache.tools.ant.Project.executeTargets(Project.java:1181)
> > > >      [java]     at
> org.apache.tools.ant.Main.runBuild(Main.java:698)
> > > >      [java]     at
> org.apache.tools.ant.Main.startAnt(Main.java:199)
> > > >      [java]     at
> org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
> > > >      [java]     at
> org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
> > > >      [java] Caused by:
> > > > org.apache.xmlbeans.impl.piccolo.io.FileFormatException: XML
> > > > Declaration not well-formed
> > > >      [java]     at
> > > >
>
org.apache.xmlbeans.impl.piccolo.xml.Piccolo.reportFatalError(Piccolo.ja
> va:1038)
> > > >      [java]     at
> > > >
> org.apache.xmlbeans.impl.piccolo.xml.Piccolo.parse(Piccolo.java:720)
> > > >      [java]     at
> > > >
> org.apache.xmlbeans.impl.store.Locale$SaxLoader.load(Locale.java:3435)
> > > >      [java]     ... 32 more
> > > >      [java] 5
> > > >      [java] java.lang.NullPointerException
> > > >      [java]     at
> > > >
>
org.apache.xmlbeans.impl.piccolo.xml.DocumentEntity.close(DocumentEntity
> .java:154)
> > > >      [java]     at
> > > >
>
org.apache.xmlbeans.impl.piccolo.xml.DocumentEntity.reset(DocumentEntity
> .java:134)
> > > >      [java]     at
> > > >
> org.apache.xmlbeans.impl.piccolo.xml.Piccolo.parse(Piccolo.java:708)
> > > >      [java]     at
> > > >
> org.apache.xmlbeans.impl.store.Locale$SaxLoader.load(Locale.java:3435)
> > > >      [java]     at
> org.apache.xmlbeans.impl.store.Locale.parse(Locale.java:706)
> > > >      [java]     at
> > > >
>
org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:690)
> > > >      [java]     at
> > > >
>
org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:677)
> > > >      [java]     at
> > > >
>
org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoa
> derBase.java:208)
> > > >      [java]     at
> > > >
noNamespace.RequestDocument$Factory.parse(RequestDocument.java:52)
> > > >      [java]     at Test.main(Test.java:27)
> > > >      [java]     at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > > >      [java]     at
> > > >
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
> a:39)
> > > >      [java]     at
> > > >
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
> Impl.java:25)
> > > >      [java]     at
> java.lang.reflect.Method.invoke(Method.java:585)
> > > >      [java]     at
> > > >
> org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:217)
> > > >      [java]     at
> > > >
>
org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:152)
> > > >      [java]     at
> org.apache.tools.ant.taskdefs.Java.run(Java.java:747)
> > > >      [java]     at
> org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:201)
> > > >      [java]     at
> org.apache.tools.ant.taskdefs.Java.execute(Java.java:104)
> > > >      [java]     at
> > > >
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
> > > >      [java]     at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > > >      [java]     at
> > > >
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
> a:39)
> > > >      [java]     at
> > > >
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
> Impl.java:25)
> > > >      [java]     at
> java.lang.reflect.Method.invoke(Method.java:585)
> > > >      [java]     at
> > > >
>
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:1
> 05)
> > > >      [java]     at
> org.apache.tools.ant.Task.perform(Task.java:348)
> > > >      [java]     at
> org.apache.tools.ant.Target.execute(Target.java:357)
> > > >      [java]     at
> org.apache.tools.ant.Target.performTasks(Target.java:385)
> > > >      [java]     at
> > > >
> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
> > > >      [java]     at
> org.apache.tools.ant.Project.executeTarget(Project.java:1298)
> > > >      [java]     at
> > > >
>
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecut
> or.java:41)
> > > >      [java]     at
> > > > org.apache.tools.ant.Project.executeTargets(Project.java:1181)
> > > >      [java]     at
> org.apache.tools.ant.Main.runBuild(Main.java:698)
> > > >      [java]     at
> org.apache.tools.ant.Main.startAnt(Main.java:199)
> > > >      [java]     at
> org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
> > > >      [java]     at
> org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
> > > >      [java] 6
> > > >      [java] java.lang.NullPointerException
> > > >      [java]     at
> > > >
>
org.apache.xmlbeans.impl.piccolo.xml.DocumentEntity.close(DocumentEntity
> .java:154)
> > > >      [java]     at
> > > >
>
org.apache.xmlbeans.impl.piccolo.xml.DocumentEntity.reset(DocumentEntity
> .java:134)
> > > >      [java]     at
> > > >
> org.apache.xmlbeans.impl.piccolo.xml.Piccolo.parse(Piccolo.java:708)
> > > >      [java]     at
> > > >
> org.apache.xmlbeans.impl.store.Locale$SaxLoader.load(Locale.java:3435)
> > > >      [java]     at
> org.apache.xmlbeans.impl.store.Locale.parse(Locale.java:706)
> > > >      [java]     at
> > > >
>
org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:690)
> > > >      [java]     at
> > > >
>
org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:677)
> > > >      [java]     at
> > > >
>
org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoa
> derBase.java:208)
> > > >      [java]     at
> > > >
noNamespace.RequestDocument$Factory.parse(RequestDocument.java:52)
> > > >      [java]     at Test.main(Test.java:29)
> > > >      [java]     at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > > >      [java]     at
> > > >
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
> a:39)
> > > >      [java]     at
> > > >
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
> Impl.java:25)
> > > >      [java]     at
> java.lang.reflect.Method.invoke(Method.java:585)
> > > >      [java]     at
> > > >
> org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:217)
> > > >      [java]     at
> > > >
>
org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:152)
> > > >      [java]     at
> org.apache.tools.ant.taskdefs.Java.run(Java.java:747)
> > > >      [java]     at
> org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:201)
> > > >      [java]     at
> org.apache.tools.ant.taskdefs.Java.execute(Java.java:104)
> > > >      [java]     at
> > > >
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
> > > >      [java]     at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > > >      [java]     at
> > > >
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
> a:39)
> > > >      [java]     at
> > > >
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
> Impl.java:25)
> > > >      [java]     at
> java.lang.reflect.Method.invoke(Method.java:585)
> > > >      [java]     at
> > > >
>
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:1
> 05)
> > > >      [java]     at
> org.apache.tools.ant.Task.perform(Task.java:348)
> > > >      [java]     at
> org.apache.tools.ant.Target.execute(Target.java:357)
> > > >      [java]     at
> org.apache.tools.ant.Target.performTasks(Target.java:385)
> > > >      [java]     at
> > > >
> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
> > > >      [java]     at
> org.apache.tools.ant.Project.executeTarget(Project.java:1298)
> > > >      [java]     at
> > > >
>
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecut
> or.java:41)
> > > >      [java]     at
> > > > org.apache.tools.ant.Project.executeTargets(Project.java:1181)
> > > >      [java]     at
> org.apache.tools.ant.Main.runBuild(Main.java:698)
> > > >      [java]     at
> org.apache.tools.ant.Main.startAnt(Main.java:199)
> > > >      [java]     at
> org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
> > > >      [java]     at
> org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
> > > >      [java] 7
> > > >      [java] java.lang.NullPointerException
> > > >      [java]     at
> > > >
>
org.apache.xmlbeans.impl.piccolo.xml.DocumentEntity.close(DocumentEntity
> .java:154)
> > > >      [java]     at
> > > >
>
org.apache.xmlbeans.impl.piccolo.xml.DocumentEntity.reset(DocumentEntity
> .java:134)
> > > >      [java]     at
> > > >
> org.apache.xmlbeans.impl.piccolo.xml.Piccolo.parse(Piccolo.java:708)
> > > >      [java]     at
> > > >
> org.apache.xmlbeans.impl.store.Locale$SaxLoader.load(Locale.java:3435)
> > > >      [java]     at
> org.apache.xmlbeans.impl.store.Locale.parse(Locale.java:706)
> > > >      [java]     at
> > > >
>
org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:690)
> > > >      [java]     at
> > > >
>
org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:677)
> > > >      [java]     at
> > > >
>
org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoa
> derBase.java:208)
> > > >      [java]     at
> > > >
noNamespace.RequestDocument$Factory.parse(RequestDocument.java:52)
> > > >      [java]     at Test.main(Test.java:31)
> > > >      [java]     at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > > >      [java]     at
> > > >
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
> a:39)
> > > >      [java]     at
> > > >
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
> Impl.java:25)
> > > >      [java]     at
> java.lang.reflect.Method.invoke(Method.java:585)
> > > >      [java]     at
> > > >
> org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:217)
> > > >      [java]     at
> > > >
>
org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:152)
> > > >      [java]     at
> org.apache.tools.ant.taskdefs.Java.run(Java.java:747)
> > > >      [java]     at
> org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:201)
> > > >      [java]     at
> org.apache.tools.ant.taskdefs.Java.execute(Java.java:104)
> > > >      [java]     at
> > > >
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
> > > >      [java]     at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > > >      [java]     at
> > > >
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
> a:39)
> > > >      [java]     at
> > > >
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
> Impl.java:25)
> > > >      [java]     at
> java.lang.reflect.Method.invoke(Method.java:585)
> > > >      [java]     at
> > > >
>
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:1
> 05)
> > > >      [java]     at
> org.apache.tools.ant.Task.perform(Task.java:348)
> > > >      [java]     at
> org.apache.tools.ant.Target.execute(Target.java:357)
> > > >      [java]     at
> org.apache.tools.ant.Target.performTasks(Target.java:385)
> > > >      [java]     at
> > > >
> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
> > > >      [java]     at
> org.apache.tools.ant.Project.executeTarget(Project.java:1298)
> > > >      [java]     at
> > > >
>
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecut
> or.java:41)
> > > >      [java]     at
> > > > org.apache.tools.ant.Project.executeTargets(Project.java:1181)
> > > >      [java]     at
> org.apache.tools.ant.Main.runBuild(Main.java:698)
> > > >      [java]     at
> org.apache.tools.ant.Main.startAnt(Main.java:199)
> > > >      [java]     at
> org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
> > > >      [java]     at
> org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
> > > >      [java] 8
> > > >      [java] java.lang.NullPointerException
> > > >      [java]     at
> > > >
>
org.apache.xmlbeans.impl.piccolo.xml.DocumentEntity.close(DocumentEntity
> .java:154)
> > > >      [java]     at
> > > >
>
org.apache.xmlbeans.impl.piccolo.xml.DocumentEntity.reset(DocumentEntity
> .java:134)
> > > >      [java]     at
> > > >
> org.apache.xmlbeans.impl.piccolo.xml.Piccolo.parse(Piccolo.java:708)
> > > >      [java]     at
> > > >
> org.apache.xmlbeans.impl.store.Locale$SaxLoader.load(Locale.java:3435)
> > > >      [java]     at
> org.apache.xmlbeans.impl.store.Locale.parse(Locale.java:706)
> > > >      [java]     at
> > > >
>
org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:690)
> > > >      [java]     at
> > > >
>
org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:677)
> > > >      [java]     at
> > > >
>
org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoa
> derBase.java:208)
> > > >      [java]     at
> > > >
noNamespace.RequestDocument$Factory.parse(RequestDocument.java:52)
> > > >      [java]     at Test.main(Test.java:33)
> > > >      [java]     at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > > >      [java]     at
> > > >
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
> a:39)
> > > >      [java]     at
> > > >
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
> Impl.java:25)
> > > >      [java]     at
> java.lang.reflect.Method.invoke(Method.java:585)
> > > >      [java]     at
> > > >
> org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:217)
> > > >      [java]     at
> > > >
>
org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:152)
> > > >      [java]     at
> org.apache.tools.ant.taskdefs.Java.run(Java.java:747)
> > > >      [java]     at
> org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:201)
> > > >      [java]     at
> org.apache.tools.ant.taskdefs.Java.execute(Java.java:104)
> > > >      [java]     at
> > > >
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
> > > >      [java]     at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > > >      [java]     at
> > > >
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
> a:39)
> > > >      [java]     at
> > > >
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
> Impl.java:25)
> > > >      [java]     at
> java.lang.reflect.Method.invoke(Method.java:585)
> > > >      [java]     at
> > > >
>
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:1
> 05)
> > > >      [java]     at
> org.apache.tools.ant.Task.perform(Task.java:348)
> > > >      [java]     at
> org.apache.tools.ant.Target.execute(Target.java:357)
> > > >      [java]     at
> org.apache.tools.ant.Target.performTasks(Target.java:385)
> > > >      [java]     at
> > > >
> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
> > > >      [java]     at
> org.apache.tools.ant.Project.executeTarget(Project.java:1298)
> > > >      [java]     at
> > > >
>
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecut
> or.java:41)
> > > >      [java]     at
> > > > org.apache.tools.ant.Project.executeTargets(Project.java:1181)
> > > >      [java]     at
> org.apache.tools.ant.Main.runBuild(Main.java:698)
> > > >      [java]     at
> org.apache.tools.ant.Main.startAnt(Main.java:199)
> > > >      [java]     at
> org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
> > > >      [java]     at
> org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
> > > >      [java] 9
> > > >      [java] java.lang.NullPointerException
> > > >      [java]     at
> > > >
>
org.apache.xmlbeans.impl.piccolo.xml.DocumentEntity.close(DocumentEntity
> .java:154)
> > > >      [java]     at
> > > >
>
org.apache.xmlbeans.impl.piccolo.xml.DocumentEntity.reset(DocumentEntity
> .java:134)
> > > >      [java]     at
> > > >
> org.apache.xmlbeans.impl.piccolo.xml.Piccolo.parse(Piccolo.java:708)
> > > >      [java]     at
> > > >
> org.apache.xmlbeans.impl.store.Locale$SaxLoader.load(Locale.java:3435)
> > > >      [java]     at
> org.apache.xmlbeans.impl.store.Locale.parse(Locale.java:706)
> > > >      [java]     at
> > > >
>
org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:690)
> > > >      [java]     at
> > > >
>
org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:677)
> > > >      [java]     at
> > > >
>
org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoa
> derBase.java:208)
> > > >      [java]     at
> > > >
noNamespace.RequestDocument$Factory.parse(RequestDocument.java:52)
> > > >      [java]     at Test.main(Test.java:35)
> > > >      [java]     at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > > >      [java]     at
> > > >
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
> a:39)
> > > >      [java]     at
> > > >
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
> Impl.java:25)
> > > >      [java]     at
> java.lang.reflect.Method.invoke(Method.java:585)
> > > >      [java]     at
> > > >
> org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:217)
> > > >      [java]     at
> > > >
>
org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:152)
> > > >      [java]     at
> org.apache.tools.ant.taskdefs.Java.run(Java.java:747)
> > > >      [java]     at
> org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:201)
> > > >      [java]     at
> org.apache.tools.ant.taskdefs.Java.execute(Java.java:104)
> > > >      [java]     at
> > > >
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
> > > >      [java]     at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > > >      [java]     at
> > > >
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
> a:39)
> > > >      [java]     at
> > > >
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
> Impl.java:25)
> > > >      [java]     at
> java.lang.reflect.Method.invoke(Method.java:585)
> > > >      [java]     at
> > > >
>
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:1
> 05)
> > > >      [java]     at
> org.apache.tools.ant.Task.perform(Task.java:348)
> > > >      [java]     at
> org.apache.tools.ant.Target.execute(Target.java:357)
> > > >      [java]     at
> org.apache.tools.ant.Target.performTasks(Target.java:385)
> > > >      [java]     at
> > > >
> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
> > > >      [java]     at
> org.apache.tools.ant.Project.executeTarget(Project.java:1298)
> > > >      [java]     at
> > > >
>
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecut
> or.java:41)
> > > >      [java]     at
> > > > org.apache.tools.ant.Project.executeTargets(Project.java:1181)
> > > >      [java]     at
> org.apache.tools.ant.Main.runBuild(Main.java:698)
> > > >      [java]     at
> org.apache.tools.ant.Main.startAnt(Main.java:199)
> > > >      [java]     at
> org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
> > > >      [java]     at
> org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
> > > >      [java] 10
> > > >      [java] java.lang.NullPointerException
> > > >      [java]     at
> > > >
>
org.apache.xmlbeans.impl.piccolo.xml.DocumentEntity.close(DocumentEntity
> .java:154)
> > > >      [java]     at
> > > >
>
org.apache.xmlbeans.impl.piccolo.xml.DocumentEntity.reset(DocumentEntity
> .java:134)
> > > >      [java]     at
> > > >
> org.apache.xmlbeans.impl.piccolo.xml.Piccolo.parse(Piccolo.java:708)
> > > >      [java]     at
> > > >
> org.apache.xmlbeans.impl.store.Locale$SaxLoader.load(Locale.java:3435)
> > > >      [java]     at
> org.apache.xmlbeans.impl.store.Locale.parse(Locale.java:706)
> > > >      [java]     at
> > > >
>
org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:690)
> > > >      [java]     at
> > > >
>
org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:677)
> > > >      [java]     at
> > > >
>
org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoa
> derBase.java:208)
> > > >      [java]     at
> > > >
noNamespace.RequestDocument$Factory.parse(RequestDocument.java:52)
> > > >      [java]     at Test.main(Test.java:37)
> > > >      [java]     at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > > >      [java]     at
> > > >
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
> a:39)
> > > >      [java]     at
> > > >
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
> Impl.java:25)
> > > >      [java]     at
> java.lang.reflect.Method.invoke(Method.java:585)
> > > >      [java]     at
> > > >
> org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:217)
> > > >      [java]     at
> > > >
>
org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:152)
> > > >      [java]     at
> org.apache.tools.ant.taskdefs.Java.run(Java.java:747)
> > > >      [java]     at
> org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:201)
> > > >      [java]     at
> org.apache.tools.ant.taskdefs.Java.execute(Java.java:104)
> > > >      [java]     at
> > > >
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
> > > >      [java]     at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > > >      [java]     at
> > > >
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
> a:39)
> > > >      [java]     at
> > > >
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
> Impl.java:25)
> > > >      [java]     at
> java.lang.reflect.Method.invoke(Method.java:585)
> > > >      [java]     at
> > > >
>
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:1
> 05)
> > > >      [java]     at
> org.apache.tools.ant.Task.perform(Task.java:348)
> > > >      [java]     at
> org.apache.tools.ant.Target.execute(Target.java:357)
> > > >      [java]     at
> org.apache.tools.ant.Target.performTasks(Target.java:385)
> > > >      [java]     at
> > > >
> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
> > > >      [java]     at
> org.apache.tools.ant.Project.executeTarget(Project.java:1298)
> > > >      [java]     at
> > > >
>
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecut
> or.java:41)
> > > >      [java]     at
> > > > org.apache.tools.ant.Project.executeTargets(Project.java:1181)
> > > >      [java]     at
> org.apache.tools.ant.Main.runBuild(Main.java:698)
> > > >      [java]     at
> org.apache.tools.ant.Main.startAnt(Main.java:199)
> > > >      [java]     at
> org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
> > > >      [java]     at
> org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
> > > >      [java] 11
> > > >      [java] java.lang.NullPointerException
> > > >      [java]     at
> > > >
>
org.apache.xmlbeans.impl.piccolo.xml.DocumentEntity.close(DocumentEntity
> .java:154)
> > > >      [java]     at
> > > >
>
org.apache.xmlbeans.impl.piccolo.xml.DocumentEntity.reset(DocumentEntity
> .java:134)
> > > >      [java]     at
> > > >
> org.apache.xmlbeans.impl.piccolo.xml.Piccolo.parse(Piccolo.java:708)
> > > >      [java]     at
> > > >
> org.apache.xmlbeans.impl.store.Locale$SaxLoader.load(Locale.java:3435)
> > > >      [java]     at
> org.apache.xmlbeans.impl.store.Locale.parse(Locale.java:706)
> > > >      [java]     at
> > > >
>
org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:690)
> > > >      [java]     at
> > > >
>
org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:677)
> > > >      [java]     at
> > > >
>
org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoa
> derBase.java:208)
> > > >      [java]     at
> > > >
noNamespace.RequestDocument$Factory.parse(RequestDocument.java:52)
> > > >      [java]     at Test.main(Test.java:39)
> > > >      [java]     at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > > >      [java]     at
> > > >
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
> a:39)
> > > >      [java]     at
> > > >
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
> Impl.java:25)
> > > >      [java]     at
> java.lang.reflect.Method.invoke(Method.java:585)
> > > >      [java]     at
> > > >
> org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:217)
> > > >      [java]     at
> > > >
>
org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:152)
> > > >      [java]     at
> org.apache.tools.ant.taskdefs.Java.run(Java.java:747)
> > > >      [java]     at
> org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:201)
> > > >      [java]     at
> org.apache.tools.ant.taskdefs.Java.execute(Java.java:104)
> > > >      [java]     at
> > > >
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
> > > >      [java]     at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > > >      [java]     at
> > > >
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
> a:39)
> > > >      [java]     at
> > > >
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
> Impl.java:25)
> > > >      [java]     at
> java.lang.reflect.Method.invoke(Method.java:585)
> > > >      [java]     at
> > > >
>
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:1
> 05)
> > > >      [java]     at
> org.apache.tools.ant.Task.perform(Task.java:348)
> > > >      [java]     at
> org.apache.tools.ant.Target.execute(Target.java:357)
> > > >      [java]     at
> org.apache.tools.ant.Target.performTasks(Target.java:385)
> > > >      [java]     at
> > > >
> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
> > > >      [java]     at
> org.apache.tools.ant.Project.executeTarget(Project.java:1298)
> > > >      [java]     at
> > > >
>
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecut
> or.java:41)
> > > >      [java]     at
> > > > org.apache.tools.ant.Project.executeTargets(Project.java:1181)
> > > >      [java]     at
> org.apache.tools.ant.Main.runBuild(Main.java:698)
> > > >      [java]     at
> org.apache.tools.ant.Main.startAnt(Main.java:199)
> > > >      [java]     at
> org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
> > > >      [java]     at
> org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
> > > >      [java] 12
> > > >      [java] java.lang.NullPointerException
> > > >      [java]     at
> > > >
>
org.apache.xmlbeans.impl.piccolo.xml.DocumentEntity.close(DocumentEntity
> .java:154)
> > > >      [java]     at
> > > >
>
org.apache.xmlbeans.impl.piccolo.xml.DocumentEntity.reset(DocumentEntity
> .java:134)
> > > >      [java]     at
> > > >
> org.apache.xmlbeans.impl.piccolo.xml.Piccolo.parse(Piccolo.java:708)
> > > >      [java]     at
> > > >
> org.apache.xmlbeans.impl.store.Locale$SaxLoader.load(Locale.java:3435)
> > > >      [java]     at
> org.apache.xmlbeans.impl.store.Locale.parse(Locale.java:706)
> > > >      [java]     at
> > > >
>
org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:690)
> > > >      [java]     at
> > > >
>
org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:677)
> > > >      [java]     at
> > > >
>
org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoa
> derBase.java:208)
> > > >      [java]     at
> > > >
noNamespace.RequestDocument$Factory.parse(RequestDocument.java:52)
> > > >      [java]     at Test.main(Test.java:41)
> > > >      [java]     at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > > >      [java]     at
> > > >
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
> a:39)
> > > >      [java]     at
> > > >
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
> Impl.java:25)
> > > >      [java]     at
> java.lang.reflect.Method.invoke(Method.java:585)
> > > >      [java]     at
> > > >
> org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:217)
> > > >      [java]     at
> > > >
>
org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:152)
> > > >      [java]     at
> org.apache.tools.ant.taskdefs.Java.run(Java.java:747)
> > > >      [java]     at
> org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:201)
> > > >      [java]     at
> org.apache.tools.ant.taskdefs.Java.execute(Java.java:104)
> > > >      [java]     at
> > > >
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
> > > >      [java]     at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > > >      [java]     at
> > > >
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
> a:39)
> > > >      [java]     at
> > > >
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
> Impl.java:25)
> > > >      [java]     at
> java.lang.reflect.Method.invoke(Method.java:585)
> > > >      [java]     at
> > > >
>
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:1
> 05)
> > > >      [java]     at
> org.apache.tools.ant.Task.perform(Task.java:348)
> > > >      [java]     at
> org.apache.tools.ant.Target.execute(Target.java:357)
> > > >      [java]     at
> org.apache.tools.ant.Target.performTasks(Target.java:385)
> > > >      [java]     at
> > > >
> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
> > > >      [java]     at
> org.apache.tools.ant.Project.executeTarget(Project.java:1298)
> > > >      [java]     at
> > > >
>
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecut
> or.java:41)
> > > >      [java]     at
> > > > org.apache.tools.ant.Project.executeTargets(Project.java:1181)
> > > >      [java]     at
> org.apache.tools.ant.Main.runBuild(Main.java:698)
> > > >      [java]     at
> org.apache.tools.ant.Main.startAnt(Main.java:199)
> > > >      [java]     at
> org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
> > > >      [java]     at
> org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
> > > >
> > > > BUILD SUCCESSFUL
> > > > Total time: 4 seconds
> > > >
> > > >
> > > > On 3/16/07, Jacob Danner <jacob.danner@gmail.com> wrote:
> > > > > Cool, thanks for the info, I'll give it a try.
> > > > > Thanks,
> > > > > -Jacobd
> > > > >
> > > > > On 3/15/07, Garth Patil <garthpatil@gmail.com> wrote:
> > > > > > Error #2 occurs after Error #1 regardless if the XML is
> well-formed.
> > > > > > An example of several requests:
> > > > > > 1. send in good xml -- > successful parse with no errors.
> > > > > > 2. send in good xml -- > successful parse with no errors.
> > > > > > 3. send in bad xml -- > Error #1.
> > > > > > 4. send in good xml -- > successful parse with no errors.
> > > > > > 5. send in good xml -- > Error #2.
> > > > > > 6. send in good xml -- > successful parse with no errors.
> > > > > > 7. send in good xml -- > Error #2.
> > > > > > 8. send in good xml -- > successful parse with no errors.
> > > > > > 9. send in bad xml -- > Error #2.
> > > > > > 10. send in good xml -- > successful parse with no errors.
> > > > > > 11. send in good xml -- > Error #2.
> > > > > > 12. send in good xml -- > successful parse with no errors.
> > > > > >
> > > > > > Once Error #1 occurs, Error #2 occurs in an alternating
> fashion with a
> > > > > > successful parse (assuming the xml is good). That's why I'm
> guessing
> > > > > > that something is becoming corrupted in the Factory.
> > > > > > Thanks,
> > > > > > Garth
> > > > > >
> > > > > >
> > > > > > On 3/15/07, Jacob Danner <jacob.danner@gmail.com> wrote:
> > > > > > > Hi Garth,
> > > > > > > From my experiences with Xmlbeans, Error #1 is expected
> whenever
> > > > > > > bad/invalid xml is encountered. XMLBeans was not made to
> work with bad
> > > > > > > xml.
> > > > > > > As far as error #2, I'm not sure why you are getting that,
> but I'll
> > > > > > > investigate a little bit more.
> > > > > > > So I understand, are you saying error #2 occurs when you
> pass in good,
> > > > > > > then bad xml? Does it ever just occur when you pass in the
> bad XML?
> > > > > > > Thanks,
> > > > > > > -Jacobd
> > > > > > >
> > > > > > > On 3/15/07, Garth Patil <garthpatil@gmail.com> wrote:
> > > > > > > > Hi,
> > > > > > > > I'm seeing a problem with using the Factory parse()
method
> corrupting
> > > > > > > > after it sees malformed XML. For example, I have a web
> service that
> > > > > > > > receives XML over an HTTP POST, and uses Xmlbeans to
parse
> the XML. I
> > > > > > > > use the parse() method that takes a String.
> > > > > > > > When I send an intentionally invalid XML string to the
> service, it
> > > > > > > > produces Error #1 below. The XML I send is:
> > > > > > > > <?xml verion="1.0" ?>
> > > > > > > > <request clientId="1234" clientKey="5678">
> > > > > > > >   <message>Test message</message>
> > > > > > > > </request>
> > > > > > > >
> > > > > > > > Notice that the XML declaration has "verion" instead of
> "version"
> > > > > > > > (missing the "s"). When I correct the XML and send the
> following, the
> > > > > > > > parse() method succeeds half the time and fails (with
> Error #2 below)
> > > > > > > > half the time. The successes and failures exactly
> alternate.
> > > > > > > > <?xml version="1.0" ?>
> > > > > > > > <request clientId="1234" clientKey="5678">
> > > > > > > >   <message>Test message</message>
> > > > > > > > </request>
> > > > > > > >
> > > > > > > > Has anyone seen a similar behavior? Is there any way to
> tell the
> > > > > > > > document factory to dispose of it's digesters and create
> new ones if
> > > > > > > > there is an error while parsing?
> > > > > > > > Thanks,
> > > > > > > > Garth
> > > > > > > >
> > > > > > > > Error #1:
> > > > > > > > 2007-03-15 15:50:48,621 [http-9602-Processor23] ERROR
> > > > > > > > com.someone.gateway.servlet.request.Request  - Error
> parsing xml input
> > > > > > > > stream!
> > > > > > > > org.apache.xmlbeans.XmlException: XML Declaration not
> well-formed
> > > > > > > >         at
>
org.apache.xmlbeans.impl.newstore2.Locale$SaxLoader.load(Locale.java:277
> 0)
> > > > > > > >         at
> org.apache.xmlbeans.impl.newstore2.Locale.parse(Locale.java:626)
> > > > > > > >         at
>
org.apache.xmlbeans.impl.newstore2.Locale.parseToXmlObject(Locale.java:6
> 11)
> > > > > > > >         at
>
org.apache.xmlbeans.impl.newstore2.Locale.parseToXmlObject(Locale.java:6
> 05)
> > > > > > > >         at
>
org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoa
> derBase.java:200)
> > > > > > > >         at
>
net.someone.gateway.RequestDocument$Factory.parse(RequestDocument.java:5
> 1)
> > > > > > > >         at
> com.someone.gateway.servlet.request.Request.parse(Request.java:52)
> > > > > > > >         at
> com.someone.gateway.servlet.Gateway.doPost(Gateway.java:64)
> > > > > > > >         at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
> > > > > > > >         at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> > > > > > > >         at
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
> tionFilterChain.java:252)
> > > > > > > >         at
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
> erChain.java:173)
> > > > > > > >         at
>
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
> e.java:213)
> > > > > > > >         at
>
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
> e.java:178)
> > > > > > > >         at
>
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
> :126)
> > > > > > > >         at
>
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
> :105)
> > > > > > > >         at
>
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
> java:107)
> > > > > > > >         at
>
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:1
> 48)
> > > > > > > >         at
>
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:86
> 9)
> > > > > > > >         at
>
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.proc
> essConnection(Http11BaseProtocol.java:664)
> > > > > > > >         at
>
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint
> .java:527)
> > > > > > > >         at
>
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollow
> erWorkerThread.java:80)
> > > > > > > >         at
>
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
> .java:684)
> > > > > > > >         at java.lang.Thread.run(Thread.java:595)
> > > > > > > > Caused by:
> org.apache.xmlbeans.impl.piccolo.io.FileFormatException:
> > > > > > > > XML Declaration not well-formed
> > > > > > > >         at
>
org.apache.xmlbeans.impl.piccolo.xml.XMLDeclParser.parse(XMLDeclParser.j
> ava:905)
> > > > > > > >         at
>
org.apache.xmlbeans.impl.piccolo.xml.XMLInputReader.parseXMLDeclaration(
> XMLInputReader.java:56)
> > > > > > > >         at
>
org.apache.xmlbeans.impl.piccolo.xml.XMLReaderReader.processXMLDecl(XMLR
> eaderReader.java:260)
> > > > > > > >         at
>
org.apache.xmlbeans.impl.piccolo.xml.XMLReaderReader.reset(XMLReaderRead
> er.java:85)
> > > > > > > >         at
>
org.apache.xmlbeans.impl.piccolo.xml.DocumentEntity.open(DocumentEntity.
> java:75)
> > > > > > > >         at
>
org.apache.xmlbeans.impl.piccolo.xml.PiccoloLexer.reset(PiccoloLexer.jav
> a:971)
> > > > > > > >         at
> org.apache.xmlbeans.impl.piccolo.xml.Piccolo.parse(Piccolo.java:697)
> > > > > > > >         at
>
org.apache.xmlbeans.impl.newstore2.Locale$SaxLoader.load(Locale.java:275
> 6)
> > > > > > > >         ... 23 more
> > > > > > > >
> > > > > > > >
> > > > > > > > Error #2:
> > > > > > > > 2007-03-15 15:51:41,512 [http-9602-Processor23] ERROR
> > > > > > > > com.someone.gateway.servlet.request.Request  - Error
> parsing xml input
> > > > > > > > stream!
> > > > > > > > java.lang.NullPointerException
> > > > > > > >         at
>
org.apache.xmlbeans.impl.piccolo.xml.DocumentEntity.close(DocumentEntity
> .java:154)
> > > > > > > >         at
>
org.apache.xmlbeans.impl.piccolo.xml.DocumentEntity.reset(DocumentEntity
> .java:134)
> > > > > > > >         at
> org.apache.xmlbeans.impl.piccolo.xml.Piccolo.parse(Piccolo.java:696)
> > > > > > > >         at
>
org.apache.xmlbeans.impl.newstore2.Locale$SaxLoader.load(Locale.java:275
> 6)
> > > > > > > >         at
> org.apache.xmlbeans.impl.newstore2.Locale.parse(Locale.java:626)
> > > > > > > >         at
>
org.apache.xmlbeans.impl.newstore2.Locale.parseToXmlObject(Locale.java:6
> 11)
> > > > > > > >         at
>
org.apache.xmlbeans.impl.newstore2.Locale.parseToXmlObject(Locale.java:6
> 05)
> > > > > > > >         at
>
org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoa
> derBase.java:200)
> > > > > > > >         at
>
net.someone.gateway.RequestDocument$Factory.parse(RequestDocument.java:5
> 1)
> > > > > > > >         at
> com.someone.gateway.servlet.request.Request.parse(Request.java:52)
> > > > > > > >         at
> com.someone.gateway.servlet.Gateway.doPost(Gateway.java:64)
> > > > > > > >         at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
> > > > > > > >         at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> > > > > > > >         at
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
> tionFilterChain.java:252)
> > > > > > > >         at
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
> erChain.java:173)
> > > > > > > >         at
>
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
> e.java:213)
> > > > > > > >         at
>
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
> e.java:178)
> > > > > > > >         at
>
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
> :126)
> > > > > > > >         at
>
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
> :105)
> > > > > > > >         at
>
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
> java:107)
> > > > > > > >         at
>
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:1
> 48)
> > > > > > > >         at
>
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:86
> 9)
> > > > > > > >         at
>
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.proc
> essConnection(Http11BaseProtocol.java:664)
> > > > > > > >         at
>
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint
> .java:527)
> > > > > > > >         at
>
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollow
> erWorkerThread.java:80)
> > > > > > > >         at
>
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
> .java:684)
> > > > > > > >         at java.lang.Thread.run(Thread.java:595)
> > > > > > > >
> > > > > > > >
> ---------------------------------------------------------------------
> > > > > > > > To unsubscribe, e-mail:
> user-unsubscribe@xmlbeans.apache.org
> > > > > > > > For additional commands, e-mail:
> user-help@xmlbeans.apache.org
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > > >
> ---------------------------------------------------------------------
> > > > > > > To unsubscribe, e-mail:
user-unsubscribe@xmlbeans.apache.org
> > > > > > > For additional commands, e-mail:
> user-help@xmlbeans.apache.org
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> ---------------------------------------------------------------------
> > > > > > To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
> > > > > > For additional commands, e-mail:
user-help@xmlbeans.apache.org
> > > > > >
> > > > > >
> > > > >
> > > > >
> ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
> > > > > For additional commands, e-mail: user-help@xmlbeans.apache.org
> > > > >
> > > > >
> > > >
> > > >
> ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
> > > > For additional commands, e-mail: user-help@xmlbeans.apache.org
> > > >
> > > >
> > >
> > >
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
> > > For additional commands, e-mail: user-help@xmlbeans.apache.org
> > >
> >
>
_______________________________________________________________________
> > Notice:  This email message, together with any attachments, may
> contain
> > information  of  BEA Systems,  Inc.,  its subsidiaries  and
> affiliated
> > entities,  that may be confidential,  proprietary,  copyrighted
> and/or
> > legally privileged, and is intended solely for the use of the
> individual
> > or entity named in this message. If you are not the intended
> recipient,
> > and have received this message in error, please immediately return
> this
> > by email and then delete it.
> >
> >
---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
> > For additional commands, e-mail: user-help@xmlbeans.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
> For additional commands, e-mail: user-help@xmlbeans.apache.org
>
>
_______________________________________________________________________
> Notice:  This email message, together with any attachments, may
contain
> information  of  BEA Systems,  Inc.,  its subsidiaries  and
affiliated
> entities,  that may be confidential,  proprietary,  copyrighted
and/or
> legally privileged, and is intended solely for the use of the
individual
> or entity named in this message. If you are not the intended
recipient,
> and have received this message in error, please immediately return
this
> by email and then delete it.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
> For additional commands, e-mail: user-help@xmlbeans.apache.org
>
>
_______________________________________________________________________
Notice:  This email message, together with any attachments, may contain
information  of  BEA Systems,  Inc.,  its subsidiaries  and  affiliated
entities,  that may be confidential,  proprietary,  copyrighted  and/or
legally privileged, and is intended solely for the use of the individual
or entity named in this message. If you are not the intended recipient,
and have received this message in error, please immediately return this
by email and then delete it.

Mime
View raw message