I have been using MPXJ for a while but Project 2010 format is really a headache after I upgraded MPXJ to 4.0.0.
I ran a project that accesses Project file through a web request. When it tried to access a file saved as 2010 format it failed, but it worked with 2007 format.
In the server log it says:
java.lang.ArrayIndexOutOfBoundsException: 41517
at net.sf.mpxj.mpp.MPPUtility.getShort(MPPUtility.java:196)
at net.sf.mpxj.mpp.GanttBarStyleFactory14.processDefaultStyles(GanttBarStyleFactory14.java:53)
at net.sf.mpxj.mpp.GanttChartView14.processDefaultBarStyles(GanttChartView14.java:61)
at net.sf.mpxj.mpp.GanttChartView.<init>(GanttChartView.java:157)
at net.sf.mpxj.mpp.GanttChartView14.<init>(GanttChartView14.java:420)
at net.sf.mpxj.mpp.ViewFactory14.createView(ViewFactory14.java:56)
at net.sf.mpxj.mpp.MPP14Reader.processViewData(MPP14Reader.java:2976)
at net.sf.mpxj.mpp.MPP14Reader.process(MPP14Reader.java:182)
at net.sf.mpxj.mpp.MPPReader.read(MPPReader.java:74)
at net.sf.mpxj.reader.AbstractProjectReader.read(AbstractProjectReader.java:66)
in which 41517 seems to be a random number because I can't find it in the mpp file. If I save the file as 2007 format MPXJ 4.0 can access the file without any problem. I think it might be a bug related to the new format.
Do you have a sample file you could attach to this, or send to me directly?
Thanks!
Jon
Joniles, I am sorry I can't attach the file here because the file contains all the names of our staff and our clients and my boss think it is confidential. But if you want to know any other further information I would like to do my best to help you identify the bug.
Sam
Hi,
you can email me sensitive files directly. I'm happy to deal with these under NDA if required. I regularly handle this type of material for other commercial users of MPXJ. Failing that, there is a utility shipped as part of the MPXJ distribution called MppClean which strips out all text and replaces it with X's, while preserving the structure of the file (and hence the problems!) - once you'cve "cleaned" the file, you could send me that version directly.
Cheers!
Jon
Hi,
I believe that this is fixed by the code now in CVS. Let me know if you still have problems.
Jon