BlazeDS:Unknown AMF type '17'

3346 단어
현상: BlazeDS 오류는 다음과 같습니다.
[BlazeDS]20:49:33.520 [ERROR] Unknown AMF type '17'.
flex.messaging.io.UnknownTypeException: Unknown AMF type '17'.
        at flex.messaging.io.amf.Amf3Input.readObjectValue(Amf3Input.java:217)
        at flex.messaging.io.amf.Amf3Input.readObject(Amf3Input.java:130)
        at flex.messaging.io.amf.Amf3Input.readScriptObject(Amf3Input.java:437)
        at flex.messaging.io.amf.Amf3Input.readObjectValue(Amf3Input.java:152)
        at flex.messaging.io.amf.Amf3Input.readObject(Amf3Input.java:130)
        at flex.messaging.io.amf.Amf3Input.readArray(Amf3Input.java:358)
        at flex.messaging.io.amf.Amf3Input.readObjectValue(Amf3Input.java:156)
        at flex.messaging.io.amf.Amf3Input.readObject(Amf3Input.java:130)
        at flex.messaging.io.amf.Amf3Input.readScriptObject(Amf3Input.java:437)
        at flex.messaging.io.amf.Amf3Input.readObjectValue(Amf3Input.java:152)
        at flex.messaging.io.amf.Amf3Input.readObject(Amf3Input.java:130)
        at flex.messaging.io.amf.Amf0Input.readObjectValue(Amf0Input.java:123)
        at flex.messaging.io.amf.Amf0Input.readArrayValue(Amf0Input.java:359)
        at flex.messaging.io.amf.Amf0Input.readObjectValue(Amf0Input.java:127)
        at flex.messaging.io.amf.Amf0Input.readObject(Amf0Input.java:94)
        at flex.messaging.io.amf.AmfMessageDeserializer.readObject(AmfMessageDeserializer.java:227)
        at flex.messaging.io.amf.AmfMessageDeserializer.readBody(AmfMessageDeserializer.java:206)
        at flex.messaging.io.amf.AmfMessageDeserializer.readMessage(AmfMessageDeserializer.java:126)
        at flex.messaging.endpoints.amf.SerializationFilter.invoke(SerializationFilter.java:145)
        at flex.messaging.endpoints.BaseHTTPEndpoint.service(BaseHTTPEndpoint.java:291)
        at flex.messaging.MessageBrokerServlet.service(MessageBrokerServlet.java:353)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
        at java.lang.Thread.run(Thread.java:662)

원인: ActionScript 측에서 Java 측을 전송하는 데이터에는 BlazedS가 변환할 수 없는 데이터 형식이 포함되어 있습니다. 예를 들어 AS의 Dictionary는 Java 데이터로 변환할 수 없지만 java의 Dictionary는 AS의 Object로 변환할 수 있습니다.
해결: 변환 가능한 데이터 형식으로 바꾸세요. 변환할 수 없는 데이터 형식입니다.참조:http://blog.csdn.net/haha0832/article/details/5781106

좋은 웹페이지 즐겨찾기