Bug 192 : StringIndexOutOfBoundsException when using javaagent .... for enhancing
Priority 
High
Reported Version 
 
Logged By 
Rob
Status 
Fixed
Fixed Version 
2.3.0
Assigned To 
 
Product 
Ebean - core
Duplicate Of 
 
Created 
08/12/2009
Updated 
08/12/2009
Type 
Bug
 
Attachments 
No attachments

I am doing my first steps in Ebean. I tried to set up my application
to 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 out
of 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 is
not much I can do about it.

 
Rob 08 Dec 12:15
Fixed in HEAD

Fixed in HEAD but needs some integration testing.

woResponse

Upload a file