Auto recording not work?

Jonghwa Park <[email protected]> Tue, 22 Mar 2022 03:16:26 -0700 (PDT)
Newsgroups gmane.comp.java.robocode
Message-ID <[email protected]>
------=_Part_3466_1632295440.1647944186248
Content-Type: multipart/alternative; 
	boundary="----=_Part_3467_2139655258.1647944186248"

------=_Part_3467_2139655258.1647944186248
Content-Type: text/plain; charset="UTF-8"

My robocode version is 1.4..4 and jdk 1.8.

After setting up the auto-recording and ending the battle, the following 
message is showd console.
Of course, the record file will not open properly.

Round 10 cleaning up.
java.io.IOException: Stream Closed
        at java.io.FileOutputStream.writeBytes(Native Method)
        at java.io.FileOutputStream.write(FileOutputStream.java:326)
        at 
java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)
        at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140)
        at net.sf.robocode.io.FileUtil.cleanupStream(FileUtil.java:340)
        at 
net.sf.robocode.recording.RecordManager.saveBinRecord(RecordManager.java:348)
        at 
net.sf.robocode.recording.RecordManager.saveRecord(RecordManager.java:300)
        at 
net.sf.robocode.recording.BattleRecorder$BattleObserver.writeAutoRecord(BattleRecorder.java:137)
        at 
net.sf.robocode.recording.BattleRecorder$BattleObserver.onBattleCompleted(BattleRecorder.java:90)
        at 
net.sf.robocode.battle.events.BattleEventDispatcher.onBattleCompleted(BattleEventDispatcher.java:58)
        at net.sf.robocode.battle.Battle.finalizeBattle(Battle.java:275)
        at net.sf.robocode.battle.BaseBattle.run(BaseBattle.java:212)
        at java.lang.Thread.run(Thread.java:750)

java.io.IOException: Stream Closed
        at java.io.FileOutputStream.writeBytes(Native Method)
        at java.io.FileOutputStream.write(FileOutputStream.java:326)
        at 
java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)
        at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140)
        at java.io.FilterOutputStream.close(FilterOutputStream.java:158)
        at net.sf.robocode.io.FileUtil.cleanupStream(FileUtil.java:347)
        at 
net.sf.robocode.recording.RecordManager.saveBinRecord(RecordManager.java:348)
        at 
net.sf.robocode.recording.RecordManager.saveRecord(RecordManager.java:300)
        at 
net.sf.robocode.recording.BattleRecorder$BattleObserver.writeAutoRecord(BattleRecorder.java:137)
        at 
net.sf.robocode.recording.BattleRecorder$BattleObserver.onBattleCompleted(BattleRecorder.java:90)
        at 
net.sf.robocode.battle.events.BattleEventDispatcher.onBattleCompleted(BattleEventDispatcher.java:58)
        at net.sf.robocode.battle.Battle.finalizeBattle(Battle.java:275)
        at net.sf.robocode.battle.BaseBattle.run(BaseBattle.java:212)
        at java.lang.Thread.run(Thread.java:750)

on










-- 
You received this message because you are subscribed to the Google Groups "Robocode" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/robocode/76d7c3f1-2c01-4b83-a0d0-11c2af9c8adfn%40googlegroups.com.

------=_Part_3467_2139655258.1647944186248
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

My robocode version is 1.4..4 and jdk 1.8.<div><br></div><div>After setting=
 up the auto-recording and ending the battle, the following message is show=
d console.<br></div><div><div>Of course, the record file will not open prop=
erly.</div><br></div><div>Round 10 cleaning up.<br></div><div>java.io.IOExc=
eption: Stream Closed<br>&nbsp; &nbsp; &nbsp; &nbsp; at java.io.FileOutputS=
tream.writeBytes(Native Method)<br>&nbsp; &nbsp; &nbsp; &nbsp; at java.io.F=
ileOutputStream.write(FileOutputStream.java:326)<br>&nbsp; &nbsp; &nbsp; &n=
bsp; at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:=
82)<br>&nbsp; &nbsp; &nbsp; &nbsp; at java.io.BufferedOutputStream.flush(Bu=
fferedOutputStream.java:140)<br>&nbsp; &nbsp; &nbsp; &nbsp; at net.sf.roboc=
ode.io.FileUtil.cleanupStream(FileUtil.java:340)<br>&nbsp; &nbsp; &nbsp; &n=
bsp; at net.sf.robocode.recording.RecordManager.saveBinRecord(RecordManager=
.java:348)<br>&nbsp; &nbsp; &nbsp; &nbsp; at net.sf.robocode.recording.Reco=
rdManager.saveRecord(RecordManager.java:300)<br>&nbsp; &nbsp; &nbsp; &nbsp;=
 at net.sf.robocode.recording.BattleRecorder$BattleObserver.writeAutoRecord=
(BattleRecorder.java:137)<br>&nbsp; &nbsp; &nbsp; &nbsp; at net.sf.robocode=
.recording.BattleRecorder$BattleObserver.onBattleCompleted(BattleRecorder.j=
ava:90)<br>&nbsp; &nbsp; &nbsp; &nbsp; at net.sf.robocode.battle.events.Bat=
tleEventDispatcher.onBattleCompleted(BattleEventDispatcher.java:58)<br>&nbs=
p; &nbsp; &nbsp; &nbsp; at net.sf.robocode.battle.Battle.finalizeBattle(Bat=
tle.java:275)<br>&nbsp; &nbsp; &nbsp; &nbsp; at net.sf.robocode.battle.Base=
Battle.run(BaseBattle.java:212)<br>&nbsp; &nbsp; &nbsp; &nbsp; at java.lang=
.Thread.run(Thread.java:750)<br><br>java.io.IOException: Stream Closed<br>&=
nbsp; &nbsp; &nbsp; &nbsp; at java.io.FileOutputStream.writeBytes(Native Me=
thod)<br>&nbsp; &nbsp; &nbsp; &nbsp; at java.io.FileOutputStream.write(File=
OutputStream.java:326)<br>&nbsp; &nbsp; &nbsp; &nbsp; at java.io.BufferedOu=
tputStream.flushBuffer(BufferedOutputStream.java:82)<br>&nbsp; &nbsp; &nbsp=
; &nbsp; at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:14=
0)<br>&nbsp; &nbsp; &nbsp; &nbsp; at java.io.FilterOutputStream.close(Filte=
rOutputStream.java:158)<br>&nbsp; &nbsp; &nbsp; &nbsp; at net.sf.robocode.i=
o.FileUtil.cleanupStream(FileUtil.java:347)<br>&nbsp; &nbsp; &nbsp; &nbsp; =
at net.sf.robocode.recording.RecordManager.saveBinRecord(RecordManager.java=
:348)<br>&nbsp; &nbsp; &nbsp; &nbsp; at net.sf.robocode.recording.RecordMan=
ager.saveRecord(RecordManager.java:300)<br>&nbsp; &nbsp; &nbsp; &nbsp; at n=
et.sf.robocode.recording.BattleRecorder$BattleObserver.writeAutoRecord(Batt=
leRecorder.java:137)<br>&nbsp; &nbsp; &nbsp; &nbsp; at net.sf.robocode.reco=
rding.BattleRecorder$BattleObserver.onBattleCompleted(BattleRecorder.java:9=
0)<br>&nbsp; &nbsp; &nbsp; &nbsp; at net.sf.robocode.battle.events.BattleEv=
entDispatcher.onBattleCompleted(BattleEventDispatcher.java:58)<br>&nbsp; &n=
bsp; &nbsp; &nbsp; at net.sf.robocode.battle.Battle.finalizeBattle(Battle.j=
ava:275)<br>&nbsp; &nbsp; &nbsp; &nbsp; at net.sf.robocode.battle.BaseBattl=
e.run(BaseBattle.java:212)<br>&nbsp; &nbsp; &nbsp; &nbsp; at java.lang.Thre=
ad.run(Thread.java:750)<br><br>on<br><br><br><br><br><br><br><br><br><br><b=
r></div>

<p></p>

-- <br />
You received this message because you are subscribed to the Google Groups &=
quot;Robocode&quot; group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:[email protected]">robocode+u=
[email protected]</a>.<br />
To view this discussion on the web visit <a href=3D"https://groups.google.c=
om/d/msgid/robocode/76d7c3f1-2c01-4b83-a0d0-11c2af9c8adfn%40googlegroups.co=
m?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.com/d/msgid=
/robocode/76d7c3f1-2c01-4b83-a0d0-11c2af9c8adfn%40googlegroups.com</a>.<br =
/>

------=_Part_3467_2139655258.1647944186248--

------=_Part_3466_1632295440.1647944186248--