Exceptions in console output / MAS crashing

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Exceptions in console output / MAS crashing

Alan Gordon White
Hopefully this is something that can be fixed with a config change?

I'm putting out a fairly vast amount of logging messages in my agent  
system, with a similarly large number of individual logger instances;  
the last two are appended with a copy of the source line.

Up to now this has been fairly innocuous, with the symptom just being  
an annoying 'ping' (in fact, the exception messages were swallowed up  
by the logged messages in the console, so I don't know how long it's  
been going on for).  Unfortunately, the volume of logger calls seems  
to have exceeded some threshold, as the agent system is now outright  
crashing and closing down.

Now, I could just turn of the console logger, but I like having it  
available as a reference.  At the moment I also can't turn down the  
logger levels, as I need the info for debugging purposes.

So, er, yeah.  Kind of stuck.  I don't *think* it's my code.  
Logging.properties from my project is attached.

java.lang.ArrayIndexOutOfBoundsException: -1
        at java.util.ArrayList.elementData(ArrayList.java:371)
        at java.util.ArrayList.get(ArrayList.java:384)
        at javax.swing.JTabbedPane.getTitleAt(JTabbedPane.java:1112)
        at  
javax.swing.plaf.basic.BasicTabbedPaneUI$Handler.updateHtmlViews(BasicTabbedPaneUI.java:3578)
        at  
javax.swing.plaf.basic.BasicTabbedPaneUI$Handler.componentAdded(BasicTabbedPaneUI.java:3713)
        at java.awt.Container.processContainerEvent(Container.java:2255)
        at java.awt.Container.processEvent(Container.java:2226)
        at java.awt.Component.dispatchEventImpl(Component.java:4861)
        at java.awt.Container.dispatchEventImpl(Container.java:2287)
        at java.awt.Component.dispatchEvent(Component.java:4687)
        at java.awt.Container.addImpl(Container.java:1131)
        at javax.swing.JTabbedPane.insertTab(JTabbedPane.java:724)
        at javax.swing.JTabbedPane.addTab(JTabbedPane.java:798)
        at javax.swing.JTabbedPane.add(JTabbedPane.java:835)
        at jason.runtime.MASConsoleColorGUI.append(MASConsoleColorGUI.java:79)
        at jason.runtime.MASConsoleLogHandler.publish(MASConsoleLogHandler.java:71)
        at java.util.logging.Logger.log(Logger.java:565)
        at java.util.logging.Logger.doLog(Logger.java:586)
        at java.util.logging.Logger.logp(Logger.java:702)
        at com.sun.istack.internal.logging.Logger.finer(Logger.java:157)
        at  
agent.planning.PlanningUtils.beliefBaseToInitialStateString(PlanningUtils.java:298)
        at agent.planning.graphplan.JavaGPModule.formPlan(JavaGPModule.java:239)
        at agent.planning.graphplan.JavaGPModule.getPlan(JavaGPModule.java:68)
        at agent.planning.graphplan.PlannerExecThread.run(PlannerExecThread.java:71)
        at agent.planning.graphplan.PlannerExecThread.call(PlannerExecThread.java:92)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
        at java.util.concurrent.FutureTask.run(FutureTask.java:166)
        at  
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at  
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:722)

javax.swing.text.BadLocationException: Invalid insert
        at javax.swing.text.GapContent.insertString(GapContent.java:129)
        at  
javax.swing.text.AbstractDocument.handleInsertString(AbstractDocument.java:724)
        at javax.swing.text.AbstractDocument.insertString(AbstractDocument.java:708)
        at jason.runtime.MASColorTextPane.append(MASConsoleColorGUI.java:154)
        at jason.runtime.MASConsoleColorGUI.append(MASConsoleColorGUI.java:100)
        at jason.runtime.MASConsoleLogHandler.publish(MASConsoleLogHandler.java:71)
        at java.util.logging.Logger.log(Logger.java:565)
        at java.util.logging.Logger.doLog(Logger.java:586)
        at java.util.logging.Logger.logp(Logger.java:702)
        at com.sun.istack.internal.logging.Logger.finer(Logger.java:157)
        at  
agent.planning.PlanningUtils.beliefBaseToInitialStateString(PlanningUtils.java:298)
        at agent.planning.graphplan.JavaGPModule.formPlan(JavaGPModule.java:239)
        at agent.planning.graphplan.JavaGPModule.getPlan(JavaGPModule.java:68)
        at agent.planning.graphplan.PlannerExecThread.run(PlannerExecThread.java:71)
        at agent.planning.graphplan.PlannerExecThread.call(PlannerExecThread.java:92)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
        at java.util.concurrent.FutureTask.run(FutureTask.java:166)
        at  
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at  
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:722)

Cause is at; logger.finer("belief is; " + belief + ", annots=" +  
belief.getAnnots()); - belief is a literal, taken from an iterator of  
a BB and used to form a PDDL style state string.


--
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.


------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and
their applications. This 200-page book is written by three acclaimed
leaders in the field. The early access version is available now.
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
_______________________________________________
Jason-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jason-users

logging.properties (1K) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Exceptions in console output / MAS crashing

Jomi Fred Hubner-4
Hi Alan,

this is a known issue with the GUI console of Jason. I guess that the simplest solution is to disable the graphical interface and use a "terminal" console. It can be done by configuring the logging system:

http://jason.sourceforge.net/faq/faq.html#SECTION00062000000000000000

HTH,

Jomi

On 11/05/2013, at 19:26, Alan Gordon White wrote:

> Hopefully this is something that can be fixed with a config change?
>
> I'm putting out a fairly vast amount of logging messages in my agent system, with a similarly large number of individual logger instances; the last two are appended with a copy of the source line.
>
> Up to now this has been fairly innocuous, with the symptom just being an annoying 'ping' (in fact, the exception messages were swallowed up by the logged messages in the console, so I don't know how long it's been going on for).  Unfortunately, the volume of logger calls seems to have exceeded some threshold, as the agent system is now outright crashing and closing down.
>
> Now, I could just turn of the console logger, but I like having it available as a reference.  At the moment I also can't turn down the logger levels, as I need the info for debugging purposes.
>
> So, er, yeah.  Kind of stuck.  I don't *think* it's my code.  Logging.properties from my project is attached.
>
> java.lang.ArrayIndexOutOfBoundsException: -1
> at java.util.ArrayList.elementData(ArrayList.java:371)
> at java.util.ArrayList.get(ArrayList.java:384)
> at javax.swing.JTabbedPane.getTitleAt(JTabbedPane.java:1112)
> at javax.swing.plaf.basic.BasicTabbedPaneUI$Handler.updateHtmlViews(BasicTabbedPaneUI.java:3578)
> at javax.swing.plaf.basic.BasicTabbedPaneUI$Handler.componentAdded(BasicTabbedPaneUI.java:3713)
> at java.awt.Container.processContainerEvent(Container.java:2255)
> at java.awt.Container.processEvent(Container.java:2226)
> at java.awt.Component.dispatchEventImpl(Component.java:4861)
> at java.awt.Container.dispatchEventImpl(Container.java:2287)
> at java.awt.Component.dispatchEvent(Component.java:4687)
> at java.awt.Container.addImpl(Container.java:1131)
> at javax.swing.JTabbedPane.insertTab(JTabbedPane.java:724)
> at javax.swing.JTabbedPane.addTab(JTabbedPane.java:798)
> at javax.swing.JTabbedPane.add(JTabbedPane.java:835)
> at jason.runtime.MASConsoleColorGUI.append(MASConsoleColorGUI.java:79)
> at jason.runtime.MASConsoleLogHandler.publish(MASConsoleLogHandler.java:71)
> at java.util.logging.Logger.log(Logger.java:565)
> at java.util.logging.Logger.doLog(Logger.java:586)
> at java.util.logging.Logger.logp(Logger.java:702)
> at com.sun.istack.internal.logging.Logger.finer(Logger.java:157)
> at agent.planning.PlanningUtils.beliefBaseToInitialStateString(PlanningUtils.java:298)
> at agent.planning.graphplan.JavaGPModule.formPlan(JavaGPModule.java:239)
> at agent.planning.graphplan.JavaGPModule.getPlan(JavaGPModule.java:68)
> at agent.planning.graphplan.PlannerExecThread.run(PlannerExecThread.java:71)
> at agent.planning.graphplan.PlannerExecThread.call(PlannerExecThread.java:92)
> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
> at java.util.concurrent.FutureTask.run(FutureTask.java:166)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:722)
>
> javax.swing.text.BadLocationException: Invalid insert
> at javax.swing.text.GapContent.insertString(GapContent.java:129)
> at javax.swing.text.AbstractDocument.handleInsertString(AbstractDocument.java:724)
> at javax.swing.text.AbstractDocument.insertString(AbstractDocument.java:708)
> at jason.runtime.MASColorTextPane.append(MASConsoleColorGUI.java:154)
> at jason.runtime.MASConsoleColorGUI.append(MASConsoleColorGUI.java:100)
> at jason.runtime.MASConsoleLogHandler.publish(MASConsoleLogHandler.java:71)
> at java.util.logging.Logger.log(Logger.java:565)
> at java.util.logging.Logger.doLog(Logger.java:586)
> at java.util.logging.Logger.logp(Logger.java:702)
> at com.sun.istack.internal.logging.Logger.finer(Logger.java:157)
> at agent.planning.PlanningUtils.beliefBaseToInitialStateString(PlanningUtils.java:298)
> at agent.planning.graphplan.JavaGPModule.formPlan(JavaGPModule.java:239)
> at agent.planning.graphplan.JavaGPModule.getPlan(JavaGPModule.java:68)
> at agent.planning.graphplan.PlannerExecThread.run(PlannerExecThread.java:71)
> at agent.planning.graphplan.PlannerExecThread.call(PlannerExecThread.java:92)
> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
> at java.util.concurrent.FutureTask.run(FutureTask.java:166)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:722)
>
> Cause is at; logger.finer("belief is; " + belief + ", annots=" + belief.getAnnots()); - belief is a literal, taken from an iterator of a BB and used to form a PDDL style state string.
>
>
> --
> The University of Edinburgh is a charitable body, registered in
> Scotland, with registration number SC005336.
>
> <logging.properties>------------------------------------------------------------------------------
> Learn Graph Databases - Download FREE O'Reilly Book
> "Graph Databases" is the definitive new guide to graph databases and
> their applications. This 200-page book is written by three acclaimed
> leaders in the field. The early access version is available now.
> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may_______________________________________________
> Jason-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/jason-users

--
Jomi Fred Hubner
Federal University of Santa Catarina
Department of Automation and Systems Engineering
PO Box 476, Florianópolis, SC
88040-900 Brazil
http://www.das.ufsc.br/~jomi


------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and
their applications. This 200-page book is written by three acclaimed
leaders in the field. The early access version is available now.
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
_______________________________________________
Jason-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jason-users
Loading...