Skip to content

Instantly share code, notes, and snippets.

@kevinjalbert
Created March 14, 2012 14:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kevinjalbert/2036944 to your computer and use it in GitHub Desktop.
Save kevinjalbert/2036944 to your computer and use it in GitHub Desktop.
Javalanche-0.4 Error - Issue #13
[exec] javalancheTask:
[exec] [junit] Run mutation testing (without impact detection)
[exec] [junit] org.objectweb.asm.tree.analysis.AnalyzerException: Error at instruction 36: Expected an object reference, but found .
[exec] [junit] at org.objectweb.asm.tree.analysis.Analyzer.analyze(Analyzer.java:293)
[exec] [junit] at org.objectweb.asm.util.CheckMethodAdapter$1.visitEnd(CheckMethodAdapter.java:373)
[exec] [junit] at org.objectweb.asm.util.CheckMethodAdapter.visitEnd(CheckMethodAdapter.java:740)
[exec] [junit] at org.objectweb.asm.ClassReader.accept(ClassReader.java:1490)
[exec] [junit] at org.objectweb.asm.ClassReader.accept(ClassReader.java:425)
[exec] [junit] at de.unisb.cs.st.javalanche.mutation.util.AsmUtil.checkClass(AsmUtil.java:124)
[exec] [junit] at de.unisb.cs.st.javalanche.mutation.javaagent.classFileTransfomer.MutationFileTransformer.transform(MutationFileTransformer.java:108)
[exec] [junit] at sun.instrument.TransformerManager.transform(TransformerManager.java:188)
[exec] [junit] at sun.instrument.InstrumentationImpl.transform(InstrumentationImpl.java:385)
[exec] [junit] at java.lang.ClassLoader.defineClass1(Native Method)
[exec] [junit] at java.lang.ClassLoader.defineClass(ClassLoader.java:634)
[exec] [junit] at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
[exec] [junit] at java.net.URLClassLoader.defineClass(URLClassLoader.java:277)
[exec] [junit] at java.net.URLClassLoader.access$000(URLClassLoader.java:73)
[exec] [junit] at java.net.URLClassLoader$1.run(URLClassLoader.java:212)
[exec] [junit] at java.security.AccessController.doPrivileged(Native Method)
[exec] [junit] at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
[exec] [junit] at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
[exec] [junit] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
[exec] [junit] at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
[exec] [junit] at org.joda.time.format.PeriodFormatterBuilder.appendSuffix(PeriodFormatterBuilder.java:576)
[exec] [junit] at org.joda.time.format.PeriodFormat.wordBased(PeriodFormat.java:101)
[exec] [junit] at org.joda.time.format.TestPeriodFormat.test_wordBased_fr_formatStandard(TestPeriodFormat.java:112)
[exec] [junit] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[exec] [junit] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[exec] [junit] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[exec] [junit] at java.lang.reflect.Method.invoke(Method.java:616)
[exec] [junit] at junit.framework.TestCase.runTest(TestCase.java:168)
[exec] [junit] at junit.framework.TestCase.runBare(TestCase.java:134)
[exec] [junit] at junit.framework.TestResult$1.protect(TestResult.java:110)
[exec] [junit] at junit.framework.TestResult.runProtected(TestResult.java:128)
[exec] [junit] at junit.framework.TestResult.run(TestResult.java:113)
[exec] [junit] at junit.framework.TestCase.run(TestCase.java:124)
[exec] [junit] at junit.framework.TestSuite.runTest(TestSuite.java:243)
[exec] [junit] at junit.framework.TestSuite.run(TestSuite.java:238)
[exec] [junit] at junit.framework.TestSuite.runTest(TestSuite.java:243)
[exec] [junit] at junit.framework.TestSuite.run(TestSuite.java:238)
[exec] [junit] at junit.framework.TestSuite.runTest(TestSuite.java:243)
[exec] [junit] at junit.framework.TestSuite.run(TestSuite.java:238)
[exec] [junit] at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:101)
[exec] [junit] at de.unisb.cs.st.javalanche.mutation.runtime.testDriver.junit.Junit4MutationTestDriver.runTest(Junit4MutationTestDriver.java:231)
[exec] [junit] at de.unisb.cs.st.javalanche.mutation.runtime.testDriver.junit.Junit4MutationTestDriver.access$400(Junit4MutationTestDriver.java:59)
[exec] [junit] at de.unisb.cs.st.javalanche.mutation.runtime.testDriver.junit.Junit4MutationTestDriver$1.run(Junit4MutationTestDriver.java:330)
[exec] [junit] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
[exec] [junit] at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
[exec] [junit] at java.util.concurrent.FutureTask.run(FutureTask.java:166)
[exec] [junit] at java.lang.Thread.run(Thread.java:679)
[exec] [junit] Caused by: org.objectweb.asm.tree.analysis.AnalyzerException: Expected an object reference, but found .
[exec] [junit] at org.objectweb.asm.tree.analysis.BasicVerifier.copyOperation(BasicVerifier.java:71)
[exec] [junit] at org.objectweb.asm.tree.analysis.Frame.execute(Frame.java:248)
[exec] [junit] at org.objectweb.asm.tree.analysis.Analyzer.analyze(Analyzer.java:194)
[exec] [junit] ... 46 more
[exec] [junit] java.lang.RuntimeException: Error at instruction 36: Expected an object reference, but found . parse(Ljava/lang/String;I)I
[exec] [junit] 00000 R R I . . . : : L0
[exec] [junit] 00001 R R I . . . : : LINENUMBER 934 L0
[exec] [junit] 00002 R R I . . . : : ALOAD 0
[exec] [junit] 00003 R R I . . . : R : GETFIELD org/joda/time/format/PeriodFormatterBuilder$PluralAffix.iPluralText : Ljava/lang/String;
[exec] [junit] 00004 R R I . . . : R : ASTORE 3
[exec] [junit] 00005 R R I R . . : : L1
[exec] [junit] 00006 R R I R . . : : LINENUMBER 935 L1
[exec] [junit] 00007 R R I R . . : : ALOAD 0
[exec] [junit] 00008 R R I R . . : R : GETFIELD org/joda/time/format/PeriodFormatterBuilder$PluralAffix.iSingularText : Ljava/lang/String;
[exec] [junit] 00009 R R I R . . : R : ASTORE 4
[exec] [junit] 00010 R R I R R . : : L2
[exec] [junit] 00011 R R I R R . : : LINENUMBER 937 L2
[exec] [junit] 00012 R R I R R . : : ALOAD 3
[exec] [junit] 00013 R R I R R . : R : INVOKEVIRTUAL java/lang/String.length ()I
[exec] [junit] 00014 R R I R R . : I : ALOAD 4
[exec] [junit] 00015 R R I R R . : I R : INVOKEVIRTUAL java/lang/String.length ()I
[exec] [junit] 00016 R R I R R . : I I : IF_ICMPGE L3
[exec] [junit] 00017 R R I R R . : : L4
[exec] [junit] 00018 ? : LINENUMBER 939 L4
[exec] [junit] 00019 ? : ALOAD 3
[exec] [junit] 00020 ? : ASTORE 5
[exec] [junit] 00021 ? : L5
[exec] [junit] 00022 ? : LINENUMBER 940 L5
[exec] [junit] 00023 ? : ALOAD 4
[exec] [junit] 00024 ? : ASTORE 3
[exec] [junit] 00025 ? : L6
[exec] [junit] 00026 ? : LINENUMBER 941 L6
[exec] [junit] 00027 ? : ALOAD 5
[exec] [junit] 00028 ? : ASTORE 4
[exec] [junit] 00029 R R I R R . : : L3
[exec] [junit] 00030 R R I R R . : : LINENUMBER 944 L3
[exec] [junit] 00031 R R I R R . : : LDC "mutationId_58612"
[exec] [junit] 00032 R R I R R . : R : INVOKESTATIC java/lang/System.getProperty (Ljava/lang/String;)Ljava/lang/String;
[exec] [junit] 00033 R R I R R . : R : IFNULL L7
[exec] [junit] 00034 R R I R R . : : LDC 58612
[exec] [junit] 00035 R R I R R . : J : INVOKESTATIC de/unisb/cs/st/javalanche/mutation/runtime/MutationObserver.touch (J)V
[exec] [junit] 00036 R R I R R . : : ALOAD 5
[exec] [junit] 00037 ? : GOTO L8
[exec] [junit] 00038 R R I R R . : : L7
[exec] [junit] 00039 R R I R R . : : ALOAD 1
[exec] [junit] 00040 R R I R R . : R : L8
[exec] [junit] 00041 R R I R R . : R : LDC 1
[exec] [junit] 00042 R R I R R . : R I : ILOAD 2
[exec] [junit] 00043 R R I R R . : R I I : ALOAD 3
[exec] [junit] 00044 R R I R R . : R I I R : LDC 0
[exec] [junit] 00045 R R I R R . : R I I R I : ALOAD 3
[exec] [junit] 00046 R R I R R . : R I I R I R : INVOKEVIRTUAL java/lang/String.length ()I
[exec] [junit] 00047 R R I R R . : R I I R I I : INVOKEVIRTUAL java/lang/String.regionMatches (ZILjava/lang/String;II)Z
[exec] [junit] 00048 R R I R R . : I : IFEQ L9
[exec] [junit] 00049 R R I R R . : : L10
[exec] [junit] 00050 R R I R R . : : LINENUMBER 946 L10
[exec] [junit] 00051 R R I R R . : : ILOAD 2
[exec] [junit] 00052 R R I R R . : I : ALOAD 3
[exec] [junit] 00053 R R I R R . : I R : INVOKEVIRTUAL java/lang/String.length ()I
[exec] [junit] 00054 R R I R R . : I I : IADD
[exec] [junit] 00055 R R I R R . : I : IRETURN
[exec] [junit] 00056 R R I R R . : : L9
[exec] [junit] 00057 R R I R R . : : LINENUMBER 948 L9
[exec] [junit] 00058 R R I R R . : : ALOAD 1
[exec] [junit] 00059 R R I R R . : R : LDC 1
[exec] [junit] 00060 R R I R R . : R I : ILOAD 2
[exec] [junit] 00061 R R I R R . : R I I : ALOAD 4
[exec] [junit] 00062 R R I R R . : R I I R : LDC 0
[exec] [junit] 00063 R R I R R . : R I I R I : ALOAD 4
[exec] [junit] 00064 R R I R R . : R I I R I R : INVOKEVIRTUAL java/lang/String.length ()I
[exec] [junit] 00065 R R I R R . : R I I R I I : INVOKEVIRTUAL java/lang/String.regionMatches (ZILjava/lang/String;II)Z
[exec] [junit] 00066 R R I R R . : I : IFEQ L11
[exec] [junit] 00067 R R I R R . : : L12
[exec] [junit] 00068 R R I R R . : : LINENUMBER 950 L12
[exec] [junit] 00069 R R I R R . : : ILOAD 2
[exec] [junit] 00070 R R I R R . : I : ALOAD 4
[exec] [junit] 00071 R R I R R . : I R : INVOKEVIRTUAL java/lang/String.length ()I
[exec] [junit] 00072 R R I R R . : I I : IADD
[exec] [junit] 00073 R R I R R . : I : IRETURN
[exec] [junit] 00074 R R I R R . : : L11
[exec] [junit] 00075 R R I R R . : : LINENUMBER 953 L11
[exec] [junit] 00076 R R I R R . : : ILOAD 2
[exec] [junit] 00077 R R I R R . : I : LDC -1
[exec] [junit] 00078 R R I R R . : I I : IXOR
[exec] [junit] 00079 R R I R R . : I : IRETURN
[exec] [junit]
[exec] [junit]
[exec] [junit] at org.objectweb.asm.util.CheckMethodAdapter$1.visitEnd(CheckMethodAdapter.java:385)
[exec] [junit] at org.objectweb.asm.util.CheckMethodAdapter.visitEnd(CheckMethodAdapter.java:740)
[exec] [junit] at org.objectweb.asm.ClassReader.accept(ClassReader.java:1490)
[exec] [junit] at org.objectweb.asm.ClassReader.accept(ClassReader.java:425)
[exec] [junit] at de.unisb.cs.st.javalanche.mutation.util.AsmUtil.checkClass(AsmUtil.java:124)
[exec] [junit] at de.unisb.cs.st.javalanche.mutation.javaagent.classFileTransfomer.MutationFileTransformer.transform(MutationFileTransformer.java:108)
[exec] [junit] at sun.instrument.TransformerManager.transform(TransformerManager.java:188)
[exec] [junit] at sun.instrument.InstrumentationImpl.transform(InstrumentationImpl.java:385)
[exec] [junit] at java.lang.ClassLoader.defineClass1(Native Method)
[exec] [junit] at java.lang.ClassLoader.defineClass(ClassLoader.java:634)
[exec] [junit] at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
[exec] [junit] at java.net.URLClassLoader.defineClass(URLClassLoader.java:277)
[exec] [junit] at java.net.URLClassLoader.access$000(URLClassLoader.java:73)
[exec] [junit] at java.net.URLClassLoader$1.run(URLClassLoader.java:212)
[exec] [junit] at java.security.AccessController.doPrivileged(Native Method)
[exec] [junit] at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
[exec] [junit] at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
[exec] [junit] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
[exec] [junit] at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
[exec] [junit] at org.joda.time.format.PeriodFormatterBuilder.appendSuffix(PeriodFormatterBuilder.java:576)
[exec] [junit] at org.joda.time.format.PeriodFormat.wordBased(PeriodFormat.java:101)
[exec] [junit] at org.joda.time.format.TestPeriodFormat.test_wordBased_fr_formatStandard(TestPeriodFormat.java:112)
[exec] [junit] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[exec] [junit] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[exec] [junit] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[exec] [junit] at java.lang.reflect.Method.invoke(Method.java:616)
[exec] [junit] at junit.framework.TestCase.runTest(TestCase.java:168)
[exec] [junit] at junit.framework.TestCase.runBare(TestCase.java:134)
[exec] [junit] at junit.framework.TestResult$1.protect(TestResult.java:110)
[exec] [junit] at junit.framework.TestResult.runProtected(TestResult.java:128)
[exec] [junit] at junit.framework.TestResult.run(TestResult.java:113)
[exec] [junit] at junit.framework.TestCase.run(TestCase.java:124)
[exec] [junit] at junit.framework.TestSuite.runTest(TestSuite.java:243)
[exec] [junit] at junit.framework.TestSuite.run(TestSuite.java:238)
[exec] [junit] at junit.framework.TestSuite.runTest(TestSuite.java:243)
[exec] [junit] at junit.framework.TestSuite.run(TestSuite.java:238)
[exec] [junit] at junit.framework.TestSuite.runTest(TestSuite.java:243)
[exec] [junit] at junit.framework.TestSuite.run(TestSuite.java:238)
[exec] [junit] at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:101)
[exec] [junit] at de.unisb.cs.st.javalanche.mutation.runtime.testDriver.junit.Junit4MutationTestDriver.runTest(Junit4MutationTestDriver.java:231)
[exec] [junit] at de.unisb.cs.st.javalanche.mutation.runtime.testDriver.junit.Junit4MutationTestDriver.access$400(Junit4MutationTestDriver.java:59)
[exec] [junit] at de.unisb.cs.st.javalanche.mutation.runtime.testDriver.junit.Junit4MutationTestDriver$1.run(Junit4MutationTestDriver.java:330)
[exec] [junit] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
[exec] [junit] at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
[exec] [junit] at java.util.concurrent.FutureTask.run(FutureTask.java:166)
[exec] [junit] at java.lang.Thread.run(Thread.java:679)
[exec] [junit] Exception in thread "Thread-5" java.lang.IllegalArgumentException:
[exec] [junit] at de.unisb.cs.st.javalanche.mutation.runtime.ResultReporter.report(ResultReporter.java:65)
[exec] [junit] at de.unisb.cs.st.javalanche.mutation.runtime.ResultReporter.mutationEnd(ResultReporter.java:131)
[exec] [junit] at de.unisb.cs.st.javalanche.mutation.runtime.testDriver.MutationTestDriver.mutationEnd(MutationTestDriver.java:931)
[exec] [junit] at de.unisb.cs.st.javalanche.mutation.runtime.testDriver.MutationTestDriver.unexpectedShutdown(MutationTestDriver.java:870)
[exec] [junit] at de.unisb.cs.st.javalanche.mutation.runtime.testDriver.MutationDriverShutdownHook.run(MutationDriverShutdownHook.java:49)
[exec] [junit] at java.lang.Thread.run(Thread.java:679)
[exec] [junit] Test de.unisb.cs.st.javalanche.mutation.runtime.testDriver.junit.JavalancheWrapperTestSuite FAILED (crashed)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment