Package org.omg.CORBA

Examples of org.omg.CORBA.INTERNAL


        {
           return create_input_stream().read_wstring();
        }
        else
        {
            throw new INTERNAL("Encountered unexpected type of value: " +
                value.getClass());
        }
    }
View Full Code Here


                return inputStream.read_fixed(typeCode.fixed_digits(), typeCode.fixed_scale());
            }
            catch(BadKind e)
            {
                // shouldn't happen due to initial check above
                throw new INTERNAL("should not happen");
            }
            finally
            {
                inputStream.close();
            }
        }
        else
        {
            throw new INTERNAL("Encountered unexpected type of value: " +
                value.getClass());
        }
    }
View Full Code Here

                Field field = valueClass.getDeclaredField("value");
                return (org.omg.CORBA.Object) field.get(value);
            }
            catch(Exception e)
            {
                throw new INTERNAL(
                    "Failed to retrieve value from Holder via reflection: " +
                    e);
            }
        }
        else if (value instanceof CDROutputStream)
        {
           return create_input_stream().read_Object();
        }
        else
        {
            throw new INTERNAL("Encountered unexpected type of value: " +
                value.getClass());
        }
    }
View Full Code Here

                Field field = valueClass.getDeclaredField("value");
                return (Serializable) field.get(value);
            }
            catch(Exception e)
            {
                throw new INTERNAL(
                    "Failed to retrieve value from Holder via reflection: " +
                    e);
            }
        }
        else
        {
            throw new INTERNAL("Encountered unexpected type of value: " +
                value.getClass());
        }
    }
View Full Code Here

                    java.math.BigDecimal fixed = ((CDRInputStream)input).read_fixed(type.fixed_digits(), type.fixed_scale());
                    insert_fixed( fixed, type);
                }
                catch( org.omg.CORBA.TypeCodePackage.BadKind bk )
                {
                    throw new INTERNAL("should never happen");
                }
                break;
            }
            case TCKind._tk_value:      // 29
            case TCKind._tk_value_box:  // 30
View Full Code Here

     */
    private void checkStreamClass (org.omg.CORBA.portable.OutputStream stream)
    {
        if ( ! (stream instanceof CDROutputStream))
        {
            throw new INTERNAL
            (
                "Output class not CDROutputStream " +
                stream.getClass().getName()
            );
        }
View Full Code Here

            digits = tc.fixed_digits();
            scale = tc.fixed_scale();
        }
        catch( Exception e )
        {
            throw new INTERNAL(e.toString());
        }
    }
View Full Code Here

                }
            }

            if( tmp_poa == null )
            {
                throw new INTERNAL("Request POA null!");
            }

            /* hand over to the POA */
            tmp_poa._invoke( request );

View Full Code Here

        {
            result.reg = RegistrationHelper.narrow( orb.resolve_initial_references("ImplementationRepository"));
        }
        catch( org.omg.CORBA.ORBPackage.InvalidName e)
        {
            throw new INTERNAL("unable to resolve ImplementationRepository: " + e.toString());
        }

        boolean non_exist = true;
        if (result.reg != null)
        {
            try
            {
                non_exist = result.reg._non_existent();
            }
            catch (org.omg.CORBA.SystemException e)
            {
                non_exist = true;
            }
        }

        if (non_exist)
        {
            throw new INTERNAL("Unable to resolve reference to ImR");
        }
        return result;
    }
View Full Code Here

                         ((IIOPAddress)address).getHostname(),
                         ((IIOPAddress)address).getPort());
        }
        else
        {
            throw new INTERNAL("IMR only supports IIOP based POAs");
        }
    }
View Full Code Here

TOP

Related Classes of org.omg.CORBA.INTERNAL

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.