Konuyu görüntüle
IUCODERS FORUM > Programlama > JAVA > J2ME Api permissions
Yazar
denox


avatar

Kayıt: 11.01.2006
03.03.2009-22:36 #57662
Arkadaşlar selam,
J2ME da bir proje yaparken şu hatayı aldım.nedendir acaba?

yeni bir proje oluşturdum.propertiesden-->applcation descriptor dan api permission eklemek istiyorum fakat ide add butonuna tıladıgım da açması gereken pencereyi açmıyor.ve şöyle bir hata logluyor.


java.lang.NullPointerException
at org.netbeans.modules.mobility.project.ui.customizer.AddPushRegistryPanel.getClazz(AddPushRegistryPanel.java:87)
at org.netbeans.modules.mobility.project.ui.customizer.AddPushRegistryPanel.isValid(AddPushRegistryPanel.java:115)
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.project.ui.customizer.AddPushRegistryPanel.<init>(AddPushRegistryPanel.java:68)
at org.netbeans.modules.mobility.project.ui.customizer.CustomizerPushReg.bAddActionPerformed(CustomizerPushReg.java:284)
at org.netbeans.modules.mobility.project.ui.customizer.CustomizerPushReg.access$200(CustomizerPushReg.java:79)
at org.netbeans.modules.mobility.project.ui.customizer.CustomizerPushReg$3.actionPerformed(CustomizerPushReg.java:181)
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)
[catch] 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.mobility.project.ui.J2MECustomizerProvider.showCustomizer(J2MECustomizerProvider.java:130)
at org.netbeans.modules.mobility.project.ui.J2MECustomizerProvider.showCustomizer(J2MECustomizerProvider.java:95)
at org.netbeans.modules.project.ui.actions.CustomizeProject.actionPerformed(CustomizeProject.java:149)
at org.netbeans.modules.project.ui.actions.LookupSensitiveAction.actionPerformed(LookupSensitiveAction.java:161)
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)
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)


acaba neden açamıyorum bu pencereyi.bir şey mi eksik benim pc de?

ide netbeans 6.5 veya 6.01 ikisind de aynı hatayı alaıyorum

teşekkürler






Yazar
orhan


avatar
istanbul
admin
Kayıt: 17.11.2005
03.03.2009-23:40 #57665
işletim sisteminin dilini USA / English haline getirip dener misin?





N/A
Yazar
denox


avatar

Kayıt: 11.01.2006
03.03.2009-23:56 #57666
orhan yazdi
 
işletim sisteminin dilini USA / English haline getirip dener misin?


orhan bu olay sadece api permissions da değil
application descriptor altındaki 4 tabda da var.midlets,push registry falan.
ilginçtir yeni bir mobile application projesi oluşturabilmek için de var olan birini değiştirmek zorunda kalıyorum yeni J2ME projesi de oluşturamıyor.
ancak samples projeleri değiştirebiliyorum.
Sinir etti bu netbeans ama eclipse daha beter sanırım:)
hani daha kolay sa direkt onu yükleyeyim...





Yazar
aydinsal


avatar

Kayıt: 22.07.2007
04.03.2009-09:58 #57675
netbean ide 6.1 için patch yayınlamış modules.mobility kapsayan. istersen onu dene. patchin düzelteceğini umuyorum.

Patch download link:
http://sunsolve.sun.com/search/document.do?assetkey=1-21-137824





Yazar
orhan


avatar
istanbul
admin
Kayıt: 17.11.2005
04.03.2009-16:19 #57679
denox yazdi
 

Sinir etti bu netbeans ama eclipse daha beter sanırım:)
hani daha kolay sa direkt onu yükleyeyim...

eclipse iyidir :) ama eclipse ile j2me projesi hiç yapmadım. benim j2me maceram netbeans 5.5 de bitti :)

Netbeans'in bug larının önemli bir kısmı file encoding ile alakalı. O yüzden işletim sisteminin dili ingilizce ise yada linux kullanıyor isen sorun pek yaşamıyorsun.





N/A
Del.icio.us
Digg
Facebook
Furl
Google
Blink
Simpy
Spurl
Y! MyWeb