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 55525 - Editing JSP consumes processor
Summary: Editing JSP consumes processor
Status: CLOSED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: JSP (show other bugs)
Version: 4.x
Hardware: All All
: P2 blocker (vote)
Assignee: Marek Fukala
URL:
Keywords: PERFORMANCE, REGRESSION
Depends on:
Blocks:
 
Reported: 2005-02-25 10:29 UTC by zikmund
Modified: 2006-03-24 12:52 UTC (History)
1 user (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 zikmund 2005-02-25 10:29:01 UTC
Build 200502241900

1) Have clean userdir, new WebApp project with new JSP
2) Press a key and hold (many characters are added
to JSP editor)
3) ERROR:
it consumes 100% of processor.
Comment 1 zikmund 2005-02-25 10:29:49 UTC
It consumed only 50% of my processor in NetBeans 4.0.
Comment 2 zikmund 2005-02-28 17:21:24 UTC
It seems to be reproducible only in my userdir. I will send it privately.

What I did before this happened with that userdir:
- created and closed several Web and Java library projects (I did
nothing special except Build and Run)
- set up new JSP indentation engine settings (see issue 50624)
Comment 3 zikmund 2005-02-28 17:32:52 UTC
Well, I have tried it once more and I am not able to reproduce to.
Closing as WorksForMe.
Comment 4 zikmund 2005-03-07 11:16:52 UTC
It happend to me again in build 200503061900. I opened 4.0 project,
did several Build/Clean, Properties changes (part of verifing issues)
and after that consuming processor while holding 1 key appeared.
Reproducible in my userdir (4 times).
Comment 5 Marek Fukala 2005-03-10 09:07:39 UTC
The problem is surprisingly caused by a badly deserialized JSP indentation
engine. If a java indentation engine is deserialized befor the JSP one, then
this one is used for JSP files and then causes the perfomance problems when user
is editing a JSP page. I will fix it in 4.1.
Comment 6 Marek Fukala 2005-03-10 14:26:15 UTC
fixed. 

There is a problem with lookup service which strictly requires <instanceof/>
elements for all super classes of a class defined in settings.

Checking in JspIndentEngine.settings;
/cvs/web/jspsyntax/src/org/netbeans/modules/web/core/syntax/JspIndentEngine.settings,v
 <--  JspIndentEngine.settings
new revision: 1.3; previous revision: 1.2
done
Comment 7 zikmund 2005-03-11 10:05:07 UTC
Verified in (originally) reproducible scenario:
  Open JSP editor before opening Java editor after IDE start.