PowerBuilder error handling  Chapter 5: Common Error Messages

Chapter 4: Exception Handling

Unhandled PowerBuilder exceptions

If an unhandled fatal exception is raised by a PowerBuilder component running in EAServer, it can cause the PBVM to become unstable, resulting in unpredictable behavior and unforeseen problems with the PBVM and EAServer. This scenario is unlikely, but possible. Rather than allow EAServer to continue running in an unstable state, you may want to restart or shut down the server.

The PBOnFatalError system environment variable allows you to specify the action you want EAServer to take when an unhandled exception is raised in the PBVM. The PBOnFatalError variable is supported in PowerBuilder 8.0.4 (Build 10501) and PowerBuilder 9.0.1 (Build 6533) maintenance releases, and later. These are the values you can assign to the PBOnFatalError variable:

Value

Resulting behavior when a fatal error occurs in a PowerBuilder component

continue

EAServer continues running, and a CORBA_TRANSACTION_ROLLEDBACK exception is thrown.

restart

EAServer restarts automatically.

shutdown

EAServer shuts down.

If the PBOnFatalError variable is not set, the default value is “continue.”





Copyright © 2005. Sybase Inc. All rights reserved. Chapter 5: Common Error Messages

View this book as PDF