js-docker icon indicating copy to clipboard operation
js-docker copied to clipboard

Disable JMS

Open yoda opened this issue 2 years ago • 1 comments

Disabling JMS via helm does not disable JMS, preventing the jasper from booting. Does jasper explicitly rely on JMS from 8.0?

│ Caused by: org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.spi.CacheImplementor]                                                                                                            │
│     at org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:271)                                                                                                                            │
│     at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:233)                                                                                                                        │
│     at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:210)                                                                                                                               │
│     at org.hibernate.service.internal.SessionFactoryServiceRegistryImpl.getService(SessionFactoryServiceRegistryImpl.java:80)                                                                                                                    │
│     at org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:244)                                                                                                                                                             │
│     at org.hibernate.boot.internal.SessionFactoryBuilderImpl.build(SessionFactoryBuilderImpl.java:452)                                                                                                                                           │
│     at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:710)                                                                                                                                                               │
│     at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:726)                                                                                                                                                               │
│     at org.springframework.orm.hibernate5.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:616)                                                                                                                          │
│     at org.springframework.orm.hibernate5.LocalSessionFactoryBean.afterPropertiesSet(LocalSessionFactoryBean.java:600)                                                                                                                           │
│     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1853)                                                                                              │
│     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1790)                                                                                                 │
│     ... 108 more                                                                                                                                                                                                                                 │
│ Caused by: org.hibernate.cache.CacheException: net.sf.ehcache.CacheException: java.lang.RuntimeException: java.lang.IllegalArgumentException: Invalid broker URI: ${jasperserver.cache.jms.provider}                                             │
│     at org.hibernate.cache.ehcache.EhCacheRegionFactory.start(EhCacheRegionFactory.java:90)                                                                                                                                                      │
│     at org.hibernate.cache.spi.RegionFactory.start(RegionFactory.java:63)                                                                                                                                                                        │
│     at org.hibernate.internal.CacheImpl.<init>(CacheImpl.java:71)                                                                                                                                                                                │
│     at org.hibernate.engine.spi.CacheInitiator.initiateService(CacheInitiator.java:28)                                                                                                                                                           │
│     at org.hibernate.engine.spi.CacheInitiator.initiateService(CacheInitiator.java:20)                                                                                                                                                           │
│     at org.hibernate.service.internal.SessionFactoryServiceRegistryImpl.initiateService(SessionFactoryServiceRegistryImpl.java:59)                                                                                                               │
│     at org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:259)                                                                                                                            │
│     ... 119 more                                                                                                                                                                                                                                 │
│ Caused by: net.sf.ehcache.CacheException: java.lang.RuntimeException: java.lang.IllegalArgumentException: Invalid broker URI: ${jasperserver.cache.jms.provider}                                                                                 │
│     at net.sf.ehcache.CacheManager.init(CacheManager.java:429)                                                                                                                                                                                   │
│     at net.sf.ehcache.CacheManager.<init>(CacheManager.java:269)                                                                                                                                                                                 │
│     at org.hibernate.cache.ehcache.EhCacheRegionFactory.start(EhCacheRegionFactory.java:74)                                                                                                                                                      │
│     ... 125 more                                                                                                                                                                                                                                 │
│ Caused by: java.lang.RuntimeException: java.lang.IllegalArgumentException: Invalid broker URI: ${jasperserver.cache.jms.provider}                                                                                                                │
│     at com.jaspersoft.jasperserver.api.engine.replication.JRSActiveMQInitialContextFactory.getInitialContext(JRSActiveMQInitialContextFactory.java:104)                                                                                          │
│     at java.naming/javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:730)                                                                                                                                                      │
│     at java.naming/javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:305)                                                                                                                                                        │
│     at java.naming/javax.naming.InitialContext.init(InitialContext.java:236)                                                                                                                                                                     │
│     at java.naming/javax.naming.InitialContext.<init>(InitialContext.java:208)                                                                                                                                                                   │
│     at net.sf.ehcache.distribution.jms.JMSUtil.createInitialContext(JMSUtil.java:162)                                                                                                                                                            │
│     at net.sf.ehcache.distribution.jms.JMSCacheManagerPeerProviderFactory.createCachePeerProvider(JMSCacheManagerPeerProviderFactory.java:104)                                                                                                   │
│     at net.sf.ehcache.config.ConfigurationHelper.createCachePeerProviders(ConfigurationHelper.java:137)                                                                                                                                          │
│     at net.sf.ehcache.CacheManager.configure(CacheManager.java:787)                                                                                                                                                                              │
│     at net.sf.ehcache.CacheManager.doInit(CacheManager.java:474)                                                                                                                                                                                 │
│     at net.sf.ehcache.CacheManager.init(CacheManager.java:398)                                                                                                                                                                                   │
│     ... 127 more                                                                                                                                                                                                                                 │
│ Caused by: java.lang.IllegalArgumentException: Invalid broker URI: ${jasperserver.cache.jms.provider}                                                                                                                                            │
│     at org.apache.activemq.ActiveMQConnectionFactory.createURI(ActiveMQConnectionFactory.java:235)                                                                                                                                               │
│     at org.apache.activemq.ActiveMQConnectionFactory.setBrokerURL(ActiveMQConnectionFactory.java:453)                                                                                                                                            │
│     at org.apache.activemq.ActiveMQConnectionFactory.buildFromProperties(ActiveMQConnectionFactory.java:761)                                                                                                                                     │
│     at org.apache.activemq.jndi.JNDIBaseStorable.setProperties(JNDIBaseStorable.java:59)                                                                                                                                                         │
│     at org.apache.activemq.jndi.ActiveMQInitialContextFactory.createConnectionFactory(ActiveMQInitialContextFactory.java:210)                                                                                                                    │
│     at com.jaspersoft.jasperserver.api.engine.replication.JRSActiveMQInitialContextFactory.getInitialContext(JRSActiveMQInitialContextFactory.java:70)                                                                                           │
│     ... 137 more                                                                                                                                                                                                                                 │
│ Caused by: java.net.URISyntaxException: Illegal character in path at index 1: ${jasperserver.cache.jms.provider}                                                                                                                                 │
│     at java.base/java.net.URI$Parser.fail(URI.java:2913)                                                                                                                                                                                         │
│     at java.base/java.net.URI$Parser.checkChars(URI.java:3084)                                                                                                                                                                                   │
│     at java.base/java.net.URI$Parser.parseHierarchical(URI.java:3166)                                                                                                                                                                            │
│     at java.base/java.net.URI$Parser.parse(URI.java:3125)                                                                                                                                                                                        │
│     at java.base/java.net.URI.<init>(URI.java:600)                                                                                                                                                                                               │
│     at org.apache.activemq.ActiveMQConnectionFactory.createURI(ActiveMQConnectionFactory.java:233)                                                                                                                                               │
│     ... 142 more                                                                                                                                                                                                                                 │

yoda avatar May 20 '22 06:05 yoda

jasper rely on JMS for caching , if not needed then it has to made some changes on docker side as well and then disable from k8s . Disabling in K8s alone won't work

See the Note here https://github.com/TIBCOSoftware/js-docker/tree/main/jaspersoft-containers/Docker/jrs#repository-setup-using-docker-container-1

rreddyv-tibco avatar May 20 '22 07:05 rreddyv-tibco