How to solve 'No matching XNIO provider found' exception, faced while creation of InitialContext in JMS client code of BPMS 6 ?
Issue
BPMS 6supports the use ofJMS messagesfor starting and managingbusiness processesas well as managingHuman Tasksthrough command request messages [1]. However, when creating theInitialContextat runtime the standaloneJMS clientcode throwsNo matching XNIO provider foundexception as shown below. How to fix this issue?
...
Caused by: java.lang.RuntimeException: Unable to create InitialContext
at: com.sample.test.InitialContextCreation.getRemoteInitialContext(InitialContextCreation.java:167)
...
Caused by: javax.naming.NamingException: Failed to create remoting connection [Root exception is java.lang.IllegalArgumentException: No matching XNIO provider found]
at org.jboss.naming.remote.client.ClientUtil.namingException(ClientUtil.java:51)
at org.jboss.naming.remote.client.InitialContextFactory.getInitialContext(InitialContextFactory.java:152)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:684)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:307)
at javax.naming.InitialContext.init(InitialContext.java:242)
at javax.naming.InitialContext.<init>(InitialContext.java:216)
at: com.sample.test.InitialContextCreation.getRemoteInitialContext(InitialContextCreation.java:167)
... 33 more
Caused by: java.lang.IllegalArgumentException: No matching XNIO provider found
at org.xnio.Xnio.doGetInstance(Xnio.java:192)
at org.xnio.Xnio.getInstance(Xnio.java:146)
at org.jboss.remoting3.Remoting.createEndpoint(Remoting.java:73)
at org.jboss.naming.remote.client.EndpointCache.get(EndpointCache.java:44)
at org.jboss.naming.remote.client.InitialContextFactory.createEndpoint(InitialContextFactory.java:226)
at org.jboss.naming.remote.client.InitialContextFactory.getOrCreateEndpoint(InitialContextFactory.java:207)
at org.jboss.naming.remote.client.InitialContextFactory.getOrCreateNamingStore(InitialContextFactory.java:170)
at org.jboss.naming.remote.client.InitialContextFactory.getInitialContext(InitialContextFactory.java:146)
... 38 more
[1] 17.3. JMS
Environment
- Red Hat JBoss BPM Suite (BPMS)
- 6.0.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
