MCA Java bindings crashes

Skip to first unread message

Hikmet Emre Kaya

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

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 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

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. 


Hikmet Emre Kaya

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
0 new messages