bardsoftware / ganttproject

Official GanttProject repository.
http://ganttproject.biz
GNU General Public License v3.0
890 stars 310 forks source link

MSProject XML Generated from Clarizen Produces Dependency Loop #975

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Export MSProject XML from Clarizen
2.Import XML file to GanttProject
3.GanttChart reports Something Went Wrong (loop dependency)

What is the expected output? What do you see instead?
Expected to see a Project outlay

Get the Something Went Wrong -Failed to import dependencies 
Dependency=MC1-MK4.5->MC1-MK4.5 is looping

What version of the product are you using? On what operating system?
GanttProject 2.7 Ostrava beta II (build 1731)
GanttProject 2.6.6 Brno (build 1715)

Windows 7 Professional (64 bit) Service Pack 1

Please provide any additional information below.
Log File Output:
C:\Users\tbennett\ganttproject.log

java.class.path: eclipsito.jar;.
java.home: C:\Program Files (x86)\Java\jre7
java.ext.dirs: C:\Program Files 
(x86)\Java\jre7\lib\ext;C:\Windows\Sun\Java\lib\ext
java.io.tmpdir: C:\Users\tbennett\AppData\Local\Temp\
java.runtime.version: 1.7.0_67-b01
java.vendor: Oracle Corporation
java.vm.name: Java HotSpot(TM) Client VM
java.vm.vendor: Oracle Corporation
java.vm.version: 24.65-b04
os.arch: x86
os.name: Windows 7
os.version: 6.1
sun.java.command: org.bardsoftware.eclipsito.Boot 
ganttproject-eclipsito-config.xml -log
user.country: US
user.dir: C:\Program Files (x86)\GanttProject-2.6
user.home: C:\Users\tbennett
user.language: en
user.timezone: America/New_York

Creating main frame...
1. loading look'n'feels
no editor for column=0 class=interface javax.swing.Icon
no editor for column=1 class=interface javax.swing.Icon
no editor for column=2 class=interface javax.swing.Icon
no editor for column=0 class=interface javax.swing.tree.TreeNode
2. loading options
3. creating menus...
4. creating views...
5. calculating size and packing...
6. changing language ...
7. changing look'n'feel ...
8. finalizing...
Main frame created
Splash closed
Sep 18, 2014 4:11:52 PM net.sourceforge.ganttproject.GPLogger logToLogger
WARNING: Failed to import dependencies
net.sf.mpxj.MPXJException: Failed to import dependencies
    at biz.ganttproject.impex.msproject2.ProjectFileImporter.run(ProjectFileImporter.java:204)
    at biz.ganttproject.impex.msproject2.ImporterFromMsProjectFile.run(ImporterFromMsProjectFile.java:63)
    at net.sourceforge.ganttproject.importer.ImportFileWizardImpl.onOkPressed(ImportFileWizardImpl.java:66)
    at net.sourceforge.ganttproject.gui.projectwizard.WizardImpl$3.actionPerformed(WizardImpl.java:86)
    at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
    at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
    at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
    at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
    at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
    at java.awt.Component.processMouseEvent(Unknown Source)
    at javax.swing.JComponent.processMouseEvent(Unknown Source)
    at java.awt.Component.processEvent(Unknown Source)
    at java.awt.Container.processEvent(Unknown Source)
    at java.awt.Component.dispatchEventImpl(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Window.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
    at java.awt.EventQueue.access$200(Unknown Source)
    at java.awt.EventQueue$3.run(Unknown Source)
    at java.awt.EventQueue$3.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
    at java.awt.EventQueue$4.run(Unknown Source)
    at java.awt.EventQueue$4.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
    at java.awt.WaitDispatchSupport$2.run(Unknown Source)
    at java.awt.WaitDispatchSupport$4.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.awt.WaitDispatchSupport.enter(Unknown Source)
    at java.awt.Dialog.show(Unknown Source)
    at java.awt.Component.show(Unknown Source)
    at java.awt.Component.setVisible(Unknown Source)
    at java.awt.Window.setVisible(Unknown Source)
    at java.awt.Dialog.setVisible(Unknown Source)
    at net.sourceforge.ganttproject.DialogBuilder$DialogImpl.show(DialogBuilder.java:144)
    at net.sourceforge.ganttproject.gui.projectwizard.WizardImpl.show(WizardImpl.java:139)
    at net.sourceforge.ganttproject.action.project.ProjectImportAction.actionPerformed(ProjectImportAction.java:47)
    at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
    at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
    at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
    at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
    at javax.swing.AbstractButton.doClick(Unknown Source)
    at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
    at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown Source)
    at java.awt.Component.processMouseEvent(Unknown Source)
    at javax.swing.JComponent.processMouseEvent(Unknown Source)
    at java.awt.Component.processEvent(Unknown Source)
    at java.awt.Container.processEvent(Unknown Source)
    at java.awt.Component.dispatchEventImpl(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Window.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
    at java.awt.EventQueue.access$200(Unknown Source)
    at java.awt.EventQueue$3.run(Unknown Source)
    at java.awt.EventQueue$3.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
    at java.awt.EventQueue$4.run(Unknown Source)
    at java.awt.EventQueue$4.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: 
net.sourceforge.ganttproject.task.dependency.TaskDependencyException: 
Dependency=MC1-MK4.5->MC1-MK4.5 is looping
    at net.sourceforge.ganttproject.task.dependency.TaskDependencyCollectionImpl.addDependency(TaskDependencyCollectionImpl.java:254)
    at net.sourceforge.ganttproject.task.dependency.TaskDependencyCollectionImpl.createDependency(TaskDependencyCollectionImpl.java:102)
    at net.sourceforge.ganttproject.task.dependency.TaskDependencyCollectionImpl.createDependency(TaskDependencyCollectionImpl.java:95)
    at net.sourceforge.ganttproject.task.dependency.TaskDependencyCollectionImpl.createDependency(TaskDependencyCollectionImpl.java:89)
    at biz.ganttproject.impex.msproject2.ProjectFileImporter.importDependencies(ProjectFileImporter.java:601)
    at biz.ganttproject.impex.msproject2.ProjectFileImporter.run(ProjectFileImporter.java:195)
    ... 87 more

Sep 18, 2014 4:11:57 PM net.sourceforge.ganttproject.GPLogger log
INFO: [GanttOptions] save(): finished!!
no editor for column=0 class=interface javax.swing.Icon
no editor for column=1 class=interface javax.swing.Icon
no editor for column=2 class=interface javax.swing.Icon
no editor for column=0 class=interface javax.swing.tree.TreeNode
Sep 18, 2014 4:11:57 PM org.bardsoftware.impl.eclipsito.BootImpl shutdown
INFO: Eclipsito platform is shut down.

Original issue reported on code.google.com by tjbe...@gmail.com on 18 Sep 2014 at 8:13

GoogleCodeExporter commented 9 years ago
Can you share a project file?

Original comment by dbaras...@ganttproject.biz on 18 Sep 2014 at 8:15

GoogleCodeExporter commented 9 years ago
Is it possible to email direct as it is a corporate project not a personal
one?

Original comment by tjbe...@gmail.com on 18 Sep 2014 at 11:45

GoogleCodeExporter commented 9 years ago
Yes, you can find contact email on http://ganttproject.biz/about

Original comment by dbaras...@ganttproject.biz on 18 Sep 2014 at 11:46

GoogleCodeExporter commented 9 years ago
In the provided file task ids are missing, while GanttProject relies on ID 
existence. However, ID seems to be optional so we should use UID in case if ID 
is not found.

Original comment by dbarashev on 22 Sep 2014 at 6:54

GoogleCodeExporter commented 9 years ago
This issue was updated by revision 7e56a902bae4.

Original comment by dbarashev on 22 Sep 2014 at 7:17

GoogleCodeExporter commented 9 years ago
Tried to import the Clarizen generated MSProject xml file and it results in a 
Java heap space error. Is this just an uneducated user error issue?:

/home/tjbenne/.ganttproject.d/.ganttproject-20140926130913.log

java.class.path: 
:/home/tjbenne/test_src/ganttproject/ganttproject-builder/dist-bin/eclipsito.jar
:/home/tjbenne/test_src/ganttproject/ganttproject-builder/dist-bin
java.home: /usr/lib/jvm/java-7-openjdk-amd64/jre
java.ext.dirs: 
/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/ext:/usr/java/packages/lib/ext
java.io.tmpdir: /tmp
java.runtime.version: 1.7.0_65-b32
java.vendor: Oracle Corporation
java.vm.name: OpenJDK 64-Bit Server VM
java.vm.vendor: Oracle Corporation
java.vm.version: 24.65-b04
os.arch: amd64
os.name: Linux
os.version: 3.13.0-36-generic
sun.java.command: org.bardsoftware.eclipsito.Boot 
ganttproject-eclipsito-config.xml -log -log_file 
/home/tjbenne/.ganttproject.d/.ganttproject-20140926130913.log
user.country: CA
user.dir: /home/tjbenne/test_src/ganttproject/ganttproject-builder/dist-bin
user.home: /home/tjbenne
user.language: en
user.timezone: America/Toronto

Creating main frame...
1. loading look'n'feels
no editor for column=0 class=interface javax.swing.Icon
no editor for column=1 class=interface javax.swing.Icon
no editor for column=2 class=interface javax.swing.Icon
2. loading options
3. creating menus...
4. creating views...
5. calculating size and packing...
6. changing language ...
7. changing look'n'feel ...
8. finalizing...
Main frame created
Splash closed
Sep 26, 2014 1:09:56 PM net.sourceforge.ganttproject.GPLogger logToLogger
WARNING: Java heap space
java.lang.OutOfMemoryError: Java heap space
    at java.util.LinkedHashMap.createEntry(LinkedHashMap.java:442)
    at java.util.HashMap.addEntry(HashMap.java:884)
    at java.util.LinkedHashMap.addEntry(LinkedHashMap.java:427)
    at java.util.HashMap.put(HashMap.java:505)
    at biz.ganttproject.core.calendar.WeekendCalendarImpl.setPublicHolidays(WeekendCalendarImpl.java:297)
    at biz.ganttproject.impex.msproject2.ProjectFileImporter.importCalendar(ProjectFileImporter.java:242)
    at biz.ganttproject.impex.msproject2.ProjectFileImporter.run(ProjectFileImporter.java:192)
    at biz.ganttproject.impex.msproject2.ImporterFromMsProjectFile.run(ImporterFromMsProjectFile.java:66)
    at net.sourceforge.ganttproject.importer.FileChooserPage$1.run(FileChooserPage.java:83)
    at net.sourceforge.ganttproject.wizard.AbstractWizard.onOkPressed(AbstractWizard.java:168)
    at net.sourceforge.ganttproject.wizard.AbstractWizard$3.actionPerformed(AbstractWizard.java:96)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018)
    at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2341)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
    at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:289)
    at java.awt.Component.processMouseEvent(Component.java:6516)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3311)
    at java.awt.Component.processEvent(Component.java:6281)
    at java.awt.Container.processEvent(Container.java:2229)
    at java.awt.Component.dispatchEventImpl(Component.java:4872)
    at java.awt.Container.dispatchEventImpl(Container.java:2287)
    at java.awt.Component.dispatchEvent(Component.java:4698)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4492)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)
    at java.awt.Container.dispatchEventImpl(Container.java:2273)
    at java.awt.Window.dispatchEventImpl(Window.java:2719)
    at java.awt.Component.dispatchEvent(Component.java:4698)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:735)
    at java.awt.EventQueue.access$200(EventQueue.java:103)

Original comment by tjbe...@gmail.com on 26 Sep 2014 at 5:12

GoogleCodeExporter commented 9 years ago
Please share a project file. 

Original comment by dbaras...@ganttproject.biz on 26 Sep 2014 at 5:27

GoogleCodeExporter commented 9 years ago
I shall resend the file I sent originally - I had tested the latest release of 
ganttproject as I was of the impression you had added a check to accept task id 
as optional. 

I will send it email

Original comment by tjbe...@gmail.com on 26 Sep 2014 at 8:22

GoogleCodeExporter commented 9 years ago
I didn't have any problems with your file after I fixed UID/ID problem, but I 
didn't publish that build either (FYI: release is when we change the version 
number and publish installers for all platforms, the latest is 2.6.6 in April). 
Did you compile build with the fix yourself?

Original comment by dbaras...@ganttproject.biz on 26 Sep 2014 at 8:26

GoogleCodeExporter commented 9 years ago
Tried ... i may have messed up the compile or patch :-)

Original comment by tjbe...@gmail.com on 26 Sep 2014 at 9:25

GoogleCodeExporter commented 9 years ago
Just checked again and compiled the latest source from the github repos -
used ant (default build).

The same result was noted of a Java heap space error -

Is there any special build directive other than using "ant" to build the
project?

I have tried using the latest source and the source from the commit "- Use
task UID if Task ID is missing Update issue #975"

Unless there is a special build requirement that I am missing neither
builds manage to get past the java heap issue.

Original comment by tjbe...@gmail.com on 29 Sep 2014 at 1:49

GoogleCodeExporter commented 9 years ago
Okay, apparently in my test configuration Java VM is given more memory than in 
ganttproject launcher script. You can 'ganttproject' file which is produced by 
build and replace -Xmx256m with -Xmx512m 

512M should be enough but if you have bigger projects, just add more memory 
with this argument.

Original comment by dbaras...@ganttproject.biz on 29 Sep 2014 at 9:01

GoogleCodeExporter commented 9 years ago
Thank you for that note - the project loads successfully for me now.

Great project ... 

Original comment by tim.benn...@machinetelemetry.com on 29 Sep 2014 at 9:09

GoogleCodeExporter commented 9 years ago

Original comment by dbarashev on 7 Nov 2014 at 4:43

GoogleCodeExporter commented 9 years ago

Original comment by dbaras...@ganttproject.biz on 11 Nov 2014 at 10:36

GoogleCodeExporter commented 9 years ago

Original comment by dbarashev on 22 Jan 2015 at 5:02

GoogleCodeExporter commented 9 years ago
Closing all tickets with status "FeelFreeToTest". Feel free to reopen if the 
issue is still reproducible.

Original comment by dbaras...@ganttproject.biz on 18 Mar 2015 at 3:39