java exception in thread error help?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
15 messages Options
Reply | Threaded
Open this post in threaded view
|

java exception in thread error help?

CaseT
Hi,

I'm trying to get my production server up and running with OFBiz Release 4.0
Centos 4
Postgres 8.2.4
Java: jdk-1_5_0_14-linux-i586
In framework/entity/lib/jdbc I have the following drivers:
postgresql-8.2-506.jdbc3.jar
postgresql-8.2-506.jdbc4.jar

I'm getting the following error message when running  ant run-install

[java] Exception in thread "main" java.lang.UnsupportedClassVersionError:
Bad version number in .class file
     [java]     at java.lang.ClassLoader.defineClass1(Native Method)
     [java]     at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
     [java]     at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
     [java]     at
java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
     [java]     at
java.net.URLClassLoader.access$100(URLClassLoader.java:56)
     [java]     at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
     [java]     at java.security.AccessController.doPrivileged(Native
Method)
     [java]     at
java.net.URLClassLoader.findClass(URLClassLoader.java:188)
     [java]     at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
     [java]     at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
     [java]     at
org.ofbiz.base.util.CachedClassLoader.loadClass(CachedClassLoader.java:179)
     [java]     at
org.ofbiz.base.util.CachedClassLoader.loadClass(CachedClassLoader.java:154)
     [java]     at
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
     [java]     at java.lang.Class.forName0(Native Method)
     [java]     at java.lang.Class.forName(Class.java:242)
     [java]     at
org.ofbiz.minerva.pool.jdbc.xa.wrapper.XADataSourceImpl.loadDriver(XADataSou
rceImpl.java:167)
     [java]     at
org.ofbiz.minerva.pool.jdbc.xa.wrapper.XADataSourceImpl.getXAConnection(XADa
taSourceImpl.java:222)
     [java]     at
org.ofbiz.minerva.pool.jdbc.xa.XAConnectionFactory.createObject(XAConnection
Factory.java:367)
     [java]     at
org.ofbiz.minerva.pool.ObjectPool.createNewObject(ObjectPool.java:942)
     [java]     at
org.ofbiz.minerva.pool.ObjectPool.getObject(ObjectPool.java:630)
     [java]     at
org.ofbiz.minerva.pool.ObjectPool.fillToMin(ObjectPool.java:961)
     [java]     at
org.ofbiz.minerva.pool.ObjectPool.initialize(ObjectPool.java:533)
     [java]     at
org.ofbiz.minerva.pool.jdbc.xa.XAPoolDataSource.initialize(XAPoolDataSource.
java:313)
     [java]     at
org.ofbiz.minerva.pool.jdbc.xa.XAPoolDataSource.getConnection(XAPoolDataSour
ce.java:349)
     [java]     at
org.ofbiz.entity.transaction.MinervaConnectionFactory.getConnection(MinervaC
onnectionFactory.java:112)
     [java]     at
org.ofbiz.geronimo.GeronimoTransactionFactory.getConnection(GeronimoTransact
ionFactory.java:94)
     [java]     at
org.ofbiz.entity.transaction.TransactionFactory.getConnection(TransactionFac
tory.java:95)
     [java]     at
org.ofbiz.entity.jdbc.ConnectionFactory.getConnection(ConnectionFactory.java
:72)
     [java]     at
org.ofbiz.entity.jdbc.DatabaseUtil.getConnection(DatabaseUtil.java:98)
     [java]     at
org.ofbiz.entity.jdbc.DatabaseUtil.getTableNames(DatabaseUtil.java:827)
     [java]     at
org.ofbiz.entity.jdbc.DatabaseUtil.checkDb(DatabaseUtil.java:136)
     [java]     at
org.ofbiz.entity.jdbc.DatabaseUtil.checkDb(DatabaseUtil.java:125)
     [java]     at
org.ofbiz.entity.datasource.GenericDAO.checkDb(GenericDAO.java:1087)
     [java]     at
org.ofbiz.entity.datasource.GenericHelperDAO.checkDataSource(GenericHelperDA
O.java:198)
     [java]     at
org.ofbiz.entity.GenericDelegator.<init>(GenericDelegator.java:185)
     [java]     at
org.ofbiz.entity.GenericDelegator.getGenericDelegator(GenericDelegator.java:
117)
     [java]     at
org.ofbiz.entityext.data.EntityDataLoadContainer.start(EntityDataLoadContain
er.java:194)
     [java]     at
org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:80)
     [java]     at
org.ofbiz.base.start.Start.startStartLoaders(Start.java:263)
     [java]     at org.ofbiz.base.start.Start.startServer(Start.java:314)
     [java]     at org.ofbiz.base.start.Start.start(Start.java:318)
     [java]     at org.ofbiz.base.start.Start.main(Start.java:404)
     [java] Java Result: 1


Case Torres
[hidden email]


Reply | Threaded
Open this post in threaded view
|

Re: java exception in thread error help?

BJ Freeman
make user you db server is running
make sure you entityengine.xml is pointed to the right db
and has the correct userID and password.

Case Torres sent the following on 11/19/2007 4:23 PM:

> Hi,
>
> I'm trying to get my production server up and running with OFBiz Release 4.0
> Centos 4
> Postgres 8.2.4
> Java: jdk-1_5_0_14-linux-i586
> In framework/entity/lib/jdbc I have the following drivers:
> postgresql-8.2-506.jdbc3.jar
> postgresql-8.2-506.jdbc4.jar
>
> I'm getting the following error message when running  ant run-install
>
> [java] Exception in thread "main" java.lang.UnsupportedClassVersionError:
> Bad version number in .class file
>      [java]     at java.lang.ClassLoader.defineClass1(Native Method)
>      [java]     at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
>      [java]     at
> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
>      [java]     at
> java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
>      [java]     at
> java.net.URLClassLoader.access$100(URLClassLoader.java:56)
>      [java]     at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
>      [java]     at java.security.AccessController.doPrivileged(Native
> Method)
>      [java]     at
> java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>      [java]     at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>      [java]     at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
>      [java]     at
> org.ofbiz.base.util.CachedClassLoader.loadClass(CachedClassLoader.java:179)
>      [java]     at
> org.ofbiz.base.util.CachedClassLoader.loadClass(CachedClassLoader.java:154)
>      [java]     at
> java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
>      [java]     at java.lang.Class.forName0(Native Method)
>      [java]     at java.lang.Class.forName(Class.java:242)
>      [java]     at
> org.ofbiz.minerva.pool.jdbc.xa.wrapper.XADataSourceImpl.loadDriver(XADataSou
> rceImpl.java:167)
>      [java]     at
> org.ofbiz.minerva.pool.jdbc.xa.wrapper.XADataSourceImpl.getXAConnection(XADa
> taSourceImpl.java:222)
>      [java]     at
> org.ofbiz.minerva.pool.jdbc.xa.XAConnectionFactory.createObject(XAConnection
> Factory.java:367)
>      [java]     at
> org.ofbiz.minerva.pool.ObjectPool.createNewObject(ObjectPool.java:942)
>      [java]     at
> org.ofbiz.minerva.pool.ObjectPool.getObject(ObjectPool.java:630)
>      [java]     at
> org.ofbiz.minerva.pool.ObjectPool.fillToMin(ObjectPool.java:961)
>      [java]     at
> org.ofbiz.minerva.pool.ObjectPool.initialize(ObjectPool.java:533)
>      [java]     at
> org.ofbiz.minerva.pool.jdbc.xa.XAPoolDataSource.initialize(XAPoolDataSource.
> java:313)
>      [java]     at
> org.ofbiz.minerva.pool.jdbc.xa.XAPoolDataSource.getConnection(XAPoolDataSour
> ce.java:349)
>      [java]     at
> org.ofbiz.entity.transaction.MinervaConnectionFactory.getConnection(MinervaC
> onnectionFactory.java:112)
>      [java]     at
> org.ofbiz.geronimo.GeronimoTransactionFactory.getConnection(GeronimoTransact
> ionFactory.java:94)
>      [java]     at
> org.ofbiz.entity.transaction.TransactionFactory.getConnection(TransactionFac
> tory.java:95)
>      [java]     at
> org.ofbiz.entity.jdbc.ConnectionFactory.getConnection(ConnectionFactory.java
> :72)
>      [java]     at
> org.ofbiz.entity.jdbc.DatabaseUtil.getConnection(DatabaseUtil.java:98)
>      [java]     at
> org.ofbiz.entity.jdbc.DatabaseUtil.getTableNames(DatabaseUtil.java:827)
>      [java]     at
> org.ofbiz.entity.jdbc.DatabaseUtil.checkDb(DatabaseUtil.java:136)
>      [java]     at
> org.ofbiz.entity.jdbc.DatabaseUtil.checkDb(DatabaseUtil.java:125)
>      [java]     at
> org.ofbiz.entity.datasource.GenericDAO.checkDb(GenericDAO.java:1087)
>      [java]     at
> org.ofbiz.entity.datasource.GenericHelperDAO.checkDataSource(GenericHelperDA
> O.java:198)
>      [java]     at
> org.ofbiz.entity.GenericDelegator.<init>(GenericDelegator.java:185)
>      [java]     at
> org.ofbiz.entity.GenericDelegator.getGenericDelegator(GenericDelegator.java:
> 117)
>      [java]     at
> org.ofbiz.entityext.data.EntityDataLoadContainer.start(EntityDataLoadContain
> er.java:194)
>      [java]     at
> org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:80)
>      [java]     at
> org.ofbiz.base.start.Start.startStartLoaders(Start.java:263)
>      [java]     at org.ofbiz.base.start.Start.startServer(Start.java:314)
>      [java]     at org.ofbiz.base.start.Start.start(Start.java:318)
>      [java]     at org.ofbiz.base.start.Start.main(Start.java:404)
>      [java] Java Result: 1
>
>
> Case Torres
> [hidden email]
>
>
>
Reply | Threaded
Open this post in threaded view
|

RE: java exception in thread error help?

CaseT
BJ,

Yes, my database is up and running:
Output from ps -ef
postgres  7382     1  0 Nov16 ?        00:00:00
/usr/local/pgsql/bin/postgres -D /usr/local/pgsql/data
postgres  7384  7382  0 Nov16 ?        00:00:00 postgres: writer process

postgres  7385  7382  0 Nov16 ?        00:00:00 postgres: stats collector
process  

entityengine.xml:
default delegator=localpostgres
username and password are set correctly

JAVA_HOME is also set correctly.

Thanks, Case                  

-----Original Message-----
From: BJ Freeman [mailto:[hidden email]]
Sent: Monday, November 19, 2007 4:28 PM
To: [hidden email]
Subject: Re: java exception in thread error help?

make user you db server is running
make sure you entityengine.xml is pointed to the right db
and has the correct userID and password.

Case Torres sent the following on 11/19/2007 4:23 PM:
> Hi,
>
> I'm trying to get my production server up and running with OFBiz Release
4.0

