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!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...