Nija Shah

Greenhorn
+ Follow
since Nov 12, 2008
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Nija Shah

I unchecked the Actual costs calculation checkbox in Tools --> Options --> Calculation. I saved the mpp file and then when I read the mpp file projectHeader.getEditableActualCosts shows up as false. Is this a known bug or am I looking at the wrong field ? I save the mpp as xml and this tag is infact true. Am I doing something incorrectly ?

thanks!
I set the days per month in Tools --> Options --> Calendar to be 30 days. I saved the mpp file and then when I read the mpp file projectHeader.getDaysPerMonth still says 20 days. Is this a known bug or am I looking at the wrong field ? I save the mpp as xml and this tag is infact 30... any help much appreciated.
Some of our project support a 24 hour calendar and I want to be able to export it to msp. Any know how I can set a 24 hour calendar on ProjectFile ? I can see there's a way to set a new base calendar, but I'm wondering if there's a calendar already by the name "24 hour" just like in MSP ?

thanks
Nija
Hi Martjin,

Sorry for the late response. Was on vacation. I got past the jaxbexception. Turned out I still had jaxb 1.0 in my codebase taking precedence over the 2.0 I placed elsewhere. Now that I have 2.0 in all the right places, I'm able to import/export xml files !

thanks for the suggestions !
Nija
[ November 20, 2008: Message edited by: Nija Shah ]
Also, at the bottom of the stack I noticed it is still looking for the properties file

Caused by: javax.xml.bind.JAXBException: Unable to locate jaxb.properties for package net.sf.mpxj.mspdi.schema
at javax.xml.bind.ContextFinder.searchcontextPath(ContextFinder.java:205)
at javax.xml.bind.ContextFinder.find(ContextFinder.java:149)
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:281)
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:238)
at net.sf.mpxj.mspdi.MSPDIReader.read(MSPDIReader.java:106)
... 27 more
Hi Marijn,
Looks like a jaxbException... Here's the stack.
wt.util.WTException: net.sf.mpxj.MPXJException: Failed to parse file
Nested exception is: net.sf.mpxj.MPXJException: Failed to parse file
at net.sf.mpxj.mspdi.MSPDIReader.read(MSPDIReader.java:153)
at com.ptc.projectmanagement.msproject.MspImporter.constructPlanHierarchy(MspImporter.java:387)
I am trying to use mpxj to read from and write to an xml file but I am getting a jaxb error "Failed to parse file". I can see that it fails at this line on the MSPDIReader

JAXBContext context = JAXBContext.newInstance ("net.sf.mpxj.mspdi.schema");

I have installed the jaxb and other jar files in the right location. One thing I did notice was the the poi jar shipped with mpxj was a newer one, so I replaced my old version with the new one. Any suggestions on getting past this much appreciated.

thanks