Menu

#229 ClassNotFound error on 3.6 SR1 + Mac

closed-fixed
9
2011-12-17
2011-10-04
No

When trying to connect to a redmine server. I get the following error validating the connection

Parsing of InputStream failed
javax.xml.bind.JAXBException
- with linked exception:
[java.lang.ClassNotFoundException: com.sun.xml.bind.v2.ContextFactory]

Discussion

  • Miquel Martin

    Miquel Martin - 2011-10-11

    I am reproduing the bug on:
    - Eclipse Indigo
    - Mylyn Connector: Redmine 0.2.99.201107180633
    - Mylyn Connector: Redmine - Redmine-Plugin-Support 0.1.0.201107180633

    Also, this might be a coincidence, but the appearance of the bug coincided with the installation of the google plugin for gwt.

    Can I help with any tests?

     
  • Sven Krzyzak

    Sven Krzyzak - 2011-10-11

    > Redmine 0.2.99.201107180633
    This is really a little bit outdated.

     
  • Raphael Charwot

    Raphael Charwot - 2011-10-17

    I can reproduce this bug with
    * Eclipse Indigo (+ all updates as of today)
    * Mylyn Connector: Redmine 0.3.4.201109150625
    * Redmine 1.2.1.stable
    * Redmine Mylyn Connector plugin 2.7.5.stable

    Any interaction with the repository causes the following error:
    javax.xml.bind.JAXBException
    - with linked exception:
    [java.lang.ClassNotFoundException: com.sun.xml.bind.v2.ContextFactory]
    at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:187)
    at javax.xml.bind.ContextFinder.find(ContextFinder.java:376)
    at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:574)
    at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:522)
    at net.sf.redmine_mylyn.internal.api.parser.JaxbParser.getUnmarshaller(JaxbParser.java:94)
    at net.sf.redmine_mylyn.internal.api.parser.JaxbParser.parseInputStream(JaxbParser.java:75)
    at net.sf.redmine_mylyn.internal.api.parser.JaxbParser.parseInputStream(JaxbParser.java:60)
    at net.sf.redmine_mylyn.internal.api.parser.TypedParser.parseResponse(TypedParser.java:17)
    at net.sf.redmine_mylyn.internal.api.client.AbstractClient.executeMethod(AbstractClient.java:112)
    at net.sf.redmine_mylyn.internal.api.client.AbstractClient.executeMethod(AbstractClient.java:74)
    at net.sf.redmine_mylyn.internal.api.client.Api_2_7_ClientImpl.getUpdatedIssueIds(Api_2_7_ClientImpl.java:178)
    at net.sf.redmine_mylyn.internal.core.client.Client.getUpdatedIssueIds(Client.java:102)
    at net.sf.redmine_mylyn.core.RedmineRepositoryConnector.preSynchronization(RedmineRepositoryConnector.java:281)
    at org.eclipse.mylyn.internal.tasks.core.sync.SynchronizeQueriesJob.preSynchronization(SynchronizeQueriesJob.java:294)
    at org.eclipse.mylyn.internal.tasks.core.sync.SynchronizeQueriesJob.run(SynchronizeQueriesJob.java:197)
    at org.eclipse.mylyn.internal.tasks.core.sync.SynchronizeRepositoriesJob.updateQueries(SynchronizeRepositoriesJob.java:186)
    at org.eclipse.mylyn.internal.tasks.core.sync.SynchronizeRepositoriesJob.run(SynchronizeRepositoriesJob.java:142)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
    Caused by: java.lang.ClassNotFoundException: com.sun.xml.bind.v2.ContextFactory
    at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
    at org.eclipse.core.runtime.internal.adaptor.ContextFinder.loadClass(ContextFinder.java:131)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
    at javax.xml.bind.ContextFinder.safeLoadClass(ContextFinder.java:481)
    at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:185)
    ... 17 more

    eclipse.buildId=M20110909-1335
    java.version=1.6.0_26
    java.vendor=Apple Inc.
    BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=de_AT

     
  • Anonymous

    Anonymous - 2011-10-25

    I can also reproduce in my Linux box.
    The bug just showed up when I performed the update of my Eclipse to the Service Release 1.

    - Ubuntu 11.04
    - Java 1.6.0_26
    - Eclipse Indigo Service Release 1 Build id: 20110916-0149
    - Redmine 1.2.1.stable
    - Redmine Mylyn Connector plugin 2.7.5.stable

     
  • Sven Krzyzak

    Sven Krzyzak - 2011-10-27

    Which edition of Eclipse you are using? Java? JEE? STS?
    Which plugins have you additionally installed?

     
  • Anonymous

    Anonymous - 2011-10-27

    Hi Sven, I'm using JEE. When I install redmine-mylyn plugin on a clean indigo jee it works.

    When I start from the clean Eclipse JEE, install m2e (for example) and after install redmine-mylyn, it breaks. When it happens, after removing/reinstalling redmine-mylyn, the problem disappears. This scenario is also reproducible on win32.

     
  • Anonymous

    Anonymous - 2011-10-27

    Once my environment is stable (redmine mylyn connector working), when I close eclipse and reopen it with "-clean" option, the problem shows up again.

     
  • skalimer0

    skalimer0 - 2011-10-28

    I have the same configuration that racha.
    * Eclipse Indigo (+ all updates as of today)
    * Mylyn Connector: Redmine 0.3.4.201109150625
    * Redmine 1.2.1.stable
    * Redmine Mylyn Connector plugin 2.7.5.stable

    and the same error !! :-(

    javax.xml.bind.JAXBException
    - with linked exception:
    [java.lang.ClassNotFoundException: com.sun.xml.bind.v2.ContextFactory]

     
  • Anonymous

    Anonymous - 2011-11-03

    I have the same issue...

    Eclipse 3.7.1.r37
    MylinConnector:Redmine:0.3.4

    RedMine 1.2.1.

    Thanks for your help (and keep up the good work, plugin is great).

    JM

     
  • Anonymous

    Anonymous - 2011-11-03

    Forgot to mention that I am not on Mac, but Windows 7 64 bits (not sure it matters).

    JM

     
  • Sven Krzyzak

    Sven Krzyzak - 2011-11-05
    • status: open --> open-accepted
     
  • Sven Krzyzak

    Sven Krzyzak - 2011-11-05

    OK, now I can reproduce the problem. Please be patient ...

     
  • Sven Krzyzak

    Sven Krzyzak - 2011-11-05
    • priority: 5 --> 9
     
  • Anonymous

    Anonymous - 2011-11-17

    Sven, thanks a lot! This version fixes de bug.
    I tried to reproduce using "eclipse -clean" and the bug disappeared.
    Any plans for this fix in an official release?

    Kind regards.

     
  • Sven Krzyzak

    Sven Krzyzak - 2011-11-23
    • status: open-accepted --> open-fixed
     
  • Sven Krzyzak

    Sven Krzyzak - 2011-11-23

    Please update and try again

     
  • Sven Krzyzak

    Sven Krzyzak - 2011-12-04
    • status: open-fixed --> pending-fixed
     
  • Sven Krzyzak

    Sven Krzyzak - 2011-12-17

    no feedback - closed

     
  • Sven Krzyzak

    Sven Krzyzak - 2011-12-17
    • status: pending-fixed --> closed-fixed
     

Log in to post a comment.