[ 
https://issues.apache.org/jira/browse/GROOVY-8634?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Paul King closed GROOVY-8634.
-----------------------------
    Resolution: Not A Problem

As per comments, this is expected behavior. The warnings are to indicate 
modules which couldn't load on the JDK in use. They are benign if you don't 
plan to use those modules.

> New warning messages for 2.5 and Java7
> --------------------------------------
>
>                 Key: GROOVY-8634
>                 URL: https://issues.apache.org/jira/browse/GROOVY-8634
>             Project: Groovy
>          Issue Type: Bug
>         Environment: -bash-4.1$ uname -a
> Linux xxxxxxxxxxxxxxxxxx 2.6.32-696.20.1.el6.x86_64 #1 SMP Thu Jan 25 
> 15:32:38 PST 2018 x86_64 x86_64 x86_64 GNU/Linux
>            Reporter: Erick Nelson
>            Priority: Minor
>
> On a server we still have Java7 installed, I'm getting these warning 
> messages. They look like JUL logging but I'm not sure. I have the 
> jul-to-slf4j bridge installed but these messages don't seem to be rerouted so 
> I'm not sure what the source is at the moment.  I don't mind the warnings, as 
> long as I can capture and properly log them.
> {noformat}
> -bash-4.1$ /opt/apps/tools/groovy/bin/groovy -v
> Jun 04, 2018 7:03:01 AM 
> org.codehaus.groovy.runtime.m12n.MetaInfExtensionModule newModule
> WARNING: Module [groovy-datetime] - Unable to load extension class 
> [org.apache.groovy.datetime.extensions.DateTimeExtensions]
> Jun 04, 2018 7:03:01 AM 
> org.codehaus.groovy.runtime.m12n.MetaInfExtensionModule newModule
> WARNING: Module [groovy-datetime] - Unable to load extension class 
> [org.apache.groovy.datetime.extensions.DateTimeStaticExtensions]
> Groovy Version: *2.5.0* JVM*: 1.7.0_161* Vendor: Oracle Corporation OS: Linux
> {noformat}
> The bridge that I am using is...
> {code:xml}
>             <dependency>
>                         <groupId>org.slf4j</groupId>
>                         <artifactId>jul-to-slf4j</artifactId>
>                         <version>1.7.9</version>
>             </dependency>
> {code}
> And I'm invoking it in my startup with...
> {code:groovy}
>     static void createJulBridge (BaseScript script) {
>         try {
>              java.util.logging.LogManager.getLogManager().reset()
>              SLF4JBridgeHandler.removeHandlersForRootLogger()
>              SLF4JBridgeHandler.install()
>          } catch (Exception e) {
>             script._warn << "jul->slf4j bridge install error [${e.message}]"
>         }
>     }
> {code} 
> I think my problem might be that those messages are coming up before I can 
> hookup the bridge.
> Any insight on this you can give me?
> It would be nice if there was a way to suppress or delay these warnings. As 
> it is , this is keeping me from using 2.5.0.
> In the meantime I am trying to get our admins to upgrade to at least Java8... 
> but that might take some time.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to