Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 315257 - Errors logged while loading JSP tag registry
Summary: Errors logged while loading JSP tag registry
Status: RESOLVED FIXED
Alias: None
Product: Java Server Faces
Classification: WebTools
Component: JSF Tools (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.2 RC4   Edit
Assignee: Gerry Kessler CLA
QA Contact:
URL:
Whiteboard: PMC_approved
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-01 13:22 EDT by Gerry Kessler CLA
Modified: 2010-06-02 18:24 EDT (History)
6 users (show)

See Also:
david_williams: pmc_approved+
raghunathan.srinivasan: pmc_approved? (naci.dai)
raghunathan.srinivasan: pmc_approved? (deboer)
neil.hauge: pmc_approved+
kaloyan: pmc_approved+
cameron.bateman: review+
raghunathan.srinivasan: review+


Attachments
Fix (1.21 KB, patch)
2010-06-01 16:07 EDT, Gerry Kessler CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Gerry Kessler CLA 2010-06-01 13:22:21 EDT
Errors are being logged in an adopter product under certain circumstances where tag classes cannot be located for a tag.   The errors are a result of the TagIntrospectingStrategy attempting to analyze tag libraries that are not JSF component libraries.  Except for the log entries, there does not appear to be any negative impact.

Eg. Exception

!ENTRY org.eclipse.jst.jsf.core 4 0 2010-05-27 11:37:04.889 
!MESSAGE Bad tag class name in 
org.eclipse.jst.jsp.core.internal.contentmodel.tld.CMElementDeclarationImpl@37 
<snip>

!STACK 0 
java.lang.Throwable 
at 
org.eclipse.jst.jsf.designtime.internal.view.model.jsp.analyzer.TagAnalyzer.cr 
eateTLDTagElement(TagAnalyzer.java:577) 
at 
org.eclipse.jst.jsf.designtime.internal.view.model.jsp.TagIntrospectingStrateg 
y.resolve(TagIntrospectingStrategy.java:69) 
at 
org.eclipse.jst.jsf.designtime.internal.view.model.jsp.JSPTagResolvingStrategy 
.resolve(JSPTagResolvingStrategy.java:1) 
at 
org.eclipse.jst.jsf.designtime.internal.view.model.jsp.AbstractTagResolvingStr 
ategy.perform(AbstractTagResolvingStrategy.java:42) 
at 
org.eclipse.jst.jsf.designtime.internal.view.model.jsp.AbstractTagResolvingStr 
ategy.perform(AbstractTagResolvingStrategy.java:1) 
at 
@ org.eclipse.jst.jsf.common.internal.strategy.StrategyComposite$DefaultComposit 
@ ionStrategy.compose(StrategyComposite.java:180) 
at 
@ org.eclipse.jst.jsf.common.internal.strategy.StrategyComposite.perform(Strateg 
yComposite.java:66) 
at 
@ org.eclipse.jst.jsf.designtime.internal.view.model.jsp.CompositeTagResolvingSt 
rategy.resolve(CompositeTagResolvingStrategy.java:64) 
at 
<snip>
Comment 1 Gerry Kessler CLA 2010-06-01 14:02:11 EDT
It should be pointed out that, depending on the tag libraries, there will be multiple (we have seen 10) exceptions logged per project per session.
Comment 2 Gerry Kessler CLA 2010-06-01 16:07:38 EDT
Created attachment 170693 [details]
Fix

A simple fix that logs the exception only when a trace option (which already exists) is enabled.  Since the log entry is really only useful for debugging, this is a consistent solution.
Comment 3 Raghunathan Srinivasan CLA 2010-06-01 16:20:57 EDT
* Explain why you believe this is a stop-ship defect. Or, if it is a "hotbug"
(requested by an adopter) please document it as such. 
This is a hotbug request. Adopter product shows multiple instances of an exception being logged for each project in the workspace.
* Is there a work-around? If so, why do you believe the work-around is
insufficient? 
No reasonable workaround
* How has the fix been tested? Is there a test case attached to the bugzilla
record? Has a JUnit Test been added? 
Code review and manual testing.
* Give a brief technical overview. Who has reviewed this fix? 
See comment 2
* What is the risk associated with this fix?
none
Comment 4 Neil Hauge CLA 2010-06-01 17:02:02 EDT
Approving based on adopter request and low risk nature.
Comment 5 David Williams CLA 2010-06-02 18:08:01 EDT
10 per project per session is very bad. And looks safe enough. 

That 
new Throwable());
looks pretty odd. 
Then I saw you are just passing it to the status logger ... to have a stack trace? 
Up to you.
Comment 6 Gerry Kessler CLA 2010-06-02 18:24:32 EDT
David, I was just wrapping what had originally been there.  I agree with your comment and I have removed the throwable for the checkin.