I am doing my first steps in Ebean. I tried to set up my applicationto use the javaagent, with no luck:
java.lang.reflect.InvocationTargetException 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 sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:323) at sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:338)Caused by: java.lang.StringIndexOutOfBoundsException: String index outof range: 0 at java.lang.String.charAt(String.java:686) at com.avaje.ebean.enhance.agent.UrlPathHelper.convertUrlString(UrlPathHelper.java:43) at com.avaje.ebean.enhance.agent.UrlPathHelper.convertToUrl(UrlPathHelper.java:32) at com.avaje.ebean.enhance.agent.UrlPathHelper.convertToUrl(UrlPathHelper.java:22) at com.avaje.ebean.enhance.agent.Transformer.parseClassPaths(Transformer.java:215) at com.avaje.ebean.enhance.agent.Transformer.(Transformer.java:41) at com.avaje.ebean.enhance.agent.Transformer.premain(Transformer.java:23) ... 6 more
Am I missing something? From looking at the code, it seems there isnot much I can do about it.
Fixed in HEAD but needs some integration testing.