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)