NoSuchMethodError _persistence_set(Ljava/lang/String;Ljava/lang/Object;)V [message #557997] |
Thu, 09 September 2010 14:10  |
Eclipse User |
|
|
|
I'm using EclipseLink 2.1 on GlassFish 3.0.1. I'm building my project with Maven and everything seems to work very well. The issue I'm running into is the my project (projectB) is referencing another project (projectA), which contains a @MappedSuperclass. The entities within projectB extend the mapped superclass, which should not be an issue.
The problem arises when I run the application, I get the following exception message:
javax.ejb.TransactionRolledbackLocalException: Exception thrown from bean: java.lang.NoSuchMethodError: com.intraxinc.persistence.entity.UUIDEntityBean._persistence_set(Ljava/lang/String;Ljava/lang/Object;)V
at com.sun.ejb.containers.BaseContainer.checkExceptionClientTx(BaseContainer.java:4978)
I looked at the generated artifacts and I see classes for all my entities that are within my project (projectB) but none from projectA. Do I need to run the CanonicalModelProcessor and static weave on projectA as part of the build processes for these to be generated?
Thanks...
|
|
|
|
|
Re: NoSuchMethodError _persistence_set(Ljava/lang/String;Ljava/lang/Object;)V [message #558633 is a reply to message #558626] |
Mon, 13 September 2010 14:24  |
Eclipse User |
|
|
|
Hi James,
Thanks for the reply. It appears that it is not being weaved, as you said, because the class exists within another project. I'll try to create a test case that I can attach to a bug, so it can be investigated.
The interesting part of all this is that I modified by base project (projectA) by having EclipseLink weave the classes as part of the build. My initial thought was perhaps EclipseLink could weave the advise into the base project and it would no longer be an issue. Unfortunately, because the class is marked as @MappedSuperclass, the methods are not generated - the class is not weaved. But if I change the annotation from @MappedSuperclass to @Embeddable, then the class does get weaved as expected. I'm guessing this is a bug because if I add an Entity to this project that extends the @MappedSuperclass, everything generates as expected.
I'll work on getting a test case pulled together.
Thanks for the help...
|
|
|
Powered by
FUDForum. Page generated in 0.04423 seconds