Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » Missing descriptors
Missing descriptors [message #848951] Wed, 18 April 2012 18:39 Go to next message
Christian Eugster is currently offline Christian EugsterFriend
Messages: 193
Registered: July 2009
Location: St. Gallen Switzerland
Senior Member

I am using Eclipselink 2.1.3 in an rcp application (based on eclipse 3.7.2 indigo). I have a bundle that contains all entities with assigned annotions (@Entity etc.). The same bundle also has two service components, one is the persistence provider service the other is my connection service, that depends on the persistence provider service. Client bundles use my connection service to obtain entities. The bundle and services are configured as lazy loading. The headers

Meta-Persistence: META-INF/persistence.xml

are in the As classloader I set the bundles classloader in the properties.

When I start the application, the first time a database query is requested, the bundle starts, the persistence provider service is injected to my connection service and my connection service instantiates a entity manager factory and returns an entity manager.

Now my problem: the class descriptors of my persistence.xml seem not to be read by eclipselink. I get an exception (see at the end). I don't know what I am doing wrong. I set the logger to ALL and all what I see is, that the connection to the database is done, but no descriptors are deployed (there is no logging for that). Has anybody an idea, what is going wrong?

I really googled a lot but found no solution for that. I am working now two days to solve this problem, but ...

Thanks a lot!

Christian Eugster

P.S. The stacktrace is:

!ENTRY org.eclipse.ui.workbench 4 0 2012-04-18 20:23:31.233
!MESSAGE Unable to create view ID
Exception Description: Missing descriptor for [class].
Query: ReadAllQuery(referenceClass=FieldExtension )
Local Exception Stack:
Exception [EclipseLink-6007] (Eclipse Persistence Services - 2.1.3.v20110304-r9073): org.eclipse.persistence.exceptions.QueryException
Exception Description: Missing descriptor for [class].
Query: ReadAllQuery(referenceClass=FieldExtension )
at org.eclipse.persistence.exceptions.QueryException.descriptorIsMissing(
at org.eclipse.persistence.queries.ObjectLevelReadQuery.checkDescriptor(
at org.eclipse.persistence.queries.DatabaseQuery.execute(
at org.eclipse.persistence.queries.ObjectLevelReadQuery.execute(
at org.eclipse.persistence.queries.ReadAllQuery.execute(
at org.eclipse.persistence.queries.ObjectLevelReadQuery.executeInUnitOfWork(
at org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.internalExecuteQuery(
at org.eclipse.persistence.internal.sessions.AbstractSession.executeQuery(
at org.eclipse.persistence.internal.sessions.AbstractSession.executeQuery(
at org.eclipse.persistence.internal.sessions.AbstractSession.executeQuery(
at org.eclipse.persistence.internal.jpa.EJBQueryImpl.executeReadQuery(
at org.eclipse.persistence.internal.jpa.EJBQueryImpl.getResultList(
at org.eclipse.ui.internal.ViewReference.createPartHelper(
at org.eclipse.ui.internal.ViewReference.createPart(
at org.eclipse.ui.internal.WorkbenchPartReference.getPart(
at org.eclipse.ui.internal.Perspective.showView(
at org.eclipse.ui.internal.WorkbenchPage.busyShowView(
at org.eclipse.ui.internal.WorkbenchPage$
at org.eclipse.swt.custom.BusyIndicator.showWhile(
at org.eclipse.ui.internal.WorkbenchPage.showView(
at org.eclipse.ui.handlers.ShowViewHandler.openView(
at org.eclipse.ui.handlers.ShowViewHandler.execute(
at org.eclipse.ui.internal.handlers.HandlerProxy.execute(
at org.eclipse.core.commands.Command.executeWithChecks(
at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(
at org.eclipse.ui.internal.handlers.HandlerService.executeCommand(
at org.eclipse.ui.internal.handlers.SlaveHandlerService.executeCommand(
at org.eclipse.ui.menus.CommandContributionItem.handleWidgetSelection(
at org.eclipse.ui.menus.CommandContributionItem.access$19(
at org.eclipse.ui.menus.CommandContributionItem$5.handleEvent(
at org.eclipse.swt.widgets.EventTable.sendEvent(
at org.eclipse.swt.widgets.Widget.sendEvent(
at org.eclipse.swt.widgets.Display.runDeferredEvents(
at org.eclipse.swt.widgets.Display.readAndDispatch(
at org.eclipse.ui.internal.Workbench.runEventLoop(
at org.eclipse.ui.internal.Workbench.runUI(
at org.eclipse.ui.internal.Workbench.access$4(
at org.eclipse.ui.internal.Workbench$
at org.eclipse.core.databinding.observable.Realm.runWithDefault(
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(
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(
at org.eclipse.equinox.launcher.Main.basicRun(
at org.eclipse.equinox.launcher.Main.main(

Re: Missing descriptors [message #849850 is a reply to message #848951] Thu, 19 April 2012 13:57 Go to previous messageGo to next message
James Sutherland is currently offline James SutherlandFriend
Messages: 1939
Registered: July 2009
Location: Ottawa, Canada
Senior Member

Do you list the classes in the persistence.xml? I would try that.
It could be a class loader issue, in that the descriptors are there, but the classes in them are different than your application because they were loaded with a different loader.


James : Wiki : Book : Blog : Twitter
Re: Missing descriptors [message #850595 is a reply to message #849850] Fri, 20 April 2012 06:50 Go to previous message
Christian Eugster is currently offline Christian EugsterFriend
Messages: 193
Registered: July 2009
Location: St. Gallen Switzerland
Senior Member
Hi James,

all classes are listed in persistence.xml and the are in the same bundle as persistence.xml is. Some days before, the whole thing worked without any problems. Then I ported the bundle from 3.6.2 to 3.7.2 and since then I get that error. Any hints? Thank a lot!

Previous Topic:2.1.0 to 2.3.2
Next Topic:Outer Join with 3 tables is not working
Goto Forum:

Current Time: Thu Sep 24 13:07:20 GMT 2020

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

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

Back to the top