question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

java.lang.NullPointerException when creating agent with api

See original GitHub issue

Hi!

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:closed
  • Created a year ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
kovaszabcommented, Jul 6, 2022

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.

0reactions
stale[bot]commented, Nov 22, 2022

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found