hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Owen O'Malley (JIRA)" <j...@apache.org>
Subject [jira] Assigned: (HADOOP-549) NullPointerException in TaskReport's serialization code
Date Thu, 28 Sep 2006 20:39:54 GMT
     [ http://issues.apache.org/jira/browse/HADOOP-549?page=all ]

Owen O'Malley reassigned HADOOP-549:
------------------------------------

    Assignee: Owen O'Malley

> NullPointerException in TaskReport's serialization code
> -------------------------------------------------------
>
>                 Key: HADOOP-549
>                 URL: http://issues.apache.org/jira/browse/HADOOP-549
>             Project: Hadoop
>          Issue Type: Bug
>          Components: mapred
>            Reporter: Michel Tourn
>         Assigned To: Owen O'Malley
>         Attachments: readstringarray.patch
>
>
> TaskReport[] rep = jc.getMapTaskReports(jobId);
> I get de/serialization problems:
> This change suggested by Owen fixes it:
> -    new ObjectWritable(diagnostics).write(out);
> +    WritableUtils.writeStringArray(out, diagnostics);
> -    ObjectWritable wrapper = new ObjectWritable();
> -    wrapper.readFields(in);
> -    diagnostics = (String[])wrapper.get();
> +    diagnostics = WritableUtils.readStringArray(in);
> java.lang.NullPointerException
> at org.apache.hadoop.io.ObjectWritable.readObject(ObjectWritable.java:174)
> at org.apache.hadoop.io.ObjectWritable.readFields(ObjectWritable.java:59)
> at org.apache.hadoop.mapred.TaskReport.readFields(TaskReport.java:64)
> at org.apache.hadoop.io.ObjectWritable.readObject(ObjectWritable.java:225)
> at org.apache.hadoop.io.ObjectWritable.readObject(ObjectWritable.java:163)
> at org.apache.hadoop.io.ObjectWritable.readObject(ObjectWritable.java:210)
> at org.apache.hadoop.io.ObjectWritable.readFields(ObjectWritable.java:59)
> at org.apache.hadoop.ipc.Client$Connection.run(Client.java:256)
> 2006-09-19 08:44:31,059 WARN  ipc.Server (Server.java:run(493)) - handler output error
> java.nio.channels.ClosedChannelException

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message