Stack overflow errors on remote connectors (Data Virtualization)

You get a stack overflow error when browsing data on a remote data source.

Symptoms

You are browsing files on a remote data source and you get the following error:
Java exception: ':java.lang.StackOverflowError'.

Causes

You are browsing a large directory on a remote data source, which causes stack overflow errors.

Resolving the problem

To solve this issue, increase the Java stack size per thread on the remote connector:
  • Linux® and Mac systems:
    1. Add the following line to dv_endpoint.sh script that you use to install the remote connector. Add the line after the START_PORT definition line.
      export JAVA_OPTS="-Xms256m -Xss4m"

      For more information on the dv_endpoint.sh script, see Installing a remote connector.

    2. Run the following command to stop the remote connector:
      ./sysroot/killGaianServers.sh
    3. Run the following command to start the remote connector:
      nohup ./datavirtualization_start.sh

    The remote connector now runs with a 4M stack size per thread.

  • Microsoft Windows:
    1. Add the following line to dv_endpoint.bat script that you use to install the remote connector. Add the line after the START_PORT definition line.
      set JAVA_OPTS=-Xms256m -Xss4m

      For more information on the dv_endpoint script, see Installing a remote connector.

    2. Stop the remote connector by closing the command console on Windows.
    3. Run the dv_endpoint.bat file to start the remote connector.