java.lang.NullPointerException

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.

  • Issue while revoking AD from organization
    via by Rahul Shah,
  • successful LDAP authentication results in InvocationTargetException
    via by Migrated From Jforum.net,
  • Sample ldif
    via by Jan Boon,
  • Hi, I'm using the LDAP input step. If I run the transformation from a xml file stored in the PC it works but If I execute this transformation from a repository appears the following exception: 2008/05/20 08:53:29 - LDAP Input.0 - Connected to server [xxx.xxx.xxx.xxx] with username [null] 2008/05/20 08:53:29 - LDAP Input.0 - The class used to connect is [javax.naming.directory.InitialDirContext] 2008/05/20 08:53:33 - LDAP Input.0 - The schema : com.sun.jndi.toolkit.dir.HierMemDirCtx$FlatNames@1 4aa2db 2008/05/20 08:53:33 - LDAP Input.0 - ERROR (version 3.0.3, build 569 from 2008/04/25 12:30:04): Exception 2008/05/20 08:53:33 - LDAP Input.0 - ERROR (version 3.0.3, build 569 from 2008/04/25 12:30:04): java.lang.NullPointerException 2008/05/20 08:53:33 - LDAP Input.0 - ERROR (version 3.0.3, build 569 from 2008/04/25 12:30:04): at javax.naming.directory.BasicAttributes.get(Unknown Source) 2008/05/20 08:53:33 - LDAP Input.0 - ERROR (version 3.0.3, build 569 from 2008/04/25 12:30:04): at org.pentaho.di.trans.steps.ldapinput.LDAPInput.pro cessRow (LDAPInput.java:165) 2008/05/20 08:53:33 - LDAP Input.0 - ERROR (version 3.0.3, build 569 from 2008/04/25 12:30:04) : at org.pentaho.di.trans.steps.ldapinput.LDAPInput.run (LDAPInput.java:338) 2008/05/20 08:53:33 - LDAP Input.0 - Signaling 'output done' to 1 output rowsets. 2008/05/20 08:53:33 - LDAP Input.0 - Finished processing (I=0, O=0, R=0, W=0, U=0, E=1) I've also tried with 3.1M1 and 3.1M2 versions: 2008/05/20 09:21:29 - LDAP Input.0 - Connected to server [xxx.xxx.xxx.xxx] with username [null] 2008/05/20 09:21:29 - LDAP Input.0 - The class used to connect is [javax.naming.directory.InitialDirContext] 2008/05/20 09:21:29 - LDAP Input.0 - ERROR (version 3.1.0-M2, build 709 from 2008/05/07 22:39:14): Exception : 2008/05/20 09:21:29 - LDAP Input.0 - ERROR (version 3.1.0-M2, build 709 from 2008/05/07 22:39:14): Unable to read row from LDAP 2008/05/20 09:21:29 - LDAP Input.0 - ERROR (version 3.1.0-M2, build 709 from 2008/05/07 22:39:14): at org.pentaho.di.trans.steps.ldapinput.LDAPInput.run (LDAPInput.java:378) 2008/05/20 09:21:29 - LDAP Input.0 - ERROR (version 3.1.0-M2, build 709 from 2008/05/07 22:39:14): at org.pentaho.di.trans.step.BaseStep.runStepThread (BaseStep.java:2444) 2008/05/20 09:21:29 - LDAP Input.0 - ERROR (version 3.1.0-M2, build 709 from 2008/05/07 22:39:14): at org.pentaho.di.trans.steps.ldapinput.LDAPInput.pro cessRow (LDAPInput.java:91) 2008/05/20 09:21:29 - LDAP Input.0 - ERROR (version 3.1.0-M2, build 709 from 2008/05/07 22:39:14): at org.pentaho.di.trans.steps.ldapinput.LDAPInput.get OneRow (LDAPInput.java:157) 2008/05/20 09:21:29 - LDAP Input.0 - ERROR (version 3.1.0-M2, build 709 from 2008/05/07 22:39:14) : at javax.naming.directory.BasicAttributes.get (null:-1) 2008/05/20 09:21:29 - LDAP Input.0 - Signaling 'output done' to 1 output rowsets. I've compared the attributes of the xml file and the attributes stored in the R_STEP_ATTRIBUTE table and are the same. When I use the transformation stored in the repository, the preview rows of ldap input step works and also the debug transformation but when I execute the Preview and Run makes the above exception. I don't know what's wrong or may be it's a bug?? Thanks for your help. Regards, Ferran
    via by Samatar Hassan,
    • java.lang.NullPointerException at javax.naming.directory.BasicAttributes.get(BasicAttributes.java:144) at com.thortech.xl.integration.ActiveDirectory.tcADUtilLDAPController.getAttributeValues(Unknown Source) at com.thortech.xl.integration.ActiveDirectory.tcUtilADTasks.getAttributeValue(Unknown Source) at com.thortech.xl.integration.ActiveDirectory.tcUtilADTasks.deleteGroup(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.thortech.xl.adapterGlue.ScheduleItemEvents.adpADCSDELETEGROUP.DELETEGROUP(adpADCSDELETEGROUP.java:116) at com.thortech.xl.adapterGlue.ScheduleItemEvents.adpADCSDELETEGROUP.implementation(adpADCSDELETEGROUP.java:75) at com.thortech.xl.client.events.tcBaseEvent.run(Unknown Source) at com.thortech.xl.dataobj.tcDataObj.runEvent(Unknown Source) at com.thortech.xl.dataobj.tcScheduleItem.runMilestoneEvent(Unknown Source) at com.thortech.xl.dataobj.tcScheduleItem.eventPostInsert(Unknown Source) at com.thortech.xl.dataobj.tcDataObj.insert(Unknown Source) at com.thortech.xl.dataobj.tcDataObj.save(Unknown Source) at com.thortech.xl.ejb.beansimpl.tcProvisioningOperationsBean.retryTasks(Unknown Source) at com.thortech.xl.ejb.beans.tcProvisioningOperationsSession.retryTasks(Unknown Source) at com.thortech.xl.ejb.beans.tcProvisioningOperations_b03yxm_EOImpl.retryTasks(tcProvisioningOperations_b03yxm_EOImpl.java:915) at Thor.API.Operations.tcProvisioningOperationsClient.retryTasks(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at Thor.API.Base.SecurityInvocationHandler$1.run(Unknown Source)
    No Bugmate found.