flex端.mxml代码
remoteObject的定义
<mx:RemoteObject id="pn" destination="plan">
<mx:method name='helloWorld' result="handler(event)"/>
</mx:RemoteObject>
在上面的name属性里面的方法要和Java端定义的方法同名
如:name='helloWorld' 那么在Java端同样有一个helloWorld的方法,否则在flex端调用helloWorld的时候,中间层不知道到底调用Java端的那个方法。
在flex文件夹的remoting_config.xml文件中一定要有定义好的中间层的配置
<destination id="plan">
<properties>
<source>com.flex.(此处是Java端的类名)</source>
</properties>
</destination>
当调用后如果出现:
[RPC Fault faultString="Cannot invoke method 'helloWorld'." faultCode="Server.ResourceUnavailable" faultDetail="Method 'helloWorld' not found."]
可能的原因是:
1.配置的路径不对
2.在Java端的helloWorld方法的属性是是private,应该改成public才可以。
分享到:
相关推荐
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException faultSubcode: faultString: java.lang.reflect.InvocationTargetException faultActor: faultNode: faultDetail: {...
flex与 java 通信常见错误: [RPC Fault faultString="Send failed" faultCode="Client.Error.MessageSend" faultDetail="Channel.Connect.Failed error NetConnection.Call.Failed: ...
Alert.show(event.fault.faultString, event.fault.faultCode); } ]]> <mx:HTTPService id="service" url="data/slideshow.xml" result="resultHandler(event)" fault="faultHandler(event)...
Alert.show(event.fault.faultString, event.fault.faultCode); } ]]> <mx:HTTPService id="service" url="data/slideshow.xml" result="resultHandler(event)" fault="faultHandler(event)...
FLEX ;Unable to access UserTransaction in DataService 解决配置问题
Linux下的段错误Segmentationfault产生的原因及调试方法经典.pdf
Fault-Tolerant Flight Control and Guidance Systems.pdf
Fault Tree Analysis for the most demanding studies.zip
Faultcode故障代码[参照].pdf
Segmentation_fault_in_linux[汇编].pdf
STM32 HardFault的诊断.pdf STM32 Hard Fault STM32 HardFault的诊断.pdf STM32 Hard Fault STM32 HardFault的诊断.pdf STM32 Hard Fault STM32 HardFault的诊断.pdf STM32 Hard Fault STM32 HardFault的诊断.pdf ...
window by which the system observes its world, deep learning for fault diagnosis is put forward in this paper. It is a real time online scheme that can enhance the accuracy of detection, ...
ISO 22901-3 - Road vehicles - Open diagnostic data exchange (ODX) - Part 3:Fault symptom exchange description - 2018.02
Funtion safety analysis on memory fault types and detail expranation on each fault, and the detection.
Funtion safety analysis on memory fault types and detail expranation on each fault.
java.lang.runtimeexception unexpected subelement
A wide range of fault tolerance methods for FPGAs have been proposed. Approaches range from simple architectural redundancy to fully on-line adaptive implementations. The applications of these ...
根据WSDL文件生成客户端代码与创建客户端工程 注意小细节:在根据对方提供的... 否则报:WSDLException (at /html): faultCode=INVALID_WSDL: Expected element '{http://schemas.xmlsoap.org/wsdl/}definitions'.:
最苛刻的研究的故障树分析