glassfish
  1. glassfish
  2. GLASSFISH-18797

[Regression] NullPointerException updating properties of a newly created xa jdbc pool

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Blocker Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: admin
    • Labels:
      None

      Description

      See http://hudson-sca.us.oracle.com/job/ejb-devtests-trunk/970/

      This command creates the resource:
      [exec] asadmin --host localhost --port 64280 --user anonymous --passwordfile <http://hudson-sca.us.oracle.com/job/ejb-devtests-trunk/ws/appserv-tests/config/adminpassword.txt> --interactive=false --echo=true --terse=true create-jdbc-resource --connectionpoolid jdbc-xa-pool --enabled=true --target server jdbc/xa
      [exec] JDBC resource jdbc/xa created successfully.
      [echo] cmd executed for server

      And this one fails to update the pool property:
      [exec] asadmin --host localhost --port 64280 --user anonymous --passwordfile <http://hudson-sca.us.oracle.com/job/ejb-devtests-trunk/ws/appserv-tests/config/adminpassword.txt> --interactive=false --echo=true --terse=true set domain.resources.jdbc-connection-pool.jdbc-xa-pool.property.connectionAttributes=;create=true
      [exec] remote failure: java.lang.NullPointerException

      The NPE:

      [#|2012-06-11T10:10:33.252-0700|SEVERE|44.0|javax.enterprise.system.tools.admin.com.sun.enterprise.v3.admin|_ThreadID=16;_ThreadName=Thread-2;|Exception in command execution : java.lang.NullPointerException
      java.lang.NullPointerException
      at java.lang.Class.isAssignableFrom(Native Method)
      at com.sun.enterprise.config.util.zeroconfig.ZeroConfigUtils.isConfigElementPresent(ZeroConfigUtils.java:267)
      at com.sun.enterprise.v3.admin.SetCommand.set(SetCommand.java:213)
      at com.sun.enterprise.v3.admin.SetCommand.execute(SetCommand.java:142)
      at com.sun.enterprise.v3.admin.CommandRunnerImpl$2.execute(CommandRunnerImpl.java:488)
      at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:509)
      at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1278)
      at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:111)
      at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1548)
      at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1511)
      at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:590)
      at com.sun.enterprise.v3.admin.AdminAdapter.onMissingResource(AdminAdapter.java:236)
      at org.glassfish.grizzly.http.server.StaticHttpHandler.service(StaticHttpHandler.java:298)
      at com.sun.enterprise.v3.server.HK2Dispatcher.dispatch(HK2Dispatcher.java:113)
      at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:236)

        Activity

        Hide
        Masoud Kalali added a comment -

        Reverted the changes until examine it further. Should be passing the tests now.

        Show
        Masoud Kalali added a comment - Reverted the changes until examine it further. Should be passing the tests now.
        Hide
        Masoud Kalali added a comment -

        Marina, please close it when the tests passed.

        Show
        Masoud Kalali added a comment - Marina, please close it when the tests passed.
        Hide
        marina vatkina added a comment - - edited

        Masoud, you could close it yourself. But yes, the tests passed.

        Show
        marina vatkina added a comment - - edited Masoud, you could close it yourself. But yes, the tests passed.
        Hide
        Masoud Kalali added a comment -

        Fixed.

        Show
        Masoud Kalali added a comment - Fixed.

          People

          • Assignee:
            Masoud Kalali
            Reporter:
            marina vatkina
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: