Proc runs in test tool but not in thread

Clovertech Forums Read Only Archives Cloverleaf General Proc runs in test tool but not in thread

  • Creator
    Topic
  • #50423
    Rick Pritchett
    Participant

      My proc works when i run it in the testing tool but for some reason when i run it in a thread it looks like it doesn’t even enter the switch portion. Any ideas?

      proc tps_sqlite_test { args } {

      echo hello

      package require sqlite

      echo hello2

      #set dbName “/logs/gnu_dbs/patient_data.db”

      set dbName “/quovadx/qdx5.4/integrator/sqlite_db/my.db3”

      sqlite DBCMD $dbName

      echo hello2

      keylget args MODE mode

    Viewing 6 reply threads
    • Author
      Replies
      • #66047
        Jim Kosloskey
        Participant

          Rickey,

          What mode are you in when the test ‘fails’?

          Echo out the mode ($mode) or look in the log with the noise turned up.

          I assume you are seeing ‘hello2.5’ but not ‘hello2.6’.

          email: jim.kosloskey@jim-kosloskey.com 29+ years Cloverleaf, 59 years IT - old fart.

        • #66048
          Rick Pritchett
          Participant

            You are correct i am seeing 2.5 and not 2.6.

          • #66049
            Jim Kosloskey
            Participant

              Rickey,

              Well you do not have anything happening in the start mode and the hello 2.6 echo is outside of any of the switches so that might actually break the switch.

              Try putting the echo for hello2.6 inside the start and make sure a message actually arrives at the inbound side o the thread where you have the proc placed (if it is defined in the Inbound tab).

              email: jim.kosloskey@jim-kosloskey.com 29+ years Cloverleaf, 59 years IT - old fart.

            • #66050
              Rick Pritchett
              Participant

                Okay i moved the echo and it looks like the message makes it to the other side.

              • #66051
                Bala Pisupati
                Participant

                  I have a tcl proc that puts data into sqlite database. i tested this proc using testing tool and it worked fine. This is on qdx5.5 but when i tested the same on another box(which is also qdx5.5) i am getting

                  [0:TEST] Tcl error:

                  msgId = message0

                  proc = ‘adt_in’

                  args = ”

                  result = ‘can’t find package sqlite’

                  errorInfo: ‘

                  can’t find package sqlite

                     while executing

                  “package require sqlite”

                     (procedure “adt_in” line 3)

                     invoked from within

                  “adt_in {MSGID message0} {CONTEXT sms_ib_data} {ARGS {}} {MODE run} {VERSION 3.0}”‘

                  i created the database in the same place in both boxes. Also from the command prompt I am able to get into sqlite database and create table etc.  

                  Can some one tell me what might be the issue?

                • #66052
                  Gary Atkinson
                  Participant

                    Check your pkgindex file on the box where it is not working.

                  • #66053
                    Bala Pisupati
                    Participant

                      Gary,

                      Thanks for the reply. “pkgindex file ” was missing. now it is working fine.

                      -Bala

                  Viewing 6 reply threads
                  • The forum ‘General’ is closed to new topics and replies.