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

[GSS](7.1.z) NPE when ejb client is on Xbootclasspath

XMLWordPrintable

    • Hide
      • compile and deploy the attached 'ejb-remote' project taken (and modified) from the quickstarts (label 7.1.0.ER3-dev)
      • run the client application from command line with:
      • cd $QUICKSTART_BASE_DIR/client
      • java -Xbootclasspath/p:$JBOSS_HOME/bin/client/jboss-client.jar:../server-side/target/ejb-remote-server-side.jar -jar target/ejb-remote-client.jar
      Show
      compile and deploy the attached 'ejb-remote' project taken (and modified) from the quickstarts (label 7.1.0.ER3-dev) run the client application from command line with: cd $QUICKSTART_BASE_DIR/client java -Xbootclasspath/p:$JBOSS_HOME/bin/client/jboss-client.jar:../server-side/target/ejb-remote-server-side.jar -jar target/ejb-remote-client.jar

      Calling a remote EJB from a pure Java standalone application only using InitialContext results in:

      Exception in thread "main" java.lang.ExceptionInInitializerError
      at org.jboss.remoting3.ConfigurationEndpointSupplier.get(ConfigurationEndpointSupplier.java:88)
      at org.jboss.remoting3.ConfigurationEndpointSupplier.get(ConfigurationEndpointSupplier.java:44)
      at org.wildfly.common.context.ContextManager.getPrivileged(ContextManager.java:282)
      at org.jboss.remoting3.Endpoint.getCurrent(Endpoint.java:84)
      at org.wildfly.naming.client.remote.RemoteNamingProviderFactory.getEndpoint(RemoteNamingProviderFactory.java:171)
      at org.wildfly.naming.client.remote.RemoteNamingProviderFactory.supportsUriScheme(RemoteNamingProviderFactory.java:93)
      at org.wildfly.naming.client.WildFlyRootContext.getProviderContext(WildFlyRootContext.java:781)
      at org.wildfly.naming.client.WildFlyRootContext.lookup(WildFlyRootContext.java:146)
      at javax.naming.InitialContext.lookup(InitialContext.java:417)
      at org.jboss.as.quickstarts.ejb.remote.client.RemoteEJBClient.lookupRemoteStatelessCalculator(RemoteEJBClient.java:133)
      at org.jboss.as.quickstarts.ejb.remote.client.RemoteEJBClient.invokeStatelessBean(RemoteEJBClient.java:51)
      at org.jboss.as.quickstarts.ejb.remote.client.RemoteEJBClient.main(RemoteEJBClient.java:38)
      Caused by: java.lang.NullPointerException
      at org.jboss.ejb.client.legacy.JBossEJBProperties.fromResource(JBossEJBProperties.java:410)
      at org.jboss.ejb.client.legacy.JBossEJBProperties.fromClassPath(JBossEJBProperties.java:447)
      at org.jboss.ejb.client.legacy.JBossEJBProperties.fromClassPath(JBossEJBProperties.java:451)
      at org.jboss.ejb.client.legacy.JBossEJBProperties.lambda$static$2(JBossEJBProperties.java:139)
      at org.wildfly.common.context.ContextManager.getPrivileged(ContextManager.java:282)
      at org.jboss.ejb.client.legacy.JBossEJBProperties.getCurrent(JBossEJBProperties.java:455)
      at org.jboss.ejb.client.legacy.RemotingLegacyConfiguration.getConfiguredEndpoint(RemotingLegacyConfiguration.java:43)
      at org.jboss.remoting3.ConfigurationEndpointSupplier$Holder.lambda$static$0(ConfigurationEndpointSupplier.java:62)
      at java.security.AccessController.doPrivileged(Native Method)
      at org.jboss.remoting3.ConfigurationEndpointSupplier$Holder.<clinit>(ConfigurationEndpointSupplier.java:49)
      ... 12 more

              rpelisse@redhat.com Romain Pelisse
              rhn-support-jbaesner Joerg Baesner
              Peter Mackay Peter Mackay
              Peter Mackay Peter Mackay
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

                Created:
                Updated:
                Resolved: