How to solve 'No matching XNIO provider found' exception, faced while creation of InitialContext in JMS client code of BPMS 6 ?

Solution Verified - Updated -

Issue

  • BPMS 6 supports the use of JMS messages for starting and managing business processes as well as managing Human Tasks through command request messages [1]. However, when creating the InitialContext at runtime the standalone JMS client code throws No matching XNIO provider found exception 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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content