{"record":{"id":"8a85f9b50a1822e1","repo":"stanfordnlp/CoreNLP","slug":"e","errorCode":null,"errorMessage":"e","messagePattern":"e","errorType":"console","errorClass":null,"httpStatus":null,"severity":"info","filePath":"src/edu/stanford/nlp/time/TimeExpressionExtractorImpl.java","lineNumber":152,"sourceCode":"        String text = cm.get(CoreAnnotations.TextAnnotation.class);\n        if (origText != null) {\n          // Make sure the text is from original (and not from concatenated tokens)\n          ChunkAnnotationUtils.annotateChunkText(cm, annotation);\n          text = cm.get(CoreAnnotations.TextAnnotation.class);\n        }\n        Map<String,String> timexAttributes;\n        try {\n          timexAttributes = temporal.getTimexAttributes(timeIndex);\n          if (options.includeRange) {\n            SUTime.Temporal rangeTemporal = temporal.getRange();\n            if (rangeTemporal != null) {\n              timexAttributes.put(\"range\", rangeTemporal.toString());\n            }\n          }\n        } catch (Exception e) {\n          if (options.verbose) {\n            logger.warn(\"Failed to get attributes from \" + text + \", timeIndex \" + timeIndex);\n            logger.warn(e);\n          }\n          continue;\n        }\n        Timex timex;\n        try {\n          timex = Timex.fromMap(text, timexAttributes);\n        } catch (Exception e) {\n          if (options.verbose) {\n            logger.warn(\"Failed to process timex \" + text + \" with attributes \" + timexAttributes);\n            logger.warn(e);\n          }\n          continue;\n        }\n        assert timex != null;  // Timex.fromMap never returns null and if it exceptions, we've already done a continue\n        cm.set(TimeAnnotations.TimexAnnotation.class, timex);\n        coreMaps.add(cm);\n      }\n    }","sourceCodeStart":134,"sourceCodeEnd":170,"githubUrl":"https://github.com/stanfordnlp/CoreNLP/blob/1b7edd19c4d0d7b1f13a2591425b9b60a0b1af7a/src/edu/stanford/nlp/time/TimeExpressionExtractorImpl.java#L134-L170","documentation":"Companion log line for the catch at TimeExpressionExtractorImpl.java:151: after 'Failed to get attributes from ...' the caught exception object itself is logged via logger.warn(e). The 'message' being merely 'e' reflects that this entry corresponds to the exception variable being emitted, carrying the real underlying cause (e.g. a NumberFormatException or ClassCastException from SUTime conversion).","triggerScenarios":"Same path as 1620: extractTimeExpressionCoreMaps -> toCoreMaps catches an Exception while building attributes for a matched time expression, with options.verbose enabled, and logs the exception object.","commonSituations":"Debugging why certain time strings produce no TIMEX3 output; the second warn line with the stack trace is what actually identifies the failing rule or parser branch.","solutions":["Read the logged stack trace (this log entry) to identify the real exception type and cause","Reproduce with the offending sentence in a small CoreNLP pipeline test","Patch the SUTime rules or upgrade CoreNLP to fix the underlying parse failure","Keep sutime.verbose on in CI over your corpus to catch regressions early"],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":"// CoreNLP already catches internally; if calling toCoreMaps-like logic yourself:\ntry {\n  List<CoreMap> cms = extractor.extractTimeExpressionCoreMaps(annotation, docDate);\n} catch (Exception e) {\n  log.warn(\"SUTime attribute extraction failed\", e); // preserve stack trace\n}","preventionTips":["Always log the exception object, not just a message","Correlate the second warn line with the first to find the root cause","Keep regression tests for sentences that historically failed"],"tags":["java","nlp","sutime","logged-exception"],"backgroundTag":"unexpected-api-response-shape","analyzedSha":"1b7edd19c4d0d7b1f13a2591425b9b60a0b1af7a","analyzedAt":"2026-09-10T02:24:07.274Z","contentChangedAt":"2026-09-10T02:24:07.274Z","schemaVersion":2},"datasetVersion":"2026-09-15T23:17:13.987Z"}