The URI should be the full path to the ospl.xml configuration not just the domain name.
In my case for example is: "file:///opt/OpenSpliceDDS/etc/config/ospl.xml" On Thu, Sep 20, 2012 at 1:08 AM, Chun Tat David Chu < [email protected]> wrote: > oops! it did generate a ospl-info.log and ospl-error.log > > Here's the ospl-error.log > Description : Operation shmat failed for OpenSpliceV5.5.1OSS with errno > (22) = "Invalid argument" > requested address was 0x20000000 > Node : dchu > Process : /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/jre/bin/java <20039> > Thread : eaaeb70 > Internals : > V5.5.1OSS/os_svr4_sharedMemoryAttach/os_sharedmem_seg.c/674/1/213174829 > > ======================================================================================== > Report : ERROR > Date : Thu Sep 20 02:04:09 2012 > Description : Operation shmat failed for OpenSpliceV5.5.1OSS with errno > (22) = "Invalid argument" > requested address was 0x20000000 > Node : dchu > Process : /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/jre/bin/java <20039> > Thread : eaaeb70 > Internals : > V5.5.1OSS/os_svr4_sharedMemoryAttach/os_sharedmem_seg.c/674/1/213651123 > > ======================================================================================== > Report : ERROR > Date : Thu Sep 20 02:04:09 2012 > Description : os_sharedMemoryAttach failed > Node : dchu > Process : /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/jre/bin/java <20039> > Thread : eaaeb70 > Internals : > V5.5.1OSS/user::u_domain::u_domainOpen/u_domain.c/749/0/213760381 > > ======================================================================================== > Report : ERROR > Date : Thu Sep 20 02:04:09 2012 > Description : c_open failed > Node : dchu > Process : /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/jre/bin/java <20039> > Thread : eaaeb70 > Internals : > V5.5.1OSS/user::u_domain::u_domainOpen/u_domain.c/764/0/213814478 > > ======================================================================================== > Report : ERROR > Date : Thu Sep 20 02:04:09 2012 > Description : Failure to open the domain, URI="OpenSpliceV5.5.1OSS" > Node : dchu > Process : /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/jre/bin/java <20039> > Thread : eaaeb70 > Internals : V5.5.1OSS/u_participantNew/u_participant.c/160/0/213868681 > > Here's the ospl-info.log > > ======================================================================================== > Report : API_INFO > Date : Thu Sep 20 02:04:09 2012 > Description : DomainParticipantFactory::create_participant creation of > kernel entity failed > Node : dchu > Process : /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/jre/bin/java <20039> > Thread : eaaeb70 > Internals : V5.5.1OSS/DCPS API/gapi_domainParticipant.c/472/3/215712731 > > Any idea what went wrong? > > Thanks! > > David > > > On Wed, Sep 19, 2012 at 3:46 PM, Chun Tat David Chu < > [email protected]> wrote: > >> Hi Aneglo, >> >> Thanks for your response. I also originally thought that it was related >> with OSPL_URI not being set correctly but that is not case. >> >> I am running on Linux, CentOS 6.2 32bits >> 2.6.32-220.el6.i686 #1 SMP Tue Dec 6 16:15:40 GMT 2011 i686 i686 i386 >> GNU/Linux >> >> I am using the default ospl.xml when I start all the DDS services via >> ospl executable. >> >> 'ospl list' reveals that I have a domain named "OpenSpliceV5.5.1OSS" >> >> ospl list >> >> Splice System with domain name "OpenSpliceV5.5.1OSS" is found running >> >> I thought that as long as my code set the domain id explicitly to >> "OpenSpliceV5.5.1OSS" then I wouldn't need OSPL_URI to be set. >> >> In fact when I try it in a standalone DDS Java application then it does >> work. I stripped down the start script of my standalone Java DDS >> application to check what is essential to run OSPL DDS without sourcing the >> $OSPL_HOME/release.com. The result is that I need the following (note I >> don't set the OSPL_URI because I am explicitly setting it to >> OpenSpliceV5.5.1OSS in my code). >> >> LD_LIBRARY_PATH=/open_splice/OpenSpliceDDSV5.5.1-x86.linux2.6-gcc412-gnuc25-HDE/x86.linux2.6/lib:$LD_LIBRARY_PATH >> java -classpath >> /open_splice/OpenSpliceDDSV5.5.1-x86.linux2.6-gcc412-gnuc25-HDE/x86.linux2.6/jar/dcpssaj.jar:./generated_code:. >> Publisher >> >> The issue is that it doesn't work when running within an Eclipse RCP and >> I think it is related with the Eclipse environment that I have not yet >> figure out a solution yet. Just wondering if anyone hit this problem and >> if there's any debug switch that I can enable on OSPL DDS so I can see a >> little more. >> >> - David >> >> >> >> On Wed, Sep 19, 2012 at 3:26 PM, Angelo Corsaro < >> [email protected]> wrote: >> >>> Hello David, >>> >>> The issue is actually simple, when you launch your application from >>> eclipse I am pretty sure that the OSPL_URI is not defined. Define this >>> environment library as part of eclipse or make sure that it is defined when >>> you start eclipse. >>> >>> Cheers, >>> Angelo >>> >>> P.S. which platform are you running on? >>> >>> On Sep 19, 2012, at 8:49 PM, Chun Tat David Chu < >>> [email protected]> wrote: >>> >>> Hi All, >>> >>> I am currently using OSPL DDS Community Edition 5.5.1. >>> My DDS application is written with Java 1.6 and it is part of an Eclipse >>> RCP application. >>> >>> I couldn't get my Eclipse RCP app to create a domain participant. >>> >>> The create_participant call always return a null object. However if I >>> copy and paste the following code to a standalone Java application as in >>> not part of my Eclipse RCP application then it would work. >>> >>> I have the following code. >>> String domainId = "OpenSpliceV5.5.1OSS"; >>> DDS.DomainParticipantFactory dpf = >>> DDS.DomainParticipantFactory.get_instance(); >>> DDS.DomainParticipantQosHolder dpQos = new >>> DDS.DomainParticipantQosHolder(); >>> dpf.get_default_participant_qos(dpQos); >>> DDS.DomainParticipant dp = dpf.create_participant(domainId, >>> dpQos.value, null, DDS.STATUS_MASK_NONE.value); >>> >>> I am just not sure what went wrong here. There is no error output from >>> my Eclipse RCP application and I can't find any OSPL debug that I can set >>> on my app. >>> >>> When I ran ospl, it created an ospl-info.log but there is not much >>> information there. There's no ospl-error.log either. >>> >>> Can someone please provide some recommendation on how to debug this >>> problem? >>> >>> Thanks, >>> >>> David >>> _______________________________________________ >>> OpenSplice DDS Developer Mailing List >>> [email protected] >>> Subscribe / Unsubscribe >>> http://dev.opensplice.org/mailman/listinfo/developer >>> >>> >>> -- **** >>> *Angelo Corsaro, PhD* **** >>> Chief Technology Officer**** >>> PrismTech**** >>> 4 rue Angiboust | 91460 Marcoussis | France**** >>> T +33 1 69 01 53 54 | M +33 6 42 30 75 65 **** >>> >>> ------------------------------------------------------------------------------------------------------------------ >>> **** >>> http://icorsaro.net | http://twitter.com/acorsaro | >>> http://slideshare.net/angelo.corsaro**** >>> >>> ------------------------------------------------------------------------------------------------------------------ >>> >>> >>> _______________________________________________ >>> OpenSplice DDS Developer Mailing List >>> [email protected] >>> Subscribe / Unsubscribe >>> http://dev.opensplice.org/mailman/listinfo/developer >>> >>> >> > > _______________________________________________ > OpenSplice DDS Developer Mailing List > [email protected] > Subscribe / Unsubscribe > http://dev.opensplice.org/mailman/listinfo/developer > > -- *Steve Mc Gregor* email: [email protected] movil: +51 992 705 909
_______________________________________________ OpenSplice DDS Developer Mailing List [email protected] Subscribe / Unsubscribe http://dev.opensplice.org/mailman/listinfo/developer
