Discussion

Error java.lang.NullPointerException on MPXJ library method

January 25, 2018 - 01:10 am
0 comment(s)

Hi,

I'm getting this error message opening some MPP files (from Project 2016 usually, however not for all files)

 

MicrosoftImporter.getImportFileJob()
MicrosoftImporter.parse()
set importing true
Job Exception: importFile
java.lang.NullPointerException
    at net.sf.mpxj.mpp.GraphicalIndicatorReader.processOperandValue(Unknown Source)
    at net.sf.mpxj.mpp.GraphicalIndicatorReader.processCriteria(Unknown Source)
    at net.sf.mpxj.mpp.GraphicalIndicatorReader.processColumns(Unknown Source)
    at net.sf.mpxj.mpp.GraphicalIndicatorReader.process(Unknown Source)
    at net.sf.mpxj.mpp.MPP14Reader.processGraphicalIndicators(Unknown Source)
    at net.sf.mpxj.mpp.MPP14Reader.process(Unknown Source)
    at net.sf.mpxj.mpp.MPPReader.read(Unknown Source)
    at net.sf.mpxj.mpp.MPPReader.read(Unknown Source)
    at com.projectlibre.core.pm.exchange.MspImporter.parseProject(Unknown Source)
    at com.projectlibre.core.pm.exchange.MspImporter.parseProject(Unknown Source)
    at com.projectlibre.core.pm.exchange.MspImporter.importProject(Unknown Source)
    at com.projity.exchange.MicrosoftImporter.parse(Unknown Source)
    at com.projity.exchange.MicrosoftImporter$3.run(Unknown Source)
    at com.projity.job.Job$InternalRunnable.run(Unknown Source)
    at com.projity.job.Job.runSwing(Unknown Source)
    at com.projity.job.Job.runThread(Unknown Source)
    at com.projity.job.Job.run(Unknown Source)
    at com.projity.job.Job.run(Unknown Source)

 

Checking on MPXJ release history (http://www.mpxj.org/changes-report.html), I got the newest MPXJ 7.2.0 version, dated of 2018-01-18.

Opening the newest MPXJ from Eclipse, I ran a "net.sf.mpxj.sample.MpxjConvert" class, and I was able to convert my problematic MPP file to XML extension. After that, the XML file was opened with my ProjectLibre 1.7 with no issues.

Is there any ETA of new ProjectLibre release with MPXJ updated ?

Best regards,

CW.