Error when creating participant

2 posts / 0 new
Last post
Offline
Last seen: 9 years 8 months ago
Joined: 01/29/2015
Posts: 1
Error when creating participant

Hello,

I see error messages related to RTI DDS in my log when I run my application. To be more specific, the error has to do with creating participant. I'm not sure why the application isn't able to create participant. Below is the stack trace of the error I see in my log.

This is the line throwing the error:

DomainParticipantFactory.get_instance().create_participant_with_profile(domain, libraryQos, profileQos, null, 0);

Log:

20150129 16:46:54 ERROR [system.DefaultEnvironment]: Error in initializer

java.lang.UnsatisfiedLinkError: com.rti.dds.infrastructure.EntityNameQosPolicy.prepare_string_for_replaceI(J)V

   at com.rti.dds.infrastructure.EntityNameQosPolicy.prepare_string_for_replaceI(Native Method)

   at com.rti.dds.infrastructure.EntityNameQosPolicy.push_to_nativeI(Unknown Source)

   at com.rti.dds.domain.DomainParticipantQos.push_to_nativeI(Unknown Source)

   at com.rti.dds.infrastructure.NativeFactoryMixin.create_entityI(Unknown Source)

   at com.rti.dds.domain.DomainParticipantFactoryImpl.create_participant(Unknown Source)

   at com.rti.dds.domain.DomainParticipantFactoryImpl.create_participant_with_profile(Unknown Source)

 Any help would be appreciated.

Thanks!

Gerardo Pardo's picture
Offline
Last seen: 3 months 3 weeks ago
Joined: 06/02/2010
Posts: 602

Hi,

What platform are you running on? It seems as if the application is not able to load the native libraries/DLLs.  Are you setting your platform environment variable: PATH, LD_LIBRARY_PATH, DYLD_LIBRARY_PATH to contain the "lib" directory that has the RTI Connect DDS Libraries?  

You may want to take a look at the Core Platform Notes (http://community.rti.com/rti-doc/510/ndds.5.1.0/doc/pdf/RTI_CoreLibrariesAndUtilities_PlatformNotes.pdf)  and search for the sections that describe the environment variables needed to run Connext DDS Java applications on your platform.

Gerardo