14 Replies Latest reply on Mar 26, 2008 6:35 PM by cpopetz

    TestNG - NullPointer when running up JbossMC

    alessandro

      I'm trying to run tests (with testNg plugin) on the project already in version 2.0.1 GA, but found problems.


      Well, my project was born at version 2.0.0, but the bug has no parent did not work the tests.


      Now, I swapped the libraries to version 2.0.1GA (and the bootstrap) performed in settings:



      Using the Run dialog, select
      Xml suite to run, and add / lib / test / jboss-embedded-all.jar,
      / Lib / test / hibernate-all.jar, / lib / test / thirdparty-all.jar, / lib / embedded-api.jar,
      / Lib / jboss-deployers.jar and / bootstrap as the first entries in the User
      Classpath.

      But when I try to perform the tests...


      [Parser] Running:
        C:\java\workspace_eqm\eqm-entity-test\temp-testng-customsuite.xml
      
      ERROR [org.jboss.messaging.util.ExceptionUtil] org.jboss.jms.server.connectionfactory.ConnectionFactory@8777c startService
      java.lang.NullPointerException
              at org.jboss.remoting.InvokerLocator.resolveHost(InvokerLocator.java:333)
              at org.jboss.remoting.InvokerLocator.URIParse(InvokerLocator.java:257)
              at org.jboss.remoting.InvokerLocator.parse(InvokerLocator.java:213)
      (...)
      ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] Error installing to Start: name=jboss.messaging.connectionfactory:service=ConnectionFactory state=Create mode=Manual requiredState=Installed
      java.lang.NullPointerException
              at org.jboss.remoting.InvokerLocator.resolveHost(InvokerLocator.java:333)
              at org.jboss.remoting.InvokerLocator.URIParse(InvokerLocator.java:257)
              at org.jboss.remoting.InvokerLocator.parse(InvokerLocator.java:213)
      
      FAILED CONFIGURATION: @BeforeClass init
      org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
      
      *** CONTEXTS IN ERROR: Name -> Error
      
      jboss.messaging.connectionfactory:service=ClusteredConnectionFactory -> java.lang.NullPointerException
      jboss.messaging.connectionfactory:service=ConnectionFactory -> java.lang.NullPointerException
      jboss.messaging.connectionfactory:service=ClusterPullConnectionFactory -> java.lang.NullPointerException
      



      What is happening?