Splunk Dev

HTTP 404 -- User does not exist: user1

mahesh2684
Engager

When i execute java -jar explorer.jar

java -jar info.jar --username="admin" --password="admin"

C:\Program Files\Splunk Java SDK\dist\examples>java -jar info.jar --username="ad
min" --password="admin"
Picked up JAVA_TOOL_OPTIONS: -agentlib:jvmhook
Picked up _JAVA_OPTIONS: -Xrunjvmhook -Xbootclasspath/a:C:\PROGRA~2\HP\Sprinter\
bin\JAVA_S~1\classes;C:\PROGRA~2\HP\Sprinter\bin\JAVA_S~1\classes\jasmine.jar
Exception in thread "main" com.splunk.HttpException: HTTP 404 -- User does not e
xist: user1
        at com.splunk.HttpException.create(Unknown Source)
        at com.splunk.HttpService.send(Unknown Source)
        at com.splunk.Service.send(Unknown Source)
        at com.splunk.HttpService.get(Unknown Source)
        at com.splunk.Entity.refresh(Unknown Source)
        at com.splunk.Entity.refresh(Unknown Source)
        at com.splunk.Resource.validate(Unknown Source)
        at com.splunk.Entity.validate(Unknown Source)
        at com.splunk.Entity.getContent(Unknown Source)
        at com.splunk.Entity.getString(Unknown Source)
        at com.splunk.ServiceInfo.getVersion(Unknown Source)
        at com.splunk.Service.login(Unknown Source)
        at com.splunk.Service.connect(Unknown Source)
        at com.splunk.sdk.info.Program.main(Unknown Source)

Also when i run ant test from Splunk root i receive error in command prompt

 [junit] Test com.splunk.LicenseGroupTest FAILED
 [junit] Testsuite: com.splunk.LicenseMessageTest
 [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0.429 sec
 [junit]
 [junit] Testcase: testLicenseMessage took 0.423 sec
 [junit]     Caused an ERROR
 [junit] HTTP 404 -- User does not exist: user1
 [junit] com.splunk.HttpException: HTTP 404 -- User does not exist: user1
 [junit]     at com.splunk.HttpException.create(Unknown Source)
 [junit]     at com.splunk.HttpService.send(Unknown Source)
 [junit]     at com.splunk.Service.send(Unknown Source)
 [junit]     at com.splunk.HttpService.get(Unknown Source)
 [junit]     at com.splunk.Entity.refresh(Unknown Source)
 [junit]     at com.splunk.Entity.refresh(Unknown Source)
 [junit]     at com.splunk.Resource.validate(Unknown Source)
 [junit]     at com.splunk.Entity.validate(Unknown Source)
 [junit]     at com.splunk.Entity.getContent(Unknown Source)
 [junit]     at com.splunk.Entity.getString(Unknown Source)
 [junit]     at com.splunk.ServiceInfo.getVersion(Unknown Source)
 [junit]     at com.splunk.Service.login(Unknown Source)
 [junit]     at com.splunk.Service.connect(Unknown Source)
 [junit]     at com.splunk.SplunkTestCase.connect(Unknown Source)
 [junit]     at com.splunk.LicenseMessageTest.testLicenseMessage(Unknown Sour

 [junit]
 [junit] Picked up JAVA_TOOL_OPTIONS: -agentlib:jvmhook
Tags (4)

Neeraj_Luthra
Splunk Employee
Splunk Employee

Hi Mahesh,

As you pointed it out, the issue is not specific to info.jar.
Have you modified the SDK in any way? Could you provide a copy of your .splunkrc?

Also, could you also let us know what version of Java and Windows you are on.

-Neeraj

0 Karma
Get Updates on the Splunk Community!

Updated Team Landing Page in Splunk Observability

We’re making some changes to the team landing page in Splunk Observability, based on your feedback. The ...

New! Splunk Observability Search Enhancements for Splunk APM Services/Traces and ...

Regardless of where you are in Splunk Observability, you can search for relevant APM targets including service ...

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...