BindException in new DatagramSocket ...You may have specified your User applications in the applications configuration file with:
<application name="UA" > <module name="UA1" > <moduleProperty key="uaImpl" value="lib/build/UA.jar" /> <moduleProperty key="uaPath" value="ua.myUA1" /> <moduleProperty key="a661Config" value="a661_properties.xml" /> <moduleProperty key="includeServer" value="false" /> </module> <module name="UA12" > <moduleProperty key="uaImpl" value="lib/build/UA.jar" /> <moduleProperty key="uaPath" value="ua.myUA2" /> <moduleProperty key="a661Config" value="a661_properties.xml" /> <moduleProperty key="includeServer" value="false" /> </module> </application>This will not work properly because you will try to connect twice to the server with the same inbound and outbound connection. You should rather use the uaConfig property. For example:
<properties> <application name="uaappli" > <module name="uaappli" > <moduleProperty key="uaConfig" value="uaConfig.xml" /> <moduleProperty key="a661Config" value="a661_properties.xml" /> <moduleProperty key="includeServer" value="false" /> </module> </application> </properties>And for the
uaConfig.xml
file:<uas> <ua url="UATutorial.jar" path="org.da.protoframework.uaappli.UA1" defaultSubscribeService="published"> <layers> <layer appliID="1" layerID="1" /> </layers> <subscribe service="published" > <entryPoint method="subscribe" /> </subscribe> </ua> <ua url="UATutorial.jar" path="org.da.protoframework.uaappli.UA2"> <layers> <layer appliID="1" layerID="2" /> </layers> </ua> </uas>
Copyright 2017-2020 Dassault Aviation. All Rights Reserved. Documentation and source under the LGPL v3 licence