Hello Frank,
Does this error occur on the workbench when you run the transaction? What does the log file say?
StackOverflowError means that a recursive loop is running causing JVM to overflow. If it has anything to do with JMS you will not get anything on workbench. Everything will be logged in netweaver logs.
Regards,
Anushree