xml-xmlbeans-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Noah Campbell <noahcampb...@gmail.com>
Subject Re: scomp does not compile standard IFX or ACORD schemas
Date Wed, 07 Jul 2004 02:18:12 GMT
Tried with the memory option

C:\Temp\IFX1.5-XSD-DTD>scomp -noupa -mx 1024m IFX150_XSD.xsd
[JAM] Warning: This build of JAM was not with JDK 1.5.Even though you are now ru
nning under JDK 1.5, JSR175-style annotations will not be available
Time to build schema type system: 4.219 seconds
Time to generate code: 56.969 seconds
java.io.IOException: CreateProcess: C:\Temp\IFX1.5-XSD-DTD\javac -J-Xmx1024m @C:
\DOCUME~1\NOAHCA~1\LOCALS~1\Temp\javac63200 error=2
null
java.io.IOException: CreateProcess: C:\Temp\IFX1.5-XSD-DTD\javac -J-Xmx1024m @C:
\DOCUME~1\NOAHCA~1\LOCALS~1\Temp\javac63200 error=2
        at java.lang.ProcessImpl.create(Native Method)
        at java.lang.ProcessImpl.<init>(Unknown Source)
        at java.lang.ProcessImpl.start(Unknown Source)
        at java.lang.ProcessBuilder.start(Unknown Source)
        at java.lang.Runtime.exec(Unknown Source)
        at java.lang.Runtime.exec(Unknown Source)
        at org.apache.xmlbeans.impl.tool.CodeGenUtil.externalCompile(CodeGenUtil
.java:217)
        at org.apache.xmlbeans.impl.tool.SchemaCompiler.compile(SchemaCompiler.j
ava:894)
        at org.apache.xmlbeans.impl.tool.SchemaCompiler.main(SchemaCompiler.java
:294)
BUILD FAILED
C:\Temp\IFX1.5-XSD-DTD>

