Bug 214 : java.lang.NoSuchMethodError ... with transient modifier on inherited class
Priority 
High
Reported Version 
 
Logged By 
Rob
Status 
Fixed
Fixed Version 
2.4.0
Assigned To 
 
Product 
Ebean - core
Duplicate Of 
 
Created 
06/02/2010
Updated 
06/02/2010
Type 
Bug
 
Attachments 
No attachments

java.lang.NoSuchMethodError: com.avaje.tests.model.basic.Car._ebean_getni_testTransient()Ljava/lang/String;
at com.avaje.tests.model.basic.Car._ebean_createCopy(Car.java:1)
at com.avaje.ebean.bean.EntityBeanIntercept.createOldValues(EntityBeanIntercept.java:559)
at com.avaje.ebean.bean.EntityBeanIntercept.addDirty(EntityBeanIntercept.java:695)
at com.avaje.ebean.bean.EntityBeanIntercept.preSetter(EntityBeanIntercept.java:713)
at com.avaje.tests.model.basic.Vehicle._ebean_set_licenseNumber(Vehicle.java:1)
at com.avaje.tests.model.basic.Vehicle.setLicenseNumber(Vehicle.java:30)
at com.avaje.tests.inheritance.TestInheritInsert.testQuery(TestInheritInsert.java:57)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at junit.framework.TestCase.runTest(TestCase.java:168)
at junit.framework.TestCase.runBare(TestCase.java:134)
at junit.framework.TestResult$1.protect(TestResult.java:110)
at junit.framework.TestResult.runProtected(TestResult.java:128)
at junit.framework.TestResult.run(TestResult.java:113)
at junit.framework.TestCase.run(TestCase.java:124)
at junit.framework.TestSuite.runTest(TestSuite.java:232)
at junit.framework.TestSuite.run(TestSuite.java:227)
at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:81)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:46)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)

 
Rob 06 Feb 05:58
This is an enhancement issue

This is an enhancement issue. Using the @Transient annotation is fine (workaround) but if a field is marked with the transient modifier we are getting the stack trace above.

Rob 09 Feb 02:36
Fixed in HEAD.

This is fixed in HEAD.

It also means there will be a new Eclipse IDE Enhancer plugin with the next release.

woResponse

Upload a file