AdoptOpenJDK / IcedTea-Web

The new home for IcedTea-Web
Other
225 stars 87 forks source link

Could not read or parse the JNLP file #390

Closed joaomax2005 closed 5 years ago

joaomax2005 commented 5 years ago

Hello IcedTea-Web Team,

Following guidance from warning "You can try to download this file manually and send it as a bug report to IcedTea-Web team." I am attaching the jnlp (emissorNFe-4_0_1.txt) file for evaluation.

Thank you very much.

emissorNFe-4_0_1.txt

judovana commented 5 years ago

From your log: net.sourceforge.jnlp.cache.ResourceDownloader$RedirectionException: The resource https://emissores.sebrae.com.br/nfe/v401/producao/emissorNFe-4_0_1.jnlp is being redirected (302) to http://conteudo.sebrae.com.br/nfe/v401/producao/emissorNFe-4_0_1.jnlp. This is disabled by default. If you wont to allow it, run javaws with -allowredirect parameter.     at net.sourceforge.jnlp.cache.ResourceDownloader.findBestUrl(ResourceDownloader.java:312)     at ... Resource location=http://emissores.sebrae.com.br/nfe/v401/producao/emissorNFe-4_0_1.jnlp state=PRECONNECT CONNECTING PREDOWNLOAD PROCESSING got redirect 302 code for HEAD request for https://emissores.sebrae.com.br/nfe/v401/producao/emissorNFe-4_0_1.jnlp adding http://conteudo.sebrae.com.br/nfe/v401/producao/emissorNFe-4_0_1.jnlp to list of possible urls

So 302 redirection. Maybe fix the server? Or allow the redirection via javaws -allowredirect ...

Let me know if it helped.

judovana commented 5 years ago

btw, with the switch, the app worked for me on both head and 1.8

joaomax2005 commented 5 years ago

Thanks for the quick return.

It worked perfectly with "javaws.itweb issuerNFe-4_0_1.jnlp -allowredirect"

Thank you!

bourgesl commented 3 years ago

Hi, I am facing the same problem now. Could you tell me why "-allowredirect" is not the default (like Oracle JDK8 javaws) ? I no good reason, I will propose a PR to make it true by default and avoid adding this argument to the command line.

FYI, Oracle JDK8 fails if the '-allowredirect' argument is given => the javaws command line depends on the implementation !

sclassen commented 3 years ago

I guess the default was set to this for security reasons. But non of the current devs was around when the decision was made.