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.

robocode | qal21 | 7 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    jlm.javaDisturbance loses substantial score in 1.7.2 Beta

    robocode | 7 years ago | qal21
    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.

    Root Cause Analysis

    1. 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()
    2. net.sf.robocode
      ThreadManager.createRobotFileStream
      1. net.sf.robocode.host.io.RobotFileSystemManager.addStream(RobotFileSystemManager.java:73)
      2. net.sf.robocode.host.io.RobotFileOutputStream.<init>(RobotFileOutputStream.java:27)
      3. net.sf.robocode.host.security.ThreadManager.createRobotFileStream(ThreadManager.java:178)
      3 frames
    3. robocode
      RobocodeFileOutputStream.<init>
      1. robocode.RobocodeFileOutputStream.<init>(RobocodeFileOutputStream.java:97)
      2. robocode.RobocodeFileOutputStream.<init>(RobocodeFileOutputStream.java:78)
      3. robocode.RobocodeFileOutputStream.<init>(RobocodeFileOutputStream.java:56)
      3 frames
    4. jlm
      javaDisturbance.onDeath
      1. jlm.javaDisturbance.saveFactors(javaDisturbance.java:695)
      2. jlm.javaDisturbance.onDeath(javaDisturbance.java:268)
      2 frames
    5. robocode
      Event$HiddenEventHelper.dispatch
      1. robocode.DeathEvent.dispatch(DeathEvent.java:68)
      2. robocode.Event$HiddenEventHelper.dispatch(Event.java:252)
      2 frames
    6. net.sf.robocode
      BasicRobotProxy.execute
      1. net.sf.robocode.security.HiddenAccess.dispatch(HiddenAccess.java:195)
      2. net.sf.robocode.host.events.EventManager.dispatch(EventManager.java:486)
      3. net.sf.robocode.host.events.EventManager.processEvents(EventManager.java:459)
      4. net.sf.robocode.host.proxies.BasicRobotProxy.executeImpl(BasicRobotProxy.java:404)
      5. net.sf.robocode.host.proxies.BasicRobotProxy.execute(BasicRobotProxy.java:120)
      5 frames
    7. robocode
      AdvancedRobot.execute
      1. robocode.AdvancedRobot.execute(AdvancedRobot.java:565)
      1 frame
    8. jlm
      javaDisturbance.run
      1. jlm.javaDisturbance.run(javaDisturbance.java:222)
      1 frame
    9. net.sf.robocode
      HostingRobotProxy.run
      1. net.sf.robocode.host.proxies.HostingRobotProxy.run(HostingRobotProxy.java:258)
      1 frame
    10. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:619)
      1 frame