Exception on attempt to validate an invalid RNC schema

Having trouble installing Oxygen? Got a bug to report? Post it all here.
psergey

Exception on attempt to validate an invalid RNC schema

Post by psergey »

One needs to do the following to repeat:
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}
}
Try to validate it,
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)
george
Site Admin
Posts: 2095
Joined: Thu Jan 09, 2003 2:58 pm

Post by george »

Thanks, it seems to be a problem with locating the errors at the end of the file. This will be fixed.

Best Regards,
George
Post Reply