<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Java SDK: Why does the JobCollection create method return null? in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/Java-SDK-Why-does-the-JobCollection-create-method-return-null/m-p/426296#M7580</link>
    <description>&lt;P&gt;Some backstory:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;I am writing end-to-end automation for a microservice that writes events to Splunk.&lt;/LI&gt;
&lt;LI&gt;I use Java Splunk SDK version 1.6.3.0, which is the latest version stored on our artifactory&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;When I call create("some query") on a JobCollection object, I often (but not always) get back ‘null’ and I’m not sure what that means or how I should handle it as it's not documented. Does anyone know?&lt;/P&gt;</description>
    <pubDate>Wed, 23 Jan 2019 22:36:51 GMT</pubDate>
    <dc:creator>teresap</dc:creator>
    <dc:date>2019-01-23T22:36:51Z</dc:date>
    <item>
      <title>Java SDK: Why does the JobCollection create method return null?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Java-SDK-Why-does-the-JobCollection-create-method-return-null/m-p/426296#M7580</link>
      <description>&lt;P&gt;Some backstory:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;I am writing end-to-end automation for a microservice that writes events to Splunk.&lt;/LI&gt;
&lt;LI&gt;I use Java Splunk SDK version 1.6.3.0, which is the latest version stored on our artifactory&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;When I call create("some query") on a JobCollection object, I often (but not always) get back ‘null’ and I’m not sure what that means or how I should handle it as it's not documented. Does anyone know?&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jan 2019 22:36:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Java-SDK-Why-does-the-JobCollection-create-method-return-null/m-p/426296#M7580</guid>
      <dc:creator>teresap</dc:creator>
      <dc:date>2019-01-23T22:36:51Z</dc:date>
    </item>
    <item>
      <title>Re: Java SDK: Why does the JobCollection create method return null?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Java-SDK-Why-does-the-JobCollection-create-method-return-null/m-p/426297#M7581</link>
      <description>&lt;P&gt;@teresap &lt;/P&gt;

&lt;P&gt;Can you please share your sample code ?&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jan 2019 05:09:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Java-SDK-Why-does-the-JobCollection-create-method-return-null/m-p/426297#M7581</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2019-01-24T05:09:47Z</dc:date>
    </item>
    <item>
      <title>Re: Java SDK: Why does the JobCollection create method return null?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Java-SDK-Why-does-the-JobCollection-create-method-return-null/m-p/426298#M7582</link>
      <description>&lt;P&gt;Hi @kamlesh_vaghela , I basically do it like this: &lt;A href="http://dev.splunk.com/view/java-sdk/SP-CAAAEHQ"&gt;http://dev.splunk.com/view/java-sdk/SP-CAAAEHQ&lt;/A&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;// Retrieves the collection of search jobs
JobCollection jobs = service.getJobs();

// Creates a search job
Job job = jobs.create(query);
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 24 Jan 2019 09:14:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Java-SDK-Why-does-the-JobCollection-create-method-return-null/m-p/426298#M7582</guid>
      <dc:creator>teresap</dc:creator>
      <dc:date>2019-01-24T09:14:26Z</dc:date>
    </item>
  </channel>
</rss>

