我安装并配置好了aglet2.0.2之后,运行的时候,会提示
[Warning: The hostname seems not having domain name.
Please try -resolve option to resolve the fully qualified hostname
or use -domain option to manually specify the domain name.]
这样的警告,开始也没在意,后来发现在不同的主机间进行迁移的时候,会传不过去并发生错误C:\aglets-2.0.2\bin>agletsd -f ..\cnf\aglets.props -port 4436
[Warning: The hostname seems not having domain name.
 Please try -resolve option to resolve the fully qualified hostname
 or use -domain option to manually specify the domain name.]***** Addr: atp://192.168.1.100 place:
No integrity check because no security domain is authenticated.
code = 400
com.ibm.maf.MAFExtendedException: INTERNAL ERROR
        at com.ibm.maf.atp.MAFAgentSystem_ATPClient.receive_agent0(Unknown Sourc
e)
        at com.ibm.maf.atp.MAFAgentSystem_ATPClient.access$000(Unknown Source)
        at com.ibm.maf.atp.MAFAgentSystem_ATPClient$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at com.ibm.maf.atp.MAFAgentSystem_ATPClient.receive_agent(Unknown Source
)
        at com.ibm.aglets.LocalAgletRef.dispatch(Unknown Source)
        at com.ibm.aglets.LocalAgletRef.dispatch(Unknown Source)
        at com.ibm.aglets.LocalAgletRef.dispatch(Unknown Source)
        at com.ibm.aglet.Aglet.dispatch(Unknown Source)
        at com.ibm.agletx.util.SimpleItinerary.go(Unknown Source)
        at com.ibm.agletx.util.SimpleItinerary.go(Unknown Source)
        at examples.hello.HelloAglet.startTrip(Unknown Source)
        at examples.hello.HelloAglet.handleMessage(Unknown Source)
        at com.ibm.aglets.MessageImpl.handle(Unknown Source)
        at com.ibm.aglets.AgletThread.run(Unknown Source)
com.ibm.aglet.RequestRefusedException: atp://192.168.1.100, Integrity=DIGEST, Co
nfidentiality=SHORTSECRETKEY, Timeout=0 examples.hello.HelloAglet
        at com.ibm.aglets.LocalAgletRef.dispatch(Unknown Source)
        at com.ibm.aglets.LocalAgletRef.dispatch(Unknown Source)
        at com.ibm.aglets.LocalAgletRef.dispatch(Unknown Source)
        at com.ibm.aglet.Aglet.dispatch(Unknown Source)
        at com.ibm.agletx.util.SimpleItinerary.go(Unknown Source)
        at com.ibm.agletx.util.SimpleItinerary.go(Unknown Source)
        at examples.hello.HelloAglet.startTrip(Unknown Source)
        at examples.hello.HelloAglet.handleMessage(Unknown Source)
        at com.ibm.aglets.MessageImpl.handle(Unknown Source)
        at com.ibm.aglets.AgletThread.run(Unknown Source)
请问这是什么问题呢?很着急,谢谢回答!

解决方案 »

  1.   

    顶下
    移动平台Aglet我不太了解,也没有用过。
    我个人认为可能是你平台版本的问题,原来好使么?
      

  2.   

    你可以上网搜搜配置这个aglet2.0.2平台 都需要什么?没有用过,爱莫能助呀
      

  3.   

    aglet貌似用过的人不多呀,是不是过时了呢?有没有人会阿。。
      

  4.   

    呵呵,看来关于 aglet 了解的人还真不是很多呢。。
      

  5.   

    I find something.This is caused by a "class not found error" at the destination host. The situation was a little bit confusing.Your aglet brought some objects which classes were defined by yourself, not system classes. (call one of that "MyClass") 
    At the source host, the CLASSPATH of agletsd contained a path to "MyClass". 
    But "MyClass" was not placed at the destination host. 
    In this situation, aglets runtime does not send the class "MyClass" along with the marshalled aglet object. Aglets does not send classes loaded from the system classpath (CLASSPATH). During the unmarshalling at the destination host, a "class MyClass was not found exception" will be thrown, and that error will be reported to the sender as you received.To avoid this error,Place the class "MyClass" on the CLASSPATH or the ALGET_EXPORT_PATH of all aglets hosts. 
    Or, Remove the path to "MyClass" from the CLASSPATH. And add the path to AGLET_EXPORT_PATH.  
      

  6.   

    我按照你说的,把源class文件路径放到ALGET_EXPORT_PATH 中了,但是为什么还是不行呢。。我运行的就是aglet中自带的那几个例子,HELLOAGLET,在本机的几个端口中可以成功迁移,但是不同主机上就不行了阿!
      

  7.   

    对了,我好像看到在aglet的说明文档里好像提到,在安装的时候要更改一个什么policy文件里面的内容,是不是跟这个有关系呢?