title: why FIX fields using quickfix are null?
body: <p>I am new to FIX. I have a FIX message: </p>
  
  <pre><code>8=FIX.4.4|9=122|35=D|34=215|49=CLIENT12|52=20100225-19:41:57.316|56=B|1=Marcel|11=13346|21=1|40=2|44=5|54=1|59=0|60=20100225-19:39:52.020|10=072|
  </code></pre>
  
  <p>and I am using quickfixJ.
  Here is my class code:</p>
  
  <pre><code>    public String getYear(Message aMessage, SessionID aSessionID){
          try {
              crack(aMessage, aSessionID);
          } catch (Exception e) {
             e.printStackTrace();
          }
  
          String year = String.valueOf(mUTCCal.get(Calendar.YEAR));
          String begin = String.valueOf(BeginString);
          return year + " " + begin;
      }
  </code></pre>
  
  <p>and when I call this method I 2012 null
  I tried all sorts of methods for different fields and I get null. I am confused about why I do not get null for the date and how do I make it interpret correctly the other fields?</p>
  
  <pre><code>    quickfix.fix44.NewOrderSingle message;
      message = new quickfix.fix44.NewOrderSingle();
      SessionID session = new SessionID("beginString", "senderCompID", "targetCompID");
      MyApp app = new MyApp("", "", "");
      String result = app.myMessage(message, session);
      System.out.println(result);
  </code></pre>
  
  <p>I do not understand where to input the string I have (up top) into message</p>
  
  <pre><code>    public void onMessage(Message message, SessionID sessionID) throws FieldNotFound {
          Header header = message.getHeader();
          String FIX = header.getString(8);
  
          System.out.println(FIX);
      }
  
      public void onMessage(quickfix.fix44.NewOrderSingle message, SessionID sessionID) throws FieldNotFound, UnsupportedMessageType, IncorrectTagValue {
      Header header = message.getHeader();
      String FIX = header.getString(8);
              String a = message.getString(1);
  
              System.out.println(a);
              System.out.println(FIX);}
  </code></pre>