Bug 368 : Should never be called on com.company.domain.AbstractBar.foo
Priority 
High
Reported Version 
 
Logged By 
Rob
Status 
Fixed
Fixed Version 
2.7.4
Assigned To 
 
Product 
Ebean - core
Duplicate Of 
 
Created 
13/06/2011
Updated 
13/06/2011
Type 
Bug
 
Attachments 
No attachments

java.lang.RuntimeException: set foo on [com.company.domain.AbstractBar] arg[[email protected]] type[com.company.domain.ConcreteBar] threw error
at com.avaje.ebeaninternal.server.deploy.BeanProperty.setValue(BeanProperty.java:827)
at com.avaje.ebeaninternal.server.query.SqlTreeNodeBean.load(SqlTreeNodeBean.java:354)
at com.avaje.ebeaninternal.server.query.SqlTreeNodeBean.load(SqlTreeNodeBean.java:308)
at com.avaje.ebeaninternal.server.query.CQuery.readRow(CQuery.java:550)
at com.avaje.ebeaninternal.server.query.CQuery.readBeanInternal(CQuery.java:584)
at com.avaje.ebeaninternal.server.query.CQuery.hasNextBean(CQuery.java:710)
at com.avaje.ebeaninternal.server.query.CQuery.readTheRows(CQuery.java:696)
at com.avaje.ebeaninternal.server.query.CQuery.readCollection(CQuery.java:663)
at com.avaje.ebeaninternal.server.query.CQueryEngine.findMany(CQueryEngine.java:203)
at com.avaje.ebeaninternal.server.query.DefaultOrmQueryEngine.findMany(DefaultOrmQueryEngine.java:96)
at com.avaje.ebeaninternal.server.core.OrmQueryRequest.findList(OrmQueryRequest.java:311)
at com.avaje.ebeaninternal.server.core.DefaultServer.findList(DefaultServer.java:1530)
at com.avaje.ebeaninternal.server.querydefn.DefaultOrmQuery.findList(DefaultOrmQuery.java:935)
at com.company.domain.TestInheritAbstract.testMe(TestInheritAbstract.java:43)
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:597)
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:49)
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)
Caused by: java.lang.RuntimeException: Should never be called on com.company.domain.AbstractBar.foo
at com.avaje.ebeaninternal.server.deploy.ReflectSetter$NeverCalled.set(ReflectSetter.java:82)
at com.avaje.ebeaninternal.server.deploy.BeanProperty.setValue(BeanProperty.java:817)
... 32 more

 
Rob 13 Jun 10:56
Test case from Per-Ingemar

Thanks.

Rob 14 Jun 11:16
Fixed in HEAD

Fixed in HEAD.

woResponse

Upload a file