Problem: Controlling API under Tomcat Server

38 views
Skip to first unread message

Anonym us

unread,
Jan 2, 2021, 12:51:18 AM1/2/21
to netlogo-devel
Hello Developers and Netlogo Freaks, 
as u read out of the title i have an issue using the Controlling API for my webproject. By using Apache Tomcat as webcontainer to embed my netlogo model i have investigated a serious problem by closing the model

I have implemented the model control like this: 

The model can be opened as assmued but closing the model with an klick of the X Button caused to close the whole tomcat server by creating lot of errors. 

Catalina
The web application [/Quattropole] appears to have started a thread named [AWT-EventQueue-0] but has failed to stop it. This is very likely to create a memory leak [...]

Something is going wrong by closing the AWT-Event given by the Controlling API java.awt.EventQueue.invokeAndWait() -Method in the Link before.



I would be more than glad if some of u have any kind of idea or help.
Mfg Lukas

Seth Tisue

unread,
Jan 4, 2021, 6:46:41 PM1/4/21
to netlogo-devel
I would suggest using `HeadlessWorkspace`, as described at https://github.com/NetLogo/NetLogo/wiki/Controlling-API#example-headless
Reply all
Reply to author
Forward
0 new messages