Jump to content
OpenSplice DDS Forum
Morly

Problem while executing JAR

Recommended Posts

Hi back guys!

 

I have another problem this time with the final step of my project and that is integration on the Raspberry Pi.

 

I cannot seem to get my jar to be executed on the raspberry Pi while it works perfectly fine on my other node-computers. My guts tell me that it come from environnement variables but I tried everything without any progress...

When I execute my jar I have the following error:

 

org.opensplice.dds.dcps.DomainParticipantFactoryImpl.get_instance() failed: org.opensplice.dds.dcps.DomainParticipantFactoryImpl.jniGetInstance()Lorg/opensplice/dds/dcps/DomainParticipantFactoryImpl;
Exception in thread "main" java.lang.NullPointerException
    at DDS.DomainParticipantFactory.get_default_participant_qos(Unknown Source)
    at QuickDemo.LaboAppWrapper$FileChunkBuilderWrapper.getDomainParticipant_QoS(LaboAppWrapper.java:300)
    at QuickDemo.LaboAppWrapper$FileChunkBuilderWrapper.start(LaboAppWrapper.java:208)
    at QuickDemo.LaboAppWrapper.start(LaboAppWrapper.java:125)
    at QuickDemo.LaboApp.main(LaboApp.java:120)

 

 

While the same jar works perfectly fine on my computer...

 

Here are the environments variables:

 

echo $OSPL_HOME
/home/ubuntu/HDE/armv6l.linux
 

echo $OSPL_URI
file:///home/ubuntu/HDE/armv6l.linux/etc/config/ospl_shmem_nativeRT.xml
 

echo $CPATH
/home/ubuntu/HDE/armv6l.linux/include:/home/ubuntu/HDE/armv6l.linux/include/sys:

$LD_LIBRARY_PATH
/home/ubuntu/HDE/armv6l.linux/lib

echo $PATH
/home/ubuntu/HDE/armv6l.linux/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

 

I saw that there was someone who posted about the same problem and solved it but he didn't explain he dit it -_-...Geez

 

P.S: I use Java 8 Runtime SE.

 

Thanks for your help,

 

Waiting behind my screen (no pressure : ) ),

 

Morly

 

Share this post


Link to post
Share on other sites

Hi Niels !

Thank for the reply!

No ospl-error.log is generated so I'm pretty sure the problem is not coming from the code but from the environment variables. Here is the generated info log:

========================================================================================
Report      : INFO
Date        : Thu Jan 01 00:02:15 UTC 1970
Description : The user file-creation mask (0002) set for the service specifies
exclusive read or write access for at least one of the access categories.
Read and write access should always be paired,
both prohibit or granted for each access category.
Therefore the service has set the user access permissions
for the shared memory segment associated to this domain to (0660).
Domain      : "ospl_shmem_nativeRT"
Node        : melly
Process     : spliced <831>
Thread      : main thread 76f64000
Internals   : V6.5.0p11/49958ef/3ead363/os_svr4_getKey/os_sharedmem_seg.c/519/0/135.156670001
========================================================================================
Report      : INFO
Date        : Thu Jan 01 00:02:15 UTC 1970
Description : The shared-memory-creation mask (0002) set for the service specifies
              exclusive read or write access for at least one of the access categories.
              Read and write access should always be paired,
              both prohibit or granted for each access category.
              Therefore the service has set the user access permissions
              for the shared memory segment associated to this domain to (0666).
Domain      : "ospl_shmem_nativeRT"
Node        : melly
Process     : spliced <831>
Thread      : main thread 76f64000
Internals   : V6.5.0p11/49958ef/3ead363/os_svr4_sharedMemoryCreate/os_sharedmem_seg.c/726/1/135.15$
========================================================================================
Report      : INFO
Date        : Thu Jan 01 00:02:15 UTC 1970
Description : ---------------------------------------------------------------
              -- The service is using the following configuration settings --
              ---------------------------------------------------------------
              Domain (id)          : ospl_shmem_nativeRT (0)
              Storage              : 10240 Kbytes
              Storage threshold    : 1024 Kbytes
              Storage address      : 0x20000000
              Locking              : default
              Memory mode          : Shared memory
              Builtin topics       : true
              Priority inheritance : false
Node        : melly
Process     : spliced <831>
Thread      : main thread 76f64000
Internals   : V6.5.0p11/49958ef/3ead363/The OpenSplice domain service/u_domain.c/566/0/135.2878271$
========================================================================================
Report      : INFO
Date        : Thu Jan 01 00:02:15 UTC 1970
Description : ++++++++++++++++++++++++++++++++++++++++++++++++
              ++ The service 'splicedaemon' is now operational.
              ++++++++++++++++++++++++++++++++++++++++++++++++
Node        : melly
Process     : spliced <831>
 

Report      : INFO
Date        : Thu Jan 01 00:02:37 UTC 1970
Description : Missed heartbeat for node 811761237. (DCPSPublication is complete)
Node        : melly
Process     : spliced <831>
Thread      : OSPL Garbage Collector 75dff460
Internals   : V6.5.0p11/49958ef/3ead363/v_spliced/v_spliced.c/2435/773/157.485653378
========================================================================================
Report      : INFO
Date        : Thu Jan 01 00:02:37 UTC 1970
Description : Missed heartbeat for node 1045793966. (DCPSPublication is complete)
Node        : melly
Process     : spliced <831>
Thread      : OSPL Garbage Collector 75dff460
Internals   : V6.5.0p11/49958ef/3ead363/v_spliced/v_spliced.c/2435/773/157.506535930
========================================================================================
Report      : INFO
Date        : Thu Jan 01 00:02:37 UTC 1970
Description : Missed heartbeat for node 1146421660. (DCPSPublication is complete)
Node        : melly
Process     : spliced <831>
Thread      : OSPL Garbage Collector 75dff460
Internals   : V6.5.0p11/49958ef/3ead363/v_spliced/v_spliced.c/2435/773/157.527305617
========================================================================================
Report      : INFO
Date        : Thu Jan 01 00:02:37 UTC 1970
Description : Missed heartbeat for node 1165239353. (DCPSPublication is complete)
Node        : melly
Process     : spliced <831>
Thread      : OSPL Garbage Collector 75dff460
Internals   : V6.5.0p11/49958ef/3ead363/v_spliced/v_spliced.c/2435/773/157.548087649
========================================================================================
Report      : INFO
Date        : Thu Jan 01 00:02:37 UTC 1970
Description : Missed heartbeat for node 1458769287. (DCPSPublication is complete)
Node        : melly
Process     : spliced <831>
Thread      : OSPL Garbage Collector 75dff460
Internals   : V6.5.0p11/49958ef/3ead363/v_spliced/v_spliced.c/2435/773/157.568899211
========================================================================================
Report      : INFO
Date        : Thu Jan 01 00:02:37 UTC 1970
Description : Missed heartbeat for node 1599867145. (DCPSPublication is complete)
Node        : melly
Process     : spliced <831>
Thread      : OSPL Garbage Collector 75dff460
Internals   : V6.5.0p11/49958ef/3ead363/v_spliced/v_spliced.c/2435/773/157.589674315
========================================================================================
Report      : INFO
Date        : Thu Jan 01 00:02:37 UTC 1970
Description : Missed heartbeat for node 1619127337. (DCPSPublication is complete)
Node        : melly
Process     : spliced <831>
Thread      : OSPL Garbage Collector 75dff460

 

 

It is really weird that I don't have an ospl-error.log o-O
 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×