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 <
angelo.cors...@prismtech.com> 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 <
> beyonddc.stor...@gmail.com> 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
> Developer@opensplice.org
> 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
> Developer@opensplice.org
> Subscribe / Unsubscribe
> http://dev.opensplice.org/mailman/listinfo/developer
>
>
_______________________________________________
OpenSplice DDS Developer Mailing List
Developer@opensplice.org
Subscribe / Unsubscribe http://dev.opensplice.org/mailman/listinfo/developer

Reply via email to