Uploaded image for project: 'ManifoldCF'
  1. ManifoldCF
  2. CONNECTORS-1689

Forbidden apis violations

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • None
    • None

    Description

      ant precommit fails in trunk with

      [forbiddenapis] Reading bundled API signatures: jdk-unsafe-1.7
      [forbiddenapis] Reading bundled API signatures: jdk-non-portable
      [forbiddenapis] Loading classes to check...
      [forbiddenapis] Scanning classes for violations...
      [forbiddenapis] Forbidden method invocation: java.lang.String#toLowerCase() [Uses default locale]
      [forbiddenapis]   in org.apache.manifoldcf.agents.output.elasticsearch.tests.BaseITHSQLDB (BaseITHSQLDB.java:48)
      [forbiddenapis] Forbidden method invocation: java.lang.String#toLowerCase() [Uses default locale]
      [forbiddenapis]   in org.apache.manifoldcf.crawler.connectors.confluence.v6.ConfluenceRepositoryConnector (ConfluenceRepositoryConnector.java:1327)
      [forbiddenapis] WARNING: The referenced class 'kafka.server.KafkaServerStartable' cannot be loaded. Please fix the classpath!
      [forbiddenapis] WARNING: The referenced class 'kafka.server.KafkaServerStartable' cannot be loaded. Please fix the classpath!
      [forbiddenapis] WARNING: The referenced class 'kafka.server.KafkaConfig' cannot be loaded. Please fix the classpath!
      [forbiddenapis] WARNING: The referenced class 'kafka.server.KafkaConfig' cannot be loaded. Please fix the classpath!
      [forbiddenapis] WARNING: The referenced class 'kafka.server.KafkaServerStartable' cannot be loaded. Please fix the classpath!
      [forbiddenapis] WARNING: The referenced class 'kafka.server.KafkaServerStartable' cannot be loaded. Please fix the classpath!
      [forbiddenapis] WARNING: The referenced class 'kafka.server.KafkaServerStartable' cannot be loaded. Please fix the classpath!
      [forbiddenapis] WARNING: The referenced class 'kafka.server.KafkaServerStartable' cannot be loaded. Please fix the classpath!
      [forbiddenapis] WARNING: The referenced class 'kafka.server.KafkaServerStartable' cannot be loaded. Please fix the classpath!
      [forbiddenapis] WARNING: The referenced class 'kafka.server.KafkaServerStartable' cannot be loaded. Please fix the classpath!
      [forbiddenapis] Forbidden method invocation: java.text.SimpleDateFormat#<init>(java.lang.String) [Uses default locale]
      [forbiddenapis]   in org.apache.manifoldcf.crawler.connectors.nuxeo.NuxeoConnectorTest (NuxeoConnectorTest.java:163)
      [forbiddenapis] Forbidden method invocation: java.text.SimpleDateFormat#<init>(java.lang.String) [Uses default locale]
      [forbiddenapis]   in org.apache.manifoldcf.crawler.connectors.nuxeo.NuxeoConnectorTest (NuxeoConnectorTest.java:224)
      [forbiddenapis] Forbidden method invocation: java.text.SimpleDateFormat#<init>(java.lang.String) [Uses default locale]
      [forbiddenapis]   in org.apache.manifoldcf.crawler.connectors.solr.SolrIngesterConnector (SolrIngesterConnector.java:395)
      [forbiddenapis] Forbidden method invocation: java.lang.String#getBytes() [Uses default charset]
      [forbiddenapis]   in org.apache.manifoldcf.crawler.connectors.solr.SolrIngesterConnector (SolrIngesterConnector.java:663)
      [forbiddenapis] Forbidden method invocation: java.lang.String#toLowerCase() [Uses default locale]
      [forbiddenapis]   in org.apache.manifoldcf.agents.transformation.tikaservice.rmeta.TikaExtractor (TikaExtractor.java:957)
      [forbiddenapis] Forbidden method invocation: java.lang.String#toLowerCase() [Uses default locale]
      [forbiddenapis]   in org.apache.manifoldcf.agents.transformation.tikaservice.rmeta.TikaExtractor (TikaExtractor.java:957)
      [forbiddenapis] Forbidden method invocation: java.lang.String#toLowerCase() [Uses default locale]
      [forbiddenapis]   in org.apache.manifoldcf.agents.transformation.tikaservice.rmeta.TikaExtractor (TikaExtractor.java:975)
      [forbiddenapis] Forbidden method invocation: java.lang.String#toLowerCase() [Uses default locale]
      [forbiddenapis]   in org.apache.manifoldcf.agents.transformation.tikaservice.rmeta.TikaExtractor (TikaExtractor.java:989)
      [forbiddenapis] Scanned 5237 (and 1241 related) class file(s) for forbidden API invocations (in 36.65s), 10 error(s). 

      Attachments

        Issue Links

          Activity

            People

              schuch Markus Schuch
              schuch Markus Schuch
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: