2018 up to now | 2017 | 2016 | 2015 | 2014 | 2013 | 2012

Mailing List - Entries of 2012


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[QF-Test] Jacoco & QFTest: Exception


  • Subject: [QF-Test] Jacoco & QFTest: Exception
  • From: Ivan Boelle <ivan.boelle@?.com>
  • Date: Tue, 26 Jun 2012 18:21:37 +0200

Hello,

Our software recently switched to Java7 so we decided to throw away our code coverage tool (Emma) which was not 'really' supporting Java7.
We switched to Jacoco (related to Eclemma).

And I have a strange issue when trying to get code coverage using Jacoco-javaagent.
That does not occurs when starting the SUT with Jacoco-javaagent manually (not with QFTest).

Does anyone has already encountered that issue ?
(Or successfully used jacoco with qftest)

I'm using
QFTest 3.4
Jacoco: 5.8
Java 1.7.5


Here is the stacktrace:
java.lang.ArrayIndexOutOfBoundsException: 0
    at org.jacoco.agent.rt_vy46ht.core.internal.instr.ProbeInserter.visitFrame(ProbeInserter.java:242)
    at org.jacoco.agent.rt_vy46ht.core.internal.instr.FrameTracker.visitFrame(FrameTracker.java:67)
    at org.jacoco.agent.rt_vy46ht.core.internal.instr.LazyFrameTracker.visitFrame(LazyFrameTracker.java:38)
    at org.jacoco.agent.rt_vy46ht.asm.MethodAdapter.visitFrame(Unknown Source)
    at org.jacoco.agent.rt_vy46ht.asm.MethodAdapter.visitFrame(Unknown Source)
    at org.jacoco.agent.rt_vy46ht.asm.tree.FrameNode.accept(Unknown Source)
    at org.jacoco.agent.rt_vy46ht.asm.tree.InsnList.accept(Unknown Source)
    at org.jacoco.agent.rt_vy46ht.asm.tree.MethodNode.accept(Unknown Source)
    at org.jacoco.agent.rt_vy46ht.core.internal.flow.ClassProbesAdapter$1.visitEnd(ClassProbesAdapter.java:117)
    at org.jacoco.agent.rt_vy46ht.asm.ClassReader.accept(Unknown Source)
    at org.jacoco.agent.rt_vy46ht.asm.ClassReader.accept(Unknown Source)
    at org.jacoco.agent.rt_vy46ht.core.instr.Instrumenter.instrument(Instrumenter.java:69)
    at org.jacoco.agent.rt_vy46ht.core.instr.Instrumenter.instrument(Instrumenter.java:82)
    at org.jacoco.agent.rt_vy46ht.CoverageTransformer.transform(CoverageTransformer.java:88)
    at sun.instrument.TransformerManager.transform(TransformerManager.java:188)
    at sun.instrument.InstrumentationImpl.transform(InstrumentationImpl.java:424)
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:791)
    at org.python.core.BytecodeLoader$Loader.loadClassFromBytes(BytecodeLoader.java:119)
    at org.python.core.BytecodeLoader.makeClass(BytecodeLoader.java:37)
    at org.python.core.BytecodeLoader.makeCode(BytecodeLoader.java:67)
    at org.python.core.imp.createFromPyClass(imp.java:133)
    at org.python.core.imp.loadFromSource(imp.java:505)
    at org.python.core.imp.find_module(imp.java:411)
    at org.python.core.imp.import_next(imp.java:635)
    at org.python.core.imp.import_first(imp.java:656)
    at org.python.core.imp.load(imp.java:564)
    at org.python.core.util.FileUtil.isatty(FileUtil.java:70)
    at org.python.core.io.StreamIO.isatty(StreamIO.java:234)
    at org.python.core.io.BufferedIOMixin.isatty(BufferedIOMixin.java:90)
    at org.python.core.io.TextIOBase.isatty(TextIOBase.java:175)
    at org.python.core.PyFile.file_isatty(PyFile.java:496)
    at org.python.core.PyFile.isatty(PyFile.java:491)
    at org.python.core.PySystemState.initEncoding(PySystemState.java:229)
    at org.python.core.PySystemState.doInitialize(PySystemState.java:874)
    at org.python.core.PySystemState.initialize(PySystemState.java:777)
    at org.python.core.PySystemState.initialize(PySystemState.java:727)
    at org.python.core.PySystemState.initialize(PySystemState.java:720)
    at org.python.core.PySystemState.initialize(PySystemState.java:714)
    at org.python.core.PySystemState.initialize(PySystemState.java:710)
    at org.python.core.PySystemState.<init>(PySystemState.java:148)
    at de.qfs.apps.qftest.shared.script.JythonEngine.<clinit>(SourceFile:70)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
    at java.lang.Class.newInstance0(Class.java:372)
    at java.lang.Class.newInstance(Class.java:325)
    at org.apache.bsf.BSFManager.loadScriptingEngine(Unknown Source)
    at de.qfs.apps.qftest.shared.script.e.a(SourceFile:235)
    at de.qfs.apps.qftest.client.start.a.h(SourceFile:545)
    at de.qfs.apps.qftest.client.start.a.a(SourceFile:648)
    at de.qfs.apps.qftest.client.awt.a.b(SourceFile:440)
    at de.qfs.apps.qftest.client.awt.a.a(SourceFile:330)
    at de.qfs.apps.qftest.client.start.a.e(SourceFile:443)
    at de.qfs.apps.qftest.client.start.SUTWrapper.<init>(SourceFile:128)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
    at de.qfs.apps.qftest.start.Connector.maybeConnect(Connector.java:239)
    at de.qfs.apps.qftest.start.Connector.access$0(Connector.java:67)
    at de.qfs.apps.qftest.start.Connector$1.run(Connector.java:264)
    at java.security.AccessController.doPrivileged(Native Method)
    at de.qfs.apps.qftest.start.Connector.go(Connector.java:261)
    at de.qfs.apps.qftest.start.Connector.<init>(Connector.java:175)
   [...]
    at javax.swing.SwingUtilities.invokeLater(SwingUtilities.java:1287)


Regards,

---
Ivan Boelle

INT, Interactive Network Technologies