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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...