PHP post zip file to java servlet causes NullPointerException -
i've got java servlet program receives zip file , extract location on server replace templating files of website (html, png, etc). now, 1 of colleagues wants try using php, encountered quite peculiar problem combination.
at first, got nullpointerexception
on httprequest.getparameter
function on java, though did send files via php_curl
servlet. strange thing is, if send same file via ruby, python, or other method (html, example) works no error generated.
after lot of tinkering around, i've found php send zip file java servlet after i've removed file inside it, files causing issue turns out fonts consist of .woff
, .eot
, .svg
, , .ttf
.
is there workaround issue other removing font file zip file?
configuration : php 5.6 using guzzle , other curl library java 1.7, java ee 7, servlet api 3.1, running on wildfly 8.2 server