GlassFish和应用程序客户端Web Start:无效的Http响应 [英] GlassFish and Application Client Web Start: invalid Http response

查看:199
本文介绍了GlassFish和应用程序客户端Web Start:无效的Http响应的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用这个教程创建了企业应用程序和企业应用程序客户端。
两者都部署到放置在本地网络中的远程GlassFish服务器。当我尝试运行带有Java Web Start的应用程序客户机时
javaws http://192.168.0.234:8080/ApplicationClient1



,我在JWS窗口看到一个错误:

  java.io.IOException:无效的Http响应
在sun.reflect.GeneratedConstructorAccessor1.newInstance(未知源)
在sun.reflect.DelegatingConstructorAccessorImpl.newInstance(未知源)
在java.lang.reflect.Constructor.newInstance(未知源)
在sun.net.www.protocol.http.HttpURLConnection $ 6.run(未知源)
在sun.net.www.protocol.http.HttpURLConnection $ 6.run(未知源)
在java。 security.AccessController.doPrivileged(Native方法)$ b $在sun.net.www.protocol.http.HttpURLConnection.getChainedException(未知源)
在sun.net.www.protocol.http.HttpURLConnection.getInputStream(未知源)
在com.sun.deploy.net.BasicHttpRequest.doRequest(未知源)
在com.sun.deploy.net.BasicHttpRequest.doGetRequestEX(未知酸ce)
at com.sun.deploy.cache.ResourceProviderImpl.checkUpdateAvailable(Unknown Source)
at com.sun.deploy.cache.ResourceProviderImpl.isUpdateAvailable(Unknown Source)
at com.sun .deploy.cache.ResourceProviderImpl.getResource(Unknown Source)
at com.sun.deploy.cache.ResourceProviderImpl.getJreResource(Unknown Source)
at com.sun.javaws.LaunchDownload._downloadExtensionsHelper(Unknown Source)
at com.sun.javaws.LaunchDownload.downloadExtensionsHelper(未知来源)
at com.sun.javaws.LaunchDownload.downloadExtensions(未知来源)
at com.sun.javaws.Launcher.prepareLaunchFile (未知源)
在com.sun.javaws.Launcher.prepareAllResources(未知源)
在com.sun.javaws.Launcher.prepareToLaunch(未知源)
在com.sun.javaws .Launcher.prepareToLaunch(未知来源)
at com.sun.javaws.Launcher.launch(未知来源)
来自com.sun.javaws.Main.launchApp(未知来源)
at com .sun.javaws.Main.continueInSecureThread(Unknown Sour ce)
在com.sun.javaws.Main.access $ 000(未知源)
在com.sun.javaws.Main $ 1.run(未知源)
在java.lang.Thread .run(未知源)
导致:java.io.IOException:无效的Http响应
在sun.net.www.protocol.http.HttpURLConnection.getInputStream(未知源)
在java .net.HttpURLConnection.getResponseCode(Unknown Source)
... 19 more

JaNeLA JNLP分析器显示一个错误:

 索引50处路径中的非法字符:
http://192.168.0.234:8080 /___JWSappclient/___app/${appclient.information.homepage.filepath}

客户端上的Java版本是7u40 ,GlassFish版本为4,服务器上的Java版本为7u10。



任何帮助将不胜感激

解决方案

@ andrew-thompson
谢谢你的帮助,但我终于明白了。



我输了3我的生命中的几天得到它 - Netbeans生成豆类.src / conf中的.xml文件。当我删除这个文件并使用相同的内容(当然是通过Netbeans)再次创建它时,它可以工作!测试几个新项目。

I've created Enterprise Application and Enterprise Application Client using this tutorial. Both are deployed to remote GlassFish server placed in my local network. When I try to run Application Client with Java Web Start javaws http://192.168.0.234:8080/ApplicationClient1

, I see an error in JWS window:

java.io.IOException: Invalid Http response
at sun.reflect.GeneratedConstructorAccessor1.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection$6.run(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection$6.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.net.www.protocol.http.HttpURLConnection.getChainedException(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at com.sun.deploy.net.BasicHttpRequest.doRequest(Unknown Source)
at com.sun.deploy.net.BasicHttpRequest.doGetRequestEX(Unknown Source)
at com.sun.deploy.cache.ResourceProviderImpl.checkUpdateAvailable(Unknown Source)
at com.sun.deploy.cache.ResourceProviderImpl.isUpdateAvailable(Unknown Source)
at com.sun.deploy.cache.ResourceProviderImpl.getResource(Unknown Source)
at com.sun.deploy.cache.ResourceProviderImpl.getJreResource(Unknown Source)
at com.sun.javaws.LaunchDownload._downloadExtensionsHelper(Unknown Source)
at com.sun.javaws.LaunchDownload.downloadExtensionsHelper(Unknown Source)
at com.sun.javaws.LaunchDownload.downloadExtensions(Unknown Source)
at com.sun.javaws.Launcher.prepareLaunchFile(Unknown Source)
at com.sun.javaws.Launcher.prepareAllResources(Unknown Source)
at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
at com.sun.javaws.Launcher.launch(Unknown Source)
at com.sun.javaws.Main.launchApp(Unknown Source)
at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
at com.sun.javaws.Main.access$000(Unknown Source)
at com.sun.javaws.Main$1.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: Invalid Http response
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at java.net.HttpURLConnection.getResponseCode(Unknown Source)
... 19 more

JaNeLA JNLP analyzer shows one error:

Illegal character in path at index 50:
http://192.168.0.234:8080/___JWSappclient/___app/${appclient.information.homepage.filepath}

Java version on client is 7u40, GlassFish version is 4 and Java version on server is 7u10.

Any help will be appreciated

解决方案

@andrew-thompson Thank you for help, but I've finally figured it out.

I've lost 3 days of my life to get it - Netbeans generates beans.xml file in src/conf. When I remove this file and create it again with same content (through Netbeans of course), it works! Tested with few new projects.

这篇关于GlassFish和应用程序客户端Web Start:无效的Http响应的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