0

有人能告诉我这个 flex 堆栈跟踪是什么意思吗?我正在使用 BlazeDS 从 flex 调用 java 函数。该类一切正常,但现在我使用 java 版本 1.7.0_21 重新编译了 java 类,它停止工作并引发以下错误事件。请告诉我出了什么问题。

(mx.rpc::Fault)#0
  errorID = 0
  faultCode = "Server.Processing"
  faultDetail = (null)
  faultString = "example/HelloWorld : Unsupported major.minor version 51.0 (unable to load class example.HelloWorld)"
  message = "faultCode:Server.Processing faultString:'example/HelloWorld : Unsupported major.minor version 51.0 (unable to load class example.HelloWorld)' faultDetail:'null'"
  name = "Error"
  rootCause = (Object)#1
    cause = (null)
    localizedMessage = "example/HelloWorld : Unsupported major.minor version 51.0 (unable to load class example.HelloWorld)"
    message = "example/HelloWorld : Unsupported major.minor version 51.0 (unable to load class example.HelloWorld)"

HelloWorld.java

package example;
    public class HelloWorld {

    public HelloWorld() {

    }

    public String getHelloWorld() {

    return "Hello Java World!";

    }

    public float addTwoNumbers(float a, float b)
    {
    return a+b;
    }

    }
4

0 回答 0