Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 244609

Summary: Error using microemulator
Product: [Tools] MTJ Reporter: Edwin Carlo Ribeiro Marinho <edwin.carlo>
Component: GeneralAssignee: Hugo Raniere <hugo.raniere>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P1 CC: hugo.raniere, wds057, wgp010
Version: 0.9   
Target Milestone: 0.9   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Edwin Carlo Ribeiro Marinho CLA 2008-08-19 16:09:20 EDT
MTJ 0.9 Testing
Installation : eclipse-SDK-3.3.2 (M20080221-1800) 
MTJ install  : mtj-runtime
java.runtime : 1.5.0_15-b04 (linux) and 1.6.0_07-b06 (windows)
os.name:     : Ubuntu 8.04 and Windows XP

Steps To Reproduce:
1. Import some devices on the eclipse (such as MOTODEV Studio for Java ME or WTK)
2. Import the devices of microemulator (http://snapshot.microemu.org/microemulator/download/)
3. Create a MIDlet project with a device of a platform diferent from microemulator
4. Change the platform to microemulator

An error occur:
java.lang.reflect.InvocationTargetException
at org.eclipse.mtj.ui.internal.properties.J2MEProjectPropertiesPage$1.run(Unknown Source)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)
Caused by: org.eclipse.core.internal.resources.ResourceException: Errors during build.
at org.eclipse.core.internal.resources.Project.internalBuild(Project.java:500)
at org.eclipse.core.internal.resources.Project.build(Project.java:75)
at org.eclipse.mtj.core.model.project.impl.MidletSuiteProject.setDevice(Unknown Source)
... 2 more
Root exception:
org.eclipse.core.internal.resources.ResourceException: Errors during build.
at org.eclipse.core.internal.resources.Project.internalBuild(Project.java:500)
at org.eclipse.core.internal.resources.Project.build(Project.java:75)
at org.eclipse.mtj.core.model.project.impl.MidletSuiteProject.setDevice(Unknown Source)
at org.eclipse.mtj.ui.internal.properties.J2MEProjectPropertiesPage$1.run(Unknown Source)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)


More information:
Comment 1 Gustavo de Paula CLA 2008-08-26 10:02:26 EDT
this issue seems to be associated to the lack of the default preverifier. it is important to evaluate it
Comment 2 Hugo Raniere CLA 2008-09-05 17:17:13 EDT
Hi Edwin,

The root cause of this error was an incorrect handling of a device without a preverifier (Microemulator case).
This issue was solved on bug 245056. I will mark this bug as duplicate of 245056. Can you confirm the issue was solved on nightly build N20080905.

*** This bug has been marked as a duplicate of bug 245056 ***
Comment 3 Gustavo de Paula CLA 2008-10-15 09:22:18 EDT
all bugs we integrated and release on MTj 0.9