Problem starting cougaar using communities
Andreas
andreas at paleden.com
Sat Jan 26 19:00:22 EST 2008
Todd or anyone else who would like to chime in,
Where can I find more information on the non-legacy community service?
I get the impression the documentation of Cougaar Communities in the
Cougaar Developers Guide 11.4 describes the legacy community service.
What I really quickly tried to do with my application was to
re-configure it using the following
<runtime>
...
<vm_parameter>-Dorg.cougaar.society.xsl.param.communities=true</vm_parameter>
</runtime>
and
<society>
<node name="APPA">
<agent name="DirMonAgent">
...
<!-- Community members need the CommunityPlugin but this
is for the legacy community service so I am commenting it out
<component class='org.cougaar.community.CommunityPlugin' />
-->
<!-- for the non-legacy community service I need to use
the following -->
<component
class="org.cougaar.core.agent.service.community.JoinCommunity">
<argument name="community" value="DirMonCommunity"/>
</component>
</agent>
</node>
</society>
These are just excerpts.
When I run the application it starts up ok, but then starts sending out
the following warning message over and over.
Warning Trigger
TSD:Trigger(com.appa.agent.plugin.dirmon.DLReportPlugin):null threw
java.lang.UnsupportedOperationExcept
ion: Only supports null or "(Role=Member)" search filter, not
(Role=Manager)
java.lang.UnsupportedOperationException: Only supports null or
"(Role=Member)" search filter, not (Role=Manager)
at
org.cougaar.core.agent.service.community.CommunityServiceProvider$CommunityServiceImpl.searchCommunity(Commun
ityServiceProvider.java:578)
at
org.cougaar.core.agent.service.community.CommunityServiceProvider$CommunityServiceImpl.search(CommunityServic
eProvider.java:567)
....
One of my ABA targets was using Role=Manager. Without the community.xml
file no agents are defined with the role=Manager. How do I go about
doing this with the non-legacy service? Is it just a matter of coding
it into the agent load or setupSubscription methods or is there some
kind of configuration approach?
Thanks in advance.
Andreas
Todd Wright wrote:
>
> Communities are not required for the mesh demo. Remove the following
> plugin from your XML file:
> org.cougaar.community.CommunityPlugin
>
> You're correctly setting the Cougaar template property:
> -Dorg.cougaar.society.xsl.param.template=single_node
> which disables the legacy community service:
> http://cougaar.cougaar.org/software/latest/OnlineManual/Templates.html
>
> If you require the legacy community service, you can enable it by
> either removing:
> -Dorg.cougaar.society.xsl.param.template=single_node
> or adding:
> -Dorg.cougaar.society.xsl.param.communities=legacy
> This will load the service and it should find your "communities.xml".
>
> You may also be interested in the non-legacy community service
> implementation, which can be enabled with:
> -Dorg.cougaar.society.xsl.param.template=wan
> or:
> -Dorg.cougaar.society.xsl.param.communities=true
> Demo "join" and "test" plugins are included with Cougaar:
> http://cougaar.cougaar.org/software/latest/javadoc/core/doc/api/org/cougaar/core/agent/service/community/package-summary.html
>
>
> Todd
>
> Andreas wrote:
...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cougaar.org/pipermail/cougaar-developers/attachments/20080126/994bee9c/attachment-0001.html
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: output.txt
Url: http://cougaar.org/pipermail/cougaar-developers/attachments/20080126/994bee9c/output-0001.txt
More information about the Cougaar-developers
mailing list