org.omg.CORBA
Class NO_RESOURCES

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.omg.CORBA.SystemException
                  extended by org.omg.CORBA.NO_RESOURCES
All Implemented Interfaces:
Serializable

public final class NO_RESOURCES
extends SystemException
implements Serializable

Means that the ORB has reached some general resource limitation like maximal number of the opened connections. In GNU Classpath, this exception may have the following minor codes:

Hex Dec Minor Name Case
47430014 1195573268 20 Ports No more free ports available for the new objects. The port control, if turned on, prevents malicios client from knocking the server out by suddenly requiring to allocate a very large number of objects.
47430015 1195573269 21 Threads Too many parallel calls (too many parallel threads). The thread control, if turned on, prevents malicios client from knocking the server out by suddenly submitting a very large number of requests.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.omg.CORBA.SystemException
completed, minor
 
Constructor Summary
NO_RESOURCES()
          Creates NO_RESOURCES with the default minor code of 0 and a completion state COMPLETED_NO.
NO_RESOURCES(int a_minor, CompletionStatus a_completed)
          Creates a NO_RESOURCES exception with the specified minor code and completion status.
NO_RESOURCES(String message)
          Creates a NO_RESOURCES with the default minor code of 0, completion state COMPLETED_NO and the given explaining message.
NO_RESOURCES(String a_reason, int a_minor, CompletionStatus a_completed)
          Created NO_RESOURCES exception, providing full information.
 
Method Summary
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NO_RESOURCES

public NO_RESOURCES(String message)
Creates a NO_RESOURCES with the default minor code of 0, completion state COMPLETED_NO and the given explaining message.

Parameters:
message - the explaining message.

NO_RESOURCES

public NO_RESOURCES()
Creates NO_RESOURCES with the default minor code of 0 and a completion state COMPLETED_NO.


NO_RESOURCES

public NO_RESOURCES(int a_minor,
                    CompletionStatus a_completed)
Creates a NO_RESOURCES exception with the specified minor code and completion status.

Parameters:
a_minor - additional error code.
a_completed - the method completion status.

NO_RESOURCES

public NO_RESOURCES(String a_reason,
                    int a_minor,
                    CompletionStatus a_completed)
Created NO_RESOURCES exception, providing full information.

Parameters:
a_reason - explaining message.
a_minor - additional error code (the "minor").
a_completed - the method completion status.