java.lang.NullPointerException

QuickFIX/J JIRA | Jacob Northey | 5 years ago
  1. 0

    QuickFIX/J Jira

    quickfixj.org | 3 months ago
    java.lang.NullPointerException
  2. 0

    I'm using openfast-1.1.0 to load the FIX/FAST template file published by CME, it seems that "ComposedDecimalParser" is having difficulties parsing a DECIMAL node the with following structure: <decimal name="NetChgPrevDay" id="451" presence="optional"> <exponent> </exponent> <mantissa> </mantissa> </decimal> Below are the stack dump: ---------------------------------------------------- Exception in thread "main" java.lang.NullPointerException at org.openfast.template.loader.ComposedDecimalParser.createComposedDecimal(ComposedDecimalParser.java:96) at org.openfast.template.loader.ComposedDecimalParser.parse(ComposedDecimalParser.java:61) at org.openfast.template.loader.AbstractFieldParser.parse(AbstractFieldParser.java:51) at org.openfast.template.loader.GroupParser.parseFields(GroupParser.java:80) at org.openfast.template.loader.SequenceParser.parse(SequenceParser.java:52) at org.openfast.template.loader.AbstractFieldParser.parse(AbstractFieldParser.java:51) at org.openfast.template.loader.GroupParser.parseFields(GroupParser.java:80) at org.openfast.template.loader.TemplateParser.parse(TemplateParser.java:46) at org.openfast.template.loader.AbstractFieldParser.parse(AbstractFieldParser.java:51) at org.openfast.template.loader.XMLMessageTemplateLoader.load(XMLMessageTemplateLoader.java:124) at org.openfast.examples.consumer.FastMessageConsumer.<init>(FastMessageConsumer.java:36) at org.openfast.examples.consumer.Main.main(Main.java:69) However, the ComposedDecimalParser works correctly when the above node is changed to: <decimal name="NetChgPrevDay" id="451" presence="optional"> <exponent/> <mantissa/> </decimal>

    QuickFIX/J JIRA | 5 years ago | Jacob Northey
    java.lang.NullPointerException
  3. 0

    I'm using openfast-1.1.0 to load the FIX/FAST template file published by CME, it seems that "ComposedDecimalParser" is having difficulties parsing a DECIMAL node the with following structure: <decimal name="NetChgPrevDay" id="451" presence="optional"> <exponent> </exponent> <mantissa> </mantissa> </decimal> Below are the stack dump: ---------------------------------------------------- Exception in thread "main" java.lang.NullPointerException at org.openfast.template.loader.ComposedDecimalParser.createComposedDecimal(ComposedDecimalParser.java:96) at org.openfast.template.loader.ComposedDecimalParser.parse(ComposedDecimalParser.java:61) at org.openfast.template.loader.AbstractFieldParser.parse(AbstractFieldParser.java:51) at org.openfast.template.loader.GroupParser.parseFields(GroupParser.java:80) at org.openfast.template.loader.SequenceParser.parse(SequenceParser.java:52) at org.openfast.template.loader.AbstractFieldParser.parse(AbstractFieldParser.java:51) at org.openfast.template.loader.GroupParser.parseFields(GroupParser.java:80) at org.openfast.template.loader.TemplateParser.parse(TemplateParser.java:46) at org.openfast.template.loader.AbstractFieldParser.parse(AbstractFieldParser.java:51) at org.openfast.template.loader.XMLMessageTemplateLoader.load(XMLMessageTemplateLoader.java:124) at org.openfast.examples.consumer.FastMessageConsumer.<init>(FastMessageConsumer.java:36) at org.openfast.examples.consumer.Main.main(Main.java:69) However, the ComposedDecimalParser works correctly when the above node is changed to: <decimal name="NetChgPrevDay" id="451" presence="optional"> <exponent/> <mantissa/> </decimal>

    QuickFIX/J JIRA | 5 years ago | Jacob Northey
    java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Android: Saving Map State in Google map

    Stack Overflow | 11 months ago | Junie Negentien
    java.lang.RuntimeException: Unable to resume activity {com.ourThesis.junieNegentien2015/com.ourThesis.junieNegentien2015.MainActivity}: java.lang.NullPointerException

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at org.openfast.template.loader.ComposedDecimalParser.createComposedDecimal()
    2. org.openfast.template
      XMLMessageTemplateLoader.load
      1. org.openfast.template.loader.ComposedDecimalParser.createComposedDecimal(ComposedDecimalParser.java:96)
      2. org.openfast.template.loader.ComposedDecimalParser.parse(ComposedDecimalParser.java:61)
      3. org.openfast.template.loader.AbstractFieldParser.parse(AbstractFieldParser.java:51)
      4. org.openfast.template.loader.GroupParser.parseFields(GroupParser.java:80)
      5. org.openfast.template.loader.SequenceParser.parse(SequenceParser.java:52)
      6. org.openfast.template.loader.AbstractFieldParser.parse(AbstractFieldParser.java:51)
      7. org.openfast.template.loader.GroupParser.parseFields(GroupParser.java:80)
      8. org.openfast.template.loader.TemplateParser.parse(TemplateParser.java:46)
      9. org.openfast.template.loader.AbstractFieldParser.parse(AbstractFieldParser.java:51)
      10. org.openfast.template.loader.XMLMessageTemplateLoader.load(XMLMessageTemplateLoader.java:124)
      10 frames
    3. org.openfast.examples
      Main.main
      1. org.openfast.examples.consumer.FastMessageConsumer.<init>(FastMessageConsumer.java:36)
      2. org.openfast.examples.consumer.Main.main(Main.java:69)
      2 frames