java.lang.ClassCastException: java.lang.String cannot be cast to [B

directory-users | Stefan Seelmann | 1 year ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Re: DHCP using Apache directory server

    directory-users | 1 year ago | Stefan Seelmann
    java.lang.ClassCastException: java.lang.String cannot be cast to [B

    Root Cause Analysis

    1. java.lang.ClassCastException

      java.lang.String cannot be cast to [B

      at org.apache.directory.api.ldap.model.entry.BinaryValue.hashCode()
    2. Apache Directory
      DefaultAttribute.<init>
      1. org.apache.directory.api.ldap.model.entry.BinaryValue.hashCode(BinaryValue.java:212)
      2. org.apache.directory.api.ldap.model.entry.AbstractValue.apply(AbstractValue.java:231)
      3. org.apache.directory.api.ldap.model.entry.BinaryValue.<init>(BinaryValue.java:111)
      4. org.apache.directory.api.ldap.model.entry.DefaultAttribute.<init>(DefaultAttribute.java:497)
      4 frames