Jump to content
  • XMLGrammarPoolImpl class cast error in MyEclipse 2016


    bigleehimself
    Assigned User Massimo Rabbi
    CategoryBug report
    PriorityNormal
    ReproducibilityRandom
    ResolutionNo Change Required
    SeverityMinor
    StatusClosed

    I can occasionally get Jaspersoft Studio to work in MyEclipse for a while but, more often than not it fails to launch correctly. It pops an error window then opens with teh Design pane empty and the Preview pane missing.

     

    In the MyEclipse about screen it says:

    MyEclipse Enterprise Workbench

     

    Version: 2016 Stable 1.0

    Build id: 14.0.0-20160624

     

    And the version of Jaspersoft Studio shows as 6.0.1 final

     

    Sometimes I can make the studio load sometimes by closing all Jaspersoft Studio editors, closing the error log, cleaning and rebuilding my project, and restarting the IDE. Then -- sometimes -- I can launch using openIn>Jaspersoft Designer (Book Editor always fails).

     

    Sometimes that works and the three-pane Design/Source/Preview editor opens fine. More often I get this:

     

    java.lang.ClassCastException: org.apache.xerces.util.XMLGrammarPoolImpl cannot be cast to org.apache.xerces.xni.grammars.XMLGrammarPool

    at org.apache.xerces.impl.xs.XMLSchemaLoader.reset(Unknown Source)

    at org.apache.xerces.impl.xs.XMLSchemaValidator.reset(Unknown Source)

    at org.apache.xerces.parsers.XML11Configuration.resetCommon(Unknown Source)

    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)

    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)

    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)

    at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)

    at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)

    at org.apache.commons.digester.Digester.parse(Digester.java:1892)

    at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:297)

    at com.jaspersoft.studio.editor.AbstractJRXMLEditor.doInitModel(AbstractJRXMLEditor.java:277)

    at com.jaspersoft.studio.editor.AbstractJRXMLEditor.init(AbstractJRXMLEditor.java:238)

    at org.eclipse.ui.internal.EditorReference.initialize(EditorReference.java:361)

    at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:319)

    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

    at java.lang.reflect.Method.invoke(Method.java:497)

    at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)

    at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:898)

    at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:879)

    at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:121)

    at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:345)

    at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:264)

    at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:162)

    at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:104)

    at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:73)

    at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:55)

    at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:129)

    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:971)

    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:640)

    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:746)

    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$0(PartRenderingEngine.java:717)

    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$2.run(PartRenderingEngine.java:711)

    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)

    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:695)

    at org.eclipse.e4.ui.internal.workbench.PartServiceImpl$1.handleEvent(PartServiceImpl.java:99)

    at org.eclipse.e4.ui.services.internal.events.UIEventHandler$1.run(UIEventHandler.java:40)

    at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:186)

    at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:145)

    at org.eclipse.swt.widgets.Display.syncExec(Display.java:4761)

    at org.eclipse.e4.ui.internal.workbench.swt.E4Application$1.syncExec(E4Application.java:211)

    at org.eclipse.e4.ui.services.internal.events.UIEventHandler.handleEvent(UIEventHandler.java:36)

    at org.eclipse.equinox.internal.event.EventHandlerWrapper.handleEvent(EventHandlerWrapper.java:197)

    at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:197)

    at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:1)

    at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)

    at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)

    at org.eclipse.equinox.internal.event.EventAdminImpl.dispatchEvent(EventAdminImpl.java:135)

    at org.eclipse.equinox.internal.event.EventAdminImpl.sendEvent(EventAdminImpl.java:78)

    at org.eclipse.equinox.internal.event.EventComponent.sendEvent(EventComponent.java:39)

    at org.eclipse.e4.ui.services.internal.events.EventBroker.send(EventBroker.java:85)

    at org.eclipse.e4.ui.internal.workbench.UIEventPublisher.notifyChanged(UIEventPublisher.java:59)

    at org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(BasicNotifierImpl.java:374)

    at org.eclipse.e4.ui.model.application.ui.impl.ElementContainerImpl.setSelectedElement(ElementContainerImpl.java:171)

    at org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.showElementInWindow(ModelServiceImpl.java:494)

    at org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.bringToTop(ModelServiceImpl.java:458)

    at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.delegateBringToTop(PartServiceImpl.java:724)

    at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.bringToTop(PartServiceImpl.java:396)

    at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.showPart(PartServiceImpl.java:1166)

    at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:3234)

    at org.eclipse.ui.internal.WorkbenchPage.access$25(WorkbenchPage.java:3149)

    at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:3131)

    at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)

    at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:3126)

    at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:3090)

    at org.eclipse.ui.actions.OpenWithMenu.openEditor(OpenWithMenu.java:336)

    at org.eclipse.ui.actions.OpenWithMenu$2.handleEvent(OpenWithMenu.java:182)

    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)

    at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4362)

    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1113)

    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4180)

    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3769)

    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$4.run(PartRenderingEngine.java:1127)

    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:337)

    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1018)

    at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:156)

    at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:654)

    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:337)

    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:598)

    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)

    at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:139)

    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)

    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)

    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)

    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)

    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)

    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

    at java.lang.reflect.Method.invoke(Method.java:497)

    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:669)

    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:608)

    at org.eclipse.equinox.launcher.Main.run(Main.java:1515)

    at org.eclipse.equinox.launcher.Main.main(Main.java:1488)


    Attachments: issueDetails.zip

    User Feedback

    Recommended Comments

    Changed Status from New to Feedback Requested


    Hi, did you test with the last available version?Moreover, can you please describe the classpath of your current project classpath?Looking at the exception it appears there is a problem with the hierarchy of these classes that should be located inside the platform bundle org.apache.xerces (version 2.9.0).If you look into into MyEclipse > About > Installation Details > Plugins search box, how many Xerces related bundles do you see?Thanks.Best regards,Massimo.
    Link to comment
    Share on other sites

    As for running with the latest version that is a confusing question. I installed Jaspersoft Studio using the Eclipse "Load From Catalog" dialog which offers two versions (see attached). Both Claim to be Jaspersoft Studio and they have similar descriptions but wildly different version numbers and they seem to load from different sites. The one from "TIBCO Jaspersoft" shows version 6.0.1 and the one from Jaspersoft Corporation shows 1.1.2. I have the TIBCO (6.0.1) plugin installed and the Eclipse update software claims it is up to date.

     

    The Installation Details>Plugins search finds only one xerces-related plugin --

     

    Provider: Eclipse Orbit; Plug-in Name: Apache Xerces-j; Version: 2.9.0.v2011012111617; Plug-in Id: org.apache.xerces

     

    But, doing a search stating at the eclipse install directory finds a number of xerces jars squirreled away here and there:

     

    me@mymachine /cygdrive/c/users/me/AppData/local/MyEclipse 2016

    $ find . -name \*xerces\*

    ./configuration/org.eclipse.osgi/155/0/.cp/xercesImpl.jar

    ./configuration/org.eclipse.osgi/3/0/.cp/lib/xercesImpl-2.6.2.jar

    ./configuration/org.eclipse.osgi/32/0/.cp/libs/xercesImpl.jar

    ./plugins/com.genuitec.eclipse.icefaces_13.0.0.me201602031002/data/1.6.1/ICEfaces/xercesImpl.jar

    ./plugins/com.genuitec.eclipse.j2eedt.core_13.0.0.me201605020208/data/libraryset/JSTL1.0/lib/xercesImpl.jar

    ./plugins/com.genuitec.eclipse.j2eedt.core_13.0.0.me201605020208/lib/xerces.jar

    ./plugins/com.genuitec.eclipse.uml_13.0.0.me201607130633/lib/xercesImpl-2.6.2.jar

    ./plugins/org.apache.xerces_2.9.0.v201101211617.jar

    ./plugins/org.jboss.tools.common_2.0.0.me201602031002/lib/xercesImpl.jar

     

    That is seven different copies of xercesImpl.jar.

     

    My copy of Eclipse is Genuitec's MyEclipse 2016 and I think it is Genuitec's latest "stable" version of everything. I am sure there are more recent versions of Eclipse if I went straight there rather than using the one packaged up as MyEclipse.

     

    I Googled for others having my same problem and I found an iReport designer issue from last year that reported the same error message and posted a stack trace that was identical to mine in the first dozen items on the stack. There doesn't seem to be any resolution to that issue which is here: http://community.jaspersoft.com/ireport-designer/issues/5256

     

    Thanks for taking the time to try to help me.

     

    Link to comment
    Share on other sites

    Changed Assigned User from - to @mrabbi


    Hi,for sure there are a lot of implementations of Xerces and this could cause problems in terms of possible classpath conflicts. By the way the references in *configuration* folder should be the ones in plugin folder once expanded. About the MyEclipse Marketplace I have no idea of how it works and why it is presenting those two different old versions. Eclipse Marketplace (standard one) should propose you the last available official one that is JSS 6.3.1.Just in case you can enter manually the update site: http://jasperstudio.sf.net/updatesIn the meanwhile I will give a read to the thread you pointed out. Just in case attach the JRXML (even a simple one) that is causing you the issue. I will try to grab the MyEclipse trail version from their website a check.Best regards,Massimo.
    Link to comment
    Share on other sites

    Back with an update. I got a bit sidetracked by a bug in MyEclipse. The distribution I was using came with its own copy of the Java JRE and the JRE they are shipping doesn't like the certificates for any signed offerings in the Eclipse Marketplace. The result was that while I could see JSS 6.3.1 Eclipse wouldn't install it. I had to try several different JREs before I found one with a working CACERT file (list of known Certifying Authorities.)

     

    Once I got past that I was able to install JSS 6.3.1 which seems to work fine.

     

    Thanks for your help. I think I am good now.

    Link to comment
    Share on other sites



    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now

×
×
  • Create New...