• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Errors on Shutdown - java.lang.NoSuchMethodError: org.slf4j.spi.LocationAwareLogger.log

Explorer ,
Nov 19, 2014 Nov 19, 2014

Copy link to clipboard

Copied

Hi,

I'm running CF11 deployed in JEE configuration (as a war file on "Vanilla" Tomcat 7.0.57).  Oracle Java 1.7.0_71 

It seems to be functioning correctly but it fails to shutdown cleanly.  In particular there is two errors in the error log each time.  The first one:

INFO: A valid shutdown command was received via the shutdown port. Stopping the Server instance.

Nov 20, 2014 10:45:27 AM org.apache.coyote.AbstractProtocol pause

INFO: Pausing ProtocolHandler ["http-bio-8680"]

Nov 20, 2014 10:45:27 AM org.apache.coyote.AbstractProtocol pause

INFO: Pausing ProtocolHandler ["ajp-bio-8609"]

Nov 20, 2014 10:45:27 AM org.apache.catalina.core.StandardService stopInternal

INFO: Stopping service Catalina

Nov 20, 2014 10:45:32 AM Information [localhost-startStop-2] - Stopping Monitoring Server.

Exception in thread "qtp1802875397-63" Exception in thread "qtp1802875397-64" java.lang.NoSuchMethodError: org.slf4j.spi.LocationAwareLogger.log(Lorg/slf4j/Marker;Ljava/lang/String;ILjava/lang/String;[Ljava/lang/Object;Ljava/lang/Throwable;)V

    at org.eclipse.jetty.util.log.JettyAwareLogger.log(JettyAwareLogger.java:607)

    at org.eclipse.jetty.util.log.JettyAwareLogger.warn(JettyAwareLogger.java:431)

    at org.eclipse.jetty.util.log.Slf4jLog.warn(Slf4jLog.java:69)

    at org.eclipse.jetty.util.log.Slf4jLog.warn(Slf4jLog.java:64)

    at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:582)

    at java.lang.Thread.run(Thread.java:745)

java.lang.NoSuchMethodError: org.slf4j.spi.LocationAwareLogger.log(Lorg/slf4j/Marker;Ljava/lang/String;ILjava/lang/String;[Ljava/lang/Object;Ljava/lang/Throwable;)V

    at org.eclipse.jetty.util.log.JettyAwareLogger.log(JettyAwareLogger.java:607)

    at org.eclipse.jetty.util.log.JettyAwareLogger.warn(JettyAwareLogger.java:431)

    at org.eclipse.jetty.util.log.Slf4jLog.warn(Slf4jLog.java:69)

    at org.eclipse.jetty.util.log.Slf4jLog.warn(Slf4jLog.java:64)

    at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:582)

    at java.lang.Thread.run(Thread.java:745)

Nov 20, 2014 10:45:32 AM Information [localhost-startStop-2] - ColdFusion stopped


And then:

Nov 20, 2014 10:45:32 AM org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks

SEVERE: The web application [] created a ThreadLocal with key of type [coldfusion.util.DateUtils$1] (value [coldfusion.util.DateUtils$1@d45e275]) and a value of type [java.util.GregorianCalendar] (value [java.util.GregorianCalendar[time=1416440704724,areFieldsSet=true,areAllFieldsSet=true,lenient=false,zone=sun.util.calendar.ZoneInfo[id="Australia/ACT",offset=36000000,dstSavings=3600000,useDaylight=true,transitions=142,lastRule=java.util.SimpleTimeZone[id=Australia/ACT,offset=36000000,dstSavings=3600000,useDaylight=true,startYear=0,startMode=3,startMonth=9,startDay=1,startDayOfWeek=1,startTime=7200000,startTimeMode=1,endMode=3,endMonth=3,endDay=1,endDayOfWeek=1,endTime=7200000,endTimeMode=1]],firstDayOfWeek=1,minimalDaysInFirstWeek=1,ERA=1,YEAR=2014,MONTH=10,WEEK_OF_YEAR=47,WEEK_OF_MONTH=4,DAY_OF_MONTH=20,DAY_OF_YEAR=324,DAY_OF_WEEK=5,DAY_OF_WEEK_IN_MONTH=3,AM_PM=0,HOUR=10,HOUR_OF_DAY=10,MINUTE=45,SECOND=4,MILLISECOND=724,ZONE_OFFSET=36000000,DST_OFFSET=3600000]]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.

Nov 20, 2014 10:45:32 AM org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks

SEVERE: The web application [] created a ThreadLocal with key of type [coldfusion.util.DateUtils$1] (value [coldfusion.util.DateUtils$1@d45e275]) and a value of type [java.util.GregorianCalendar] (value [java.util.GregorianCalendar[time=1416440704384,areFieldsSet=true,areAllFieldsSet=true,lenient=false,zone=sun.util.calendar.ZoneInfo[id="Australia/ACT",offset=36000000,dstSavings=3600000,useDaylight=true,transitions=142,lastRule=java.util.SimpleTimeZone[id=Australia/ACT,offset=36000000,dstSavings=3600000,useDaylight=true,startYear=0,startMode=3,startMonth=9,startDay=1,startDayOfWeek=1,startTime=7200000,startTimeMode=1,endMode=3,endMonth=3,endDay=1,endDayOfWeek=1,endTime=7200000,endTimeMode=1]],firstDayOfWeek=1,minimalDaysInFirstWeek=1,ERA=1,YEAR=2014,MONTH=10,WEEK_OF_YEAR=47,WEEK_OF_MONTH=4,DAY_OF_MONTH=20,DAY_OF_YEAR=324,DAY_OF_WEEK=5,DAY_OF_WEEK_IN_MONTH=3,AM_PM=0,HOUR=10,HOUR_OF_DAY=10,MINUTE=45,SECOND=4,MILLISECOND=384,ZONE_OFFSET=36000000,DST_OFFSET=3600000]]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.


The second issue seems fairly widely experienced (and AFAIK there is no resolution except to ignore it).  The first issue I haven't seen anyone else report.


My main concern is that the service then leaves processes which haven't been terminated, and need to be manually killed (otherwise I cannot restart ColdFusion and get JVM bind errors as various ports are still in use).  This does not leave me feeling particularly confident of deploying this into production.


Has anyone else experienced the first issue and have a fix?

Andrew.

Views

1.0K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Nov 20, 2014 Nov 20, 2014

Copy link to clipboard

Copied

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Dec 09, 2014 Dec 09, 2014

Copy link to clipboard

Copied

LATEST

Thanks for replying.  Unfortunately that thread seems to suggest quite a few other people have this error and dont' have a solution also.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation