<?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>article Auditing a project with a remote CommandLine in Official Support Articles</title>
    <link>https://community.qlik.com/t5/Official-Support-Articles/Auditing-a-project-with-a-remote-CommandLine/ta-p/2150606</link>
    <description>&lt;DIV class="talend-tkb-migrated-content"&gt;&lt;H2&gt;Overview&lt;/H2&gt; 
&lt;P&gt;When auditing a project using a remote &lt;SPAN&gt;CommandLine &lt;/SPAN&gt;that doesn't have access to the H2 audit database, a &lt;STRONG&gt;NullPointerException&lt;/STRONG&gt; will be returned.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;H2&gt;Symptoms/Description&lt;/H2&gt; 
&lt;P&gt;Below is the exception returned while fetching an audit report for a project where a remote &lt;SPAN&gt;CommandLine &lt;/SPAN&gt;is used and where the audit database location is not on a shared location:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;java.lang.RuntimeException: java.lang.NullPointerException
   at org.talend.commandline.command.ExtensionCommandSwitch.caseExtensionServerCommand(ExtensionCommandSwitch.java:148)
   at org.talend.commandline.client.command.extension.AbstractExtensionCommandSwitch.doSwitch(AbstractExtensionCommandSwitch.java:31)
   at org.talend.commandline.command.CommandProcessorSwitch.caseExtensionCommand(CommandProcessorSwitch.java:161)
   at org.talend.commandline.client.util.CommandAbstractSwitch.doSwitch(CommandAbstractSwitch.java:70)
   at org.talend.commandline.command.CommandConsumer.executeCommand(CommandConsumer.java:57)
   at org.talend.commandline.command.CommandConsumer.execute(CommandConsumer.java:35)
   at org.talend.commandline.mode.ServerCommandLine$CommmandConsumerRunnable.run(ServerCommandLine.java:139)
   at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NullPointerException
   at org.talend.commandline.audit.datasource.HibernateUtils.checkAuditDB(HibernateUtils.java:141)
   at org.talend.commandline.audit.datasource.HibernateUtils.init(HibernateUtils.java:106)
   at org.talend.commandline.audit.TalendAuditSelectMode2.createHibernateSessionFactory(TalendAuditSelectMode2.java:305)
   at org.talend.commandline.audit.command.PopulateAuditExecuteCommand.execute(PopulateAuditExecuteCommand.java:130)
   at org.talend.commandline.command.ExtensionCommandSwitch.caseExtensionServerCommand(ExtensionCommandSwitch.java:146)
   ... 7 more&lt;/PRE&gt; 
&lt;H2&gt;Resolution&lt;/H2&gt; 
&lt;P&gt;With a remote &lt;SPAN&gt;CommandLine&lt;/SPAN&gt;, ensure that the H2 audit database location is shared so that both tomcat and commandline can access it.&lt;/P&gt; 
&lt;P&gt;This error can also be reported if a &lt;SPAN&gt;CommandLine &lt;/SPAN&gt; local to TAC is used without enough permissions on the audit database directory.&lt;/P&gt; 
&lt;P&gt;Ensure that the &lt;SPAN&gt;CommandLine &lt;/SPAN&gt;user has sufficient permissions on H2 audit database directory and is able to read and write files.&lt;/P&gt; 
&lt;P&gt;The exact cause of the error can be found in the &lt;STRONG&gt;.log&lt;/STRONG&gt; file of the &lt;SPAN&gt;CommandLine &lt;/SPAN&gt;directory available at &lt;STRONG&gt;CMD_LINE/commandline-workspace/.metadata&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Documentation suggests using the same user to start the CommandLine and Tomcat: to ensure correct management, make sure to launch Tomcat using the same administrator account as for the CommandLine.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;For example: Create an account &lt;STRONG&gt;TISAdmin&lt;/STRONG&gt; for both Tomcat and CommandLine.&lt;/P&gt;&lt;/DIV&gt;</description>
    <pubDate>Fri, 09 Feb 2024 18:22:49 GMT</pubDate>
    <dc:creator>TalendSolutionExpert</dc:creator>
    <dc:date>2024-02-09T18:22:49Z</dc:date>
    <item>
      <title>Auditing a project with a remote CommandLine</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Auditing-a-project-with-a-remote-CommandLine/ta-p/2150606</link>
      <description>&lt;DIV class="talend-tkb-migrated-content"&gt;&lt;H2&gt;Overview&lt;/H2&gt; 
&lt;P&gt;When auditing a project using a remote &lt;SPAN&gt;CommandLine &lt;/SPAN&gt;that doesn't have access to the H2 audit database, a &lt;STRONG&gt;NullPointerException&lt;/STRONG&gt; will be returned.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;H2&gt;Symptoms/Description&lt;/H2&gt; 
&lt;P&gt;Below is the exception returned while fetching an audit report for a project where a remote &lt;SPAN&gt;CommandLine &lt;/SPAN&gt;is used and where the audit database location is not on a shared location:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;java.lang.RuntimeException: java.lang.NullPointerException
   at org.talend.commandline.command.ExtensionCommandSwitch.caseExtensionServerCommand(ExtensionCommandSwitch.java:148)
   at org.talend.commandline.client.command.extension.AbstractExtensionCommandSwitch.doSwitch(AbstractExtensionCommandSwitch.java:31)
   at org.talend.commandline.command.CommandProcessorSwitch.caseExtensionCommand(CommandProcessorSwitch.java:161)
   at org.talend.commandline.client.util.CommandAbstractSwitch.doSwitch(CommandAbstractSwitch.java:70)
   at org.talend.commandline.command.CommandConsumer.executeCommand(CommandConsumer.java:57)
   at org.talend.commandline.command.CommandConsumer.execute(CommandConsumer.java:35)
   at org.talend.commandline.mode.ServerCommandLine$CommmandConsumerRunnable.run(ServerCommandLine.java:139)
   at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NullPointerException
   at org.talend.commandline.audit.datasource.HibernateUtils.checkAuditDB(HibernateUtils.java:141)
   at org.talend.commandline.audit.datasource.HibernateUtils.init(HibernateUtils.java:106)
   at org.talend.commandline.audit.TalendAuditSelectMode2.createHibernateSessionFactory(TalendAuditSelectMode2.java:305)
   at org.talend.commandline.audit.command.PopulateAuditExecuteCommand.execute(PopulateAuditExecuteCommand.java:130)
   at org.talend.commandline.command.ExtensionCommandSwitch.caseExtensionServerCommand(ExtensionCommandSwitch.java:146)
   ... 7 more&lt;/PRE&gt; 
&lt;H2&gt;Resolution&lt;/H2&gt; 
&lt;P&gt;With a remote &lt;SPAN&gt;CommandLine&lt;/SPAN&gt;, ensure that the H2 audit database location is shared so that both tomcat and commandline can access it.&lt;/P&gt; 
&lt;P&gt;This error can also be reported if a &lt;SPAN&gt;CommandLine &lt;/SPAN&gt; local to TAC is used without enough permissions on the audit database directory.&lt;/P&gt; 
&lt;P&gt;Ensure that the &lt;SPAN&gt;CommandLine &lt;/SPAN&gt;user has sufficient permissions on H2 audit database directory and is able to read and write files.&lt;/P&gt; 
&lt;P&gt;The exact cause of the error can be found in the &lt;STRONG&gt;.log&lt;/STRONG&gt; file of the &lt;SPAN&gt;CommandLine &lt;/SPAN&gt;directory available at &lt;STRONG&gt;CMD_LINE/commandline-workspace/.metadata&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Documentation suggests using the same user to start the CommandLine and Tomcat: to ensure correct management, make sure to launch Tomcat using the same administrator account as for the CommandLine.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;For example: Create an account &lt;STRONG&gt;TISAdmin&lt;/STRONG&gt; for both Tomcat and CommandLine.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 09 Feb 2024 18:22:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Auditing-a-project-with-a-remote-CommandLine/ta-p/2150606</guid>
      <dc:creator>TalendSolutionExpert</dc:creator>
      <dc:date>2024-02-09T18:22:49Z</dc:date>
    </item>
  </channel>
</rss>

