0

Hibernate problem with new ZK 2.3

asked 2007-03-20 23:16:16 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=4217681

By: cyberjim84

Hi,

I just upgraded ZK from 2.3RC to 2.3.

When calling org.zkoss.zkplus.hibernate.HibernateUtil.getSessionFactory(), I get the following error :

INFO [Thread-5]
org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:161) >15> building session factory org.zkoss.zkplus.hibernate.HibernateUtil initSessionFactory:83
GRAVE: Initial SessionFactory creation failed.java.lang.NoClassDefFoundError:
org/objectweb/asm/CodeVisitor
org.zkoss.zk.ui.impl.UiEngineImpl execUpdate:598
GRAVE:
java.lang.ExceptionInInitializerError
at org.zkoss.zkplus.hibernate.HibernateUtil.initSessionFactory(HibernateUtil.ja
va:84)
at org.zkoss.zkplus.hibernate.HibernateUtil.getSessionFactory(HibernateUtil.jav
a:53)
[...]


It was working fine with ZK 2.3RC. I'm pretty sure I updated all the jars and I'm running the latest Hibernate (3.2).
I have no idea what the class org.objectweb.asm.CodeVisitor is.

Your help would be appreciated.

Thank You,

JM

delete flag offensive retag edit

3 Replies

Sort by ยป oldest newest

answered 2007-03-21 01:55:07 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=4217976

By: cyberjim84

I had to install the old asm.jar that I had from a previous ZK version to get this to work. The asm.jar bundled with ZK 2.3 is causing some problems.

My guess is that before ZK 2.3, it was using asm 1.x and now ZK 2.3 comes with asm 2.x. But, the class CodeVisitor doesn't exist in asm 2.x anymore.

Look at http://asm.objectweb.org/doc/tutorial-asm-2.0.html section "Changes in the ASM 2.0 API Since ASM 1.x", you will see "CodeVisitor into MethodVisitor".

link publish delete flag offensive edit

answered 2007-03-21 03:05:56 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=4218030

By: robbiecheng

please post this to bug-list,thx a lot

/robbie

link publish delete flag offensive edit

answered 2007-03-21 13:33:51 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=4219388

By: cyberjim84

Done, bug : 1685165

Thx.

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2007-03-20 23:16:16 +0800

Seen: 234 times

Last updated: Mar 21 '07

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More