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

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

WBOY
WBOYOriginal
2016-06-06 20:30:461647Durchsuche

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

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn