Splunk Dev

error when run java sdk -next() may not be called when XMLStreamReader is at END_DOCUMENT

kobieini
Engager

what can create this error?
java.lang.RuntimeException: java.lang.RuntimeException: next() may not be called when XMLStreamReader is at END_DOCUMENT
at com.splunk.Entity.refresh(Entity.java:373)
at com.splunk.Entity.refresh(Entity.java:1)
at com.splunk.Resource.validate(Resource.java:183)
at com.splunk.Entity.validate(Entity.java:449)
at com.splunk.Entity.getContent(Entity.java:159)
at com.splunk.Entity.getString(Entity.java:277)
at com.splunk.ServiceInfo.getVersion(ServiceInfo.java:151)
at com.splunk.Service.login(Service.java:956)
at com.splunk.Service.connect(Service.java:150)
at com.splunk.sdk.search.Program.run(Program.java:120)
at com.splunk.sdk.search.Program.main(Program.java:57)
Caused by: java.lang.RuntimeException: next() may not be called when XMLStreamReader is at END_DOCUMENT
at com.splunk.AtomObject.scan(AtomObject.java:198)
at com.splunk.AtomObject.load(AtomObject.java:127)
at com.splunk.AtomFeed.parse(AtomFeed.java:80)
at com.splunk.AtomFeed.parseStream(AtomFeed.java:59)
at com.splunk.Entity.refresh(Entity.java:371)
... 10 more

Tags (3)

wcolgate_splunk
Splunk Employee
Splunk Employee

Can you also tell us what you were doing when this error occurred? Can you post any of your code that tickles this issue?

0 Karma

davidfstr
Explorer

What version of the Java SDK are you using?

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 ...