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 62536 - ClassCastException from XmlFoldManager
Summary: ClassCastException from XmlFoldManager
Status: VERIFIED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: Text-Edit (show other bugs)
Version: 5.x
Hardware: All All
: P4 blocker (vote)
Assignee: Marek Fukala
URL:
Keywords:
Depends on: 49497
Blocks: 59488
  Show dependency tree
 
Reported: 2005-08-18 07:31 UTC by Jiri Skrivanek
Modified: 2007-09-25 01:33 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Stack trace (512 bytes, text/plain)
2005-08-18 07:34 UTC, Jiri Skrivanek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Skrivanek 2005-08-18 07:31:34 UTC
ClassCastException appears in commit validation suite when testing xml
documents. I think it is related to mfukala commit (20050817-1847).
Comment 1 Jiri Skrivanek 2005-08-18 07:34:00 UTC
Created attachment 24015 [details]
Stack trace
Comment 2 Marek Fukala 2005-08-18 08:16:09 UTC
The cause of this issue is Issue #49497 (CCE. FilterDocument instead of
BaseDocument) which caused the same problem in JspFoldManager. 

I have added some realtime types checks so now the code should not break the
commit validation. If the problem occures an CCE with a proper description is
thrown with INFORMATIONAL level. 

The issue is quite random (the CV passed on my computer and on the nbbuilder as
well few times), but seems to happen more often than before so maybe someone
from editor or core could fix it!
Comment 3 Jiri Skrivanek 2005-08-18 11:56:30 UTC
I added dependency on issue 49497. We agreed to keep this issue open until issue
49497 is fixed. Then all hacks can be removed.
Comment 4 Miloslav Metelka 2005-10-09 11:05:17 UTC
I guess 
Comment 5 Miloslav Metelka 2005-10-09 11:13:37 UTC
I guess we've tracked this with Jirka and it was finding a PlainKit with
PlainDocument which was then wrapped by the FilterDocument.
I do not understand though that you've seen this randomly.
Any progress regarding this? Like in the past you can add a breakpoint or debug
msg into o.o.text.FilterDocument's constructor to track the problem.
Comment 6 Jiri Skrivanek 2005-10-10 10:19:04 UTC
I think you tracked this with Marek. Anyway I can't see the exception in recent
builds.
Comment 7 Marek Fukala 2005-10-12 15:20:17 UTC
Since the impact of the Issue #49497 has been hacked in the xml fold manager
code there is no more user impact. Once the problemati issue is fixed I will
remove the hacks. Downgrading to P4.
Comment 8 Jaroslav Pospisil 2006-03-13 13:35:22 UTC
TM 5.0->TBD
Comment 9 Marek Fukala 2006-08-21 16:10:31 UTC
fixed already
Comment 10 Jiri Skrivanek 2006-08-24 09:47:03 UTC
Verified.