SAP Knowledge Base Article - Public

2404547 - Error in Import Data: java null pointer exception - LMS

Symptom

Admin is experiencing following error message when trying to import data into LMS by using import tool:

"com.plateausystems.elms.bo.entityimport.api.EntityImportServiceException: Error in importData()
at com.plateausystems.elms.bo.entityimport.impl.EntityImportServiceImpl.importData(EntityImportServiceImpl.java:416)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)........"

Environment

Learning Management System (LMS)

Reproducing the Issue

  1. Navigate to System Admin ->Tools -> ImportData
  2. Select "Registrations" as a record type
  3. Select "Add" as import option
  4. Import file with few users in order to enroll them to SO
  5. Submit
  6. Run background job by clicking on Finish button
  7. Job finished with status FAILED
  8. Once you check in DB in table PA_SCHEDULED_JOB, you can see the error mentioned above

Cause

The issue is caused by the fact that admin notification email was not set up in systemAdmin

Resolution

  1. Go to System Admin -> Configuration -> Global Variables -> Mail tab
  2. Setup Admin Notification Email. For example:

    2404547.jpg

  3. Click on Apply Changes
  4. Error won't appear anymore

See Also

  • 2420708 - Cannot Add/Import User
  • 2361911 - Error generated when importing learning history data
  • 2387756 - How Import data functionality works on custom column entities - SuccessFactors LMS
  • 2282369 - LMS: Importing admin roles via the Import Data Tool with domain restrictions
  • 2285788 - How to avoid date/time issues when importing via the Import Data Tool

Keywords

import data for registrations, java null pointer expection when importing data, at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309), at framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183), proceed(ReflectiveMethodInvocation.java:150),  com.plateausystems.elms.framework.usagestatistics.impl.UsageStatisticsInterceptor.invoke(UsageStatisticsInterceptor.java:66),proceed(ReflectiveMethodInvocation.java:172), authorization.impl.ServiceAuthorizationInterceptor.invoke(ServiceAuthorizationInterceptor.java:127),localization.DataLocalizationInterceptor.invoke(DataLocalizationInterceptor.java:72)
org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110),org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172), at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202),at $Proxy1286.importData(Unknown Source)
at com.plateausystems.elms.framework.jobscheduling.impl.EntityImportBackgroundJob.execute(EntityImportBackgroundJob.java:75), com.plateau.common.jobscheduling.impl.simple.SimpleJobRunnable.run(SimpleJobRunnable.java:85)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110), at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603),at java.lang.Thread.run(Thread.java:789), Caused by: java.lang.NullPointerException,at java.util.Arrays$ArrayList.<init>, Arrays.java:2842), at java.util.Arrays.asList(Arrays.java:2828), at com.plateau.common.core.api.ValidationErrorVOX.<init>(ValidationErrorVOX.java:66),at com.plateau.common.core.api.ValidationResultVOX.addError(ValidationResultVOX.java:91), at com.plateausystems.elms.bo.entityimport.impl.RegistrationsImportServiceHandlerImpl.addImportEntity(RegistrationsImportServiceHandlerImpl.java:235), at DefaultEntityImportServiceHandlerImpl.importEntity(DefaultEntityImportServiceHandlerImpl.java:45), at DefaultDataImportRowProcessor.processImportDataRow(DefaultDataImportRowProcessor.java:123)
at sun.reflect.GeneratedMethodAccessor2888.invoke(Unknown Source),at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43), at java.lang.reflect.Method.invoke(Method.java:601), at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309), at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
at $Proxy1284.processImportDataRow(Unknown Source), at com.plateausystems.elms.bo.entityimport.impl.EntityImportServiceImpl.importData(EntityImportServiceImpl.java:379), ... 22 more" , KBA , LOD-SF-LMS-ADM , Admin Tools , LOD-SF-LMS-BCJ , LMS Background Jobs , Problem

Product

SAP SuccessFactors Learning all versions

Attachments

Error.txt