nutch-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Furkan KAMACI (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (NUTCH-2264) Check Forbidden API's at Build
Date Thu, 19 May 2016 23:46:12 GMT

    [ https://issues.apache.org/jira/browse/NUTCH-2264?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15292360#comment-15292360
] 

Furkan KAMACI commented on NUTCH-2264:
--------------------------------------

This is an initial PR due to I get that error when I run ant check-forbidden-apis:

{code}
BUILD FAILED
/home/furkan/projects/gsoc2016/nutch/build.xml:1044: Check for forbidden API calls failed:
java.lang.ClassNotFoundException: org.apache.avro.util.Utf8
        at de.thetaphi.forbiddenapis.Checker.getClassFromClassLoader(Checker.java:264)
        at de.thetaphi.forbiddenapis.Checker.lookupRelatedClass(Checker.java:277)
        at de.thetaphi.forbiddenapis.ClassScanner.checkType(ClassScanner.java:178)
        at de.thetaphi.forbiddenapis.ClassScanner.checkDescriptor(ClassScanner.java:218)
        at de.thetaphi.forbiddenapis.ClassScanner$1.<init>(ClassScanner.java:284)
        at de.thetaphi.forbiddenapis.ClassScanner.visitField(ClassScanner.java:279)
        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:528)
        at de.thetaphi.forbiddenapis.Checker.run(Checker.java:545)
        at de.thetaphi.forbiddenapis.ant.AntTask.execute(AntTask.java:189)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
        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)
        at org.apache.tools.ant.Target.execute(Target.java:435)
        at org.apache.tools.ant.Target.performTasks(Target.java:456)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1364)
        at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1248)
        at org.apache.tools.ant.Main.runBuild(Main.java:851)
        at org.apache.tools.ant.Main.startAnt(Main.java:235)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
{code}

> Check Forbidden API's at Build
> ------------------------------
>
>                 Key: NUTCH-2264
>                 URL: https://issues.apache.org/jira/browse/NUTCH-2264
>             Project: Nutch
>          Issue Type: Task
>    Affects Versions: 2.3.1
>            Reporter: Furkan KAMACI
>            Priority: Minor
>
> We should avoid [forbidden calls|https://github.com/policeman-tools/forbidden-apis/wiki]
 and check in the ant build for it.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message