Bessere Texte von Fehlermeldungen / more detailed text of error message

Guten Morgen,

ich arbeite gerade mit den RULES und bin auf beigefügte Fehlermeldung gestoßen. Das eigentliche Problem war nicht valides XML weil sich an den Anfang (noch vor das RULES-Tag) ein Zeichen eingeschlichen hat.

Ist es möglich die Fehlermeldung entsprechend abzufangen und mit einem verständlichen Text zu versehen?

Beste Grüße

Diana

-----------------------------------------------------

Good morning,

I'm working with the RULES at the moment and had the following error message. It was caused by invalid XML (there was a letter infront of the RULES Tag)

Is there a way to catch this error and set a clear message?

Best regards

Diana

--------------------------------------------------

Client Version: 5.0.318.57504

Java Version: 1.6.0_45 Sun Microsystems Inc.

FSVersion=5.0.318.57504#2242;JDK=1.6.0_45 64bit Sun Microsystems Inc.;OS=Windows 7 6.1 amd64;Date=11.09.2013 09:07:05

java.lang.IllegalStateException: expected token type '0', got '3

    at de.espirit.firstspirit.forms.rules.RuleParser.readToken(RuleParser.java:440)

    at de.espirit.firstspirit.forms.rules.RuleParser.readTag(RuleParser.java:419)

    at de.espirit.firstspirit.forms.rules.RuleParser.parse(RuleParser.java:95)

    at de.espirit.firstspirit.forms.rules.RuleParser.parse(RuleParser.java:62)

    at de.espirit.firstspirit.store.access.templatestore.RulesetDefinitionMaintainer.set(RulesetDefinitionMaintainer.java:48)

    at de.espirit.firstspirit.store.access.templatestore.TemplateImpl.setRulesetDefinition(TemplateImpl.java:366)

    at de.espirit.firstspirit.client.gui.tree.store.templatestore.TSAccessTabbedView$RulesViewComponent$1.invoke(TSAccessTabbedView.java:1129)

    at de.espirit.firstspirit.client.gui.tree.store.templatestore.TSAccessTabbedView$RulesViewComponent$1.invoke(TSAccessTabbedView.java:1126)

    at de.espirit.firstspirit.client.gui.tree.store.templatestore.TSAccessTabbedView$RulesViewComponent.checkSyntax(TSAccessTabbedView.java:1160)

    at de.espirit.firstspirit.client.gui.tree.store.templatestore.TSAccessTabbedView$RulesViewComponent.saveNodeChanges(TSAccessTabbedView.java:1126)

    at de.espirit.firstspirit.client.gui.tree.store.AbstractAccessTabbedView$4.evaluate(AbstractAccessTabbedView.java:445)

    at de.espirit.firstspirit.client.gui.tree.store.AbstractAccessTabbedView$4.evaluate(AbstractAccessTabbedView.java:441)

    at de.espirit.firstspirit.client.gui.tabbing.TabModelReader$Util.traverse(TabModelReader.java:60)

    at de.espirit.firstspirit.client.gui.tree.store.AbstractAccessTabbedView$SubTabModel.traverse(AbstractAccessTabbedView.java:660)

    at de.espirit.firstspirit.client.gui.tree.store.AbstractAccessTabbedView.saveNodeChanges(AbstractAccessTabbedView.java:441)

    at de.espirit.firstspirit.client.gui.tree.store.templatestore.TSTemplateView.saveNodeChanges(TSTemplateView.java:168)

    at de.espirit.firstspirit.client.gui.tree.store.AbstractAccessView.save(AbstractAccessView.java:209)

    at de.espirit.firstspirit.client.gui.tree.store.AbstractGuiStoreElement.save(AbstractGuiStoreElement.java:611)

    at de.espirit.firstspirit.client.gui.tree.store.AbstractGuiStoreElement.save(AbstractGuiStoreElement.java:597)

    at de.espirit.firstspirit.client.gui.tree.store.AbstractGuiStoreElement.save(AbstractGuiStoreElement.java:584)

    at de.espirit.firstspirit.client.action.SaveAction.actionPerformed(SaveAction.java:77)

    at de.espirit.firstspirit.client.keymap.KeyEventDispatcher.processAction(KeyEventDispatcher.java:283)

    at de.espirit.firstspirit.client.keymap.KeyEventDispatcher.inInitState(KeyEventDispatcher.java:224)

    at de.espirit.firstspirit.client.keymap.KeyEventDispatcher.dispatchKeyEvent(KeyEventDispatcher.java:177)

    at de.espirit.firstspirit.client.AWTDispatchingEventQueue._dispatchEvent(AWTDispatchingEventQueue.java:120)

    at de.espirit.firstspirit.client.AWTDispatchingEventQueue.dispatchEvent(AWTDispatchingEventQueue.java:110)

    at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)

    at java.awt.EventDispatchThread.pumpEventsForFilter(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)