This exception is thrown when the unit test swf is closed before the 
<finish> data has been sent and thus before the socket has been closed. 
In your case no data is sent at all.

Are you seeing the swf being opened and closed? Or are your closing it 
yourself?

Another issue may be that the swf execution process is closed although 
the swf is open (but it should be open as long as the swf).


Simon

Chris Allen wrote:

>Simon,
>
>For some reason, the SocketServer woke up and started spitting out
>exceptions. I thought you would like to see what they were:
>
>Apache Ant version 1.6.5 compiled on June 2 2005
>Buildfile: 
>/Users/callen/Documents/perforce_workspace/FASTT2.0/src/StudentClient/build.xml
>parsing buildfile
>/Users/callen/Documents/perforce_workspace/FASTT2.0/src/StudentClient/build.xml
>with URI = 
>file:///Users/callen/Documents/perforce_workspace/FASTT2.0/src/StudentClient/build.xml
>Project base dir set to:
>/Users/callen/Documents/perforce_workspace/FASTT2.0/src/StudentClient
> [property] Loading
>/Users/callen/Documents/perforce_workspace/FASTT2.0/src/StudentClient/build.properties
>Build sequence for target(s) `compileTests' is [compileTests]
>Complete build sequence is [compileTests, compileApp, ]
>compileTests:
>    [mtasc] Compiling 2 source files.
>    [mtasc] /opt/bin/mtasc/mtasc -swf
>/Users/callen/Documents/perforce_workspace/FASTT2.0/src/StudentClient/build/alltests.swf
>-header 300:100:31:FFFFFF -trace asunit.runner.BaseTestRunner.trace
>-version 8 -cp 
>/Users/callen/Documents/perforce_workspace/FASTT2.0/src/StudentClient/3rdParty
>-cp /Users/callen/Documents/perforce_workspace/FASTT2.0/src/StudentClient/src
>-main asunit/runner/BaseTestRunner.as
>com/tomsnyder/fasttmath2/tests/SwfUITestRunner.as
>    [mtasc] Compiling 2 source files.
>    [mtasc] /opt/bin/mtasc/mtasc -swf
>/Users/callen/Documents/perforce_workspace/FASTT2.0/src/StudentClient/build/antUnitTests.swf
>-header 300:100:31:FFFFFF -trace asunit.runner.BaseTestRunner.trace
>-version 8 -cp 
>/Users/callen/Documents/perforce_workspace/FASTT2.0/src/StudentClient/3rdParty
>-cp /Users/callen/Documents/perforce_workspace/FASTT2.0/src/StudentClient/src
>-main com/tomsnyder/fasttmath2/tests/AntTestRunner.as
>asunit/runner/BaseTestRunner.as
> [unittest] "/Applications/Macromedia Flash 8/Players/SAFlashPlayer"
>/Users/callen/Documents/perforce_workspace/FASTT2.0/src/StudentClient/build/antUnitTests.swf
> [unittest] -
> [unittest] -
> [unittest] 
> /Users/callen/Documents/perforce_workspace/FASTT2.0/src/StudentClient/build.xml:28:
>Error on reading result.
> [unittest] at org.as2lib.ant.UnitTest$Receiver.run(Unknown Source)
> [unittest] Caused by: java.net.SocketException: Socket closed
> [unittest] at java.net.PlainSocketImpl.socketAccept(Native Method)
> [unittest] at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:353)
> [unittest] at java.net.ServerSocket.implAccept(ServerSocket.java:448)
> [unittest] at java.net.ServerSocket.accept(ServerSocket.java:419)
> [unittest] ... 1 more
>--- Nested Exception ---
>java.net.SocketException: Socket closed
>at java.net.PlainSocketImpl.socketAccept(Native Method)
>at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:353)
>at java.net.ServerSocket.implAccept(ServerSocket.java:448)
>at java.net.ServerSocket.accept(ServerSocket.java:419)
>at org.as2lib.ant.UnitTest$Receiver.run(Unknown Source)
>BUILD SUCCESSFUL
>Total time: 2 seconds
>
>
>
>On 6/13/06, Chris Allen <[EMAIL PROTECTED]> wrote:
>  
>
>>On 6/13/06, Simon Wacker <[EMAIL PROTECTED]> wrote:
>>    
>>
>>>You may check with Ethereal whether test results are sent over the xml
>>>socket.
>>>
>>>I'd do that ugly debugging myself, but I've no Mac. Sorry for the
>>>inconvenience.
>>>
>>>      
>>>
>>No problem Simon, Thanks for the advice. Before I go down the path of
>>sniffing packets, can someone else verify that this is not working on
>>the Macintosh for them too?
>>
>>I have a ton of work to do for the moment, so it might be awhile until
>>I can get to this. My old way of running unit tests still works of
>>course ;-).
>>
>>-Chris
>>
>>    
>>
>
>_______________________________________________
>osflash mailing list
>[email protected]
>http://osflash.org/mailman/listinfo/osflash_osflash.org
>
>
>  
>

-- 
Simon Wacker
www.simonwacker.com
www.as2lib.org
www.hq-heilbronn.de
www.flik-flak.de


_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org

Reply via email to