Java

1 post / 0 new
Offline
Last seen: 3 months 2 weeks ago
Joined: 08/22/2019
Posts: 4
DataReaderListener not called

Hi,

I have successfully set up a publisher in a Java application, and its data is received by another participant. Registering the same participant that is publishing the data as a subscriber seems to be successful, too, but it seems my DataReaderListener is never called when something is published on the topic. Here's the code that is setting up the subscriber:

5 posts / 0 new
Last post
Offline
Last seen: 3 months 2 weeks ago
Joined: 08/22/2019
Posts: 4
Compilation failure with Java classes generated by rtiddsgen

Hello,

I'm using rtiddsgen (from the 6.0.0 distribution) to generate Java classes from an IDL file.

rtiddsgen -d output -inputidl ida.idl -language Java -package dds.xyz -ppDisable -update typefiles

The Java classes are generated successfully, but some of them cannot be compiled. The errors reported by the Java compiler mainly have to do with converting to either a Sequence or a List. Here are a couple of examples:

2 posts / 0 new
Last post
jakehenry41kc's picture
Offline
Last seen: 3 months 4 days ago
Joined: 10/17/2017
Posts: 2
32 bit vs 64 bit .dlls in Java

Hello,

Organization:
6 posts / 0 new
Last post
Offline
Last seen: 1 year 7 months ago
Joined: 12/03/2017
Posts: 6
Need your advice

Hello,

I'm working on master thesis project where I need to apply DDS with existing CPS system for smart buildings. CSP system's source code written with modeling language called ThingML. After compiling program runs as Java application.

Simple version of this CPS receive temperature from one or more thermometers. After that CPS sends signal to turn on/off heater switcher.

So my question is how/where to start?

4 posts / 0 new
Last post
Offline
Last seen: 1 year 9 months ago
Joined: 07/12/2012
Posts: 51
Copy of samples from sequence in Java API

This question has to do with general programming and concurrency, but since the Java API is an exception

from the other languages in the RTI API, it is a valid question for this  forum I think. According to a post (https://community.rti.com/examples/using-sequences), the Java API does not support deep copy of objects from

sequences. For example the C++ API support copy of object without using Loanable sequences.

Organization:
Keywords:
2 posts / 0 new
Last post
Offline
Last seen: 2 years 7 months ago
Joined: 05/09/2017
Posts: 1
RTI DDS on Raspberry Pi

Hello all,

I am currently setting up my raspberry pi to run some RTI DDS applications, and I am interested in coding in Java.

I have gone through the HOWTO page here: https://community.rti.com/content/forum-topic/howto-run-rti-connext-dds-raspberry-pi

However, I think there is a missing section which is important if you want to run java applications which is section: 6.2.3

 

I noticed in the explanation of how to run the java example, that after copying the example using: 

4 posts / 0 new
Last post
Offline
Last seen: 2 years 8 months ago
Joined: 03/22/2017
Posts: 2
Receiving DDS messages in Java

I am new to DDS, and have a task to integrate a Java application with a C++ application that runs on a different PC and has already written that uses DDS. We have a license for the C++ application. I have several questions about this:

Keywords:
3 posts / 0 new
Last post
Offline
Last seen: 3 years 3 months ago
Joined: 08/22/2016
Posts: 2
TypeSupport.serialize causing ArrayIndexOutOfBoundsException

I have an idl file that defines a char[] in a struct as follows:

struct baseDataHdr_S {
octet paramId[16];
short miscHdrBytes;
};

The autogenerated Java code looks correct, but when sending the Topic I get an error:

java.lang.ArrayIndexOutOfBoundsException: 8
at ...baseDataHdr_STypeSupport.serialize

Looking in the java code the char[] is correctly defined as a char[16], so I'm stumped why indexing char[8] during serialization would cause this exception.

2 posts / 0 new
Last post
Offline
Last seen: 3 years 5 months ago
Joined: 06/23/2016
Posts: 1
Error while running java example of Connect_dds

I am trying to run hello_simple example implementation in Java, I am facing an issue as the application is throwing the following exception 

Exception in thread "main" java.lang.UnsatisfiedLinkError: com.rti.dds.topic.builtin.ServiceRequestTypeSupport.DDS_SERVICE_REQUEST_TOPIC_NAME()Ljava/lang/String;

I am unable to find topics similar to this exception, I would be greatful if anyone can help

Full Trace:

3 posts / 0 new
Last post
rip
rip's picture
Offline
Last seen: 2 weeks 1 hour ago
Joined: 04/06/2012
Posts: 318
Pi w/Jessie and running Java apps

Anyone with experience running DDS with Java on Jessie on Raspberry Pi?

I can't tell if this is a unix problem, Java problem, config problem, or a DDS problem.

uname -a reports:  Linux ... 4.1.13+ ... armv6l GNU/Linux.  Is Jessie the correct kernel for the 5.2.0 Raspberry Pi build available in the Downloads?  Should I downgrade to the older Wheezy install?  The tools (spy, ping) work without issue, however they are prelinked.

Java version on the Pi is 1.8.0-b132

Env variables set by the rti-supplied configuration (.bash) script.

Organization:
Keywords:
Subscribe to RSS - Java