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 68797 - "Mark Invalid" error when validating XML document against XML Schema
Summary: "Mark Invalid" error when validating XML document against XML Schema
Status: CLOSED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: Tools (show other bugs)
Version: 4.x
Hardware: PC Windows XP
: P3 blocker with 2 votes (vote)
Assignee: Marek Fukala
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-16 12:13 UTC by skan
Modified: 2007-09-25 01:33 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 skan 2005-11-16 12:13:42 UTC
This error occurs when validating schema of size 540253 bytes and above. Same 
is in IDE version 5.0 beta.
Comment 1 Marek Fukala 2005-11-29 12:41:49 UTC
I have tried to reproduce the issue with a generated fake 580kB schema file and
it works well. Can you attach the problematic file? Please also attach the
exception stacktrace (if there is any). I am closing the issue as works for me.
If you are going to attach the info I requested, reopen the issue.
Comment 2 Marek Fukala 2005-11-30 08:29:05 UTC
Reproduced on test files sent by the reporter via email.
Comment 3 Marek Fukala 2005-11-30 10:19:37 UTC
fixed - the problem is with the size of the file.

There was almost the same issue #32939. The fix for it was to increate the
ShareableInputStream buffer to 256kB which is too little for the reporter's files.

I have changed the code so if the mark invalid IOException is thrown from
ShareableInputStream.reset(), the stream is recreated. This causes a little
perfromance degradation (the source stream is read twice), but it is better than
just increasing the buffer size again and hope noone will create bigger xml schema.

Checking in SharedXMLSupport.java;
/cvs/xml/api/src/org/netbeans/spi/xml/cookies/SharedXMLSupport.java,v  <-- 
SharedXMLSupport.java
new revision: 1.10; previous revision: 1.9
done
Comment 4 Jiri Kovalsky 2006-03-06 13:59:11 UTC
Verified in FCS build #200501251500 of NetBeans 5.0.