Bug 262 : JDK 6 with Main getting java.lang.RuntimeException: StackTraceElement size 0?
Priority 
High
Reported Version 
 
Logged By 
Rob
Status 
Fixed
Fixed Version 
2.6.0
Assigned To 
 
Product 
Ebean - core
Duplicate Of 
 
Created 
31/03/2010
Updated 
31/03/2010
Type 
Bug
 
Attachments 
No attachments

Exception in thread "main" java.lang.RuntimeException: StackTraceElement size 0? stack: [java.lang.Thread.getStackTrace(Thread.java:1436), com.avaje.ebeaninternal.server.core.DefaultServer.createCallStack(DefaultServer.java:1842), com.avaje.ebeaninternal.server.core.DefaultServer.createQueryRequest(DefaultServer.java:1083), com.avaje.ebeaninternal.server.core.DefaultServer.findList(DefaultServer.java:1353), com.avaje.ebeaninternal.server.querydefn.DefaultOrmQuery.findList(DefaultOrmQuery.java:834), unittest.RefMain.main(RefMain.java:35)]
at com.avaje.ebeaninternal.server.core.DefaultServer.createCallStack(DefaultServer.java:1868)
at com.avaje.ebeaninternal.server.core.DefaultServer.createQueryRequest(DefaultServer.java:1083)
at com.avaje.ebeaninternal.server.core.DefaultServer.findList(DefaultServer.java:1353)
at com.avaje.ebeaninternal.server.querydefn.DefaultOrmQuery.findList(DefaultOrmQuery.java:834)
at unittest.RefMain.main(RefMain.java:35)

 
Rob 31 Mar 04:35
This is part of the profiling for Autofetch

And in JDK 6 the stack elements has reduced by 1 (we ignore the first x elements in the stack).

That is, Ebean needs to ignore a little bit less of the stack now.

You won't hit this unless you run in JDK6 with an Ebean query directly in a main method (and not nested further).

Rob 31 Mar 04:36
Fixed in HEAD

Fixed in HEAD. ( DefaultServer IGNORE_LEADING_ELEMENTS)

woResponse

Upload a file