You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@xmlbeans.apache.org by Radu Preotiuc-Pietro <ra...@oracle.com> on 2008/07/23 00:19:25 UTC

Re: java.lang.ExceptionInInitializerError is the version of xbean.jar correct

Hi,

Have you got past this error?

Compiling in 1.4 and running the jars in 1.5 is not the cause for this,
but the fact that your QA Environments are different probably is. You
basically have to make sure that the classloader that loads your
compiled types jar also has access to xbean.jar.

Radu

On Tue, 2008-07-08 at 13:59 -0700, Sai007 wrote:
> Hi..
> I am getting the following error ..
> 
> Caused by: java.lang.ExceptionInInitializerError... 24 more
> Caused by: java.lang.RuntimeException: Could not instantiate
> SchemaTypeSystemImpl (java.lang.reflect.InvocationTargetException): is the
> version of xbean.jar correct?
> at
> schemaorg_apache_xmlbeans.system.s1A93008C4417EA6F556213014618265D.TypeSystemHolder.loadTypeSystem(Unknown
> Source)
> at
> schemaorg_apache_xmlbeans.system.s1A93008C4417EA6F556213014618265D.TypeSystemHolder.<clinit>(Unknown
> Source)
> ... 24 more
> I read few posts and was not able to find a solution, I used scomp and
> generated the schema jars in JDK 1.4 and those when deployed in JDK 1.5, I
> get the above errors...does not happen when deployed in JDK 1.4. we have
> different Environments QA, Test with different versions of JDK...
>  
> version:xmlbeans-2.3.0
> 
> What is the solution to resolve this problem..?
>  
> Appreciate yout time and suggestions.
> Thanks
> Sai.
> --
> View this message in context: http://www.nabble.com/java.lang.ExceptionInInitializerError-is-the-version-of-xbean.jar-correct-tp18348957p18348957.html
> Sent from the Xml Beans - User mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> 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


Re: java.lang.ExceptionInInitializerError is the version of xbean.jar correct

Posted by Sai007 <sj...@gmail.com>.
Yes, I downloaded jdk 1.5 generated the required jars using scomp..... and it
works fine in both jdk1.4 as well as jdk1.5. I dont see the error anymore
Sai

Radu Preotiuc-Pietro-2 wrote:
> 
> Hi,
> 
> Have you got past this error?
> 
> Compiling in 1.4 and running the jars in 1.5 is not the cause for this,
> but the fact that your QA Environments are different probably is. You
> basically have to make sure that the classloader that loads your
> compiled types jar also has access to xbean.jar.
> 
> Radu
> 
> On Tue, 2008-07-08 at 13:59 -0700, Sai007 wrote:
>> Hi..
>> I am getting the following error ..
>> 
>> Caused by: java.lang.ExceptionInInitializerError... 24 more
>> Caused by: java.lang.RuntimeException: Could not instantiate
>> SchemaTypeSystemImpl (java.lang.reflect.InvocationTargetException): is
>> the
>> version of xbean.jar correct?
>> at
>> schemaorg_apache_xmlbeans.system.s1A93008C4417EA6F556213014618265D.TypeSystemHolder.loadTypeSystem(Unknown
>> Source)
>> at
>> schemaorg_apache_xmlbeans.system.s1A93008C4417EA6F556213014618265D.TypeSystemHolder.<clinit>(Unknown
>> Source)
>> ... 24 more
>> I read few posts and was not able to find a solution, I used scomp and
>> generated the schema jars in JDK 1.4 and those when deployed in JDK 1.5,
>> I
>> get the above errors...does not happen when deployed in JDK 1.4. we have
>> different Environments QA, Test with different versions of JDK...
>>  
>> version:xmlbeans-2.3.0
>> 
>> What is the solution to resolve this problem..?
>>  
>> Appreciate yout time and suggestions.
>> Thanks
>> Sai.
>> --
>> View this message in context:
>> http://www.nabble.com/java.lang.ExceptionInInitializerError-is-the-version-of-xbean.jar-correct-tp18348957p18348957.html
>> Sent from the Xml Beans - User mailing list archive at Nabble.com.
>> 
>> 
>> ---------------------------------------------------------------------
>> 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
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/java.lang.ExceptionInInitializerError-is-the-version-of-xbean.jar-correct-tp18348957p18670189.html
Sent from the Xml Beans - User mailing list archive at Nabble.com.


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