[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xmlbeans-dev
Subject:    [jira] Commented: (XMLBEANS-50) Could not run sample program
From:       xmlbeans-dev () xml ! apache ! org
Date:       2004-08-24 2:54:20
Message-ID: 484270174.1093316060082.JavaMail.apache () nagoya
[Download RAW message or body]

The following comment has been added to this issue:

     Author: Alex Almero
    Created: Mon, 23 Aug 2004 7:53 PM
       Body:
i was able to run the sample from the userguide. just made some changes on the main \
program due to compilation error.

PurchaseOrderDocument.PurchaseOrder po = poDoc.getPurchaseOrder();

also, use scomp -d . -out result.jar easypo.xsd instead of using
the -srconly options will not generate non-java files which are needed.

hth
aalmero
---------------------------------------------------------------------
View this comment:
  http://issues.apache.org/jira/browse/XMLBEANS-50?page=comments#action_37420

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/XMLBEANS-50

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: XMLBEANS-50
    Summary: Could not run sample program
       Type: Bug

     Status: Unassigned
   Priority: Major

    Project: XMLBeans

   Assignee: 
   Reporter: Jayanta Sarkar

    Created: Fri, 13 Aug 2004 5:54 AM
    Updated: Mon, 23 Aug 2004 7:53 PM

Description:
java.lang.ExceptionInInitializerError
	at noNamespace.LatlongDocument.<clinit>(Unknown Source)
	at noNamespace.LatlongDocument$Factory.newInstance(Unknown Source)
	at main.XMLBeansMain.main(XMLBeansMain.java:28)
Caused by: java.lang.RuntimeException: Could not instantiate SchemaTypeSystemImpl \
(java.lang.reflect.InvocationTargetException): is the version of xbean.jar correct?  \
at schema.system.s9ED36C119D97C81BFE3407F867D630A3.TypeSystemHolder.loadTypeSystem(Unknown \
Source)  at schema.system.s9ED36C119D97C81BFE3407F867D630A3.TypeSystemHolder.<clinit>(Unknown \
                Source)
	... 3 more
Caused by: java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
	at java.lang.reflect.Constructor.newInstance(Unknown Source)
	... 5 more
Caused by: org.apache.xmlbeans.SchemaTypeLoaderException: XML-BEANS compiled schema: \
Incompatible minor version - expecting up to 18, got 19 \
(schema.system.s9ED36C119D97C81BFE3407F867D630A3.index) - code 3  at \
org.apache.xmlbeans.impl.schema.SchemaTypeSystemImpl$XsbReader.<init>(SchemaTypeSystemImpl.java:1085)
  at org.apache.xmlbeans.impl.schema.SchemaTypeSystemImpl.initFromHeader(SchemaTypeSystemImpl.java:271)
  at org.apache.xmlbeans.impl.schema.SchemaTypeSystemImpl.<init>(SchemaTypeSystemImpl.java:151)
                
	... 9 more
Exception in thread "main" 


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic