[ 
https://issues.apache.org/jira/browse/ARROW-5120?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17662142#comment-17662142
 ] 

Rok Mihevc commented on ARROW-5120:
-----------------------------------

This issue has been migrated to [issue 
#21606|https://github.com/apache/arrow/issues/21606] on GitHub. Please see the 
[migration documentation|https://github.com/apache/arrow/issues/14542] for 
further details.

> [Java] Java library is returning a null pointer exception
> ---------------------------------------------------------
>
>                 Key: ARROW-5120
>                 URL: https://issues.apache.org/jira/browse/ARROW-5120
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: Java
>    Affects Versions: 0.12.0
>            Reporter: Haowei Yu
>            Priority: Major
>
> I am trying to use Java library to write data and read data back again. 
> However, I am able to write data successfully but failed on reading the 
> schema. Here is the stacktrace:
>  
> Exception in thread "main" java.lang.NullPointerException at 
> org.apache.arrow.vector.types.pojo.Schema.convertSchema(Schema.java:84) at
> org.apache.arrow.vector.ipc.message.ArrowFooter.<init>(ArrowFooter.java:47) 
> at 
> org.apache.arrow.vector.ipc.ArrowFileReader.readSchema(ArrowFileReader.java:91)
>  at org.apache.arrow.vector.ipc.ArrowReader.initialize(ArrowReader.java:178) 
> at 
> org.apache.arrow.vector.ipc.ArrowReader.ensureInitialized(ArrowReader.java:169)
>  at 
> org.apache.arrow.vector.ipc.ArrowReader.getVectorSchemaRoot(ArrowReader.java:62)
>  at com.snowflake.ArrowTestRunner.readData(ArrowTestRunner.java:67) at
> com.snowflake.ArrowTestRunner.run(ArrowTestRunner.java:56) at
> com.snowflake.Main.main(Main.java:22) Process finished with exit code 1
>  
> Seems that it failed to read footer by using generated flat buffer code.
> I can provide logs if necessary.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to