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 126628 - NullPointerException at org.netbeans.modules.html.editor.coloring.EmbeddingUpdater.createEmbedding
Summary: NullPointerException at org.netbeans.modules.html.editor.coloring.EmbeddingUp...
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Lexer (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Miloslav Metelka
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-04 15:49 UTC by dynamite
Modified: 2008-03-03 17:11 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 24470


Attachments
stacktrace (1019 bytes, text/plain)
2008-02-04 15:49 UTC, dynamite
Details
stacktrace (1019 bytes, text/plain)
2008-02-04 17:04 UTC, dynamite
Details
stacktrace (1019 bytes, text/plain)
2008-02-04 19:21 UTC, _ krystyna
Details
stacktrace (1019 bytes, text/plain)
2008-02-04 19:27 UTC, _ krystyna
Details
stacktrace (1019 bytes, text/plain)
2008-02-05 14:30 UTC, Roman Mostyka
Details
stacktrace (1019 bytes, text/plain)
2008-02-05 17:30 UTC, jsr
Details
stacktrace (1019 bytes, text/plain)
2008-02-06 01:38 UTC, ddevore
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dynamite 2008-02-04 15:49:21 UTC
Build: NetBeans IDE Dev (Build 200802040003)
VM: Java HotSpot(TM) Client VM, 10.0-b19
OS: Windows XP, 5.1, x86

User Comments:
Comment 1 dynamite 2008-02-04 15:49:25 UTC
Created attachment 55998 [details]
stacktrace
Comment 2 dynamite 2008-02-04 17:03:53 UTC
Build: NetBeans IDE Dev (Build 200802040003)
VM: Java HotSpot(TM) Client VM, 10.0-b19
OS: Windows XP, 5.1, x86

User Comments: 
This exception happens on every re-scan of a JSP.
Comment 3 dynamite 2008-02-04 17:04:13 UTC
Created attachment 56001 [details]
stacktrace
Comment 4 _ krystyna 2008-02-04 19:21:20 UTC
Build: NetBeans IDE Dev (Build 200802041203)
VM: Java HotSpot(TM) Client VM, 10.0-b19
OS: Windows XP, 5.1, x86

User Comments: 
-after restarting ide, no projects loaded, created a two page VW project, just dropped a button and table on ee5 project.
Comment 5 _ krystyna 2008-02-04 19:21:23 UTC
Created attachment 56007 [details]
stacktrace
Comment 6 _ krystyna 2008-02-04 19:27:33 UTC
Build: NetBeans IDE Dev (Build 200802041203)
VM: Java HotSpot(TM) Client VM, 1.6.0_02-ea-b02
OS: SunOS, 5.10, sparc

User Comments: 
-restarted IDE, no projects laoded, create new VW ee5 project, dropped a button, then a table component. reproduced this on XP as well.
Comment 7 _ krystyna 2008-02-04 19:27:43 UTC
Created attachment 56008 [details]
stacktrace
Comment 8 _ krystyna 2008-02-05 01:04:23 UTC
HI Marek - this is a blocking issue for us in VW land as it occurs frequently on a component drop
on Windows and Solaris, but worse on Mac where Winston is trying to work. 
Comment 9 Roman Mostyka 2008-02-05 14:29:58 UTC
Build: NetBeans IDE Dev (Build 200802050005)
VM: Java HotSpot(TM) Client VM, 1.6.0_03-b05
OS: Windows XP, 5.1, x86

User Comments: 
1. Create web application with "Visual Wreb JSF" framework.
2. Add second Web Page.
3. Add Button component to the first page.
4. Open Page Flow Editor.
5. Press mouse button on button component of the first page, move cursor to the second page and release a mouse button.

Result: NullPointerException arises.
Comment 10 Roman Mostyka 2008-02-05 14:30:01 UTC
Created attachment 56071 [details]
stacktrace
Comment 11 Winston Prakash 2008-02-05 14:42:40 UTC
I'm raining this issue to p1. It is blocking us from do testing to verify the fixes we made.
the NPE dialog pos up on every component dropped in to the designer
Comment 12 Marek Fukala 2008-02-05 16:03:25 UTC
I am looking at it. It is strange - does the problem appear just with the button? or it also happens if you just do some
edits? Were there some change in the generated code recently? It is strange because I haven't touched the code for long
time and it looks like Mila Metelka didn't do any changes in lexer either.
Comment 13 Marek Fukala 2008-02-05 17:05:57 UTC
Jindra Sedek is able to reproduce randomly, however it happens quite often. Can you please confirm that the problem
appeared in the 200802040003? I can do some != null, but I am curious what caused that. Unfortunatelly Mila Metelka is
on vacation :-|.
Comment 14 Marek Fukala 2008-02-05 17:29:47 UTC
I have commited a simple fix preventing the NPE + added some debug info. Downgrading to P2 for now, I hope Mila will
look at it at the problem more deeply once he returns from the vacation and identify the source.
Comment 15 jsr 2008-02-05 17:30:50 UTC
Build: NetBeans IDE Dev (Build 200802050005)
VM: Java HotSpot(TM) Client VM, 10.0-b19
OS: Windows XP, 5.1, x86

User Comments: 
Comment 16 jsr 2008-02-05 17:30:53 UTC
Created attachment 56095 [details]
stacktrace
Comment 17 ddevore 2008-02-06 01:38:05 UTC
Build: NetBeans IDE Dev (Build 200802031202)
VM: Java HotSpot(TM) Client VM, 1.6.0_02-b06
OS: Windows XP, 5.1, x86

User Comments: 
Copying a table from a database to a JSF Table
Comment 18 ddevore 2008-02-06 01:38:08 UTC
Created attachment 56117 [details]
stacktrace
Comment 19 Miloslav Metelka 2008-02-07 17:18:16 UTC
As it seems to happen randomly, it's likely some sort of a race condition.
I have attempted the following steps:
1. Create web application with "Visual Wreb JSF" framework.
2. Add second Web Page.
3. Add Button component to the first page.
4. Open Page Flow Editor.
5. Press mouse button on button component of the first page, move cursor to the second page and release a mouse button.

Does the 5. means that the page flow editor (btw. it's the one when "Design" button is selected, right?) should support
Drag&Drop? It does not seem so in my case (the button is only moved within the same page).
Comment 20 Exceptions Reporter 2008-02-10 09:16:05 UTC
THIS ISSUE HAS ALREADY 10 DUPLICATES
Comment 21 Marek Fukala 2008-02-20 14:41:36 UTC
I added some NPE checks to the code which now just logs the errorneous situation. Reassigning to lexer module since the
bug is likely there.
Comment 22 Miloslav Metelka 2008-02-27 10:49:35 UTC
Are there any reliable steps how this could be reproduced in any of the recent dev builds?
I'm still not able to reproduce the problem.
Thanks.
Comment 23 Miloslav Metelka 2008-03-03 17:11:51 UTC
I've found that there were some missing read-locks when accessing the lexer module. Please reopen if the issue would
still persist. Thanks.
http://hg.netbeans.org/main?cmd=changeset;node=cf83357b30a1