NoSuchFieldError INT using 6.1.1 java generated messages

4 posts / 0 new
Last post
Offline
Last seen: 1 year 4 weeks ago
Joined: 03/21/2023
Posts: 2
NoSuchFieldError INT using 6.1.1 java generated messages

Currently migrating from rhel6 32 bit operating environment to rhel8 64 bit oe.  This involves moving from rti dds 5.1.1.37 to 6.1.1. I can generate the java interface from the idl and build agains that jar but when I go to run I get java.lang.NoSuchFieldError INT in the generated type support classes. I have also gotten the same error but with DOUBLE as well. The stack traces don't seem to helpful as I don't even think the line numbers match up and I can't locate any fields named INT or DOUBLE. Am I missing something when I generate the interface or when I try and use it?

Howard's picture
Offline
Last seen: 5 days 5 hours ago
Joined: 11/29/2012
Posts: 567

Are you sure that the .jar file being loaded is from 6.1.1?  Also, does your ld_library_path have the correct version of the Connext libraries on it?

Also, did you regenerate the Java type support classes from the .idl files using rtiddsgen from 6.1.1.?

Offline
Last seen: 1 year 4 weeks ago
Joined: 03/21/2023
Posts: 2

It looks like the wrong jars were being pulled in. I was in fact utilizing 5.1 nddsjavad and the old 5.1 generated interface.

Howard's picture
Offline
Last seen: 5 days 5 hours ago
Joined: 11/29/2012
Posts: 567

Glad you were able to confirm and fix the issue!