java.lang.SecurityException: You may only have 5 streams open at a time. Make sure you call close() on your streams when you are finished with them.

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via robocode by qal21
, 1 year ago
You may only have 5 streams open at a time. Make sure you call close() on your streams when you are finished with them.
java.lang.SecurityException: You may only have 5 streams open at a time. Make sure you call close() on your streams when you are finished with them.
at net.sf.robocode.host.io.RobotFileSystemManager.addStream(RobotFileSystemManager.java:73)
at net.sf.robocode.host.io.RobotFileOutputStream.(RobotFileOutputStream.java:27)
at net.sf.robocode.host.security.ThreadManager.createRobotFileStream(ThreadManager.java:178)
at robocode.RobocodeFileOutputStream.(RobocodeFileOutputStream.java:97)
at robocode.RobocodeFileOutputStream.(RobocodeFileOutputStream.java:78)
at robocode.RobocodeFileOutputStream.(RobocodeFileOutputStream.java:56)
at jlm.javaDisturbance.saveFactors(javaDisturbance.java:695)
at jlm.javaDisturbance.onDeath(javaDisturbance.java:268)
at robocode.DeathEvent.dispatch(DeathEvent.java:68)
at robocode.Event$HiddenEventHelper.dispatch(Event.java:252)
at net.sf.robocode.security.HiddenAccess.dispatch(HiddenAccess.java:195)
at net.sf.robocode.host.events.EventManager.dispatch(EventManager.java:486)
at net.sf.robocode.host.events.EventManager.processEvents(EventManager.java:459)
at net.sf.robocode.host.proxies.BasicRobotProxy.executeImpl(BasicRobotProxy.java:404)
at net.sf.robocode.host.proxies.BasicRobotProxy.execute(BasicRobotProxy.java:120)
at robocode.AdvancedRobot.execute(AdvancedRobot.java:565)
at jlm.javaDisturbance.run(javaDisturbance.java:222)
at net.sf.robocode.host.proxies.HostingRobotProxy.run(HostingRobotProxy.java:258)
at java.lang.Thread.run(Thread.java:619)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.