简体   繁体   English

Java Web Start挂在某些类上

[英]Java Web Start hangs on some classess

I have made a Java Web Start project with only one .jar file. 我已经制作了一个只有一个.jar文件的Java Web Start项目。 This file is fired by JNLP fire, and it's all right, the app starts, but it hangs when the application tries to do something with classess like SOAPConnectionFactory or other. 可以通过JNLP fire触发该文件,可以启动应用程序,但是当应用程序尝试对SOAPConnectionFactory或其他类进行操作时,该文件将挂起。

Why do I know? 我怎么知道 Because I've made some logging. 因为我做了一些记录。

What can be the cause? 可能是什么原因? The application is self signed and works perfectly in debug mode. 该应用程序是自签名的,可以在调试模式下完美运行。

Can you retry running under Java 8? 您可以重试在Java 8下运行吗? This seems to be part of the deprecated JEE classes: 这似乎是已弃用的JEE类的一部分:

https://docs.oracle.com/javase/9/docs/api/java.xml.ws-summary.html https://docs.oracle.com/javase/9​​/docs/api/java.xml.ws-summary.html

I had issues with JAXB via JWS under Java 9 and 10, which is deprecated as well. 我在Java 9和10下通过JWS遇到JAXB的问题,这也已弃用。

My attempts to adjust the module loading via JNLP options failed, as did attempts to add JAXB as external jar. 我通过JNLP选项调整模块加载的尝试失败,尝试将JAXB添加为外部jar的尝试也失败了。

This could be due to errors on my part or due to the semi-removed state of JAXB in Java 9 and 10. 这可能是由于我方面的错误,或者是由于Java 9和10中JAXB的半删除状态。

I decided to switch to Jackson and managed to circumvent my JAXB issues. 我决定改用Jackson,并设法规避了JAXB问题。 Such an approach might be an option for you. 这种方法可能是您的选择。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM