Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » DSDP - Mobile Tools for Java (MTJ) » PersistenceException when importing devices
PersistenceException when importing devices [message #27949] Sun, 15 March 2009 19:16 Go to next message
Ugo Chirico is currently offline Ugo Chirico
Messages: 10
Registered: July 2009
Junior Member
Hi,

I installed from scratch ganimede and MTJ 0.9.1.
It doesn't work!!!
I was not able to import WTK 2.5.2 devices
when I tried to import devices from WTK 2.5.2 it seems that the import is
ok, but when I back to the "device management" dialog no devices is
present and I see this exception:
org.eclipse.mtj.core.persistence.PersistenceException:
InstantiationException:
org.eclipse.mtj.toolkit.uei.internal.UEIDeviceInternal

If I try to import Microemulator devices it works, but with WTK 2.5.2.

I was not able to use MTJ 0.9.1!!!
I had to back to EclipseME 1.7.9!!!!

Let me know...

Ugo Chirico
http://www.cryptware.it
http://www.ugosweb.com
Re: PersistenceException when importing devices [message #27989 is a reply to message #27949] Tue, 17 March 2009 23:35 Go to previous messageGo to next message
Gustavo de Paula is currently offline Gustavo de Paula
Messages: 118
Registered: July 2009
Senior Member
hi,

can you attach the exception here? you can probably see it on the eclipse
log (view error log on the about dialog). we had issues in the device
importing because of the javadoc automatic discovery that was introduced
on mtj, but it was on version 0.9 . version 0.9.1 already have that fix
and we didn't heard of this issue before.

besides that, can you inform which OS you used? other question, are you
using a fresh workspace or reusing an eclipsene ou mtj 0.9 workspace?

thanks
:)
gep

Ugo Chirico wrote:

> Hi,

> I installed from scratch ganimede and MTJ 0.9.1.
> It doesn't work!!!
> I was not able to import WTK 2.5.2 devices
> when I tried to import devices from WTK 2.5.2 it seems that the import is
> ok, but when I back to the "device management" dialog no devices is
> present and I see this exception:
> org.eclipse.mtj.core.persistence.PersistenceException:
> InstantiationException:
> org.eclipse.mtj.toolkit.uei.internal.UEIDeviceInternal

> If I try to import Microemulator devices it works, but with WTK 2.5.2.

> I was not able to use MTJ 0.9.1!!!
> I had to back to EclipseME 1.7.9!!!!

> Let me know...

> Ugo Chirico
> http://www.cryptware.it
> http://www.ugosweb.com
Re: PersistenceException when importing devices [message #28069 is a reply to message #27989] Fri, 20 March 2009 07:37 Go to previous messageGo to next message
Ugo Chirico is currently offline Ugo Chirico
Messages: 10
Registered: July 2009
Junior Member
Thanks for your reply.
Unfortunately I cannot find the exception in the log file.
I Installed MTJ 0.9.1 on a fresh Ganimede on Windows XP SP3 and I used
eclipseme 1.6.x workspace.

Now I solved installing the nightly build N20090310. now it works: I can
import devices.

With that nightly build, unfortunately I have another problem.
I tried to convert an eclipseme 1.6.x project. I select the device for
conversion but after the conversion dialog appears it hangs and I have to
kill the project by task manager.
I see in the log several exceptions:

!ENTRY org.eclipse.ui 4 0 2009-03-20 12:33:18.771
!MESSAGE Unhandled event loop exception
!STACK 0
java.lang.NullPointerException
at
org.eclipse.mtj.internal.core.project.midp.MidletSuiteProjec t. <init>(Unknown
Source)
at
org.eclipse.mtj.internal.core.project.midp.MidletSuiteFactor y.getMidletSuiteProject(Unknown
Source)
at
org.eclipse.mtj.internal.core.project.midp.MidletSuiteFactor y$MidletSuiteCreationRunnable.run(Unknown
Source)
at
org.eclipse.mtj.internal.core.project.midp.MTJProjectConvert er.convertJavaProject(Unknown
Source)
at
org.eclipse.mtj.internal.ui.actions.ConvertToMidletProjectAc tion$1.run(Unknown
Source)
at org.eclipse.core.internal.resources.Workspace.run(Workspace. java:1800)
at org.eclipse.core.internal.resources.Workspace.run(Workspace. java:1782)
at
org.eclipse.mtj.internal.ui.actions.ConvertToMidletProjectAc tion.convertSelectedProjects(Unknown
Source)
at
org.eclipse.mtj.internal.ui.actions.ConvertToMidletProjectAc tion.run(Unknown
Source)
at
org.eclipse.ui.internal.PluginAction.runWithEvent(PluginActi on.java:251)
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:2384)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2348)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 00)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:495)
at
org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:288)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:490)
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:386)
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)
!SESSION 2009-03-20 12:34:00.052
-----------------------------------------------
eclipse.buildId=M20090211-1700
java.version=1.5.0_09
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=it_IT
Command-line arguments: -os win32 -ws win32 -arch x86

!ENTRY org.eclipse.core.resources 2 10035 2009-03-20 12:34:07.255
!MESSAGE The workspace exited with unsaved changes in the previous
session; refreshing workspace to recover changes.

!ENTRY org.eclipse.ui.workbench.texteditor 4 0 2009-03-20 12:34:17.615
!MESSAGE The
'org.eclipse.wst.jsdt.web.ui.internal.hyperlink.script.JSPJa vaHyperlinkDetector'
extension from plug-in 'org.eclipse.wst.jsdt.web.ui' to the
'org.eclipse.ui.workbench.texteditor.hyperlinkDetectors' extension point
will be ignored because it contains invalid attributes.

!ENTRY org.eclipse.ui.workbench.texteditor 4 0 2009-03-20 12:34:17.615
!MESSAGE The
'org.eclipse.wst.jsdt.web.ui.internal.hyperlink.script.event .JSPJavaHyperlinkDetector'
extension from plug-in 'org.eclipse.wst.jsdt.web.ui' to the
'org.eclipse.ui.workbench.texteditor.hyperlinkDetectors' extension point
will be ignored because it contains invalid attributes.

!ENTRY org.eclipse.jst.jsf.core 4 0 2009-03-20 12:34:24.927
!MESSAGE Error acquiring editor input
!STACK 1
org.eclipse.ui.PartInitException: No input factory ID found for editor
id=eclipseme.ui.editor.JadEditor name=secureotp.jad
at
org.eclipse.ui.internal.EditorReference.getRestoredInput(Edi torReference.java:349)
at
org.eclipse.ui.internal.EditorReference.getEditorInput(Edito rReference.java:328)
at
org.eclipse.jst.jsf.designtime.internal.jsp.StartupHandler$J SPEditorListener.getIFile(StartupHandler.java:199)
at
org.eclipse.jst.jsf.designtime.internal.jsp.StartupHandler$J SPEditorListener.isValidJSPEditor(StartupHandler.java:154)
at
org.eclipse.jst.jsf.designtime.internal.jsp.StartupHandler$1 .run(StartupHandler.java:64)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
at
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:133)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3800)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3425)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2384)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2348)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 00)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:495)
at
org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:288)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:490)
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:386)
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)
!SUBENTRY 1 org.eclipse.ui 4 0 2009-03-20 12:34:25.099
!MESSAGE No input factory ID found for editor
id=eclipseme.ui.editor.JadEditor name=secureotp.jad
Re: PersistenceException when importing devices [message #28108 is a reply to message #28069] Fri, 20 March 2009 14:56 Go to previous message
Gustavo de Paula is currently offline Gustavo de Paula
Messages: 118
Registered: July 2009
Senior Member
hi ugo,

we are working on some migration classes to migrate a workspace from
eclipseme to mtj. probably thats whay it worked. but this code is not
stable so it is still better to use 0.9.1

the better way to use 0.9.1 is:
- use a clean workspace
- import the sdks there
- import the eclipseme projects to this new workspace
(file->import>javame->eclipseme)

after that you will have a workspace with mtj project and the sdks you
want. we also received some reports mentioned that there were some WTK
installations without the bin/emulator.exe file and with a emulatorc.exe
(we dont' know why that happened). so please double check that also

if you still have problem please let us know. i just opened a bug to
evaluate the conversion issue that you raised
https://bugs.eclipse.org/bugs/show_bug.cgi?id=269564

feel free to follow up the issue there

thanks,
:)
gep



Ugo Chirico wrote:

> Thanks for your reply.
> Unfortunately I cannot find the exception in the log file.
> I Installed MTJ 0.9.1 on a fresh Ganimede on Windows XP SP3 and I used
> eclipseme 1.6.x workspace.

> Now I solved installing the nightly build N20090310. now it works: I can
> import devices.

> With that nightly build, unfortunately I have another problem.
> I tried to convert an eclipseme 1.6.x project. I select the device for
> conversion but after the conversion dialog appears it hangs and I have to
> kill the project by task manager.
> I see in the log several exceptions:

> !ENTRY org.eclipse.ui 4 0 2009-03-20 12:33:18.771
> !MESSAGE Unhandled event loop exception
> !STACK 0
> java.lang.NullPointerException
> at
> org.eclipse.mtj.internal.core.project.midp.MidletSuiteProjec t. <init>(Unknown
> Source)
> at
>
org.eclipse.mtj.internal.core.project.midp.MidletSuiteFactor y.getMidletSuiteProject(Unknown
> Source)
> at
>
org.eclipse.mtj.internal.core.project.midp.MidletSuiteFactor y$MidletSuiteCreationRunnable.run(Unknown
> Source)
> at
>
org.eclipse.mtj.internal.core.project.midp.MTJProjectConvert er.convertJavaProject(Unknown
> Source)
> at
>
org.eclipse.mtj.internal.ui.actions.ConvertToMidletProjectAc tion$1.run(Unknown
> Source)
> at org.eclipse.core.internal.resources.Workspace.run(Workspace. java:1800)
> at org.eclipse.core.internal.resources.Workspace.run(Workspace. java:1782)
> at
>
org.eclipse.mtj.internal.ui.actions.ConvertToMidletProjectAc tion.convertSelectedProjects(Unknown
> Source)
> at
> org.eclipse.mtj.internal.ui.actions.ConvertToMidletProjectAc tion.run(Unknown
> Source)
> at
> org.eclipse.ui.internal.PluginAction.runWithEvent(PluginActi on.java:251)
> 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:2384)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2348)
> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 00)
> at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:495)
> at
> org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:288)
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:490)
> 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:386)
> 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)
> !SESSION 2009-03-20 12:34:00.052
> -----------------------------------------------
> eclipse.buildId=M20090211-1700
> java.version=1.5.0_09
> java.vendor=Sun Microsystems Inc.
> BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=it_IT
> Command-line arguments: -os win32 -ws win32 -arch x86

> !ENTRY org.eclipse.core.resources 2 10035 2009-03-20 12:34:07.255
> !MESSAGE The workspace exited with unsaved changes in the previous
> session; refreshing workspace to recover changes.

> !ENTRY org.eclipse.ui.workbench.texteditor 4 0 2009-03-20 12:34:17.615
> !MESSAGE The
>
'org.eclipse.wst.jsdt.web.ui.internal.hyperlink.script.JSPJa vaHyperlinkDetector'
> extension from plug-in 'org.eclipse.wst.jsdt.web.ui' to the
> 'org.eclipse.ui.workbench.texteditor.hyperlinkDetectors' extension point
> will be ignored because it contains invalid attributes.

> !ENTRY org.eclipse.ui.workbench.texteditor 4 0 2009-03-20 12:34:17.615
> !MESSAGE The
>
'org.eclipse.wst.jsdt.web.ui.internal.hyperlink.script.event .JSPJavaHyperlinkDetector'
> extension from plug-in 'org.eclipse.wst.jsdt.web.ui' to the
> 'org.eclipse.ui.workbench.texteditor.hyperlinkDetectors' extension point
> will be ignored because it contains invalid attributes.

> !ENTRY org.eclipse.jst.jsf.core 4 0 2009-03-20 12:34:24.927
> !MESSAGE Error acquiring editor input
> !STACK 1
> org.eclipse.ui.PartInitException: No input factory ID found for editor
> id=eclipseme.ui.editor.JadEditor name=secureotp.jad
> at
>
org.eclipse.ui.internal.EditorReference.getRestoredInput(Edi torReference.java:349)
> at
>
org.eclipse.ui.internal.EditorReference.getEditorInput(Edito rReference.java:328)
> at
>
org.eclipse.jst.jsf.designtime.internal.jsp.StartupHandler$J SPEditorListener.getIFile(StartupHandler.java:199)
> at
>
org.eclipse.jst.jsf.designtime.internal.jsp.StartupHandler$J SPEditorListener.isValidJSPEditor(StartupHandler.java:154)
> at
>
org.eclipse.jst.jsf.designtime.internal.jsp.StartupHandler$1 .run(StartupHandler.java:64)
> at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
> at
> org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:133)
> at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3800)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3425)
> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2384)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2348)
> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 00)
> at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:495)
> at
> org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:288)
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:490)
> 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:386)
> 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)
> !SUBENTRY 1 org.eclipse.ui 4 0 2009-03-20 12:34:25.099
> !MESSAGE No input factory ID found for editor
> id=eclipseme.ui.editor.JadEditor name=secureotp.jad
Re: PersistenceException when importing devices [message #571958 is a reply to message #27949] Tue, 17 March 2009 23:35 Go to previous message
Gustavo de Paula is currently offline Gustavo de Paula
Messages: 118
Registered: July 2009
Senior Member
hi,

can you attach the exception here? you can probably see it on the eclipse
log (view error log on the about dialog). we had issues in the device
importing because of the javadoc automatic discovery that was introduced
on mtj, but it was on version 0.9 . version 0.9.1 already have that fix
and we didn't heard of this issue before.

besides that, can you inform which OS you used? other question, are you
using a fresh workspace or reusing an eclipsene ou mtj 0.9 workspace?

thanks
:)
gep

Ugo Chirico wrote:

> Hi,

> I installed from scratch ganimede and MTJ 0.9.1.
> It doesn't work!!!
> I was not able to import WTK 2.5.2 devices
> when I tried to import devices from WTK 2.5.2 it seems that the import is
> ok, but when I back to the "device management" dialog no devices is
> present and I see this exception:
> org.eclipse.mtj.core.persistence.PersistenceException:
> InstantiationException:
> org.eclipse.mtj.toolkit.uei.internal.UEIDeviceInternal

> If I try to import Microemulator devices it works, but with WTK 2.5.2.

> I was not able to use MTJ 0.9.1!!!
> I had to back to EclipseME 1.7.9!!!!

> Let me know...

> Ugo Chirico
> http://www.cryptware.it
> http://www.ugosweb.com
Re: PersistenceException when importing devices [message #572002 is a reply to message #27989] Fri, 20 March 2009 07:37 Go to previous message
Ugo Chirico is currently offline Ugo Chirico
Messages: 10
Registered: July 2009
Junior Member
Thanks for your reply.
Unfortunately I cannot find the exception in the log file.
I Installed MTJ 0.9.1 on a fresh Ganimede on Windows XP SP3 and I used
eclipseme 1.6.x workspace.

Now I solved installing the nightly build N20090310. now it works: I can
import devices.

With that nightly build, unfortunately I have another problem.
I tried to convert an eclipseme 1.6.x project. I select the device for
conversion but after the conversion dialog appears it hangs and I have to
kill the project by task manager.
I see in the log several exceptions:

!ENTRY org.eclipse.ui 4 0 2009-03-20 12:33:18.771
!MESSAGE Unhandled event loop exception
!STACK 0
java.lang.NullPointerException
at
org.eclipse.mtj.internal.core.project.midp.MidletSuiteProjec t. <init>(Unknown
Source)
at
org.eclipse.mtj.internal.core.project.midp.MidletSuiteFactor y.getMidletSuiteProject(Unknown
Source)
at
org.eclipse.mtj.internal.core.project.midp.MidletSuiteFactor y$MidletSuiteCreationRunnable.run(Unknown
Source)
at
org.eclipse.mtj.internal.core.project.midp.MTJProjectConvert er.convertJavaProject(Unknown
Source)
at
org.eclipse.mtj.internal.ui.actions.ConvertToMidletProjectAc tion$1.run(Unknown
Source)
at org.eclipse.core.internal.resources.Workspace.run(Workspace. java:1800)
at org.eclipse.core.internal.resources.Workspace.run(Workspace. java:1782)
at
org.eclipse.mtj.internal.ui.actions.ConvertToMidletProjectAc tion.convertSelectedProjects(Unknown
Source)
at
org.eclipse.mtj.internal.ui.actions.ConvertToMidletProjectAc tion.run(Unknown
Source)
at
org.eclipse.ui.internal.PluginAction.runWithEvent(PluginActi on.java:251)
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:2384)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2348)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 00)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:495)
at
org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:288)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:490)
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:386)
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)
!SESSION 2009-03-20 12:34:00.052
-----------------------------------------------
eclipse.buildId=M20090211-1700
java.version=1.5.0_09
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=it_IT
Command-line arguments: -os win32 -ws win32 -arch x86

!ENTRY org.eclipse.core.resources 2 10035 2009-03-20 12:34:07.255
!MESSAGE The workspace exited with unsaved changes in the previous
session; refreshing workspace to recover changes.

!ENTRY org.eclipse.ui.workbench.texteditor 4 0 2009-03-20 12:34:17.615
!MESSAGE The
'org.eclipse.wst.jsdt.web.ui.internal.hyperlink.script.JSPJa vaHyperlinkDetector'
extension from plug-in 'org.eclipse.wst.jsdt.web.ui' to the
'org.eclipse.ui.workbench.texteditor.hyperlinkDetectors' extension point
will be ignored because it contains invalid attributes.

!ENTRY org.eclipse.ui.workbench.texteditor 4 0 2009-03-20 12:34:17.615
!MESSAGE The
'org.eclipse.wst.jsdt.web.ui.internal.hyperlink.script.event .JSPJavaHyperlinkDetector'
extension from plug-in 'org.eclipse.wst.jsdt.web.ui' to the
'org.eclipse.ui.workbench.texteditor.hyperlinkDetectors' extension point
will be ignored because it contains invalid attributes.

!ENTRY org.eclipse.jst.jsf.core 4 0 2009-03-20 12:34:24.927
!MESSAGE Error acquiring editor input
!STACK 1
org.eclipse.ui.PartInitException: No input factory ID found for editor
id=eclipseme.ui.editor.JadEditor name=secureotp.jad
at
org.eclipse.ui.internal.EditorReference.getRestoredInput(Edi torReference.java:349)
at
org.eclipse.ui.internal.EditorReference.getEditorInput(Edito rReference.java:328)
at
org.eclipse.jst.jsf.designtime.internal.jsp.StartupHandler$J SPEditorListener.getIFile(StartupHandler.java:199)
at
org.eclipse.jst.jsf.designtime.internal.jsp.StartupHandler$J SPEditorListener.isValidJSPEditor(StartupHandler.java:154)
at
org.eclipse.jst.jsf.designtime.internal.jsp.StartupHandler$1 .run(StartupHandler.java:64)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
at
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:133)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3800)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3425)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2384)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2348)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 00)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:495)
at
org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:288)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:490)
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:386)
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)
!SUBENTRY 1 org.eclipse.ui 4 0 2009-03-20 12:34:25.099
!MESSAGE No input factory ID found for editor
id=eclipseme.ui.editor.JadEditor name=secureotp.jad
Re: PersistenceException when importing devices [message #572034 is a reply to message #28069] Fri, 20 March 2009 14:56 Go to previous message
Gustavo de Paula is currently offline Gustavo de Paula
Messages: 118
Registered: July 2009
Senior Member
hi ugo,

we are working on some migration classes to migrate a workspace from
eclipseme to mtj. probably thats whay it worked. but this code is not
stable so it is still better to use 0.9.1

the better way to use 0.9.1 is:
- use a clean workspace
- import the sdks there
- import the eclipseme projects to this new workspace
(file->import>javame->eclipseme)

after that you will have a workspace with mtj project and the sdks you
want. we also received some reports mentioned that there were some WTK
installations without the bin/emulator.exe file and with a emulatorc.exe
(we dont' know why that happened). so please double check that also

if you still have problem please let us know. i just opened a bug to
evaluate the conversion issue that you raised
https://bugs.eclipse.org/bugs/show_bug.cgi?id=269564

feel free to follow up the issue there

thanks,
:)
gep



Ugo Chirico wrote:

> Thanks for your reply.
> Unfortunately I cannot find the exception in the log file.
> I Installed MTJ 0.9.1 on a fresh Ganimede on Windows XP SP3 and I used
> eclipseme 1.6.x workspace.

> Now I solved installing the nightly build N20090310. now it works: I can
> import devices.

> With that nightly build, unfortunately I have another problem.
> I tried to convert an eclipseme 1.6.x project. I select the device for
> conversion but after the conversion dialog appears it hangs and I have to
> kill the project by task manager.
> I see in the log several exceptions:

> !ENTRY org.eclipse.ui 4 0 2009-03-20 12:33:18.771
> !MESSAGE Unhandled event loop exception
> !STACK 0
> java.lang.NullPointerException
> at
> org.eclipse.mtj.internal.core.project.midp.MidletSuiteProjec t. <init>(Unknown
> Source)
> at
>
org.eclipse.mtj.internal.core.project.midp.MidletSuiteFactor y.getMidletSuiteProject(Unknown
> Source)
> at
>
org.eclipse.mtj.internal.core.project.midp.MidletSuiteFactor y$MidletSuiteCreationRunnable.run(Unknown
> Source)
> at
>
org.eclipse.mtj.internal.core.project.midp.MTJProjectConvert er.convertJavaProject(Unknown
> Source)
> at
>
org.eclipse.mtj.internal.ui.actions.ConvertToMidletProjectAc tion$1.run(Unknown
> Source)
> at org.eclipse.core.internal.resources.Workspace.run(Workspace. java:1800)
> at org.eclipse.core.internal.resources.Workspace.run(Workspace. java:1782)
> at
>
org.eclipse.mtj.internal.ui.actions.ConvertToMidletProjectAc tion.convertSelectedProjects(Unknown
> Source)
> at
> org.eclipse.mtj.internal.ui.actions.ConvertToMidletProjectAc tion.run(Unknown
> Source)
> at
> org.eclipse.ui.internal.PluginAction.runWithEvent(PluginActi on.java:251)
> 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:2384)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2348)
> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 00)
> at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:495)
> at
> org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:288)
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:490)
> 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:386)
> 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)
> !SESSION 2009-03-20 12:34:00.052
> -----------------------------------------------
> eclipse.buildId=M20090211-1700
> java.version=1.5.0_09
> java.vendor=Sun Microsystems Inc.
> BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=it_IT
> Command-line arguments: -os win32 -ws win32 -arch x86

> !ENTRY org.eclipse.core.resources 2 10035 2009-03-20 12:34:07.255
> !MESSAGE The workspace exited with unsaved changes in the previous
> session; refreshing workspace to recover changes.

> !ENTRY org.eclipse.ui.workbench.texteditor 4 0 2009-03-20 12:34:17.615
> !MESSAGE The
>
'org.eclipse.wst.jsdt.web.ui.internal.hyperlink.script.JSPJa vaHyperlinkDetector'
> extension from plug-in 'org.eclipse.wst.jsdt.web.ui' to the
> 'org.eclipse.ui.workbench.texteditor.hyperlinkDetectors' extension point
> will be ignored because it contains invalid attributes.

> !ENTRY org.eclipse.ui.workbench.texteditor 4 0 2009-03-20 12:34:17.615
> !MESSAGE The
>
'org.eclipse.wst.jsdt.web.ui.internal.hyperlink.script.event .JSPJavaHyperlinkDetector'
> extension from plug-in 'org.eclipse.wst.jsdt.web.ui' to the
> 'org.eclipse.ui.workbench.texteditor.hyperlinkDetectors' extension point
> will be ignored because it contains invalid attributes.

> !ENTRY org.eclipse.jst.jsf.core 4 0 2009-03-20 12:34:24.927
> !MESSAGE Error acquiring editor input
> !STACK 1
> org.eclipse.ui.PartInitException: No input factory ID found for editor
> id=eclipseme.ui.editor.JadEditor name=secureotp.jad
> at
>
org.eclipse.ui.internal.EditorReference.getRestoredInput(Edi torReference.java:349)
> at
>
org.eclipse.ui.internal.EditorReference.getEditorInput(Edito rReference.java:328)
> at
>
org.eclipse.jst.jsf.designtime.internal.jsp.StartupHandler$J SPEditorListener.getIFile(StartupHandler.java:199)
> at
>
org.eclipse.jst.jsf.designtime.internal.jsp.StartupHandler$J SPEditorListener.isValidJSPEditor(StartupHandler.java:154)
> at
>
org.eclipse.jst.jsf.designtime.internal.jsp.StartupHandler$1 .run(StartupHandler.java:64)
> at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
> at
> org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:133)
> at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3800)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3425)
> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2384)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2348)
> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 00)
> at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:495)
> at
> org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:288)
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:490)
> 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:386)
> 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)
> !SUBENTRY 1 org.eclipse.ui 4 0 2009-03-20 12:34:25.099
> !MESSAGE No input factory ID found for editor
> id=eclipseme.ui.editor.JadEditor name=secureotp.jad
Previous Topic:PersistenceException when importing devices
Next Topic:mtj create package but without html
Goto Forum:
  


Current Time: Thu Aug 28 23:29:21 EDT 2014

Powered by FUDForum. Page generated in 0.02106 seconds