Wildfly32 Getting issue Cannot find a parser for element 'string-keyed-jdbc-store

145 views
Skip to first unread message

Siva Teja Varun

unread,
May 29, 2024, 6:19:08 AM5/29/24
to WildFly
Hi All,
   I am trying to upgrade to Wildfly32 from wildfly29. And using Infinispan version 14.0.27 version, when trying to deploy my application war file, getting below exception.

Caused by: org.infinispan.commons.CacheConfigurationException: ISPN000327: Cannot find a parser for element 'string-keyed-jdbc-store' in namespace 'urn:infinispan:config:store:jdbc:14.0' at [12,68]. Check that your configuration is up-to-date for Infinispan '14.0.27.Final' and you have the proper dependency in the classpath"}}


If I change the scope of infinispan version jars to provided then getting exception as below

[2024-05-29 06:33:45,591] Artifact core:war: java.lang.Exception: {"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"core-23.3.11-RELEASE.war\".component.NotificationManager.START" => "java.lang.IllegalStateException: WFLYEE0042: Failed to construct component instance
    Caused by: java.lang.IllegalStateException: WFLYEE0042: Failed to construct component instance
    Caused by: jakarta.ejb.EJBException: org.jboss.weld.exceptions.WeldException: WELD-000049: Unable to invoke public void com.ca.em.sdn.gateway.broker.core.cache.CacheManager.init() on com.ca.em.sdn.gateway.broker.core.cache.CacheManager@27698f95
    Caused by: org.jboss.weld.exceptions.WeldException: WELD-000049: Unable to invoke public void com.ca.em.sdn.gateway.broker.core.cache.CacheManager.init() on com.ca.em.sdn.gateway.broker.core.cache.CacheManager@27698f95
    Caused by: java.lang.reflect.InvocationTargetException
    Caused by: org.infinispan.manager.EmbeddedCacheManagerStartupException: ISPN000659: Component ComponentWrapper{name=org.infinispan.persistence.manager.PersistenceManager, instance=org.infinispan.persistence.manager.PersistenceManagerImpl@12df7a1f, status=FAILED} failed to start
    Caused by: org.infinispan.commons.CacheConfigurationException: ISPN000659: Component ComponentWrapper{name=org.infinispan.persistence.manager.PersistenceManager, instance=org.infinispan.persistence.manager.PersistenceManagerImpl@12df7a1f, status=FAILED} failed to start
    Caused by: java.util.concurrent.CompletionException: java.lang.NullPointerException: Cannot invoke \"org.infinispan.persistence.keymappers.Key2StringMapper.getClass()\" because \"this.key2StringMapper\" is null
    Caused by: java.lang.NullPointerException: Cannot invoke \"org.infinispan.persistence.keymappers.Key2StringMapper.getClass()\" because \"this.key2StringMapper\" is null"}}


Any inputs will be highly helpful.

Paul Ferraro

unread,
May 30, 2024, 6:07:31 PM5/30/24
to WildFly
This exception appears to be coming from an Infinispan configuration bundled with your application.  Are you also bundling Infinispan in your deployment?  Or are you using the module provided by the server?

Siva Teja Varun

unread,
May 31, 2024, 2:06:39 AM5/31/24
to WildFly
Hi Paul,
  Thanks for your reply, I tried explicitly made all infinispan jars to be used from the one which were available in the server by adding provided scope to infinispan dependency definition in my application poms. Tried re-running the application on wildfly32, but still resulting in to the same exception, there is no change in the application code. And only upgraded the infinispan version to 14.0.27 in the application pom files. 


