Uploaded image for project: 'Solution Center'
  1. Solution Center
  2. SOL-549

How to get a java stacktrace for EXAplus

    XMLWordPrintable

    Details

    • Type: How To
    • Status: Published
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: EXAplus
    • Labels:
      None
    • Solution:
      Hide

      Preface

      In rare cases, to debug a problem Exasol will require detailed information regarding the status of the EXAplus client. As EXAplus is a java application, that information can be supplied as a java stacktrace using oracle's java SDK.

      Requirements

      Java SDK must be installed on the machine where EXAplus was started. The SDK can be downloaded here: http://www.oracle.com/technetwork/java/javase/downloads/2133151

      Guide

      While the following examples and paths were generated on the Windows (tm) operating system, the process does also apply to MacOSX and linux systems.

      1 - Open a console

      Any console will do, depending on your operating system.

      2 - Change into the 'bin' directory of the JDK installation:

      cd "C:\Program Files\Java\jdk1.8.0_20\bin"
      

      Please note:

      • The actual path may vary by operating system, installation and java version.
      • This is only required if the bin folder is not included in your PATH variable.

      3 - Determine the PID of exaplus

      This can be done with the system's process monitor (windows task manager) or with the jps program that is part of the JDK:

      Here, we have two running java programs: jps itself and something named Program. The latter is exaplus, with PID 2252.

      4 - Generate the stacktrace

      The actual stacktrace is produced with jstack from the java SDK:

      jstack's output can also be redirected into a file:

      5 - Attach the generated stacktrace to your ticket with Exasol.

      Show
      Preface In rare cases, to debug a problem Exasol will require detailed information regarding the status of the EXAplus client. As EXAplus is a java application, that information can be supplied as a java stacktrace using oracle's java SDK. Requirements Java SDK must be installed on the machine where EXAplus was started. The SDK can be downloaded here: http://www.oracle.com/technetwork/java/javase/downloads/2133151 Guide While the following examples and paths were generated on the Windows (tm) operating system, the process does also apply to MacOSX and linux systems. 1 - Open a console Any console will do, depending on your operating system. 2 - Change into the 'bin' directory of the JDK installation: cd "C:\Program Files\Java\jdk1.8.0_20\bin" Please note: The actual path may vary by operating system, installation and java version. This is only required if the bin folder is not included in your PATH variable. 3 - Determine the PID of exaplus This can be done with the system's process monitor (windows task manager) or with the jps program that is part of the JDK: Here, we have two running java programs: jps itself and something named Program . The latter is exaplus, with PID 2252. 4 - Generate the stacktrace The actual stacktrace is produced with jstack from the java SDK: jstack's output can also be redirected into a file: 5 - Attach the generated stacktrace to your ticket with Exasol.
    • Category 1:
      Clients, Interfaces & Drivers - EXAplus

      Attachments

      1. image1.png
        11 kB
      2. image2.png
        87 kB
      3. image3.png
        6 kB

        Activity

          People

          • Assignee:
            CaptainEXA Captain EXASOL
            Reporter:
            CaptainEXA Captain EXASOL
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: