Don't have xerces installed in JRE, still unable to open xml

Having trouble installing Oxygen? Got a bug to report? Post it all here.
brigodago
Posts: 6
Joined: Wed Nov 05, 2003 9:54 pm
Contact:

Don't have xerces installed in JRE, still unable to open xml

Post by brigodago »

Hi,

I have Eclipse 3.0, oxygen 2.0.4 plugin installed.

Oxygen plugin seems to be loading fine... But when I go to open any xml file, I get the error "Unable to create part: sample.xml" and then "An error occured while creating this view".

I saw some messages about replacing the xercesImpl.jar in your JRE with the one in the oxygen plugin lib, but I don't seem to have one in my jre anywhere..

Any suggestions?

Thanks,
-Brian
george
Site Admin
Posts: 2095
Joined: Thu Jan 09, 2003 2:58 pm

Post by george »

Hi,

Oxygen has a strong dependence on Xerces. In the standalone version we use a custom class loader to make sure the one that comes with oXygen is used.

An updated oxygen.jar that shows the location of the Xerces implementation that gets used instead of the one that comes with oXygen is here:
http://www.oxygenxml.com/george/downloa ... oxygen.jar

Please replace the one you find in the plugin lib directory with this one.

Let us know how is going.

Best Regards,
George
brigodago
Posts: 6
Joined: Wed Nov 05, 2003 9:54 pm
Contact:

Post by brigodago »

Thanks George,

OK this didn't seem to work. Let me verify something with you first. I downloaded from your link and got a file called "oxygen.tar", so I renamed that to "oxygen.jar" and placed this file inside the oxygen plugin dir under lib. Is this correct?

If this is, then I did those steps and still got the error. What can we try next?

Thanks again for the help.

-Brian
george
Site Admin
Posts: 2095
Joined: Thu Jan 09, 2003 2:58 pm

Post by george »

Hi Brian,

Do you get a dialog with the new jar informing you about a wrong Xerces version ? If not then it seems the problem is not Xerces.

Check the "Error Log" view and look for the error details. Please reply with that information.

You may also try to rename or delete the com.oxygenxml directory located in your user home directory and then start the plugin. The com.oxygenxml directory contains user preferences and I remember there were some problems when these files were corrupted.

Best Regards,
George
brigodago
Posts: 6
Joined: Wed Nov 05, 2003 9:54 pm
Contact:

Post by brigodago »

Right no error... I had known about the error log for Eclipse at one point, but darned if I can find it again.. Can you tell me where that is located? I'll try deleting the pref dir from my user dir and see what happens.

Thanks,
-Brian
brigodago
Posts: 6
Joined: Wed Nov 05, 2003 9:54 pm
Contact:

Post by brigodago »

Hmmm.. Now I'm having some more global problems of being able to open my previous Java projects, getting write errors to the eclipse .metadata.... files down below. So this may or may not be related, but here is the log error if I launch Eclipse, then try to open an external sample.xml file:

Looks like there is some sort od ClassCastException related to oxygen as an underlying exception?

Thanks for your help on this!

-Brian

!SESSION Nov 07, 2003 11:52:25.641 ---------------------------------------------
java.version=1.4.2_02
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Command-line arguments: -os win32 -ws win32 -arch x86 -data c:\myworkspace -install file:C:/Program Files/eclipse/
!ENTRY org.eclipse.ui.workbench 4 2 Nov 07, 2003 11:52:25.641
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.ui.workbench".
!STACK 0
java.lang.NullPointerException
at com.oxygenxml.editor.for.if.<init>(Unknown Source)
at com.oxygenxml.editor.editors.a.a(Unknown Source)
at com.oxygenxml.editor.editors.a.c(Unknown Source)
at com.oxygenxml.editor.editors.a.<init>(Unknown Source)
at com.oxygenxml.editor.editors.char.getContentAssistant(Unknown Source)
at org.eclipse.jface.text.source.SourceViewer.configure(SourceViewer.java:299)
at org.eclipse.ui.texteditor.AbstractTextEditor.createPartControl(AbstractTextEditor.java:2062)
at org.eclipse.ui.texteditor.StatusTextEditor.createPartControl(StatusTextEditor.java:53)
at org.eclipse.ui.texteditor.ExtendedTextEditor.createPartControl(ExtendedTextEditor.java:248)
at org.eclipse.ui.internal.PartPane$4.run(PartPane.java:141)
at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1018)
at org.eclipse.core.runtime.Platform.run(Platform.java:461)
at org.eclipse.ui.internal.PartPane.createChildControl(PartPane.java:137)
at org.eclipse.ui.internal.PartPane.createControl(PartPane.java:186)
at org.eclipse.ui.internal.EditorWorkbook.createPage(EditorWorkbook.java:404)
at org.eclipse.ui.internal.EditorWorkbook.add(EditorWorkbook.java:123)
at org.eclipse.ui.internal.EditorArea.addEditor(EditorArea.java:55)
at org.eclipse.ui.internal.EditorPresentation.openEditor(EditorPresentation.java:351)
at org.eclipse.ui.internal.EditorManager$2.run(EditorManager.java:585)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:84)
at org.eclipse.ui.internal.EditorManager.createEditorTab(EditorManager.java:574)
at org.eclipse.ui.internal.EditorManager.openInternalEditor(EditorManager.java:668)
at org.eclipse.ui.internal.EditorManager.openEditorFromDescriptor(EditorManager.java:459)
at org.eclipse.ui.internal.EditorManager.openEditor(EditorManager.java:431)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2079)
at org.eclipse.ui.internal.WorkbenchPage.access$6(WorkbenchPage.java:2029)
at org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.java:2016)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:84)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2011)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:1944)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:1936)
at org.eclipse.ui.internal.editors.text.OpenExternalFileAction.run(OpenExternalFileAction.java:95)
at org.eclipse.ui.internal.editors.text.OpenExternalFileAction.run(OpenExternalFileAction.java:67)
at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:265)
at org.eclipse.ui.internal.WWinPluginAction.runWithEvent(WWinPluginAction.java:207)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:541)
at org.eclipse.jface.action.ActionContributionItem.access$4(ActionContributionItem.java:494)
at org.eclipse.jface.action.ActionContributionItem$6.handleEvent(ActionContributionItem.java:466)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:847)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2173)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1863)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2347)
at org.eclipse.ui.internal.Workbench.run(Workbench.java:2330)
at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:858)
at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.eclipse.core.launcher.Main.basicRun(Main.java:299)
at org.eclipse.core.launcher.Main.run(Main.java:765)
at org.eclipse.core.launcher.Main.main(Main.java:599)
!ENTRY org.eclipse.ui.workbench 4 2 Nov 07, 2003 11:52:31.760
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.ui.workbench".
!STACK 0
java.lang.ClassCastException
at com.oxygenxml.editor.editors.OxygenXMLEditorActionBarContributor.h(Unknown Source)
at com.oxygenxml.editor.editors.OxygenXMLEditorActionBarContributor.setActiveEditor(Unknown Source)
at org.eclipse.ui.internal.EditorActionBars.partChanged(EditorActionBars.java:176)
at org.eclipse.ui.internal.WorkbenchPage$2.run(WorkbenchPage.java:447)
at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1018)
at org.eclipse.core.runtime.Platform.run(Platform.java:461)
at org.eclipse.ui.internal.WorkbenchPage.activatePart(WorkbenchPage.java:439)
at org.eclipse.ui.internal.WorkbenchPage.setActivePart(WorkbenchPage.java:2506)
at org.eclipse.ui.internal.WorkbenchPage.activate(WorkbenchPage.java:428)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2096)
at org.eclipse.ui.internal.WorkbenchPage.access$6(WorkbenchPage.java:2029)
at org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.java:2016)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:84)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2011)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:1944)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:1936)
at org.eclipse.ui.internal.editors.text.OpenExternalFileAction.run(OpenExternalFileAction.java:95)
at org.eclipse.ui.internal.editors.text.OpenExternalFileAction.run(OpenExternalFileAction.java:67)
at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:265)
at org.eclipse.ui.internal.WWinPluginAction.runWithEvent(WWinPluginAction.java:207)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:541)
at org.eclipse.jface.action.ActionContributionItem.access$4(ActionContributionItem.java:494)
at org.eclipse.jface.action.ActionContributionItem$6.handleEvent(ActionContributionItem.java:466)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:847)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2173)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1863)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2347)
at org.eclipse.ui.internal.Workbench.run(Workbench.java:2330)
at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:858)
at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.eclipse.core.launcher.Main.basicRun(Main.java:299)
at org.eclipse.core.launcher.Main.run(Main.java:765)
at org.eclipse.core.launcher.Main.main(Main.java:599)
brigodago
Posts: 6
Joined: Wed Nov 05, 2003 9:54 pm
Contact:

Post by brigodago »

Hmmmm.... This is the error I get when I try to open an existing Java project:

!ENTRY org.eclipse.ui 4 4 Nov 07, 2003 11:58:14.888
!MESSAGE Exception in org.eclipse.ui.actions.OpenResourceAction. run: java.lang.ClassCastException
!ENTRY org.eclipse.ui 4 4 Nov 07, 2003 11:58:14.918
!MESSAGE Exception in org.eclipse.ui.actions.OpenResourceAction. run: java.lang.ClassCastException
!STACK 0
java.lang.ClassCastException
at org.apache.xerces.parsers.SAXParser.<init>(SAXParser.java:95)
at org.eclipse.core.internal.resources.ProjectDescriptionReader.read(ProjectDescriptionReader.java:443)
at org.eclipse.core.internal.resources.ProjectDescriptionReader.read(ProjectDescriptionReader.java:479)
at org.eclipse.core.internal.localstore.FileSystemResourceManager.read(FileSystemResourceManager.java:486)
at org.eclipse.core.internal.resources.SaveManager.restoreMetaInfo(SaveManager.java:598)
at org.eclipse.core.internal.resources.SaveManager.restore(SaveManager.java:478)
at org.eclipse.core.internal.resources.Project.open(Project.java:687)
at org.eclipse.ui.actions.OpenResourceAction.invokeOperation(OpenResourceAction.java:78)
at org.eclipse.ui.actions.WorkspaceAction.execute(WorkspaceAction.java:122)
at org.eclipse.ui.actions.WorkspaceAction$1.execute(WorkspaceAction.java:279)
at org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(WorkspaceModifyOperation.java:71)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1555)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1572)
at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:85)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:101)
!ENTRY org.eclipse.core.runtime 4 2 Nov 07, 2003 11:58:15.39
!MESSAGE An internal error occurred during: "Building workspace".
!STACK 0
java.lang.NullPointerException
at org.eclipse.core.internal.resources.Project.getReferencedProjects(Project.java:355)
at org.eclipse.core.internal.resources.Workspace.computeFullProjectOrder(Workspace.java:454)
at org.eclipse.core.internal.resources.Workspace.getBuildOrder(Workspace.java:938)
at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:241)
at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:76)
at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:109)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:62)
brigodago
Posts: 6
Joined: Wed Nov 05, 2003 9:54 pm
Contact:

Post by brigodago »

OK, wierd. Now the java projects are working fine... But still have this error with Oxygen trying to open an external file (note that I can create a new file fine).

Thanks,
-Brian
george
Site Admin
Posts: 2095
Joined: Thu Jan 09, 2003 2:58 pm

Post by george »

Hi Brian,

Have you tried to rename or delete the com.oxygenxml folder from your user directory as I described in the previous post ?

Best Regards,
George
Post Reply