While trying to execute the following code, call to javax.resource.Interaction.execute(iSpec, iRec, oRec) with its parameters depicted as the below raises java.lang.OutOfMemoryError: java heap space. What would be suggested by this error?
ix = con.createInteraction();
iSpec.setArgument(0, com.microfocus.cobol.RuntimeProperties.By_REFERENCE);
javax.resource.cci.IndexedRecord iRec = rf.createIndexedRecord("some_name");
javax.resource.cci.IndexedRecord oRec = rf.createIndexedRecord("some_name");
Pointer ptr = new Pointer("some text", "MS932");
iRec.add(ptr);
ix.execute(iSpec, iRec, oRec); // -> java.lang.OutOfMemoryError: java heap space is thrown upon execution.