Caused by: org.infinispan.manager.EmbeddedCacheManagerStartupException: ISPN000659: Component ComponentWrapper{name=org.infinispan.persistence.manager.PersistenceManager, instance=org.infinispan.persistence.manager.PersistenceManagerImpl@463339b5, status=FAILED} failed to start
at org.infin...@14.0.27.Final//org.infinispan.manager.DefaultCacheManager.internalStart(DefaultCacheManager.java:782)
at org.infin...@14.0.27.Final//org.infinispan.manager.DefaultCacheManager.start(DefaultCacheManager.java:747)
at org.infin...@14.0.27.Final//org.infinispan.manager.DefaultCacheManager.<init>(DefaultCacheManager.java:411)
at org.infin...@14.0.27.Final//org.infinispan.manager.DefaultCacheManager.<init>(DefaultCacheManager.java:357)
at org.infin...@14.0.27.Final//org.infinispan.manager.DefaultCacheManager.<init>(DefaultCacheManager.java:332)
at org.infin...@14.0.27.Final//org.infinispan.manager.DefaultCacheManager.<init>(DefaultCacheManager.java:320)
at deployment.core-23.3.11-RELEASE.war//com.ca.em.sdn.gateway.broker.core.cache.CacheManager.getInitializeCacheManager(CacheManager.java:70)
at deployment.core-23.3.11-RELEASE.war//com.ca.em.sdn.gateway.broker.core.cache.CacheManager.init(CacheManager.java:44)
... 81 more
Caused by: org.infinispan.commons.CacheConfigurationException: ISPN000659: Component ComponentWrapper{name=org.infinispan.persistence.manager.PersistenceManager, instance=org.infinispan.persistence.manager.PersistenceManagerImpl@463339b5, status=FAILED} failed to start
at org.infin...@14.0.27.Final//org.infinispan.factories.impl.BasicComponentRegistryImpl.startWrapper(BasicComponentRegistryImpl.java:584)

Siva Teja Varun

unread,
May 31, 2024, 2:07:59 AM5/31/24
to WildFly
Just to add little more the stack trace

Caused by: java.lang.NullPointerException: Cannot invoke "org.infinispan.persistence.keymappers.Key2StringMapper.getClass()" because "this.key2StringMapper" is null
at org.infinispan....@14.0.27.Final//org.infinispan.persistence.jdbc.stringbased.JdbcStringBasedStore.enforceTwoWayMapper(JdbcStringBasedStore.java:406)
at org.infinispan....@14.0.27.Final//org.infinispan.persistence.jdbc.stringbased.JdbcStringBasedStore.createTableOperations(JdbcStringBasedStore.java:177)
at org.infinispan....@14.0.27.Final//org.infinispan.persistence.jdbc.stringbased.JdbcStringBasedStore.createTableOperations(JdbcStringBasedStore.java:83)
at org.infinispan....@14.0.27.Final//org.infinispan.persistence.jdbc.common.impl.BaseJdbcStore.lambda$start$0(BaseJdbcStore.java:72)
at java.base/java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1804)

Siva Teja Varun

unread,
Jun 3, 2024, 5:50:50 AM6/3/24
to WildFly
Hi All,
  I tried upgrading to the latest version of wildfly i.e. 32.0.1 as saw some link errors have been fixed. But with 32.0.1 as well no luck with me.

I ran the same application code on wildfly 30, its running perfectly fine with out any issues. 
When upgrading to 32 performed only below two actions 
1. There was a hibernate issue which was mandating to have insertable=false, so made changes to include this clause too in the annotation   @JoinTable for  joinColumns attribute
2. Faced one more Hibernate related issue where it was mandating to have the SQL column type to be ENUM where the java class is having type as Enum, so updated  the column type in DB to ENUM type

Then started seeing issues as below which I used to get for wildfly 32 aswell, its not clear where the issue is coming and In the code (dependencies) I see the classes are present and implementing Key2StringMapper. Not sure why this error is coming specifically w.r.to wildfly 32. As suggested in earlier posts, tried with scope of the infinispan jars in pom (with provided / with out provided) but no luck with that too.

Attached Full Stacktrace for reference.

wildfly32_errors.txt
Reply all
Reply to author
Forward
0 new messages