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.
This error occurs when validating schema of size 540253 bytes and above. Same is in IDE version 5.0 beta.
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.
Reproduced on test files sent by the reporter via email.
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
Verified in FCS build #200501251500 of NetBeans 5.0.