Package org.jacorb.poa.except

Examples of org.jacorb.poa.except.POAInternalError


     */

    public Servant getServant()
    {
        if (!start)
            throw new POAInternalError("error: RequestProcessor not started (getServant)");
        return servant;
    }
View Full Code Here


            {
                byte[] result = IdUtil.extract(object_key, 0, i);
                return unmaskStr( new String(result) );
            }
        }
        throw new POAInternalError("error extracting impl name from object_key: "+
                                   convert(object_key));
    }
View Full Code Here

                byte[] result =
                    IdUtil.extract(object_key, i, object_key.length - i);
                return unmaskId(result);
            }
        }
        throw new POAInternalError("error extracting oid from object_key: "+
                                   convert(object_key));
    }
View Full Code Here

                break;
            }
        }
        if (begin > end)
        {
            throw new POAInternalError("error extracting poa name from object_key: "+convert(object_key));
        }
        if (begin == end)
        {
            return "";
        }
View Full Code Here

                    result[altered] = POAConstants.OBJECT_KEY_SEP_BYTE;

                }
                else
                {
                    throw new POAInternalError("error: forbidden byte sequence \""
                                               +POAConstants.MASK_BYTE+id[i+1]+"\" (unmaskId)");
                }
                i++;

            }
View Full Code Here

        pool.copyInto(rps);
        for (int i=0; i<rps.length; i++)
        {
            if (rps[i].isActive())
            {
                throw new POAInternalError("error: request processor is active (RequestProcessorPM.destroy)");
            }

            pool.removeElement(rps[i]);
            unused_size--;
            current._removeContext(rps[i]);
View Full Code Here

    }

    protected byte[] getObjectId(Servant servant)
    {
        if (!unique)
            throw new POAInternalError("error: not UNIQUE_ID policy (getObjectId)");

        ByteArrayKey oidbak = (ByteArrayKey)servantMap.get(servant);

        if (oidbak != null)
            return oidbak.getBytes();
View Full Code Here

                {
                    add(oid, servant);
                }
                catch (ObjectAlreadyActive e)
                {
                    throw new POAInternalError("error: object already active (AOM.incarnate)");
                }
                catch (ServantAlreadyActive e)
                {
                    throw new POAInternalError("error: servant already active (AOM.incarnate)");
                }
            }
        }

        ((org.jacorb.poa.POA)poa).getORB().set_delegate(servant);
View Full Code Here

            {
                byte[] result = IdUtil.extract(object_key, 0, i);
                return unmaskStr( new String(result) );
            }
        }
        throw new POAInternalError("error extracting impl name from object_key: "+
                                   convert(object_key));
    }
View Full Code Here

                byte[] result =
                    IdUtil.extract(object_key, i, object_key.length - i);
                return unmaskId(result);
            }
        }
        throw new POAInternalError("error extracting oid from object_key: "+
                                   convert(object_key));
    }
View Full Code Here

TOP

Related Classes of org.jacorb.poa.except.POAInternalError

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.