[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cme-users] CME in Eclipse

Hi Albert,

> Here is the output of java -version:
> java version "1.5.0_01"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_01-b08)
> Java HotSpot(TM) Client VM (build 1.5.0_01-b08, mixed mode, sharing)

Okay, this is diagnostic.  You are running a JRE (Java Runtime 
Environment), not an SDK, and that's the problem.  Fortunately, this is 
easily fixed.  Just go to Sun's site (java.sun.com) and download an SDK 
(the 1.4.2 SDK is here:  
http://dlc.sun.com/jdk/j2sdk-1_4_2_07-windows-i586-p.exe).  Shut down 
Eclipse and all of your browsers (plus anything else that's running Java), 
install the SDK, and this should reset Eclipse to use the SDK, which 
should fix the problem.  But when you bring up Eclipse again after you 
install the SDK, do check the installed JVMs again, and be sure that your 
SDK is selected as the default.

     Peri



Albert Bachand <albertb@xxxxxxxxx> 
Sent by: cme-users-admin@xxxxxxxxxxx
02/28/2005 10:27 AM
Please respond to
cme-users


To
cme-users@xxxxxxxxxxx
cc

Subject
Re: [cme-users] CME in Eclipse






Hi Sian and Perri,

I am running Windows XP. 

I start Eclipse with the following command:
D:\Tools\Eclipse\eclipse-3.0.1-CME-0.2.0\eclipse.exe -vm
D:\Tools\Java\jdk1.5.0_01\bin\java

My PATH environment variable contains the following:
Path=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;D:\tools\Java\jdk1.5.0_01\bin;

Here is the output of java -version:
java version "1.5.0_01"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_01-b08)
Java HotSpot(TM) Client VM (build 1.5.0_01-b08, mixed mode, sharing)

In "Installed JREs", the only item I have is "jdk1.5.0_01" which has
the following home:
D:\Tools\Java\jdk1.5.0_01

I've attached a stacktrace from my log file. It seems the problem can
have two causes either a CRRationalizedSemanticError or a
NullPointerException in addClasspathEntries.

Regards,
Albert

On Mon, 28 Feb 2005 09:43:26 -0500, Peri Tarr <tarr@xxxxxxxxxx> wrote:
> Hi Albert,
> 
> Can you confirm that you do have an SDK installed and that it's what 
your
> projects are built using, rather than a JDK?  (You can tell by typing
> "java -version" in a command prompt.  With the version information, it
> should tell you whether it's a JRE or an SDK.)  Then, if it looks like 
you
> have an SDK, go into Eclipse's Windows->Preferences, and check the
> installed JDKs.  Make sure that the default one is your SDK.  I can't 
tell
> you how many times people find that they have a JRE installed that they
> didn't know about, and that Eclipse ends up using it as the default. 
Sian
> is right that this behavior is almost always due to the presence of a 
JRE
> instead of a full SDK.
> 
>      Peri
> 
> 
> Albert Bachand <albertb@xxxxxxxxx>
> Sent by: cme-users-admin@xxxxxxxxxxx
> 02/28/2005 09:33 AM
> Please respond to
> cme-users
> 
> To
> cme-users@xxxxxxxxxxx
> cc
> 
> Subject
> Re: [cme-users] CME in Eclipse
> 
> 
> Hi Sian,
> 
> Thank you for your reply. I tried your solution and started eclipse
> with the JDK's javaw but I still get the same behaviour. I then tried
> starting eclipse with java.exe to see if anything is outputted to the
> console and this is what I get whenever I press the Finish button:
> 
> Unhandled event loop exception
> Reason:
> java.lang.NullPointerException
> 
> Any ideas?
> 
> Regards,
> Albert
> 
> On Mon, 28 Feb 2005 12:56:40 +0000, Sian January <SJANUARY@xxxxxxxxxx>
> wrote:
> >
> > Hi Albert,
> >
> > You need to be running Eclipse with an SDK rather than a JRE.  You can
> do
> > this by starting eclipse with the arguments  -vm
> c:\j2sdk1.4.2_05\bin\javaw
> > (where j2sdk1.4.2_05 is the directory in which you have a Java SDK
> > installed.  In Windows you can edit the shortcut to the program by 
right
> > clicking and then clicking 'Properties' and pasting the above into the
> > "Target" field after "..eclipse.exe".  Alternatively you can append 
the
> > location of your SDK installation to your 'Path' environment variable
> via
> > Control Panel > System or on the command line.
> >
> > Hope this helps,
> >
> > Sian
> >
> >
> >
> >
> >
> >  Albert Bachand <albertb@xxxxxxxxx>
> > Sent by: cme-users-admin@xxxxxxxxxxx
> >
> > 28/02/2005 12:24
> >
> > Please respond to
> >  cme-users
> >
> >
> > To cme-users@xxxxxxxxxxx
> >
> > cc
> >
> > Subject [cme-users] CME in Eclipse
> >
> >
> >
> >
> >
> > Hello,
> >
> >  I'm having some trouble running the CME in Eclipse. I can build
> >  queries and model concerns without any trouble but I can't compose 
any
> >  concerns. When I get to the last page of the "Compose Concern" wizard
> >  and click Finish, nothing happens. The dialog stays there and I'm
> >  forced to click Cancel to dismiss it. If I then open Explorer, I can
> >  see that a new Eclipse project was created but it is empty. The
> >  behaviour is always the same regardless of the concerns I am trying 
to
> >  compose. Am I doing something wrong? I'm using Eclipse 3.0.1 and CME
> >  0.2.0 on Windows XP with JDK 1.5.
> >
> >  Regards,
> >  Albert
> >  _______________________________________________
> >  cme-users mailing list
> >  cme-users@xxxxxxxxxxx
> >  http://dev.eclipse.org/mailman/listinfo/cme-users
> >
> >
> _______________________________________________
> cme-users mailing list
> cme-users@xxxxxxxxxxx
> http://dev.eclipse.org/mailman/listinfo/cme-users
> 
> _______________________________________________
> cme-users mailing list
> cme-users@xxxxxxxxxxx
> http://dev.eclipse.org/mailman/listinfo/cme-users
>

!ENTRY org.eclipse.ui 4 0 Feb 28, 2005 16:21:00.78
!MESSAGE java.lang.NullPointerException
!STACK 0
java.lang.NullPointerException
	at org.eclipse.cme.ui.compositionwizard.CMEComposedProject.addClasspathEntries(Unknown Source)
	at org.eclipse.cme.ui.compositionwizard.CompositionWizard$1.run(Unknown Source)
	at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1673)
	at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1693)
	at org.eclipse.cme.ui.compositionwizard.CompositionWizard.createProject(Unknown Source)
	at org.eclipse.cme.ui.compositionwizard.CompositionWizard.performFinish(Unknown Source)
	at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:609)
	at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:305)
	at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:506)
	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:796)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2772)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2431)
	at org.eclipse.jface.window.Window.runEventLoop(Window.java:668)
	at org.eclipse.jface.window.Window.open(Window.java:648)
	at org.eclipse.cme.ui.concernexplorer.ConcernExplorerView$9.run(Unknown Source)
	at org.eclipse.jface.action.Action.runWithEvent(Action.java:881)
	at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:915)
	at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:866)
	at org.eclipse.jface.action.ActionContributionItem$7.handleEvent(ActionContributionItem.java:785)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:796)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2772)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2431)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1377)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1348)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:254)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:141)
	at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:96)
	at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:335)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:273)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:129)
	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.basicRun(Main.java:185)
	at org.eclipse.core.launcher.Main.run(Main.java:704)
	at org.eclipse.core.launcher.Main.main(Main.java:688)

!ENTRY org.eclipse.ui 4 4 Feb 28, 2005 16:22:57.796
!MESSAGE Exception creating editor: The file does not exist.

!ENTRY org.eclipse.ui 4 4 Feb 28, 2005 16:24:09.609
!MESSAGE Unhandled event loop exception

!ENTRY org.eclipse.ui 4 0 Feb 28, 2005 16:24:09.656
!MESSAGE org.eclipse.cme.cnari.CRRationaleImpl@1e6ac83
!STACK 0
org.eclipse.cme.cnari.CRRationalizedSemanticError: org.eclipse.cme.cnari.CRRationaleImpl@1e6ac83
	at org.eclipse.cme.cnari.CRAbstractReporter.throwAppropriateError(CRAbstractReporter.java:245)
	at org.eclipse.cme.cnari.CRAbstractReporter.report(CRAbstractReporter.java:146)
	at org.eclipse.cme.cnari.CRRationaleImpl.report(CRRationaleImpl.java:154)
	at org.eclipse.cme.util.Util.getSpaceInfo(Util.java:134)
	at org.eclipse.cme.util.Util.getAbsoluteSpaceInfo(Util.java:166)
	at org.eclipse.cme.cat.assembler.jikesbt.CABFactory.useInputSpaceCA(CABFactory.java:447)
	at org.eclipse.cme.cat.assembler.jikesbt.CABFactory.useInputSpaceCI(CABFactory.java:462)
	at org.eclipse.cme.conman.builders.CCCCompositionBuilderImpl.setupInputTypeSpaces(CCCCompositionBuilderImpl.java:327)
	at org.eclipse.cme.conman.builders.CCCCompositionBuilderImpl.build(CCCCompositionBuilderImpl.java:201)
	at org.eclipse.cme.conman.impl.CompositionImpl.build(CompositionImpl.java:106)
	at org.eclipse.cme.ui.compositionwizard.CompositionConcern.compose(Unknown Source)
	at org.eclipse.cme.ui.compositionwizard.CompositionConcern.<init>(Unknown Source)
	at org.eclipse.cme.ui.compositionwizard.CompositionWizard.performFinish(Unknown Source)
	at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:609)
	at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:305)
	at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:506)
	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:796)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2772)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2431)
	at org.eclipse.jface.window.Window.runEventLoop(Window.java:668)
	at org.eclipse.jface.window.Window.open(Window.java:648)
	at org.eclipse.cme.ui.concernexplorer.ConcernExplorerView$9.run(Unknown Source)
	at org.eclipse.jface.action.Action.runWithEvent(Action.java:881)
	at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:915)
	at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:866)
	at org.eclipse.jface.action.ActionContributionItem$7.handleEvent(ActionContributionItem.java:785)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:796)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2772)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2431)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1377)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1348)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:254)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:141)
	at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:96)
	at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:335)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:273)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:129)
	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.basicRun(Main.java:185)
	at org.eclipse.core.launcher.Main.run(Main.java:704)
	at org.eclipse.core.launcher.Main.main(Main.java:688)

