You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@metamodel.apache.org by GitBox <gi...@apache.org> on 2019/10/07 08:30:41 UTC
[GitHub] [metamodel] jhorcicka commented on issue #229: Upgrade to
Elasticsearch 7.3.1
jhorcicka commented on issue #229: Upgrade to Elasticsearch 7.3.1
URL: https://github.com/apache/metamodel/pull/229#issuecomment-538894162
While using this branch, I get the following NPE:
```
ERROR 16:30:26 ElasticSearchRestDataContext - Unexpected error during detectTable for document type '_doc'
java.lang.NullPointerException
at org.apache.metamodel.elasticsearch.common.ElasticSearchMetaDataParser.parse(ElasticSearchMetaDataParser.java:41)
at org.apache.metamodel.elasticsearch.rest.ElasticSearchRestDataContext.detectTable(ElasticSearchRestDataContext.java:187)
at org.apache.metamodel.elasticsearch.rest.ElasticSearchRestDataContext.detectSchema(ElasticSearchRestDataContext.java:155)
at org.apache.metamodel.elasticsearch.rest.ElasticSearchRestDataContext.<init>(ElasticSearchRestDataContext.java:111)
at org.apache.metamodel.elasticsearch.rest.ElasticSearchRestDataContext.<init>(ElasticSearchRestDataContext.java:124)
at org.datacleaner.extension.elasticsearch.MockElasticSearchDatastore.createDatastoreConnection(MockElasticSearchDatastore.java:28)
at org.datacleaner.connection.UsageAwareDatastore.getDatastoreConnection(UsageAwareDatastore.java:97)
at org.datacleaner.connection.UsageAwareDatastore.openConnection(UsageAwareDatastore.java:108)
at org.datacleaner.connection.ElasticSearchDatastore.openConnection(ElasticSearchDatastore.java:183)
at org.datacleaner.extension.elasticsearch.ElasticSearchIndexAnalyzer.init(ElasticSearchIndexAnalyzer.java:100)
```
It would be nice to fix it here. Add a null check for "metaDataInfo".
![01](https://user-images.githubusercontent.com/13213915/66296259-6f143800-e8ed-11e9-9f22-dadfc53bf3ed.png)
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services