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 the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...