2018 bis heute | 2017 2016 2015 2014 | 2013 | 2012

Mailingliste - Einträge 2018 bis heute

Hello,<br><br>Our software recently switched to Java7 so we decided to throw away our code coverage tool (Emma) which was not 'really' supporting Java7.<br>We switched to Jacoco (related to Eclemma).<br><br>And I have a strange issue when trying to get code coverage using Jacoco-javaagent.<br>
That does not occurs when starting the SUT with Jacoco-javaagent manually (not with QFTest).<br><br>Does anyone has already encountered that issue ?<br>(Or successfully used jacoco with qftest)<br><br>I'm using <br>QFTest 3.4<br>
Jacoco: 5.8<br>Java 1.7.5<br><br><br>Here is the stacktrace:<br>java.lang.ArrayIndexOutOfBoundsException: 0<br> at org.jacoco.agent.rt_vy46ht.core.internal.instr.ProbeInserter.visitFrame(ProbeInserter.java:242)<br> at org.jacoco.agent.rt_vy46ht.core.internal.instr.FrameTracker.visitFrame(FrameTracker.java:67)<br>
 at org.jacoco.agent.rt_vy46ht.core.internal.instr.LazyFrameTracker.visitFrame(LazyFrameTracker.java:38)<br> at org.jacoco.agent.rt_vy46ht.asm.MethodAdapter.visitFrame(Unknown Source)<br> at org.jacoco.agent.rt_vy46ht.asm.MethodAdapter.visitFrame(Unknown Source)<br>
 at org.jacoco.agent.rt_vy46ht.asm.tree.FrameNode.accept(Unknown Source)<br> at org.jacoco.agent.rt_vy46ht.asm.tree.InsnList.accept(Unknown Source)<br> at org.jacoco.agent.rt_vy46ht.asm.tree.MethodNode.accept(Unknown Source)<br>
 at org.jacoco.agent.rt_vy46ht.core.internal.flow.ClassProbesAdapter$1.visitEnd(ClassProbesAdapter.java:117)<br> at org.jacoco.agent.rt_vy46ht.asm.ClassReader.accept(Unknown Source)<br> at org.jacoco.agent.rt_vy46ht.asm.ClassReader.accept(Unknown Source)<br>
 at org.jacoco.agent.rt_vy46ht.core.instr.Instrumenter.instrument(Instrumenter.java:69)<br> at org.jacoco.agent.rt_vy46ht.core.instr.Instrumenter.instrument(Instrumenter.java:82)<br> at org.jacoco.agent.rt_vy46ht.CoverageTransformer.transform(CoverageTransformer.java:88)<br>
 at sun.instrument.TransformerManager.transform(TransformerManager.java:188)<br> at sun.instrument.InstrumentationImpl.transform(InstrumentationImpl.java:424)<br> at java.lang.ClassLoader.defineClass1(Native Method)<br>
 at java.lang.ClassLoader.defineClass(ClassLoader.java:791)<br> at org.python.core.BytecodeLoader$Loader.loadClassFromBytes(BytecodeLoader.java:119)<br> at org.python.core.BytecodeLoader.makeClass(BytecodeLoader.java:37)<br>
 at org.python.core.BytecodeLoader.makeCode(BytecodeLoader.java:67)<br> at org.python.core.imp.createFromPyClass(imp.java:133)<br> at org.python.core.imp.loadFromSource(imp.java:505)<br> at org.python.core.imp.find_module(imp.java:411)<br>
 at org.python.core.imp.import_next(imp.java:635)<br> at org.python.core.imp.import_first(imp.java:656)<br> at org.python.core.imp.load(imp.java:564)<br> at org.python.core.util.FileUtil.isatty(FileUtil.java:70)<br>
 at org.python.core.io.StreamIO.isatty(StreamIO.java:234)<br> at org.python.core.io.BufferedIOMixin.isatty(BufferedIOMixin.java:90)<br> at org.python.core.io.TextIOBase.isatty(TextIOBase.java:175)<br> at org.python.core.PyFile.file_isatty(PyFile.java:496)<br>
 at org.python.core.PyFile.isatty(PyFile.java:491)<br> at org.python.core.PySystemState.initEncoding(PySystemState.java:229)<br> at org.python.core.PySystemState.doInitialize(PySystemState.java:874)<br> at org.python.core.PySystemState.initialize(PySystemState.java:777)<br>
 at org.python.core.PySystemState.initialize(PySystemState.java:727)<br> at org.python.core.PySystemState.initialize(PySystemState.java:720)<br> at org.python.core.PySystemState.initialize(PySystemState.java:714)<br>
 at org.python.core.PySystemState.initialize(PySystemState.java:710)<br> at org.python.core.PySystemState.<init>(PySystemState.java:148)<br> at de.qfs.apps.qftest.shared.script.JythonEngine.<clinit>(SourceFile:70)<br>
 at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)<br> at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)<br> at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)<br>
 at java.lang.reflect.Constructor.newInstance(Constructor.java:525)<br> at java.lang.Class.newInstance0(Class.java:372)<br> at java.lang.Class.newInstance(Class.java:325)<br> at org.apache.bsf.BSFManager.loadScriptingEngine(Unknown Source)<br>
 at de.qfs.apps.qftest.shared.script.e.a(SourceFile:235)<br> at de.qfs.apps.qftest.client.start.a.h(SourceFile:545)<br> at de.qfs.apps.qftest.client.start.a.a(SourceFile:648)<br> at de.qfs.apps.qftest.client.awt.a.b(SourceFile:440)<br>
 at de.qfs.apps.qftest.client.awt.a.a(SourceFile:330)<br> at de.qfs.apps.qftest.client.start.a.e(SourceFile:443)<br> at de.qfs.apps.qftest.client.start.SUTWrapper.<init>(SourceFile:128)<br> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)<br>
 at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)<br> at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)<br> at java.lang.reflect.Constructor.newInstance(Constructor.java:525)<br>
 at de.qfs.apps.qftest.start.Connector.maybeConnect(Connector.java:239)<br> at de.qfs.apps.qftest.start.Connector.access$0(Connector.java:67)<br> at de.qfs.apps.qftest.start.Connector$1.run(Connector.java:264)<br>
 at java.security.AccessController.doPrivileged(Native Method)<br> at de.qfs.apps.qftest.start.Connector.go(Connector.java:261)<br> at de.qfs.apps.qftest.start.Connector.<init>(Connector.java:175)<br> [...]<br>
 at javax.swing.SwingUtilities.invokeLater(SwingUtilities.java:1287)<br><br><br>Regards,<br><br clear="all"><pre cols="72"><span style="color:rgb(153,153,153)">---<br>Ivan Boelle</span><br style="color:rgb(153,153,153)">
<span style="color:rgb(153,153,153)"></span><span style="color:rgb(153,153,153)">INT, Interactive Network Technologies</span><br><br></pre><br><br><br>