Application Server 7
  1. Application Server 7
  2. AS7-4465

Cannot add a hilo-keygenarator for CMP subsystem

    Details

    • Type: Bug Bug
    • Status: Resolved Resolved (View Workflow)
    • Priority: Critical Critical
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 7.1.2.Final (EAP)
    • Component/s: None
    • Labels:
    • Similar Issues:
      Show 10 results 

      Description

      When attempting to create a hilo-keygenerator on the CMP subsystem the following error is observed:

      [standalone@localhost:9999 subsystem=cmp] ./hilo-keygenerator=test:add(data-source=ExampleDS)
      {
      "outcome" => "failed",
      "failure-description" =>

      {"JBAS014771: Services with missing/unavailable dependencies" => ["jboss.cmp.keygen.HiLoKeyGeneratorFactory.testjboss.data-source.ExampleDSMissing[jboss.cmp.keygen.HiLoKeyGeneratorFactory.testjboss.data-source.ExampleDS]"]}

      ,
      "rolled-back" => true,
      "response-headers" =>

      {"process-state" => "reload-required"}

      }

      The ExampleDS data source exists so the error message is not valid. Note the missing dot between test and jboss from jboss.cmp.keygen.HiLoKeyGeneratorFactory.testjboss.data-source.ExampleDS.

        Activity

        Hide
        Stuart Douglas
        added a comment -

        The actual syntax is

        ./hilo-keygenerator=test:add(data-source="java:jboss/datasources/ExampleDS")

        however there are some other problems with this command, as some parameters that should be required are not marked as such.

        Show
        Stuart Douglas
        added a comment - The actual syntax is ./hilo-keygenerator=test:add(data-source="java:jboss/datasources/ExampleDS") however there are some other problems with this command, as some parameters that should be required are not marked as such.
        Hide
        Stuart Douglas
        added a comment -

        Also that failure message is not really correct.

        Show
        Stuart Douglas
        added a comment - Also that failure message is not really correct.
        Hide
        Stuart Douglas
        added a comment -

        This add operation does in fact work correctly. The incorrect validation is being handled as part of AS7-4476.

        Show
        Stuart Douglas
        added a comment - This add operation does in fact work correctly. The incorrect validation is being handled as part of AS7-4476 .
        Hide
        Heiko Rupp
        added a comment -

        Stuart, would it make sense to either specify datasource=X or jndi-name=Y for this case?

        Also can you please give us an indication of correct input and validation etc? AS7-4476 is virtually empty, so that we can't "work from it"

        Show
        Heiko Rupp
        added a comment - Stuart, would it make sense to either specify datasource=X or jndi-name=Y for this case? Also can you please give us an indication of correct input and validation etc? AS7-4476 is virtually empty, so that we can't "work from it"
        Hide
        Stuart Douglas
        added a comment -

        AS7-4476 has now been merged, and the schema/model now reflects the required attributes.

        Show
        Stuart Douglas
        added a comment - AS7-4476 has now been merged, and the schema/model now reflects the required attributes.
        Hide
        Stefan Negrea
        added a comment - - edited

        I tried the command suggested above and I still cannot create a hilo-keygenerator.

        [standalone@localhost:9999 subsystem=cmp] ./hilo-keygenerator=test:add(data-source="java:jboss/datasources/ExampleDS")
        {
        "outcome" => "failed",
        "failure-description" => {"JBAS014671: Failed services" => {"jboss.cmp.keygen.HiLoKeyGeneratorFactory.test" => "org.jboss.msc.service.StartException in service jboss.cmp.keygen.HiLoKeyGeneratorFactory.test: Failed to start service"}},
        "rolled-back" => true
        }

        Also, why the need to provide the long path for datasource?

        Show
        Stefan Negrea
        added a comment - - edited I tried the command suggested above and I still cannot create a hilo-keygenerator. [standalone@localhost:9999 subsystem=cmp] ./hilo-keygenerator=test:add(data-source="java:jboss/datasources/ExampleDS") { "outcome" => "failed", "failure-description" => {"JBAS014671: Failed services" => {"jboss.cmp.keygen.HiLoKeyGeneratorFactory.test" => "org.jboss.msc.service.StartException in service jboss.cmp.keygen.HiLoKeyGeneratorFactory.test: Failed to start service"}}, "rolled-back" => true } Also, why the need to provide the long path for datasource?
        Hide
        Stuart Douglas
        added a comment -

        Assuming you have an existing table the command looks something like:

        ./hilo-keygenerator=test:add(data-source="java:jboss/datasources/ExampleDS", id-column=id, sequence-column=seq, sequence-name=seqname, table-name=table)

        Show
        Stuart Douglas
        added a comment - Assuming you have an existing table the command looks something like: ./hilo-keygenerator=test:add(data-source="java:jboss/datasources/ExampleDS", id-column=id, sequence-column=seq, sequence-name=seqname, table-name=table)
        Hide
        Heiko Rupp
        added a comment -

        What is the fix version?

        Show
        Heiko Rupp
        added a comment - What is the fix version?

          People

          • Assignee:
            Stuart Douglas
            Reporter:
            Stefan Negrea
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: