Home >Backend Development >PHP Tutorial >php-java-bridge 错误,坐等好心人帮助。

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

WBOY
WBOYOriginal
2016-06-06 20:30:461619browse

在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)

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn