dactonbond / rabbit-eclipse

Automatically exported from code.google.com/p/rabbit-eclipse
0 stars 0 forks source link

ClassCastException: XMLGregorianCalendarImpl preventing Eclipse to shutdown #13

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I am a fan of Rabbit plugin
I have Rabbit 1.2.0.201102121140 installed in Eclipse Java EE, Helios SR 2
(only rabbit.data.xml is in 1.2.1.201102121140 ?)

For a while (don't know precisely what have changed, maybe a new JIRA connector 
for Mylyn ?) I have ClassCastException with XMLGregorianCalendarImpl class when 
browsing the Rabbit view or every time Eclipse is closed (preventing it to 
exit).

It seems to be related to the saving process of Rabbit data into XML files.

Bellow is the top of the stack trace when Eclipse is shutdown:

java.lang.ClassCastException: 
org.apache.xerces.jaxp.datatype.XMLGregorianCalendarImpl cannot be cast to 
com.sun.org.apache.xerces.internal.jaxp.datatype.XMLGregorianCalendarImpl
    at com.sun.org.apache.xerces.internal.jaxp.datatype.XMLGregorianCalendarImpl.compare(XMLGregorianCalendarImpl.java:1446)
    at com.sun.org.apache.xerces.internal.jaxp.datatype.XMLGregorianCalendarImpl.equals(XMLGregorianCalendarImpl.java:1685)
    at rabbit.data.internal.xml.store.AbstractStorer.commit(AbstractStorer.java:110)
    at rabbit.tracking.internal.trackers.AbstractTracker.saveData(AbstractTracker.java:78)
    at rabbit.tracking.internal.trackers.AbstractTracker.setEnabled(AbstractTracker.java:90)
    at rabbit.tracking.internal.TrackingPlugin.preShutdown(TrackingPlugin.java:95)
    at org.eclipse.ui.internal.Workbench$10.run(Workbench.java:904)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
    at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)
    at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
    at org.eclipse.ui.internal.Workbench.firePreShutdown(Workbench.java:902)

Please let me know if it is a missconfiguration at my side
or if it exists a workaround.
I hope il will help to improve this nice plugin.

--
Eric

Original issue reported on code.google.com by eric...@gmail.com on 17 Mar 2011 at 11:26

GoogleCodeExporter commented 8 years ago
Hi Eric, thanks for the support.

What version of Java are you running? Rabbit uses the JAXP library that comes 
with Java 1.6 to write/read XML files, from the stack trace you provided it 
seems like there is another implementation of JAXP (Xerces-J?) loaded which is 
causing interference with the  default one.

If you could let me know what other plugins you've installed, then I might be 
able to reproduce the problem to find the root cause.

Thanks again.

Original comment by llaec...@gmail.com on 18 Mar 2011 at 1:05

GoogleCodeExporter commented 8 years ago
Hi,
I use Java SE Runtime Environment (build 1.6.0_23-b05)
I have a large number of plugins (see the plugin registry in the attached file) 
and trying to setup the same configuration might be a painful task.
I agree that the problem may be cause by a conflicting plugin (Rabbit was 
working
fine for me a month ago).
When I'll have some time, I'll try to investigate the problem and look for a 
plugin bundle that might have brought another JAXP implementation.
If I find something, I'll let you know.

Original comment by eric...@gmail.com on 18 Mar 2011 at 9:08

Attachments: