- This topic has 9 replies, 4 voices, and was last updated 19 years, 4 months ago by Scott Anderson.
-
AuthorPosts
-
cmcbrienMemberEclipse 3.1M7
ME 3.8.4M7beta
Sun 1.5_03, and IBMJava2-amd64-142
Mandriva Linux LE 2005
AMD Athlon64 3500+
2 GB RAM
Eclipse started with: /opt/eclipse/eclipse -vmargs -Xmx1024MJust did a completely fresh install of 3.1M7 and ME 3.8.4M7-beta. Checked out my projects. All web project appear broken. When I click on them, eclipse throws up a generic error dialog, and the workspace .log contains many of these:
Root exception:
java.lang.NullPointerException
at com.genuitec.eclipse.j2eedt.core.J2EEContainerInitializer.createContainer(Unknown Source)
at com.genuitec.eclipse.j2eedt.core.J2EEContainerInitializer.initialize(Unknown Source)
at org.eclipse.jdt.internal.core.JavaModelManager.initializeContainer(JavaModelManager.java:1421)
at org.eclipse.jdt.internal.core.JavaModelManager.initializeAllContainers(JavaModelManager.java:1381)
at org.eclipse.jdt.internal.core.JavaModelManager.getClasspathContainer(JavaModelManager.java:974)
at org.eclipse.jdt.core.JavaCore.getClasspathContainer(JavaCore.java:1320)
at org.eclipse.jdt.internal.core.JavaProject.getResolvedClasspath(JavaProject.java:2062)
at org.eclipse.jdt.internal.core.JavaProject.getResolvedClasspath(JavaProject.java:1970)
at org.eclipse.jdt.internal.core.DeltaProcessingState.initializeRoots(DeltaProcessingState.java:269)
at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:715)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1716)
at org.eclipse.jdt.core.JavaCore.run(JavaCore.java:3680)
at org.eclipse.jdt.internal.ui.actions.WorkbenchRunnableAdapter.run(WorkbenchRunnableAdapter.java:87)
at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:346)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:291)
at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:830)
at org.eclipse.jdt.internal.ui.wizards.NewElementWizard.performFinish(NewElementWizard.java:130)
at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:676)
at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:349)
at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:556)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:89)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1012)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2770)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2475)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:809)
at org.eclipse.jface.window.Window.open(Window.java:787)
at com.genuitec.eclipse.core.ui.preference.LicenseDetailsPreferencePage$2.widgetSelected(Unknown Source)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:89)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1012)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2770)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2475)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:809)
at org.eclipse.jface.window.Window.open(Window.java:787)
at org.eclipse.ui.internal.OpenPreferencesAction.run(OpenPreferencesAction.java:66)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:996)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:538)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:488)
at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:400)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1012)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2770)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2475)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1601)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1565)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:315)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:103)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:230)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:371)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:160)
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:585)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:330)
at org.eclipse.core.launcher.Main.basicRun(Main.java:274)
at org.eclipse.core.launcher.Main.run(Main.java:977)
at org.eclipse.core.launcher.Main.main(Main.java:952)
Scott AndersonParticipantCan you try restarting with -clean on the commandline and see if that clears it up?
ie. /opt/eclipse/eclipse -clean -vmargs -Xmx1024M
cmcbrienMemberThanks,
But that didn’t seem to help. Here’s some more from the .log with my configuration details in there.
eclipse.buildId=I20050513-1415
java.version=1.5.0_03
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Command-line arguments: -os linux -ws gtk -arch x86_64 -clean!ENTRY com.ibm.sse.snippets 4 4 2005-05-21 01:29:17.988
!MESSAGE Could not load user items
!STACK 0
org.xml.sax.SAXParseException: Content is not allowed in prolog.
at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:264)
at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:292)
at com.ibm.sse.snippets.internal.palette.ModelFactoryForUser.load(ModelFactoryForUser.java:149)
at com.genuitec.eclipse.snippetinstaller.SnippetInstaller.installLibrary(SnippetInstaller.java:39)
at com.aston.AstonWizardsPlugin.installSnippetLibraries(AstonWizardsPlugin.java:323)
at com.aston.AstonWizardsPlugin.startup(AstonWizardsPlugin.java:283)
at org.eclipse.core.internal.compatibility.PluginActivator.start(PluginActivator.java:31)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:994)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:988)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:969)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:321)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:266)
at org.eclipse.core.internal.plugins.PluginDescriptor.doPluginActivation(PluginDescriptor.java:353)
at org.eclipse.core.internal.plugins.PluginDescriptor.getPlugin(PluginDescriptor.java:332)
at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.eclipse.ui.internal.EarlyStartupRunnable.getPluginForCompatibility(EarlyStartupRunnable.java:145)
at org.eclipse.ui.internal.EarlyStartupRunnable.run(EarlyStartupRunnable.java:73)
at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1029)
at org.eclipse.core.runtime.Platform.run(Platform.java:775)
at org.eclipse.ui.internal.Workbench$16.run(Workbench.java:1493)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:67)
Scott AndersonParticipantCan you try starting Eclipse with JDK 1.4.2 instead of 1.5 *and* add the -clean option like this:
/opt/eclipse/eclipse -clean -vm <path-to-jdk1.4.2-install>/bin/javaw -vmargs -Xms256M -Xmx1024M
cmcbrienMemberI get the very same problem with JDK142:
!SESSION 2005-05-21 10:27:07.306 ———————————————–
eclipse.buildId=I20050513-1415
java.fullversion=J2RE 1.4.2 IBM J9 2.2 Linux amd64-64 j9xa64142sr1a-20050225 (JIT enabled)
J9VM – 20050224_1940_LHdSMr
JIT – r7_level20050120_1805
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Command-line arguments: -os linux -ws gtk -arch x86_64 -clean!ENTRY org.eclipse.jface 4 2 2005-05-21 10:27:24.263
!MESSAGE Problems occurred when invoking code from plug-in: “org.eclipse.jface”.
!STACK 0
java.lang.NullPointerException
at com.genuitec.eclipse.j2eedt.core.J2EEContainerInitializer.createContainer(Unknown Source)
at com.genuitec.eclipse.j2eedt.core.J2EEContainerInitializer.initialize(Unknown Source)
…[more]
cmcbrienMemberI can further confirm the same problem happens on Windows XP with 3.1M7 and ME 3.8.4M7-beta
cmcbrienMemberI have figured out that if my web projects are already in the workspace when I install ME, then ME gets totally screwed up and doesn’t work. If my workspace is empty when I install ME, and check out my web projects after, it works OK.
Riyad KallaMemberWe will look into this further, for the time being we have filed this as a beta bug.
chenffMemberI got the same SaxParseException using MyEclipse 3.8.4 on Eclipse 3.0.2 over JDK 1.5.0_04. I am running Win XP Pro SP2.
*************************
!ENTRY com.ibm.sse.snippets 4 4 2005-05-21 01:29:17.988
!MESSAGE Could not load user items
!STACK 0
org.xml.sax.SAXParseException: Content is not allowed in prolog.
**************************I am not sure if my error is related to the original reported here since I am not using Eclipse 3.1.
Scott AndersonParticipantThe problem with the Sax exceptions is that in JDK 1.5 the XML processing support (org.w3c….) implementation that’s included is incompatible with the one in 1.4. Basically, if you wrote for 1.4, it won’t run on 1.5 due to the API changes that are not backward compatible. To address the issue, you need to run Eclipse itself with JDK 1.4.2 like this:
eclipse.exe -vm <path-to-jdk-1.4.2-install>\bin\javaw.exeWithin Eclipse, you can still set the default JRE to be 1.5, in Eclipse 3.1 (not 3.0.2), so that all of your code can exploit the 1.5 features. However Eclipse itself and MyEclipse are written for 1.4.2 anyway (both 3.0 and 3.1), so this shouldn’t cause any change in functionality, other than fixing this issue.
-
AuthorPosts