Stack overflow errors on remote connectors in Data Virtualization

You get a stack overflow error when you browse 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:
  • On Linux® and Mac systems, follow these steps.
    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"

      To learn more about 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 4 M stack size per thread.

  • On Microsoft Windows, follow these steps.
    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

      To learn more about the dv_endpoint script, see Installing a remote connector.

    2. Restart the remote connector by using the Microsoft Windows Services console (services.msc). For example, the service to restart is named DataVirtualizationService6414. Restart this service by using the Microsoft Windows Services console.