Problem starting cougaar using communities

Todd Wright twright at bbn.com
Tue Jan 22 16:07:40 EST 2008


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:
> I just went through the mesh demo and I am trying to convert some of my 
> earlier test code to startup using runtime and society xml files.  
> Before I made things work by copying files into various subfolders of 
> the cougaar_install directories.
> 
> The following applies to my environment
> 
>     * Java 1.6
>     * Cougaar 12.4
>     * Windows 2000
> 
> I have installed cougaar to c:/cougaar and I have created a separate 
> location for my test application APPA which is c:/cougaar_apps and 
> c:/cougaar_apps/appa respectively.
> 
> When I run the application the community information cannot be loaded.  
> I have included the trace at the end of this email.
> 
> I have copied the communities.xml to the c:/cougaar_apps/appa/config 
> directory.
> 
> I seems as if the -Dorg.cougaar.config.path does not work.  I have used 
> several different combinations in the BasicRuntime.xml file none of 
> which worked.
> 
> Examples:
>     
> <vm_parameter>-Dorg.cougaar.config.path=c:/cougaar/configs/common\;C:/cougaar_apps/appa/config\</vm_parameter>
>     
> <vm_parameter>-Dorg.cougaar.config.path=c:/cougaar/configs/common;C:/cougaar_apps/appa/config</vm_parameter>
>     
> <vm_parameter>-Dorg.cougaar.config.path=c:/cougaar/configs/common</vm_parameter>
>     
> <vm_parameter>-Dorg.cougaar.config.path=C:/cougaar_apps/appa/config</vm_parameter>
> 
> I have attached a zip of all the directories in c:/cougaar_apps.
> 
> Can someone please tell me what I am doing wrong here.
> 
> Thanks,
> Andreas
> 
> 
> 
> 
> C:\cougaar_apps\appa\run>cougaar 
> c:/cougaar_apps/appa/config/DirMonAgent.xml BasicRuntime.xml
> C:\DOCUME~1\amundin\LOCALS~1\Temp\cougaar_exec055.bat
> COUGAAR 12.4 built on Thu Sep 27 12:19:45 PDT 2007
> Repository: B12_4 on Thu Sep 27 12:17:21 PDT 2007
> VM: JDK 1.6.0_03-b05 (mixed mode)
> OS: Windows 2000 (5.0)
> 2008-01-21 23:08:16,848 SHOUT [XMLComponentInitializerServiceProvider] - 
> Initializing node "APPA" from XML file "c:/coug
> aar_apps/appa/config/DirMonAgent.xml"
> 2008-01-21 23:08:21,625 WARN  [CommunityPlugin] - DirMonAgent: Unable to 
> obtain community information for agent DirMonAg
> ent
> 2008-01-21 23:08:21,625 FATAL [SuicideService] - Suicide from DirMonAgent
> java.lang.NullPointerException
>         at 
> org.cougaar.community.CommunityPlugin.findMyStartupCommunities(CommunityPlugin.java:150)
>         at 
> org.cougaar.community.CommunityPlugin.joinStartupCommunities(CommunityPlugin.java:176)
>         at 
> org.cougaar.community.CommunityPlugin.setupSubscriptions(CommunityPlugin.java:99)
>         at 
> org.cougaar.core.blackboard.BlackboardClientComponent.precycle(BlackboardClientComponent.java:329)
>         at 
> org.cougaar.core.blackboard.BlackboardClientComponent$2.trigger(BlackboardClientComponent.java:245)
>         at 
> org.cougaar.util.SyncTriggerModelImpl.runInnerTrigger(SyncTriggerModelImpl.java:233)
>         at 
> org.cougaar.util.SyncTriggerModelImpl.access$000(SyncTriggerModelImpl.java:56)
>         at 
> org.cougaar.util.SyncTriggerModelImpl$2.trigger(SyncTriggerModelImpl.java:98)
>         at 
> org.cougaar.core.agent.service.scheduler.SchedulerServiceProvider$WorkerBase.runTrigger(SchedulerServiceProvi
> der.java:217)
>         at 
> org.cougaar.core.agent.service.scheduler.SchedulerServiceProvider$NormalScheduler$Worker.run(SchedulerService
> Provider.java:313)
>         at 
> org.cougaar.core.thread.SchedulableObject.run(SchedulableObject.java:118)
>         at 
> org.cougaar.core.thread.ThreadPool$PooledThread.continuationLoop(ThreadPool.java:94)
>         at 
> org.cougaar.core.thread.ThreadPool$PooledThread.run(ThreadPool.java:122)
> 2008-01-21 23:08:21,635 WARN  [CommunityPlugin] - DirMonMgr: Unable to 
> obtain community information for agent DirMonMgr
> 2008-01-21 23:08:21,635 FATAL [SuicideService] - Suicide from DirMonMgr
> java.lang.NullPointerException
>         at 
> org.cougaar.community.CommunityPlugin.findMyStartupCommunities(CommunityPlugin.java:150)
>         at 
> org.cougaar.community.CommunityPlugin.joinStartupCommunities(CommunityPlugin.java:176)
>         at 
> org.cougaar.community.CommunityPlugin.setupSubscriptions(CommunityPlugin.java:99)
>         at 
> org.cougaar.core.blackboard.BlackboardClientComponent.precycle(BlackboardClientComponent.java:329)
>         at 
> org.cougaar.core.blackboard.BlackboardClientComponent$2.trigger(BlackboardClientComponent.java:245)
>         at 
> org.cougaar.util.SyncTriggerModelImpl.runInnerTrigger(SyncTriggerModelImpl.java:233)
>         at 
> org.cougaar.util.SyncTriggerModelImpl.access$000(SyncTriggerModelImpl.java:56)
>         at 
> org.cougaar.util.SyncTriggerModelImpl$2.trigger(SyncTriggerModelImpl.java:98)
>         at 
> org.cougaar.core.agent.service.scheduler.SchedulerServiceProvider$WorkerBase.runTrigger(SchedulerServiceProvi
> der.java:217)
>         at 
> org.cougaar.core.agent.service.scheduler.SchedulerServiceProvider$NormalScheduler$Worker.run(SchedulerService
> Provider.java:313)
>         at 
> org.cougaar.core.thread.SchedulableObject.run(SchedulableObject.java:118)
>         at 
> org.cougaar.core.thread.ThreadPool$PooledThread.continuationLoop(ThreadPool.java:94)
>         at 
> org.cougaar.core.thread.ThreadPool$PooledThread.run(ThreadPool.java:122)
> 
> 
> ------------------------------------------------------------------------
> 
> @echo off 
> @REM Generated by Cougaar.bat! 
> java -Dorg.cougaar.society.xsl.param.template=single_node -Dorg.cougaar.core.logging.config.filename=logging.props -Dorg.cougaar.config.path=c:/cougaar/configs/common\;C:/cougaar_apps/appa/config\; -Dorg.cougaar.class.path=C:/cougaar_apps/appa/lib/appa.jar -Dorg.cougaar.runtime.path=C:/cougaar_apps/appa/run -Dorg.cougaar.society.path=C:/cougaar_apps/appa -Dorg.cougaar.install.path=c:/cougaar -Dorg.cougaar.system.path=c:/cougaar/sys -Dorg.cougaar.bootstrap.application=org.cougaar.core.node.Node -Dorg.cougaar.society.file=c:/cougaar_apps/appa/config/DirMonAgent.xml -Dorg.cougaar.runtime.file=BasicRuntime.xml -Dorg.cougaar.node.name=APPA -Xbootclasspath/p:c:/cougaar/lib/javaiopatch.jar -Dorg.cougaar.core.node.InitializationComponent=XML -Djava.class.path=c:/cougaar/lib/bootstrap.jar org.cougaar.bootstrap.Bootstrapper
> 
> 
> ------------------------------------------------------------------------
> 
> This is a message from the MailScanner E-Mail Virus Protection Service
> ----------------------------------------------------------------------
> The original e-mail attachment "appa.zip"
> is on the list of unacceptable attachments for this site and has been
> replaced by this warning message.
> 
> Due to limitations placed on us by the Regulation of Investigatory Powers
> Act 2000, we were unable to keep a copy of the original attachment.
> 
> At Tue Jan 22 02:24:12 2008 the virus scanner said:
>    MailScanner: Batch files are often malicious (run.bat)
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Cougaar-developers mailing list
> Cougaar-developers at cougaar.org
> http://cougaar.org/mailman/listinfo/cougaar-developers



More information about the Cougaar-developers mailing list