ClassNotFound error on 3.6 SR1 + Mac
Status: Inactive
Brought to you by:
atrito
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]
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?
> Redmine 0.2.99.201107180633
This is really a little bit outdated.
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
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
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
Which edition of Eclipse you are using? Java? JEE? STS?
Which plugins have you additionally installed?
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
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.
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
Once my environment is stable (redmine mylyn connector working), when I close eclipse and reopen it with "-clean" option, the problem shows up again.
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]
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
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
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
Forgot to mention that I am not on Mac, but Windows 7 64 bits (not sure it matters).
JM
OK, now I can reproduce the problem. Please be patient ...
I have solved the problem (I hope so).
An archived update site for testing purposes can be downloaded from
http://sourceforge.net/projects/redmin-mylyncon/files/eclipse-plugin-indigo-jee.tgz/download
Just download, unzip and install as local update site
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
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.
Please update and try again
no feedback - closed