Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [Teneo] org.hibernate.LazyInitializationException: illegal access to loading collection
[Teneo] org.hibernate.LazyInitializationException: illegal access to loading collection [message #616033] Mon, 31 March 2008 00:04
Calin Medianu is currently offline Calin MedianuFriend
Messages: 12
Registered: July 2009
Junior Member
Hi,

I am trying to go through the library tutorial, but I keep getting the
following error. Any ideas?

Thank you,

Calin


SEVERE: illegal access to loading collection
org.hibernate.LazyInitializationException: illegal access to loading
collection
at
org.hibernate.collection.AbstractPersistentCollection.initia lize(AbstractPersistentCollection.java:341)
at
org.hibernate.collection.AbstractPersistentCollection.read(A bstractPersistentCollection.java:86)
at
org.hibernate.collection.AbstractPersistentCollection.readSi ze(AbstractPersistentCollection.java:109)
at org.hibernate.collection.PersistentList.size(PersistentList. java:91)
at
org.eclipse.emf.common.util.DelegatingEList.delegateSize(Del egatingEList.java:231)
at
org.eclipse.emf.teneo.mapping.elist.PersistableEList.delegat eSize(PersistableEList.java:442)
at
org.eclipse.emf.common.util.DelegatingEList.size(DelegatingE List.java:222)
at
org.eclipse.emf.ecore.util.DelegatingEcoreEList.contains(Del egatingEcoreEList.java:447)
at org.eclipse.emf.edit.command.AddCommand.prepare(AddCommand.j ava:335)
at
org.eclipse.emf.common.command.AbstractCommand.canExecute(Ab stractCommand.java:114)
at
org.eclipse.emf.edit.command.AbstractOverrideableCommand.doC anExecute(AbstractOverrideableCommand.java:118)
at
org.eclipse.emf.edit.command.AbstractOverrideableCommand.can Execute(AbstractOverrideableCommand.java:111)
at
org.eclipse.emf.common.command.CommandWrapper.prepare(Comman dWrapper.java:169)
at
org.eclipse.emf.common.command.AbstractCommand.canExecute(Ab stractCommand.java:114)
at
org.eclipse.emf.edit.ui.action.StaticSelectionCommandAction. configureAction(StaticSelectionCommandAction.java:147)
at
org.eclipse.emf.edit.ui.action.CreateChildAction.<init>(CreateChildAction.java:53)
at
org.eclipse.emf.edit.ui.action.CreateChildAction.<init>(CreateChildAction.java:63)
at
org.eclipse.example.library.presentation.LibraryActionBarCon tributor.generateCreateChildActions(LibraryActionBarContribu tor.java:304)
at
org.eclipse.example.library.presentation.LibraryActionBarCon tributor.selectionChanged(LibraryActionBarContributor.java:2 80)
at
org.eclipse.example.library.presentation.LibraryEditor.setSe lection(LibraryEditor.java:1682)
at
org.eclipse.example.library.presentation.LibraryEditor$6.sel ectionChanged(LibraryEditor.java:877)
at org.eclipse.jface.viewers.Viewer$2.run(Viewer.java:162)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.core.runtime.Platform.run(Platform.java:857)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:46)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:19 9)
at org.eclipse.jface.viewers.Viewer.fireSelectionChanged(Viewer .java:160)
at
org.eclipse.jface.viewers.StructuredViewer.updateSelection(S tructuredViewer.java:2047)
at
org.eclipse.jface.viewers.StructuredViewer.handleSelect(Stru cturedViewer.java:1138)
at
org.eclipse.jface.viewers.StructuredViewer$4.widgetSelected( StructuredViewer.java:1168)
at
org.eclipse.jface.util.OpenStrategy.fireSelectionEvent(OpenS trategy.java:227)
at org.eclipse.jface.util.OpenStrategy.access$3(OpenStrategy.ja va:221)
at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrate gy.java:388)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3682)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3293)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2389)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 19)
at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
at
org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:289)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:461)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at
org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:106)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:169)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:106)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:76)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:363)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:176)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 508)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
at org.eclipse.equinox.launcher.Main.main(Main.java:1148)
Previous Topic:[Compare] build includes unzipped src directory
Next Topic:[Teneo] Backwards compatibility: changed default value of PersistenceOptions.JOIN_TABLE_FOR_NON_CONT
Goto Forum:
  


Current Time: Sat Jun 19 18:49:04 GMT 2021

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

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

Back to the top