java.lang.NoSuchMethodError: org.apache.commons.io.FileUtils.readFileToByteArray

Stack Overflow | Ammad | 5 months ago
  1. 0

    java.lang.NoSuchMethodError: org.apache.commons.io.FileUtils.readFileToByteArray

    Stack Overflow | 5 months ago | Ammad
    java.lang.NoSuchMethodError: org.apache.commons.io.FileUtils.readFileToByteArray
  2. 0
    I was using the library hibernate-entitymanager:4.3.5.Final with java persistence API 2.0 instead of using it with hibernate-entitymanager:4.2.8.Final.
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0
    This bug happens in version 2.60, try updating to 2.60-rc4 or more recent.
    via GitHub by anujlal01

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NoSuchMethodError

      org.apache.commons.io.FileUtils.readFileToByteArray

      at com.googlecode.dex2jar.reader.DexFileReader.<init>()
    2. com.googlecode.dex2jar
      DexFileReader.<init>
      1. com.googlecode.dex2jar.reader.DexFileReader.<init>(DexFileReader.java:240)
      1 frame
    3. com.example.dex2jar
      MainActivity.onCreate
      1. com.example.dex2jar.MainActivity.dextojar(MainActivity.java:67)
      2. com.example.dex2jar.MainActivity.onCreate(MainActivity.java:88)
      2 frames
    4. Android Platform
      ActivityThread.main
      1. android.app.Activity.performCreate(Activity.java:5231)
      2. android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
      3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2159)
      4. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245)
      5. android.app.ActivityThread.access$800(ActivityThread.java:135)
      6. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
      7. android.os.Handler.dispatchMessage(Handler.java:102)
      8. android.os.Looper.loop(Looper.java:136)
      9. android.app.ActivityThread.main(ActivityThread.java:5017)
      9 frames
    5. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invokeNative(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:515)
      2 frames
    6. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
      2 frames
    7. Android Platform
      NativeStart.main
      1. dalvik.system.NativeStart.main(Native Method)
      1 frame