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

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

问题描述

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

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

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

, 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 分析器显示一个错误:

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 版本为 7u40,GlassFish 版本为 4,服务器端 Java 版本为 7u10.

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

任何帮助将不胜感激

推荐答案

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

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

我已经失去了 3 天的时间来获得它 - Netbeans 在 src/conf 中生成 beans.xml 文件.当我删除这个文件并用相同的内容再次创建它时(当然是通过 Netbeans),它起作用了!测试了几个新项目.

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 启动:无效的 Http 响应的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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