Uploaded image for project: 'EJB Client Library (AS7+)'
  1. EJB Client Library (AS7+)
  2. EJBCLIENT-254

NPE when ejb-client is on Xbootclaspath

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 4.0.2.Final
    • 4.0.0.CR6, 4.0.0.CR7
    • None
    • 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

              jgreene@redhat.com Jason Greene
              rhn-support-jbaesner Joerg Baesner
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: