Menu

#146 freeze when saving

1.8
open
nobody
save (2)
Other
Unix_Other
Gnone
ubuntu 18
Import/Export
Blocker
2019-03-26
2018-08-28
No

it happens with version 1.7 and 1.8 whenever I save a file projectlibre freezes, however I could save as for once, after it no new changes are stored.
this error is found
Exception in thread "saveProject" java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException
at com.projity.server.data.MSPDISerializer.serializeProject(Unknown Source)
at com.projity.server.data.MSPDISerializer.serializeProject(Unknown Source)
at com.projity.server.data.MSPDISerializer.saveProject(Unknown Source)
at com.projity.exchange.MicrosoftImporter.saveProject(Unknown Source)
at com.projity.exchange.LocalFileImporter.exportFile(Unknown Source)
at com.projity.exchange.LocalFileImporter$2.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)
Caused by: java.lang.ClassNotFoundException: javax.xml.bind.JAXBException
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:582)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:190)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:499)
... 11 more

Discussion

  • rolandog

    rolandog - 2018-09-18

    I can confirm this is happening as well to me with version 1.6.2 on Ubuntu 18.04. I upgraded to 1.8.0-1 but presented the same problem:

    Exception in thread "saveProject" java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException
        at com.projity.server.data.MSPDISerializer.serializeProject(Unknown Source)
        at com.projity.server.data.MSPDISerializer.serializeProject(Unknown Source)
        at com.projity.server.data.MSPDISerializer.saveProject(Unknown Source)
        at com.projity.exchange.MicrosoftImporter.saveProject(Unknown Source)
        at com.projity.exchange.LocalFileImporter.exportFile(Unknown Source)
        at com.projity.exchange.LocalFileImporter$2.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)
    Caused by: java.lang.ClassNotFoundException: javax.xml.bind.JAXBException
        at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:582)
        at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:190)
        at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:499)
        ... 11 more
    

    What can I do to help debug this issue?

     
  • report4bug

    report4bug - 2018-09-28

    Hello
    I have the same problem using Ubuntu-Mate 18.04.1 and the projectlibre_1.8.0-1.deb.

    The problem does not exist when using "MX Linux" (Debian based) in a VM.

    The problem does exist when using openSUSE Leap 15 with the KDE desktop and the package projectlibre 1.7.0-lp150.1.5 in a VM. This is of course an "rpm" package.

    Another java-based program, Freeplane, works as expected on Ubuntu-Mate 18.04.1.

    Summary:
    It appears that Ubuntu 18.04 based distributions and openSUSE Leap 15 are unable to run projectLibre. This is an extensive problem.

    Suggestion:
    Have you considered making a "Flatpak" or a "Snap" package to achieve greater stability?

     

    Last edit: report4bug 2018-09-28
  • Neil James Devine

    I have the same problem.

    I worked around it by installing oracle java 8 and set it to the default

    sudo add-apt-repository ppa:webupd8team/java
    sudo apt install oracle-java8-installer
    

    and then

    sudo update-alternatives --config java
    
     
    • Zoltan T

      Zoltan T - 2019-01-17

      Unfortunately the ppa seems to be down...

      Cannot add PPA: 'ppa:~webupd8team/ubuntu/java'.
      ERROR: '~webupd8team' user or team does not exist.
      
       
  • Tony E

    Tony E - 2019-01-29

    I'm on Debian 10 with openJDK 11 and have same problem. Downgrade of used by default version of Java to version 8 helps me. Java have many changes after 10th version, I think problem with it.

    What I do:

    1. Checkfor jdk 8:
    sudo update-java-alternatives --list
    

    Install JDK8 if not, then switch to version 8:

    sudo update-alternatives --config java
    

    After this I have unlimited saves of my project)

    P.S.: if you using another java apps that wants higher versions of Java -right way to change used version of Java only for ProjectLibre, hope google can help with it.

     
  • Laurent Chretienneau

    The javax/xml/bind/JAXBException is because JAXB library is no longer loaded by default in JDK 9, 10 and 11 .
    For JDK 9 and 10 the option:
    --add-modules java.xml.bind
    should load it.
    But in JDK 11 the JAXB library isn't included so the best for the next ProjectLibre releases will be to include the missing libraries.

     
  • N. Z.

    N. Z. - 2019-03-22

    just to make sure I understand this right:

    in JDK 9 and 10 I could start projectlibre with:
    java --add-modules java.xml.bind projectlibre

    in JDK 11 I couldn't change the behavior because I had add the JAXB as a dependency to the project code.

    Is there a possibility to add this in JDK 11 manually to the existing deb?
    And if yes, how exactly?

    TIA

     
  • Marcel Braun

    Marcel Braun - 2019-03-26

    ProjectLibre 1.9 is also affected. Only JDK 8 works.

     

Log in to post a comment.

MongoDB Logo MongoDB