org.omg.CORBA

Class MARSHAL

Implemented Interfaces:
Serializable

public final class MARSHAL
extends SystemException
implements Serializable

Means that some request or reply from the network has a wrong size or is structurally invalid. In GNU Classpath, this exception may have the following minor codes (the high 20 bits being Classpath VMCID):
HexDecMinorNameCase
4743000111955732491GiopThe message being received is not a GIOP message. It does not start from the expected magic sequence byte[] { 'G', 'I', 'O', 'P' }.
4743000211955732502HeaderThe unexpected IOException while reading or writing the GIOP message header or the subsequent request or response header
4743000311955732513EOFThe data stream ended before reading all expected values from it. This usually means that the CORBA message is corrupted, but may also indicate that the server expects the remote method being invoked to have more or different parameters
4743000511955732535CDRThe unexpected IOException while reading or writing the data via Commond Data Representation stream
474300061195573254 6ValueThe unexpected IOException while reading or writing the Value type.
47430007 11955732557ForwardingThe unexpected IOException while handling request forwarding.
4743000811955732568Encapsulation The unexpected IOException while handling data encapsulation, tagged components, tagged profiles, etc.
4743000911955732579 AnyThe unexpected IOException while inserting or extracting data to/from the Any.
4743000a1195573258 10UserExceptionThe unexpected UserException in the context where it cannot be handled as such and must be converted to the SystemException.
4743000b119557325911InappropriateWhile the operation could formally be applied to the target, the OMG standard states that it is actually not applicable. For example, some CORBA objects like POA are always local and should not be passed to or returned from the remote side.
4743000c119557326012NegativeWhen reading data, it was discovered that size of the data structure like string, sequence or character is written as the negative number.
4743000e1195573262 14GraphReference to non-existing node in the data grapth while reading the value types.
4743000f119557326315BoxedUnexpected exception was thrown from the IDL type helper while handling the object of this type as a boxed value.
47430010119557326416InstantiationUnable to instantiate an value type object while reading it from the stream.
47430011119557326517ValueHeaderTagThe header tag of the value type being read from the CDR stream contains an unexpected value outside 0x7fffff00 .. 0x7fffffff and also not null and not an indirection.
47430012119557326618ValueHeaderFlagsThe header tag flags of the value type being read from the CDR stream make the invalid combination (for instance, 0x7fffff04).
47430013119557326719ClassCastThe value type class, written on the wire, is not compatible with the expected class, passed as a parameter to the InputStream.read_value.
47430014119557326820OffsetPositive or otherwise invalid indirection offset when reading the data graph of the value type.
47430015119557326921ChunksErrors while reading the chunked value type.
47430016119557327022UnsupportedValueNo means are provided to read or write this value type (not Streamable, not CustomMarshal, not Serializable, no factory, no helper.
47430017119557327123FactoryThe value factory, required for the operation being invoked, is not registered with this ORB.
47430018119557327224UnsupportedAddressingUnsupported object addressing method in GIOP request header.
47430019119557327325IORInvalid object reference (IOR).
4743001a119557327426TargetConversionProblems with converting between stubs, ties, interfaces and implementations.
4743001b119557327527ValueFieldsProblems with reading or writing the fields of the value type object
4743001c119557327628NonSerializableThe instance of the value type, passed using RMI over IIOP, is not serializable
See Also:
Serialized Form

Field Summary

Fields inherited from class org.omg.CORBA.SystemException

completed, minor

Constructor Summary

MARSHAL()
Creates MARSHAL with the default minor code of 0 and a completion state COMPLETED_NO.
MARSHAL(int minor_code, CompletionStatus is_completed)
Creates a MARSHAL exception with the specified minor code and completion status.
MARSHAL(String message)
Creates a MARSHAL with the default minor code of 0, completion state COMPLETED_NO and the given explaining message.
MARSHAL(String reason, int minor_code, CompletionStatus is_completed)
Created MARSHAL 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, extends Object> getClass, finalize, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Details

MARSHAL

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

MARSHAL

public MARSHAL(int minor_code,
               CompletionStatus is_completed)
Creates a MARSHAL exception with the specified minor code and completion status.
Parameters:
minor_code - additional error code.
is_completed - the method completion status.

MARSHAL

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

MARSHAL

public MARSHAL(String reason,
               int minor_code,
               CompletionStatus is_completed)
Created MARSHAL exception, providing full information.
Parameters:
reason - explaining message.
minor_code - additional error code (the "minor").
is_completed - the method completion status.

MARSHAL.java -- Copyright (C) 2005, 2006 Free Software Foundation, Inc. This file is part of GNU Classpath. GNU Classpath is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. GNU Classpath 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 for more details. You should have received a copy of the GNU General Public License along with GNU Classpath; see the file COPYING. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. Linking this library statically or dynamically with other modules is making a combined work based on this library. Thus, the terms and conditions of the GNU General Public License cover the whole combination. As a special exception, the copyright holders of this library give you permission to link this library with independent modules to produce an executable, regardless of the license terms of these independent modules, and to copy and distribute the resulting executable under terms of your choice, provided that you also meet, for each linked independent module, the terms and conditions of the license of that module. An independent module is a module which is not derived from or based on this library. If you modify this library, you may extend this exception to your version of the library, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version.