MCA Java bindings crashes

10 views
Skip to first unread message

Hikmet Emre Kaya

unread,
Aug 23, 2022, 5:47:48 AM8/23/22
to COPASI User Forum
Hello;

I am trying to test the java bindings example (no 10) for MCA in my app, but it crashes. I was basically trying to get an FCC table after running std st analysis. The error log seems to indicate the get() method of the ArrayInterface, but I am not sure how to solve this.

Java_org_COPASI_COPASIJNI_CArrayInterface_1get_1_1SWIG_11+0x81

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j  org.COPASI.COPASIJNI.CArrayInterface_get__SWIG_1(JLorg/COPASI/CArrayInterface;II)D+0
j  org.COPASI.CArrayInterface.get(II)D+7

I would really appreciate some help. Thanks in advance.

Frank Bergmann

unread,
Aug 23, 2022, 6:41:54 AM8/23/22
to COPASI User Forum
I'm afraid we need more information: 

- which version of the java bindings are you using
- when you run example 10 outside of your application, does it have the same behavior? (i've just tested the java 64 bit bindings from the last release, and it seemed to be fine for a selection of sbml models)
- example #10 requires an sbml model, could you let us know which one you used?

my guess would be, that you try to address elements past the array boundaries, resulting in an exception. But i'm afraid of that the bits from the exception do not provide enough information. 

best
Frank

Hikmet Emre Kaya

unread,
Aug 23, 2022, 6:48:49 AM8/23/22
to COPASI User Forum
Hi Frank,

I actually solved the issue, I forgot to run the process method for the MCA method before trying to access the constants.
Reply all
Reply to author
Forward
0 new messages