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)
The issue was the query language parser was expecting a space between the property and the open bracket. Aka a space between "customer" and "(".
Changed the parser to handle case where open bracket right beside the property.