Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved


Chapter 16 Exception : tibems_status

tibems_status
Type
Purpose
Functions return status codes to indicate return conditions.
 
Table 15 Status Codes
For example, tibemsSession_Commit indicates this status when the session is non-transactional.
Setting a connection’s client ID to an invalid or duplicate value results in this exception. (A duplicate value is one that is already in use by another connection.)
tibemsd cannot locate the destination.
tibemsBytesMsg contains a stream of bytes. tibemsStreamMsg contains a stream of characters. If any of their read functions detects the end of a stream unexpectedly, it indicates this status.
The operation requires a server connection, but the program is not connected.
The server cannot create a topic or durable because the name is already in use. (Also applies to collisions with external subjects, such as Rendezvous.)
Cannot create a connection or transaction because the specified protocol does not exist.
The connection URL includes an invalid hostname, or an attempt to lookup the host address failed.
The server has exceeded the maximum number of licensed connections or hosts that it can service.
The function call is not permitted (for example, closing a connection within a callback).
Exception callback handler functions receive this code to indicate that the server has reconnected.
The most common syntax error is a prefix other than tibjmsnaming:// (or a misspelling).
2. A function that gets a message field or property value cannot find the specified item because the name is not bound in the message.
A datatype conversion failed while parsing a message (converting UTF-8 data to native datatypes).
A server queue or topic has exceeded its size limit, and cannot add a new message.
The function detected an invalid I/O source (such as a socket or file).
Failure during prepare or commit caused automatic rollback of a transaction. This type of rollback can occur during fault tolerance failover.
A transaction failed during two-phase commit; the program may attempt to commit it again.
When a session uses an XA transaction manager, the XA resource is the correct locus for all commit and rollback requests. Local commit or rollback calls are not permitted, and indicate this status.
The producer attempted to send a message immediately after a fault tolerance failover to another server. The new server has no record of the transaction.
Initialization of the tibems library failed. For example, this code could be generated if the library failed to allocate memory while building its basic structures.
SSL detected an X.509 certificate that is not yet valid; that is, the current date is before the first date for which the certificate becomes valid.
SSL detected an X.509 certificate that is no longer valid; that is, the current date is after the expiration date.
SSL lacks sufficient random data to complete an operation securely.
 

Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved