Examples of InternalErrorException


Examples of org.apache.jena.atlas.lib.InternalErrorException

        try {
            e = new StringEntity(content, "UTF-8");
            e.setContentType(contentType);
            execHttpPost(url, e, acceptType, handler, httpClient, httpContext, authenticator);
        } catch (UnsupportedCharsetException e1) {
            throw new InternalErrorException("Platform does not support required UTF-8");
        } catch (UnsupportedEncodingException e1) {
            throw new InternalErrorException("Platform does not support required UTF-8");
        } finally {
            closeEntity(e);
        }
    }
View Full Code Here

Examples of org.apache.jena.atlas.lib.InternalErrorException

        try {
            e = new StringEntity(content, "UTF-8");
            e.setContentType(contentType);
            execHttpPut(url, e, httpClient, httpContext, authenticator);
        } catch (UnsupportedCharsetException e1) {
            throw new InternalErrorException("Platform does not support required UTF-8");
        } catch (UnsupportedEncodingException e1) {
            throw new InternalErrorException("Platform does not support required UTF-8");
        } finally {
            closeEntity(e);
        }
    }
View Full Code Here

Examples of org.apache.jena.atlas.lib.InternalErrorException

            for (Pair p : params.pairs())
                nvps.add(new BasicNameValuePair(p.getName(), p.getValue()));
            HttpEntity e = new UrlEncodedFormEntity(nvps, "UTF-8");
            return e;
        } catch (UnsupportedEncodingException e) {
            throw new InternalErrorException("Platform does not support required UTF-8");
        }
    }
View Full Code Here

Examples of org.apache.jena.atlas.lib.InternalErrorException

        {
            if ( node.isURI() )         return labelForURI(node) ;
            if ( node.isLiteral() )     return labelForLiteral(node) ;
            if ( node.isBlank() )       return labelForBlank(node) ;
            if ( node.isVariable() )    return labelForVar(node) ;
            throw new InternalErrorException("Node type not supported: "+node) ;
        }
View Full Code Here

Examples of org.apache.jena.atlas.lib.InternalErrorException

    private static class ReaderRIOTFactoryJSONLD implements ReaderRIOTFactory
    {
        @Override
        public ReaderRIOT create(Lang language) {
            if ( !Lang.JSONLD.equals(language) )
                throw new InternalErrorException("Attempt to parse " + language + " as JSON-LD") ;
            return new JsonLDReader() ;
        }
View Full Code Here

Examples of org.apache.jena.atlas.lib.InternalErrorException

    }

    private static Triple triple(NodeTable nodeTable, NodeId s, NodeId p, NodeId o)
    {
        if ( ! NodeId.isConcrete(s) )
            throw new InternalErrorException("Invalid id for subject: "+fmt(s,p,o)) ;
        if ( ! NodeId.isConcrete(p) )
            throw new InternalErrorException("Invalid id for predicate: "+fmt(s,p,o)) ;
        if ( ! NodeId.isConcrete(o) )
            throw new InternalErrorException("Invalid id for object: "+fmt(s,p,o)) ;
       
        Node sNode = nodeTable.getNodeForNodeId(s) ;
        if ( sNode == null )
            throw new InternalErrorException("Invalid id node for subject (null node): "+fmt(s,p,o)) ;

        Node pNode = nodeTable.getNodeForNodeId(p) ;
        if ( pNode == null )
        {
            nodeTable.getNodeForNodeId(p) ;
            throw new InternalErrorException("Invalid id node for predicate (null node): "+fmt(s,p,o)) ;
        }
       
        Node oNode = nodeTable.getNodeForNodeId(o) ;
        if ( oNode == null )
            throw new InternalErrorException("Invalid id node for object (null node): "+fmt(s,p,o)) ;
       
        return new Triple(sNode, pNode, oNode) ;
    }
View Full Code Here

Examples of org.apache.jena.atlas.lib.InternalErrorException

        try {
            mbs.unregisterMBean(objName) ;
        }
        catch (InstanceNotFoundException ex) { }    // Meh, whatever
        catch (MBeanRegistrationException ex) {
            throw new InternalErrorException(ex) ;
        }
    }
View Full Code Here

Examples of org.apache.maven.InternalErrorException

    public void handleBuildError( final ReactorContext buildContext, final MavenSession rootSession,
                                  final MavenProject mavenProject, Exception e, final long buildStartTime )
    {
        if ( e instanceof RuntimeException )
        {
            e = new InternalErrorException( "Internal error: " + e, e );
        }

        buildContext.getResult().addException( e );

        long buildEndTime = System.currentTimeMillis();
View Full Code Here

Examples of org.apache.maven.InternalErrorException

    public void handleBuildError( final ReactorContext buildContext, final MavenSession rootSession,
                                  final MavenProject mavenProject, Exception e, final long buildStartTime )
    {
        if ( e instanceof RuntimeException )
        {
            e = new InternalErrorException( "Internal error: " + e, e );
        }

        buildContext.getResult().addException( e );

        long buildEndTime = System.currentTimeMillis();
View Full Code Here

Examples of org.apache.openejb.InternalErrorException

                    interfaces.add(BeanContext.Removable.class);
                }
                return ProxyManager.newProxyInstance(interfaces.toArray(new Class[interfaces.size()]), handler);
            }
        } catch (IllegalAccessException iae) {
            throw new InternalErrorException("Could not create IVM proxy for " + interfce.getName() + " interface", iae);
        }
    }
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.