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


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

java php

战斗力只有五 9 years, 6 months ago

Your Answer