java.lang.NoSuchMethodError: org.apache.commons.codec.binary.Hex.encodeHexString([B)Ljava/lang/String;

Oracle Community | walec51 | 7 years 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

    Imposible to add a class library jar to Glassfish

    Oracle Community | 7 years ago | walec51
    java.lang.NoSuchMethodError: org.apache.commons.codec.binary.Hex.encodeHexString([B)Ljava/lang/String;

    Root Cause Analysis

    1. java.lang.NoSuchMethodError

      org.apache.commons.codec.binary.Hex.encodeHexString([B)Ljava/lang/String;

      at fantasycards.services.PlayerDao.calcuatePasswordHash()
    2. fantasycards.services
      PlayerDao.registerPlayer
      1. fantasycards.services.PlayerDao.calcuatePasswordHash(PlayerDao.java:86)
      2. fantasycards.services.PlayerDao.registerPlayer(PlayerDao.java:56)
      3. fantasycards.services.PlayerDao.registerPlayer(PlayerDao.java:48)
      3 frames
    3. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    4. Embedded GlassFish Web
      EJBSecurityManager.runMethod
      1. org.glassfish.ejb.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1052)
      1 frame