Uploaded image for project: 'WildFly WIP'
  1. WildFly WIP
  2. WFWIP-563

InsightsException: I4ASR0018: The identification name has not been defined when client is not ready to send

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • Insights
    • None
    • Hide

      Enable debug logging for insights and start the server in an environment without a machine ID file present, so the client will not be ready.

      Show
      Enable debug logging for insights and start the server in an environment without a machine ID file present, so the client will not be ready.

      When the client is not ready to send (eg. when there's no machine ID file) we should get a debug message with with the insights configuration explaining that.
      Instead we get

      DEBUG [org.jboss.eap.insights.report] (ServerService Thread Pool -- 1) Scheduled send failed: com.redhat.insights.InsightsException: I4ASR0018: The identification name has not been defined
      	at com.redhat.insights.config.EnvAndSysPropsInsightsConfiguration.getIdentificationName(EnvAndSysPropsInsightsConfiguration.java:53)
      	at org.jboss.eap.insights.report.JBossInsightsConfiguration.toString(JBossInsightsConfiguration.java:53)
      	at java.lang.String.valueOf(String.java:2994)
      	at java.lang.StringBuilder.append(StringBuilder.java:131)
      	at com.redhat.insights.InsightsReportController.lambda$generate$0(InsightsReportController.java:123)
      	at org.jboss.eap.insights.report.JBossInsightsScheduler.lambda$scheduleAtFixedRate$0(JBossInsightsScheduler.java:59)
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
      	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
      	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      	at java.lang.Thread.run(Thread.java:748)
      	at org.jboss.threads.JBossThread.run(JBossThread.java:513)
      
      

      This is because we never actually set the identificationName in the configuration in the integration code, only in the top level report. So trying to log the config will fail

              ehugonne1@redhat.com Emmanuel Hugonnet
              pmackay@redhat.com Peter Mackay
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: