java.lang.RuntimeException: javax.naming.NamingException: Failed to create remoting connection [Root exception is java.lang.IllegalArgumentException: XNIO001001: No XNIO provider found]

JBoss Issue Tracker | Ondrej Kotek | 11 months ago
  1. 0

    # Running _NestedRemoteContextTestCase_ (from WildFly _testsuite/integration/basic_) with security manager, like {noformat} ./integration-tests.sh -Dts.basic -Dts.noSmoke -Dtest=NestedRemoteContextTestCase -Dsecurity.manager {noformat} results in exception: {noformat} java.io.IOException: java.lang.IllegalArgumentException: XNIO001001: No XNIO provider found {noformat} To make it work, permissions like following need to be added to _permissions.xml_ of _ejb.ear_: {noformat} new FilePermission("/home/okotek/git/wildfly/dist/target/wildfly-10.0.0.CR5-SNAPSHOT/modules/system/layers/base/org/jboss/xnio/nio/main/*", "read"), new FilePermission("/home/okotek/git/wildfly/dist/target/wildfly-10.0.0.CR5-SNAPSHOT/modules/system/layers/base/org/jboss/marshalling/river/main/*", "read"), new RemotingPermission("createEndpoint"), new RuntimePermission("createXnioWorker"), new RemotingPermission("addConnectionProvider"), new RuntimePermission("modifyThread"), new RuntimePermission("accessDeclaredMembers"), new ReflectPermission("suppressAccessChecks") {noformat} which is very confusing. Why do I need add seemingly unrelated permissions, like _FilePermission_ for XNIO and marshalling or _RuntimePermission_ for createXnioWorker? Such behavior should be fixed or properly documented.

    JBoss Issue Tracker | 11 months ago | Ondrej Kotek
    java.lang.RuntimeException: javax.naming.NamingException: Failed to create remoting connection [Root exception is java.lang.IllegalArgumentException: XNIO001001: No XNIO provider found]
  2. 0

    Wildfly 8 not starting in Windows 32 bit

    Stack Overflow | 2 years ago
    jboss.remoting.endpoint.management: org.jboss.msc.service.StartException in service jboss.remoting.endpoint.management: Failed to start service
  3. 0

    Wildfly 8 not starting in windows 7 32 bit

    Stack Overflow | 2 years ago
    jboss.remoting.endpoint.management: org.jboss.msc.service.StartException in service jboss.remoting.endpoint.management: Failed to start service
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    "XNIO001001: No XNIO provider found" error when deploying to Wildfly using Cargo Java API and Jenkins

    Stack Overflow | 1 year ago | Paul H
    org.codehaus.cargo.util.CargoException: Cannot deploy deployable org.codehaus.cargo.container.deployable.EAR[hello-world-ear-0.0.1-SNAPSHOT.ear]
  6. 0

    join: avril 2015

    blogspot.com | 1 year ago
    jboss.remoting.endpoint.management: org.jboss.msc.service.StartException in service jboss.remoting.endpoint.management: Failed to start service

    4 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      XNIO001001: No XNIO provider found

      at org.xnio.Xnio.doGetInstance()
    2. XNIO API
      Xnio.getInstance
      1. org.xnio.Xnio.doGetInstance(Xnio.java:238)
      2. org.xnio.Xnio.getInstance(Xnio.java:193)
      2 frames
    3. JBoss Remote Naming
      InitialContextFactory.getInitialContext
      1. org.jboss.naming.remote.client.EndpointCache.get(EndpointCache.java:47)
      2. org.jboss.naming.remote.client.InitialContextFactory.createEndpoint(InitialContextFactory.java:226)
      3. org.jboss.naming.remote.client.InitialContextFactory.getOrCreateEndpoint(InitialContextFactory.java:207)
      4. org.jboss.naming.remote.client.InitialContextFactory.getOrCreateNamingStore(InitialContextFactory.java:170)
      5. org.jboss.naming.remote.client.InitialContextFactory.getInitialContext(InitialContextFactory.java:146)
      5 frames
    4. JBoss Application Server: Naming Subsystem
      InitialContext.init
      1. org.jboss.as.naming.InitialContext.getDefaultInitCtx(InitialContext.java:114)
      2. org.jboss.as.naming.InitialContext.init(InitialContext.java:99)
      2 frames
    5. Java RT
      InitialLdapContext.<init>
      1. javax.naming.ldap.InitialLdapContext.<init>(InitialLdapContext.java:154)
      1 frame
    6. JBoss Application Server: Naming Subsystem
      InitialContextFactory.getInitialContext
      1. org.jboss.as.naming.InitialContext.<init>(InitialContext.java:89)
      2. org.jboss.as.naming.InitialContextFactory.getInitialContext(InitialContextFactory.java:43)
      2 frames
    7. Java RT
      InitialContext.<init>
      1. javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:684)
      2. javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:313)
      3. javax.naming.InitialContext.init(InitialContext.java:244)
      4. javax.naming.InitialContext.<init>(InitialContext.java:216)
      4 frames
    8. org.jboss.as
      CallEjbServlet.doGet
      1. org.jboss.as.test.integration.naming.remote.multiple.CallEjbServlet.doGet(CallEjbServlet.java:33)
      1 frame
    9. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:687)
      2. javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
      2 frames
    10. Undertow Servlet
      ServletDispatchingHandler.handleRequest
      1. io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:85)
      2. io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62)
      3. io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)
      3 frames
    11. WildFly: Undertow
      SecurityContextAssociationHandler.handleRequest
      1. org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)
      1 frame
    12. Undertow Core
      PredicateHandler.handleRequest
      1. io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
      1 frame
    13. Undertow Servlet
      ServletAuthenticationCallHandler.handleRequest
      1. io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:131)
      2. io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57)
      2 frames
    14. Undertow Core
      AbstractConfidentialityHandler.handleRequest
      1. io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
      2. io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46)
      2 frames
    15. Undertow Servlet
      ServletConfidentialityConstraintHandler.handleRequest
      1. io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64)
      1 frame
    16. Undertow Core
      AuthenticationMechanismsHandler.handleRequest
      1. io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:60)
      1 frame
    17. Undertow Servlet
      CachedAuthenticatedSessionHandler.handleRequest
      1. io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:77)
      1 frame
    18. Undertow Core
      PredicateHandler.handleRequest
      1. io.undertow.security.handlers.NotificationReceiverHandler.handleRequest(NotificationReceiverHandler.java:50)
      2. io.undertow.security.handlers.AbstractSecurityContextAssociationHandler.handleRequest(AbstractSecurityContextAssociationHandler.java:43)
      3. io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
      3 frames
    19. WildFly: Undertow
      JACCContextIdHandler.handleRequest
      1. org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)
      1 frame
    20. Undertow Core
      PredicateHandler.handleRequest
      1. io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
      2. io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
      2 frames
    21. Undertow Servlet
      ServletInitialHandler$1$1.run
      1. io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:284)
      2. io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:263)
      3. io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:81)
      4. io.undertow.servlet.handlers.ServletInitialHandler$1$1.run(ServletInitialHandler.java:180)
      4 frames
    22. Java RT
      AccessController.doPrivileged
      1. java.security.AccessController.doPrivileged(Native Method)
      1 frame
    23. Undertow Servlet
      ServletInitialHandler$1.handleRequest
      1. io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:177)
      1 frame
    24. Undertow Core
      HttpServerExchange$1.run
      1. io.undertow.server.Connectors.executeRootHandler(Connectors.java:202)
      2. io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:793)
      2 frames
    25. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      3. java.lang.Thread.run(Thread.java:745)
      3 frames