Skip to content

Check for corrupted aiml files #3

Description

@moz4r

Kwatters, I not yet tested your last mods, maybe we can intercept NPE now.
This is the issue, if there is some corrupted aiml in the set :
( seem not blocking inside eclipse, but cause issues inside standalone jar )

[Fatal Error] client_profile.aiml:877:33: XML document structures must start and end within the same entity. AIMLToCategories: org.xml.sax.SAXParseException; systemId: file:/C:/Users/moz4r/git/myrobotlab/ProgramAB/bots/en-US/aiml/client_profile.aiml; lineNumber: 877; columnNumber: 33; XML document structures must start and end within the same entity. Problem loading client_profile.aiml contactaction.aiml org.xml.sax.SAXParseException; systemId: file:/C:/Users/moz4r/git/myrobotlab/ProgramAB/bots/en-US/aiml/client_profile.aiml; lineNumber: 877; columnNumber: 33; XML document structures must start and end within the same entity. at org.apache.xerces.parsers.DOMParser.parse(Unknown Source) at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source) at javax.xml.parsers.DocumentBuilder.parse(Unknown Source) at org.alicebot.ab.utils.DomUtils.parseFile(DomUtils.java:30) at org.alicebot.ab.AIMLProcessor.AIMLToCategories(AIMLProcessor.java:119) at org.alicebot.ab.Bot.addCategoriesFromAIML(Bot.java:242) at org.alicebot.ab.Bot.<init>(Bot.java:169) at org.alicebot.ab.Bot.<init>(Bot.java:108) at org.myrobotlab.service.ProgramAB.startSession(ProgramAB.java:679) at org.myrobotlab.service.ProgramAB.startSession(ProgramAB.java:650) at org.myrobotlab.service.ProgramAB.main(ProgramAB.java:908) java.lang.NullPointerException at org.alicebot.ab.Bot.addMoreCategories(Bot.java:211) at org.alicebot.ab.Bot.addCategoriesFromAIML(Bot.java:243) at org.alicebot.ab.Bot.<init>(Bot.java:169) at org.alicebot.ab.Bot.<init>(Bot.java:108) at org.myrobotlab.service.ProgramAB.startSession(ProgramAB.java:679) at org.myrobotlab.service.ProgramAB.startSession(ProgramAB.java:650) at org.myrobotlab.service.ProgramAB.main(ProgramAB.java:908) [Fatal Error] contactaction.aiml:866:453: XML document structures must start and end within the same entity. AIMLToCategories: org.xml.sax.SAXParseException; systemId: file:/C:/Users/moz4r/git/myrobotlab/ProgramAB/bots/en-US/aiml/contactaction.aiml; lineNumber: 866; columnNumber: 453; XML document structures must start and end within the same entity. org.xml.sax.SAXParseException; systemId: file:/C:/Users/moz4r/git/myrobotlab/ProgramAB/bots/en-US/aiml/contactaction.aiml; lineNumber: 866; columnNumber: 453; XML document structures must start and end within the same entity. at org.apache.xerces.parsers.DOMParser.parse(Unknown Source) at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source) at javax.xml.parsers.DocumentBuilder.parse(Unknown Source) at org.alicebot.ab.utils.DomUtils.parseFile(DomUtils.java:30) at org.alicebot.ab.AIMLProcessor.AIMLToCategories(AIMLProcessor.java:119) at org.alicebot.ab.Bot.addCategoriesFromAIML(Bot.java:242) at org.alicebot.ab.Bot.<init>(Bot.java:169) at org.alicebot.ab.Bot.<init>(Bot.java:108) at org.myrobotlab.service.ProgramAB.startSession(ProgramAB.java:679) at org.myrobotlab.service.ProgramAB.startSession(ProgramAB.java:650) at org.myrobotlab.service.ProgramAB.main(ProgramAB.java:908) Problem loading contactaction.aiml java.lang.NullPointerException at org.alicebot.ab.Bot.addMoreCategories(Bot.java:211) at org.alicebot.ab.Bot.addCategoriesFromAIML(Bot.java:243) at org.alicebot.ab.Bot.<init>(Bot.java:169) at org.alicebot.ab.Bot.<init>(Bot.java:108) at org.myrobotlab.service.ProgramAB.startSession(ProgramAB.java:679) at org.myrobotlab.service.ProgramAB.startSession(ProgramAB.java:650) at org.myrobotlab.service.ProgramAB.main(ProgramAB.java:908)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions