java.lang.NullPointerException when creating agent with api
See original GitHub issueHi!
I tried to create an Agent with the API endpoint agents
with a post request, with the data being:
{
"apiVersion": "v1beta1",
"kind": "Agent",
"metadata": {
"name": "John Doe"
},
"spec": {
"credentials": {
"username": "1004",
"secret": "1234"
},
"domains": [
"plasma.lan"
]
}
}
The response is always {"status":400,"message":"java.lang.NullPointerException"}
.
Versions is tried:
- 1.0.5
- 1.0.3
Issue Analytics
- State:
- Created a year ago
- Comments:9 (4 by maintainers)
Top Results From Across the Web
Error: Exception thrown by the agent : java.lang ...
This error occurs if com.sun.management.jmxremote.rmi.port is set to a port that is already in use. Try setting the property to a free port...
Read more >New relic java agent 7.5.0 throws NullPointerException and ...
Description NullPointerException is thrown by new relic java agent, when version 7.5.0 is enabled for my web application.
Read more >Solved: NullPointerException on service catalog rest api G...
Solved: I've been trying to learn the REST API and have hit a wall. I'm able to generate Incident and Change tickets and...
Read more >How to resolve the java.lang.NullPointerException - Educative.io
In Java, the java.lang.NullPointerException is thrown when a reference variable is accessed (or de-referenced) and is not pointing to any object.
Read more >How to Fix and Avoid NullPointerException in Java - Rollbar
The java.lang.NullPointerException is a runtime exception in Java that occurs when a variable is accessed which is not pointing to any ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Okay so I tried
rctl
but it doesn’t works for me for some reason. I can login but I can’t get any resources because it says it has none. And also I tried to import config yamls on the rctl proxy and it cannot import any saying{"status":400,"message":"Bad request","data":"Bad configuration in at least one resource"}
. It’s strange because when I list the agents for example, on the REST api it sends me back the agents and their refs, and I can also list logged in devices and so on.This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.