Download Parallel Crystal Developers Manual
Transcript
Trouble Shooting the Simple Client
This section details some of the most common problems in programming a simple client.
Refer to the sample code from Example 2.1 on page 32.
Incorrect Host Name Declaration
Suppose you supplied an incorrect host name in the declaration of the PCREApplication
client variable.
For example, suppose you typed:
client = new PCREApplicationClient("bad-host name");
This statement will be executed correctly, but the subsequent call to Connect on line 3
will throw an exception and control will transfer to the handler at line 12.
This statement will then print the following line:
PCRE Gateway error: Connect: cannot connect client to Gateway
Service on host "bad-host name".
The error message indicates that an attempt to connect the client to the Gateway on the
nominated host failed.
This error message usually indicates one of a number of things, including:
•= The Report Server host name you supplied in the PCREApplication client
constructor call was invalid.
•= The host name was valid, but Parallel Crystal was not running on the Report Server
when the connection was attempted.
•= The Gateway wasn’t broadcasting its initial reference on the default or provided port.
•= There was some other communication problem.
Parallel Crystal Developer's Manual
Version 2.4 - Revised 5/27/00
35