This code means that DefaultAutoFetchManager will create a call stack with only the dummy element in it.
public static void main(String[] args) {
EbeanServer server = Ebean.getServer(null);
Query q2 = server.createQuery(User.class); server.findList(q2, null);}
This has the effect of making the AutoFetch query tuning not work for this scenario.
Typically you could hit this scenario when writing test code in main methods (which is a reasonable way to test).
The fix is to change DefaultAutoFetchManager so that it is smarter about trimming the stack elements.
We want to trim the avaje ebean parts of the stack trace so that the first element in the CallStack is application code.
Fixed in v1.0.3.