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