javax.naming.directory.SchemaViolationException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • I insert in my LDAP a user with objectClass : objectClass ObjectClassPerson objectClass ObjectClassOrgani objectClass ObjectClassShadow objectClass ObjectClassTop objectClass ObjectClassOrg I am using the LDAP output step to insert all objects. But in trying to prove the transformation send me the following error: 2015/05/08 16:04:03 - INSERT USR LDAP.0 - ERROR (version 5.0.1-stable, build 1 from 2013-11-15_16-08-58 by buildguy) : Exception : 2015/05/08 16:04:03 - INSERT USR LDAP.0 - Error inserting for entry with DN = [uid=mark1,ou=users,dc=ldap,dc=test,dc=org]! 2015/05/08 16:04:03 - INSERT USR LDAP.0 - [LDAP: error code 65 - no structural object class provided] 2015/05/08 16:04:03 - INSERT USR LDAP.0 - ERROR (version 5.0.1-stable, build 1 from 2013-11-15_16-08-58 by buildguy) : org.pentaho.di.core.exception.KettleException: 2015/05/08 16:04:03 - INSERT USR LDAP.0 - Error inserting for entry with DN = [uid=mark1,ou=users,dc=ldap,dc=test,dc=org]! 2015/05/08 16:04:03 - INSERT USR LDAP.0 - [LDAP: error code 65 - no structural object class provided] 2015/05/08 16:04:03 - INSERT USR LDAP.0 - 2015/05/08 16:04:03 - INSERT USR LDAP.0 - at org.pentaho.di.trans.steps.ldapinput.LDAPConnection.insert(LDAPConnection.java:354) 2015/05/08 16:04:03 - INSERT USR LDAP.0 - at org.pentaho.di.trans.steps.ldapoutput.LDAPOutput.processRow(LDAPOutput.java:251) 2015/05/08 16:04:03 - INSERT USR LDAP.0 - at org.pentaho.di.trans.step.RunThread.run(RunThread.java:60) 2015/05/08 16:04:03 - INSERT USR LDAP.0 - at java.lang.Thread.run(Thread.java:722) 2015/05/08 16:04:03 - INSERT USR LDAP.0 - Caused by: javax.naming.directory.SchemaViolationException: [LDAP: error code 65 - no structural object class provided]; remaining name 'uid=mark1,ou=users,dc=ldap,dc=test,dc=org' 2015/05/08 16:04:03 - INSERT USR LDAP.0 - at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:3118) 2015/05/08 16:04:03 - INSERT USR LDAP.0 - at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:3033) 2015/05/08 16:04:03 - INSERT USR LDAP.0 - at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2840) 2015/05/08 16:04:03 - INSERT USR LDAP.0 - at com.sun.jndi.ldap.LdapCtx.c_createSubcontext(LdapCtx.java:811) 2015/05/08 16:04:03 - INSERT USR LDAP.0 - at com.sun.jndi.toolkit.ctx.ComponentDirContext.p_createSubcontext(ComponentDirContext.java:337) 2015/05/08 16:04:03 - INSERT USR LDAP.0 - at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.createSubcontext(PartialCompositeDirContext.java:266) 2015/05/08 16:04:03 - INSERT USR LDAP.0 - at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.createSubcontext(PartialCompositeDirContext.java:254) 2015/05/08 16:04:03 - INSERT USR LDAP.0 - at javax.naming.directory.InitialDirContext.createSubcontext(InitialDirContext.java:197) 2015/05/08 16:04:03 - INSERT USR LDAP.0 - at org.pentaho.di.trans.steps.ldapinput.LDAPConnection.insert(LDAPConnection.java:351) 2015/05/08 16:04:03 - INSERT USR LDAP.0 - ... 3 more I do not understand why I send this error if they are all objects and attributes needed. I hope you can help. Thank you.
    via by Elias Vargas Loyola,
  • Error Creating User using JNDI
    via by 472754,
    • javax.naming.directory.SchemaViolationException: [LDAP: error code 65 - sn attribute not found. Mandatory Attribute missing.]; remaining name 'cn=cf000229-2230-4ff8-9,cn=users,dc=1,dc=2,dc=3,dc=4,dc=5' at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:3072) at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2987) at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2794) at com.sun.jndi.ldap.LdapCtx.c_createSubcontext(LdapCtx.java:788) at com.sun.jndi.toolkit.ctx.ComponentDirContext.p_createSubcontext(ComponentDirContext.java:319) at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.createSubcontext(PartialCompositeDirContext.java:248) at javax.naming.directory.InitialDirContext.createSubcontext(InitialDirContext.java:183) at oracle.ldap.odip.gsi.LDAPWriter.createEntry(LDAPWriter.java:1275) at oracle.ldap.odip.gsi.LDAPWriter.insert(LDAPWriter.java:456) at oracle.ldap.odip.gsi.LDAPWriter.modifyRadd(LDAPWriter.java:885) at oracle.ldap.odip.gsi.LDAPWriter.writeChanges(LDAPWriter.java:378) at oracle.ldap.odip.web.DIPSyncBean.mapExecute(DIPSyncBean.java:748) at oracle.ldap.odip.web.DIPSyncBean.execMapping(DIPSyncBean.java:477) at oracle.ldap.odip.web.DIPSyncBean.doOneIteration(DIPSyncBean.java:355) at oracle.ldap.odip.web.DIPSync_2r3ocw_EOImpl.doOneIteration(DIPSync_2r3ocw_EOImpl.java:65) at oracle.ldap.odip.web.SyncQuartzJobImpl.execute(SyncQuartzJobImpl.java:178) at org.quartz.core.JobRunShell.run(JobRunShell.java:202) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:529)
    No Bugmate found.