incubator-gora-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lewis John Mcgibbney <>
Subject null.pointer.Exception in o.a.g.util.IOUtils
Date Tue, 13 Dec 2011 21:14:19 GMT

Having a look at failing tests in gora-core module here. In particular
the following stack trace [1] which occurs for 5 tests in all. I
thought I had begun to solve it earlier but unfortunately I was wrong.

I think it is the code below, taken from IOUtils which is which is
invoking the exception. I've added the important line numbers. For
clarity the stack trace notes that the NPE is caught at line 116.

107  /** Serializes the object to the given dataoutput using
   * available Hadoop serializations
   * @throws IOException */
  public static<T> void serialize(Configuration conf, DataOutput out
      , T obj, Class<T> objClass) throws IOException {

    if(serializationFactory == null) {
      serializationFactory = new SerializationFactory(getOrCreateConf(conf));
116    Serializer<T> serializer = serializationFactory.getSerializer(objClass);

    ByteBufferOutputStream os = new ByteBufferOutputStream();
    try {;
121      serializer.serialize(obj);



View raw message