Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/actionscript-3/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
HTTP协议访问的swf使java执行sun.net.httpserver.StreamClosedException_Java_Actionscript 3 - Fatal编程技术网

HTTP协议访问的swf使java执行sun.net.httpserver.StreamClosedException

HTTP协议访问的swf使java执行sun.net.httpserver.StreamClosedException,java,actionscript-3,Java,Actionscript 3,我有一个swf文件,它通过套接字访问服务器,但同时该服务器是HTTP服务器,因此当我发出url请求时: http://localhost/flash/my.swf java生成此错误: sun.net.httpserver.StreamClosedException 但如果我提出这个要求: file:///E:/projects/myProject/flash/my.swf 一切都很好,为什么只有当我通过HTTP访问swf时才会发生这种情况?也许有一些配置?有什么想法吗?或者可能内存不足,

我有一个swf文件,它通过套接字访问服务器,但同时该服务器是HTTP服务器,因此当我发出url请求时:

http://localhost/flash/my.swf
java生成此错误:

sun.net.httpserver.StreamClosedException
但如果我提出这个要求:

file:///E:/projects/myProject/flash/my.swf

一切都很好,为什么只有当我通过HTTP访问swf时才会发生这种情况?也许有一些配置?有什么想法吗?或者可能内存不足,无法处理这些套接字?

您是否已将内容类型设置为application/x-shockwave-flash?