List of usage examples for java.lang IllegalAccessError IllegalAccessError
public IllegalAccessError()
IllegalAccessError
with no detail message. From source file:org.jfrog.teamcity.agent.util.ArtifactoryClientConfigurationBuilder.java
private ArtifactoryClientConfigurationBuilder() { throw new IllegalAccessError(); }
From source file:org.neo4j.server.extension.httplog.HttpLogExtensionInitializer.java
@Override public Collection<Injectable<?>> start(final GraphDatabaseService graphDatabaseService, final Configuration config) { throw new IllegalAccessError(); }
From source file:com.insightml.evaluation.functions.AbstractIndependentLabelsObjectiveFunction.java
@Override public final double instance(final T pred, final E exp, final Sample sample) { throw new IllegalAccessError(); }
From source file:org.neo4j.server.extension.script.JRubyExtensionInitializer.java
@Override public Collection<Injectable<?>> start(GraphDatabaseService graphDatabaseService, Configuration config) { throw new IllegalAccessError(); }
From source file:com.phideltcmu.recruiter.server.RecruitTableServiceImpl.java
@Override public AuthUser facebookLogin(String token) { if (!Facebook.isValid(token)) { throw new IllegalAccessError(); }/*w ww.ja v a 2s . com*/ User fbUser = Facebook.getUser(token); AuthUser user = FacebookUserFactory.createAuthUser(fbUser); user.setAdmin(recruitListDao.isAdmin(user.getId())); user.setAuthToken(token); recruitListDao.register(user); return user; }
From source file:org.jfrog.hudson.util.ExtractorUtils.java
private ExtractorUtils() { // utility class throw new IllegalAccessError(); }
From source file:Main.java
public static Iterable<Node> eval(Node element, String path) throws XPathExpressionException { XPathFactory factory = XPathFactory.newInstance(); XPath xpath = factory.newXPath(); // xpath.setNamespaceContext(new NamespaceContext() { //// w ww. j av a2s .co m // /** // * @WARNING this code will work only if the namespace is present at // * each node of the xml dom and within the xpath queries. // * Otherwise you can fix like that: // * // * <pre> // * // FIXME: this is a // * hack!! if ("atom".equals(prefix)) return // * "http://www.w3.org/2005/Atom"; but it wont work with // * </pre> // * // * different namespaces // * @see // javax.xml.namespace.NamespaceContext#getNamespaceURI(java.lang.String) // */ // public String getNamespaceURI(String prefix) { // String namespace = DOMUtil.lookupNamespaceURI(node, prefix); // return namespace; // } // // public String getPrefix(String namespaceURI) { // String prefix = node.lookupPrefix(namespaceURI); // return prefix; // } // // public Iterator<?> getPrefixes(final String namespaceURI) { // return new Iterator<String>() { // String ns = getPrefix(namespaceURI); // // public boolean hasNext() { // return ns != null; // } // // public String next() { // String r = ns; // ns = null; // return r; // } // // public void remove() { // } // // }; // } // }); XPathExpression expr = xpath.compile(path); final NodeList result = (NodeList) expr.evaluate(element, XPathConstants.NODESET); return new Iterable<Node>() { public Iterator<Node> iterator() { return new Iterator<Node>() { int len = result.getLength(); int pos; public boolean hasNext() { return pos < len; } public Node next() { if (pos >= len) { return null; } return result.item(pos++); } public void remove() { throw new IllegalAccessError(); } }; } }; }
From source file:org.apache.webdav.ui.WebdavSystemView.java
public void connect() throws java.lang.IllegalAccessError { try {//from w w w.j a va 2s . c o m this.webdavResource = new WebdavResource(this.rootURL); } catch (Exception e) { System.err.println(e.toString()); throw new IllegalAccessError(); } }
From source file:org.apache.solr.kelvin.scorer.ScorersTest.java
public void testEventCollector() throws Exception { EventCollectorScorer S = new EventCollectorScorer(); S.configure(JsonNodeFactory.instance.objectNode()); S.update(null, new NullPointerException()); S.update(null, new NullPointerException()); S.update(null, new NullPointerException()); S.update(null, new IOException()); S.update(null, new IOException()); S.update(null, new ExceptionTestEvent(null, null, new IllegalAccessError())); assertEquals(3, S.measureReport().size()); assertEquals(3.0, peek(S, "NullPointerException").getValue()); assertEquals(2.0, peek(S, "IOException").getValue()); assertEquals(1.0, peek(S, "IllegalAccessError").getValue()); }
From source file:com.cloudbees.sdk.CommandServiceImpl.java
protected Injector createChildModule(Injector parent, final ClassLoader cl) throws InstantiationException, IOException { final List<Module> childModules = new ArrayList<Module>(); childModules.add(new ExtensionFinder(cl) { @Override//from w ww .j a v a2 s.com protected <T> void bind(Class<? extends T> impl, Class<T> extensionPoint) { if (impl.getClassLoader() != cl) return; // only add newly discovered stuff // install CLIModules if (extensionPoint == CLIModule.class) { try { install((Module) impl.newInstance()); } catch (InstantiationException e) { throw (Error) new InstantiationError().initCause(e); } catch (IllegalAccessException e) { throw (Error) new IllegalAccessError().initCause(e); } return; } super.bind(impl, extensionPoint); } }); return parent.createChildInjector(childModules); }