openpreserve / scout

SCOUT - A preservation watch system
http://scout.openplanetsfoundation.org
Apache License 2.0
13 stars 4 forks source link

[Core] Several errors when loading plugins #112

Closed luis100 closed 12 years ago

luis100 commented 12 years ago

When loading plugins in JBoss 7.1 (also 7.0) , several errors can be found in the log:

17:53:58,279 ERROR [eu.scape_project.watch.plugin.PluginManager] (PluginInterface scanner timer) pronom-adaptor-0.0.3-jar-with-dependencies.jar#net.sf.json.groovy.GJson$_enhanceCollection_closure4 thrown NoClassDefFoundError: org/codehaus/groovy/runtime/GeneratedClosure
17:53:58,280 ERROR [eu.scape_project.watch.plugin.PluginManager] (PluginInterface scanner timer) pronom-adaptor-0.0.3-jar-with-dependencies.jar#net.sf.json.groovy.GJson$_enhanceCollection_closure5 thrown NoClassDefFoundError: org/codehaus/groovy/runtime/GeneratedClosure
17:53:58,290 ERROR [eu.scape_project.watch.plugin.PluginManager] (PluginInterface scanner timer) pronom-adaptor-0.0.3-jar-with-dependencies.jar#net.sf.json.groovy.GJson$_enhanceCollection_closure6 thrown NoClassDefFoundError: org/codehaus/groovy/runtime/GeneratedClosure
17:53:58,291 ERROR [eu.scape_project.watch.plugin.PluginManager] (PluginInterface scanner timer) pronom-adaptor-0.0.3-jar-with-dependencies.jar#net.sf.json.groovy.GJson$_enhanceJSONObject_closure10 thrown NoClassDefFoundError: org/codehaus/groovy/runtime/GeneratedClosure
17:53:58,291 ERROR [eu.scape_project.watch.plugin.PluginManager] (PluginInterface scanner timer) pronom-adaptor-0.0.3-jar-with-dependencies.jar#net.sf.json.groovy.GJson$_enhanceJSONObject_closure11 thrown NoClassDefFoundError: org/codehaus/groovy/runtime/GeneratedClosure
17:53:58,292 ERROR [eu.scape_project.watch.plugin.PluginManager] (PluginInterface scanner timer) pronom-adaptor-0.0.3-jar-with-dependencies.jar#net.sf.json.groovy.GJson$_enhanceJSONObject_closure12 thrown NoClassDefFoundError: org/codehaus/groovy/runtime/GeneratedClosure
17:53:58,302 ERROR [eu.scape_project.watch.plugin.PluginManager] (PluginInterface scanner timer) pronom-adaptor-0.0.3-jar-with-dependencies.jar#net.sf.json.groovy.GJson$_enhanceJSONObject_closure13 thrown NoClassDefFoundError: org/codehaus/groovy/runtime/GeneratedClosure
17:53:58,303 ERROR [eu.scape_project.watch.plugin.PluginManager] (PluginInterface scanner timer) pronom-adaptor-0.0.3-jar-with-dependencies.jar#net.sf.json.groovy.GJson$_enhanceMap_closure7 thrown NoClassDefFoundError: org/codehaus/groovy/runtime/GeneratedClosure
17:53:58,304 ERROR [eu.scape_project.watch.plugin.PluginManager] (PluginInterface scanner timer) pronom-adaptor-0.0.3-jar-with-dependencies.jar#net.sf.json.groovy.GJson$_enhanceMap_closure8 thrown NoClassDefFoundError: org/codehaus/groovy/runtime/GeneratedClosure
17:53:58,305 ERROR [eu.scape_project.watch.plugin.PluginManager] (PluginInterface scanner timer) pronom-adaptor-0.0.3-jar-with-dependencies.jar#net.sf.json.groovy.GJson$_enhanceMap_closure9 thrown NoClassDefFoundError: org/codehaus/groovy/runtime/GeneratedClosure
17:53:58,307 ERROR [eu.scape_project.watch.plugin.PluginManager] (PluginInterface scanner timer) pronom-adaptor-0.0.3-jar-with-dependencies.jar#net.sf.json.groovy.GJson$_enhanceString_closure1 thrown NoClassDefFoundError: org/codehaus/groovy/runtime/GeneratedClosure
17:53:58,308 ERROR [eu.scape_project.watch.plugin.PluginManager] (PluginInterface scanner timer) pronom-adaptor-0.0.3-jar-with-dependencies.jar#net.sf.json.groovy.GJson$_enhanceString_closure2 thrown NoClassDefFoundError: org/codehaus/groovy/runtime/GeneratedClosure
17:53:58,309 ERROR [eu.scape_project.watch.plugin.PluginManager] (PluginInterface scanner timer) pronom-adaptor-0.0.3-jar-with-dependencies.jar#net.sf.json.groovy.GJson$_enhanceString_closure3 thrown NoClassDefFoundError: org/codehaus/groovy/runtime/GeneratedClosure
17:53:58,310 ERROR [eu.scape_project.watch.plugin.PluginManager] (PluginInterface scanner timer) pronom-adaptor-0.0.3-jar-with-dependencies.jar#net.sf.json.groovy.GJson thrown NoClassDefFoundError: groovy/lang/GroovyObject
17:53:58,322 ERROR [eu.scape_project.watch.plugin.PluginManager] (PluginInterface scanner timer) pronom-adaptor-0.0.3-jar-with-dependencies.jar#net.sf.json.groovy.JsonGroovyBuilder thrown NoClassDefFoundError: groovy/lang/GroovyObjectSupport
17:53:58,323 ERROR [eu.scape_project.watch.plugin.PluginManager] (PluginInterface scanner timer) pronom-adaptor-0.0.3-jar-with-dependencies.jar#net.sf.json.groovy.JsonSlurper thrown NoClassDefFoundError: groovy/lang/GroovyObjectSupport
17:53:58,336 ERROR [eu.scape_project.watch.plugin.PluginManager] (PluginInterface scanner timer) pronom-adaptor-0.0.3-jar-with-dependencies.jar#net.sf.json.test.JSONAssert thrown NoClassDefFoundError: junit/framework/Assert
17:53:58,360 ERROR [eu.scape_project.watch.plugin.PluginManager] (PluginInterface scanner timer) pronom-adaptor-0.0.3-jar-with-dependencies.jar#net.sf.json.xml.XMLSerializer$CustomElement thrown NoClassDefFoundError: nu/xom/Element
17:53:58,361 ERROR [eu.scape_project.watch.plugin.PluginManager] (PluginInterface scanner timer) pronom-adaptor-0.0.3-jar-with-dependencies.jar#net.sf.json.xml.XMLSerializer$XomSerializer thrown NoClassDefFoundError: nu/xom/Serializer
17:53:58,505 ERROR [eu.scape_project.watch.plugin.PluginManager] (PluginInterface scanner timer) pronom-adaptor-0.0.3-jar-with-dependencies.jar#net.sf.ezmorph.test.ArrayAssertions thrown NoClassDefFoundError: junit/framework/Assert
17:53:59,231 ERROR [eu.scape_project.watch.plugin.PluginManager] (PluginInterface scanner timer) email-notification-0.0.1-SNAPSHOT-jar-with-dependencies.jar#com.google.common.collect.ImmutableList$1 thrown IllegalAccessError: class com.google.common.collect.ImmutableList$1 cannot access its superclass com.google.common.collect.AbstractIndexedListIterator
17:53:59,251 ERROR [eu.scape_project.watch.plugin.PluginManager] (PluginInterface scanner timer) email-notification-0.0.1-SNAPSHOT-jar-with-dependencies.jar#com.google.common.collect.ImmutableMap$KeySet$1 thrown IllegalAccessError: class com.google.common.collect.ImmutableMap$KeySet$1 cannot access its superclass com.google.common.collect.TransformedImmutableList
17:53:59,252 ERROR [eu.scape_project.watch.plugin.PluginManager] (PluginInterface scanner timer) email-notification-0.0.1-SNAPSHOT-jar-with-dependencies.jar#com.google.common.collect.ImmutableMap$KeySet thrown IllegalAccessError: class com.google.common.collect.ImmutableMap$KeySet cannot access its superclass com.google.common.collect.ImmutableSet$TransformedImmutableSet
17:53:59,271 ERROR [eu.scape_project.watch.plugin.PluginManager] (PluginInterface scanner timer) email-notification-0.0.1-SNAPSHOT-jar-with-dependencies.jar#com.google.common.collect.ImmutableMap$Values$1 thrown IllegalAccessError: class com.google.common.collect.ImmutableMap$Values$1 cannot access its superclass com.google.common.collect.TransformedImmutableList
17:53:59,288 ERROR [eu.scape_project.watch.plugin.PluginManager] (PluginInterface scanner timer) email-notification-0.0.1-SNAPSHOT-jar-with-dependencies.jar#com.google.common.collect.Maps$TransformedEntriesMap$1$1$1 thrown IllegalAccessError: class com.google.common.collect.Maps$TransformedEntriesMap$1$1$1 cannot access its superclass com.google.common.collect.AbstractMapEntry
17:53:59,332 ERROR [eu.scape_project.watch.plugin.PluginManager] (PluginInterface scanner timer) email-notification-0.0.1-SNAPSHOT-jar-with-dependencies.jar#com.google.common.collect.Maps$NavigableKeySet thrown IllegalAccessError: class com.google.common.collect.Maps$NavigableKeySet cannot access its superclass com.google.common.collect.Maps$KeySet
17:53:59,334 ERROR [eu.scape_project.watch.plugin.PluginManager] (PluginInterface scanner timer) email-notification-0.0.1-SNAPSHOT-jar-with-dependencies.jar#com.google.common.collect.Maps$DescendingMap$1 thrown IllegalAccessError: class com.google.common.collect.Maps$DescendingMap$1 cannot access its superclass com.google.common.collect.Maps$EntrySet
17:53:59,335 ERROR [eu.scape_project.watch.plugin.PluginManager] (PluginInterface scanner timer) email-notification-0.0.1-SNAPSHOT-jar-with-dependencies.jar#com.google.common.collect.Maps$DescendingMap$2 thrown IllegalAccessError: class com.google.common.collect.Maps$NavigableKeySet cannot access its superclass com.google.common.collect.Maps$KeySet
17:53:59,336 ERROR [eu.scape_project.watch.plugin.PluginManager] (PluginInterface scanner timer) email-notification-0.0.1-SNAPSHOT-jar-with-dependencies.jar#com.google.common.collect.Maps$DescendingMap$3 thrown IllegalAccessError: class com.google.common.collect.Maps$DescendingMap$3 cannot access its superclass com.google.common.collect.Maps$Values
17:53:59,467 ERROR [eu.scape_project.watch.plugin.PluginManager] (PluginInterface scanner timer) email-notification-0.0.1-SNAPSHOT-jar-with-dependencies.jar#com.google.common.collect.ForwardingNavigableMap$StandardNavigableKeySet thrown IllegalAccessError: class com.google.common.collect.Maps$NavigableKeySet cannot access its superclass com.google.common.collect.Maps$KeySet
peshkira commented 12 years ago

Unfortunately, I cannot do anything against that. These are either dependencies of dependencies that are not needed (e.g. unused imports) that are not included in the loaded libraries (hence: NoClassDefFoundError) or IllegalAccessErrors due to inner classes found in some loaded dependencies that are probably declared as private.

Afaik, there is nothing more that we can do, except logging these errors for reference if something happens. I agree that the level of ERROR may be too much. I am ok of changing it to WARN.

Do you have any other ideas, how this can be fixed.

luis100 commented 12 years ago

If this is an expected behaviour I would prefer reducing the log level.