-->
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.  [ 1 post ] 
Author Message
 Post subject: Class Loader problem with Oracle 10.2g
PostPosted: Thu Jul 02, 2009 11:29 am 
Newbie

Joined: Tue Jun 23, 2009 11:22 am
Posts: 1
Hi All,


I encounter a problem when going from MySql to Oracle 10.2g in my Eclipse RCP applicationExcepti.


The exception is below.

What is strange :

. when I use the version 9.2.x of Oracle thin driver, the exception is not thrown.
Unfortunately I need the "Get Metadata" functionnalities missing in this driver version.

. when I use the version 10.2.x (and Oracle102Dialect) I got the exception.


Any Idea ?

thanks in advance


Thomas

Initial SessionFactory creation failed.java.lang.IllegalAccessError: class sun.reflect.GeneratedSerializationConstructorAccessor1 cannot access its superclass sun.reflect.SerializationConstructorAccessorImpl

!ENTRY org.eclipse.ui 4 0 2009-06-22 11:57:30.485
!MESSAGE Unhandled event loop exception
!STACK 0
java.lang.ExceptionInInitializerError
at strip.database.hibernate.util.cHibernateUtil.<clinit>(cHibernateUtil.java:116)
at strip.database.hibernate.cDB.PrendCurseur(cDB.java:54)
at strip.DICO.Beans.Tables.cTwTableObjMetier.PrepareRemplissage(cTwTableObjMetier.java:119)
at strip.DICO.Beans.Tables.cTwTableQuery.InitRemplissage(cTwTableQuery.java:102)
at strip.DICO.Beans.Tables.cTwTableQuery.InitRemplissage(cTwTableQuery.java:97)
at strip.forms.dialogs.cRootSelectDialog.FillTheTable(cRootSelectDialog.java:59)
at strip.forms.dialogs.cRootSelectDialog.SetInitialState(cRootSelectDialog.java:46)
at strip.GUI.DIALOGS.cEclipseDialog.Epilogue(cEclipseDialog.java:358)
at strip.GUI.DIALOGS.cEclipseDialog.createButtonsForButtonBar(cEclipseDialog.java:351)
at strip.GUI.SIMULATEURS.cSimulateurDialog.createButtonsForButtonBar(cSimulateurDialog.java:158)
at org.eclipse.jface.dialogs.Dialog.createButtonBar(Dialog.java:672)
at org.eclipse.jface.dialogs.TrayDialog.createButtonBar(TrayDialog.java:164)
at org.eclipse.jface.dialogs.TitleAreaDialog.createContents(TitleAreaDialog.java:148)
at strip.GUI.DIALOGS.cEclipseDialog.createContents(cEclipseDialog.java:307)
at strip.GUI.SIMULATEURS.cSimulateurDialog.createContents(cSimulateurDialog.java:121)
at org.eclipse.jface.window.Window.create(Window.java:431)
at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1089)
at org.eclipse.jface.window.Window.open(Window.java:790)
at strip.GUI.DIALOGS.cEclipseDialog.Open(cEclipseDialog.java:200)
at twingtoolsforms.GUI.actions.cActionApercuDialog.run(cActionApercuDialog.java:43)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:583)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:500)
at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3823)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2384)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2348)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2200)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:495)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:490)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at twingtools.intro.Application.start(Application.java:20)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:386)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
at org.eclipse.equinox.launcher.Main.main(Main.java:1212)
Caused by: java.lang.IllegalAccessError: class sun.reflect.GeneratedSerializationConstructorAccessor1 cannot access its superclass sun.reflect.SerializationConstructorAccessorImpl
at sun.misc.Unsafe.defineClass(Native Method)
at sun.reflect.ClassDefiner.defineClass(Unknown Source)
at sun.reflect.MethodAccessorGenerator$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.reflect.MethodAccessorGenerator.generate(Unknown Source)
at sun.reflect.MethodAccessorGenerator.generateSerializationConstructor(Unknown Source)
at sun.reflect.ReflectionFactory.newConstructorForSerialization(Unknown Source)
at java.io.ObjectStreamClass.getSerializableConstructor(Unknown Source)
at java.io.ObjectStreamClass.access$1500(Unknown Source)
at java.io.ObjectStreamClass$2.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.io.ObjectStreamClass.<init>(Unknown Source)
at java.io.ObjectStreamClass.lookup(Unknown Source)
at java.io.ObjectStreamClass.initNonProxy(Unknown Source)
at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
at java.io.ObjectInputStream.readClassDesc(Unknown Source)
at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
at java.io.ObjectInputStream.readClassDesc(Unknown Source)
at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
at java.io.ObjectInputStream.readClassDesc(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
at oracle.sql.ConverterArchive.readObj(ConverterArchive.java:392)
at oracle.sql.converter.CharacterConverterJDBC.getInstance(CharacterConverterJDBC.java:105)
at oracle.sql.converter.CharacterConverterFactoryJDBC.make(CharacterConverterFactoryJDBC.java:45)
at oracle.sql.CharacterSetWithConverter.getInstance(CharacterSetWithConverter.java:92)
at oracle.sql.CharacterSetFactoryThin.make(CharacterSetFactoryThin.java:123)
at oracle.sql.CharacterSet.make(CharacterSet.java:440)
at oracle.jdbc.driver.DBConversion.<init>(DBConversion.java:159)
at oracle.jdbc.driver.T4CConnection.connect(T4CConnection.java:1057)
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:282)
at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:441)
at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:165)
at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:35)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:839)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at org.hibernate.connection.DriverManagerConnectionProvider.getConnection(DriverManagerConnectionProvider.java:110)
at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:84)
at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2009)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1292)
at strip.database.hibernate.util.cHibernateUtil.<clinit>(cHibernateUtil.java:96)
... 48 more


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

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.