this is for Steve Blass [message #260043] |
Fri, 04 July 2008 08:02  |
Eclipse User |
|
|
|
Originally posted by: p.agarwal.lancaster.ac.uk
hi Steve,
I got the plugin-working, which you had provided me with. But when I call
the function writetomyconsole within a code or from a GUI. It says
unhandled event loop exception. Please let me know what is going on wrong.
Urgent help needed.
Regards
Piyush
|
|
|
|
|
|
|
|
|
Re: console trouble, was Re: this is for Steve Blass [message #260528 is a reply to message #260389] |
Wed, 09 July 2008 08:56  |
Eclipse User |
|
|
|
Originally posted by: p.agarwal.lancaster.ac.uk
Steve Blass wrote:
> Piyush,
> The EMF wizard I referred to is simply a new file wizard that I had
> available to experiment with. The fact that it is in an EMF editor
> shouldn't make a difference to our conversation. When I look at the
> stack trace I see
> > Caused by: java.lang.NoClassDefFoundError:
> > exampleconsole/handlers/SampleConsoleHandler
> This means that the class is somehow not available at run time. I've
> had that happen to me when I have used the Project Properties dialog to
> add a reference to the project rather than adding a dependency in the
> plugin manifest editor or by leaving something out of the run
> configuration. If the sample console is in the same plug-in as the
> wizard then I'm not sure why it can not be found. If the sample console
> is in another plug-in then you should check the Dependencies tab in the
> plug-in manifest of the plug-in containing the wizard to make sure it
> has the exampleConsole included in the Required Plug-ins list. If that
> is in place then make sure the exampleConsole plugin is included in the
> runtime configuration you are using for Run or Debug. If that's there,
> I'm running out of ideas.
> Now, it seems the point of all this is to prompt the user to install a
> required piece of software if that is not found, right? Perhaps a
> simple MessageDialog prompting the user when the software is not found
> is an easier way to achieve the goal?
> -
> Steve
> Piyush Agarwal wrote:
>> hi steve,
>>
>> Nice to hear from you. I am also using Eclipse Ganymede but the plug-ins
>> that I am using are from the previous versions. I learnt about
>> breakpoints and debug and I did that but it shows me the exception of
>> NoClassDefFound. I had also pasted the stack trance in my previous post.
>> I also tried to call the function after finally loop but I noticed that
>> my GUI stops working and nothing turns up. Infact I get another stack
>> trace.
>> java.lang.reflect.InvocationTargetException
>> at org.eclipse.jface.operation.ModalContext.run(ModalContext.ja va:403)
>> at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java: 934)
>> at
>>
inoTek.InoFlex.InoFace.wizards.NewHDLProject.performFinish(N ewHDLProject.java:94)
>>
>> at
>> org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDi alog.java:742)
>> at
>> org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDi alog.java:373)
>> at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.jav a:624)
>> at
>> org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:228)
>> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :84)
>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
>> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3823)
>> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3422)
>> at org.eclipse.jface.window.Window.runEventLoop(Window.java:825 )
>> at org.eclipse.jface.window.Window.open(Window.java:801)
>> at
>>
org.eclipse.ui.internal.handlers.WizardHandler$New.executeHa ndler(WizardHandler.java:253)
>>
>> at
>>
org.eclipse.ui.internal.handlers.WizardHandler.execute(Wizar dHandler.java:273)
>>
>> at
>>
org.eclipse.ui.internal.handlers.HandlerProxy.execute(Handle rProxy.java:281)
>>
>> at
>> org.eclipse.core.commands.Command.executeWithChecks(Command. java:476)
>> at
>>
org.eclipse.core.commands.ParameterizedCommand.executeWithCh ecks(ParameterizedCommand.java:508)
>>
>> at
>>
org.eclipse.ui.internal.handlers.HandlerService.executeComma nd(HandlerService.java:169)
>>
>> at
>>
org.eclipse.ui.internal.handlers.SlaveHandlerService.execute Command(SlaveHandlerService.java:247)
>>
>> at
>>
org.eclipse.ui.internal.actions.CommandAction.runWithEvent(C ommandAction.java:157)
>>
>> at
>>
org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:583)
>>
>> at
>>
org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:500)
>>
>> at
>>
org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContributionItem.java:411)
>>
>> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :84)
>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
>> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3823)
>> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3422)
>> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2382)
>> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346)
>> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:21 98)
>> at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493)
>> at
>>
org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:288)
>>
>> at
>> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:488)
>> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
>> at
>>
org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:113)
>>
>> at
>>
org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:193)
>>
>> at
>>
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:110)
>>
>> at
>>
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:79)
>>
>> at
>>
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:382)
>>
>> at
>>
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
>>
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>> at java.lang.reflect.Method.invoke(Unknown Source)
>> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 549)
>> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
>> at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
>> at org.eclipse.equinox.launcher.Main.main(Main.java:1212)
>> Caused by: java.lang.NoClassDefFoundError:
>> exampleconsole/handlers/SampleConsoleHandler
>> at
>>
inoTek.InoFlex.InoFace.wizards.NewHDLProject$CreateProject.e xecute(NewHDLProject.java:218)
>>
>> at
>>
org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(Worksp aceModifyOperation.java:104)
>>
>> at
>> org.eclipse.core.internal.resources.Workspace.run(Workspace. java:1800)
>> at
>>
org.eclipse.ui.actions.WorkspaceModifyOperation.run(Workspac eModifyOperation.java:116)
>>
>> at
>>
org.eclipse.jface.operation.ModalContext$ModalContextThread. run(ModalContext.java:121)
>>
>> Caused by: java.lang.ClassNotFoundException:
>> exampleconsole.handlers.SampleConsoleHandler
>> at
>>
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl assInternal(BundleLoader.java:481)
>>
>> at
>>
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:397)
>>
>> at
>>
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:385)
>>
>> at
>>
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:87)
>>
>> at java.lang.ClassLoader.loadClass(Unknown Source)
>> at java.lang.ClassLoader.loadClassInternal(Unknown Source)
>> ... 5 more
>>
>> I think there is trouble in invoking the function writetomyconsole. the
>> execute function works fine as an icon is created when a new eclipse
>> opens and when I click on it, it does write into console of new
>> workbench. But when i call it through diff functions I do not get any
>> answers. Please elaborate more about EMF wizard? I looked for it but
>> could not understand it.
>>
>> Hope to hear soon from you.
>>
>> Regards
>> Piyush
hi steve,
just a quick question. Can I change the names of the class and packages?
will i have to change other things related to it.
Regards
Piyush
|
|
|
Powered by
FUDForum. Page generated in 0.11918 seconds