[Seasar-user:21879] Re: S2BlazeDSエラーについて
    [E-MAIL ADDRESS DELETED]
    [E-MAIL ADDRESS DELETED]
       
    2014年 4月 22日 (火) 11:32:28 JST
    
    
  
ふなくらさん
serviceをとって実行してみましたが、エラー内容は変わりませんでした。
[FaultEvent fault=[RPC Fault faultString="No destination with id 
'service.helloWorldService' is registered with any service." faultCode="Server.Processing"
 faultDetail="null"] messageId="BF42F563-190E-2627-AC52-5ADA46A31BEF" type="fault" 
bubbles=false cancelable=true eventPhase=2]
convention.dicon
<components>
 <component class="org.seasar.framework.convention.impl.NamingConventionImpl">
  <initMethod name="addRootPackageName">
   <arg>"jp.ne.equipment.report"</arg>
  </initMethod>
 </component>
 <component class="org.seasar.framework.convention.impl.PersistenceConventionImpl"/>
</components>
rootpackageは、convention.diconに設定されている内容で
よろしいでしょうか?
ご指摘された内容に回答できているか不安はありますが
ご回答の程よろしくお願いいたします。
差出人: jun funakura
送信日時: 2014年4月22日 火曜日 9:27
宛先: seasar-user @ ml.seasar.org
阿形さん
ふなくら(nod)です。
MXML内にあります
destination="service.helloWorldService" 
を
destination="helloWorldService" 
に変えたらエラー内容が変わるか
ご確認いただけますでしょうか。
またrootpackageは
jp.ne.equipment.report
としていると思ってよろしいでしょうか。
#動確する環境あるのが夜以降になるので
#はずしていたらすみません...
2014年4月22日火曜日、<shigeaga @ gmail.com>さんは書きました:
いつもお世話になっております。阿形と申します。
S2BlazeDS1.0.2 + FlashBuilder4.7 + Tomcat6.0 を使用してサンプルソフト
を作成しています。ですが下記内容のエラーが出てしまい、先に進めない
状況です。お手数おかけしますが、原因等ご教授いただけたら幸いです。
エラー内容
 [FaultEvent fault=[RPC Fault faultString="No destination with id 'service.helloWorldService' is registered with any service." faultCode="Server.Processing" faultDetail="null"] messageId="BA173E90-EC0E-5BF2-E31C-5C95612992FE" type="fault" bubbles=false cancelable=true eventPhase=2]
MXML
<?xml version="1.0" encoding="utf-8"?>
<mx:Application width="1024" height="768" xmlns:mx="http://www.adobe.com/2006/mxml">    
 <mx:Script source="Hello.as" />    
 <mx:RemoteObject id="myservice" destination="service.helloWorldService" fault="faultHandler(event)">
  <mx:method name="getHelloString" result="onResult(event)" fault="onFault(event)" />
 </mx:RemoteObject>    
 <mx:VBox>        
  <mx:Label text="Hello World!!" id="text1" />        
  <mx:Button label="JAVAへ送信" click="goRemoteObject()" />             
 </mx:VBox>
</mx:Application>
ActionScript
import mx.controls.Alert;
import mx.rpc.events.ResultEvent;
public function goRemoteObject() :void{        
 myservice.getHelloString();
}
/** * 結果の取得(成功時) */
public function onResult(event:ResultEvent):void {
 text1.text = event.result.toString();
}/** * 結果の取得(失敗時) */
public function onFault(fault:Object):void {
 Alert.show(String(fault));
}
public function faultHandler(fault:Object):void {
 Alert.show(String(fault));
}
Java
package jp.ne.equipment.report.service;
public class HelloWorldService {
 public String getHelloString() {
  return "Hello World Flex Java!! ";
 }
}
-------------- next part --------------
HTML$B$NE:IU%U%!%$%k$rJ]4I$7$^$7$?(B...
URL: <http://ml.seasar.org/archives/seasar-user/attachments/20140422/9ff71c21/attachment.html>
    
    
Seasar-user メーリングリストの案内