-->
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: Hibern8IDE - java.lang.IllegalAccessError
PostPosted: Wed Aug 04, 2004 6:14 am 
Beginner
Beginner

Joined: Tue Apr 06, 2004 6:13 pm
Posts: 39
Location: Pune, Maharashtra, INDIA
Hi,

I had the hibernate-intro project in my eclipse end which was working fine.
(I guess gor that project from the web site it self)

Following directions on Hibern8IDE, simply copied the Hibern8IDE.jar into the hibern-intro project \lib with other libs like - forms, jgraph, lokks etc.

When I tried to execute Hibern8IDE was facing a variety of problems - but figured them out one by one -
The hibern-intro was using a old version of hibernate2.jar and was missing net.sf.cglib.core.KeyFactory. (which I located in cglib-2.0-rc2.jar)

But now I am stumped - java.lang.IllegalAccessError.

I get this when I click 'Apply' in the IDE. (After giving the hibernate.properties and the Team & Player hbm files - which I generated with XDoclet)

Any clues ?

The exception trace is:
Code:
JGoodies Looks: The ClearLook(tm) mode has been set to 'On'.
INFO : 2004-08-04 15:27:40,948: Environment: Hibernate 2.1.2
INFO : 2004-08-04 15:27:41,041: Environment: loaded properties from resource hibernate.properties: {hibernate.connection.username=JEEVAN, hibernate.connection.password=jeevan, hibernate.cglib.use_reflection_optimizer=true, hibernate.dialect=net.sf.hibernate.dialect.Oracle9Dialect, hibernate.connection.url=jdbc:oracle:thin:@pth-pc0440:1521:FISERV, hibernate.show_sql=true, hibernate.connection.driver_class=oracle.jdbc.driver.OracleDriver}
INFO : 2004-08-04 15:27:41,041: Environment: using CGLIB reflection optimizer
INFO : 2004-08-04 15:27:41,041: Configuration: Mapping file: X:\Sandbox\hibernate_intro\build\example\Player.hbm.xml
INFO : 2004-08-04 15:27:41,635: Binder: Mapping class: example.Player -> PLAYERS
INFO : 2004-08-04 15:27:41,729: Configuration: Mapping file: X:\Sandbox\hibernate_intro\build\example\Team.hbm.xml
INFO : 2004-08-04 15:27:41,776: Binder: Mapping class: example.Team -> Teams
INFO : 2004-08-04 15:27:41,791: Configuration: processing one-to-many association mappings
INFO : 2004-08-04 15:27:41,791: Binder: Mapping collection: example.Team.players -> PLAYERS
INFO : 2004-08-04 15:27:41,791: Configuration: processing one-to-one association property references
INFO : 2004-08-04 15:27:41,791: Configuration: processing foreign key constraints
INFO : 2004-08-04 15:27:41,823: Dialect: Using dialect: net.sf.hibernate.dialect.Oracle9Dialect
INFO : 2004-08-04 15:27:41,823: SettingsFactory: Use outer join fetching: true
INFO : 2004-08-04 15:27:41,823: DriverManagerConnectionProvider: Using Hibernate built-in connection pool (not for production use!)
INFO : 2004-08-04 15:27:41,838: DriverManagerConnectionProvider: Hibernate connection pool size: 20
INFO : 2004-08-04 15:27:41,838: DriverManagerConnectionProvider: using driver: oracle.jdbc.driver.OracleDriver at URL: jdbc:oracle:thin:@pth-pc0440:1521:FISERV
INFO : 2004-08-04 15:27:41,838: DriverManagerConnectionProvider: connection properties: {user=JEEVAN, password=jeevan}
INFO : 2004-08-04 15:27:41,838: TransactionManagerLookupFactory: No TransactionManagerLookup configured (in JTA environment, use of process level read-write cache is not recommended)
INFO : 2004-08-04 15:27:42,276: SettingsFactory: Use scrollable result sets: true
INFO : 2004-08-04 15:27:42,276: SettingsFactory: Use JDBC3 getGeneratedKeys(): false
INFO : 2004-08-04 15:27:42,276: SettingsFactory: Optimize cache for minimal puts: false
INFO : 2004-08-04 15:27:42,276: SettingsFactory: echoing all SQL to stdout
INFO : 2004-08-04 15:27:42,276: SettingsFactory: Query language substitutions: {}
INFO : 2004-08-04 15:27:42,291: SettingsFactory: cache provider: net.sf.ehcache.hibernate.Provider
INFO : 2004-08-04 15:27:42,291: Configuration: instantiating and configuring caches
java.lang.IllegalAccessError
   at net.sf.cglib.core.ClassEmitter.setTarget(ClassEmitter.java:87)
   at net.sf.cglib.core.ClassEmitter.<init>(ClassEmitter.java:79)
   at net.sf.cglib.core.KeyFactory$Generator.generateClass(KeyFactory.java:197)
   at net.sf.cglib.core.DefaultGeneratorStrategy.generate(DefaultGeneratorStrategy.java:63)
   at net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:190)
   at net.sf.cglib.core.KeyFactory$Generator.create(KeyFactory.java:177)
   at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:149)
   at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:142)
   at net.sf.hibernate.impl.SessionFactoryImpl.<clinit>(SessionFactoryImpl.java:235)
   at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:750)
   at net.sf.hibern8ide.Hibern8IDE.initialize(Hibern8IDE.java:227)
   at net.sf.hibern8ide.Hibern8IDE.reconfig(Hibern8IDE.java:199)
   at net.sf.hibern8ide.Hibern8IDE$6.configurationChanged(Hibern8IDE.java:666)
   at net.sf.hibern8ide.ConfigurationUI$ApplyConfig.actionPerformed(ConfigurationUI.java:277)
   at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)
   at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839)
   at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
   at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
   at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:245)
   at java.awt.Component.processMouseEvent(Component.java:5100)
   at java.awt.Component.processEvent(Component.java:4897)
   at java.awt.Container.processEvent(Container.java:1569)
   at java.awt.Component.dispatchEventImpl(Component.java:3615)
   at java.awt.Container.dispatchEventImpl(Container.java:1627)
   at java.awt.Component.dispatchEvent(Component.java:3477)
   at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
   at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
   at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
   at java.awt.Container.dispatchEventImpl(Container.java:1613)
   at java.awt.Window.dispatchEventImpl(Window.java:1606)
   at java.awt.Component.dispatchEvent(Component.java:3477)
   at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
   at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
   at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
   at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)


_________________
thks
G1


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 04, 2004 10:57 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
hibern8ide is just creating a configuration the same way as your own program will do - check if you are using the correct and same libraries while running hibern8ide and your app......

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 05, 2004 5:50 am 
Beginner
Beginner

Joined: Tue Apr 06, 2004 6:13 pm
Posts: 39
Location: Pune, Maharashtra, INDIA
Yes I was facing the same error in my app.

Resolved it by
adding bsh-2.0b1.jar
and replacing cglib-asm.jar with cglib-2.0-rc2.jar

_________________
thks
G1


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.