Exception on attempt to validate an invalid RNC schema
Posted: Wed Nov 03, 2004 3:05 am
One needs to do the following to repeat:
Create a new RNC document
Paste there the following schema (notice the unbalanced brackets)
Try to validate it,
Click on syntax error in the error list and get this in the console
Create a new RNC document
Paste there the following schema (notice the unbalanced brackets)
Code: Select all
element bookstore {
element book {
( element author { text } | element editor { text } )*,
element title {text}
}
Click on syntax error in the error list and get this in the console
Code: Select all
java.lang.IllegalArgumentException: bad position: 132
at javax.swing.text.JTextComponent.setCaretPosition(Unknown Source)
at ro.sync.exml.view.f.a(Unknown Source)
at ro.sync.exml.view.b$17.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)