Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Gemini » AbstractMethodError exception problem on query execution
AbstractMethodError exception problem on query execution [message #1423743] Mon, 15 September 2014 00:25 Go to next message
Denis Pavlov is currently offline Denis PavlovFriend
Messages: 2
Registered: September 2014
Junior Member
Hi!

I get such exception when try to execute query:

Exception in thread "Thread-24" java.lang.AbstractMethodError: ru.futurelink.mo.orm.mailer.MailServer._persistence_shallow_clone()Ljava/lang/Object;
	at org.eclipse.persistence.descriptors.copying.PersistenceEntityCopyPolicy.buildWorkingCopyClone(PersistenceEntityCopyPolicy.java:31)
	at org.eclipse.persistence.internal.descriptors.ObjectBuilder.instantiateWorkingCopyClone(ObjectBuilder.java:4005)
	at org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.cloneAndRegisterObject(UnitOfWorkImpl.java:1007)
	at org.eclipse.persistence.internal.descriptors.ObjectBuilder.buildWorkingCopyCloneNormally(ObjectBuilder.java:914)
	at org.eclipse.persistence.internal.descriptors.ObjectBuilder.buildObjectInUnitOfWork(ObjectBuilder.java:851)
	at org.eclipse.persistence.internal.descriptors.ObjectBuilder.buildObject(ObjectBuilder.java:734)
	at org.eclipse.persistence.internal.descriptors.ObjectBuilder.buildObject(ObjectBuilder.java:688)
	at org.eclipse.persistence.queries.ObjectLevelReadQuery.buildObject(ObjectLevelReadQuery.java:795)
	at org.eclipse.persistence.queries.ReadAllQuery.registerResultInUnitOfWork(ReadAllQuery.java:890)
	at org.eclipse.persistence.queries.ReadAllQuery.executeObjectLevelReadQuery(ReadAllQuery.java:509)
	at org.eclipse.persistence.queries.ObjectLevelReadQuery.executeDatabaseQuery(ObjectLevelReadQuery.java:1168)
	at org.eclipse.persistence.queries.DatabaseQuery.execute(DatabaseQuery.java:899)
	at org.eclipse.persistence.queries.ObjectLevelReadQuery.execute(ObjectLevelReadQuery.java:1127)
	at org.eclipse.persistence.queries.ReadAllQuery.execute(ReadAllQuery.java:403)
	at org.eclipse.persistence.queries.ObjectLevelReadQuery.executeInUnitOfWork(ObjectLevelReadQuery.java:1215)
	at org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.internalExecuteQuery(UnitOfWorkImpl.java:2896)
	at org.eclipse.persistence.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1793)
	at org.eclipse.persistence.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1775)
	at org.eclipse.persistence.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1740)
	at org.eclipse.persistence.internal.jpa.QueryImpl.executeReadQuery(QueryImpl.java:258)
	at org.eclipse.persistence.internal.jpa.QueryImpl.getResultList(QueryImpl.java:469)
	at ru.futurelink.mo.mailer.MailerThread.loadMailServerProps(MailerThread.java:61)
	at ru.futurelink.mo.mailer.MailerThread.sendFirstMessage(MailerThread.java:123)
	at ru.futurelink.mo.mailer.MailerThread.run(MailerThread.java:95)

But the targeting class was woven by Gemini:

Gemini WeavingHookTransformer.weave() called on class ru.futurelink.mo.orm.mailer.MailServer
ru.futurelink.mo.orm.mailer.MailServer woven by WeavingHookTransformer


This exception was floating, but now it constantly repeats.

>> Using Gemini 1.2.0M1, EclipseLink 2.5.1 <<

Could anyone help me, please?
Re: AbstractMethodError exception problem on query execution [message #1424185 is a reply to message #1423743] Mon, 15 September 2014 16:04 Go to previous messageGo to next message
Michael Keith is currently offline Michael KeithFriend
Messages: 243
Registered: July 2009
Senior Member
Hi Denis,

I haven't seen this one before. What happens if you do static weaving?

-Mike
Re: AbstractMethodError exception problem on query execution [message #1428246 is a reply to message #1424185] Sun, 21 September 2014 14:28 Go to previous messageGo to next message
Denis Pavlov is currently offline Denis PavlovFriend
Messages: 2
Registered: September 2014
Junior Member
Hi, Michael!

Static weaving works great for now. But what may be the reason of such behaviour with dynamic veawing?
I must explain what i'm doing:

- i created one bundle (call it main ORM bundle), it contains persistence.xml
- and created one fragment (call it application ORM bundle), it contains mapping file entities.xml.

Fragment of ORM extends classpath of main bundle and so i get reusable ORM for different projects. It worked until recently.
Re: AbstractMethodError exception problem on query execution [message #1434138 is a reply to message #1428246] Mon, 29 September 2014 18:30 Go to previous message
Michael Keith is currently offline Michael KeithFriend
Messages: 243
Registered: July 2009
Senior Member
It may be a race condition having to do with resolving, weaving and the fragment.
Entities are not supposed to be in fragments, only in the main persistence bundle jar.
Previous Topic:Can someone share a working target run-time setup?
Next Topic:Gemini VS Eclipse Link
Goto Forum:
  


Current Time: Sun Nov 18 22:22:43 GMT 2018

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

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

Back to the top