Uploaded image for project: 'OpenAM'
  1. OpenAM
  2. OPENAM-16073

Can not create Java Agent profile for 'localhost'

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 6.5.0, 6.5.0.1, 6.5.1, 6.5.0.2, 6.5.2, 6.5.2.1, 6.5.2.2, 6.5.2.3
    • Fix Version/s: None
    • Component/s: console
    • Labels:
      None
    • Environment:
      Oracle JDK 1.8.0_201
      Apache Tomcat 9.0.8
      AM 6.5.0
    • Support Ticket IDs:

      Description

      Bug description

      Can not create Java Agent profile which has 'localhost' as Agent host

      How to reproduce the issue

      1. Create Java Agent profile with value 'http://localhost:8282/agentapp' for 'Agent URL'
      Expected behaviour
      Java Agent profile should be created
      
      Current behaviour
      Error message 'Unable to create SMS config: Invalid Agent URL.' is shown.
      
      excerpt of AM 6.5.0 debug logs
      frRest:03/31/2020 12:45:22:154 PM CEST: Thread[http-nio-8080-exec-6,5,main]: TransactionId[c4cca6c2-02eb-44f5-93ba-a54f685e351c-4112]
      WARNING: ::SmsAgentsResource:: ConfigurationException on create
      com.sun.identity.common.configuration.ConfigurationException: Invalid Agent URL.
              at com.sun.identity.common.configuration.AgentConfiguration.tagswapAttributeValues(AgentConfiguration.java:634)
              at com.sun.identity.common.configuration.AgentConfiguration.createAgentEx(AgentConfiguration.java:478)
              at com.sun.identity.common.configuration.AgentConfiguration.createAgent(AgentConfiguration.java:346)
              at org.forgerock.openam.core.rest.sms.SmsAgentsResource.create(SmsAgentsResource.java:174)
              at org.forgerock.openam.core.rest.sms.SmsAbstractAgentProvider.createInstance(SmsAbstractAgentProvider.java:205)
              at org.forgerock.openam.core.rest.sms.SmsAgentsResource.createInstance(SmsAgentsResource.java:106)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              bthalmayr Bernhard Thalmayr
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: