This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 71144 - A crash while generating code using Mobile Client To Web App wizard and MIDP 1.0 Application.
Summary: A crash while generating code using Mobile Client To Web App wizard and MIDP ...
Status: CLOSED FIXED
Alias: None
Product: javame
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 5.x
Hardware: Other Windows XP
: P2 blocker (vote)
Assignee: Petr Suchomel
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-08 16:14 UTC by przemek
Modified: 2008-09-10 16:07 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
error log (814.61 KB, text/plain)
2006-01-08 16:17 UTC, przemek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description przemek 2006-01-08 16:14:19 UTC
There is a big problem with NetBeans 5.0 beta 2 while generating code using
Mobile Client To Web App wizard and MIDP 1.0.

There's the scenario.

1. I created a new web application using BundledTomcat 5.5.9. 

2. I created a new Mobile Application using MIPD 1.0.

3. I created a new servlet in my WebApp with one default method getServletInfo.

4. In the MobileApp I used Mobile Client To Web App wizard. In "Method in web
project" window I selected getServletInfo method. And I selected "generate
stubs" and "create simple midlet". 

5. During the code generation I got the following error

java.lang.NullPointerException
	at
org.netbeans.modules.vmd.components.nbmidp.AbstractInfoScreenDC.fixComponent(AbstractInfoScreenDC.java:70)
	at
org.netbeans.modules.vmd.components.nbmidp.WaitScreenDC.fixComponent(WaitScreenDC.java:60)
	at
org.netbeans.modules.e2e.designgenerator.VisualDesignGenerator.createWaitSceeen(VisualDesignGenerator.java:1020)
	at
org.netbeans.modules.e2e.designgenerator.VisualDesignGenerator.createFlowForMethod(VisualDesignGenerator.java:739)
	at
org.netbeans.modules.e2e.designgenerator.VisualDesignGenerator.generateDesignImpl(VisualDesignGenerator.java:727)
	at
org.netbeans.modules.e2e.designgenerator.VisualDesignGenerator.generateDesign(VisualDesignGenerator.java:109)
	at org.netbeans.modules.e2e.E2EDataObject$3.run(E2EDataObject.java:379)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:471)
[catch] at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:904)

And then when I tried to compile my mobile application I got that:

C:\java\MobileApplication1\src\hello\WebToMobileClientMIDlet.java:63: cannot
find symbol
symbol  : method setServiceURL(java.lang.String)
location: class hello.WebToMobileClientMIDlet
                setServiceURL(urlTextField.getString());
1 error
Comment 1 przemek 2006-01-08 16:17:28 UTC
Created attachment 28282 [details]
error log
Comment 2 Roman Strobl 2006-01-11 18:32:35 UTC
Reassigning to j2me. Please evaluate.
Comment 3 Lukas Hasik 2006-01-12 09:31:29 UTC
thanks for report.
The sample midlet should be generated only for MIDP2.0 It is bug and it should
be probably fixed for 5.0 release to don;t confuse users.

Mobility pack provides as much freedom as possible for user so it you can have
project for emulator with MIDP1.0 and create sources using MIDP2.0 into this
project. It is then user's mistake, IMO. 

Decreasing priority to P2 - this issue doesn't influence any other functionality
then a sample midlet. Please look at
http://qa.netbeans.org/processes/bug_priority_guidelines.html 

Comment 4 Lukas Hasik 2006-01-17 14:18:49 UTC
fixed and tested
you can verify it when RC2 will be published
Comment 5 Lukas Hasik 2007-02-16 15:44:58 UTC
v
Comment 6 Lukas Hasik 2007-03-28 08:02:08 UTC
verified in RC1 of 551
Comment 7 Ivan Sidorkin 2008-09-10 16:07:10 UTC
close old issues