> Centos 4
> Postgres 8.2.4
> Java: jdk-1_5_0_14-linux-i586
> In framework/entity/lib/jdbc I have the following drivers:
> postgresql-8.2-506.jdbc3.jar
> postgresql-8.2-506.jdbc4.jar
>
> I'm getting the following error message when running  ant run-install
>
> [java] Exception in thread "main" java.lang.UnsupportedClassVersionError:
> Bad version number in .class file
>      [java]     at java.lang.ClassLoader.defineClass1(Native Method)
>      [java]     at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
>      [java]     at
> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
>      [java]     at
> java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
>      [java]     at
> java.net.URLClassLoader.access$100(URLClassLoader.java:56)
>      [java]     at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
>      [java]     at java.security.AccessController.doPrivileged(Native
> Method)
>      [java]     at
> java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>      [java]     at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>      [java]     at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
>      [java]     at
>
org.ofbiz.base.util.CachedClassLoader.loadClass(CachedClassLoader.java:179)
>      [java]     at
>
org.ofbiz.base.util.CachedClassLoader.loadClass(CachedClassLoader.java:154)
>      [java]     at
> java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
>      [java]     at java.lang.Class.forName0(Native Method)
>      [java]     at java.lang.Class.forName(Class.java:242)
>      [java]     at
>
org.ofbiz.minerva.pool.jdbc.xa.wrapper.XADataSourceImpl.loadDriver(XADataSou
> rceImpl.java:167)
>      [java]     at
>
org.ofbiz.minerva.pool.jdbc.xa.wrapper.XADataSourceImpl.getXAConnection(XADa
> taSourceImpl.java:222)
>      [java]     at
>
org.ofbiz.minerva.pool.jdbc.xa.XAConnectionFactory.createObject(XAConnection

> Factory.java:367)
>      [java]     at
> org.ofbiz.minerva.pool.ObjectPool.createNewObject(ObjectPool.java:942)
>      [java]     at
> org.ofbiz.minerva.pool.ObjectPool.getObject(ObjectPool.java:630)
>      [java]     at
> org.ofbiz.minerva.pool.ObjectPool.fillToMin(ObjectPool.java:961)
>      [java]     at
> org.ofbiz.minerva.pool.ObjectPool.initialize(ObjectPool.java:533)
>      [java]     at
>
org.ofbiz.minerva.pool.jdbc.xa.XAPoolDataSource.initialize(XAPoolDataSource.
> java:313)
>      [java]     at
>
org.ofbiz.minerva.pool.jdbc.xa.XAPoolDataSource.getConnection(XAPoolDataSour
> ce.java:349)
>      [java]     at
>
org.ofbiz.entity.transaction.MinervaConnectionFactory.getConnection(MinervaC
> onnectionFactory.java:112)
>      [java]     at
>
org.ofbiz.geronimo.GeronimoTransactionFactory.getConnection(GeronimoTransact
> ionFactory.java:94)
>      [java]     at
>
org.ofbiz.entity.transaction.TransactionFactory.getConnection(TransactionFac
> tory.java:95)
>      [java]     at
>
org.ofbiz.entity.jdbc.ConnectionFactory.getConnection(ConnectionFactory.java

> :72)
>      [java]     at
> org.ofbiz.entity.jdbc.DatabaseUtil.getConnection(DatabaseUtil.java:98)
>      [java]     at
> org.ofbiz.entity.jdbc.DatabaseUtil.getTableNames(DatabaseUtil.java:827)
>      [java]     at
> org.ofbiz.entity.jdbc.DatabaseUtil.checkDb(DatabaseUtil.java:136)
>      [java]     at
> org.ofbiz.entity.jdbc.DatabaseUtil.checkDb(DatabaseUtil.java:125)
>      [java]     at
> org.ofbiz.entity.datasource.GenericDAO.checkDb(GenericDAO.java:1087)
>      [java]     at
>
org.ofbiz.entity.datasource.GenericHelperDAO.checkDataSource(GenericHelperDA
> O.java:198)
>      [java]     at
> org.ofbiz.entity.GenericDelegator.<init>(GenericDelegator.java:185)
>      [java]     at
>
org.ofbiz.entity.GenericDelegator.getGenericDelegator(GenericDelegator.java:
> 117)
>      [java]     at
>
org.ofbiz.entityext.data.EntityDataLoadContainer.start(EntityDataLoadContain

> er.java:194)
>      [java]     at
> org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:80)
>      [java]     at
> org.ofbiz.base.start.Start.startStartLoaders(Start.java:263)
>      [java]     at org.ofbiz.base.start.Start.startServer(Start.java:314)
>      [java]     at org.ofbiz.base.start.Start.start(Start.java:318)
>      [java]     at org.ofbiz.base.start.Start.main(Start.java:404)
>      [java] Java Result: 1
>
>
> Case Torres
> [hidden email]
>
>
>

Reply | Threaded
Open this post in threaded view
|

Re: java exception in thread error help?

Adrian Crum
In reply to this post by CaseT
Have you tried using only one driver?

Case Torres wrote:

> Hi,
>
> I'm trying to get my production server up and running with OFBiz Release 4.0
> Centos 4
> Postgres 8.2.4
> Java: jdk-1_5_0_14-linux-i586
> In framework/entity/lib/jdbc I have the following drivers:
> postgresql-8.2-506.jdbc3.jar
> postgresql-8.2-506.jdbc4.jar
>
> I'm getting the following error message when running  ant run-install
>
> [java] Exception in thread "main" java.lang.UnsupportedClassVersionError:
> Bad version number in .class file
>      [java]     at java.lang.ClassLoader.defineClass1(Native Method)
>      [java]     at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
>      [java]     at
> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
>      [java]     at
> java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
>      [java]     at
> java.net.URLClassLoader.access$100(URLClassLoader.java:56)
>      [java]     at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
>      [java]     at java.security.AccessController.doPrivileged(Native
> Method)
>      [java]     at
> java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>      [java]     at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>      [java]     at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
>      [java]     at
> org.ofbiz.base.util.CachedClassLoader.loadClass(CachedClassLoader.java:179)
>      [java]     at
> org.ofbiz.base.util.CachedClassLoader.loadClass(CachedClassLoader.java:154)
>      [java]     at
> java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
>      [java]     at java.lang.Class.forName0(Native Method)
>      [java]     at java.lang.Class.forName(Class.java:242)
>      [java]     at
> org.ofbiz.minerva.pool.jdbc.xa.wrapper.XADataSourceImpl.loadDriver(XADataSou
> rceImpl.java:167)
>      [java]     at
> org.ofbiz.minerva.pool.jdbc.xa.wrapper.XADataSourceImpl.getXAConnection(XADa
> taSourceImpl.java:222)
>      [java]     at
> org.ofbiz.minerva.pool.jdbc.xa.XAConnectionFactory.createObject(XAConnection
> Factory.java:367)
>      [java]     at
> org.ofbiz.minerva.pool.ObjectPool.createNewObject(ObjectPool.java:942)
>      [java]     at
> org.ofbiz.minerva.pool.ObjectPool.getObject(ObjectPool.java:630)
>      [java]     at
> org.ofbiz.minerva.pool.ObjectPool.fillToMin(ObjectPool.java:961)
>      [java]     at
> org.ofbiz.minerva.pool.ObjectPool.initialize(ObjectPool.java:533)
>      [java]     at
> org.ofbiz.minerva.pool.jdbc.xa.XAPoolDataSource.initialize(XAPoolDataSource.
> java:313)
>      [java]     at
> org.ofbiz.minerva.pool.jdbc.xa.XAPoolDataSource.getConnection(XAPoolDataSour
> ce.java:349)
>      [java]     at
> org.ofbiz.entity.transaction.MinervaConnectionFactory.getConnection(MinervaC
> onnectionFactory.java:112)
>      [java]     at
> org.ofbiz.geronimo.GeronimoTransactionFactory.getConnection(GeronimoTransact
> ionFactory.java:94)
>      [java]     at
> org.ofbiz.entity.transaction.TransactionFactory.getConnection(TransactionFac
> tory.java:95)
>      [java]     at
> org.ofbiz.entity.jdbc.ConnectionFactory.getConnection(ConnectionFactory.java
> :72)
>      [java]     at
> org.ofbiz.entity.jdbc.DatabaseUtil.getConnection(DatabaseUtil.java:98)
>      [java]     at
> org.ofbiz.entity.jdbc.DatabaseUtil.getTableNames(DatabaseUtil.java:827)
>      [java]     at
> org.ofbiz.entity.jdbc.DatabaseUtil.checkDb(DatabaseUtil.java:136)
>      [java]     at
> org.ofbiz.entity.jdbc.DatabaseUtil.checkDb(DatabaseUtil.java:125)
>      [java]     at
> org.ofbiz.entity.datasource.GenericDAO.checkDb(GenericDAO.java:1087)
>      [java]     at
> org.ofbiz.entity.datasource.GenericHelperDAO.checkDataSource(GenericHelperDA
> O.java:198)
>      [java]     at
> org.ofbiz.entity.GenericDelegator.<init>(GenericDelegator.java:185)
>      [java]     at
> org.ofbiz.entity.GenericDelegator.getGenericDelegator(GenericDelegator.java:
> 117)
>      [java]     at
> org.ofbiz.entityext.data.EntityDataLoadContainer.start(EntityDataLoadContain
> er.java:194)
>      [java]     at
> org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:80)
>      [java]     at
> org.ofbiz.base.start.Start.startStartLoaders(Start.java:263)
>      [java]     at org.ofbiz.base.start.Start.startServer(Start.java:314)
>      [java]     at org.ofbiz.base.start.Start.start(Start.java:318)
>      [java]     at org.ofbiz.base.start.Start.main(Start.java:404)
>      [java] Java Result: 1
>
>
> Case Torres
> [hidden email]
>
>
>

Reply | Threaded
Open this post in threaded view
|

Re: java exception in thread error help?

BJ Freeman
In reply to this post by CaseT
just notice
UnsupportedClassVersionError
usually I see this when running 1.5 with 1.4 SDK

Case Torres sent the following on 11/19/2007 4:43 PM:

> BJ,
>
> Yes, my database is up and running:
> Output from ps -ef
> postgres  7382     1  0 Nov16 ?        00:00:00
> /usr/local/pgsql/bin/postgres -D /usr/local/pgsql/data
> postgres  7384  7382  0 Nov16 ?        00:00:00 postgres: writer process
>
> postgres  7385  7382  0 Nov16 ?        00:00:00 postgres: stats collector
> process  
>
> entityengine.xml:
> default delegator=localpostgres
> username and password are set correctly
>
> JAVA_HOME is also set correctly.
>
> Thanks, Case                  
>
> -----Original Message-----
> From: BJ Freeman [mailto:[hidden email]]
> Sent: Monday, November 19, 2007 4:28 PM
> To: [hidden email]
> Subject: Re: java exception in thread error help?
>
> make user you db server is running
> make sure you entityengine.xml is pointed to the right db
> and has the correct userID and password.
>
> Case Torres sent the following on 11/19/2007 4:23 PM:
>> Hi,
>>
>> I'm trying to get my production server up and running with OFBiz Release
> 4.0
>> Centos 4
>> Postgres 8.2.4
>> Java: jdk-1_5_0_14-linux-i586
>> In framework/entity/lib/jdbc I have the following drivers:
>> postgresql-8.2-506.jdbc3.jar
>> postgresql-8.2-506.jdbc4.jar
>>
>> I'm getting the following error message when running  ant run-install
>>
>> [java] Exception in thread "main" java.lang.UnsupportedClassVersionError:
>> Bad version number in .class file
>>      [java]     at java.lang.ClassLoader.defineClass1(Native Method)
>>      [java]     at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
>>      [java]     at
>> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
>>      [java]     at
>> java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
>>      [java]     at
>> java.net.URLClassLoader.access$100(URLClassLoader.java:56)
>>      [java]     at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
>>      [java]     at java.security.AccessController.doPrivileged(Native
>> Method)
>>      [java]     at
>> java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>>      [java]     at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>>      [java]     at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
>>      [java]     at
>>
> org.ofbiz.base.util.CachedClassLoader.loadClass(CachedClassLoader.java:179)
>>      [java]     at
>>
> org.ofbiz.base.util.CachedClassLoader.loadClass(CachedClassLoader.java:154)
>>      [java]     at
>> java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
>>      [java]     at java.lang.Class.forName0(Native Method)
>>      [java]     at java.lang.Class.forName(Class.java:242)
>>      [java]     at
>>
> org.ofbiz.minerva.pool.jdbc.xa.wrapper.XADataSourceImpl.loadDriver(XADataSou
>> rceImpl.java:167)
>>      [java]     at
>>
> org.ofbiz.minerva.pool.jdbc.xa.wrapper.XADataSourceImpl.getXAConnection(XADa
>> taSourceImpl.java:222)
>>      [java]     at
>>
> org.ofbiz.minerva.pool.jdbc.xa.XAConnectionFactory.createObject(XAConnection
>> Factory.java:367)
>>      [java]     at
>> org.ofbiz.minerva.pool.ObjectPool.createNewObject(ObjectPool.java:942)
>>      [java]     at
>> org.ofbiz.minerva.pool.ObjectPool.getObject(ObjectPool.java:630)
>>      [java]     at
>> org.ofbiz.minerva.pool.ObjectPool.fillToMin(ObjectPool.java:961)
>>      [java]     at
>> org.ofbiz.minerva.pool.ObjectPool.initialize(ObjectPool.java:533)
>>      [java]     at
>>
> org.ofbiz.minerva.pool.jdbc.xa.XAPoolDataSource.initialize(XAPoolDataSource.
>> java:313)
>>      [java]     at
>>
> org.ofbiz.minerva.pool.jdbc.xa.XAPoolDataSource.getConnection(XAPoolDataSour
>> ce.java:349)
>>      [java]     at
>>
> org.ofbiz.entity.transaction.MinervaConnectionFactory.getConnection(MinervaC
>> onnectionFactory.java:112)
>>      [java]     at
>>
> org.ofbiz.geronimo.GeronimoTransactionFactory.getConnection(GeronimoTransact
>> ionFactory.java:94)
>>      [java]     at
>>
> org.ofbiz.entity.transaction.TransactionFactory.getConnection(TransactionFac
>> tory.java:95)
>>      [java]     at
>>
> org.ofbiz.entity.jdbc.ConnectionFactory.getConnection(ConnectionFactory.java
>> :72)
>>      [java]     at
>> org.ofbiz.entity.jdbc.DatabaseUtil.getConnection(DatabaseUtil.java:98)
>>      [java]     at
>> org.ofbiz.entity.jdbc.DatabaseUtil.getTableNames(DatabaseUtil.java:827)
>>      [java]     at
>> org.ofbiz.entity.jdbc.DatabaseUtil.checkDb(DatabaseUtil.java:136)
>>      [java]     at
>> org.ofbiz.entity.jdbc.DatabaseUtil.checkDb(DatabaseUtil.java:125)
>>      [java]     at
>> org.ofbiz.entity.datasource.GenericDAO.checkDb(GenericDAO.java:1087)
>>      [java]     at
>>
> org.ofbiz.entity.datasource.GenericHelperDAO.checkDataSource(GenericHelperDA
>> O.java:198)
>>      [java]     at
>> org.ofbiz.entity.GenericDelegator.<init>(GenericDelegator.java:185)
>>      [java]     at
>>
> org.ofbiz.entity.GenericDelegator.getGenericDelegator(GenericDelegator.java:
>> 117)
>>      [java]     at
>>
> org.ofbiz.entityext.data.EntityDataLoadContainer.start(EntityDataLoadContain
>> er.java:194)
>>      [java]     at
>> org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:80)
>>      [java]     at
>> org.ofbiz.base.start.Start.startStartLoaders(Start.java:263)
>>      [java]     at org.ofbiz.base.start.Start.startServer(Start.java:314)
>>      [java]     at org.ofbiz.base.start.Start.start(Start.java:318)
>>      [java]     at org.ofbiz.base.start.Start.main(Start.java:404)
>>      [java] Java Result: 1
>>
>>
>> Case Torres
>> [hidden email]
>>
>>
>>
>
>
>
>
Reply | Threaded
Open this post in threaded view
|

RE: java exception in thread error help?

CaseT
In reply to this post by Adrian Crum
I removed version 3 and I'm getting the same error message. :-(

-----Original Message-----
From: Adrian Crum [mailto:[hidden email]]
Sent: Monday, November 19, 2007 4:45 PM
To: [hidden email]
Subject: Re: java exception in thread error help?

Have you tried using only one driver?

Case Torres wrote:

> Hi,
>
> I'm trying to get my production server up and running with OFBiz Release
4.0

> Centos 4
> Postgres 8.2.4
> Java: jdk-1_5_0_14-linux-i586
> In framework/entity/lib/jdbc I have the following drivers:
> postgresql-8.2-506.jdbc3.jar
> postgresql-8.2-506.jdbc4.jar
>
> I'm getting the following error message when running  ant run-install
>
> [java] Exception in thread "main" java.lang.UnsupportedClassVersionError:
> Bad version number in .class file
>      [java]     at java.lang.ClassLoader.defineClass1(Native Method)
>      [java]     at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
>      [java]     at
> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
>      [java]     at
> java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
>      [java]     at
> java.net.URLClassLoader.access$100(URLClassLoader.java:56)
>      [java]     at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
>      [java]     at java.security.AccessController.doPrivileged(Native
> Method)
>      [java]     at
> java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>      [java]     at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>      [java]     at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
>      [java]     at
>
org.ofbiz.base.util.CachedClassLoader.loadClass(CachedClassLoader.java:179)
>      [java]     at
>
org.ofbiz.base.util.CachedClassLoader.loadClass(CachedClassLoader.java:154)
>      [java]     at
> java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
>      [java]     at java.lang.Class.forName0(Native Method)
>      [java]     at java.lang.Class.forName(Class.java:242)
>      [java]     at
>
org.ofbiz.minerva.pool.jdbc.xa.wrapper.XADataSourceImpl.loadDriver(XADataSou
> rceImpl.java:167)
>      [java]     at
>
org.ofbiz.minerva.pool.jdbc.xa.wrapper.XADataSourceImpl.getXAConnection(XADa
> taSourceImpl.java:222)
>      [java]     at
>
org.ofbiz.minerva.pool.jdbc.xa.XAConnectionFactory.createObject(XAConnection

> Factory.java:367)
>      [java]     at
> org.ofbiz.minerva.pool.ObjectPool.createNewObject(ObjectPool.java:942)
>      [java]     at
> org.ofbiz.minerva.pool.ObjectPool.getObject(ObjectPool.java:630)
>      [java]     at
> org.ofbiz.minerva.pool.ObjectPool.fillToMin(ObjectPool.java:961)
>      [java]     at
> org.ofbiz.minerva.pool.ObjectPool.initialize(ObjectPool.java:533)
>      [java]     at
>
org.ofbiz.minerva.pool.jdbc.xa.XAPoolDataSource.initialize(XAPoolDataSource.
> java:313)
>      [java]     at
>
org.ofbiz.minerva.pool.jdbc.xa.XAPoolDataSource.getConnection(XAPoolDataSour
> ce.java:349)
>      [java]     at
>
org.ofbiz.entity.transaction.MinervaConnectionFactory.getConnection(MinervaC
> onnectionFactory.java:112)
>      [java]     at
>
org.ofbiz.geronimo.GeronimoTransactionFactory.getConnection(GeronimoTransact
> ionFactory.java:94)
>      [java]     at
>
org.ofbiz.entity.transaction.TransactionFactory.getConnection(TransactionFac
> tory.java:95)
>      [java]     at
>
org.ofbiz.entity.jdbc.ConnectionFactory.getConnection(ConnectionFactory.java

> :72)
>      [java]     at
> org.ofbiz.entity.jdbc.DatabaseUtil.getConnection(DatabaseUtil.java:98)
>      [java]     at
> org.ofbiz.entity.jdbc.DatabaseUtil.getTableNames(DatabaseUtil.java:827)
>      [java]     at
> org.ofbiz.entity.jdbc.DatabaseUtil.checkDb(DatabaseUtil.java:136)
>      [java]     at
> org.ofbiz.entity.jdbc.DatabaseUtil.checkDb(DatabaseUtil.java:125)
>      [java]     at
> org.ofbiz.entity.datasource.GenericDAO.checkDb(GenericDAO.java:1087)
>      [java]     at
>
org.ofbiz.entity.datasource.GenericHelperDAO.checkDataSource(GenericHelperDA
> O.java:198)
>      [java]     at
> org.ofbiz.entity.GenericDelegator.<init>(GenericDelegator.java:185)
>      [java]     at
>
org.ofbiz.entity.GenericDelegator.getGenericDelegator(GenericDelegator.java:
> 117)
>      [java]     at
>
org.ofbiz.entityext.data.EntityDataLoadContainer.start(EntityDataLoadContain

> er.java:194)
>      [java]     at
> org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:80)
>      [java]     at
> org.ofbiz.base.start.Start.startStartLoaders(Start.java:263)
>      [java]     at org.ofbiz.base.start.Start.startServer(Start.java:314)
>      [java]     at org.ofbiz.base.start.Start.start(Start.java:318)
>      [java]     at org.ofbiz.base.start.Start.main(Start.java:404)
>      [java] Java Result: 1
>
>
> Case Torres
> [hidden email]
>
>
>

Reply | Threaded
Open this post in threaded view
|

RE: java exception in thread error help?

CaseT
In reply to this post by CaseT

Don't know if this helps but the error message comes right after the
database check:

[java] 2007-11-19 16:46:22,100 (main) [   GenericDelegator.java:183:INFO ]
Doing database check as requested in entityengine.xml with addMissing=true
     [java] Exception in thread "main"
java.lang.UnsupportedClassVersionError: Bad version number in .class file
     [java]     at java.lang.ClassLoader.defineClass1(Native Method)


-----Original Message-----
From: Case Torres [mailto:[hidden email]]
Sent: Monday, November 19, 2007 4:49 PM
To: '[hidden email]'
Subject: RE: java exception in thread error help?

I removed version 3 and I'm getting the same error message. :-(

-----Original Message-----
From: Adrian Crum [mailto:[hidden email]]
Sent: Monday, November 19, 2007 4:45 PM
To: [hidden email]
Subject: Re: java exception in thread error help?

Have you tried using only one driver?

Case Torres wrote:

> Hi,
>
> I'm trying to get my production server up and running with OFBiz Release
4.0

> Centos 4
> Postgres 8.2.4
> Java: jdk-1_5_0_14-linux-i586
> In framework/entity/lib/jdbc I have the following drivers:
> postgresql-8.2-506.jdbc3.jar
> postgresql-8.2-506.jdbc4.jar
>
> I'm getting the following error message when running  ant run-install
>
> [java] Exception in thread "main" java.lang.UnsupportedClassVersionError:
> Bad version number in .class file
>      [java]     at java.lang.ClassLoader.defineClass1(Native Method)
>      [java]     at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
>      [java]     at
> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
>      [java]     at
> java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
>      [java]     at
> java.net.URLClassLoader.access$100(URLClassLoader.java:56)
>      [java]     at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
>      [java]     at java.security.AccessController.doPrivileged(Native
> Method)
>      [java]     at
> java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>      [java]     at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>      [java]     at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
>      [java]     at
>
org.ofbiz.base.util.CachedClassLoader.loadClass(CachedClassLoader.java:179)
>      [java]     at
>
org.ofbiz.base.util.CachedClassLoader.loadClass(CachedClassLoader.java:154)
>      [java]     at
> java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
>      [java]     at java.lang.Class.forName0(Native Method)
>      [java]     at java.lang.Class.forName(Class.java:242)
>      [java]     at
>
org.ofbiz.minerva.pool.jdbc.xa.wrapper.XADataSourceImpl.loadDriver(XADataSou
> rceImpl.java:167)
>      [java]     at
>
org.ofbiz.minerva.pool.jdbc.xa.wrapper.XADataSourceImpl.getXAConnection(XADa
> taSourceImpl.java:222)
>      [java]     at
>
org.ofbiz.minerva.pool.jdbc.xa.XAConnectionFactory.createObject(XAConnection

> Factory.java:367)
>      [java]     at
> org.ofbiz.minerva.pool.ObjectPool.createNewObject(ObjectPool.java:942)
>      [java]     at
> org.ofbiz.minerva.pool.ObjectPool.getObject(ObjectPool.java:630)
>      [java]     at
> org.ofbiz.minerva.pool.ObjectPool.fillToMin(ObjectPool.java:961)
>      [java]     at
> org.ofbiz.minerva.pool.ObjectPool.initialize(ObjectPool.java:533)
>      [java]     at
>
org.ofbiz.minerva.pool.jdbc.xa.XAPoolDataSource.initialize(XAPoolDataSource.
> java:313)
>      [java]     at
>
org.ofbiz.minerva.pool.jdbc.xa.XAPoolDataSource.getConnection(XAPoolDataSour
> ce.java:349)
>      [java]     at
>
org.ofbiz.entity.transaction.MinervaConnectionFactory.getConnection(MinervaC
> onnectionFactory.java:112)
>      [java]     at
>
org.ofbiz.geronimo.GeronimoTransactionFactory.getConnection(GeronimoTransact
> ionFactory.java:94)
>      [java]     at
>
org.ofbiz.entity.transaction.TransactionFactory.getConnection(TransactionFac
> tory.java:95)
>      [java]     at
>
org.ofbiz.entity.jdbc.ConnectionFactory.getConnection(ConnectionFactory.java

> :72)
>      [java]     at
> org.ofbiz.entity.jdbc.DatabaseUtil.getConnection(DatabaseUtil.java:98)
>      [java]     at
> org.ofbiz.entity.jdbc.DatabaseUtil.getTableNames(DatabaseUtil.java:827)
>      [java]     at
> org.ofbiz.entity.jdbc.DatabaseUtil.checkDb(DatabaseUtil.java:136)
>      [java]     at
> org.ofbiz.entity.jdbc.DatabaseUtil.checkDb(DatabaseUtil.java:125)
>      [java]     at
> org.ofbiz.entity.datasource.GenericDAO.checkDb(GenericDAO.java:1087)
>      [java]     at
>
org.ofbiz.entity.datasource.GenericHelperDAO.checkDataSource(GenericHelperDA
> O.java:198)
>      [java]     at
> org.ofbiz.entity.GenericDelegator.<init>(GenericDelegator.java:185)
>      [java]     at
>
org.ofbiz.entity.GenericDelegator.getGenericDelegator(GenericDelegator.java:
> 117)
>      [java]     at
>
org.ofbiz.entityext.data.EntityDataLoadContainer.start(EntityDataLoadContain

> er.java:194)
>      [java]     at
> org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:80)
>      [java]     at
> org.ofbiz.base.start.Start.startStartLoaders(Start.java:263)
>      [java]     at org.ofbiz.base.start.Start.startServer(Start.java:314)
>      [java]     at org.ofbiz.base.start.Start.start(Start.java:318)
>      [java]     at org.ofbiz.base.start.Start.main(Start.java:404)
>      [java] Java Result: 1
>
>
> Case Torres
> [hidden email]
>
>
>

Reply | Threaded
Open this post in threaded view
|

Re: java exception in thread error help?

BJ Freeman
do you see the db info just before that
XML Read 0.0050s: entityengine.xml
Delegator "default" initializing helper "localpostgres" for entity group
"org.ofbiz".
 Doing database check as requested in entityengine.xml with addMissing=true
Database Product Name is PostgreSQL
Database Product Version is 7.4.13
Database Driver Name is PostgreSQL Native Driver
Database Driver Version is PostgreSQL 7.5devel JDBC3 with SSL (build 301)
Database Driver JDBC Version is 3.0
Database Setting/Support Information (those with a * should be true):
supports transactions    [true]*


Case Torres sent the following on 11/19/2007 4:51 PM:

> Don't know if this helps but the error message comes right after the
> database check:
>
> [java] 2007-11-19 16:46:22,100 (main) [   GenericDelegator.java:183:INFO ]
> Doing database check as requested in entityengine.xml with addMissing=true
>      [java] Exception in thread "main"
> java.lang.UnsupportedClassVersionError: Bad version number in .class file
>      [java]     at java.lang.ClassLoader.defineClass1(Native Method)
>
>
> -----Original Message-----
> From: Case Torres [mailto:[hidden email]]
> Sent: Monday, November 19, 2007 4:49 PM
> To: '[hidden email]'
> Subject: RE: java exception in thread error help?
>
> I removed version 3 and I'm getting the same error message. :-(
>
> -----Original Message-----
> From: Adrian Crum [mailto:[hidden email]]
> Sent: Monday, November 19, 2007 4:45 PM
> To: [hidden email]
> Subject: Re: java exception in thread error help?
>
> Have you tried using only one driver?
>
> Case Torres wrote:
>
>> Hi,
>>
>> I'm trying to get my production server up and running with OFBiz Release
> 4.0
>> Centos 4
>> Postgres 8.2.4
>> Java: jdk-1_5_0_14-linux-i586
>> In framework/entity/lib/jdbc I have the following drivers:
>> postgresql-8.2-506.jdbc3.jar
>> postgresql-8.2-506.jdbc4.jar
>>
>> I'm getting the following error message when running  ant run-install
>>
>> [java] Exception in thread "main" java.lang.UnsupportedClassVersionError:
>> Bad version number in .class file
>>      [java]     at java.lang.ClassLoader.defineClass1(Native Method)
>>      [java]     at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
>>      [java]     at
>> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
>>      [java]     at
>> java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
>>      [java]     at
>> java.net.URLClassLoader.access$100(URLClassLoader.java:56)
>>      [java]     at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
>>      [java]     at java.security.AccessController.doPrivileged(Native
>> Method)
>>      [java]     at
>> java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>>      [java]     at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>>      [java]     at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
>>      [java]     at
>>
> org.ofbiz.base.util.CachedClassLoader.loadClass(CachedClassLoader.java:179)
>>      [java]     at
>>
> org.ofbiz.base.util.CachedClassLoader.loadClass(CachedClassLoader.java:154)
>>      [java]     at
>> java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
>>      [java]     at java.lang.Class.forName0(Native Method)
>>      [java]     at java.lang.Class.forName(Class.java:242)
>>      [java]     at
>>
> org.ofbiz.minerva.pool.jdbc.xa.wrapper.XADataSourceImpl.loadDriver(XADataSou
>> rceImpl.java:167)
>>      [java]     at
>>
> org.ofbiz.minerva.pool.jdbc.xa.wrapper.XADataSourceImpl.getXAConnection(XADa
>> taSourceImpl.java:222)
>>      [java]     at
>>
> org.ofbiz.minerva.pool.jdbc.xa.XAConnectionFactory.createObject(XAConnection
>> Factory.java:367)
>>      [java]     at
>> org.ofbiz.minerva.pool.ObjectPool.createNewObject(ObjectPool.java:942)
>>      [java]     at
>> org.ofbiz.minerva.pool.ObjectPool.getObject(ObjectPool.java:630)
>>      [java]     at
>> org.ofbiz.minerva.pool.ObjectPool.fillToMin(ObjectPool.java:961)
>>      [java]     at
>> org.ofbiz.minerva.pool.ObjectPool.initialize(ObjectPool.java:533)
>>      [java]     at
>>
> org.ofbiz.minerva.pool.jdbc.xa.XAPoolDataSource.initialize(XAPoolDataSource.
>> java:313)
>>      [java]     at
>>
> org.ofbiz.minerva.pool.jdbc.xa.XAPoolDataSource.getConnection(XAPoolDataSour
>> ce.java:349)
>>      [java]     at
>>
> org.ofbiz.entity.transaction.MinervaConnectionFactory.getConnection(MinervaC
>> onnectionFactory.java:112)
>>      [java]     at
>>
> org.ofbiz.geronimo.GeronimoTransactionFactory.getConnection(GeronimoTransact
>> ionFactory.java:94)
>>      [java]     at
>>
> org.ofbiz.entity.transaction.TransactionFactory.getConnection(TransactionFac
>> tory.java:95)
>>      [java]     at
>>
> org.ofbiz.entity.jdbc.ConnectionFactory.getConnection(ConnectionFactory.java
>> :72)
>>      [java]     at
>> org.ofbiz.entity.jdbc.DatabaseUtil.getConnection(DatabaseUtil.java:98)
>>      [java]     at
>> org.ofbiz.entity.jdbc.DatabaseUtil.getTableNames(DatabaseUtil.java:827)
>>      [java]     at
>> org.ofbiz.entity.jdbc.DatabaseUtil.checkDb(DatabaseUtil.java:136)
>>      [java]     at
>> org.ofbiz.entity.jdbc.DatabaseUtil.checkDb(DatabaseUtil.java:125)
>>      [java]     at
>> org.ofbiz.entity.datasource.GenericDAO.checkDb(GenericDAO.java:1087)
>>      [java]     at
>>
> org.ofbiz.entity.datasource.GenericHelperDAO.checkDataSource(GenericHelperDA
>> O.java:198)
>>      [java]     at
>> org.ofbiz.entity.GenericDelegator.<init>(GenericDelegator.java:185)
>>      [java]     at
>>
> org.ofbiz.entity.GenericDelegator.getGenericDelegator(GenericDelegator.java:
>> 117)
>>      [java]     at
>>
> org.ofbiz.entityext.data.EntityDataLoadContainer.start(EntityDataLoadContain
>> er.java:194)
>>      [java]     at
>> org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:80)
>>      [java]     at
>> org.ofbiz.base.start.Start.startStartLoaders(Start.java:263)
>>      [java]     at org.ofbiz.base.start.Start.startServer(Start.java:314)
>>      [java]     at org.ofbiz.base.start.Start.start(Start.java:318)
>>      [java]     at org.ofbiz.base.start.Start.main(Start.java:404)
>>      [java] Java Result: 1
>>
>>
>> Case Torres
>> [hidden email]
>>
>>
>>
>
>
>
>
Reply | Threaded
Open this post in threaded view
|

RE: java exception in thread error help?

SkipDever
In reply to this post by CaseT
I am betting you have a 1.4 compiled version of something somewhere.  Try
running just ant first, and if that doesnt work, try running ant clean-all
and then ant.  If you are using postgres, clean-all will not wipe out your
data files, but ant run-install-seed will wipe out your seed data (like
starting invoice numbers and such things which may or may not be important).


Skip

-----Original Message-----
From: Case Torres [mailto:[hidden email]]
Sent: Monday, November 19, 2007 4:23 PM
To: [hidden email]
Subject: java exception in thread error help?


Hi,

I'm trying to get my production server up and running with OFBiz Release 4.0
Centos 4
Postgres 8.2.4
Java: jdk-1_5_0_14-linux-i586
In framework/entity/lib/jdbc I have the following drivers:
postgresql-8.2-506.jdbc3.jar
postgresql-8.2-506.jdbc4.jar

I'm getting the following error message when running  ant run-install

[java] Exception in thread "main" java.lang.UnsupportedClassVersionError:
Bad version number in .class file
     [java]     at java.lang.ClassLoader.defineClass1(Native Method)
     [java]     at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
     [java]     at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
     [java]     at
java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
     [java]     at
java.net.URLClassLoader.access$100(URLClassLoader.java:56)
     [java]     at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
     [java]     at java.security.AccessController.doPrivileged(Native
Method)
     [java]     at
java.net.URLClassLoader.findClass(URLClassLoader.java:188)
     [java]     at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
     [java]     at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
     [java]     at
org.ofbiz.base.util.CachedClassLoader.loadClass(CachedClassLoader.java:179)
     [java]     at
org.ofbiz.base.util.CachedClassLoader.loadClass(CachedClassLoader.java:154)
     [java]     at
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
     [java]     at java.lang.Class.forName0(Native Method)
     [java]     at java.lang.Class.forName(Class.java:242)
     [java]     at
org.ofbiz.minerva.pool.jdbc.xa.wrapper.XADataSourceImpl.loadDriver(XADataSou
rceImpl.java:167)
     [java]     at
org.ofbiz.minerva.pool.jdbc.xa.wrapper.XADataSourceImpl.getXAConnection(XADa
taSourceImpl.java:222)
     [java]     at
org.ofbiz.minerva.pool.jdbc.xa.XAConnectionFactory.createObject(XAConnection
Factory.java:367)
     [java]     at
org.ofbiz.minerva.pool.ObjectPool.createNewObject(ObjectPool.java:942)
     [java]     at
org.ofbiz.minerva.pool.ObjectPool.getObject(ObjectPool.java:630)
     [java]     at
org.ofbiz.minerva.pool.ObjectPool.fillToMin(ObjectPool.java:961)
     [java]     at
org.ofbiz.minerva.pool.ObjectPool.initialize(ObjectPool.java:533)
     [java]     at
org.ofbiz.minerva.pool.jdbc.xa.XAPoolDataSource.initialize(XAPoolDataSource.
java:313)
     [java]     at
org.ofbiz.minerva.pool.jdbc.xa.XAPoolDataSource.getConnection(XAPoolDataSour
ce.java:349)
     [java]     at
org.ofbiz.entity.transaction.MinervaConnectionFactory.getConnection(MinervaC
onnectionFactory.java:112)
     [java]     at
org.ofbiz.geronimo.GeronimoTransactionFactory.getConnection(GeronimoTransact
ionFactory.java:94)
     [java]     at
org.ofbiz.entity.transaction.TransactionFactory.getConnection(TransactionFac
tory.java:95)
     [java]     at
org.ofbiz.entity.jdbc.ConnectionFactory.getConnection(ConnectionFactory.java
:72)
     [java]     at
org.ofbiz.entity.jdbc.DatabaseUtil.getConnection(DatabaseUtil.java:98)
     [java]     at
org.ofbiz.entity.jdbc.DatabaseUtil.getTableNames(DatabaseUtil.java:827)
     [java]     at
org.ofbiz.entity.jdbc.DatabaseUtil.checkDb(DatabaseUtil.java:136)
     [java]     at
org.ofbiz.entity.jdbc.DatabaseUtil.checkDb(DatabaseUtil.java:125)
     [java]     at
org.ofbiz.entity.datasource.GenericDAO.checkDb(GenericDAO.java:1087)
     [java]     at
org.ofbiz.entity.datasource.GenericHelperDAO.checkDataSource(GenericHelperDA
O.java:198)
     [java]     at
org.ofbiz.entity.GenericDelegator.<init>(GenericDelegator.java:185)
     [java]     at
org.ofbiz.entity.GenericDelegator.getGenericDelegator(GenericDelegator.java:
117)
     [java]     at
org.ofbiz.entityext.data.EntityDataLoadContainer.start(EntityDataLoadContain
er.java:194)
     [java]     at
org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:80)
     [java]     at
org.ofbiz.base.start.Start.startStartLoaders(Start.java:263)
     [java]     at org.ofbiz.base.start.Start.startServer(Start.java:314)
     [java]     at org.ofbiz.base.start.Start.start(Start.java:318)
     [java]     at org.ofbiz.base.start.Start.main(Start.java:404)
     [java] Java Result: 1


Case Torres
[hidden email]



Reply | Threaded
Open this post in threaded view
|

RE: java exception in thread error help?

CaseT
In reply to this post by BJ Freeman
Here's what's before the error message:

   [java] 2007-11-19 17:14:22,729 (main) [   GenericDelegator.java:149:INFO
] Doing entity definition check...
     [java] 2007-11-19 17:14:22,739 (main) [
ModelEntityChecker.java:506:INFO ] [initReservedWords] array length=1023
     [java] 2007-11-19 17:14:22,769 (main) [
UtilXml.java:243:DEBUG] XML Read 0.012s: entityengine.xml
     [java] 2007-11-19 17:14:22,973 (main) [
GenericDelegator.java:166:INFO ] Delegator "default" initializing helper
"localpostgres" for entity group "org.ofbiz".
     [java] 2007-11-19 17:14:22,978 (main) [
GenericDelegator.java:183:INFO ] Doing database check as requested in
entityengine.xml with addMissing=true
     [java] Exception in thread "main"
java.lang.UnsupportedClassVersionError: Bad version number in .class file
     [java]     at java.lang.ClassLoader.defineClass1(Native Method)
     [java]     at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
     [java]     at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
     [java]     at
java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
     [java]     at
java.net.URLClassLoader.access$100(URLClassLoader.java:56)
     [java]     at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
     [java]     at java.security.AccessController.doPrivileged(Native
Method)
     [java]     at
java.net.URLClassLoader.findClass(URLClassLoader.java:188)
     [java]     at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
     [java]     at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
     [java]     at
org.ofbiz.base.util.CachedClassLoader.loadClass(CachedClassLoader.java:179)
     [java]     at
org.ofbiz.base.util.CachedClassLoader.loadClass(CachedClassLoader.java:154)
     [java]     at
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
     [java]     at java.lang.Class.forName0(Native Method)
     [java]     at java.lang.Class.forName(Class.java:242)
     [java]     at
org.ofbiz.minerva.pool.jdbc.xa.wrapper.XADataSourceImpl.loadDriver(XADataSou
rceImpl.java:167)
     [java]     at
org.ofbiz.minerva.pool.jdbc.xa.wrapper.XADataSourceImpl.getXAConnection(XADa
taSourceImpl.java:222)
     [java]     at
org.ofbiz.minerva.pool.jdbc.xa.XAConnectionFactory.createObject(XAConnection
Factory.java:367)
     [java]     at
org.ofbiz.minerva.pool.ObjectPool.createNewObject(ObjectPool.java:942)
     [java]     at
org.ofbiz.minerva.pool.ObjectPool.getObject(ObjectPool.java:630)
     [java]     at
org.ofbiz.minerva.pool.ObjectPool.fillToMin(ObjectPool.java:961)
     [java]     at
org.ofbiz.minerva.pool.ObjectPool.initialize(ObjectPool.java:533)
     [java]     at
org.ofbiz.minerva.pool.jdbc.xa.XAPoolDataSource.initialize(XAPoolDataSource.
java:313)
     [java]     at
org.ofbiz.minerva.pool.jdbc.xa.XAPoolDataSource.getConnection(XAPoolDataSour
ce.java:349)
     [java]     at
org.ofbiz.entity.transaction.MinervaConnectionFactory.getConnection(MinervaC
onnectionFactory.java:112)
     [java]     at
org.ofbiz.geronimo.GeronimoTransactionFactory.getConnection(GeronimoTransact
ionFactory.java:94)
Type  :quit<Enter>  to exit Vim

-----Original Message-----
From: BJ Freeman [mailto:[hidden email]]
Sent: Monday, November 19, 2007 4:59 PM
To: [hidden email]
Subject: Re: java exception in thread error help?

do you see the db info just before that
XML Read 0.0050s: entityengine.xml
Delegator "default" initializing helper "localpostgres" for entity group
"org.ofbiz".
 Doing database check as requested in entityengine.xml with addMissing=true
Database Product Name is PostgreSQL
Database Product Version is 7.4.13
Database Driver Name is PostgreSQL Native Driver
Database Driver Version is PostgreSQL 7.5devel JDBC3 with SSL (build 301)
Database Driver JDBC Version is 3.0
Database Setting/Support Information (those with a * should be true):
supports transactions    [true]*


Case Torres sent the following on 11/19/2007 4:51 PM:

> Don't know if this helps but the error message comes right after the
> database check:
>
> [java] 2007-11-19 16:46:22,100 (main) [   GenericDelegator.java:183:INFO ]
> Doing database check as requested in entityengine.xml with addMissing=true
>      [java] Exception in thread "main"
> java.lang.UnsupportedClassVersionError: Bad version number in .class file
>      [java]     at java.lang.ClassLoader.defineClass1(Native Method)
>
>
> -----Original Message-----
> From: Case Torres [mailto:[hidden email]]
> Sent: Monday, November 19, 2007 4:49 PM
> To: '[hidden email]'
> Subject: RE: java exception in thread error help?
>
> I removed version 3 and I'm getting the same error message. :-(
>
> -----Original Message-----
> From: Adrian Crum [mailto:[hidden email]]
> Sent: Monday, November 19, 2007 4:45 PM
> To: [hidden email]
> Subject: Re: java exception in thread error help?
>
> Have you tried using only one driver?
>
> Case Torres wrote:
>
>> Hi,
>>
>> I'm trying to get my production server up and running with OFBiz Release
> 4.0
>> Centos 4
>> Postgres 8.2.4
>> Java: jdk-1_5_0_14-linux-i586
>> In framework/entity/lib/jdbc I have the following drivers:
>> postgresql-8.2-506.jdbc3.jar
>> postgresql-8.2-506.jdbc4.jar
>>
>> I'm getting the following error message when running  ant run-install
>>
>> [java] Exception in thread "main" java.lang.UnsupportedClassVersionError:
>> Bad version number in .class file
>>      [java]     at java.lang.ClassLoader.defineClass1(Native Method)
>>      [java]     at
java.lang.ClassLoader.defineClass(ClassLoader.java:620)

>>      [java]     at
>> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
>>      [java]     at
>> java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
>>      [java]     at
>> java.net.URLClassLoader.access$100(URLClassLoader.java:56)
>>      [java]     at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
>>      [java]     at java.security.AccessController.doPrivileged(Native
>> Method)
>>      [java]     at
>> java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>>      [java]     at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>>      [java]     at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
>>      [java]     at
>>
>
org.ofbiz.base.util.CachedClassLoader.loadClass(CachedClassLoader.java:179)
>>      [java]     at
>>
>
org.ofbiz.base.util.CachedClassLoader.loadClass(CachedClassLoader.java:154)
>>      [java]     at
>> java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
>>      [java]     at java.lang.Class.forName0(Native Method)
>>      [java]     at java.lang.Class.forName(Class.java:242)
>>      [java]     at
>>
>
org.ofbiz.minerva.pool.jdbc.xa.wrapper.XADataSourceImpl.loadDriver(XADataSou
>> rceImpl.java:167)
>>      [java]     at
>>
>
org.ofbiz.minerva.pool.jdbc.xa.wrapper.XADataSourceImpl.getXAConnection(XADa
>> taSourceImpl.java:222)
>>      [java]     at
>>
>
org.ofbiz.minerva.pool.jdbc.xa.XAConnectionFactory.createObject(XAConnection

>> Factory.java:367)
>>      [java]     at
>> org.ofbiz.minerva.pool.ObjectPool.createNewObject(ObjectPool.java:942)
>>      [java]     at
>> org.ofbiz.minerva.pool.ObjectPool.getObject(ObjectPool.java:630)
>>      [java]     at
>> org.ofbiz.minerva.pool.ObjectPool.fillToMin(ObjectPool.java:961)
>>      [java]     at
>> org.ofbiz.minerva.pool.ObjectPool.initialize(ObjectPool.java:533)
>>      [java]     at
>>
>
org.ofbiz.minerva.pool.jdbc.xa.XAPoolDataSource.initialize(XAPoolDataSource.
>> java:313)
>>      [java]     at
>>
>
org.ofbiz.minerva.pool.jdbc.xa.XAPoolDataSource.getConnection(XAPoolDataSour
>> ce.java:349)
>>      [java]     at
>>
>
org.ofbiz.entity.transaction.MinervaConnectionFactory.getConnection(MinervaC
>> onnectionFactory.java:112)
>>      [java]     at
>>
>
org.ofbiz.geronimo.GeronimoTransactionFactory.getConnection(GeronimoTransact
>> ionFactory.java:94)
>>      [java]     at
>>
>
org.ofbiz.entity.transaction.TransactionFactory.getConnection(TransactionFac
>> tory.java:95)
>>      [java]     at
>>
>
org.ofbiz.entity.jdbc.ConnectionFactory.getConnection(ConnectionFactory.java

>> :72)
>>      [java]     at
>> org.ofbiz.entity.jdbc.DatabaseUtil.getConnection(DatabaseUtil.java:98)
>>      [java]     at
>> org.ofbiz.entity.jdbc.DatabaseUtil.getTableNames(DatabaseUtil.java:827)
>>      [java]     at
>> org.ofbiz.entity.jdbc.DatabaseUtil.checkDb(DatabaseUtil.java:136)
>>      [java]     at
>> org.ofbiz.entity.jdbc.DatabaseUtil.checkDb(DatabaseUtil.java:125)
>>      [java]     at
>> org.ofbiz.entity.datasource.GenericDAO.checkDb(GenericDAO.java:1087)
>>      [java]     at
>>
>
org.ofbiz.entity.datasource.GenericHelperDAO.checkDataSource(GenericHelperDA
>> O.java:198)
>>      [java]     at
>> org.ofbiz.entity.GenericDelegator.<init>(GenericDelegator.java:185)
>>      [java]     at
>>
>
org.ofbiz.entity.GenericDelegator.getGenericDelegator(GenericDelegator.java:
>> 117)
>>      [java]     at
>>
>
org.ofbiz.entityext.data.EntityDataLoadContainer.start(EntityDataLoadContain

>> er.java:194)
>>      [java]     at
>> org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:80)
>>      [java]     at
>> org.ofbiz.base.start.Start.startStartLoaders(Start.java:263)
>>      [java]     at org.ofbiz.base.start.Start.startServer(Start.java:314)
>>      [java]     at org.ofbiz.base.start.Start.start(Start.java:318)
>>      [java]     at org.ofbiz.base.start.Start.main(Start.java:404)
>>      [java] Java Result: 1
>>
>>
>> Case Torres
>> [hidden email]
>>
>>
>>
>
>
>
>

Reply | Threaded
Open this post in threaded view
|

RE: java exception in thread error help?

CaseT
In reply to this post by SkipDever
UGH!!!
Still getting the same error message.
Runnning just ant and ant clean-all I didn't get any error messages.
Then ran ant run-install and still getting the same error message.

-----Original Message-----
From: skip@thedevers [mailto:[hidden email]]
Sent: Monday, November 19, 2007 5:10 PM
To: [hidden email]; [hidden email]
Subject: RE: java exception in thread error help?

I am betting you have a 1.4 compiled version of something somewhere.  Try
running just ant first, and if that doesnt work, try running ant clean-all
and then ant.  If you are using postgres, clean-all will not wipe out your
data files, but ant run-install-seed will wipe out your seed data (like
starting invoice numbers and such things which may or may not be important).


Skip

-----Original Message-----
From: Case Torres [mailto:[hidden email]]
Sent: Monday, November 19, 2007 4:23 PM
To: [hidden email]
Subject: java exception in thread error help?


Hi,

I'm trying to get my production server up and running with OFBiz Release 4.0
Centos 4
Postgres 8.2.4
Java: jdk-1_5_0_14-linux-i586
In framework/entity/lib/jdbc I have the following drivers:
postgresql-8.2-506.jdbc3.jar
postgresql-8.2-506.jdbc4.jar

I'm getting the following error message when running  ant run-install

[java] Exception in thread "main" java.lang.UnsupportedClassVersionError:
Bad version number in .class file
     [java]     at java.lang.ClassLoader.defineClass1(Native Method)
     [java]     at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
     [java]     at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
     [java]     at
java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
     [java]     at
java.net.URLClassLoader.access$100(URLClassLoader.java:56)
     [java]     at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
     [java]     at java.security.AccessController.doPrivileged(Native
Method)
     [java]     at
java.net.URLClassLoader.findClass(URLClassLoader.java:188)
     [java]     at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
     [java]     at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
     [java]     at
org.ofbiz.base.util.CachedClassLoader.loadClass(CachedClassLoader.java:179)
     [java]     at
org.ofbiz.base.util.CachedClassLoader.loadClass(CachedClassLoader.java:154)
     [java]     at
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
     [java]     at java.lang.Class.forName0(Native Method)
     [java]     at java.lang.Class.forName(Class.java:242)
     [java]     at
org.ofbiz.minerva.pool.jdbc.xa.wrapper.XADataSourceImpl.loadDriver(XADataSou
rceImpl.java:167)
     [java]     at
org.ofbiz.minerva.pool.jdbc.xa.wrapper.XADataSourceImpl.getXAConnection(XADa
taSourceImpl.java:222)
     [java]     at
org.ofbiz.minerva.pool.jdbc.xa.XAConnectionFactory.createObject(XAConnection
Factory.java:367)
     [java]     at
org.ofbiz.minerva.pool.ObjectPool.createNewObject(ObjectPool.java:942)
     [java]     at
org.ofbiz.minerva.pool.ObjectPool.getObject(ObjectPool.java:630)
     [java]     at
org.ofbiz.minerva.pool.ObjectPool.fillToMin(ObjectPool.java:961)
     [java]     at
org.ofbiz.minerva.pool.ObjectPool.initialize(ObjectPool.java:533)
     [java]     at
org.ofbiz.minerva.pool.jdbc.xa.XAPoolDataSource.initialize(XAPoolDataSource.
java:313)
     [java]     at
org.ofbiz.minerva.pool.jdbc.xa.XAPoolDataSource.getConnection(XAPoolDataSour
ce.java:349)
     [java]     at
org.ofbiz.entity.transaction.MinervaConnectionFactory.getConnection(MinervaC
onnectionFactory.java:112)
     [java]     at
org.ofbiz.geronimo.GeronimoTransactionFactory.getConnection(GeronimoTransact
ionFactory.java:94)
     [java]     at
org.ofbiz.entity.transaction.TransactionFactory.getConnection(TransactionFac
tory.java:95)
     [java]     at
org.ofbiz.entity.jdbc.ConnectionFactory.getConnection(ConnectionFactory.java
:72)
     [java]     at
org.ofbiz.entity.jdbc.DatabaseUtil.getConnection(DatabaseUtil.java:98)
     [java]     at
org.ofbiz.entity.jdbc.DatabaseUtil.getTableNames(DatabaseUtil.java:827)
     [java]     at
org.ofbiz.entity.jdbc.DatabaseUtil.checkDb(DatabaseUtil.java:136)
     [java]     at
org.ofbiz.entity.jdbc.DatabaseUtil.checkDb(DatabaseUtil.java:125)
     [java]     at
org.ofbiz.entity.datasource.GenericDAO.checkDb(GenericDAO.java:1087)
     [java]     at
org.ofbiz.entity.datasource.GenericHelperDAO.checkDataSource(GenericHelperDA
O.java:198)
     [java]     at
org.ofbiz.entity.GenericDelegator.<init>(GenericDelegator.java:185)
     [java]     at
org.ofbiz.entity.GenericDelegator.getGenericDelegator(GenericDelegator.java:
117)
     [java]     at
org.ofbiz.entityext.data.EntityDataLoadContainer.start(EntityDataLoadContain
er.java:194)
     [java]     at
org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:80)
     [java]     at
org.ofbiz.base.start.Start.startStartLoaders(Start.java:263)
     [java]     at org.ofbiz.base.start.Start.startServer(Start.java:314)
     [java]     at org.ofbiz.base.start.Start.start(Start.java:318)
     [java]     at org.ofbiz.base.start.Start.main(Start.java:404)
     [java] Java Result: 1


Case Torres
[hidden email]



Reply | Threaded
Open this post in threaded view
|

Re: java exception in thread error help?

BJ Freeman
ant clean-all I don't believe starts ofbiz.
try download the jbc drivers again
maybe corrupt/

Case Torres sent the following on 11/19/2007 5:23 PM:

> UGH!!!
> Still getting the same error message.
> Runnning just ant and ant clean-all I didn't get any error messages.
> Then ran ant run-install and still getting the same error message.
>
> -----Original Message-----
> From: skip@thedevers [mailto:[hidden email]]
> Sent: Monday, November 19, 2007 5:10 PM
> To: [hidden email]; [hidden email]
> Subject: RE: java exception in thread error help?
>
> I am betting you have a 1.4 compiled version of something somewhere.  Try
> running just ant first, and if that doesnt work, try running ant clean-all
> and then ant.  If you are using postgres, clean-all will not wipe out your
> data files, but ant run-install-seed will wipe out your seed data (like
> starting invoice numbers and such things which may or may not be important).
>
>
> Skip
>
> -----Original Message-----
> From: Case Torres [mailto:[hidden email]]
> Sent: Monday, November 19, 2007 4:23 PM
> To: [hidden email]
> Subject: java exception in thread error help?
>
>
> Hi,
>
> I'm trying to get my production server up and running with OFBiz Release 4.0
> Centos 4
> Postgres 8.2.4
> Java: jdk-1_5_0_14-linux-i586
> In framework/entity/lib/jdbc I have the following drivers:
> postgresql-8.2-506.jdbc3.jar
> postgresql-8.2-506.jdbc4.jar
>
> I'm getting the following error message when running  ant run-install
>
> [java] Exception in thread "main" java.lang.UnsupportedClassVersionError:
> Bad version number in .class file
>      [java]     at java.lang.ClassLoader.defineClass1(Native Method)
>      [java]     at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
>      [java]     at
> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
>      [java]     at
> java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
>      [java]     at
> java.net.URLClassLoader.access$100(URLClassLoader.java:56)
>      [java]     at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
>      [java]     at java.security.AccessController.doPrivileged(Native
> Method)
>      [java]     at
> java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>      [java]     at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>      [java]     at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
>      [java]     at
> org.ofbiz.base.util.CachedClassLoader.loadClass(CachedClassLoader.java:179)
>      [java]     at
> org.ofbiz.base.util.CachedClassLoader.loadClass(CachedClassLoader.java:154)
>      [java]     at
> java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
>      [java]     at java.lang.Class.forName0(Native Method)
>      [java]     at java.lang.Class.forName(Class.java:242)
>      [java]     at
> org.ofbiz.minerva.pool.jdbc.xa.wrapper.XADataSourceImpl.loadDriver(XADataSou
> rceImpl.java:167)
>      [java]     at
> org.ofbiz.minerva.pool.jdbc.xa.wrapper.XADataSourceImpl.getXAConnection(XADa
> taSourceImpl.java:222)
>      [java]     at
> org.ofbiz.minerva.pool.jdbc.xa.XAConnectionFactory.createObject(XAConnection
> Factory.java:367)
>      [java]     at
> org.ofbiz.minerva.pool.ObjectPool.createNewObject(ObjectPool.java:942)
>      [java]     at
> org.ofbiz.minerva.pool.ObjectPool.getObject(ObjectPool.java:630)
>      [java]     at
> org.ofbiz.minerva.pool.ObjectPool.fillToMin(ObjectPool.java:961)
>      [java]     at
> org.ofbiz.minerva.pool.ObjectPool.initialize(ObjectPool.java:533)
>      [java]     at
> org.ofbiz.minerva.pool.jdbc.xa.XAPoolDataSource.initialize(XAPoolDataSource.
> java:313)
>      [java]     at
> org.ofbiz.minerva.pool.jdbc.xa.XAPoolDataSource.getConnection(XAPoolDataSour
> ce.java:349)
>      [java]     at
> org.ofbiz.entity.transaction.MinervaConnectionFactory.getConnection(MinervaC
> onnectionFactory.java:112)
>      [java]     at
> org.ofbiz.geronimo.GeronimoTransactionFactory.getConnection(GeronimoTransact
> ionFactory.java:94)
>      [java]     at
> org.ofbiz.entity.transaction.TransactionFactory.getConnection(TransactionFac
> tory.java:95)
>      [java]     at
> org.ofbiz.entity.jdbc.ConnectionFactory.getConnection(ConnectionFactory.java
> :72)
>      [java]     at
> org.ofbiz.entity.jdbc.DatabaseUtil.getConnection(DatabaseUtil.java:98)
>      [java]     at
> org.ofbiz.entity.jdbc.DatabaseUtil.getTableNames(DatabaseUtil.java:827)
>      [java]     at
> org.ofbiz.entity.jdbc.DatabaseUtil.checkDb(DatabaseUtil.java:136)
>      [java]     at
> org.ofbiz.entity.jdbc.DatabaseUtil.checkDb(DatabaseUtil.java:125)
>      [java]     at
> org.ofbiz.entity.datasource.GenericDAO.checkDb(GenericDAO.java:1087)
>      [java]     at
> org.ofbiz.entity.datasource.GenericHelperDAO.checkDataSource(GenericHelperDA
> O.java:198)
>      [java]     at
> org.ofbiz.entity.GenericDelegator.<init>(GenericDelegator.java:185)
>      [java]     at
> org.ofbiz.entity.GenericDelegator.getGenericDelegator(GenericDelegator.java:
> 117)
>      [java]     at
> org.ofbiz.entityext.data.EntityDataLoadContainer.start(EntityDataLoadContain
> er.java:194)
>      [java]     at
> org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:80)
>      [java]     at
> org.ofbiz.base.start.Start.startStartLoaders(Start.java:263)
>      [java]     at org.ofbiz.base.start.Start.startServer(Start.java:314)
>      [java]     at org.ofbiz.base.start.Start.start(Start.java:318)
>      [java]     at org.ofbiz.base.start.Start.main(Start.java:404)
>      [java] Java Result: 1
>
>
> Case Torres
> [hidden email]
>
>
>
>
>
>
Reply | Threaded
Open this post in threaded view
|

RE: java exception in thread error help?[SOLVED!]

CaseT
In reply to this post by Adrian Crum

Andrian,

You were right. Removing version 4 driver and leaving version3 solved the
problem!!.

Thanks much everyone!!


-----Original Message-----
From: Adrian Crum [mailto:[hidden email]]
Sent: Monday, November 19, 2007 4:45 PM
To: [hidden email]
Subject: Re: java exception in thread error help?

Have you tried using only one driver?

Case Torres wrote:

> Hi,
>
> I'm trying to get my production server up and running with OFBiz Release
4.0

> Centos 4
> Postgres 8.2.4
> Java: jdk-1_5_0_14-linux-i586
> In framework/entity/lib/jdbc I have the following drivers:
> postgresql-8.2-506.jdbc3.jar
> postgresql-8.2-506.jdbc4.jar
>
> I'm getting the following error message when running  ant run-install
>
> [java] Exception in thread "main" java.lang.UnsupportedClassVersionError:
> Bad version number in .class file
>      [java]     at java.lang.ClassLoader.defineClass1(Native Method)
>      [java]     at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
>      [java]     at
> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
>      [java]     at
> java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
>      [java]     at
> java.net.URLClassLoader.access$100(URLClassLoader.java:56)
>      [java]     at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
>      [java]     at java.security.AccessController.doPrivileged(Native
> Method)
>      [java]     at
> java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>      [java]     at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>      [java]     at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
>      [java]     at
>
org.ofbiz.base.util.CachedClassLoader.loadClass(CachedClassLoader.java:179)
>      [java]     at
>
org.ofbiz.base.util.CachedClassLoader.loadClass(CachedClassLoader.java:154)
>      [java]     at
> java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
>      [java]     at java.lang.Class.forName0(Native Method)
>      [java]     at java.lang.Class.forName(Class.java:242)
>      [java]     at
>
org.ofbiz.minerva.pool.jdbc.xa.wrapper.XADataSourceImpl.loadDriver(XADataSou
> rceImpl.java:167)
>      [java]     at
>
org.ofbiz.minerva.pool.jdbc.xa.wrapper.XADataSourceImpl.getXAConnection(XADa
> taSourceImpl.java:222)
>      [java]     at
>
org.ofbiz.minerva.pool.jdbc.xa.XAConnectionFactory.createObject(XAConnection

> Factory.java:367)
>      [java]     at
> org.ofbiz.minerva.pool.ObjectPool.createNewObject(ObjectPool.java:942)
>      [java]     at
> org.ofbiz.minerva.pool.ObjectPool.getObject(ObjectPool.java:630)
>      [java]     at
> org.ofbiz.minerva.pool.ObjectPool.fillToMin(ObjectPool.java:961)
>      [java]     at
> org.ofbiz.minerva.pool.ObjectPool.initialize(ObjectPool.java:533)
>      [java]     at
>
org.ofbiz.minerva.pool.jdbc.xa.XAPoolDataSource.initialize(XAPoolDataSource.
> java:313)
>      [java]     at
>
org.ofbiz.minerva.pool.jdbc.xa.XAPoolDataSource.getConnection(XAPoolDataSour
> ce.java:349)
>      [java]     at
>
org.ofbiz.entity.transaction.MinervaConnectionFactory.getConnection(MinervaC
> onnectionFactory.java:112)
>      [java]     at
>
org.ofbiz.geronimo.GeronimoTransactionFactory.getConnection(GeronimoTransact
> ionFactory.java:94)
>      [java]     at
>
org.ofbiz.entity.transaction.TransactionFactory.getConnection(TransactionFac
> tory.java:95)
>      [java]     at
>
org.ofbiz.entity.jdbc.ConnectionFactory.getConnection(ConnectionFactory.java

> :72)
>      [java]     at
> org.ofbiz.entity.jdbc.DatabaseUtil.getConnection(DatabaseUtil.java:98)
>      [java]     at
> org.ofbiz.entity.jdbc.DatabaseUtil.getTableNames(DatabaseUtil.java:827)
>      [java]     at
> org.ofbiz.entity.jdbc.DatabaseUtil.checkDb(DatabaseUtil.java:136)
>      [java]     at
> org.ofbiz.entity.jdbc.DatabaseUtil.checkDb(DatabaseUtil.java:125)
>      [java]     at
> org.ofbiz.entity.datasource.GenericDAO.checkDb(GenericDAO.java:1087)
>      [java]     at
>
org.ofbiz.entity.datasource.GenericHelperDAO.checkDataSource(GenericHelperDA
> O.java:198)
>      [java]     at
> org.ofbiz.entity.GenericDelegator.<init>(GenericDelegator.java:185)
>      [java]     at
>
org.ofbiz.entity.GenericDelegator.getGenericDelegator(GenericDelegator.java:
> 117)
>      [java]     at
>
org.ofbiz.entityext.data.EntityDataLoadContainer.start(EntityDataLoadContain

> er.java:194)
>      [java]     at
> org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:80)
>      [java]     at
> org.ofbiz.base.start.Start.startStartLoaders(Start.java:263)
>      [java]     at org.ofbiz.base.start.Start.startServer(Start.java:314)
>      [java]     at org.ofbiz.base.start.Start.start(Start.java:318)
>      [java]     at org.ofbiz.base.start.Start.main(Start.java:404)
>      [java] Java Result: 1
>
>
> Case Torres
> [hidden email]
>
>
>

Reply | Threaded
Open this post in threaded view
|

RE: java exception in thread error help?

CaseT
In reply to this post by BJ Freeman
BJ,

I did download version3 again so that, actually, might have fixed it as
well.

Thanks, Case

-----Original Message-----
From: BJ Freeman [mailto:[hidden email]]
Sent: Monday, November 19, 2007 5:48 PM
To: [hidden email]
Subject: Re: java exception in thread error help?

ant clean-all I don't believe starts ofbiz.
try download the jbc drivers again
maybe corrupt/

Case Torres sent the following on 11/19/2007 5:23 PM:

> UGH!!!
> Still getting the same error message.
> Runnning just ant and ant clean-all I didn't get any error messages.
> Then ran ant run-install and still getting the same error message.
>
> -----Original Message-----
> From: skip@thedevers [mailto:[hidden email]]
> Sent: Monday, November 19, 2007 5:10 PM
> To: [hidden email]; [hidden email]
> Subject: RE: java exception in thread error help?
>
> I am betting you have a 1.4 compiled version of something somewhere.  Try
> running just ant first, and if that doesnt work, try running ant clean-all
> and then ant.  If you are using postgres, clean-all will not wipe out your
> data files, but ant run-install-seed will wipe out your seed data (like
> starting invoice numbers and such things which may or may not be
important).

>
>
> Skip
>
> -----Original Message-----
> From: Case Torres [mailto:[hidden email]]
> Sent: Monday, November 19, 2007 4:23 PM
> To: [hidden email]
> Subject: java exception in thread error help?
>
>
> Hi,
>
> I'm trying to get my production server up and running with OFBiz Release
4.0

> Centos 4
> Postgres 8.2.4
> Java: jdk-1_5_0_14-linux-i586
> In framework/entity/lib/jdbc I have the following drivers:
> postgresql-8.2-506.jdbc3.jar
> postgresql-8.2-506.jdbc4.jar
>
> I'm getting the following error message when running  ant run-install
>
> [java] Exception in thread "main" java.lang.UnsupportedClassVersionError:
> Bad version number in .class file
>      [java]     at java.lang.ClassLoader.defineClass1(Native Method)
>      [java]     at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
>      [java]     at
> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
>      [java]     at
> java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
>      [java]     at
> java.net.URLClassLoader.access$100(URLClassLoader.java:56)
>      [java]     at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
>      [java]     at java.security.AccessController.doPrivileged(Native
> Method)
>      [java]     at
> java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>      [java]     at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>      [java]     at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
>      [java]     at
>
org.ofbiz.base.util.CachedClassLoader.loadClass(CachedClassLoader.java:179)
>      [java]     at
>
org.ofbiz.base.util.CachedClassLoader.loadClass(CachedClassLoader.java:154)
>      [java]     at
> java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
>      [java]     at java.lang.Class.forName0(Native Method)
>      [java]     at java.lang.Class.forName(Class.java:242)
>      [java]     at
>
org.ofbiz.minerva.pool.jdbc.xa.wrapper.XADataSourceImpl.loadDriver(XADataSou
> rceImpl.java:167)
>      [java]     at
>
org.ofbiz.minerva.pool.jdbc.xa.wrapper.XADataSourceImpl.getXAConnection(XADa
> taSourceImpl.java:222)
>      [java]     at
>
org.ofbiz.minerva.pool.jdbc.xa.XAConnectionFactory.createObject(XAConnection

> Factory.java:367)
>      [java]     at
> org.ofbiz.minerva.pool.ObjectPool.createNewObject(ObjectPool.java:942)
>      [java]     at
> org.ofbiz.minerva.pool.ObjectPool.getObject(ObjectPool.java:630)
>      [java]     at
> org.ofbiz.minerva.pool.ObjectPool.fillToMin(ObjectPool.java:961)
>      [java]     at
> org.ofbiz.minerva.pool.ObjectPool.initialize(ObjectPool.java:533)
>      [java]     at
>
org.ofbiz.minerva.pool.jdbc.xa.XAPoolDataSource.initialize(XAPoolDataSource.
> java:313)
>      [java]     at
>
org.ofbiz.minerva.pool.jdbc.xa.XAPoolDataSource.getConnection(XAPoolDataSour
> ce.java:349)
>      [java]     at
>
org.ofbiz.entity.transaction.MinervaConnectionFactory.getConnection(MinervaC
> onnectionFactory.java:112)
>      [java]     at
>
org.ofbiz.geronimo.GeronimoTransactionFactory.getConnection(GeronimoTransact
> ionFactory.java:94)
>      [java]     at
>
org.ofbiz.entity.transaction.TransactionFactory.getConnection(TransactionFac
> tory.java:95)
>      [java]     at
>
org.ofbiz.entity.jdbc.ConnectionFactory.getConnection(ConnectionFactory.java

> :72)
>      [java]     at
> org.ofbiz.entity.jdbc.DatabaseUtil.getConnection(DatabaseUtil.java:98)
>      [java]     at
> org.ofbiz.entity.jdbc.DatabaseUtil.getTableNames(DatabaseUtil.java:827)
>      [java]     at
> org.ofbiz.entity.jdbc.DatabaseUtil.checkDb(DatabaseUtil.java:136)
>      [java]     at
> org.ofbiz.entity.jdbc.DatabaseUtil.checkDb(DatabaseUtil.java:125)
>      [java]     at
> org.ofbiz.entity.datasource.GenericDAO.checkDb(GenericDAO.java:1087)
>      [java]     at
>
org.ofbiz.entity.datasource.GenericHelperDAO.checkDataSource(GenericHelperDA
> O.java:198)
>      [java]     at
> org.ofbiz.entity.GenericDelegator.<init>(GenericDelegator.java:185)
>      [java]     at
>
org.ofbiz.entity.GenericDelegator.getGenericDelegator(GenericDelegator.java:
> 117)
>      [java]     at
>
org.ofbiz.entityext.data.EntityDataLoadContainer.start(EntityDataLoadContain

> er.java:194)
>      [java]     at
> org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:80)
>      [java]     at
> org.ofbiz.base.start.Start.startStartLoaders(Start.java:263)
>      [java]     at org.ofbiz.base.start.Start.startServer(Start.java:314)
>      [java]     at org.ofbiz.base.start.Start.start(Start.java:318)
>      [java]     at org.ofbiz.base.start.Start.main(Start.java:404)
>      [java] Java Result: 1
>
>
> Case Torres
> [hidden email]
>
>
>
>
>
>

Reply | Threaded
Open this post in threaded view
|

RE: java exception in thread error help?

SkipDever
In reply to this post by CaseT
Case

If you ran ant clean-all and then ant, you rebuilt everything.  Assuming
that ant builds with jvm 1.5, you should run with jvm 1.5 without stress.

What does "java -version" tell you?

Try pointing JAVA_HOME to the exact spot where the jvm is located, eg. set
JAVA_HOME=XXX where XXX is something link /usr/bin/jdk-1_5_0_14-linux-i586.

Is jdk-1_5_0_14-linux-i586 mapped to somewhere you don't expect?  This
"UnsupportedClassVersionError" is without question an attempt by the JVM to
run a class built with an older version.  It could be an external jar file
or something in Ofbiz.

Do you have a classpath setting pointing to an old jar file?

Lots of things to look at

Skip

-----Original Message-----
From: Case Torres [mailto:[hidden email]]
Sent: Monday, November 19, 2007 5:23 PM
To: [hidden email]
Subject: RE: java exception in thread error help?


UGH!!!
Still getting the same error message.
Runnning just ant and ant clean-all I didn't get any error messages.
Then ran ant run-install and still getting the same error message.

-----Original Message-----
From: skip@thedevers [mailto:[hidden email]]
Sent: Monday, November 19, 2007 5:10 PM
To: [hidden email]; [hidden email]
Subject: RE: java exception in thread error help?

I am betting you have a 1.4 compiled version of something somewhere.  Try
running just ant first, and if that doesnt work, try running ant clean-all
and then ant.  If you are using postgres, clean-all will not wipe out your
data files, but ant run-install-seed will wipe out your seed data (like
starting invoice numbers and such things which may or may not be important).


Skip

-----Original Message-----
From: Case Torres [mailto:[hidden email]]
Sent: Monday, November 19, 2007 4:23 PM
To: [hidden email]
Subject: java exception in thread error help?


Hi,

I'm trying to get my production server up and running with OFBiz Release 4.0
Centos 4
Postgres 8.2.4
Java: jdk-1_5_0_14-linux-i586
In framework/entity/lib/jdbc I have the following drivers:
postgresql-8.2-506.jdbc3.jar
postgresql-8.2-506.jdbc4.jar

I'm getting the following error message when running  ant run-install

[java] Exception in thread "main" java.lang.UnsupportedClassVersionError:
Bad version number in .class file
     [java]     at java.lang.ClassLoader.defineClass1(Native Method)
     [java]     at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
     [java]     at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
     [java]     at
java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
     [java]     at
java.net.URLClassLoader.access$100(URLClassLoader.java:56)
     [java]     at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
     [java]     at java.security.AccessController.doPrivileged(Native
Method)
     [java]     at
java.net.URLClassLoader.findClass(URLClassLoader.java:188)
     [java]     at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
     [java]     at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
     [java]     at
org.ofbiz.base.util.CachedClassLoader.loadClass(CachedClassLoader.java:179)
     [java]     at
org.ofbiz.base.util.CachedClassLoader.loadClass(CachedClassLoader.java:154)
     [java]     at
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
     [java]     at java.lang.Class.forName0(Native Method)
     [java]     at java.lang.Class.forName(Class.java:242)
     [java]     at
org.ofbiz.minerva.pool.jdbc.xa.wrapper.XADataSourceImpl.loadDriver(XADataSou
rceImpl.java:167)
     [java]     at
org.ofbiz.minerva.pool.jdbc.xa.wrapper.XADataSourceImpl.getXAConnection(XADa
taSourceImpl.java:222)
     [java]     at
org.ofbiz.minerva.pool.jdbc.xa.XAConnectionFactory.createObject(XAConnection
Factory.java:367)
     [java]     at
org.ofbiz.minerva.pool.ObjectPool.createNewObject(ObjectPool.java:942)
     [java]     at
org.ofbiz.minerva.pool.ObjectPool.getObject(ObjectPool.java:630)
     [java]     at
org.ofbiz.minerva.pool.ObjectPool.fillToMin(ObjectPool.java:961)
     [java]     at
org.ofbiz.minerva.pool.ObjectPool.initialize(ObjectPool.java:533)
     [java]     at
org.ofbiz.minerva.pool.jdbc.xa.XAPoolDataSource.initialize(XAPoolDataSource.
java:313)
     [java]     at
org.ofbiz.minerva.pool.jdbc.xa.XAPoolDataSource.getConnection(XAPoolDataSour
ce.java:349)
     [java]     at
org.ofbiz.entity.transaction.MinervaConnectionFactory.getConnection(MinervaC
onnectionFactory.java:112)
     [java]     at
org.ofbiz.geronimo.GeronimoTransactionFactory.getConnection(GeronimoTransact
ionFactory.java:94)
     [java]     at
org.ofbiz.entity.transaction.TransactionFactory.getConnection(TransactionFac
tory.java:95)
     [java]     at
org.ofbiz.entity.jdbc.ConnectionFactory.getConnection(ConnectionFactory.java
:72)
     [java]     at
org.ofbiz.entity.jdbc.DatabaseUtil.getConnection(DatabaseUtil.java:98)
     [java]     at
org.ofbiz.entity.jdbc.DatabaseUtil.getTableNames(DatabaseUtil.java:827)
     [java]     at
org.ofbiz.entity.jdbc.DatabaseUtil.checkDb(DatabaseUtil.java:136)
     [java]     at
org.ofbiz.entity.jdbc.DatabaseUtil.checkDb(DatabaseUtil.java:125)
     [java]     at
org.ofbiz.entity.datasource.GenericDAO.checkDb(GenericDAO.java:1087)
     [java]     at
org.ofbiz.entity.datasource.GenericHelperDAO.checkDataSource(GenericHelperDA
O.java:198)
     [java]     at
org.ofbiz.entity.GenericDelegator.<init>(GenericDelegator.java:185)
     [java]     at
org.ofbiz.entity.GenericDelegator.getGenericDelegator(GenericDelegator.java:
117)
     [java]     at
org.ofbiz.entityext.data.EntityDataLoadContainer.start(EntityDataLoadContain
er.java:194)
     [java]     at
org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:80)
     [java]     at
org.ofbiz.base.start.Start.startStartLoaders(Start.java:263)
     [java]     at org.ofbiz.base.start.Start.startServer(Start.java:314)
     [java]     at org.ofbiz.base.start.Start.start(Start.java:318)
     [java]     at org.ofbiz.base.start.Start.main(Start.java:404)
     [java] Java Result: 1


Case Torres
[hidden email]