On Tue, 6 Jul 2004 22:14:27 -0400, Noah Campbell <noahcampbell@gmail.com> wrote:
> Looks like a bug...maybe I'm running out of memory
> 
> C:\Temp\IFX1.5-XSD-DTD>scomp -noupa IFX150_XSD.xsd
> [JAM] Warning: This build of JAM was not with JDK 1.5.Even though you are now ru
> nning under JDK 1.5, JSR175-style annotations will not be available
> Time to build schema type system: 5.235 seconds
> Time to generate code: 59.781 seconds
> java.io.IOException: CreateProcess: C:\Temp\IFX1.5-XSD-DTD\javac @C:\DOCUME~1\NO
> AHCA~1\LOCALS~1\Temp\javac61975 error=2
> null
> java.io.IOException: CreateProcess: C:\Temp\IFX1.5-XSD-DTD\javac @C:\DOCUME~1\NO
> AHCA~1\LOCALS~1\Temp\javac61975 error=2
>        at java.lang.ProcessImpl.create(Native Method)
>        at java.lang.ProcessImpl.<init>(Unknown Source)
>        at java.lang.ProcessImpl.start(Unknown Source)
>        at java.lang.ProcessBuilder.start(Unknown Source)
>        at java.lang.Runtime.exec(Unknown Source)
>        at java.lang.Runtime.exec(Unknown Source)
>        at org.apache.xmlbeans.impl.tool.CodeGenUtil.externalCompile(CodeGenUtil
> .java:217)
>        at org.apache.xmlbeans.impl.tool.SchemaCompiler.compile(SchemaCompiler.j
> ava:894)
>        at org.apache.xmlbeans.impl.tool.SchemaCompiler.main(SchemaCompiler.java
> :294)
> BUILD FAILED
> C:\Temp\IFX1.5-XSD-DTD>
> 
> 
> 
> On Tue, 6 Jul 2004 18:39:26 -0700, Radu Preotiuc-Pietro <radup@bea.com> wrote:
> > I haven't looked at the first Schema, is it actually invalid or is an XMLBeans bug?
> > If the Schema is invalid, you can use the '-noupa' command-line option to scomp
to skip this check.
> >
> > Radu
> >
> >
> >
> > -----Original Message-----
> > From: Noah Campbell [mailto:noahcampbell@gmail.com]
> > Sent: Tuesday, July 06, 2004 5:58 PM
> > To: xmlbeans-user@xml.apache.org
> > Subject: Re: scomp does not compile standard IFX or ACORD schemas
> >
> > I'm using v2 (latest snapshot).  I think in a recent post some
> > mentioned that the schema is invalid.  Perhaps XMLBeans is too good
> > and might need a lax  parser.
> >
> > I get the following:
> >
> > C:\Temp\IFX1.5-XSD-DTD>scomp IFX150_XSD.xsd
> > [JAM] Warning: This build of JAM was not with JDK 1.5.Even though you are now ru
> > nning under JDK 1.5, JSR175-style annotations will not be available
> > C:\Temp\IFX1.5-XSD-DTD\IFX150_XSD.xsd:0: error: Content model violates the uniqu
> > e particle attribution rule
> > Time to build schema type system: 7.438 seconds
> > BUILD FAILED
> > C:\Temp\IFX1.5-XSD-DTD>
> >
> > On Tue, 06 Jul 2004 14:30:44 -0700, Lachlan Paterson <lachlan@post.com> wrote:
> > > Has anyone else tried these standard schemas from the banking and insurance
industries?
> > >
> > > When I try to compile the IFX 1.5 schema, it complains that:
> > > IFX150_XSD.xsd:12424: error: Content model violates the unique particle attribution
rule
> > > As with my simple <xs:choices> example, this schema passes the w3.org
validation, but does not compile with XML beans.
> > >
> > > When I try to compile the ACORD 1.3 schema, acord-pc-v1_3_0-fulldoc-codes.xsd,
it simply crashes like this:
> > >
> > > java -classpath $XMLBEANDIR/xbean.jar com.bea.xbean.tool.SchemaCompiler acord-pc-v1_3_0-fulldoc-nocodes.xsd
> > > Loading schema file acord-pc-v1_3_0-fulldoc-nocodes.xsd
> > > Loading referenced file acord-doc.xsd
> > > Time to build schema type system: 17.923 seconds
> > > Exception in thread "main" com.bea.xml.SchemaTypeLoaderException: null (schema.system.s0C043B8F3E836BA5CB9A92B6A08E35BD.insurancesvcspirqmsgsmodelgroup)
- code 9
> > >        at com.bea.xbean.schema.SchemaTypeSystemImpl$StringPool.writeTo(SchemaTypeSystemImpl.java:608)
> > >        at com.bea.xbean.schema.SchemaTypeSystemImpl$XsbReader.writeRealHeader(SchemaTypeSystemImpl.java:1120)
> > >        at com.bea.xbean.schema.SchemaTypeSystemImpl.saveModelGroup(SchemaTypeSystemImpl.java:944)
> > >        at com.bea.xbean.schema.SchemaTypeSystemImpl.saveModelGroups(SchemaTypeSystemImpl.java:895)
> > >        at com.bea.xbean.schema.SchemaTypeSystemImpl.saveToDirectory(SchemaTypeSystemImpl.java:857)
> > >        at com.bea.xbean.tool.SchemaCodeGenerator.compileTypeSystem(SchemaCodeGenerator.java:52)
> > >        at com.bea.xbean.tool.SchemaCompiler.compileImpl(SchemaCompiler.java:547)
> > >        at com.bea.xbean.tool.SchemaCompiler.main(SchemaCompiler.java:141)
> > >
> > > - ---------------------------------------------------------------------
> > > To unsubscribe, e-mail:   xmlbeans-user-unsubscribe@xml.apache.org
> > > For additional commands, e-mail: xmlbeans-user-help@xml.apache.org
> > > Apache XMLBeans Project -- URL: http://xml.apache.org/xmlbeans/
> > >
> > >
> >
> > - ---------------------------------------------------------------------
> > To unsubscribe, e-mail:   xmlbeans-user-unsubscribe@xml.apache.org
> > For additional commands, e-mail: xmlbeans-user-help@xml.apache.org
> > Apache XMLBeans Project -- URL: http://xml.apache.org/xmlbeans/
> >
> > - ---------------------------------------------------------------------
> > To unsubscribe, e-mail:   xmlbeans-user-unsubscribe@xml.apache.org
> > For additional commands, e-mail: xmlbeans-user-help@xml.apache.org
> > Apache XMLBeans Project -- URL: http://xml.apache.org/xmlbeans/
> >
> >
>

- ---------------------------------------------------------------------
To unsubscribe, e-mail:   xmlbeans-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xmlbeans-user-help@xml.apache.org
Apache XMLBeans Project -- URL: http://xml.apache.org/xmlbeans/


Mime
View raw message