{"record":{"id":"c20f0df975add785","repo":"stanfordnlp/CoreNLP","slug":"java-lang-runtimeexception","errorCode":null,"errorMessage":"java.lang.RuntimeException","messagePattern":"java\\.lang\\.RuntimeException","errorType":"exception","errorClass":"RuntimeException","httpStatus":null,"severity":"error","filePath":"src/edu/stanford/nlp/classify/SVMLightClassifierFactory.java","lineNumber":498,"sourceCode":"        PrintWriter pw2 = new PrintWriter(predictFile);\n        NumberFormat nf = NumberFormat.getNumberInstance();\n        nf.setMaximumFractionDigits(5);\n        for (Datum<L,F> datum:dataset) {\n          Counter<L> scores = classifier.scoresOf(datum);\n          pw2.println(Counters.toString(scores, nf));\n        }\n        pw2.close();\n      }\n\n      if (useSigmoid) {\n        if (verbose) System.out.print(\"fitting sigmoid...\");\n        classifier.setPlatt(fitSigmoid(classifier, dataset));\n        if (verbose) System.out.println(\"done\");\n      }\n\n      return classifier;\n    } catch (Exception e) {\n      throw new RuntimeException(e);\n    }\n  }\n}\n\n","sourceCodeStart":480,"sourceCodeEnd":503,"githubUrl":"https://github.com/stanfordnlp/CoreNLP/blob/1b7edd19c4d0d7b1f13a2591425b9b60a0b1af7a/src/edu/stanford/nlp/classify/SVMLightClassifierFactory.java#L480-L503","documentation":"Generic RuntimeException rethrown by SVMLightClassifierFactory's trainClassifier pipeline when any step of training (invoking the svm_learn executable, writing/reading temp files, fitting sigmoid) fails; the original exception is carried as the cause.","triggerScenarios":"Thrown at src/edu/stanford/nlp/classify/SVMLightClassifierFactory.java:498 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Inspect the cause for the real failure (missing svm binaries, bad paths, invalid data)","Verify svm_learn/svm_classify executables exist and are executable","Check training data format and temporary directory permissions"],"exampleFix":null,"handlingStrategy":"try-catch","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"}