在Flex定义一个int,不能转为java的int,这是为什么???
(mx.messaging.messages::ErrorMessage)#0
body = (null)
clientId = "4B6CAB80-70DC-7B0E-0356-203491324B48"
correlationId = "92E3BBC9-4C07-5BB7-A64C-5442ADF7B022"
destination = "eduGradeRemoteService"
extendedData = (null)
faultCode = "Server.ResourceUnavailable"
faultDetail = "The expected argument types are (java.lang.String, ddd.simple.entity.code.CodeTable, cqut.student.entity.studentStatusCourse.EduCourse, int) but the supplied types were (java.lang.String, ddd.simple.entity.code.CodeTable, cqut.student.entity.studentStatusCourse.EduCourse, flex.messaging.io.amf.ASObject) and converted to (java.lang.String, ddd.simple.entity.code.CodeTable, cqut.student.entity.studentStatusCourse.EduCourse, null)."
faultString = "Cannot invoke method 'findTreeNode'."
headers = (Object)#1
messageId = "4B6CB03B-609C-81BB-03BA-690E4E7DCDF9"
rootCause = (mx.messaging.messages::ErrorMessage)#2
body = (null)
clientId = (null)
correlationId = (null)
destination = (null)
extendedData = (null)
faultCode = "Client.Message.Deserialize.InvalidType"
faultDetail = (null)
faultString = "Cannot convert type flex.messaging.io.amf.ASObject with remote type specified as 'null' to an instance of int"
headers = (Object)#3
messageId = "4B6CB285-50EA-A1ED-6CE5-A6B5B18D934A"
rootCause = (null)
timestamp = 1268429008421
timeToLive = 0
timestamp = 1268429008406
timeToLive = 0
报的错如上,小弟是新手,实在是不知道什么原因,搞了好久了,焦麻了~~~
[解决办法]
ActionScript3.0向Java转换时数据类型的对应关系
ActionScript数据类型 -------------------Java数据类型
null -------------------null
Number -------------------java.lang.Number
Boolean -------------------java.lang.Number,boolean,java.lang.String
String -------------------java.lang.String,java.lang.Boolean,boolean,java.lang.Character,char,java.lang.Number
Date------------------- java.util.Date
XML Object -------------------org.w3c.dom.Document
================================================
Java向ActionScript 3.0转换时数据类型对应
Java数据类型 -------------------ActionScript3.0数据类型
null -------------------null
java.lang.Number -------------------Number
java.lang.Number,boolean -------------------Boolean
java.lang.String,java.lang.Character char[] -------------------String
java.util.Collection,java.lang.reflect.Array -------------------Array
java.util.Map,java.util.Dictionary -------------------Object
org.w3c.dom.Document -------------------XML Object
其他claess -------------------Object