alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

Java example source code file (Interceptors.mc)

This example Java source code file (Interceptors.mc) is included in the alvinalexander.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Learn more about this Java project at its project page.

Java - Java tags/keywords

assertion, can\'t, exception, fine, general, gnu, interceptor, license, oracle, picurrent, public, this, unknown, warning

The Interceptors.mc Java example source code

;
; Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights reserved.
; DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
;
; This code is free software; you can redistribute it and/or modify it
; under the terms of the GNU General Public License version 2 only, as
; published by the Free Software Foundation.  Oracle designates this
; particular file as subject to the "Classpath" exception as provided
; by Oracle in the LICENSE file that accompanied this code.
;
; This code is distributed in the hope that it will be useful, but WITHOUT
; ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
; FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
; version 2 for more details (a copy is included in the LICENSE file that
; accompanied this code).
;
; You should have received a copy of the GNU General Public License version
; 2 along with this work; if not, write to the Free Software Foundation,
; Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
;
; Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
; or visit www.oracle.com if you need additional information or have any
; questions.
;
("com.sun.corba.se.impl.logging" "InterceptorsSystemException" INTERCEPTORS
    (
	(BAD_PARAM
	    (TYPE_OUT_OF_RANGE	     1 WARNING "Interceptor type {0} is out of range")
	    (NAME_NULL		     2 WARNING "Interceptor's name is null: use empty string for anonymous interceptors"))
	(BAD_INV_ORDER 
	    (RIR_INVALID_PRE_INIT    1 WARNING "resolve_initial_reference is invalid during pre_init")
	    (BAD_STATE1		     2 WARNING "Expected state {0}, but current state is {1}")
	    (BAD_STATE2		     3 WARNING "Expected state {0} or {1}, but current state is {2}"))
	(COMM_FAILURE 
	    (IOEXCEPTION_DURING_CANCEL_REQUEST 1 WARNING "IOException during cancel request"))
	(INTERNAL 
	    (EXCEPTION_WAS_NULL      1 WARNING "Exception was null")
	    (OBJECT_HAS_NO_DELEGATE  2 WARNING "Object has no delegate")
	    (DELEGATE_NOT_CLIENTSUB  3 WARNING "Delegate was not a ClientRequestDispatcher")
	    (OBJECT_NOT_OBJECTIMPL   4 WARNING "Object is not an ObjectImpl")
	    (EXCEPTION_INVALID       5 WARNING "Assertion failed: Interceptor set exception to UserException or ApplicationException")
	    (REPLY_STATUS_NOT_INIT    6 WARNING "Assertion failed: Reply status is initialized but not SYSTEM_EXCEPTION or LOCATION_FORWARD")
	    (EXCEPTION_IN_ARGUMENTS  7 WARNING "Exception in arguments")
	    (EXCEPTION_IN_EXCEPTIONS 8 WARNING "Exception in exceptions")
	    (EXCEPTION_IN_CONTEXTS   9 WARNING "Exception in contexts")
	    (EXCEPTION_WAS_NULL_2    10 WARNING "Another exception was null")
	    (SERVANT_INVALID         11 WARNING "Servant invalid")
	    (CANT_POP_ONLY_PICURRENT 12 WARNING "Can't pop only PICurrent")
	    (CANT_POP_ONLY_CURRENT_2 13 WARNING "Can't pop another PICurrent")
	    (PI_DSI_RESULT_IS_NULL   14 WARNING "DSI result is null")
	    (PI_DII_RESULT_IS_NULL   15 WARNING "DII result is null")
	    (EXCEPTION_UNAVAILABLE   16 WARNING "Exception is unavailable")
	    (CLIENT_INFO_STACK_NULL  17 WARNING "Assertion failed: client request info stack is null")
	    (SERVER_INFO_STACK_NULL  18 WARNING "Assertion failed: Server request info stack is null")
	    (MARK_AND_RESET_FAILED   19 WARNING "Mark and reset failed")
	    (SLOT_TABLE_INVARIANT    20 WARNING "currentIndex > tableContainer.size(): {0} > {1}")
	    (INTERCEPTOR_LIST_LOCKED  21 WARNING "InterceptorList is locked")
	    (SORT_SIZE_MISMATCH      22 WARNING "Invariant: sorted size + unsorted size == total size was violated"))
	(NO_IMPLEMENT 
	    (PI_ORB_NOT_POLICY_BASED 1 WARNING "Policies not implemented"))
	(OBJECT_NOT_EXIST
	    (ORBINITINFO_INVALID     1 FINE "ORBInitInfo object is only valid during ORB_init"))
	(UNKNOWN
	    (UNKNOWN_REQUEST_INVOKE  
	     1 FINE "Unknown request invocation error"))
	))

;;; End of file.

Other Java examples (source code examples)

Here is a short list of links related to this Java Interceptors.mc source code file:

... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.