Previous Topic: Save the ReportCenter Java Task JCL

Next Topic: Check the Timeframe and Prompt Generator Services


Start the ReportCenter Java Task

Start the ReportCenter Java Task from the MVS console. Be aware that this started task runs in the USS environment and may generate several spawned tasks.

What to Look For

Consider the following:

Common Problems

For most ReportCenter Java Task problems, you need to look for further error details. Depending on the nature of the problem, error messages can appear in some or all the following locations:

Note: The activity log of the region does not contain any information from the ReportCenter Java Task. The region and the task are in separate address spaces.

Task Fails with JCL Error

The most frequent causes of JCL errors are the following:

Task Fails with MVS Abend

This happens very infrequently, usually caused by underlying error conditions in the MVS software components such as LE, JVM, USS, DBMS, or security system.

Task Terminates with No External Error

The most frequent causes of the ReportCenter Java Task failing include the following. These are usually indicated in the ReportCenter Java Task log.

Class not found

Review the specification of the SMP/E target library directory, the database JDBC directory, and all class file names. ReportCenter specifies its Java class path explicitly at runtime with the -cp option. It does not set or use the CLASSPATH environment variable. To see the directories and files in the class path, browse the generated Adaptor.bat file.

System class not found may indicate an error with the JVM implementation. Verify the correct installation and implementation of your mainframe Java product.

ClassNotFoundException indicates that the class is not found at runtime.

NoClassDefFoundError indicates that the class is found at runtime; however, the class imports another class, which, while present at compile time, is not found at runtime.

User ID not authorized

If the associated user ID is not defined correctly to your security system, errors or other failures can result.

Unknown host exception error

A Java getLocalHost function fails to return the IP address of the local host, as indicated by a message similar to the following in the ReportCenter Java Task log:

Adaptor initialisation failed with exception java.net.UnknownHostException ?hostname

This often indicates problems with the name server setup. Creating or updating the /etc/hosts file with the IP address and name of the local host usually corrects this problem.

ReportCenter Java Task terminates

Indicated by a message similar to the following in the ReportCenter Java Task log:

*****************************************
Java framework terminating due to error: error details
Please correct the condition and restart.
*****************************************

The ReportCenter Java Task terminates when it detects a fatal condition that stops it doing any useful processing. Usually, these are database-related conditions. ReportCenter terminates to avoid wasting resources on repeated and unsuccessful database connection attempts. Following are some common terminal conditions. Rectify the condition, and start the task again.

USS Commands

A few of the most useful commands for ReportCenter problem diagnosis are described here.

Most UNIX shell commands are accepted. Useful commands include the following:

Note: You may need changes to your TSO user ID or profile to access these commands; if so, contact your systems programmer.

obrowse Command

Use this command to browse an HFS file.

This command has the following format:

obrowse pathname/file

Example: obrowse Command

obrowse /?ics_prefix2/nm/reporter/wr76/usr/adaptor/Adaptor.ini

ishell Command

Use this command to display a selection list of the objects in a directory. You can enter Browse, Edit, List, and other commands next to an object.

This command has the following format:

ishell directory-pathname

Example: ishell Command

To see how many logs files there are and select one for browsing, enter the following command:

ishell /u/users/ca/nm/reporter/wr76/usr/logs

Example: ishell Command

To see the Java Task control and output files, enter this command:

ishell /u/users/ca/nm/reporter/wr76/usr/adaptor                                                           

omvs Command

Use this command to invoke the shell command line interface.

This command has the following format:

omvs

Browse the ReportCenter Java Task Log

You can browse the log by using WebCenter or USS.

To browse the Log using WebCenter, select ReportCenter, Java Task Log from the WebCenter Menu. For space reasons, this shows only the most recent entries in the log.

To browse the log using USS, enter the following command from TSO or OMVS:

obrowse /?ics_prefix3/nm/reporter/wr76/usr/logs/Adaptor001.log

obrowse has the advantage of displaying the entire log file, and being more easily searchable.

Notes: