-
-
Notifications
You must be signed in to change notification settings - Fork 259
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ArrayIndexOutOfBoundsException when using Java 8 language features #187
Comments
Is it related to jboss-javassist/javassist#13? |
I had the exactly same problem when trying to load "avaje-ebeanorm-agent-4.1.6.jar" using command line "java -javaagent:/path/...". Then I found that in all the test cases (https://github.com/ebean-orm/avaje-ebeanorm) they load the agent jar using a loader "avaje-agentloader.1.1.1.jar" instead. I download this jar, and add |
i just encountered this today w/ the maven enhancer and the eclipse plugin. |
I have reproduced the issue. Looking at the fix via upgrading the underlying ASM version used by the agent to 5.0.3 |
Fixed in version 4.1.8 of the agent .. and as such also fixed in the associated version 4.1.8 of the maven enhancer plugin. |
Thanks, that fixed that exception! Unfortunately a new one seems to have popped up:
It looks like the problem is that MethodVisitor.visitAnnotation() performs a null check on |
Ok thanks I'll look into it. You are using 4.1.8 agent right? I'm not quite sure why it is not getting caught in tests (on the agent or Cheers, Rob. On 24 October 2014 10:21, Bo Gotthardt notifications@github.com wrote:
|
Yes, running it via IntelliJ with VM options:
When starting my application the error is triggered by these annotations:
None of which I'm using as entity beans, and none of which seem to have anything in particular in common. If there were any larger problems I'd assume that way more annotations would be throwing errors, but it's only these. |
Great thanks. On 24 October 2014 11:12, Bo Gotthardt notifications@github.com wrote:
|
i guess i'll hold off on updating the eclipse plugin until this is resolved. |
I reproduced the issue and it is fixed in 4.1.9 of the agent which has just Cheers, Rob. On 24 October 2014 13:42, Jae Gangemi notifications@github.com wrote:
|
Great! It works fine for my project now. |
great news! i've asked this before but have never gotten a response... what do you want to do about making the plugin available? would it just be easier if i took it over completely and you just throw a link to it somewhere? |
I think it would be best if I put the eclipse plugin git repo with the I have copied the repo over to Cheers, Rob. On 29 October 2014 02:50, Jae Gangemi notifications@github.com wrote:
|
ok - i'll make the changes tonight and create a pull request that you can merge. |
com.avaje.ebean.enhance.asm.ClassReader seems to throw ArrayIndexOutOfBoundsExceptions when it encounters Java 8 language features. E.g. a
collection.forEach(obj::method);
call will throwThis happens with Ebean version 4.1.6, and an example can be seen by running TodoListApplication in https://github.com/Lugribossk/dropwizard-experiment .
The text was updated successfully, but these errors were encountered: