Please use the Apache issue tracking system for new NetBeans issues ( !!
Bug 196188 - AssertionError from EL completion
AssertionError from EL completion
Product: javaee
Classification: Unclassified
Component: Expression Language
: P2 (vote)
: 7.0
Assigned To: Marek Fukala
: 196550 (view as bug list)
Depends on:
  Show dependency treegraph
Reported: 2011-03-02 09:18 UTC by Marek Fukala
Modified: 2011-04-07 13:33 UTC (History)
8 users (show)

See Also:
Issue Type: DEFECT

stacktrace (2.15 KB, text/plain)
2011-03-18 13:22 UTC, malakim
stacktrace (2.15 KB, text/plain)
2011-04-04 01:03 UTC, David Konecny

Note You need to log in before you can comment on or make changes to this bug.
Description Marek Fukala 2011-03-02 09:18:54 UTC
1) create an xhtml file
2) type #{"hello"} expression somewhere
3) add < before the hash character

	at org.netbeans.modules.web.el.ELElement.findNodeAt(
	at org.netbeans.modules.web.el.completion.ELCodeCompletionHandler.getTargetNode(
	at org.netbeans.modules.web.el.completion.ELCodeCompletionHandler.complete(
Comment 1 Marek Fukala 2011-03-14 13:59:16 UTC
*** Bug 196550 has been marked as a duplicate of this bug. ***
Comment 2 malakim 2011-03-18 13:22:02 UTC
Created attachment 107105 [details]

Editing a JSP file
Comment 3 David Konecny 2011-04-04 01:03:44 UTC
Created attachment 107452 [details]

I turned Maven Web Application into OSGI bundle and trying JSP editor - messy setup but IDE should not throw an exception.
Comment 4 Marek Fukala 2011-04-05 15:42:02 UTC
I cannot reproduce the issue now. Not a high priority issue, downgrading.

The problem seems to be in the "sanitized" version of ELExpression. If the expression is not resolved as valid and is sanitized, the assertion may possibly not to be true.
Comment 5 David Konecny 2011-04-05 19:32:09 UTC
Actually it does happen even in regular Web Application project:

* create fresh Web App
* change index.jsp to contain for example: 

  <title>JSP Page |${applicationScope} </title>

* place editor caret where | is and open code completion. I always get the exception.
Comment 6 Marek Fukala 2011-04-05 19:40:44 UTC
Great, thanks, now I can fix it... I wonder why the original test case stopped working?!?!
Comment 7 Marek Fukala 2011-04-06 09:56:39 UTC
fixed in web-main#97267100c415
Comment 8 Marek Fukala 2011-04-06 10:01:13 UTC
Since we need to integrate to releases clone ASAP I've tested the fix myself and asked Martin Fousek to do the code review.
Comment 9 Martin Fousek 2011-04-06 11:37:46 UTC
Reviewed, feel free to integrate. 
I tried it locally and debug the code in places around this issue, looks safe.
Comment 10 Marek Fukala 2011-04-06 13:26:29 UTC
integrated into release70 branch: 50e8fb1e01d0
Comment 11 Martin Fousek 2011-04-06 13:44:13 UTC
Verified in rebuilt IDE (from release70). Not marking as verified because I suppose that QE would like perhaps to verify it by themself in RC2.
Comment 12 Quality Engineering 2011-04-07 08:46:51 UTC
Integrated into 'main-golden', will be available in build *201104070400* on (upload may still be in progress)
User: Marek Fukala <>
Log: #196188 - AssertionError from EL completion
Comment 13 Vladimir Riha 2011-04-07 13:33:31 UTC

Dev 201104070400
RC2 201104070802

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo