Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-9974

jboss-ejb-client.properties without user credentials causes NPE

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • 7.1.0.DR16
    • 7.1.0.DR15
    • EJB
    • None

      remote.connections=default
      remote.connection.default.host=127.0.0.1
      remote.connection.default.port=8080
      

      EJB client using this jboss-ejb-client.properties should be able to invoke beans using LOCAL auth, but instead, a NPE is thrown:

      Exception in thread "main" java.lang.ExceptionInInitializerError
      	at org.wildfly.security.auth.client.AuthenticationContext.lambda$static$0(AuthenticationContext.java:49)
      	at org.wildfly.common.context.ContextManager.getPrivileged(ContextManager.java:282)
      	at org.wildfly.security.auth.client.AuthenticationContext.captureCurrent(AuthenticationContext.java:81)
      	at org.jboss.remoting3.Endpoint.getConnection(Endpoint.java:125)
      	at org.jboss.ejb.client.legacy.RemotingLegacyConfiguration.getConfiguredEndpoint(RemotingLegacyConfiguration.java:80)
      	at org.jboss.remoting3.ConfigurationEndpointSupplier.lambda$static$0(ConfigurationEndpointSupplier.java:61)
      	at java.security.AccessController.doPrivileged(Native Method)
      	at org.jboss.remoting3.ConfigurationEndpointSupplier.<clinit>(ConfigurationEndpointSupplier.java:48)
      	at org.wildfly.common.context.ContextManager.setGlobalDefaultSupplierIfNotSet(ContextManager.java:113)
      	at org.jboss.remoting3.Endpoint.lambda$static$0(Endpoint.java:65)
      	at java.security.AccessController.doPrivileged(Native Method)
      	at org.jboss.remoting3.Endpoint.<clinit>(Endpoint.java:63)
      	at org.jboss.ejb.protocol.remote.RemotingEJBDiscoveryProvider.<init>(RemotingEJBDiscoveryProvider.java:53)
      	at org.jboss.ejb.protocol.remote.RemotingEJBDiscoveryProvider.<clinit>(RemotingEJBDiscoveryProvider.java:50)
      	at org.jboss.ejb.protocol.remote.RemoteEJBDiscoveryConfigurator.configure(RemoteEJBDiscoveryConfigurator.java:31)
      	at org.wildfly.discovery.DiscoveryXmlParser.getConfiguredProvider(DiscoveryXmlParser.java:73)
      	at org.wildfly.discovery.ConfiguredProvider.<clinit>(ConfiguredProvider.java:48)
      	at org.wildfly.discovery.Discovery.lambda$static$0(Discovery.java:52)
      	at org.wildfly.common.context.ContextManager.getPrivileged(ContextManager.java:282)
      	at org.jboss.ejb.client.EJBClientContext.getDiscovery(EJBClientContext.java:444)
      	at org.jboss.ejb.client.EJBClientContext.discover(EJBClientContext.java:440)
      	at org.jboss.ejb.client.EJBClientContext.discoverAffinityNone(EJBClientContext.java:711)
      	at org.jboss.ejb.client.EJBClientContext.performLocatedAction(EJBClientContext.java:698)
      	at org.jboss.ejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:146)
      	at org.jboss.ejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:96)
      	at com.sun.proxy.$Proxy0.hello(Unknown Source)
      	at client.Client.main(Client.java:21)
      Caused by: org.wildfly.security.auth.client.InvalidAuthenticationConfigurationException: java.lang.NullPointerException
      	at org.wildfly.security.auth.client.DefaultAuthenticationContextProvider.lambda$static$0(DefaultAuthenticationContextProvider.java:40)
      	at java.security.AccessController.doPrivileged(Native Method)
      	at org.wildfly.security.auth.client.DefaultAuthenticationContextProvider.<clinit>(DefaultAuthenticationContextProvider.java:36)
      	... 27 more
      Caused by: java.lang.NullPointerException
      	at org.jboss.ejb.client.legacy.ElytronLegacyConfiguration.configureCommon(ElytronLegacyConfiguration.java:114)
      	at org.jboss.ejb.client.legacy.ElytronLegacyConfiguration.getConfiguredAuthenticationContext(ElytronLegacyConfiguration.java:79)
      	at org.wildfly.security.auth.client.ElytronXmlParser.lambda$parseLegacyConfiguration$0(ElytronXmlParser.java:213)
      	at org.wildfly.security.auth.client.DefaultAuthenticationContextProvider.lambda$static$0(DefaultAuthenticationContextProvider.java:38)
      	... 29 more
      

              dlloyd@redhat.com David Lloyd
              jmartisk@redhat.com Jan Martiska
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: