This is a PDF version of Article CS294946 and may be out of date. For the latest version click here
Article - CS294946

Error "java.lang.IllegalArgumentException: Could not extract threshold value for the specified model with goal" is reported when generating a model with boolean goal

Created: 22-Oct-2018   |   Modified: 19-Jul-2019   

Applies To

  • ThingWorx Analytics 8.3.1

Description

  • Anomaly Alert fails when transitioning from collecting state to training state. Underneath error is found in ApplicationLog.log
ERROR] [O: c.t.a.t.ThingWatcherInternal] [I: ] [U: Administrator] [S: ] [T: TWEventProcessor-7] Returning a FAILED state for TimedValue [timestamp=1553691514699, value=16.0]. ThingWatcherMessage [timestamp=2019-03-27T13:58:35.543, severity=ERROR, state=ThingWatcherInternalState [internal=OBTAINING_MODEL, external=TRAINING], messageCode=WAT1001E, messageText=Operation exception. {Throwable=[GenericHTTPException: Error returned from service [500]: Exception encountered: class java.time.format.DateTimeParseException.  Log tag: c07c8f49-276f-4049-8f26-898d3708cecb}]]_com.thingworx.analytics.thingwatcher.exceptions.ThingWatcherOperationException: Error accessing PMML Model URI, cannot download model__    at com.thingworx.analytics.thingwatcher.ThingWatcherInternal.isModelAvailableAfterTraining(ThingWatcherInternal.java:699)
  • Following error is reported (in UI and worker.log) when generating a model with boolean goal
java.lang.IllegalArgumentException: Could not extract threshold value for the specified model with goal XXXX
    at com.thingworx.analytics.ccc.pmml.PmmlUtils.getBooleanThresholdForGoal(PmmlUtils.java:683)
    at com.thingworx.analytics.validation.ai.BooleanModelEvaluator.getValidationMetric(BooleanModelEvaluator.java:65)
    at com.thingworx.analytics.validation.ai.BooleanModelEvaluator.getValidationMetric(BooleanModelEvaluator.java:45)
    at com.thingworx.analytics.validation.runner.ValidationRunner.run(ValidationRunner.java:97)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at com.thingworx.analytics.validation.service.ValidationJob.run(ValidationJob.java:60)
    at com.thingworx.analytics.ccc.job.dempsy.DempsyClusterJobExecutor$DempsyPersistentClusterWatcher.runJobUploadResultsAndCleanup(DempsyClusterJobExecutor.java:417)
    at com.thingworx.analytics.ccc.job.dempsy.DempsyClusterJobExecutor$DempsyPersistentClusterWatcher.execute(DempsyClusterJobExecutor.java:582)
    at com.thingworx.analytics.ccc.executor.PersistentTask.executeUntilWorks(PersistentTask.java:94)
    at com.thingworx.analytics.ccc.executor.PersistentTask.process(PersistentTask.java:60)
    at net.dempsy.cluster.zookeeper.ZookeeperSession$WatcherProxy.process(ZookeeperSession.java:232)
    at org.apache.zookeeper.ClientCnxn$EventThread.processEvent(ClientCnxn.java:522)
    at org.apache.zookeeper.ClientCnxn$EventThread.run(ClientCnxn.java:498)
  • training and validation log files have
io.dropwizard.jersey.jackson.JsonProcessingExceptionMapper: Encountered exception while processing a request.  Tag: cd2c0753-5495-48c1-b18f-020128442d58
! java.time.format.DateTimeParseException: Text '10/11/18 11:23:40.582 MESZ' could not be parsed at index 22
! at java.time.format.DateTimeFormatter.parseResolved0(DateTimeFormatter.java:1949)
! at java.time.format.DateTimeFormatter.parse(DateTimeFormatter.java:1851)
! at java.time.ZonedDateTime.parse(ZonedDateTime.java:597)
! at com.thingworx.analytics.ccc.job.dempsy.DempsyClusterJobExecutor.lambda$getStatus$7(DempsyClusterJobExecutor.java:765)
! at java.util.Optional.map(Optional.java:215)
! at com.thingworx.analytics.ccc.job.dempsy.DempsyClusterJobExecutor.getStatus(DempsyClusterJobExecutor.java:764)
! at com.thingworx.analytics.ccc.dropwizard.service.JobService.getJobStatusByClaimCheck(JobService.java:90)
! at com.thingworx.analytics.ccc.dropwizard.resources.JobExecInfoResourceHelper.getJobStatusByJobId(JobExecInfoResourceHelper.java:145)
! at com.thingworx.analytics.ccc.dropwizard.resources.JobExecInfoResource.getJobStatusByJobId(JobExecInfoResource.java:78)
! at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  • Creating a model with the data set analytics_vibration.zip out of https://developer.thingworx.com/resources/guides/analytics-builder-quickstart does not work
  • Validation job fails for model with boolean goal
  • Analytics Builder does not refresh the model page while a model is running with log
    • [message: Execution error in service script [ReturnBooleanTrueIfDatasetCreateJobActiveAMS] :: Error returned from service [500]: Exception encountered: class java.time.format.DateTimeParseException.  Log tag: ebb0a694-7994-4d8b-8c62-da61c5cf9899]
    • [message: Execution error in service script [GetModelListStatisticsAMS] :: Error returned from service [500]: Exception encountered: class java.time.format.DateTimeParseException.  Log tag: 140d13f1-169d-4c36-8134-ab0f880310ed]