java.lang.IllegalArgumentException

can only bind Referenceable, Serializable, DirContext

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web5

  • via Unknown by Rob Cole,
  • Stack trace

    • java.lang.IllegalArgumentException: can only bind Referenceable, Serializable, DirContext at com.sun.jndi.ldap.Obj.encodeObject(Obj.java:168) at com.sun.jndi.ldap.Obj.determineBindAttrs(Obj.java:579) at com.sun.jndi.ldap.LdapCtx.c_bind(LdapCtx.java:343) at com.sun.jndi.ldap.LdapCtx.c_rebind(LdapCtx.java:432) at com.sun.jndi.ldap.LdapCtx.c_rebind(LdapCtx.java:396) at com.sun.jndi.toolkit.ctx.ComponentContext.p_rebind(ComponentContext.java:611) at com.sun.jndi.toolkit.ctx.PartialCompositeContext.rebind(PartialCompositeContext.java:201) at com.sun.jndi.toolkit.ctx.PartialCompositeContext.rebind(PartialCompositeContext.java:192) at javax.naming.InitialContext.rebind(InitialContext.java:363)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    We couldn't find other users who have seen this exception.