Bug #1474

rsb matlab interface not fully working with newest MATLAB versions (R2012b and R2013a)

Added by C. Emmerich almost 8 years ago. Updated almost 6 years ago.

Status:NewStart date:04/23/2013
Priority:LowDue date:
Assignee:-% Done:

0%

Category:Matlab
Target version:-

Description

It seems, that with the newest Matlab versions R2012b and R2013a some underlying interfaces or mechanism concerning the builders of rst types have changed or are not working anymore. The result is that the following code

javaaddpath('/usr/share/java/protobuf-java.jar'); 

prefix = '/vol/flexirob/releases/x86_64-precise/';
javaaddpath([prefix 'share/java/rsb.jar']);
javaaddpath([prefix 'share/java/rsb.m.jar']);
javaaddpath([prefix 'share/java/rstsandbox.jar']);
javaaddpath([prefix 'share/java/rst.jar']);

rsb.matlab.ConverterRegistration.register();

builder = rsb.matlab.ProtobufUtils.getBuilder('rst.geometry.TranslationType','Translation');

crashes with the last line:
Java exception occurred:
java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at rsb.matlab.ProtobufUtils.getBuilder(ProtobufUtils.java:42)
Caused by: java.lang.NoSuchFieldError: alwaysUseFieldBuilders
    at rst.geometry.TranslationType$Translation.access$500(TranslationType.java:26)
    at
        rst.geometry.TranslationType$Translation$Builder.maybeForceBuilderInitialization(TranslationType.java:259)
            at rst.geometry.TranslationType$Translation$Builder.<init>(TranslationType.java:251)
    at rst.geometry.TranslationType$Translation$Builder.create(TranslationType.java:263)
    at rst.geometry.TranslationType$Translation$Builder.access$300(TranslationType.java:236)
    at rst.geometry.TranslationType$Translation.newBuilder(TranslationType.java:223)
    ... 5 more

However, using MATLAB R2012a the above code works fine.

On my system, all three versions are running on precise-64bit with the same java version:

Java 1.6.0_17-b04 with Sun Microsystems Inc. Java HotSpot(TM) 64-Bit Server VM mixed mode

History

#1 Updated by J. Moringen almost 6 years ago

  • Category set to Matlab

Also available in: Atom PDF