Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Class Loader pbs with Hibernate and Oracle 10.2
Class Loader pbs with Hibernate and Oracle 10.2 [message #336607] Thu, 25 June 2009 03:31
Eclipse UserFriend
Originally posted by: thomas.wing.wanadoo.fr

Hi All,


I encounter a problem when going from MySql to Oracle 10.2g.


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(cTwTab leQuery.java:102)
at
strip.DICO.Beans.Tables.cTwTableQuery.InitRemplissage(cTwTab leQuery.java:97)
at
strip.forms.dialogs.cRootSelectDialog.FillTheTable(cRootSele ctDialog.java:59)
at
strip.forms.dialogs.cRootSelectDialog.SetInitialState(cRootS electDialog.java:46)
at strip.GUI.DIALOGS.cEclipseDialog.Epilogue(cEclipseDialog.jav a:358)
at
strip.GUI.DIALOGS.cEclipseDialog.createButtonsForButtonBar(c EclipseDialog.java:351)
at
strip.GUI.SIMULATEURS.cSimulateurDialog.createButtonsForButt onBar(cSimulateurDialog.java:158)
at org.eclipse.jface.dialogs.Dialog.createButtonBar(Dialog.java :672)
at
org.eclipse.jface.dialogs.TrayDialog.createButtonBar(TrayDia log.java:164)
at
org.eclipse.jface.dialogs.TitleAreaDialog.createContents(Tit leAreaDialog.java:148)
at
strip.GUI.DIALOGS.cEclipseDialog.createContents(cEclipseDial og.java:307)
at
strip.GUI.SIMULATEURS.cSimulateurDialog.createContents(cSimu lateurDialog.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:20 0)
at
twingtoolsforms.GUI.actions.cActionApercuDialog.run(cActionA percuDialog.java:43)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:498 )
at
org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:583)
at
org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:500)
at
org.eclipse.jface.action.ActionContributionItem$5.handleEven t(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.ja va:3823)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3422)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2384)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2348)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 00)
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(Work bench.java:490)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at twingtools.intro.Application.start(Application.java:20)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.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(EclipseS tarter.java:386)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.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.generateSerializationCon structor(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:39 2)
at
oracle.sql.converter.CharacterConverterJDBC.getInstance(Char acterConverterJDBC.java:105)
at
oracle.sql.converter.CharacterConverterFactoryJDBC.make(Char acterConverterFactoryJDBC.java:45)
at
oracle.sql.CharacterSetWithConverter.getInstance(CharacterSe tWithConverter.java:92)
at
oracle.sql.CharacterSetFactoryThin.make(CharacterSetFactoryT hin.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:28 2)
at
oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:441)
at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:165)
at
oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDrive rExtension.java:35)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:83 9)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at
org.hibernate.connection.DriverManagerConnectionProvider.get Connection(DriverManagerConnectionProvider.java:110)
at
org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFact ory.java:84)
at
org.hibernate.cfg.Configuration.buildSettings(Configuration. java:2009)
at
org.hibernate.cfg.Configuration.buildSessionFactory(Configur ation.java:1292)
at
strip.database.hibernate.util.cHibernateUtil.<clinit>(cHibernateUtil.java:96)
... 48 more
Previous Topic:Treeview with Documents as node
Next Topic:[Job API] Dialog doesn't show up.
Goto Forum:
  


Current Time: Wed Nov 26 20:52:37 GMT 2014

Powered by FUDForum. Page generated in 0.02892 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software