Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#41 Traceback when handling sequence of strings on multiple line

open
nobody
None
5
2008-09-23
2008-09-23
Allan Crooks
No

I get the following exception when I try to get JYaml to load the attached input file.

I've pinned it down to the filenames value - the fact that it is spread across multiple lines seems to make JYaml break. The output was generated by PyYAML.

Exception in thread "main" java.lang.NullPointerException
at org.ho.yaml.ListState.nextOnContent(ListState.java:55)
at org.ho.yaml.JYamlParserEvent.content(JYamlParserEvent.java:64)
at yaml.parser.YamlParser.sendEvents(YamlParser.java:117)
at yaml.parser.YamlParser.loose_value_inline(YamlParser.java:747)
at yaml.parser.YamlParser.list_entry(YamlParser.java:1110)
at yaml.parser.YamlParser.list(YamlParser.java:1082)
at yaml.parser.YamlParser.loose_value_inline(YamlParser.java:752)
at yaml.parser.YamlParser.loose_value(YamlParser.java:696)
at yaml.parser.YamlParser.nmap_entry(YamlParser.java:877)
at yaml.parser.YamlParser.nmap(YamlParser.java:851)
at yaml.parser.YamlParser.value_nested(YamlParser.java:802)
at yaml.parser.YamlParser.loose_value(YamlParser.java:693)
at yaml.parser.YamlParser.nmap_entry(YamlParser.java:877)
at yaml.parser.YamlParser.nmap(YamlParser.java:851)
at yaml.parser.YamlParser.value_nested(YamlParser.java:802)
at yaml.parser.YamlParser.loose_value(YamlParser.java:693)
at yaml.parser.YamlParser.nmap_entry(YamlParser.java:877)
at yaml.parser.YamlParser.nmap(YamlParser.java:851)
at yaml.parser.YamlParser.document_first(YamlParser.java:1182)
at org.ho.yaml.YamlDecoder.firstDocument(YamlDecoder.java:152)
at org.ho.yaml.YamlDecoder.readObjectOfType(YamlDecoder.java:186)
at org.ho.yaml.YamlConfig.loadType(YamlConfig.java:431)
at org.ho.yaml.YamlConfig.loadType(YamlConfig.java:437)
at org.ho.yaml.Yaml.loadType(Yaml.java:63)

Discussion

  • Allan Crooks
    Allan Crooks
    2008-09-23

     
    Attachments