Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [dsdp-mtj-dev] Problem persisting devices

Great. Thanks, Diego.

 


From: dsdp-mtj-dev-bounces@xxxxxxxxxxx [mailto:dsdp-mtj-dev-bounces@xxxxxxxxxxx] On Behalf Of Diego Madruga Sandin
Sent: Friday, March 06, 2009 5:06 AM
To: Mobile Tools for The Java Platform mailing list
Subject: Re: [dsdp-mtj-dev] Problem persisting devices

 

Hi,

we have found this issue too. The problem is that the
org.eclipse.mtj.toolkit.uei.internal.UEIDeviceInternal has no default constructor and this breaks the persistence loading.
We have already fixed this issue in the svn HEAD and s
ince we are doing so mutch refactoring and API enhancementes I also created a series of migrators (org.eclipse.mtj.internal.core.util.migration package) for the persistence files o avoid more errors.


Diego

On Thu, Mar 5, 2009 at 9:40 PM, Craig Setera <craigjunk@xxxxxxxxxx> wrote:

Looks like some refactoring maybe?

"Thrown when an application tries to create an instance of a class using the
newInstance method in class Class, but the specified class object cannot be instantiated because it is an interface or is an abstract class. "

I have to assume that this isn't an interface, so I'm wondering if it was turned into an abstract class somewhere along the way?

Jon Dearden wrote:

Hi all,

 

Using 1.0M5, I seem to get some persistence problems when I have managed devices once successfully and then go to do it again. It seems that the DeviceRegistry has trouble trying to load the device info from Devices.xml. Has anyone else seen this?

Regards,

Jon

!ENTRY org.eclipse.mtj.core 4 0 2009-03-05 16:36:54.563

!MESSAGE InstantiationException: org.eclipse.mtj.toolkit.uei.internal.UEIDeviceInternal

!STACK 0

org.eclipse.mtj.core.persistence.PersistenceException: InstantiationException: org.eclipse.mtj.toolkit.uei.internal.UEIDeviceInternal

            at org.eclipse.mtj.core.internal.persistence.XMLPersistenceProvider.createPersistableInstance(XMLPersistenceProvider.java:353)

            at org.eclipse.mtj.core.internal.persistence.XMLPersistenceProvider.loadPersistable(XMLPersistenceProvider.java:134)

            at org.eclipse.mtj.core.model.device.DeviceRegistry.loadUsing(DeviceRegistry.java:258)

            at org.eclipse.mtj.core.model.device.DeviceRegistry.load(DeviceRegistry.java:236)

            at org.eclipse.mtj.ui.internal.preferences.DeviceManagementPreferencePage.createContents(DeviceManagementPreferencePage.java:786)

            at org.eclipse.jface.preference.PreferencePage.createControl(PreferencePage.java:235)

            at org.eclipse.jface.preference.PreferenceDialog.createPageControl(PreferenceDialog.java:1468)

            at org.eclipse.jface.preference.PreferenceDialog$14.run(PreferenceDialog.java:1225)

            at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)

            at org.eclipse.core.runtime.Platform.run(Platform.java:880)

            at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:48)

            at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)

            at org.eclipse.jface.preference.PreferenceDialog.showPage(PreferenceDialog.java:1219)

            at org.eclipse.jface.preference.PreferenceDialog$10.run(PreferenceDialog.java:702)

            at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)

            at org.eclipse.jface.preference.PreferenceDialog$9.selectionChanged(PreferenceDialog.java:698)

            at org.eclipse.jface.viewers.StructuredViewer$3.run(StructuredViewer.java:842)

            at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)

            at org.eclipse.core.runtime.Platform.run(Platform.java:880)

            at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:48)

            at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)

            at org.eclipse.jface.viewers.StructuredViewer.firePostSelectionChanged(StructuredViewer.java:840)

            at org.eclipse.jface.viewers.StructuredViewer.setSelection(StructuredViewer.java:1639)

            at org.eclipse.jface.viewers.TreeViewer.setSelection(TreeViewer.java:1104)

            at org.eclipse.jface.preference.PreferenceDialog.selectSavedItem(PreferenceDialog.java:1021)

            at org.eclipse.jface.preference.PreferenceDialog$4.run(PreferenceDialog.java:369)

            at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)

            at org.eclipse.jface.preference.PreferenceDialog.createContents(PreferenceDialog.java:365)

            at org.eclipse.jface.window.Window.create(Window.java:431)

            at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1089)

            at org.eclipse.jface.window.Window.open(Window.java:790)

            at org.eclipse.mtj.ui.devices.DeviceSelector$2.widgetSelected(DeviceSelector.java:463)

            at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.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.java: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.mtj.ui.configurations.ConfigManageComponent.addConfiguration(ConfigManageComponent.java:195)

            at org.eclipse.mtj.ui.configurations.ConfigManageComponent.access$1(ConfigManageComponent.java:185)

            at org.eclipse.mtj.ui.configurations.ConfigManageComponent$2.widgetSelected(ConfigManageComponent.java:380)

            at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.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.java:3823)

            at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422)

            at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2382)

            at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346)

            at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2198)

            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(Workbench.java:488)

            at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)

            at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)

            at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.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(EclipseStarter.java:382)

            at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.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.InstantiationException: org.eclipse.mtj.toolkit.uei.internal.UEIDeviceInternal

            at java.lang.Class.newInstance0(Unknown Source)

            at java.lang.Class.newInstance(Unknown Source)

            at org.eclipse.mtj.core.internal.persistence.XMLPersistenceProvider.createPersistableInstance(XMLPersistenceProvider.java:350)

            ... 67 more

 

 

---

Senior Software Developer, Eclipse Tools

Research In Motion

905-629-4746 x15333 / Mobile: 519 500-23167

jdearden@xxxxxxx

 

---------------------------------------------------------------------
This transmission (including any attachments) may contain confidential information, privileged material (including material protected by the solicitor-client or other applicable privileges), or constitute non-public information. Any use of this information by anyone other than the intended recipient is prohibited. If you have received this transmission in error, please immediately reply to the sender and delete this information from your system. Use, dissemination, distribution, or reproduction of this transmission by unintended recipients is not authorized and may be unlawful.




 
_______________________________________________
dsdp-mtj-dev mailing list
dsdp-mtj-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/dsdp-mtj-dev
  


_______________________________________________
dsdp-mtj-dev mailing list
dsdp-mtj-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/dsdp-mtj-dev

 

---------------------------------------------------------------------
This transmission (including any attachments) may contain confidential information, privileged material (including material protected by the solicitor-client or other applicable privileges), or constitute non-public information. Any use of this information by anyone other than the intended recipient is prohibited. If you have received this transmission in error, please immediately reply to the sender and delete this information from your system. Use, dissemination, distribution, or reproduction of this transmission by unintended recipients is not authorized and may be unlawful.

Back to the top