Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [dsdp-mtj-dev] InstantiationException on device

Hi Jon

That enuns were created to be used in the jad editor. They are not intended to be used by clients as persistable units.

Cheers
Diego



-----Original Message-----
From: dsdp-mtj-dev-bounces@xxxxxxxxxxx on behalf of Jon Dearden
Sent: Fri 5/1/2009 11:25 AM
To: Mobile Tools for The Java Platform mailing list
Subject: RE: [dsdp-mtj-dev] InstantiationException on device
 
Hi Diego,

Were the Configuration and Profile enum classes meant to be used in
place of a MIDPAPI, because they don't have constructors and are not
persistable.


Regards,
Jon

-----Original Message-----
From: dsdp-mtj-dev-bounces@xxxxxxxxxxx
[mailto:dsdp-mtj-dev-bounces@xxxxxxxxxxx] On Behalf Of Sandin
Diego-WDS057
Sent: Friday, May 01, 2009 10:51 AM
To: Mobile Tools for The Java Platform mailing list
Subject: RE: [dsdp-mtj-dev] InstantiationException on device

Hi Jon

Does your device have a default constructor declared? You must publish
your device package in the plug-in manifest(runtime -> exported package)
also. 

Diego

-----Original Message-----
From: dsdp-mtj-dev-bounces@xxxxxxxxxxx on behalf of Jon Dearden
Sent: Fri 5/1/2009 10:20 AM
To: Mobile Tools for The Java Platform mailing list
Subject: [dsdp-mtj-dev] InstantiationException on device
 
Hi all,

 

I am getting an InstantiationException when MTJ tries to load up the
DeviceRegistry with my devices. My Device class extends
AbstractMIDPDevice. Anyone have any hints?

 

 

Cheers, 

Jon

 

 

!ENTRY org.eclipse.mtj.core 4 0 2009-04-30 15:23:00.193

!MESSAGE InstantiationException: jon.mtj.toolkit.Device

!STACK 0

org.eclipse.mtj.core.persistence.PersistenceException:
InstantiationException: jon.mtj.toolkit.Device

       at
org.eclipse.mtj.internal.core.persistence.XMLPersistenceProvider.createP
ersistableInstance(XMLPersistenceProvider.java:469)

       at
org.eclipse.mtj.internal.core.persistence.XMLPersistenceProvider.loadPer
sistable(XMLPersistenceProvider.java:211)

       at
org.eclipse.mtj.internal.core.sdk.device.DeviceRegistry.loadUsing(Device
Registry.java:291)

       at
org.eclipse.mtj.internal.core.sdk.device.DeviceRegistry.load(DeviceRegis
try.java:262)

 

 

 

---

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.


---------------------------------------------------------------------
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

<<winmail.dat>>


Back to the top