IDEA Code Coverage error
Hey folks,
I'm trying to setup some code coverae stuff to run as part of my builds and I've run into a problem. So far I've got two out of three projects setup and working sucessfully, but I am having some issues with the third one. When I run the build with IDEA configuured, I get a strange ArrayOutOfBounds Exception:
[15:25:29]: [<noname>] java.lang.reflect.InvocationTargetException
[15:25:29]: [<noname>] 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 org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:356)
at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:911)
at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:768)
Caused by: java.lang.ArrayIndexOutOfBoundsException: -4846
at com.intellij.rt.coverage.data.ClassData.touchLine(ClassData.java:85)
at com.intellij.rt.coverage.data.ProjectData.touchLine(ProjectData.java:185)
at com.swordciboodle.policelink.qprime.axisstubs.QPRIMESharedStub$CreateOccurrenceRequest.<init>(QPRIMESharedStub.java:60690)
at com.swordciboodle.policelink.delegates.CreateOccurrenceDelegate.<init>(CreateOccurrenceDelegate.java:20)
at com.swordciboodle.policelink.qprime.unittests.TestCreateOccurrence.<init>(TestCreateOccurrence.java:36)
at com.swordciboodle.policelink.qprime.unittests.AllTestsSuite.suite(AllTestsSuite.java:26)
... 7 more
[15:25:29]: [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
[15:25:29]: [junit] Null Test: Caused an ERROR
[15:25:29]: [junit] null
[15:25:29]: [junit] java.lang.reflect.InvocationTargetException
[15:25:29]: [junit] Caused by: java.lang.ArrayIndexOutOfBoundsException: -4846
[15:25:29]: [junit] at com.intellij.rt.coverage.data.ClassData.touchLine(ClassData.java:85)
[15:25:29]: [junit] at com.intellij.rt.coverage.data.ProjectData.touchLine(ProjectData.java:185)
[15:25:29]: [junit] at com.swordciboodle.policelink.qprime.axisstubs.QPRIMESharedStub$CreateOccurrenceRequest.<init>(QPRIMESharedStub.java:60690)
[15:25:29]: [junit] at com.swordciboodle.policelink.delegates.CreateOccurrenceDelegate.<init>(CreateOccurrenceDelegate.java:20)
[15:25:29]: [junit] at com.swordciboodle.policelink.qprime.unittests.TestCreateOccurrence.<init>(TestCreateOccurrence.java:36)
[15:25:29]: [junit] at com.swordciboodle.policelink.qprime.unittests.AllTestsSuite.suite(AllTestsSuite.java:26)
[15:25:33]: [junit] Test com.swordciboodle.policelink.qprime.unittests.AllTestsSuite FAILED
I've had a play around with restricting the packages that are included and seem to have tied it down to one package. The package in question contains some auto generated axis 2 classes. Are there any known issued which would cause this to occur and does anyone have any ideas on how I can resolve this?
Thanks,
Nick
Please sign in to leave a comment.
Hello Nick,
Thanks for the issue report. Please refer to http://youtrack.jetbrains.net/issue/IDEA-24809 for the future updates.
Kind regards,
Marina