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 138001 - Jsp editor window doesn't show on what line debugger hit breakpoint in jsp
Summary: Jsp editor window doesn't show on what line debugger hit breakpoint in jsp
Status: VERIFIED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P2 blocker (vote)
Assignee: Martin Entlicher
URL:
Keywords: REGRESSION
Depends on: 105808
Blocks:
  Show dependency tree
 
Reported: 2008-06-23 17:49 UTC by Dan Kolar
Modified: 2008-09-18 14:30 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dan Kolar 2008-06-23 17:49:59 UTC
Product Version: NetBeans IDE Dev (Build 200806230002)
Java: 1.6.0_10-beta; Java HotSpot(TM) Client VM 11.0-b11
System: Windows XP version 5.1 running on x86; Cp1250; cs_CZ (nb)

1) Create new web project on glassfish v2/v3
2) Set breakpoint somewhere in index.jsp
3) Debug project

When breakpoint is hit and debugging stops, you can deduct only from Debugging View, where debugging has stopped. In
other cases the line with breakpoint is green and with arrow poiting on this line.
Comment 1 Petr Jiricka 2008-06-24 15:16:59 UTC
Dane, so this is only in GlassFish, or also in Tomcat? And only JSP, or other languages too?
Comment 2 Dan Kolar 2008-06-24 15:30:28 UTC
It's just in .jsp, for both glassfish and tomcat.
Comment 3 Peter Zavadsky 2008-07-29 13:43:30 UTC
Yes, the problem is there, no green line and arrow is set for the line the debugger is stopped at.
Comment 4 Peter Zavadsky 2008-07-29 15:04:54 UTC
I debugged it a bit, and found following:
in debugger.jpda.ui module:
In the SourcePath.annotate(JPDAThread, String, boolean) method the JPDAThreadImpl provided such path for the current
frame, that the SourcePath wasn't able contruct valid URL and find the index.jsp file. Therefore no annotation (green
line and arrow) happened.

It needs more investigation, and debugger expert, to suggest where and how it should be fixed.
Comment 5 Petr Jiricka 2008-07-29 15:59:35 UTC
Ok, adding Martin Entlicher so he can comment. Peter, thanks for investigation!
Comment 6 Petr Jiricka 2008-09-05 15:04:46 UTC
Could this be related to issue 105808?
Comment 7 Martin Fousek 2008-09-10 16:32:44 UTC
The problem is still there. It's very uneasy to debug .jsp files when the lines aren't marked (when the debug stops on
the lines).
Comment 8 Martin Fousek 2008-09-10 16:34:02 UTC
The problem is still there. It's very uneasy to debug .jsp files when the lines aren't marked (when the debug stops on
the lines).
Comment 9 Martin Entlicher 2008-09-11 16:35:10 UTC
Reproduced. The path is searched for "Java" language, despite the session language is correctly "JSP".
Comment 10 Martin Entlicher 2008-09-11 17:25:23 UTC
Fixed in changeset:   101539:46b466d94729
http://hg.netbeans.org/main/rev/46b466d94729
Comment 11 Quality Engineering 2008-09-12 06:01:33 UTC
Integrated into 'main-golden', will be available in build *200809120201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/46b466d94729
User: mentlicher@netbeans.org
Log: #138001 - When annotating, retrieve the current language property from the session.
Comment 12 josin 2008-09-18 14:30:43 UTC
Works fine. V.

Product Version: NetBeans IDE Dev (Build 200809180201)
Java: 1.6.0_10-beta; Java HotSpot(TM) Client VM 11.0-b11
System: Linux version 2.6.24-19-generic running on i386; UTF-8; en_US (nb)