java.lang.IllegalAccessError: tried to access method java.lang.Object.clone()Ljava/lang/Object; from class org.apache.uima.analysis_engine.impl.AnalysisEngineImplBase at __randomizedtesting.SeedInfo.seed([BC36C2DC5FC6C107:4A94D14D35381F88]:0)

JDK Bug System | Balchandra Vaidya | 3 years ago
  1. 0

    [JDK-8026845] Exception in thread "main" java.lang.IllegalAccessError: tried to access method java.lang.Object.clone()Ljava/lang/Object - Java Bug System

    java.net | 1 year ago
    java.lang.IllegalAccessError: tried to access method java.lang.Object.clone()Ljava/lang/Object; from class org.apache.uima.analysis_engine.impl.AnalysisEngineImplBase at __randomizedtesting.SeedInfo.seed([BC36C2DC5FC6C107:4A94D14D35381F88]:0)
  2. 0

    Apache reported the following regression issue with jdk 8 ea b111: Exception in thread "main" java.lang.IllegalAccessError: tried to access method java.lang.Object.clone()Ljava/lang/Object; from class TestCloneInterface at TestCloneInterface.test(TestCloneInterface.java:15) at TestCloneInterface.main(TestCloneInterface.java:19) The testcase TestCloneInterface.java is attached. Testcase appear to pass with jdk 8 ea b109 (and b110). Below is email from Apache: ---------------------------------------------------------------------------------------------------- Hi, I was able to reproduce with a simple test case that emulates the UIMA code. See attached test case, just compile it with any JDK and run with b111: With Java 7 or JDK8b109: > javac TestCloneInterface.java > java TestCloneInterface > With JDK8b111: > java TestCloneInterface Exception in thread "main" java.lang.IllegalAccessError: tried to access method java.lang.Object.clone()Ljava/lang/Object; from class TestCloneInterface at TestCloneInterface.test(TestCloneInterface.java:15) at TestCloneInterface.main(TestCloneInterface.java:19) > The bug happens if the clone() method is declared in a superinterface only. Without the additional interface inbetween, test passes. Instead of the real interface (the "o" local variable, which is of type "FoobarIntf") it checks access flags on "this", which is of type "TestCloneInterface". Uwe ----- Uwe Schindler uschindler@apache.org Apache Lucene PMC Chair / Committer Bremen, Germany http://lucene.apache.org/ -----------------------------------------------------------------------------------------------------------------

    JDK Bug System | 3 years ago | Balchandra Vaidya
    java.lang.IllegalAccessError: tried to access method java.lang.Object.clone()Ljava/lang/Object; from class org.apache.uima.analysis_engine.impl.AnalysisEngineImplBase at __randomizedtesting.SeedInfo.seed([BC36C2DC5FC6C107:4A94D14D35381F88]:0)
  3. 0

    Cloneable

    Coderanch | 3 years ago | meeta gaur
    java.lang.IllegalAccessError: tried to access method java.lang.Object.clone()Ljava/lang/Object; from class Test
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    [JDK-8026845] Exception in thread "main" java.lang.IllegalAccessError: tried to access method java.lang.Object.clone()Ljava/lang/Object - Java Bug System

    java.net | 1 year ago
    java.lang.IllegalAccessError: tried to access method java.lang.Object.clone()Ljava/lang/Object; from class TestCloneInterface
  6. 0

    tried to access method java.lang.Object.clone()Ljava/lang/Object; from class ar.com.fdvs.dj.util.Utils

    Stack Overflow | 3 years ago | Nauman Rafique
    java.lang.IllegalAccessError: tried to access method java.lang.Object.clone()Ljava/lang /Object; from class ar.com.fdvs.dj.util.Utils

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalAccessError

      tried to access method java.lang.Object.clone()Ljava/lang/Object; from class org.apache.uima.analysis_engine.impl.AnalysisEngineImplBase at __randomizedtesting.SeedInfo.seed([BC36C2DC5FC6C107:4A94D14D35381F88]:0)

      at org.apache.uima.analysis_engine.impl.AnalysisEngineImplBase.initialize()
    2. Apache UIMA Base: ${project.artifactId}
      UIMAFramework.produceAnalysisEngine
      1. org.apache.uima.analysis_engine.impl.AnalysisEngineImplBase.initialize(AnalysisEngineImplBase.java:163)
      2. org.apache.uima.analysis_engine.impl.AggregateAnalysisEngine_impl.initialize(AggregateAnalysisEngine_impl.java:127)
      3. org.apache.uima.impl.AnalysisEngineFactory_impl.produceResource(AnalysisEngineFactory_impl.java:94)
      4. org.apache.uima.impl.CompositeResourceFactory_impl.produceResource(CompositeResourceFactory_impl.java:62)
      5. org.apache.uima.UIMAFramework.produceResource(UIMAFramework.java:267)
      6. org.apache.uima.UIMAFramework.produceAnalysisEngine(UIMAFramework.java:335)
      6 frames
    3. Lucene UIMA Analysis Components
      UIMAAnnotationsTokenizer.incrementToken
      1. org.apache.lucene.analysis.uima.ae.BasicAEProvider.getAE(BasicAEProvider.java:73)
      2. org.apache.lucene.analysis.uima.BaseUIMATokenizer.analyzeInput(BaseUIMATokenizer.java:63)
      3. org.apache.lucene.analysis.uima.UIMAAnnotationsTokenizer.initializeIterator(UIMAAnnotationsTokenizer.java:60)
      4. org.apache.lucene.analysis.uima.UIMAAnnotationsTokenizer.incrementToken(UIMAAnnotationsTokenizer.java:74)
      4 frames
    4. Lucene
      DocInverterPerField.processFields
      1. org.apache.lucene.index.DocInverterPerField.processFields(DocInverterPerField.java:98)
      1 frame