Enabling tests and simulations on JBoss

JBoss® can block Decision Runner from running tests and simulations.

About this task

If you run JBoss 8.1, you might get failures on test suites or simulations because Decision Runner is not running correctly:

java.io.InvalidClassException: filter status: REJECTED at java.base/java.io.ObjectInputStream.filterCheck()

JBoss applies a Java™ serialization filter that prevents Decision Runner from using Java serialization in certain cases. The filter is managed by a property that is written in the log file at server startup:

jdk.serialFilter = maxbytes=10485760;maxdepth=128;maxarray=100000;maxrefs=300000

You can modify or disable the serialization filter. The recommended solution is to disable the filter.

Procedure

To disable the filter:

  1. Open the JBoss configuration file:
    <JBboss home>/bin/init.d/jboss-eap.conf
  2. Add the following property to the file:
    DISABLE_JDK_SERIAL_FILTER=true
    export DISABLE_JDK_SERIAL_FILTER
  3. Restart the JBoss server.