Uploaded image for project: 'JITL - JS7 Integration Templates'
  1. JITL - JS7 Integration Templates
  2. JITL-758

Unix system – Support for custom argument value resolvers for JITL jobs

    XMLWordPrintable

Details

    • Fix
    • Status: Released (View Workflow)
    • Minor
    • Resolution: Fixed
    • 2.7.1
    • 2.7.6, 2.8.1
    • None

    Description

      Current Situation

      • With JITL-742 support for custom argument value resolvers was introduced.
      • Deployment: Library classes should be packaged in a .jar file and the .jar file should be deployed to the <AGENT_HOME>/lib/user_lib directory

      • Problem (Unix systems)
        • Excerpt from agent.log:
          ... info  com.sos.js7.job.resolver.JobArgumentValueResolverCache - [check custom resolvers dir][./user_lib][jar name pattern](?i)^jobapi-register-.*\.jar$
          ... WARN  com.sos.js7.job.resolver.JobArgumentValueResolverCache - [/var/sos-berlin.com/js7/agent/var_4445/./user_lib]java.nio.file.NoSuchFileException: ./user_lib
          
          • The Job API uses the environment variable JS7_AGENT_LIBDIR to locate this folder.
          • This variable is only available when the agent runs on Windows, but not on Unix systems.
          • As a result, the <AGENT_HOME>/lib/user_lib directory is not found on Unix.

      Desired Behaviour

      • See JS7 - Job Environment Variables
      • The Job API should use the JS7_AGENT_HOME variable to locate the user_lib directory, ensuring cross-platform compatibility.

      Workaround on Unix
      Set the environment variable JS7_AGENT_LIBDIR to point to <AGENT_HOME>/lib in the agent start script.

      Test Instructions

      • Configure and run any JITL-Job workflow.
      • Check the agent.log and look for messages like (these messages are created only once when the first Job API job starts after the Agent starts):
        ... info  com.sos.js7.job.resolver.JobArgumentValueResolverCache - start...
        ... info  com.sos.js7.job.resolver.JobArgumentValueResolverCache - [cached][base64:]com.sos.js7.job.resolver.StandardBase64Resolver
        ... info  com.sos.js7.job.resolver.JobArgumentValueResolverCache - [cached][enc:]com.sos.js7.job.resolver.StandardEncryptionResolver
        ... info  com.sos.js7.job.resolver.JobArgumentValueResolverCache - [check custom resolvers dir][/opt/sos-berlin.com/js7/agent/lib/user_lib][jar name pattern](?i)^jobapi-register-.*\.jar$
        ... info  com.sos.js7.job.resolver.JobArgumentValueResolverCache - end
      • The messages should not contain any warnings, and the absolute path to user_lib should be logged instead of a relative path like ./user_lib.

      Attachments

        Issue Links

          Activity

            People

              re Robert Ehrlich
              re Robert Ehrlich
              Ajay Kumbhkar Ajay Kumbhkar
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: