Reply
New Contributor
Posts: 1
Registered: ‎03-08-2017

Navigator Api Config File Null Pointer Error

[ Edited ]

Hey 

 

I am using the Navigator Api, I rearranging a previously working Navigator Api project which worked fine.

But for some reason now when ever i attempted to initalise a new Navigator Plug in i get a null pointer error which i am un able to fix the errors always seem to occur with configFile.

 

NavigatorPlugin sdk = NavigatorPlugin.fromConfigFile(url.getPath());

 

I have also tried creating a Map of the config statements and passing that with.

 

NavigatorPlugin sdk = NavigatorPlugin.fromConfigMap(configMap);

 

For some reason the Api is forcing me to give values for every statement in the config file. Some of which i dont want to set and othere such as namespace which i dont know how to set properly and even with setting the majority of them namespace still gives me an error.

 

I was wondering if anyone had come across this before?

 

Config File:

# this is the URL of the client application
application_url=http://revhadoopctl

# Replace localhost:7187 with actual navigator URL
navigator_url=http://revhadoop

# Minimum is version 7 for publishing metadata to Navigator
# Version 9 is minimum for typed custom property support
navigator_api_version=9

# Designator for client application
# This will be used as the meta class package and custom property namespace
namespace=tf

# Navigator username and password
username=atstest
password=Had00pTest


# From README.md @ https://github.com/cloudera/navigator-sdk/tree/roundtrip-example....
# By default, Navigator throttles its own internal committing process so that new metadata
# won't be available immediately. For testing and development, you can add a
# configuration variable "autocommit=true".
#
# This disables this lag and adds assigned metadata straight away
autocommit=true

 

Announcements
New Solutions