Package xbird.xquery

Examples of xbird.xquery.XQueryException


        } else {
            final RemoteSequenceProxy proxy = new RemoteSequenceProxy(result, request);
            try {
                UnicastRemoteObject.exportObject(proxy, 0, TimeoutSocketProdiver.createClientSocketFactory(), TimeoutSocketProdiver.createServerSocketFactory());
            } catch (RemoteException e) {
                throw new XQueryException("failed exporting variable: " + varname, e);
            }
            RemoteSequence remote = new RemoteSequence(proxy, result.getType());
            shiped = new ShippedVariable(varname, remote);
        }
        return shiped;
View Full Code Here


                    msg.append(',');
                }
                msg.append(types[i].getSimpleName());
            }
            msg.append(')');
            throw new XQueryException(msg.toString(), e);
        }
        if(Modifier.isStatic(m.getModifiers()) == false) {
            throw new XQueryException("Method '" + m.getName() + "' is not a static method.");
        }
        m.setAccessible(true);
        if(LOG.isDebugEnabled()) {
            LOG.debug("Found Java method: " + m.toString());
        }
View Full Code Here

            if(prefix.length() == 0) {
                throw new IllegalArgumentException("Invalid QName expression: " + qname);
            }
            namespaceURI = namespaceContext.getNamespaceURI(prefix);
            if(namespaceURI == null) {
                throw new XQueryException("err:XPST0081", "invalid namespace prefix: " + prefix);
            }
        }
        return QNameTable.instantiate(namespaceURI, localPart, prefix);
    }
View Full Code Here

        } catch (TokenMgrError tme) {
            throw new SyntaxError("err:XPST0003", getErrorMessage(tme, false), tme);
        } catch (ParseException pe) {
            throw new SyntaxError("err:XPST0003", getErrorMessage(pe, false), pe);
        } catch (Throwable e) {
            throw new XQueryException(getErrorMessage(e, true), e);
        }
        return m;
    }
View Full Code Here

            for(int i = 0; i < _decodeUnit; i++) {
                final Item item;
                try {
                    item = _decoder.decodeItem(treeBuilder);
                } catch (IOException e) {
                    throw new XQueryException("failed decoding an Item", e);
                } finally {
                    treeBuilder.reset();
                }
                if(item != null) {
                    decodedItems.add(item);
View Full Code Here

        }
        final IDocumentTable doc;
        try {
            doc = ImportDocument.loadDocument(col, docFile);
        } catch (FileNotFoundException fnf) {
            throw new XQueryException("File not found: " + docPath, fnf);
        } catch (DbException e) {
            throw new XQueryException("Database error", e);
        }
        DocumentTableModel dtm = new DocumentTableModel(doc);
        DTMDocument root = dtm.documentNode();
        return root;
    }
View Full Code Here

                    msg.append(',');
                }
                msg.append(types[i].getSimpleName());
            }
            msg.append(')');
            throw new XQueryException(msg.toString(), e);
        }
        if(Modifier.isStatic(m.getModifiers()) == false) {
            throw new XQueryException("Method '" + m.getName() + "' is not a static method.");
        }
        m.setAccessible(true);
        if(LOG.isDebugEnabled()) {
            LOG.debug("Found Java method: " + m.toString());
        }
View Full Code Here

TOP

Related Classes of xbird.xquery.XQueryException

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.