[ 
https://issues.apache.org/jira/browse/HADOOP-549?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12468838
 ] 

Hadoop QA commented on HADOOP-549:
----------------------------------

-1, because the patch command could not apply the latest attachment 
(http://issues.apache.org/jira/secure/attachment/12341144/readstringarray.patch)
 as a patch to trunk revision r501616. Please note that this message is 
automatically generated and may represent a problem with the automation system 
and not the patch.

> NullPointerException in TaskReport's serialization code
> -------------------------------------------------------
>
>                 Key: HADOOP-549
>                 URL: https://issues.apache.org/jira/browse/HADOOP-549
>             Project: Hadoop
>          Issue Type: Bug
>          Components: mapred
>            Reporter: Michel Tourn
>         Assigned To: Owen O'Malley
>             Fix For: 0.11.0
>
>         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.
-
You can reply to this email to add a comment to the issue online.

Reply via email to