Forbidden API's checker throwing exceptions

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Forbidden API's checker throwing exceptions

Gus Heck
Is anyone else getting this running precommit? Worked a week or so ago, now it doesn't. 

BUILD FAILED
/Users/gus/projects/solr/lucene-solr/build.xml:117: The following error occurred while executing this line:
/Users/gus/projects/solr/lucene-solr/solr/build.xml:369: The following error occurred while executing this line:
/Users/gus/projects/solr/lucene-solr/solr/common-build.xml:514: Check for forbidden API calls failed: java.lang.ClassNotFoundException: com.facebook.presto.sql.tree.AstVisitor
        at de.thetaphi.forbiddenapis.Checker.getClassFromClassLoader(Checker.java:314)
        at de.thetaphi.forbiddenapis.Checker.lookupRelatedClass(Checker.java:326)
        at de.thetaphi.forbiddenapis.ClassScanner.checkClassUse(ClassScanner.java:120)
        at de.thetaphi.forbiddenapis.ClassScanner.checkClassUse(ClassScanner.java:132)
        at de.thetaphi.forbiddenapis.ClassScanner.checkClassDefinition(ClassScanner.java:137)
        at de.thetaphi.forbiddenapis.ClassScanner.checkType(ClassScanner.java:172)
        at de.thetaphi.forbiddenapis.ClassScanner.checkDescriptor(ClassScanner.java:210)
        at de.thetaphi.forbiddenapis.ClassScanner$1.<init>(ClassScanner.java:276)
        at de.thetaphi.forbiddenapis.ClassScanner.visitField(ClassScanner.java:271)
        at de.thetaphi.forbiddenapis.asm.ClassReader.a(Unknown Source)
        at de.thetaphi.forbiddenapis.asm.ClassReader.accept(Unknown Source)
        at de.thetaphi.forbiddenapis.asm.ClassReader.accept(Unknown Source)
        at de.thetaphi.forbiddenapis.Checker.checkClass(Checker.java:602)
        at de.thetaphi.forbiddenapis.Checker.run(Checker.java:619)
        at de.thetaphi.forbiddenapis.ant.AntTask.execute(AntTask.java:208)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)
        at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)


--
Reply | Threaded
Open this post in threaded view
|

Re: Forbidden API's checker throwing exceptions

Uwe Schindler
Could it be that your Ivy Cache is broken? The forbidden precommit checks work on Jenkins, so it must be something on your setup.

Uwe

Am 17. Februar 2017 17:57:01 MEZ schrieb Gus Heck <[hidden email]>:
Is anyone else getting this running precommit? Worked a week or so ago, now it doesn't. 

BUILD FAILED
/Users/gus/projects/solr/lucene-solr/build.xml:117: The following error occurred while executing this line:
/Users/gus/projects/solr/lucene-solr/solr/build.xml:369: The following error occurred while executing this line:
/Users/gus/projects/solr/lucene-solr/solr/common-build.xml:514: Check for forbidden API calls failed: java.lang.ClassNotFoundException: com.facebook.presto.sql.tree.AstVisitor
        at de.thetaphi.forbiddenapis.Checker.getClassFromClassLoader(Checker.java:314)
        at de.thetaphi.forbiddenapis.Checker.lookupRelatedClass(Checker.java:326)
        at de.thetaphi.forbiddenapis.ClassScanner.checkClassUse(ClassScanner.java:120)
        at de.thetaphi.forbiddenapis.ClassScanner.checkClassUse(ClassScanner.java:132)
        at de.thetaphi.forbiddenapis.ClassScanner.checkClassDefinition(ClassScanner.java:137)
        at de.thetaphi.forbiddenapis.ClassScanner.checkType(ClassScanner.java:172)
        at de.thetaphi.forbiddenapis.ClassScanner.checkDescriptor(ClassScanner.java:210)
        at de.thetaphi.forbiddenapis.ClassScanner$1.<init>(ClassScanner.java:276)
        at de.thetaphi.forbiddenapis.ClassScanner.visitField(ClassScanner.java:271)
        at de.thetaphi.forbiddenapis.asm.ClassReader.a(Unknown Source)
        at de.thetaphi.forbiddenapis.asm.ClassReader.accept(Unknown Source)
        at de.thetaphi.forbiddenapis.asm.ClassReader.accept(Unknown Source)
        at de.thetaphi.forbiddenapis.Checker.checkClass(Checker.java:602)
        at de.thetaphi.forbiddenapis.Checker.run(Checker.java:619)
        at de.thetaphi.forbiddenapis.ant.AntTask.execute(AntTask.java:208)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)
        at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)


--

--
Uwe Schindler
Achterdiek 19, 28357 Bremen
https://www.thetaphi.de
Reply | Threaded
Open this post in threaded view
|

Re: Forbidden API's checker throwing exceptions

Kevin Risden-2
May have to run something like:

ant clean clean-jars jar-checksums compile

That would make sure the jars are up to date.

Kevin Risden

On Fri, Feb 17, 2017 at 11:08 AM, Uwe Schindler <[hidden email]> wrote:
Could it be that your Ivy Cache is broken? The forbidden precommit checks work on Jenkins, so it must be something on your setup.

Uwe


