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!

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...