Subscribed unsubscribe Subscribe Subscribe

oinume journal

Scratchpad of what I learned

会社の本番環境をJava8で動かそうとしたらNewRelicでエラーが出た

そろそろJava8でコード書きたい
 ↓
まずはJVMをJava8で動かさないと...!(JVMに問題があった時に詰む)
 ↓
本番のJVMをJava8にした
 ↓
起動時にNewRelic入れてるサーバでエラーが出た
 ↓
対応に数ヶ月かかるかもしれないとのこと\(^o^)/ (←イマココ)

出たエラーはこんな感じ。

Apr 15, 2014 13:56:01 +0900 [13004 1] com.newrelic INFO: Agent is using Logback
Apr 15, 2014 13:56:02 +0900 [13004 1] com.newrelic INFO: Loading configuration file "/path/to/newrelic/newrelic.yml"
. . . java.lang.IllegalArgumentException
    at com.newrelic.deps.org.objectweb.asm.ClassReader.<init>(Unknown Source)
    at com.newrelic.deps.org.objectweb.asm.ClassReader.<init>(Unknown Source)
    at com.newrelic.deps.org.objectweb.asm.ClassReader.<init>(Unknown Source)
    at com.newrelic.agent.util.asm.PatchedClassWriter.getClassReader(PatchedClassWriter.java:102)
    at com.newrelic.agent.util.asm.PatchedClassWriter.getCommonSuperClass(PatchedClassWriter.java:77)
    at com.newrelic.deps.org.objectweb.asm.ClassWriter.a(Unknown Source)
    at com.newrelic.deps.org.objectweb.asm.Frame.a(Unknown Source)
    at com.newrelic.deps.org.objectweb.asm.Frame.a(Unknown Source)
    at com.newrelic.deps.org.objectweb.asm.MethodWriter.visitMaxs(Unknown Source)
    at com.newrelic.deps.org.objectweb.asm.tree.MethodNode.accept(Unknown Source)
    at com.newrelic.deps.org.objectweb.asm.commons.JSRInlinerAdapter.visitEnd(Unknown Source)
    at com.newrelic.deps.org.objectweb.asm.MethodVisitor.visitEnd(Unknown Source)
    at com.newrelic.deps.org.objectweb.asm.ClassReader.b(Unknown Source)
    at com.newrelic.deps.org.objectweb.asm.ClassReader.accept(Unknown Source)
    at com.newrelic.deps.org.objectweb.asm.ClassReader.accept(Unknown Source)
    at com.newrelic.agent.instrumentation.context.InstrumentationContextManager$3.getFinalTransformation(InstrumentationContextManager.java:315)
    at com.newrelic.agent.instrumentation.context.InstrumentationContextManager$3.transform(InstrumentationContextManager.java:256)
    at com.newrelic.agent.instrumentation.context.InstrumentationContextManager$2.transform(InstrumentationContextManager.java:192)
    at sun.instrument.TransformerManager.transform(TransformerManager.java:188)
    at sun.instrument.InstrumentationImpl.transform(InstrumentationImpl.java:428)
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:760)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:455)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:367)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:495)

Java逆引きレシピ

Java逆引きレシピ