Hey Everyone,
Trying to register an application using the REST API and am getting an NPE. Here is the JSON we're sending with the POST request:
{"instance":
{ "name": "ctbserver",
"app": "ctbserver",
"port": "80",
"securePort": "443",
"leaseInfo": {
"evictionDurationInSecs": "1000"
},
"hostname": "
XXXX.herokuapp.com",
"status": "STARTING",
"statusPageUrl": "
XXXX.herokuapp.com/status",
"healthCheckUrl": "
XXXX.herokuapp.com/health",
"dataCenterInfo": {
"name": "MyOwn"
}
}
}
Here's an excerpt from the log:
2015-03-10T15:48:24.353287+00:00 app[web.1]: java.lang.NullPointerException: null
2015-03-10T15:48:24.353289+00:00 app[web.1]: at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:936)
2015-03-10T15:48:24.353291+00:00 app[web.1]: at com.netflix.eureka.InstanceRegistry.register(InstanceRegistry.java:164)
2015-03-10T15:48:24.353296+00:00 app[web.1]: at com.netflix.eureka.PeerAwareInstanceRegistry.register(PeerAwareInstanceRegistry.java:466)
2015-03-10T15:48:24.353298+00:00 app[web.1]: at com.netflix.eureka.PeerAwareInstanceRegistry$$FastClassBySpringCGLIB$$336b8c82.invoke(<generated>)
Appreciate any help or suggestions. Thanks!