欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  后端开发

php-java-bridge 错误,坐等好心人帮助。

程序员文章站 2022-04-26 09:57:08
...
在windows环境下搭好了 php-java-bridge.

Java version=1.8.0_51
Java vendor=Oracle Corporation
OS=Windows 7 6.1 on x86

测试脚本已跑通,
但接招商银行java API ,就会报一下错误。

protocol error: , Invalid document end at col 1. Check the back end log for OutOfMemoryErrors.

报错的代码,以下:
require_once( ROOT_DIR."/java/META-INF/java/Java.inc" );
java_set_library_path( ROOT_DIR."/java/" );


以下是错误日志内容。
Jul 30 16:57:19 JavaBridge ERROR: An exception occured: java.lang.IllegalStateException: Please use a JEE server or servlet engine.
java.lang.IllegalStateException: Please use a JEE server or servlet engine.
at php.java.bridge.JavaBridgeRunner.doPut(JavaBridgeRunner.java:198)
at php.java.bridge.http.HttpServer.service(HttpServer.java:289)
at php.java.bridge.http.HttpServer$Runner.run(HttpServer.java:205)
at php.java.bridge.ThreadPool$Delegate.run(ThreadPool.java:60)

回复内容:

在windows环境下搭好了 php-java-bridge.

Java version=1.8.0_51
Java vendor=Oracle Corporation
OS=Windows 7 6.1 on x86

测试脚本已跑通,
但接招商银行java API ,就会报一下错误。

protocol error: , Invalid document end at col 1. Check the back end log for OutOfMemoryErrors.

报错的代码,以下:
require_once( ROOT_DIR."/java/META-INF/java/Java.inc" );
java_set_library_path( ROOT_DIR."/java/" );


以下是错误日志内容。
Jul 30 16:57:19 JavaBridge ERROR: An exception occured: java.lang.IllegalStateException: Please use a JEE server or servlet engine.
java.lang.IllegalStateException: Please use a JEE server or servlet engine.
at php.java.bridge.JavaBridgeRunner.doPut(JavaBridgeRunner.java:198)
at php.java.bridge.http.HttpServer.service(HttpServer.java:289)
at php.java.bridge.http.HttpServer$Runner.run(HttpServer.java:205)
at php.java.bridge.ThreadPool$Delegate.run(ThreadPool.java:60)

相关标签: php java