Discussion:
[OSPL-Dev] Unable to create domain participant
Chun Tat David Chu
2012-09-19 18:49:28 UTC
Permalink
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://dev.opensplice.org/pipermail/developer/attachments/20120919/148b2ecc/attachment.htm>
Angelo Corsaro
2012-09-19 19:26:54 UTC
Permalink
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?
Post by Chun Tat David Chu
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 at 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
------------------------------------------------------------------------------------------------------------------

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://dev.opensplice.org/pipermail/developer/attachments/20120919/9c18f842/attachment.htm>
Chun Tat David Chu
2012-09-19 19:46:20 UTC
Permalink
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"
Post by Angelo Corsaro
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 <
Post by Angelo Corsaro
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 <
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 at 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 at opensplice.org
Subscribe / Unsubscribe
http://dev.opensplice.org/mailman/listinfo/developer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://dev.opensplice.org/pipermail/developer/attachments/20120919/3f117792/attachment.htm>
Chun Tat David Chu
2012-09-20 06:08:31 UTC
Permalink
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 <
Post by Chun Tat David Chu
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"
Post by Angelo Corsaro
Post by Chun Tat David Chu
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 <
Post by Angelo Corsaro
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 <
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 at 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 at opensplice.org
Subscribe / Unsubscribe
http://dev.opensplice.org/mailman/listinfo/developer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://dev.opensplice.org/pipermail/developer/attachments/20120920/5675bc9b/attachment.htm>
Steve Mc Gregor
2012-09-20 13:32:11 UTC
Permalink
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 <
Post by Chun Tat David Chu
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
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
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
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
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 <
Post by Chun Tat David Chu
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"
Post by Angelo Corsaro
Post by Chun Tat David Chu
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 <
Post by Angelo Corsaro
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 <
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 at 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 at opensplice.org
Subscribe / Unsubscribe
http://dev.opensplice.org/mailman/listinfo/developer
_______________________________________________
OpenSplice DDS Developer Mailing List
Developer at opensplice.org
Subscribe / Unsubscribe
http://dev.opensplice.org/mailman/listinfo/developer
--
*Steve Mc Gregor*
email: stevemcgregor at gmail.com
movil: +51 992 705 909
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://dev.opensplice.org/pipermail/developer/attachments/20120920/9db57368/attachment.htm>
Chun Tat David Chu
2012-09-20 14:37:53 UTC
Permalink
Hi Steve,

Thanks for your reply.

Tried, no luck (See below)

I don't think the domain ID has to point to a OSPL configuration file. The
Java API documentation says the following...
Post by Steve Mc Gregor
in String domainId - the ID of the Domain to which the
DomainParticipant is joined. This should be a URI to the location of the
configuration file that identifies the configuration details of the
Domain, *or the
Post by Steve Mc Gregor
Domain name as specified in the configuration file*. The actual ID used
will also
Post by Steve Mc Gregor
be applicable for the lookup_participant and get_domain_id operations;
it is not allowed to mix URI and Domain name in operations on one
DomainParticipant.
========================================================================================
Report : ERROR
Date : Thu Sep 20 10:31:01 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 <309>
Thread : 1085db70
Internals :
V5.5.1OSS/os_svr4_sharedMemoryAttach/os_sharedmem_seg.c/674/1/394752230
========================================================================================
Report : ERROR
Date : Thu Sep 20 10:31:02 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 <309>
Thread : 1085db70
Internals :
V5.5.1OSS/os_svr4_sharedMemoryAttach/os_sharedmem_seg.c/674/1/395215421
========================================================================================
Report : ERROR
Date : Thu Sep 20 10:31:02 2012
Description : os_sharedMemoryAttach failed
Node : dchu
Process : /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/jre/bin/java <309>
Thread : 1085db70
Internals :
V5.5.1OSS/user::u_domain::u_domainOpen/u_domain.c/749/0/395326555
========================================================================================
Report : ERROR
Date : Thu Sep 20 10:31:02 2012
Description : c_open failed
Node : dchu
Process : /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/jre/bin/java <309>
Thread : 1085db70
Internals :
V5.5.1OSS/user::u_domain::u_domainOpen/u_domain.c/764/0/395370184
========================================================================================
Report : ERROR
Date : Thu Sep 20 10:31:02 2012
Description : Failure to open the domain,
URI="file:///home/dchu/Applications/opensplice_dds/OpenSpliceDDSV5.5.1-x86.linux2.6-gcc412-gnuc25-HDE/x86.linux2.6/etc/config/ospl.xml"
Node : dchu
Process : /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/jre/bin/java <309>
Thread : 1085db70
Internals : V5.5.1OSS/u_participantNew/u_participant.c/160/0/395410831


- David
Post by Steve Mc Gregor
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 <
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
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
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
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
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 <
Post by Chun Tat David Chu
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"
Post by Angelo Corsaro
Post by Chun Tat David Chu
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 <
Post by Angelo Corsaro
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 <
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 at 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 at opensplice.org
Subscribe / Unsubscribe
http://dev.opensplice.org/mailman/listinfo/developer
_______________________________________________
OpenSplice DDS Developer Mailing List
Developer at opensplice.org
Subscribe / Unsubscribe
http://dev.opensplice.org/mailman/listinfo/developer
--
*Steve Mc Gregor*
email: stevemcgregor at gmail.com
movil: +51 992 705 909
_______________________________________________
OpenSplice DDS Developer Mailing List
Developer at opensplice.org
Subscribe / Unsubscribe
http://dev.opensplice.org/mailman/listinfo/developer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://dev.opensplice.org/pipermail/developer/attachments/20120920/8821e561/attachment.htm>
Chun Tat David Chu
2012-09-20 15:22:43 UTC
Permalink
All right, I got it working now! :-)

To get it working, I have to set...
1) Set LD_LIBRARY_PATH
"/home/dchu/Applications/opensplice_dds/OpenSpliceDDSV5.5.1-x86.linux2.6-gcc412-gnuc25-HDE/x86.linux2.6/lib"
2) Set LD_PRELOAD
/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/jre/lib/i386/libjsig.so
3) Remove JVM argument -Xmx2048M -XX:MaxPermSize=512M

It was the ospl-error.log that give me hint that is related with memory.
Particularly this line, "Operation shmat failed for OpenSpliceV5.5.1OSS
with errno (22) = "Invalid argument"

shmat is a C operation to attach to a shared memory segment.

Thank you all,

- dc

On Thu, Sep 20, 2012 at 10:37 AM, Chun Tat David Chu <
Post by Chun Tat David Chu
Hi Steve,
Thanks for your reply.
Tried, no luck (See below)
I don't think the domain ID has to point to a OSPL configuration file.
The Java API documentation says the following...
Post by Steve Mc Gregor
in String domainId - the ID of the Domain to which the
DomainParticipant is joined. This should be a URI to the location of the
configuration file that identifies the configuration details of the
Domain, *or the
Post by Steve Mc Gregor
Domain name as specified in the configuration file*. The actual ID
used will also
Post by Steve Mc Gregor
be applicable for the lookup_participant and get_domain_id operations;
it is not allowed to mix URI and Domain name in operations on one
DomainParticipant.
========================================================================================
Report : ERROR
Date : Thu Sep 20 10:31:01 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 <309>
Thread : 1085db70
V5.5.1OSS/os_svr4_sharedMemoryAttach/os_sharedmem_seg.c/674/1/394752230
========================================================================================
Report : ERROR
Date : Thu Sep 20 10:31:02 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 <309>
Thread : 1085db70
V5.5.1OSS/os_svr4_sharedMemoryAttach/os_sharedmem_seg.c/674/1/395215421
========================================================================================
Report : ERROR
Date : Thu Sep 20 10:31:02 2012
Description : os_sharedMemoryAttach failed
Node : dchu
Process : /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/jre/bin/java <309>
Thread : 1085db70
V5.5.1OSS/user::u_domain::u_domainOpen/u_domain.c/749/0/395326555
========================================================================================
Report : ERROR
Date : Thu Sep 20 10:31:02 2012
Description : c_open failed
Node : dchu
Process : /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/jre/bin/java <309>
Thread : 1085db70
V5.5.1OSS/user::u_domain::u_domainOpen/u_domain.c/764/0/395370184
========================================================================================
Report : ERROR
Date : Thu Sep 20 10:31:02 2012
Description : Failure to open the domain,
URI="file:///home/dchu/Applications/opensplice_dds/OpenSpliceDDSV5.5.1-x86.linux2.6-gcc412-gnuc25-HDE/x86.linux2.6/etc/config/ospl.xml"
Node : dchu
Process : /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/jre/bin/java <309>
Thread : 1085db70
Internals : V5.5.1OSS/u_participantNew/u_participant.c/160/0/395410831
- David
Post by Steve Mc Gregor
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 <
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
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
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
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
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 <
Post by Chun Tat David Chu
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"
Post by Angelo Corsaro
Post by Chun Tat David Chu
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 <
Post by Angelo Corsaro
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 <
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 at 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 at opensplice.org
Subscribe / Unsubscribe
http://dev.opensplice.org/mailman/listinfo/developer
_______________________________________________
OpenSplice DDS Developer Mailing List
Developer at opensplice.org
Subscribe / Unsubscribe
http://dev.opensplice.org/mailman/listinfo/developer
--
*Steve Mc Gregor*
email: stevemcgregor at gmail.com
movil: +51 992 705 909
_______________________________________________
OpenSplice DDS Developer Mailing List
Developer at opensplice.org
Subscribe / Unsubscribe
http://dev.opensplice.org/mailman/listinfo/developer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://dev.opensplice.org/pipermail/developer/attachments/20120920/a89a9f14/attachment.htm>
Francis,Raymond
2012-10-03 10:05:10 UTC
Permalink
Dear All,

We have been using OpenSplice in various projects, in particular embedding "plugins" into 3rd party products. Up until now, DDS has worked great. But some of our projects have started running the 3rd party product with DDS on different Windows versions or using later versions of the 3rd party product, and this has resulted in the failure to create the shared kernel.

In fact, almost from day 1 usage of DDS I have had to play with the Address configuration item, and felt I had settled on one that reliably worked. However, that magic number is now starting to fail. Guessing a new one is very difficult, but we have managed to change that and the DB size to get things working again. However, I would be interested in knowing how the Address can be specified. From my experience, a higher number is not necessarily going to guarantee making it work.

What is a little confusing to me is that Windows has its own shared memory management, referenced by name rather than address. Why is a specific address necessary, as I can see this continually being problematic for future Windows and 3rd party product releases?

Regards
Raymond Francis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://dev.opensplice.org/pipermail/developer/attachments/20121003/04bbbd87/attachment.htm>
Hans van't Hag
2012-10-12 13:37:32 UTC
Permalink
Hey Ray,



Ever considered to use the ?single-process? deployment mode available with
V6 (that doesn?t use shared-memory) ?



Regards,

Hans





* *

*Hans van 't Hag*

OpenSplice DDS Product Manager

PrismTech Netherlands

Email: hans.vanthag at prismtech.com

Tel: +31742472572

Fax: +31742472571

Gsm: +31624654078



PrismTech is a global leader in standards-based, performance-critical
middleware. Our products enable our OEM, Systems Integrator, and End User
customers to build and optimize high-performance systems primarily for
Mil/Aero, Communications, Industrial, and Financial Markets.
------------------------------

*From:* developer-bounces at opensplice.org [mailto:
developer-bounces at opensplice.org] *On Behalf Of *Francis,Raymond
*Sent:* woensdag 3 oktober 2012 12:05
*To:* 'OpenSplice DDS Developer Mailing List'
*Subject:* [OSPL-Dev] Shared Memory Configuration Issues



Dear All,



We have been using OpenSplice in various projects, in particular embedding
"plugins" into 3rd party products. Up until now, DDS has worked great.
But some of our projects have started running the 3rd party product with
DDS on different Windows versions or using later versions of the 3rd party
product, and this has resulted in the failure to create the shared kernel.



In fact, almost from day 1 usage of DDS I have had to play with the Address
configuration item, and felt I had settled on one that reliably worked.
However, that magic number is now starting to fail. Guessing a new one is
very difficult, but we have managed to change that and the DB size to get
things working again. However, I would be interested in knowing how the
Address can be specified. From my experience, a higher number is not
necessarily going to guarantee making it work.



What is a little confusing to me is that Windows has its own shared memory
management, referenced by name rather than address. Why is a specific
address necessary, as I can see this continually being problematic for
future Windows and 3rd party product releases?



Regards

Raymond Francis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://dev.opensplice.org/pipermail/developer/attachments/20121012/21ccc49b/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 3349 bytes
Desc: not available
URL: <Loading Image...>
FRANCIS Raymond
2012-10-15 14:18:22 UTC
Permalink
Hans,

Thanks for that information. Currently I am using the Community Edition, so I would need to go to the commercial version to benefit from this. This is an option, but I was wondering the following:

1) Is there somewhere a list of the differences from 5.4.1 to 6.x? We would be interested in knowing the impact of upgrading our existing code.
2) The 'single-process' deployment, if I understand the name correctly, the question is what happens on one machine if I have multiple processes, do they duplicate the database? Is there any performance issues I need to consider with that?

Regards
Raymond Francis

From: developer-bounces at opensplice.org [mailto:developer-bounces at opensplice.org] On Behalf Of Hans van't Hag
Sent: 12 October 2012 14:38
To: OpenSplice DDS Developer Mailing List
Subject: Re: [OSPL-Dev] Shared Memory Configuration Issues

Hey Ray,

Ever considered to use the ?single-process? deployment mode available with V6 (that doesn?t use shared-memory) ?

Regards,
Hans


[cid:image001.jpg at 01CDAAE0.90951CE0]

Hans van 't Hag
OpenSplice DDS Product Manager
PrismTech Netherlands
Email: hans.vanthag at prismtech.com<mailto:hans.vanthag at prismtech.com>
Tel: +31742472572
Fax: +31742472571
Gsm: +31624654078

PrismTech is a global leader in standards-based, performance-critical middleware. Our products enable our OEM, Systems Integrator, and End User customers to build and optimize high-performance systems primarily for Mil/Aero, Communications, Industrial, and Financial Markets.
________________________________
From: developer-bounces at opensplice.org<mailto:developer-bounces at opensplice.org> [mailto:developer-bounces at opensplice.org<mailto:developer-bounces at opensplice.org>] On Behalf Of Francis,Raymond
Sent: woensdag 3 oktober 2012 12:05
To: 'OpenSplice DDS Developer Mailing List'
Subject: [OSPL-Dev] Shared Memory Configuration Issues

Dear All,

We have been using OpenSplice in various projects, in particular embedding "plugins" into 3rd party products. Up until now, DDS has worked great. But some of our projects have started running the 3rd party product with DDS on different Windows versions or using later versions of the 3rd party product, and this has resulted in the failure to create the shared kernel.

In fact, almost from day 1 usage of DDS I have had to play with the Address configuration item, and felt I had settled on one that reliably worked. However, that magic number is now starting to fail. Guessing a new one is very difficult, but we have managed to change that and the DB size to get things working again. However, I would be interested in knowing how the Address can be specified. From my experience, a higher number is not necessarily going to guarantee making it work.

What is a little confusing to me is that Windows has its own shared memory management, referenced by name rather than address. Why is a specific address necessary, as I can see this continually being problematic for future Windows and 3rd party product releases?

Regards
Raymond Francis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://dev.opensplice.org/pipermail/developer/attachments/20121015/f53612dc/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 3349 bytes
Desc: image001.jpg
URL: <Loading Image...>
Hans van't Hag
2012-10-15 14:54:46 UTC
Permalink
Hi Ray,



During our world-wide user-conference in Paris last February, we presented
v6 and all its features (see
http://www.prismtech.com/opensplice/resources/demand-webcasts/opensplice-dds-user-conference-part-2)
, but summarizing we?ve introduced the standalone ?single-process?
deployment model, improved our DDSI implementation, introduced
OpenSplice-RMI (transparent remote-method invocations over DDS) and
introduced a distributed regression-test tool called the OpenSplice Tester
(see also
http://www.prismtech.com/opensplice/resources/youtube-videos-slideshare/opensplice-dds-tester-demo)
.



W.r.t. the upgrading of existing code, there where 3 (2 minor and 1 major)
API-changes: one about correcting the default writer reliability QoS to
RELIABLE (as is in the spec), one about deprecating the current ?
enable_invalid_samples? API for which there?s now an alternative that has 3
modes rather than 2, and most importantly, we decided to fix a
long-standing interoperability-challenge in that according to the
specification, the domainId is a so-called ?NATIVE_TYPE? meaning that each
DDS implementation may decide what it actually is and where in OpenSplice
it?s a string (URI of the domain-configuration) and in most other DDS
implementations it was an integer. We decided to adopt the integer so to
increase portability and we?re offering a DDS_DOMAIN_ID_DEFAULT *?special
value?* which follows the pattern where the OSPL_URI environment variable
is still used to find the domain configuration-file and where the actual
domainId to be used will be the one as specified in the XML configuration
file.



Please note that also our commercial edition has an OpenSource LGPLv3 core,
its just that it comes with commercial support as well as an optional set
of commercial add-ons w.r.t. tools (OpenSplice Tuner, OpenSplice Tester),
pluggable services (DBMSConnect, DDSI2E, secure networking), API?s (OpenSplice
RMI, OpenSplice Streams) and choice of deployment modes.



With respect to your question on ?*single-process scalability?*, that?s
indeed a trade-off as the advantage of using our shared-memory
deployment-mode is that intra-nodal traffic as well as related
resource-usage will be more efficient than when using multiple standalone
?single-processes? that need a transport (protocol) to communicate. Please
note that modern operating systems do a good job in short-cutting loop-back
network-traffic, so the difference isn?t dramatic, but still a factor of 2
to 3 when comparing latency to using shared-memory has to be taken into
account. Footprint is indeed the other metric where the efficiency of
OpenSplice?s shared-memory model (where regardless of the number of
readers/writers, there?s always maximally 1 physical copy of a sample
?in-memory?) can be a factor of consideration when comparing to the ?*
traditional?* (single-process) library-model where each application links
the middle as libraries and will necessarily require its own copy of
subscribed data.



For more details you can always contact me directly of course J



Regards,

Hans





* *

*Hans van 't Hag*

OpenSplice DDS Product Manager

PrismTech Netherlands

Email: hans.vanthag at prismtech.com

Tel: +31742472572

Fax: +31742472571

Gsm: +31624654078



PrismTech is a global leader in standards-based, performance-critical
middleware. Our products enable our OEM, Systems Integrator, and End User
customers to build and optimize high-performance systems primarily for
Mil/Aero, Communications, Industrial, and Financial Markets.
------------------------------

*From:* developer-bounces at opensplice.org [mailto:
developer-bounces at opensplice.org] *On Behalf Of *FRANCIS Raymond
*Sent:* maandag 15 oktober 2012 16:18
*To:* OpenSplice DDS Developer Mailing List
*Subject:* Re: [OSPL-Dev] Shared Memory Configuration Issues



Hans,



Thanks for that information. Currently I am using the Community Edition,
so I would need to go to the commercial version to benefit from this. This
is an option, but I was wondering the following:



1) Is there somewhere a list of the differences from 5.4.1 to 6.x? We
would be interested in knowing the impact of upgrading our existing code.

2) The 'single-process' deployment, if I understand the name correctly, the
question is what happens on one machine if I have multiple processes, do
they duplicate the database? Is there any performance issues I need to
consider with that?



Regards

Raymond Francis



*From:* developer-bounces at opensplice.org [mailto:
developer-bounces at opensplice.org] *On Behalf Of *Hans van't Hag
*Sent:* 12 October 2012 14:38
*To:* OpenSplice DDS Developer Mailing List
*Subject:* Re: [OSPL-Dev] Shared Memory Configuration Issues



Hey Ray,



Ever considered to use the ?single-process? deployment mode available with
V6 (that doesn?t use shared-memory) ?



Regards,

Hans





* *

*Hans van 't Hag*

OpenSplice DDS Product Manager

PrismTech Netherlands

Email: hans.vanthag at prismtech.com

Tel: +31742472572

Fax: +31742472571

Gsm: +31624654078



PrismTech is a global leader in standards-based, performance-critical
middleware. Our products enable our OEM, Systems Integrator, and End User
customers to build and optimize high-performance systems primarily for
Mil/Aero, Communications, Industrial, and Financial Markets.
------------------------------

*From:* developer-bounces at opensplice.org [mailto:
developer-bounces at opensplice.org] *On Behalf Of *Francis,Raymond
*Sent:* woensdag 3 oktober 2012 12:05
*To:* 'OpenSplice DDS Developer Mailing List'
*Subject:* [OSPL-Dev] Shared Memory Configuration Issues



Dear All,



We have been using OpenSplice in various projects, in particular embedding
"plugins" into 3rd party products. Up until now, DDS has worked great.
But some of our projects have started running the 3rd party product with
DDS on different Windows versions or using later versions of the 3rd party
product, and this has resulted in the failure to create the shared kernel.



In fact, almost from day 1 usage of DDS I have had to play with the Address
configuration item, and felt I had settled on one that reliably worked.
However, that magic number is now starting to fail. Guessing a new one is
very difficult, but we have managed to change that and the DB size to get
things working again. However, I would be interested in knowing how the
Address can be specified. From my experience, a higher number is not
necessarily going to guarantee making it work.



What is a little confusing to me is that Windows has its own shared memory
management, referenced by name rather than address. Why is a specific
address necessary, as I can see this continually being problematic for
future Windows and 3rd party product releases?



Regards

Raymond Francis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://dev.opensplice.org/pipermail/developer/attachments/20121015/8a56d0f8/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 3349 bytes
Desc: not available
URL: <Loading Image...>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 3349 bytes
Desc: not available
URL: <Loading Image...>
Loading...