Am 17. Februar 2017 17:57:01 MEZ schrieb Gus Heck <[hidden email]>:
Is anyone else getting this running precommit? Worked a week or so ago, now it doesn't. 

BUILD FAILED
/Users/gus/projects/solr/lucene-solr/build.xml:117: The following error occurred while executing this line:
/Users/gus/projects/solr/lucene-solr/solr/build.xml:369: The following error occurred while executing this line:
/Users/gus/projects/solr/lucene-solr/solr/common-build.xml:514: Check for forbidden API calls failed: java.lang.ClassNotFoundException: com.facebook.presto.sql.tree.AstVisitor
        at de.thetaphi.forbiddenapis.Checker.getClassFromClassLoader(Checker.java:314)
        at de.thetaphi.forbiddenapis.Checker.lookupRelatedClass(Checker.java:326)
        at de.thetaphi.forbiddenapis.ClassScanner.checkClassUse(ClassScanner.java:120)
        at de.thetaphi.forbiddenapis.ClassScanner.checkClassUse(ClassScanner.java:132)
        at de.thetaphi.forbiddenapis.ClassScanner.checkClassDefinition(ClassScanner.java:137)
        at de.thetaphi.forbiddenapis.ClassScanner.checkType(ClassScanner.java:172)
        at de.thetaphi.forbiddenapis.ClassScanner.checkDescriptor(ClassScanner.java:210)
        at de.thetaphi.forbiddenapis.ClassScanner$1.<init>(ClassScanner.java:276)
        at de.thetaphi.forbiddenapis.ClassScanner.visitField(ClassScanner.java:271)
        at de.thetaphi.forbiddenapis.asm.ClassReader.a(Unknown Source)
        at de.thetaphi.forbiddenapis.asm.ClassReader.accept(Unknown Source)
        at de.thetaphi.forbiddenapis.asm.ClassReader.accept(Unknown Source)
        at de.thetaphi.forbiddenapis.Checker.checkClass(Checker.java:602)
        at de.thetaphi.forbiddenapis.Checker.run(Checker.java:619)
        at de.thetaphi.forbiddenapis.ant.AntTask.execute(AntTask.java:208)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)
        at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)


--

--
Uwe Schindler
Achterdiek 19, 28357 Bremen
https://www.thetaphi.de

Reply | Threaded
Open this post in threaded view
|

Re: Forbidden API's checker throwing exceptions

Gus Heck
Kevin's suggestion solved it for me. Thanks :)

On Fri, Feb 17, 2017 at 12:15 PM, Kevin Risden <[hidden email]> wrote:
May have to run something like:

ant clean clean-jars jar-checksums compile

That would make sure the jars are up to date.

Kevin Risden

On Fri, Feb 17, 2017 at 11:08 AM, Uwe Schindler <[hidden email]> wrote:
Could it be that your Ivy Cache is broken? The forbidden precommit checks work on Jenkins, so it must be something on your setup.

Uwe


Am 17. Februar 2017 17:57:01 MEZ schrieb Gus Heck <[hidden email]>:
Is anyone else getting this running precommit? Worked a week or so ago, now it doesn't. 

BUILD FAILED
/Users/gus/projects/solr/lucene-solr/build.xml:117: The following error occurred while executing this line:
/Users/gus/projects/solr/lucene-solr/solr/build.xml:369: The following error occurred while executing this line:
/Users/gus/projects/solr/lucene-solr/solr/common-build.xml:514: Check for forbidden API calls failed: java.lang.ClassNotFoundException: com.facebook.presto.sql.tree.AstVisitor
        at de.thetaphi.forbiddenapis.Checker.getClassFromClassLoader(Checker.java:314)
        at de.thetaphi.forbiddenapis.Checker.lookupRelatedClass(Checker.java:326)
        at de.thetaphi.forbiddenapis.ClassScanner.checkClassUse(ClassScanner.java:120)
        at de.thetaphi.forbiddenapis.ClassScanner.checkClassUse(ClassScanner.java:132)
        at de.thetaphi.forbiddenapis.ClassScanner.checkClassDefinition(ClassScanner.java:137)
        at de.thetaphi.forbiddenapis.ClassScanner.checkType(ClassScanner.java:172)
        at de.thetaphi.forbiddenapis.ClassScanner.checkDescriptor(ClassScanner.java:210)
        at de.thetaphi.forbiddenapis.ClassScanner$1.<init>(ClassScanner.java:276)
        at de.thetaphi.forbiddenapis.ClassScanner.visitField(ClassScanner.java:271)
        at de.thetaphi.forbiddenapis.asm.ClassReader.a(Unknown Source)
        at de.thetaphi.forbiddenapis.asm.ClassReader.accept(Unknown Source)
        at de.thetaphi.forbiddenapis.asm.ClassReader.accept(Unknown Source)
        at de.thetaphi.forbiddenapis.Checker.checkClass(Checker.java:602)
        at de.thetaphi.forbiddenapis.Checker.run(Checker.java:619)
        at de.thetaphi.forbiddenapis.ant.AntTask.execute(AntTask.java:208)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)
        at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)


--

--
Uwe Schindler
Achterdiek 19, 28357 Bremen
https://www.thetaphi.de




--