You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by Case Torres <Ca...@casetorrestech.com> on 2007/11/20 01:23:21 UTC
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
case@casetorrestech.com
RE: java exception in thread error help?
Posted by Case Torres <Ca...@casetorrestech.com>.
I removed version 3 and I'm getting the same error message. :-(
-----Original Message-----
From: Adrian Crum [mailto:adrianc@hlmksw.com]
Sent: Monday, November 19, 2007 4:45 PM
To: user@ofbiz.apache.org
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
> case@casetorrestech.com
>
>
>
RE: java exception in thread error help?[SOLVED!]
Posted by Case Torres <Ca...@casetorrestech.com>.
Andrian,
You were right. Removing version 4 driver and leaving version3 solved the
problem!!.
Thanks much everyone!!
-----Original Message-----
From: Adrian Crum [mailto:adrianc@hlmksw.com]
Sent: Monday, November 19, 2007 4:45 PM
To: user@ofbiz.apache.org
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
> case@casetorrestech.com
>
>
>
Re: java exception in thread error help?
Posted by Adrian Crum <ad...@hlmksw.com>.
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
> case@casetorrestech.com
>
>
>
Re: java exception in thread error help?
Posted by BJ Freeman <bj...@free-man.net>.
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:bjfree@free-man.net]
> Sent: Monday, November 19, 2007 4:28 PM
> To: user@ofbiz.apache.org
> 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
>> case@casetorrestech.com
>>
>>
>>
>
>
>
>
RE: java exception in thread error help?
Posted by Case Torres <Ca...@casetorrestech.com>.
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:bjfree@free-man.net]
Sent: Monday, November 19, 2007 4:28 PM
To: user@ofbiz.apache.org
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
> case@casetorrestech.com
>
>
>
Re: java exception in thread error help?
Posted by BJ Freeman <bj...@free-man.net>.
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
> case@casetorrestech.com
>
>
>
RE: java exception in thread error help?
Posted by Case Torres <Ca...@casetorrestech.com>.
BJ,
I did download version3 again so that, actually, might have fixed it as
well.
Thanks, Case
-----Original Message-----
From: BJ Freeman [mailto:bjfree@free-man.net]
Sent: Monday, November 19, 2007 5:48 PM
To: user@ofbiz.apache.org
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:skip@thedevers.org]
> Sent: Monday, November 19, 2007 5:10 PM
> To: user@ofbiz.apache.org; CaseT@casetorrestech.com
> 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:Case@casetorrestech.com]
> Sent: Monday, November 19, 2007 4:23 PM
> To: user@ofbiz.apache.org
> 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
> case@casetorrestech.com
>
>
>
>
>
>
Re: java exception in thread error help?
Posted by BJ Freeman <bj...@free-man.net>.
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:skip@thedevers.org]
> Sent: Monday, November 19, 2007 5:10 PM
> To: user@ofbiz.apache.org; CaseT@casetorrestech.com
> 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:Case@casetorrestech.com]
> Sent: Monday, November 19, 2007 4:23 PM
> To: user@ofbiz.apache.org
> 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
> case@casetorrestech.com
>
>
>
>
>
>
RE: java exception in thread error help?
Posted by "skip@thedevers" <sk...@thedevers.org>.
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:Case@casetorrestech.com]
Sent: Monday, November 19, 2007 5:23 PM
To: user@ofbiz.apache.org
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:skip@thedevers.org]
Sent: Monday, November 19, 2007 5:10 PM
To: user@ofbiz.apache.org; CaseT@casetorrestech.com
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:Case@casetorrestech.com]
Sent: Monday, November 19, 2007 4:23 PM
To: user@ofbiz.apache.org
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
case@casetorrestech.com
RE: java exception in thread error help?
Posted by Case Torres <Ca...@casetorrestech.com>.
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:skip@thedevers.org]
Sent: Monday, November 19, 2007 5:10 PM
To: user@ofbiz.apache.org; CaseT@casetorrestech.com
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:Case@casetorrestech.com]
Sent: Monday, November 19, 2007 4:23 PM
To: user@ofbiz.apache.org
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
case@casetorrestech.com
RE: java exception in thread error help?
Posted by "skip@thedevers" <sk...@thedevers.org>.
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:Case@casetorrestech.com]
Sent: Monday, November 19, 2007 4:23 PM
To: user@ofbiz.apache.org
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
case@casetorrestech.com