2 Replies Latest reply: Oct 6, 2007 5:57 AM by 807605 RSS

    getting exception while conerting bytearrayinputstream to objectinputstream

      this is my code:
      FrmwkNotificationMessage frmwkNotifMsg;
      System.out.println("Entering Handler");
      //Converting IMessage to EstNotificationMessage object
      frmwkNotifMsg = (FrmwkNotificationMessage) msg;
      ByteArrayInputStream bis = new ByteArrayInputStream(frmwkNotifMsg.getOriginalBytes());
      ObjectInputStream ois = new ObjectInputStream(bis);
      Object obj = ois.readObject();
      System.out.println("converted to object");

      i am getting the sys.out "bytes" in my console but not "converted to object". instead it is throwing an exception. can anyone help?