Uploaded image for project: 'Nuxeo Enhanced Viewer'
  1. Nuxeo Enhanced Viewer
  2. NEV-326

JNI doesn't start on Openshift

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 10.3.0
    • Fix Version/s: 10.3.1, 10.4.0, nuxeo-11.0.0
    • Component/s: ARender
    • Environment:
      ARender 4.0.9.NX1.0

      Description

      After releasing the 10.3.0 and when upgrading the QA environment to this version, we've noticed that the document-renderer (or JNI) service doesn't start anymore with the following error:

      JNI - 2020-09-28 15:49:42,258 INFO [main] o.s.b.SpringApplication [SpringApplicationBannerPrinter.java:61] 
                   _              _                    _
                  /\ \           /\ \     _           /\ \
                  \ \ \         /  \ \   /\_\         \ \ \
                  /\ \_\       / /\ \ \_/ / /         /\ \_\
                 / /\/_/      / / /\ \___/ /         / /\/_/
        _       / / /        / / /  \/____/         / / /
       /\ \    / / /        / / /    / / /         / / /
       \ \_\  / / /        / / /    / / /         / / /
       / / /_/ / /        / / /    / / /      ___/ / /__
      / / /__\/ /        / / /    / / /      /\__\/_/___\
      \/_______/         \/_/     \/_/       \/_________/
      
       (v4.0.9.NX1.0)
      
      
      JNI - 2020-09-28 15:49:42,281 INFO [main] c.a.a.m.s.r.JniMicroServiceApplication [SpringApplication.java:655] The following profiles are active: security
      JNI - 2020-09-28 15:49:43,873 INFO [main] o.s.c.c.s.GenericScope [GenericScope.java:295] BeanFactory id=e3e46486-1cb1-3778-94f6-50494cb2502e
      JNI - 2020-09-28 15:49:44,358 INFO [main] o.s.b.w.e.t.TomcatWebServer [TomcatWebServer.java:92] Tomcat initialized with port(s): 9091 (http)
      JNI - 2020-09-28 15:49:44,377 INFO [main] o.a.c.h.Http11NioProtocol [DirectJDKLog.java:173] Initializing ProtocolHandler ["http-nio-0.0.0.0-9091"]
      JNI - 2020-09-28 15:49:44,378 INFO [main] o.a.c.c.StandardService [DirectJDKLog.java:173] Starting service [Tomcat]
      JNI - 2020-09-28 15:49:44,379 INFO [main] o.a.c.c.StandardEngine [DirectJDKLog.java:173] Starting Servlet engine: [Apache Tomcat/9.0.30]
      JNI - 2020-09-28 15:49:44,452 INFO [main] o.a.c.c.C.[.[.[/] [DirectJDKLog.java:173] Initializing Spring embedded WebApplicationContext
      JNI - 2020-09-28 15:49:44,460 INFO [main] o.s.w.c.ContextLoader [ServletWebServerApplicationContext.java:284] Root WebApplicationContext: initialization completed in 2124 ms
      JNI - 2020-09-28 15:49:44,881 INFO [main] c.a.a.m.s.d.c.CachedFutureObjectAccess [CachedFutureObjectAccess.java:54] Resetting cache with custom parameters !
      JNI - 2020-09-28 15:49:45,334 INFO [main] c.a.a.m.s.d.c.CachedFutureObjectAccess [CachedFutureObjectAccess.java:54] Resetting cache with custom parameters !
      JNI - 2020-09-28 15:49:45,746 INFO [main] o.s.b.a.e.w.EndpointLinksResolver [EndpointLinksResolver.java:58] Exposing 2 endpoint(s) beneath base path '/actuator'
      JNI - 2020-09-28 15:49:46,018 INFO [main] o.s.s.w.DefaultSecurityFilterChain [DefaultSecurityFilterChain.java:43] Creating filter chain: any request, [org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter@55ea2d70, org.springframework.security.web.context.SecurityContextPersistenceFilter@1b9c1b51, org.springframework.security.web.header.HeaderWriterFilter@682c1e93, org.springframework.security.web.authentication.logout.LogoutFilter@6ce90bc5, org.springframework.security.web.authentication.www.BasicAuthenticationFilter@19593091, org.springframework.security.web.savedrequest.RequestCacheAwareFilter@16fe9c29, org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter@1eea9d2d, org.springframework.security.web.authentication.AnonymousAuthenticationFilter@5e742e4, org.springframework.security.web.session.SessionManagementFilter@11653e3b, org.springframework.security.web.access.ExceptionTranslationFilter@5183d589, org.springframework.security.web.access.intercept.FilterSecurityInterceptor@4bdcaf36]
      JNI - 2020-09-28 15:49:46,042 INFO [main] s.d.s.w.PropertySourcedRequestMappingHandlerMapping [PropertySourcedRequestMappingHandlerMapping.java:69] Mapped URL path [/v2/api-docs] onto method [springfox.documentation.swagger2.web.Swagger2Controller#getDocumentation(String, HttpServletRequest)]
      JNI - 2020-09-28 15:49:46,232 INFO [main] o.s.s.c.ThreadPoolTaskExecutor [ExecutorConfigurationSupport.java:171] Initializing ExecutorService 'applicationTaskExecutor'
      JNI - 2020-09-28 15:49:46,492 INFO [main] s.d.s.w.p.DocumentationPluginsBootstrapper [DocumentationPluginsBootstrapper.java:160] Context refreshed
      JNI - 2020-09-28 15:49:46,529 INFO [main] s.d.s.w.p.DocumentationPluginsBootstrapper [DocumentationPluginsBootstrapper.java:163] Found 1 custom documentation plugin(s)
      JNI - 2020-09-28 15:49:46,567 INFO [main] s.d.s.w.s.ApiListingReferenceScanner [ApiListingReferenceScanner.java:41] Scanning for api listing references
      JNI - 2020-09-28 15:49:46,683 INFO [main] s.d.s.w.r.o.CachingOperationNameGenerator [CachingOperationNameGenerator.java:40] Generating unique operation named: evictUsingDELETE_1
      JNI - 2020-09-28 15:49:46,752 INFO [main] s.d.s.w.r.o.CachingOperationNameGenerator [CachingOperationNameGenerator.java:40] Generating unique operation named: dumpKeysetUsingGET_1
      JNI - 2020-09-28 15:49:46,774 INFO [main] s.d.s.w.r.o.CachingOperationNameGenerator [CachingOperationNameGenerator.java:40] Generating unique operation named: evictUsingDELETE_2
      JNI - 2020-09-28 15:49:46,776 INFO [main] s.d.s.w.r.o.CachingOperationNameGenerator [CachingOperationNameGenerator.java:40] Generating unique operation named: evictAllUsingDELETE_1
      JNI - 2020-09-28 15:49:46,778 INFO [main] s.d.s.w.r.o.CachingOperationNameGenerator [CachingOperationNameGenerator.java:40] Generating unique operation named: showCacheStatsUsingGET_1
      JNI - 2020-09-28 15:49:46,779 INFO [main] s.d.s.w.r.o.CachingOperationNameGenerator [CachingOperationNameGenerator.java:40] Generating unique operation named: showFutureStatsUsingGET_1
      JNI - 2020-09-28 15:49:46,946 INFO [main] o.a.c.c.StandardService [DirectJDKLog.java:173] Stopping service [Tomcat]
      JNI - 2020-09-28 15:49:46,954 INFO [main] o.s.b.a.l.ConditionEvaluationReportLoggingListener [ConditionEvaluationReportLoggingListener.java:136] 
      
      Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
      JNI - 2020-09-28 15:49:46,957 INFO [main] o.s.s.c.ThreadPoolTaskExecutor [ExecutorConfigurationSupport.java:208] Shutting down ExecutorService 'applicationTaskExecutor'
      JNI - 2020-09-28 15:49:46,964 ERROR [main] o.s.b.SpringApplication [SpringApplication.java:826] Application run failed
      java.lang.RuntimeException: Could not load native library with name prefix  : jnipdfrenderer and folders [/usr/java/packages/lib:/usr/lib64:/lib64:/lib:/usr/lib] is the property java.library.path set correctly?
      	at com.jnipdfrenderer.JniPdfRenderer.loadNativeLibrary(JniPdfRenderer.java:82)
      	at com.arondor.arender.micro.services.renderer.JniMicroServiceApplication.onApplicationEvent(JniMicroServiceApplication.java:421)
      	at com.arondor.arender.micro.services.renderer.JniMicroServiceApplication.onApplicationEvent(JniMicroServiceApplication.java:63)
      	at com.arondor.arender.micro.services.renderer.JniMicroServiceApplication$$EnhancerBySpringCGLIB$$15c8efb5.onApplicationEvent(<generated>)
      	at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172)
      	at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165)
      	at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139)
      	at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:403)
      	at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:360)
      	at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:897)
      	at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.finishRefresh(ServletWebServerApplicationContext.java:162)
      	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:553)
      	at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:141)
      	at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:747)
      	at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397)
      	at org.springframework.boot.SpringApplication.run(SpringApplication.java:315)
      	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1226)
      	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1215)
      	at com.arondor.arender.micro.services.renderer.JniMicroServiceApplication.main(JniMicroServiceApplication.java:136)
      	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.base/java.lang.reflect.Method.invoke(Method.java:567)
      	at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48)
      	at org.springframework.boot.loader.Launcher.launch(Launcher.java:87)
      	at org.springframework.boot.loader.Launcher.launch(Launcher.java:51)
      	at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:52)
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              kleturc Kevin Leturc
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: