Examples of CorbaBindingException


Examples of org.apache.cxf.binding.corba.CorbaBindingException

        throws Exception {
        QName exIdlType = exType.getException();
        QName elName = new QName("", exIdlType.getLocalPart());
        MessagePartInfo faultPart = getFaultMessagePartInfo(opInfo, elName);
        if (faultPart == null) {
            throw new CorbaBindingException("Coulnd't find the message fault part : " + elName);
        }

        Method faultMethod = ex.getClass().getMethod("getFaultInfo");
        if (faultMethod == null) {
            return;
View Full Code Here

Examples of org.apache.cxf.binding.corba.CorbaBindingException

            break;
        case TCKind._tk_wstring:
            a.insert_wstring((String)primitive.getValue());
            break;
        default:
            throw new CorbaBindingException("Unable to insert type into any.  Kind = "
                                            + primitive.getTypeCode().kind().value());
        }
    }
View Full Code Here

Examples of org.apache.cxf.binding.corba.CorbaBindingException

            break;
        case TCKind._tk_wstring:
            primitive.setValue(a.extract_wstring());
            break;
        default:
            throw new CorbaBindingException("Unable to extract type from any.  Kind = "
                                            + primitive.getTypeCode().kind().value());
        }
    }
View Full Code Here

Examples of org.apache.cxf.binding.corba.CorbaBindingException

    public CorbaObjectHandler[] getCorbaObjects() {
        //REVISIT, we can make the CorbaTypeListener & CorbaObjectHandler the same object.
        CorbaObjectHandler[] handlers = new CorbaObjectHandler[listeners.length];
        for (int i = 0; i < listeners.length; i++) {
            if (listeners[i] == null) {
                throw new CorbaBindingException("Uninitalized object for parameter "
                                                + params.get(i).getName());
            }
            handlers[i] = listeners[i].getCorbaObject();
        }
        return handlers;
View Full Code Here

Examples of org.apache.cxf.binding.corba.CorbaBindingException

                                       QName type,
                                       CorbaType obj,
                                       CorbaTypeMap typeMap,
                                       Stack<QName> seenTypes) {
        if (type == null) {
            throw new CorbaBindingException("corba:typemap type or elemtype information required"
                    + (obj == null ? "" : " for " + obj)
                    + (seenTypes.empty() ? "" : ", Enclosing type: " + seenTypes.elementAt(0)));
        }

        TypeCode tc = null;
        // first see if it is a primitive
        tc = getPrimitiveTypeCode(orb, type);
        if (tc == null && type.equals(CorbaConstants.NT_CORBA_ANY)) {
            // Anys are handled in a special way
            tc = orb.get_primitive_tc(TCKind.from_int(TCKind._tk_any));
        } else if (tc == null) {
            if (typeMap == null) {
                throw new CorbaBindingException("Unable to locate typemap for namespace \""
                                                + type.getNamespaceURI() + "\"");
            }

            tc = typeMap.getTypeCode(type);

            if (tc == null) {
                if (obj == null) {
                    obj = typeMap.getType(type.getLocalPart());
                    if (obj == null) {
                        throw new CorbaBindingException("Unable to locate object definition");
                    }
                }
                tc = getComplexTypeCode(orb, type, obj, typeMap, seenTypes);
                if (tc != null) {
                    typeMap.addTypeCode(type, tc);
                }
            }
        }
        if (tc == null) {
            throw new CorbaBindingException("Corba type node with qname " + type + " is not supported");
        }
        return tc;
    }
View Full Code Here

Examples of org.apache.yoko.bindings.corba.CorbaBindingException

                    opType = bopInfo.getExtensor(OperationType.class);
                    break;
                }
            }
            if (opType == null) {
                throw new CorbaBindingException("Unable to find operation definition");
            }

            OperationInfo opInfo = bopInfo.getOperationInfo();

            QName exIdlType = null;
            List<RaisesType> exList = opType.getRaises();
            for (Iterator<RaisesType> i = exList.iterator(); i.hasNext();) {
                // REVISIT: Note that this assumes that exception names need to
                // be unique. We should make
                // sure that this is really the case.
                RaisesType raises = i.next();

                if (raises.getException().getLocalPart().equals(ex.getClass().getSimpleName())) {
                    exIdlType = raises.getException();
                    break;
                }
            }

            if (exIdlType != null) {
                setUserException(message, ex, exIdlType, opInfo, writer);
            }

        } catch (java.lang.Exception ex) {
            LOG.log(Level.SEVERE, "CORBA marshal fault exception", ex);
            throw new CorbaBindingException("Marshal fault failed", ex);
        }

    }
View Full Code Here

Examples of org.apache.yoko.bindings.corba.CorbaBindingException

                                    EventDataWriter writer)
        throws Exception {
        QName elName = new QName("", exIdlType.getLocalPart());
        MessagePartInfo faultPart = getFaultMessagePartInfo(opInfo, elName);
        if (faultPart == null) {
            throw new CorbaBindingException("Coulnd't find the message fault part : " + elName);
        }

        Method faultMethod = ex.getClass().getMethod("getFaultInfo");
        if (faultMethod == null) {
            return;
View Full Code Here

Examples of org.apache.yoko.bindings.corba.CorbaBindingException

            break;
        case TCKind._tk_wstring:
            schemaType = "xs:string";
            break;
        default:
            throw new CorbaBindingException("Unsupported type in CORBA Any");
        }
    }
View Full Code Here

Examples of org.apache.yoko.bindings.corba.CorbaBindingException

            break;
        case TCKind._tk_wstring:
            result = value.extract_wstring();
            break;
        default:
            throw new CorbaBindingException("Unsupported type in CORBA Any");
        }
       
        return result;
    }
View Full Code Here

Examples of org.apache.yoko.bindings.corba.CorbaBindingException

        } else if (type.equals("xs:unsignedLong")) {
            value.insert_ulonglong(Long.parseLong(data));
        } else if (type.equals("xs:unsignedShort")) {
            value.insert_ushort(Short.parseShort(data));
        } else {
            throw new CorbaBindingException("Unsupported XML Schema type");
        }
        schemaType = type;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.