Uploaded image for project: 'Subscription Watch'
  1. Subscription Watch
  2. SWATCH-1739

Squash start up warnings for SWATCH

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False

      We have a ton of warnings that show up on start up:

       

      2023-09-15 14:07:45,086 [thread=restartedMain] [WARN ] [org.hibernate.metamodel.internal.MetadataContext] - HHH015011: Unable to locate static metamodel field : o
      rg.candlepin.subscriptions.db.model.EventRecord_#event; this may or may not indicate a problem with the static metamodel                                          
      2023-09-15 14:07:45,264 [thread=restartedMain] [WARN ] [org.jboss.resteasy.resteasy_jaxrs.i18n] - RESTEASY002160: Provider instance org.candlepin.subscriptions.ex
      ception.mapper.AccessDeniedExceptionMapper is already registered.  2nd registration is being ignored.                                                             
      2023-09-15 14:07:45,266 [thread=restartedMain] [WARN ] [org.jboss.resteasy.resteasy_jaxrs.i18n] - RESTEASY002160: Provider instance org.candlepin.subscriptions.ex
      ception.mapper.BadRequestExceptionMapper is already registered.  2nd registration is being ignored.                                                               
      2023-09-15 14:07:45,268 [thread=restartedMain] [WARN ] [org.jboss.resteasy.resteasy_jaxrs.i18n] - RESTEASY002160: Provider instance org.candlepin.subscriptions.ex
      ception.mapper.ConstraintViolationExceptionMapper is already registered.  2nd registration is being ignored.                                                      
      2023-09-15 14:07:45,269 [thread=restartedMain] [WARN ] [org.jboss.resteasy.resteasy_jaxrs.i18n] - RESTEASY002160: Provider instance org.candlepin.subscriptions.ex
      ception.mapper.DefaultExceptionMapper is already registered.  2nd registration is being ignored.                                                                  
      2023-09-15 14:07:45,270 [thread=restartedMain] [WARN ] [org.jboss.resteasy.resteasy_jaxrs.i18n] - RESTEASY002160: Provider instance org.candlepin.subscriptions.ex
      ception.mapper.NotReadyExceptionMapper is already registered.  2nd registration is being ignored.                                                               
      
      2023-09-15 14:07:45,271 [thread=restartedMain] [WARN ] [org.jboss.resteasy.resteasy_jaxrs.i18n] - RESTEASY002160: Provider instance org.candlepin.subscriptions.ex
      ception.mapper.OfferingExceptionMapper is already registered.  2nd registration is being ignored.                                                               
      
      2023-09-15 14:07:45,272 [thread=restartedMain] [WARN ] [org.jboss.resteasy.resteasy_jaxrs.i18n] - RESTEASY002160: Provider instance org.candlepin.subscriptions.ex
      ception.mapper.SubscriptionsExceptionMapper is already registered.  2nd registration is being ignored.                                                 
      
      2023-09-15 14:07:45,273 [thread=restartedMain] [WARN ] [org.jboss.resteasy.resteasy_jaxrs.i18n] - RESTEASY002160: Provider instance org.candlepin.subscriptions.ex
      ception.mapper.WebApplicationExceptionMapper is already registered.  2nd registration is being ignored.
      2023-09-15 14:07:45,275 [thread=restartedMain] [WARN ] [org.jboss.resteasy.resteasy_jaxrs.i18n] - RESTEASY002160: Provider instance org.candlepin.subscriptions.r$
      steasy.ContentNegotiationRequestFilter is already registered.  2nd registration is being ignored.
      2023-09-15 14:07:45,331 [thread=restartedMain] [WARN ] [org.jboss.resteasy.resteasy_jaxrs.i18n] - RESTEASY002160: Provider instance org.candlepin.subscriptions.re
      steasy.ObjectMapperContextResolver is already registered.  2nd registration is being ignored.
      2023-09-15 14:07:45,339 [thread=restartedMain] [WARN ] [org.jboss.resteasy.resteasy_jaxrs.i18n] - RESTEASY002160: Provider instance org.candlepin.subscriptions.re
      steasy.ResteasyUriExtractionFilter is already registered.  2nd registration is being ignored.
      2023-09-15 14:07:45,344 [thread=restartedMain] [WARN ] [org.jboss.resteasy.resteasy_jaxrs.i18n] - RESTEASY002160: Provider instance org.candlepin.subscriptions.re
      steasy.ResteasyHTTPFilter is already registered.  2nd registration is being ignored.
      
      ...
      2023-09-15 14:07:48,315 [thread=restartedMain] [WARN ] [org.springframework.boot.autoconfigure.orm.jpa.JpaBaseConfiguration$JpaWebConfiguration] - spring.jpa.open
      -in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning                                                                   
      
      2023-09-15 14:07:48,415 [thread=restartedMain] [INFO ] [org.candlepin.subscriptions.security.AntiCsrfFilter] - Origin & Referer checking (anti-csrf) disabled.
      2023-09-15 14:07:48,721 [thread=Cleaner-0] [WARN ] [org.jboss.resteasy.client.jaxrs.i18n] - RESTEASY004687: Closing a class org.jboss.resteasy.client.jaxrs.engine
      s.ManualClosingApacheHttpClient43Engine$CleanupAction instance for you. Please close clients yourself.
      
      2023-09-15 14:07:48,721 [thread=Cleaner-0] [WARN ] [org.jboss.resteasy.client.jaxrs.i18n] - RESTEASY004687: Closing a class org.jboss.resteasy.client.jaxrs.engines.ManualClosingApacheHttpClient43Engine$CleanupAction instance for you. Please close clients yourself.
      
      2023-09-15 14:07:48,721 [thread=Cleaner-0] [WARN ] [org.jboss.resteasy.client.jaxrs.i18n] - RESTEASY004687: Closing a class org.jboss.resteasy.client.jaxrs.engines.ManualClosingApacheHttpClient43Engine$CleanupAction instance for you. Please close clients yourself.
      
      2023-09-15 14:07:49,528 [thread=restartedMain] [WARN ] [org.springframework.boot.devtools.autoconfigure.OptionalLiveReloadServer] - Unable to start LiveReload server
      
      2023-09-15 14:07:49,627 [thread=restartedMain] [WARN ] [org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext] - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Failed to start bean 'webServerStartStop'
      

      Done criteria:

      • Fix as many of these warnings as possible.  The RESTEASY002160 warnings should be straightforward: we just need to keep the exception handlers from being registered twice.  We can probably just remove the "@Provider" annotation since it seems Spring is autoloading them.

       

            awood1@redhat.com Alex Wood
            awood1@redhat.com Alex Wood
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: