public org.omg.CORBA.Object resolve(NameComponent[] nc) throws NotFound, CannotProceed, InvalidName { if (this.destroyed) throw new CannotProceed(); if (nc == null || nc.length == 0) throw new InvalidName(); Name n = new Name(nc[0]); if (nc.length > 1) { org.omg.CORBA.Object next_context = (org.omg.CORBA.Object) this.contexts.get(n); if ((next_context == null) || (isDead(next_context))) throw new NotFound(NotFoundReason.missing_node, nc); NameComponent[] nc_prime = new NameComponent[nc.length - 1]; System.arraycopy(nc, 1, nc_prime, 0, nc_prime.length); // try first to call the context implementation object directly. String contextOID = this.getObjectOID(next_context); CorbaNamingContext jbossContext = (contextOID == null ? null : contextImpls.get(contextOID)); if (jbossContext != null) return jbossContext.resolve(nc_prime); else return NamingContextExtHelper.narrow(next_context).resolve(nc_prime); } else { org.omg.CORBA.Object result = (org.omg.CORBA.Object) this.contexts.get(n); if (result == null) result = (org.omg.CORBA.Object) this.names.get(n); if (result == null) throw new NotFound(NotFoundReason.missing_node, n.components()); if (!noPing && isDead(result)) throw new NotFound(NotFoundReason.missing_node, n.components()); return result; } }
} else { IIOPLogger.ROOT_LOGGER.failedToUnbindObject(n); throw new NotFound(NotFoundReason.not_context, n.components());
throw new NotFound(NotFoundReason.not_object, new NameComponent[]{nb});
throw new NotFound(NotFoundReason.not_context, new NameComponent[]{nb});
throw new NotFound(NotFoundReason.missing_node, new NameComponent[] {name}); throw new NotFound(NotFoundReason.not_context, new NameComponent[] {name}); return NamingContextHelper.narrow(resolvedReference); } catch (org.omg.CORBA.BAD_PARAM ex) { throw new NotFound(NotFoundReason.not_context, new NameComponent[] {name});
/** * Resolve a name to a context object stored that has * already been stored in this context. Throws an exception * if the name cannot be resolved or if the resolved * object is not a naming context. * * @param name The target name. * * @return The resolved NamingContext object. * @exception org.omg.CosNaming.NamingContextPackage.NotFound */ protected synchronized NamingContext resolveContext(NameComponent name) throws org.omg.CosNaming.NamingContextPackage.NotFound { BindingTypeHolder type = new BindingTypeHolder(); // Resolve this to an object. We must be able to resolve this. org.omg.CORBA.Object resolvedReference = resolveObject(name, type); if (resolvedReference == null) { throw new NotFound(NotFoundReason.missing_node, new NameComponent[] { name }); } // it has to resolve to a naming context if (type.value.value() != BindingType._ncontext) { throw new NotFound(NotFoundReason.not_context, new NameComponent[] { name }); } // in theory, this is a naming context. Narrow it an return. Any // errors just become a NotFound exception try { return NamingContextHelper.narrow(resolvedReference); } catch (org.omg.CORBA.BAD_PARAM ex) { throw new NotFound(NotFoundReason.not_context, new NameComponent[] { name }); } }
public static org.omg.CosNaming.NamingContextPackage.NotFound read (org.omg.CORBA.portable.InputStream istream) { org.omg.CosNaming.NamingContextPackage.NotFound value = new org.omg.CosNaming.NamingContextPackage.NotFound (); // read and discard the repository ID istream.read_string (); value.why = org.omg.CosNaming.NamingContextPackage.NotFoundReasonHelper.read (istream); value.rest_of_name = org.omg.CosNaming.NameHelper.read (istream); return value; }
public static org.omg.CosNaming.NamingContextPackage.NotFound read (org.omg.CORBA.portable.InputStream istream) { org.omg.CosNaming.NamingContextPackage.NotFound value = new org.omg.CosNaming.NamingContextPackage.NotFound (); // read and discard the repository ID istream.read_string (); value.why = org.omg.CosNaming.NamingContextPackage.NotFoundReasonHelper.read (istream); value.rest_of_name = org.omg.CosNaming.NameHelper.read (istream); return value; }
public static org.omg.CosNaming.NamingContextPackage.NotFound read (org.omg.CORBA.portable.InputStream istream) { org.omg.CosNaming.NamingContextPackage.NotFound value = new org.omg.CosNaming.NamingContextPackage.NotFound (); // read and discard the repository ID istream.read_string (); value.why = org.omg.CosNaming.NamingContextPackage.NotFoundReasonHelper.read (istream); value.rest_of_name = org.omg.CosNaming.NameHelper.read (istream); return value; }
public static org.omg.CosNaming.NamingContextPackage.NotFound read (final org.omg.CORBA.portable.InputStream in) { String id = in.read_string(); if (!id.equals(id())) throw new org.omg.CORBA.MARSHAL("wrong id: " + id); org.omg.CosNaming.NamingContextPackage.NotFoundReason x0; x0=org.omg.CosNaming.NamingContextPackage.NotFoundReasonHelper.read(in); org.omg.CosNaming.NameComponent[] x1; x1 = org.omg.CosNaming.NameHelper.read(in); final org.omg.CosNaming.NamingContextPackage.NotFound result = new org.omg.CosNaming.NamingContextPackage.NotFound(id, x0, x1); return result; } public static void write (final org.omg.CORBA.portable.OutputStream out, final org.omg.CosNaming.NamingContextPackage.NotFound s)
public static org.omg.CosNaming.NamingContextPackage.NotFound read (final org.omg.CORBA.portable.InputStream in) { String id = in.read_string(); if (!id.equals(id())) throw new org.omg.CORBA.MARSHAL("wrong id: " + id); org.omg.CosNaming.NamingContextPackage.NotFoundReason x0; x0=org.omg.CosNaming.NamingContextPackage.NotFoundReasonHelper.read(in); org.omg.CosNaming.NameComponent[] x1; x1 = org.omg.CosNaming.NameHelper.read(in); final org.omg.CosNaming.NamingContextPackage.NotFound result = new org.omg.CosNaming.NamingContextPackage.NotFound(id, x0, x1); return result; } public static void write (final org.omg.CORBA.portable.OutputStream out, final org.omg.CosNaming.NamingContextPackage.NotFound s)
public org.omg.CORBA.Object resolve(NameComponent[] nc) throws NotFound, CannotProceed, InvalidName { if (this.destroyed) throw new CannotProceed(); if (nc == null || nc.length == 0) throw new InvalidName(); Name n = new Name(nc[0]); if (nc.length > 1) { org.omg.CORBA.Object next_context = (org.omg.CORBA.Object) this.contexts.get(n); if ((next_context == null) || (isDead(next_context))) throw new NotFound(NotFoundReason.missing_node, nc); NameComponent[] nc_prime = new NameComponent[nc.length - 1]; System.arraycopy(nc, 1, nc_prime, 0, nc_prime.length); // try first to call the context implementation object directly. String contextOID = this.getObjectOID(next_context); CorbaNamingContext jbossContext = (contextOID == null ? null : contextImpls.get(contextOID)); if (jbossContext != null) return jbossContext.resolve(nc_prime); else return NamingContextExtHelper.narrow(next_context).resolve(nc_prime); } else { org.omg.CORBA.Object result = (org.omg.CORBA.Object) this.contexts.get(n); if (result == null) result = (org.omg.CORBA.Object) this.names.get(n); if (result == null) throw new NotFound(NotFoundReason.missing_node, n.components()); if (!noPing && isDead(result)) throw new NotFound(NotFoundReason.missing_node, n.components()); return result; } }
public org.omg.CORBA.Object resolve(NameComponent[] nc) throws NotFound, CannotProceed, InvalidName { if (this.destroyed) throw new CannotProceed(); if (nc == null || nc.length == 0) throw new InvalidName(); Name n = new Name(nc[0]); if (nc.length > 1) { org.omg.CORBA.Object next_context = (org.omg.CORBA.Object) this.contexts.get(n); if ((next_context == null) || (isDead(next_context))) throw new NotFound(NotFoundReason.missing_node, nc); NameComponent[] nc_prime = new NameComponent[nc.length - 1]; System.arraycopy(nc, 1, nc_prime, 0, nc_prime.length); // try first to call the context implementation object directly. String contextOID = this.getObjectOID(next_context); CorbaNamingContext jbossContext = (contextOID == null ? null : contextImpls.get(contextOID)); if (jbossContext != null) return jbossContext.resolve(nc_prime); else return NamingContextExtHelper.narrow(next_context).resolve(nc_prime); } else { org.omg.CORBA.Object result = (org.omg.CORBA.Object) this.contexts.get(n); if (result == null) result = (org.omg.CORBA.Object) this.names.get(n); if (result == null) throw new NotFound(NotFoundReason.missing_node, n.components()); if (!noPing && isDead(result)) throw new NotFound(NotFoundReason.missing_node, n.components()); return result; } }
throw new NotFound(NotFoundReason.not_context,new NameComponent[]{ nb });
} else { IIOPLogger.ROOT_LOGGER.failedToUnbindObject(n); throw new NotFound(NotFoundReason.not_context, n.components());
throw new NotFound(NotFoundReason.not_object, new NameComponent[]{nb});
throw new NotFound(NotFoundReason.not_object, new NameComponent[]{nb});
if (obj == null) { throw new NotFound(NotFoundReason.missing_node, n);
if (obj == null) { throw new NotFound(NotFoundReason.missing_node, n);
if (obj == null) { throw new NotFound(NotFoundReason.missing_node, n);