Skip to Content
Former Member
Dec 15, 2015 at 12:58 AM

Export Cronjob abruptly stops with nullpointerexception


Hi All, The custom export cronjob suddenly fails with the nullpointerexception. The same jobs runs fine if its triggered again, Kindly help on this issue and let me know for any more details on the job. java.lang.NullPointerException at at de.hybris.platform.servicelayer.internal.jalo.ServicelayerJob.performCronJob( at de.hybris.platform.cronjob.jalo.Job.execute( at de.hybris.platform.cronjob.jalo.Job.performImpl( at de.hybris.platform.cronjob.jalo.Job.access$1( at de.hybris.platform.cronjob.jalo.Job$ at

code snippet:

final InputStream inCSV = new FileInputStream(exportHeaderFile); final ImpExMedia impexscript = ImpExManager.getInstance().createImpExMedia("myExportScript", "UTF-8"); impexscript.setFieldSeparator(';');

impexscript.setDataFromStream(new DataInputStream(inCSV)); final ExportConfiguration config = new ExportConfiguration(impexscript, ImpExManager.getExportOnlyMode());

/the export object is returned as null/ final Export export = ImpExManager.getInstance().exportData(config, true);

/error occurs in the below line 147/ final ImpExExportMedia expMedia = export.getExportedData();