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

ZK-Tracker | LeonardoRosa | 8 months ago
  1. 0

    Problem occurs when trying to protect a sheet after formatting some cells: Works perfectly with 3.8.0.1 Ranges.range(sheet).protectSheet("plan1", true, true, false, false, false, false, false, false, false, false, false, false, false, false, false); 8 then: ERROR [org.zkoss.zk.ui.impl.UiEngineImpl] (http-localhost/127.0.0.1:8080-3) : java.lang.NoSuchMethodError: org.apache.commons.codec.binary.Base64.encodeAsString([B)Ljava/lang/String; at org.zkoss.poi.ss.util.SheetUtil.base64Random16Bytes(SheetUtil.java:305) [zpoi-3.9.10.jar:3.9.10] at org.zkoss.zss.model.impl.SheetImpl.setPassword(SheetImpl.java:1768) [zssmodel-3.8.3.jar:3.8.3] at org.zkoss.zss.range.impl.RangeImpl.setPasswordInLock(RangeImpl.java:2188) [zssmodel-3.8.3.jar:3.8.3] at org.zkoss.zss.range.impl.RangeImpl.protectSheetInLock(RangeImpl.java:2151) [zssmodel-3.8.3.jar:3.8.3] at org.zkoss.zss.range.impl.RangeImpl.access$3000(RangeImpl.java:107) [zssmodel-3.8.3.jar:3.8.3] at org.zkoss.zss.range.impl.RangeImpl$59.invoke(RangeImpl.java:2082) [zssmodel-3.8.3.jar:3.8.3] at org.zkoss.zss.model.util.ReadWriteTask.doInWriteLock(ReadWriteTask.java:43) [zssmodel-3.8.3.jar:3.8.3] at org.zkoss.zss.range.impl.RangeImpl.protectSheet(RangeImpl.java:2091) [zssmodel-3.8.3.jar:3.8.3] at org.zkoss.zss.api.impl.RangeImpl.protectSheet(RangeImpl.java:763) [zss-3.8.3.jar:3.8.3] at br.jus.tse.corporativo.sigepro.excel.web.jsf.mbeans.UoBookBean.conditionalFormatting(UoBookBean.java:339) [classes:] at br.jus.tse.corporativo.sigepro.excel.web.jsf.mbeans.UoBookBean.onAfterCellChange(UoBookBean.java:105) [classes:]

    ZK-Tracker | 8 months ago | LeonardoRosa
    java.lang.NoSuchMethodError: org.apache.commons.codec.binary.Base64.encodeAsString([B)Ljava/lang/String;
  2. 0

    Problem occurs when trying to protect a sheet after formatting some cells: Works perfectly with 3.8.0.1 Ranges.range(sheet).protectSheet("plan1", true, true, false, false, false, false, false, false, false, false, false, false, false, false, false); 8 then: ERROR [org.zkoss.zk.ui.impl.UiEngineImpl] (http-localhost/127.0.0.1:8080-3) : java.lang.NoSuchMethodError: org.apache.commons.codec.binary.Base64.encodeAsString([B)Ljava/lang/String; at org.zkoss.poi.ss.util.SheetUtil.base64Random16Bytes(SheetUtil.java:305) [zpoi-3.9.10.jar:3.9.10] at org.zkoss.zss.model.impl.SheetImpl.setPassword(SheetImpl.java:1768) [zssmodel-3.8.3.jar:3.8.3] at org.zkoss.zss.range.impl.RangeImpl.setPasswordInLock(RangeImpl.java:2188) [zssmodel-3.8.3.jar:3.8.3] at org.zkoss.zss.range.impl.RangeImpl.protectSheetInLock(RangeImpl.java:2151) [zssmodel-3.8.3.jar:3.8.3] at org.zkoss.zss.range.impl.RangeImpl.access$3000(RangeImpl.java:107) [zssmodel-3.8.3.jar:3.8.3] at org.zkoss.zss.range.impl.RangeImpl$59.invoke(RangeImpl.java:2082) [zssmodel-3.8.3.jar:3.8.3] at org.zkoss.zss.model.util.ReadWriteTask.doInWriteLock(ReadWriteTask.java:43) [zssmodel-3.8.3.jar:3.8.3] at org.zkoss.zss.range.impl.RangeImpl.protectSheet(RangeImpl.java:2091) [zssmodel-3.8.3.jar:3.8.3] at org.zkoss.zss.api.impl.RangeImpl.protectSheet(RangeImpl.java:763) [zss-3.8.3.jar:3.8.3] at br.jus.tse.corporativo.sigepro.excel.web.jsf.mbeans.UoBookBean.conditionalFormatting(UoBookBean.java:339) [classes:] at br.jus.tse.corporativo.sigepro.excel.web.jsf.mbeans.UoBookBean.onAfterCellChange(UoBookBean.java:105) [classes:]

    ZK-Tracker | 8 months ago | LeonardoRosa
    java.lang.NoSuchMethodError: org.apache.commons.codec.binary.Base64.encodeAsString([B)Ljava/lang/String;
  3. 0

    Exception occurs while validating token

    GitHub | 3 years ago | jmiranda
    java.lang.NoSuchMethodError: org.apache.commons.codec.binary.Base64.decodeBase64(Ljava/lang/String;)[B
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Maven dependencies in a Mule project . Classloader control not working as expected

    Stack Overflow | 2 years ago | KodeSeeker
    java.lang.NoSuchMethodError: org.apache.commons.codec.binary.Base64.encodeBase64URLSafeString([B)Ljava/lang/String;
  6. 0

    SimpleFileUpload not working for swift

    GitHub | 4 months ago | madiflannery
    java.lang.NoSuchMethodError: org.apache.commons.codec.binary.Base64.encodeToString([B)Ljava/lang/String;

    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.codec.binary.Base64.encodeAsString([B)Ljava/lang/String;

      at org.zkoss.poi.ss.util.SheetUtil.base64Random16Bytes()
    2. org.zkoss.poi
      SheetUtil.base64Random16Bytes
      1. org.zkoss.poi.ss.util.SheetUtil.base64Random16Bytes(SheetUtil.java:305)[zpoi-3.9.10.jar:3.9.10]
      1 frame
    3. org.zkoss.zss
      RangeImpl.protectSheet
      1. org.zkoss.zss.model.impl.SheetImpl.setPassword(SheetImpl.java:1768)[zssmodel-3.8.3.jar:3.8.3]
      2. org.zkoss.zss.range.impl.RangeImpl.setPasswordInLock(RangeImpl.java:2188)[zssmodel-3.8.3.jar:3.8.3]
      3. org.zkoss.zss.range.impl.RangeImpl.protectSheetInLock(RangeImpl.java:2151)[zssmodel-3.8.3.jar:3.8.3]
      4. org.zkoss.zss.range.impl.RangeImpl.access$3000(RangeImpl.java:107)[zssmodel-3.8.3.jar:3.8.3]
      5. org.zkoss.zss.range.impl.RangeImpl$59.invoke(RangeImpl.java:2082)[zssmodel-3.8.3.jar:3.8.3]
      6. org.zkoss.zss.model.util.ReadWriteTask.doInWriteLock(ReadWriteTask.java:43)[zssmodel-3.8.3.jar:3.8.3]
      7. org.zkoss.zss.range.impl.RangeImpl.protectSheet(RangeImpl.java:2091)[zssmodel-3.8.3.jar:3.8.3]
      8. org.zkoss.zss.api.impl.RangeImpl.protectSheet(RangeImpl.java:763)[zss-3.8.3.jar:3.8.3]
      8 frames
    4. br.jus.tse
      UoBookBean.onAfterCellChange
      1. br.jus.tse.corporativo.sigepro.excel.web.jsf.mbeans.UoBookBean.conditionalFormatting(UoBookBean.java:339)[classes:]
      2. br.jus.tse.corporativo.sigepro.excel.web.jsf.mbeans.UoBookBean.onAfterCellChange(UoBookBean.java:105)[classes:]
      2 frames