Skip to content

NoSuchMethodError when 8.6 plugins try calling Utils.logOnce #123

Closed
@greenwoodma

Description

@greenwoodma

It looks as if I've managed to break backwards compatibility around the Utils.logOnce() method working on updating the logging in GATE. This is the error you get if you run the ANNIE POS tagger over an empty doc with failOnMissingAnnotations set to false and hit an empty document

Exception in thread "ApplicationViewer1" java.lang.NoSuchMethodError: gate.Utils.logOnce(Lorg/apache/log4j/Logger;Lorg/apache/log4j/Level;Ljava/lang/String;)V
	at gate.creole.POSTagger.execute(POSTagger.java:265)
	at gate.util.Benchmark.executeWithBenchmarking(Benchmark.java:293)
	at gate.creole.ConditionalSerialController.runComponent(ConditionalSerialController.java:172)
	at gate.creole.SerialController.executeImpl(SerialController.java:158)
	at gate.creole.ConditionalSerialAnalyserController.executeImpl(ConditionalSerialAnalyserController.java:225)
	at gate.creole.ConditionalSerialAnalyserController.execute(ConditionalSerialAnalyserController.java:132)
	at gate.util.Benchmark.executeWithBenchmarking(Benchmark.java:293)
	at gate.gui.SerialControllerEditor$RunAction$1.run(SerialControllerEditor.java:1777)
	at java.lang.Thread.run(Thread.java:748)

Ideally apps built with 8.6.x should still work in 9.0-SNAPSHOT (especially those using the ANNIE plugin) unless we specifically blacklist the plugin to force users to update (see #89)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions