-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: Hibernate on SunONE7
PostPosted: Thu Jun 10, 2004 9:43 am 
Newbie

Joined: Thu Jun 10, 2004 9:34 am
Posts: 6
Hi,
I'm trying to get jbpm2 ( http://www.jbpm.org/2/ ) work on SunONE7, I find on google for resolving transaction manager problem and I take this as good solution:

http://opensource.atlassian.com/project ... wse/HB-689

but (as write on the bottom of the page) I get an java.lang.IncompatibleClassChangeError exception,

this is a stacktrace:
....
[cut]
....
Caused by: org.jbpm.ConfigurationException: couldn't instantiate class org.jbpm.persistence.hibernate.HibernateJdbcSessionFactory (as configured in key jbpm.persistence.session.factory) : see stacktrace for more details
at org.jbpm.JbpmConfiguration.instantiate(JbpmConfiguration.java:419)
at org.jbpm.persistence.filemgr.DatabaseFileMgr.<init>(DatabaseFileMgr.java:13)
... 26 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
at org.jbpm.JbpmConfiguration.instantiate(JbpmConfiguration.java:405)
... 27 more
Caused by: java.lang.IncompatibleClassChangeError
at net.sf.hibernate.impl.SessionImpl.connect(SessionImpl.java:3168)
at net.sf.hibernate.impl.SessionImpl.connection(SessionImpl.java:3140)
at org.jbpm.persistence.hibernate.HibernateJdbcSessionFactory.initializeTables(HibernateJdbcSessionFactory.java:103)
at org.jbpm.persistence.hibernate.HibernateJdbcSessionFactory.<init>(HibernateJdbcSessionFactory.java:26)
... 32 more

As you can see, the problem seems to be an hibernate problem

Anyone have a solution for it or I skipped some post??

Tanks for the reply and sorry for my english ;)


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 14, 2004 11:35 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Sounds like a classloader issue.
Try to recompile Hibernate with the same JDK running Sun One

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 15, 2004 8:09 am 
Newbie

Joined: Thu Jun 10, 2004 9:34 am
Posts: 6
Do it, but without changes, I forgot to specify that jbpm2 has hibernate 2.1.1 boundled.

I've rebuilded last version (2.1.4) with the same version of JDK (1.4.2_04) that was used from Sun One, updated the war and the error is the same.

If I try to do what is written on the thread

http://opensource.atlassian.com/project ... wse/HB-689

I got an exception like those in first post during startup of webapp, else if I don't specify the class for transaction manager lookup I got this exception during execution of jbpm process:

ERROR [PersistentCollection] Failed to lazily initialize a collection
[15/Jun/2004:12:12:39] INFO (21803): CORE3282: stdout: caused by exception : net.sf.hibernate.MappingException
[15/Jun/2004:12:12:39] WARNING (21804): CORE3283: stderr: net.sf.hibernate.MappingException: No persister for: org.jbpm.model.definition.impl.TransitionImpl
[15/Jun/2004:12:12:39] WARNING (21804): CORE3283: stderr: at net.sf.hibernate.impl.SessionFactoryImpl.getPersister(SessionFactoryImpl.java:344)
[15/Jun/2004:12:12:39] WARNING (21804): CORE3283: stderr: at net.sf.hibernate.impl.SessionImpl.getClassPersister(SessionImpl.java:2686)
[15/Jun/2004:12:12:39] WARNING (21804): CORE3283: stderr: at net.sf.hibernate.impl.SessionImpl.doLoadByClass(SessionImpl.java:1984)
[15/Jun/2004:12:12:39] WARNING (21804): CORE3283: stderr: at net.sf.hibernate.impl.SessionImpl.internalLoad(SessionImpl.java:1949)
[15/Jun/2004:12:12:39] WARNING (21804): CORE3283: stderr: at net.sf.hibernate.type.ObjectType.resolve(ObjectType.java:121)
[15/Jun/2004:12:12:39] WARNING (21804): CORE3283: stderr: at net.sf.hibernate.type.ObjectType.resolveIdentifier(ObjectType.java:116)
[15/Jun/2004:12:12:39] WARNING (21804): CORE3283: stderr: at net.sf.hibernate.impl.SessionImpl.initializeEntity(SessionImpl.java:2201)
[15/Jun/2004:12:12:39] WARNING (21804): CORE3283: stderr: at net.sf.hibernate.loader.Loader.doQuery(Loader.java:240)
[15/Jun/2004:12:12:39] WARNING (21804): CORE3283: stderr: at net.sf.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:133)
[15/Jun/2004:12:12:39] WARNING (21804): CORE3283: stderr: at net.sf.hibernate.loader.Loader.loadCollection(Loader.java:915)
[15/Jun/2004:12:12:39] WARNING (21804): CORE3283: stderr: at net.sf.hibernate.loader.Loader.loadCollection(Loader.java:890)
[15/Jun/2004:12:12:39] WARNING (21804): CORE3283: stderr: at net.sf.hibernate.loader.OneToManyLoader.initialize(OneToManyLoader.java:93)
[15/Jun/2004:12:12:39] WARNING (21804): CORE3283: stderr: at net.sf.hibernate.collection.AbstractCollectionPersister.initialize(AbstractCollectionPersister.java:284)
[15/Jun/2004:12:12:39] WARNING (21804): CORE3283: stderr: at net.sf.hibernate.impl.SessionImpl.initializeCollection(SessionImpl.java:3264)
[15/Jun/2004:12:12:39] WARNING (21804): CORE3283: stderr: at net.sf.hibernate.collection.PersistentCollection.initialize(PersistentCollection.java:195)
[15/Jun/2004:12:12:39] WARNING (21804): CORE3283: stderr: at net.sf.hibernate.collection.PersistentCollection.read(PersistentCollection.java:71)
[15/Jun/2004:12:12:39] WARNING (21804): CORE3283: stderr: at net.sf.hibernate.collection.List.iterator(List.java:103)
[15/Jun/2004:12:12:39] WARNING (21804): CORE3283: stderr: at org.jbpm.model.definition.impl.ElementImpl.executeActions(ElementImpl.java:70)
...
[cut]
...
[15/Jun/2004:12:12:39] INFO (21803): CORE3282: stdout: 12:12:39,700 debug [HibernateSession] rolling back a jbpm transaction
[15/Jun/2004:12:12:39] INFO (21803): CORE3282: stdout: 12:12:39,701 debug [JDBCTransaction] rollback
[15/Jun/2004:12:12:39] WARNING (21804): CORE3283: stderr: net.sf.hibernate.LazyInitializationException: Failed to lazily initialize a collection
[15/Jun/2004:12:12:39] WARNING (21804): CORE3283: stderr: at net.sf.hibernate.collection.PersistentCollection.initialize(PersistentCollection.java:201)
[15/Jun/2004:12:12:39] WARNING (21804): CORE3283: stderr: at net.sf.hibernate.collection.PersistentCollection.read(PersistentCollection.java:71)
[15/Jun/2004:12:12:39] WARNING (21804): CORE3283: stderr: at net.sf.hibernate.collection.List.iterator(List.java:103)
[15/Jun/2004:12:12:39] WARNING (21804): CORE3283: stderr: at org.jbpm.model.definition.impl.ElementImpl.executeActions(ElementImpl.java:70)
...
[cut]
....
Caused by: net.sf.hibernate.MappingException: No persister for: org.jbpm.model.definition.impl.TransitionImpl
[15/Jun/2004:12:12:39] WARNING (21804): CORE3283: stderr: at net.sf.hibernate.impl.SessionFactoryImpl.getPersister(SessionFactoryImpl.java:344)
[15/Jun/2004:12:12:39] WARNING (21804): CORE3283: stderr: at net.sf.hibernate.impl.SessionImpl.getClassPersister(SessionImpl.java:2686)
[15/Jun/2004:12:12:39] WARNING (21804): CORE3283: stderr: at net.sf.hibernate.impl.SessionImpl.doLoadByClass(SessionImpl.java:1984)
[15/Jun/2004:12:12:39] WARNING (21804): CORE3283: stderr: at net.sf.hibernate.impl.SessionImpl.internalLoad(SessionImpl.java:1949)
[15/Jun/2004:12:12:39] WARNING (21804): CORE3283: stderr: at net.sf.hibernate.type.ObjectType.resolve(ObjectType.java:121)
[15/Jun/2004:12:12:39] WARNING (21804): CORE3283: stderr: at net.sf.hibernate.type.ObjectType.resolveIdentifier(ObjectType.java:116)
[15/Jun/2004:12:12:39] WARNING (21804): CORE3283: stderr: at net.sf.hibernate.impl.SessionImpl.initializeEntity(SessionImpl.java:2201)
[15/Jun/2004:12:12:39] WARNING (21804): CORE3283: stderr: at net.sf.hibernate.loader.Loader.doQuery(Loader.java:240)
[15/Jun/2004:12:12:39] WARNING (21804): CORE3283: stderr: at net.sf.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:133)
[15/Jun/2004:12:12:39] WARNING (21804): CORE3283: stderr: at net.sf.hibernate.loader.Loader.loadCollection(Loader.java:915)
[15/Jun/2004:12:12:39] WARNING (21804): CORE3283: stderr: at net.sf.hibernate.loader.Loader.loadCollection(Loader.java:890)
[15/Jun/2004:12:12:39] WARNING (21804): CORE3283: stderr: at net.sf.hibernate.loader.OneToManyLoader.initialize(OneToManyLoader.java:93)
[15/Jun/2004:12:12:39] WARNING (21804): CORE3283: stderr: at net.sf.hibernate.collection.AbstractCollectionPersister.initialize(AbstractCollectionPersister.java:284)
[15/Jun/2004:12:12:39] WARNING (21804): CORE3283: stderr: at net.sf.hibernate.impl.SessionImpl.initializeCollection(SessionImpl.java:3264)
[15/Jun/2004:12:12:39] WARNING (21804): CORE3283: stderr: at net.sf.hibernate.collection.PersistentCollection.initialize(PersistentCollection.java:195)
[15/Jun/2004:12:12:39] WARNING (21804): CORE3283: stderr: ... 43 more



Tanks for the help ;)


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.