> On Apr 2, 2025, at 1:06 PM, Surjan Rawat <[email protected]> wrote: > > Hi All, > > After failing to run ranger 2.3.0 with jdk11, I tried with > release-ranger-2.5.0 but getting some REST Service initialization error > pointing to conflicting jersey-asm. Did anyone face this issue? How to make > the jdk11 based docker image run in kube ? Any pointers will be helpful. > > Steps followed > 1. Build docker image for ranger-base and ranger > docker build --platform linux/amd64 --build-arg UBUNTU_VERSION=20.04 > --build-arg RANGER_BASE_JAVA_VERSION=11 --build-arg TARGETARCH=amd64 -t > ranger-base2.5-jdk11:amd2 -f > /apache-ranger/dev-support/ranger-docker/Dockerfile.ranger-base . > > docker build --platform linux/amd64 --build-arg RANGER_ADMIN_JAVA_VERSION=11 > --build-arg TARGETARCH=amd64 --build-arg RANGER_VERSION=2.5.0 --build-arg > RANGER_DB_TYPE=postgres -t /ranger2.5-jdk11:amdLocalv5 -f > /apache-ranger/dev-support/ranger-docker/Dockerfile.ranger . > > 2. Deployed the docker image using kubectl > > 3. Kube pod shows log > ``` > 2025-04-02 18:30:08,373 [I] Ranger all admins default password has already > been changed!! > Installation of Ranger PolicyManager Web Application is completed. > Starting Apache Ranger Admin Service > Apache Ranger Admin Service with pid 1537 has started. > > But the Catalan.out shows the Servlet initialization failure at > jersey.repackaged.org.objectweb.asm.ClassReader.<init>(ClassReader.java:170) > > ``` > Apr 02, 2025 6:30:13 PM org.apache.catalina.core.ApplicationContext log > INFO: Initializing Spring root WebApplicationContext > Apr 02, 2025 6:30:39 PM com.sun.jersey.api.core.PackagesResourceConfig init > INFO: Scanning for root resource and provider classes in the packages: > org.apache.ranger.rest > org.apache.ranger.common > xa.rest > Apr 02, 2025 6:30:39 PM org.apache.catalina.core.ApplicationContext log > SEVERE: Servlet.init() for servlet [REST Service] threw exception > java.lang.IllegalArgumentException > at > jersey.repackaged.org.objectweb.asm.ClassReader.<init>(ClassReader.java:170) > at > jersey.repackaged.org.objectweb.asm.ClassReader.<init>(ClassReader.java:153) > at > jersey.repackaged.org.objectweb.asm.ClassReader.<init>(ClassReader.java:424) > at > com.sun.jersey.spi.scanning.AnnotationScannerListener.onProcess(AnnotationScannerListener.java:138) > at > com.sun.jersey.core.spi.scanning.uri.FileSchemeScanner$1.f(FileSchemeScanner.java:86) > at com.sun.jersey.core.util.Closing.f(Closing.java:71) > at > com.sun.jersey.core.spi.scanning.uri.FileSchemeScanner.scanDirectory(FileSchemeScanner.java:83) > at > com.sun.jersey.core.spi.scanning.uri.FileSchemeScanner.scan(FileSchemeScanner.java:71) > at > com.sun.jersey.core.spi.scanning.PackageNamesScanner.scan(PackageNamesScanner.java:226) > at > com.sun.jersey.core.spi.scanning.PackageNamesScanner.scan(PackageNamesScanner.java:142) > at > com.sun.jersey.api.core.ScanningResourceConfig.init(ScanningResourceConfig.java:80) > at > com.sun.jersey.api.core.PackagesResourceConfig.init(PackagesResourceConfig.java:104) > at > com.sun.jersey.api.core.PackagesResourceConfig.<init>(PackagesResourceConfig.java:78) > at > com.sun.jersey.api.core.PackagesResourceConfig.<init>(PackagesResourceConfig.java:89) > at > com.sun.jersey.spi.container.servlet.WebComponent.createResourceConfig(WebComponent.java:696) > at > com.sun.jersey.spi.container.servlet.WebComponent.createResourceConfig(WebComponent.java:674) > at > com.sun.jersey.spi.container.servlet.WebComponent.init(WebComponent.java:205) > at > com.sun.jersey.spi.container.servlet.ServletContainer.init(ServletContainer.java:394) > at > com.sun.jersey.spi.container.servlet.ServletContainer.init(ServletContainer.java:577) > at javax.servlet.GenericServlet.init(GenericServlet.java:143) > at > org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1109) > at > org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1061) > at > org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:958) > at > org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4625) > at > org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4933) > at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:171) > at > org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1364) > at > org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1354) > at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) > at > java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) > at > java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) > at java.base/java.lang.Thread.run(Thread.java:829) > > Apr 02, 2025 6:30:39 PM org.apache.catalina.core.StandardContext loadOnStartup > ``` > > > Thanks > >> >> >> >> Hi All, >> >> I am running into issue when I try to run the Apache Ranger 2.3.0 version >> docker image built with jdk11 profile. Any suggestions/pointers? >> >> 1. Maven command used >> ./mvnw clean package -Pranger-jdk11 -Dmaven.test.skip=true >> >> 2. Pom.xml change >> <java.version.required>1.11</java.version.required> >> <javac.source.version>1.11</javac.source.version> >> <javac.target.version>1.11</javac.target.version> >> <maven.compiler.source>1.11</maven.compiler.source> >> <maven.compiler.target>1.11</maven.compiler.target >> >> >> 3. Error Logs in catalina.out. the Admin server PID is printed but the >> service does not accept any http request. >> >> Starting Apache Ranger Admin Service Apache Ranger Admin Service with pid >> 1619 has started. //ranger pod logs >> >> cat /var/log/ranger/catalina.out >> root@dev-my-ranger-jdk11-7d64846db7-h79fh:/# cat >> /var/log/ranger/catalina.out >> [0.001s][warning][gc] -Xloggc is deprecated. Will use >> -Xlog:gc:/opt/ranger/ranger-2.3.0-admin/ews/logs/gc-worker.log instead. >> [0.001s][warning][gc] -XX:+PrintGCDetails is deprecated. Will use -Xlog:gc* >> instead. >> [0.014s][info ][gc] Using G1 >> SLF4J: Class path contains multiple SLF4J bindings. >> SLF4J: Found binding in >> [jar:file:/opt/ranger/ranger-2.3.0-admin/ews/lib/logback-classic-1.2.10.jar!/org/slf4j/impl/StaticLoggerBinder.class] >> SLF4J: Found binding in >> [jar:file:/opt/ranger/ranger-2.3.0-admin/ews/webapp/WEB-INF/lib/logback-classic-1.2.10.jar!/org/slf4j/impl/StaticLoggerBinder.class] >> SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an >> explanation. >> SLF4J: Actual binding is of type >> [ch.qos.logback.classic.util.ContextSelectorStaticBinder] >> [1.011s][info ][gc] GC(0) Pause Young (Normal) (G1 Evacuation Pause) >> 71M->40M(1024M) 11.506ms >> Apr 01, 2025 5:37:45 AM org.apache.ranger.server.tomcat.EmbeddedServer >> getKeyManagers >> WARNING: Unable to read credential from credential store file >> [/opt/ranger/admin/ews/webapp/WEB-INF/classes/conf/.jceks/rangeradmin.jcek] >> for given alias:keyStoreCredentialAlias >> Apr 01, 2025 5:37:46 AM org.apache.ranger.server.tomcat.EmbeddedServer >> getTrustManagers >> WARNING: Config 'ranger.truststore.file' is not found or contains blank >> value! >> Apr 01, 2025 5:37:46 AM org.apache.ranger.server.tomcat.EmbeddedServer start >> INFO: Deriving webapp folder from catalina.base property. >> folder=/opt/ranger/ranger-2.3.0-admin/ews/webapp >> Apr 01, 2025 5:37:46 AM org.apache.ranger.server.tomcat.EmbeddedServer start >> INFO: Webapp file =/opt/ranger/ranger-2.3.0-admin/ews/webapp, webAppName = / >> Apr 01, 2025 5:37:46 AM org.apache.ranger.server.tomcat.EmbeddedServer start >> INFO: Adding webapp [/] = path [/opt/ranger/ranger-2.3.0-admin/ews/webapp] >> ..... >> Apr 01, 2025 5:37:46 AM org.apache.catalina.core.StandardContext setPath >> WARNING: A context path must either be an empty string or start with a '/' >> and do not end with a '/'. The path [/] does not meet these criteria and has >> been changed to [] >> Apr 01, 2025 5:37:46 AM org.apache.ranger.server.tomcat.EmbeddedServer start >> INFO: Finished init of webapp [/] = path >> [/opt/ranger/ranger-2.3.0-admin/ews/webapp]. >> Apr 01, 2025 5:37:46 AM org.apache.ranger.server.tomcat.EmbeddedServer start >> INFO: Name is empty. Setting Name Rule as 'DEFAULT' >> Apr 01, 2025 5:37:46 AM org.apache.ranger.server.tomcat.EmbeddedServer >> startServer >> INFO: Server Name : rangeradmin >> Apr 01, 2025 5:37:46 AM >> org.apache.ranger.server.tomcat.SolrCollectionBootstrapper <init> >> INFO: Starting Solr Setup >> Apr 01, 2025 5:37:46 AM >> org.apache.ranger.server.tomcat.SolrCollectionBootstrapper <init> >> INFO: AUTHENTICATION_TYPE : null >> Apr 01, 2025 5:37:46 AM >> org.apache.ranger.server.tomcat.SolrCollectionBootstrapper <init> >> INFO: Solr Collection name provided is : ranger_audits >> Apr 01, 2025 5:37:46 AM >> org.apache.ranger.server.tomcat.SolrCollectionBootstrapper <init> >> INFO: Solr Config name provided is : ranger_audits >> Apr 01, 2025 5:37:46 AM >> org.apache.ranger.server.tomcat.SolrCollectionBootstrapper <init> >> INFO: No. of replicas provided is : 1 >> Apr 01, 2025 5:37:46 AM >> org.apache.ranger.server.tomcat.SolrCollectionBootstrapper <init> >> INFO: Max no of nodes per shards provided is : 1 >> Apr 01, 2025 5:37:46 AM >> org.apache.ranger.server.tomcat.SolrCollectionBootstrapper <init> >> INFO: Solr time interval provided is : 60000 >> Apr 01, 2025 5:37:46 AM >> org.apache.ranger.server.tomcat.SolrCollectionBootstrapper <init> >> INFO: Provided custom configSet location : null >> Apr 01, 2025 5:37:46 AM >> org.apache.ranger.server.tomcat.SolrCollectionBootstrapper run >> INFO: Started run method >> Apr 01, 2025 5:37:46 AM >> org.apache.ranger.server.tomcat.SolrCollectionBootstrapper run >> SEVERE: Solr ZKHosts for Audit are empty. Please set property >> ranger.audit.solr.zookeepers >> Apr 01, 2025 5:37:46 AM org.apache.coyote.AbstractProtocol init >> INFO: Initializing ProtocolHandler ["http-nio-6080"] >> Apr 01, 2025 5:37:46 AM org.apache.catalina.core.StandardService >> startInternal >> INFO: Starting service [Tomcat] >> Apr 01, 2025 5:37:46 AM org.apache.catalina.core.StandardEngine startInternal >> INFO: Starting Servlet engine: [Apache Tomcat/8.5.78] >> [1.683s][info ][gc] GC(1) Pause Young (Normal) (G1 Evacuation Pause) >> 84M->43M(1024M) 10.878ms >> Apr 01, 2025 5:37:46 AM org.apache.catalina.startup.ContextConfig >> getDefaultWebXmlFragment >> INFO: No global web.xml found >> SLF4J: Class path contains multiple SLF4J bindings. >> SLF4J: Found binding in >> [jar:file:/opt/ranger/ranger-2.3.0-admin/ews/webapp/WEB-INF/lib/logback-classic-1.2.10.jar!/org/slf4j/impl/StaticLoggerBinder.class] >> SLF4J: Found binding in >> [jar:file:/opt/ranger/ranger-2.3.0-admin/ews/lib/logback-classic-1.2.10.jar!/org/slf4j/impl/StaticLoggerBinder.class] >> SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an >> explanation. >> SLF4J: Actual binding is of type >> [ch.qos.logback.classic.util.ContextSelectorStaticBinder] >> Apr 01, 2025 5:37:49 AM org.apache.jasper.servlet.TldScanner scanJars >> INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable >> debug logging for this logger for a complete list of JARs that were scanned >> but no TLDs were found in them. Skipping unneeded JARs during scanning can >> improve startup time and JSP compilation time. >> Apr 01, 2025 5:37:49 AM org.apache.catalina.core.ApplicationContext log >> INFO: No Spring WebApplicationInitializer types detected on classpath >> Apr 01, 2025 5:37:49 AM org.apache.catalina.core.ApplicationContext log >> INFO: Initializing Spring root WebApplicationContext >> [7.293s][info ][gc] GC(9) Pause Young (Normal) (G1 Evacuation Pause) >> 657M->55M(1024M) 11.282ms >> WARNING: An illegal reflective access operation has occurred >> WARNING: Illegal reflective access by >> org.eclipse.persistence.internal.security.PrivilegedAccessHelper >> (file:/opt/ranger/ranger-2.3.0-admin/ews/webapp/WEB-INF/lib/eclipselink-2.5.2.jar) >> to method >> com.sun.org.apache.xerces.internal.dom.CoreDocumentImpl.getXmlEncoding() >> WARNING: Please consider reporting this to the maintainers of >> org.eclipse.persistence.internal.security.PrivilegedAccessHelper >> WARNING: Use --illegal-access=warn to enable warnings of further illegal >> reflective access operations >> WARNING: All illegal access operations will be denied in a future release >> Apr 01, 2025 5:37:53 AM org.apache.catalina.core.StandardContext >> listenerStart >> SEVERE: Exception sending context initialized event to listener instance of >> class [org.springframework.web.context.ContextLoaderListener] >> org.springframework.beans.factory.BeanCreationException: Error creating bean >> with name 'defaultEntityManagerFactory' defined in ServletContext resource >> [/META-INF/applicationContext.xml]: Invocation of init method failed; nested >> exception is javax.persistence.PersistenceException: Exception >> [EclipseLink-28018] (Eclipse Persistence Services - >> 2.5.2.v20140319-9ad6abd): >> org.eclipse.persistence.exceptions.EntityManagerSetupException >> Exception Description: Predeployment of PersistenceUnit [defaultPU] failed. >> Internal Exception: Exception [EclipseLink-7161] (Eclipse Persistence >> Services - 2.5.2.v20140319-9ad6abd): >> org.eclipse.persistence.exceptions.ValidationException >> Exception Description: Entity class [class >> org.apache.ranger.entity.XXAccessAuditV4] has no primary key specified. It >> should define either an @Id, @EmbeddedId or an @IdClass. If you have defined >> PK using any of these annotations then make sure that you do not have mixed >> access-type (both fields and properties annotated) in your entity class >> hierarchy. >> at >> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1804) >> at >> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:620) >> at >> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542) >> at >> org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) >> at >> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) >> at >> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) >> at >> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208) >> at >> org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1154) >> at >> org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:908) >> at >> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583) >> at >> org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:401) >> at >> org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:292) >> at >> org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:103) >> at >> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4763) >> at >> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5232) >> at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) >> at >> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1427) >> at >> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1417) >> at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) >> at >> java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) >> at >> java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) >> at java.base/java.lang.Thread.run(Thread.java:829) >> Caused by: javax.persistence.PersistenceException: Exception >> [EclipseLink-28018] (Eclipse Persistence Services - >> 2.5.2.v20140319-9ad6abd): >> org.eclipse.persistence.exceptions.EntityManagerSetupException >> Exception Description: Predeployment of PersistenceUnit [defaultPU] failed. >> Internal Exception: Exception [EclipseLink-7161] (Eclipse Persistence >> Services - 2.5.2.v20140319-9ad6abd): >> org.eclipse.persistence.exceptions.ValidationException >> Exception Description: Entity class [class >> org.apache.ranger.entity.XXAccessAuditV4] has no primary key specified. It >> should define either an @Id, @EmbeddedId or an @IdClass. If you have defined >> PK using any of these annotations then make sure that you do not have mixed >> access-type (both fields and properties annotated) in your entity class >> hierarchy. >> at >> org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.createPredeployFailedPersistenceException(EntityManagerSetupImpl.java:1954) >> at >> org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.predeploy(EntityManagerSetupImpl.java:1945) >> at >> org.eclipse.persistence.jpa.PersistenceProvider.createContainerEntityManagerFactory(PersistenceProvider.java:322) >> at >> org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:365) >> at >> org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.buildNativeEntityManagerFactory(AbstractEntityManagerFactoryBean.java:409) >> at >> org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:396) >> at >> org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.afterPropertiesSet(LocalContainerEntityManagerFactoryBean.java:341) >> at >> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1863) >> at >> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1800) >> ... 21 more >> Caused by: Exception [EclipseLink-28018] (Eclipse Persistence Services - >> 2.5.2.v20140319-9ad6abd): >> org.eclipse.persistence.exceptions.EntityManagerSetupException >> Exception Description: Predeployment of PersistenceUnit [defaultPU] failed. >> Internal Exception: Exception [EclipseLink-7161] (Eclipse Persistence >> Services - 2.5.2.v20140319-9ad6abd): >> org.eclipse.persistence.exceptions.ValidationException >> Exception Description: Entity class [class >> org.apache.ranger.entity.XXAccessAuditV4] has no primary key specified. It >> should define either an @Id, @EmbeddedId or an @IdClass. If you have defined >> PK using any of these annotations then make sure that you do not have mixed >> access-type (both fields and properties annotated) in your entity class >> hierarchy. >> at >> org.eclipse.persistence.exceptions.EntityManagerSetupException.predeployFailed(EntityManagerSetupException.java:230) >> ... 30 more >> Caused by: Exception [EclipseLink-7161] (Eclipse Persistence Services - >> 2.5.2.v20140319-9ad6abd): >> org.eclipse.persistence.exceptions.ValidationException >> Exception Description: Entity class [class >> org.apache.ranger.entity.XXAccessAuditV4] has no primary key specified. It >> should define either an @Id, @EmbeddedId or an @IdClass. If you have defined >> PK using any of these annotations then make sure that you do not have mixed >> access-type (both fields and properties annotated) in your entity class >> hierarchy. >> at >> org.eclipse.persistence.exceptions.ValidationException.noPrimaryKeyAnnotationsFound(ValidationException.java:1422) >> at >> org.eclipse.persistence.internal.jpa.metadata.accessors.classes.EntityAccessor.validatePrimaryKey(EntityAccessor.java:1536) >> at >> org.eclipse.persistence.internal.jpa.metadata.accessors.classes.EntityAccessor.processMappingAccessors(EntityAccessor.java:1243) >> at >> org.eclipse.persistence.internal.jpa.metadata.accessors.classes.EntityAccessor.process(EntityAccessor.java:697) >> at >> org.eclipse.persistence.internal.jpa.metadata.MetadataProject.processStage2(MetadataProject.java:1793) >> at >> org.eclipse.persistence.internal.jpa.metadata.MetadataProcessor.processORMMetadata(MetadataProcessor.java:576) >> at >> org.eclipse.persistence.internal.jpa.deployment.PersistenceUnitProcessor.processORMetadata(PersistenceUnitProcessor.java:585) >> at >> org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.predeploy(EntityManagerSetupImpl.java:1869) >> ... 28 more >> >> Apr 01, 2025 5:37:53 AM org.apache.catalina.core.StandardContext >> startInternal >> SEVERE: One or more listeners failed to start. Full details will be found in >> the appropriate container log file >> Apr 01, 2025 5:37:53 AM org.apache.catalina.core.StandardContext >> startInternal >> SEVERE: Context [] startup failed due to previous errors >> Apr 01, 2025 5:37:53 AM org.apache.catalina.core.ApplicationContext log >> INFO: Closing Spring root WebApplicationContext >> Apr 01, 2025 5:37:53 AM org.apache.catalina.loader.WebappClassLoaderBase >> clearReferencesJdbc >> WARNING: The web application [ROOT] registered the JDBC driver >> [org.apache.solr.client.solrj.io.sql.DriverImpl] but failed to unregister it >> when the web application was stopped. To prevent a memory leak, the JDBC >> Driver has been forcibly unregistered. >> Apr 01, 2025 5:37:53 AM org.apache.catalina.loader.WebappClassLoaderBase >> clearReferencesJdbc >> WARNING: The web application [ROOT] registered the JDBC driver >> [org.postgresql.Driver] but failed to unregister it when the web application >> was stopped. To prevent a memory leak, the JDBC Driver has been forcibly >> unregistered. >> Apr 01, 2025 5:37:53 AM org.apache.catalina.loader.WebappClassLoaderBase >> clearReferencesThreads >> WARNING: The web application [ROOT] appears to have started a thread named >> [org.apache.hadoop.fs.FileSystem$Statistics$StatisticsDataReferenceCleaner] >> but has failed to stop it. This is very likely to create a memory leak. >> Stack trace of thread: >> [email protected]/java.lang.Object.wait(Native Method) >> >> [email protected]/java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:155) >> >> [email protected]/java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:176) >> >> org.apache.hadoop.fs.FileSystem$Statistics$StatisticsDataReferenceCleaner.run(FileSystem.java:3889) >> [email protected]/java.lang.Thread.run(Thread.java:829) >> Apr 01, 2025 5:37:53 AM org.apache.catalina.loader.WebappClassLoaderBase >> clearReferencesObjectStreamClassCaches >> WARNING: Failed to clear soft references from ObjectStreamClass$Caches for >> web application [ROOT] >> java.lang.ClassCastException: class java.io.ObjectStreamClass$Caches$1 >> cannot be cast to class java.util.Map (java.io.ObjectStreamClass$Caches$1 >> and java.util.Map are in module java.base of loader 'bootstrap') >> at >> org.apache.catalina.loader.WebappClassLoaderBase.clearCache(WebappClassLoaderBase.java:2342) >> at >> org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesObjectStreamClassCaches(WebappClassLoaderBase.java:2317) >> at >> org.apache.catalina.loader.WebappClassLoaderBase.clearReferences(WebappClassLoaderBase.java:1680) >> at >> org.apache.catalina.loader.WebappClassLoaderBase.stop(WebappClassLoaderBase.java:1610) >> at >> org.apache.catalina.loader.WebappLoader.stopInternal(WebappLoader.java:455) >> at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:257) >> at >> org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5505) >> at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:257) >> at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:187) >> at >> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1427) >> at >> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1417) >> at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) >> at >> java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) >> at >> java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) >> at java.base/java.lang.Thread.run(Thread.java:829) >> >> Apr 01, 2025 5:37:53 AM org.apache.catalina.loader.WebappClassLoaderBase >> checkThreadLocalMapForLeaks >> SEVERE: The web application [ROOT] created a ThreadLocal with key of type >> [org.apache.htrace.core.Tracer.ThreadLocalContext] (value >> [org.apache.htrace.core.Tracer$ThreadLocalContext@5078fff5]) and a value of >> type [org.apache.htrace.core.Tracer.ThreadContext] (value >> [org.apache.htrace.core.Tracer$ThreadContext@266b8233]) 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. >> Apr 01, 2025 5:37:53 AM org.apache.catalina.loader.WebappClassLoaderBase >> checkThreadLocalMapForLeaks >> SEVERE: The web application [ROOT] created a ThreadLocal with key of type >> [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@17cddde7]) and a value >> of type [org.apache.hadoop.fs.FileSystem.Statistics.StatisticsData] (value >> [11850 bytes read, 0 bytes written, 0 read ops, 0 large read ops, 0 write >> ops]) 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. >> Apr 01, 2025 5:37:53 AM org.apache.coyote.AbstractProtocol start >> INFO: Starting ProtocolHandler ["http-nio-6080"] >> root@dev-my-ranger-jdk11-7d64846db7-h79fh:/# >> >> >
Re: [Ranger-users] Error while trying to run apache ranger2.5.0 with jdk11
Surjan Rawat via Ranger-users Wed, 02 Apr 2025 14:57:41 -0700
- Re: [Ranger-users] Error while trying to run... Surjan Rawat via Ranger-users
