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 175979 - Can't create a mobile client for Web application
Summary: Can't create a mobile client for Web application
Status: VERIFIED FIXED
Alias: None
Product: javame
Classification: Unclassified
Component: Web Services (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker with 1 vote (vote)
Assignee: Petr Suchomel
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-03 17:17 UTC by Andrei Chistiakov
Modified: 2010-01-14 02:00 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screenshot (61.90 KB, image/png)
2009-11-03 17:17 UTC, Andrei Chistiakov
Details
sample projects (45.32 KB, application/x-compressed)
2009-11-03 17:18 UTC, Andrei Chistiakov
Details
patch (3.06 KB, text/plain)
2009-11-18 07:24 UTC, t_h
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrei Chistiakov 2009-11-03 17:17:18 UTC
Product Version: NetBeans IDE Dev (Build 200911030222)
Java: 1.6.0_16; Java HotSpot(TM) Client VM 14.2-b01
System: Windows XP version 5.1 running on x86; Cp1251; ru_RU (nb)

To reproduce:
- open the attached projects
- select MobileApplication1 and invoke New->Java ME Client For Web Application
- press Next
- check any method

There are two issues:

- Next and Finish buttons remain disabled even if a method is checked
- attempt to check more than one method in the tree fails. Only one method can be checked

See attached screenshot
Comment 1 Andrei Chistiakov 2009-11-03 17:17:48 UTC
Created attachment 90459 [details]
screenshot
Comment 2 Andrei Chistiakov 2009-11-03 17:18:23 UTC
Created attachment 90460 [details]
sample projects
Comment 3 Petr Suchomel 2009-11-04 09:08:09 UTC
Marku, I think this is an optimization issue which was rounding around for a while.
Comment 4 Petr Suchomel 2009-11-04 09:10:15 UTC
Sorry the comment was for #175960 :)
Comment 5 Petr Suchomel 2009-11-11 04:15:29 UTC
It does not work in 6.7.1 as well. I am trying to find the root cause
Comment 6 Petr Suchomel 2009-11-14 14:51:19 UTC
It seems the events are not for some reasons propagated back to model. This can be by some change in BeanTreeView or so, I was not able to find the root cause yet
Comment 7 Petr Suchomel 2009-11-16 07:14:55 UTC
This seems to be connected with lazy nodes .. I need some help
Comment 8 lavel 2009-11-16 07:32:20 UTC
what kind of help you need ?
Comment 9 Petr Suchomel 2009-11-16 09:15:21 UTC
I am currently not able to drill down what is the root of the issue? Any hint?
Comment 10 lavel 2009-11-17 00:24:50 UTC
This is IDE Log when i`m trying to create Mobile Client for Web App

INFO [org.netbeans.api.java.source.ElementHandle]: Cannot resolve: ElementHandle[kind=CLASS; sigs=webservice.feedback.wallet.package-info ]


java.lang.Exception: Stack trace
        at java.lang.Thread.dumpStack(Thread.java:1206)
        at org.netbeans.api.java.classpath.ClassPath.getClassPath(ClassPath.java:546)
        at org.netbeans.api.java.source.ClasspathInfo.create(ClasspathInfo.java:263)
        at org.netbeans.api.java.source.ClasspathInfo.create(ClasspathInfo.java:274)
        at org.netbeans.modules.mobility.end2end.multiview.ServicesPanel.updateTree(ServicesPanel.java:243)
        at org.netbeans.modules.mobility.end2end.multiview.ServicesPanel.access$000(ServicesPanel.java:92)
        at org.netbeans.modules.mobility.end2end.multiview.ServicesPanel$1.run(ServicesPanel.java:104)
        at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:577)
        at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1030)

where webservice.feedback.wallet - namespace for Web Service Reference in my Web Application. I guess the INFO block throwed exception.
Comment 11 t_h 2009-11-18 07:09:36 UTC
Probably broken by #4e49c36ab2a7, specifically by changes in MethodCheckedNodeRenderer.getTreeCellRendererComponent(). I guess it should use 'this' and return this and not to create new MethodCheckedNodeRenderer on every call.
Comment 12 t_h 2009-11-18 07:24:58 UTC
Created attachment 91256 [details]
patch
Comment 13 Denis Anisimov 2009-11-18 07:45:26 UTC
>Probably broken by #4e49c36ab2a7, specifically by changes in
>MethodCheckedNodeRenderer.getTreeCellRendererComponent(). I guess it should use
>'this' and return this and not to create new MethodCheckedNodeRenderer on every
>call.

I think this is true.
My change #4e49c36ab2a7 has introduced this issue.
It was inaccurate at least. ( Methods addItemListener(), ... requires delegates ).

BUT your fix is just rollback of fix #4e49c36ab2a7.
As result Issue #162018 appears again.
Comment 14 t_h 2009-11-18 08:05:53 UTC
1) Your assumption for fix #162018:

"OK, I have found the problem actually .
Renderer has used the same component for each cell.
But component for each cell should be different."

is wrong. The fix was wrong and inefficient.

2) I did not see #162018 in samples from #175979 after fix. If it appears again the issue #162018 should be reopened and re-evaluated.
Comment 15 Petr Suchomel 2009-11-18 09:55:53 UTC
Rollback 4e49c36ab2a7, CS e0718f5760fc see https://netbeans.org/bugzilla/show_bug.cgi?id=162018 for more details
Comment 16 Andrei Chistiakov 2009-11-19 06:42:00 UTC
Verified with NetBeans IDE Dev (Build 200911190201)
Comment 17 pgebauer 2010-01-14 02:00:41 UTC
Since the changeset e0718f5760fc is part of the NeBeans IDE 6.8, the whiteboard 68patch1-candidate has been removed. If the issue #162018 should be fixed, please add the whiteboard 68patch-candidate there.