Package org.apache.yoko.bindings.corba

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


                                    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

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

            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

        } 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

                }
                message.setContent(Exception.class, (Exception) e);
            }
        } catch (java.lang.Exception ex) {
            LOG.log(Level.SEVERE, "CORBA unmarshalFault exception", ex);
            throw new CorbaBindingException("CORBA unmarshalFault exception", ex);
        }

    }
View Full Code Here

TOP

Related Classes of org.apache.yoko.bindings.corba.CorbaBindingException

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.