{"record":{"id":"8aae6a963036f7f8","repo":"stanfordnlp/CoreNLP","slug":"error-failed-to-find-properties-in-the-given-argu","errorCode":null,"errorMessage":"ERROR: failed to find Properties in the given arguments!","messagePattern":"ERROR: failed to find Properties in the given arguments!","errorType":"validation","errorClass":"RuntimeException","httpStatus":null,"severity":"error","filePath":"src/edu/stanford/nlp/ie/machinereading/MachineReading.java","lineNumber":214,"sourceCode":"      mr.relationExtractor.setLoggerLevel(level);\n    if (mr.eventExtractor != null)\n      mr.eventExtractor.setLoggerLevel(level);\n\n    return mr;\n  }\n\n  public static MachineReading makeMachineReading(String [] args) throws IOException {\n    // install global parameters\n    MachineReading mr = new MachineReading(args);\n    //TODO:\n    ArgumentParser.fillOptions(MachineReadingProperties.class, args);\n    //Arguments.parse(args, mr);\n    log.info(\"PERCENTAGE OF TRAIN: \" + MachineReadingProperties.percentageOfTrain);\n\n    // convert args to properties\n    Properties props = StringUtils.argsToProperties(args);\n    if (props == null) {\n      throw new RuntimeException(\"ERROR: failed to find Properties in the given arguments!\");\n    }\n\n    String logLevel = props.getProperty(\"logLevel\", \"INFO\");\n    setLoggerLevel(Level.parse(logLevel.toUpperCase()));\n\n    // install reader specific parameters\n    GenericDataSetReader reader = mr.makeReader(props);\n    GenericDataSetReader auxReader = mr.makeAuxReader();\n    Level readerLogLevel = Level.parse(MachineReadingProperties.readerLogLevel.toUpperCase());\n    reader.setLoggerLevel(readerLogLevel);\n    if (auxReader != null) {\n      auxReader.setLoggerLevel(readerLogLevel);\n    }\n    log.info(\"The reader log level is set to \" + readerLogLevel);\n    //Execution.fillOptions(GenericDataSetReaderProps.class, args);\n    //Arguments.parse(args, reader);\n\n    // create the pre-processing pipeline","sourceCodeStart":196,"sourceCodeEnd":232,"githubUrl":"https://github.com/stanfordnlp/CoreNLP/blob/1b7edd19c4d0d7b1f13a2591425b9b60a0b1af7a/src/edu/stanford/nlp/ie/machinereading/MachineReading.java#L196-L232","documentation":"RuntimeException from MachineReading.makeMachineReading when the command-line arguments do not contain a usable Properties specification (the args must define the pipeline properties, typically via -props or key=value pairs); without them the machine-reading system cannot be configured.","triggerScenarios":"Thrown at src/edu/stanford/nlp/ie/machinereading/MachineReading.java:214 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Pass a -props file with the MachineReading configuration","Or supply key=value arguments recognized by StringUtils.argsToProperties","Check that argument parsing did not consume the properties flag"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"1b7edd19c4d0d7b1f13a2591425b9b60a0b1af7a","analyzedAt":"2026-09-10T02:24:07.274Z","contentChangedAt":"2026-09-10T02:24:07.274Z","schemaVersion":2},"datasetVersion":"2026-09-17T15:17:12.973Z"}