Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

base64 function fails with NPE on OpenJDK #197

Closed
costin opened this Issue Apr 24, 2014 · 0 comments

Comments

Projects
None yet
1 participant
@costin
Copy link
Member

costin commented Apr 24, 2014

It seems that on OpenJDK ("openjdk version "1.7.0-internal") the current base64 encoding/decoding function fails with a NPE:

    >
    > java.lang.NullPointerException
    >         at javax.xml.bind.DatatypeConverterImpl.guessLength(DatatypeConverterImpl.java:653)
    >         at javax.xml.bind.DatatypeConverterImpl._parseBase64Binary(DatatypeConverterImpl.java:691)
    >         at javax.xml.bind.DatatypeConverterImpl.parseBase64Binary(DatatypeConverterImpl.java:433)
    >         at javax.xml.bind.DatatypeConverter.parseBase64Binary(DatatypeConverter.java:342)
    >         at org.elasticsearch.hadoop.util.IOUtils.deserializeFromBase64(IOUtils.java:56)
    >         at org.elasticsearch.hadoop.pig.EsStorage.prepareToWrite(EsStorage.java:178)
    >         at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigOutputFormat$PigRecordWriter.<init>(PigOutputFormat.java:125)
    >         at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigOutputFormat.getRecordWriter(PigOutputFormat.java:86)
    >         at org.apache.hadoop.mapred.ReduceTask$NewTrackingRecordWriter.<init>(ReduceTask.java:568)
    >         at org.apache.hadoop.mapred.ReduceTask.runNewReducer(ReduceTask.java:637)
    >         at org.apache.hadoop.mapred.ReduceTask.run(ReduceTask.java:418)
    >         at org.apache.hadoop.mapred.Child$4.run(Child.java:266)
    >         at java.security.AccessController.doPrivileged(Native Method)
    >         at javax.security.auth.Subject.doAs(Subject.java:415)
    >         at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1233)
    >         at org.apache.hadoop.mapred.Child.main(Child.java:260) 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.