java.lang.IllegalArgumentException: Cannot handle replace call to list in ij.Menus's public static synchronized java.lang.String[] getPlugins()

GitHub | samfux84 | 5 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Cellprofiler generates a lot of java warnings on startup due to ImageJ

    GitHub | 5 months ago | samfux84
    java.lang.IllegalArgumentException: Cannot handle replace call to list in ij.Menus's public static synchronized java.lang.String[] getPlugins()

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Cannot handle replace call to list in ij.Menus's public static synchronized java.lang.String[] getPlugins()

      at net.imagej.patcher.CodeHacker.replaceCallInMethod()
    2. net.imagej.patcher
      JavaAgent.premain
      1. net.imagej.patcher.CodeHacker.replaceCallInMethod(CodeHacker.java:725)
      2. net.imagej.patcher.CodeHacker.replaceCallInMethod(CodeHacker.java:650)
      3. net.imagej.patcher.LegacyExtensions.addExtraPlugins(LegacyExtensions.java:477)
      4. net.imagej.patcher.LegacyExtensions.injectHooks(LegacyExtensions.java:175)
      5. net.imagej.patcher.LegacyInjector.inject(LegacyInjector.java:308)
      6. net.imagej.patcher.LegacyInjector.injectHooks(LegacyInjector.java:109)
      7. net.imagej.patcher.LegacyEnvironment.initialize(LegacyEnvironment.java:101)
      8. net.imagej.patcher.LegacyEnvironment.applyPatches(LegacyEnvironment.java:495)
      9. net.imagej.patcher.LegacyInjector.preinit(LegacyInjector.java:397)
      10. net.imagej.patcher.LegacyInjector.preinit(LegacyInjector.java:376)
      11. net.imagej.patcher.JavaAgent.preinit(JavaAgent.java:147)
      12. net.imagej.patcher.JavaAgent.premain(JavaAgent.java:95)
      12 frames
    3. Java RT
      InstrumentationImpl.loadClassAndCallPremain
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:498)
      5. sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:386)
      6. sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:401)
      6 frames