| View previous topic :: View next topic |
| Author |
Message |
Lexicanum
Joined: 16 Feb 2009 Posts: 2
|
Posted: Mon Feb 16, 2009 12:16 am Post subject: Exception while adding Java ME MIDP Emulator |
|
|
I just recently installed NetBeans 6.5 for J2ME development and I was trying to add the SonyEricsson SDK.
However, in the Add Platform menu when I click on the Java ME MIDP Emulator option an exception is thrown and the wizard does not advance when I click on "Next >". I get the same error even when using NetBeans 7.01M and Sun's Java ME Platform SDK 3.0 Early Access.
I'd like to be able to use the SE W810i and W800 emulators. Any help would be greatly appreciated as I'm quite new to Java ME development.
Can I use the Custom Java ME MIDP Emulator option instead of this one? If so how would I go about filling in the values?
For reference the exception I get is:
| Code: | java.lang.NullPointerException
at org.netbeans.modules.mobility.cldcplatform.wizard.FindPanel.isValid(FindPanel.java:240)
at java.awt.Component.invalidateIfValid(Component.java:2740)
at java.awt.Component.setLocale(Component.java:1810)
at javax.swing.JComponent.<init>(JComponent.java:595)
at javax.swing.JPanel.<init>(JPanel.java:65)
at javax.swing.JPanel.<init>(JPanel.java:92)
at javax.swing.JPanel.<init>(JPanel.java:100)
at org.netbeans.modules.mobility.cldcplatform.wizard.FindPanel.<init>(FindPanel.java:87)
at org.netbeans.modules.mobility.cldcplatform.wizard.FindWizardPanel.<init>(FindWizardPanel.java:57)
at org.netbeans.modules.mobility.cldcplatform.wizard.InstallerIterator.initialize(InstallerIterator.java:115)
at org.netbeans.modules.java.platform.wizard.PlatformInstallIterator.updateIterator(PlatformInstallIterator.java:293)
at org.netbeans.modules.java.platform.wizard.PlatformInstallIterator.hasNext(PlatformInstallIterator.java:146)
at org.openide.WizardDescriptor.updateStateOpen(WizardDescriptor.java:829)
at org.openide.WizardDescriptor.updateState(WizardDescriptor.java:801)
at org.openide.WizardDescriptor$Listener.stateChanged(WizardDescriptor.java:1929)
at org.openide.util.WeakListenerImpl$Change.stateChanged(WeakListenerImpl.java:319)
at org.openide.util.ChangeSupport.fireChange(ChangeSupport.java:123)
at org.openide.util.ChangeSupport.fireChange(ChangeSupport.java:109)
at org.netbeans.modules.java.platform.wizard.SelectorPanel.itemStateChanged(SelectorPanel.java:146)
at javax.swing.AbstractButton.fireItemStateChanged(AbstractButton.java:2023)
at javax.swing.AbstractButton$Handler.itemStateChanged(AbstractButton.java:2325)
at javax.swing.DefaultButtonModel.fireItemStateChanged(DefaultButtonModel.java:440)
at javax.swing.JToggleButton$ToggleButtonModel.setSelected(JToggleButton.java:255)
at javax.swing.ButtonGroup.setSelected(ButtonGroup.java:147)
at javax.swing.JToggleButton$ToggleButtonModel.setSelected(JToggleButton.java:237)
at javax.swing.JToggleButton$ToggleButtonModel.setPressed(JToggleButton.java:272)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
at java.awt.Component.processMouseEvent(Component.java:6216)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
at java.awt.Component.processEvent(Component.java:5981)
at java.awt.Container.processEvent(Container.java:2041)
at java.awt.Component.dispatchEventImpl(Component.java:4583)
at java.awt.Container.dispatchEventImpl(Container.java:2099)
at java.awt.Component.dispatchEvent(Component.java:4413)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4556)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4220)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4150)
at java.awt.Container.dispatchEventImpl(Container.java:2085)
at java.awt.Window.dispatchEventImpl(Window.java:2475)
at java.awt.Component.dispatchEvent(Component.java:4413)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:104)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:178)
at java.awt.Dialog$1.run(Dialog.java:1051)
at java.awt.Dialog$3.run(Dialog.java:1103)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Dialog.show(Dialog.java:1101)
at org.netbeans.core.windows.services.NbPresenter.superShow(NbPresenter.java:867)
at org.netbeans.core.windows.services.NbPresenter.doShow(NbPresenter.java:901)
at org.netbeans.core.windows.services.NbPresenter.run(NbPresenter.java:889)
at org.netbeans.core.windows.services.NbPresenter.run(NbPresenter.java:109)
at org.openide.util.Mutex.doEventAccess(Mutex.java:1355)
at org.openide.util.Mutex.readAccess(Mutex.java:268)
at org.netbeans.core.windows.services.NbPresenter.show(NbPresenter.java:874)
at java.awt.Component.show(Component.java:1516)
at java.awt.Component.setVisible(Component.java:1468)
at java.awt.Window.setVisible(Window.java:841)
at java.awt.Dialog.setVisible(Dialog.java:991)
at org.netbeans.modules.java.platform.ui.PlatformsCustomizer.addNewPlatform(PlatformsCustomizer.java:340)
at org.netbeans.modules.java.platform.ui.PlatformsCustomizer.access$000(PlatformsCustomizer.java:89)
at org.netbeans.modules.java.platform.ui.PlatformsCustomizer$1.actionPerformed(PlatformsCustomizer.java:197)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
at java.awt.Component.processMouseEvent(Component.java:6216)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
at java.awt.Component.processEvent(Component.java:5981)
at java.awt.Container.processEvent(Container.java:2041)
at java.awt.Component.dispatchEventImpl(Component.java:4583)
at java.awt.Container.dispatchEventImpl(Container.java:2099)
at java.awt.Component.dispatchEvent(Component.java:4413)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4556)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4220)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4150)
at java.awt.Container.dispatchEventImpl(Container.java:2085)
at java.awt.Window.dispatchEventImpl(Window.java:2475)
at java.awt.Component.dispatchEvent(Component.java:4413)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:104)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:178)
at java.awt.Dialog$1.run(Dialog.java:1051)
at java.awt.Dialog$3.run(Dialog.java:1103)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Dialog.show(Dialog.java:1101)
at org.netbeans.core.windows.services.NbPresenter.superShow(NbPresenter.java:867)
at org.netbeans.core.windows.services.NbPresenter.doShow(NbPresenter.java:901)
at org.netbeans.core.windows.services.NbPresenter.run(NbPresenter.java:889)
at org.netbeans.core.windows.services.NbPresenter.run(NbPresenter.java:109)
at org.openide.util.Mutex.doEventAccess(Mutex.java:1355)
at org.openide.util.Mutex.readAccess(Mutex.java:268)
at org.netbeans.core.windows.services.NbPresenter.show(NbPresenter.java:874)
at java.awt.Component.show(Component.java:1516)
at java.awt.Component.setVisible(Component.java:1468)
at java.awt.Window.setVisible(Window.java:841)
at java.awt.Dialog.setVisible(Dialog.java:991)
at org.netbeans.api.java.platform.PlatformsCustomizer.showCustomizer(PlatformsCustomizer.java:72)
at org.netbeans.modules.java.platform.ui.PlatformsCustomizerAction.performAction(PlatformsCustomizerAction.java:57)
at org.openide.util.actions.CallableSystemAction$1.run(CallableSystemAction.java:118)
at org.netbeans.modules.openide.util.ActionsBridge.doPerformAction(ActionsBridge.java:77)
at org.openide.util.actions.CallableSystemAction.actionPerformed(CallableSystemAction.java:114)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
at javax.swing.AbstractButton.doClick(AbstractButton.java:357)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1225)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1266)
at java.awt.Component.processMouseEvent(Component.java:6216)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
at java.awt.Component.processEvent(Component.java:5981)
at java.awt.Container.processEvent(Container.java:2041)
at java.awt.Component.dispatchEventImpl(Component.java:4583)
at java.awt.Container.dispatchEventImpl(Container.java:2099)
at java.awt.Component.dispatchEvent(Component.java:4413)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4556)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4220)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4150)
at java.awt.Container.dispatchEventImpl(Container.java:2085)
at java.awt.Window.dispatchEventImpl(Window.java:2475)
at java.awt.Component.dispatchEvent(Component.java:4413)
[catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:104)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
|
|
|
| Back to top |
|
 |
tohru
Joined: 28 Feb 2009 Posts: 1
|
Posted: Sat Feb 28, 2009 7:19 am Post subject: |
|
|
I had the same problem with the Nokia SDK and solved it by uninstalling JDK 6 and Netbeans, and then installing JDK 5 and Netbeans 6.5. However, I am puzzled by this and would like to know why this is the case.  |
|
| Back to top |
|
 |
Lexicanum
Joined: 16 Feb 2009 Posts: 2
|
Posted: Sat Feb 28, 2009 7:25 am Post subject: |
|
|
| It seems there's an issue with JDK 6 Update 12, you can install JDK 6 U 11 and it will all work again. Least that's how I managed to get things to work without having to rollback to JDK 5. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|
|
|