!ENTRY org.eclipse.ui 4 4 Feb 28, 2005 16:24:19.156
!MESSAGE Unhandled event loop exception

!ENTRY org.eclipse.ui 4 0 Feb 28, 2005 16:24:19.156
!MESSAGE java.lang.NullPointerException
!STACK 0
java.lang.NullPointerException
	at org.eclipse.cme.ui.compositionwizard.CMEComposedProject.addClasspathEntries(Unknown Source)
	at org.eclipse.cme.ui.compositionwizard.CompositionWizard$1.run(Unknown Source)
	at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1673)
	at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1693)
	at org.eclipse.cme.ui.compositionwizard.CompositionWizard.createProject(Unknown Source)
	at org.eclipse.cme.ui.compositionwizard.CompositionWizard.performFinish(Unknown Source)
	at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:609)
	at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:305)
	at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:506)
	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:796)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2772)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2431)
	at org.eclipse.jface.window.Window.runEventLoop(Window.java:668)
	at org.eclipse.jface.window.Window.open(Window.java:648)
	at org.eclipse.cme.ui.concernexplorer.ConcernExplorerView$9.run(Unknown Source)
	at org.eclipse.jface.action.Action.runWithEvent(Action.java:881)
	at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:915)
	at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:866)
	at org.eclipse.jface.action.ActionContributionItem$7.handleEvent(ActionContributionItem.java:785)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:796)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2772)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2431)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1377)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1348)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:254)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:141)
	at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:96)
	at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:335)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:273)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:129)
	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.basicRun(Main.java:185)
	at org.eclipse.core.launcher.Main.run(Main.java:704)
	at org.eclipse.core.launcher.Main.main(Main.java:688)