Bug 183 : .RuntimeException: Error getting BeanDescriptor for path customer(id,name) from ...
Priority 
High
Reported Version 
 
Logged By 
Rob
Status 
Fixed
Fixed Version 
2.3.0
Assigned To 
 
Product 
Ebean - core
Duplicate Of 
 
Created 
30/11/2009
Updated 
30/11/2009
Type 
Bug
 
Attachments 
No attachments

java.lang.RuntimeException: Error getting BeanDescriptor for path customer(id,name) from com.avaje.tests.model.basic.Order
at com.avaje.ebean.server.deploy.BeanDescriptor.getBeanDescriptor(BeanDescriptor.java:1185)
at com.avaje.ebean.server.querydefn.OrmQueryDetail.setDefaultSelectClause(OrmQueryDetail.java:256)
at com.avaje.ebean.server.querydefn.DefaultOrmQuery.setDefaultSelectClause(DefaultOrmQuery.java:700)
at com.avaje.ebean.server.core.DefaultServer.createQueryRequest(DefaultServer.java:999)
at com.avaje.ebean.server.core.DefaultServer.findList(DefaultServer.java:1279)
at com.avaje.ebean.server.querydefn.DefaultOrmQuery.findList(DefaultOrmQuery.java:740)
at com.avaje.tests.query.TestNoSpaceBracket.test(TestNoSpaceBracket.java:17)
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 02 Dec 06:11
Issue

The issue was the query language parser was expecting a space between the property and the open bracket. Aka a space between "customer" and "(".

Rob 02 Dec 06:12
Fixed in HEAD

Changed the parser to handle case where open bracket right beside the property.

woResponse

Upload a file