Serving static files with Jersey - Error while closing the output stream in order to commit response

时间:2017-08-30 20:12:43

标签: java jax-ws jersey-2.0 static-files

I'm trying to implement a project that will basically serve static files that are located in a folder of the project. I'm using Jersey 2.22.1. It should be a method that receives a filename and answers with the requested file.

Implementation:

d2

   A  B
0  0  a

The following error occurs:

d2.values[:, 0] = 2
d2

   A  B
0  0  a

The files are being requested by a browser and i have noticed that the error only occurs with .js files (it's ok with.html and .css files). There are reasons why this files should be served by this method and not by the conventional mode.

enter image description here

Any ideas?

0 个答案:

没有答案