Troubleshooting and Tips

This section lists some of the common problems you might face while working with the TL1 API. The solutions for the problems are also given.

 

Problem

Reason

Solution

Exception "Connection Already Established" is thrown.

The open() method in the TL1Session is invoked twice.

You cannot open a new session when the connection is already established. Please use the close() method before invoking the open() method.

Exception "Invalid Connection Parameters" is thrown

The Hashtable passed is either Null or contains wrong parameters.

Please check the parameters set in the Hashtable before opening the session.

Exception "Connection not Established" is thrown

The close() method in the TL1Session is invoked again after closing the session.

You cannot use the close() method when the session is not opened.

Exception "Ping unknown host" is thrown

The host specified does not exist in the network.

Please check if the specified host is alive and running.

Exception "Craft mode doesn't support syncSend" is thrown

You might have invoked the syncSend() method from the TL1Session after setting the communication mode to Craft.

You can use only the method send(byte[], false) in Craft mode.

Exception "Message not an instanceof Input Message" is thrown

You would have given a TL1Message which is not an instance of input message (Response, Acknowledgment or Autonomous) during syncSend or send operation.

The messages other than input message can be sent only using the send(byte[],false).

Exception "Invalid TL1Client Id" is thrown

The client ID passed to the send() method is either null or invalid.

You should not modify the client ID given by the addTL1Client() method.

Exception "Mode is in craft, Use send(byte[] , false)" is thrown

You might have the used the methods send(byte[]), send(TL1Message), send(byte[], true) in the Craft mode.

You can use only the method send(byte[], false) in Craft mode.

The setKeepAlive() method in the TL1Session returns false.

The argument TL1Message may not be a valid TL1 Input Message (or) interval set is lesser than zero (or) mode is set to Craft.

Please check the above reasons before calling the setKeepAlive() method.

 



Copyright © 1999-2003, AdventNet Inc. All Rights Reserved.