<?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>Question Re: Backoffice context occasionally fails to startup: NullPointerException at DomLoader.java:134 in CRM and CX Q&amp;A</title>
    <link>https://community.sap.com/t5/crm-and-cx-q-a/backoffice-context-occasionally-fails-to-startup-nullpointerexception-at/qaa-p/12051763#M403565</link>
    <description>&lt;P&gt;Update: turns out that this solution does not solve the problem - it still keeps happening from time to time.&lt;/P&gt;</description>
    <pubDate>Wed, 09 Jun 2021 08:49:52 GMT</pubDate>
    <dc:creator>pavelska</dc:creator>
    <dc:date>2021-06-09T08:49:52Z</dc:date>
    <item>
      <title>Backoffice context occasionally fails to startup: NullPointerException at DomLoader.java:134</title>
      <link>https://community.sap.com/t5/crm-and-cx-q-a/backoffice-context-occasionally-fails-to-startup-nullpointerexception-at/qaq-p/12051761</link>
      <description>&lt;P&gt;Hybris 18.08.3 is running on a cluster. One of the nodes is dedicated to background jobs and is not exposed publicly for visitors. Most cron jobs are running on that node. Lately, often (not always) after restarting this background node, following exception gets thrown: &lt;A href="https://answers.sap.com/storage/temp/1719498-12525-bo-context-npe-stacktrace.txt"&gt;NPE stack trace&lt;/A&gt;&lt;/P&gt;
  &lt;P&gt;After that some classes become inaccessible - lots of &lt;EM&gt;NoClassDefFoundError&lt;/EM&gt;, for example: &lt;A href="https://answers.sap.com/storage/temp/1719520-12526-classloaderutils-stacktrace.txt"&gt;NoClassDefFoundError example&lt;/A&gt;&lt;/P&gt;
  &lt;P&gt;Rebuild/restart helps, but only in roughly 70% of cases. Sometimes we have to restart the server several times before &lt;EM&gt;NoClassDefFoundError&lt;/EM&gt; disappear.&lt;/P&gt;
  &lt;P&gt;What specifically could cause it and how could it be mitigated?&lt;/P&gt;
  &lt;P&gt;Any help is very much appreciated.&lt;/P&gt;
  &lt;P&gt;&lt;STRONG&gt;UPDATE 2020-06-03: Workaround found&lt;/STRONG&gt;&lt;/P&gt;
  &lt;P&gt;We have discovered that if we disable the frequently running backoffice index cron job (which runs every minute) during server startup, then the mentioned error does not happen. After server fully starts up, then we can re-enable the job, and it runs normally.&lt;/P&gt;
  &lt;P&gt;Our current guess is that because of high frequency of this job, it tries to run too early, while the server has not completely started up. So the job might try to use some classes before those classes are loaded. And if the first failed attempt to load those classes fails, then future attempts also fail (still not sure what exact mechanism is responsible for that).&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2019 09:35:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/crm-and-cx-q-a/backoffice-context-occasionally-fails-to-startup-nullpointerexception-at/qaq-p/12051761</guid>
      <dc:creator>pavelska</dc:creator>
      <dc:date>2019-04-03T09:35:56Z</dc:date>
    </item>
    <item>
      <title>Re: Backoffice context occasionally fails to startup: NullPointerException at DomLoader.java:134</title>
      <link>https://community.sap.com/t5/crm-and-cx-q-a/backoffice-context-occasionally-fails-to-startup-nullpointerexception-at/qaa-p/12051762#M403564</link>
      <description>&lt;P&gt;An elegant workaround was discovered:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;task.polling.startup.delay.enabled=true
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;From SAP docs:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Postponing Database Polling&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;
Platform may start to poll the database to retrieve tasks during Tomcat startup even when not all servlet contexts are initialized. To postpone polling the database for tasks until all servlet contexts are started, set the task.polling.startup.delay.enabled property to true. The default value of this property is false.&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Source: &lt;A href="https://help.sap.com/viewer/d0224eca81e249cb821f2cdf45a82ace/1808/en-US/7946d61720754981887ba63af9d88354.html" target="_blank"&gt;https://help.sap.com/viewer/d0224eca81e249cb821f2cdf45a82ace/1808/en-US/7946d61720754981887ba63af9d88354.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Apr 2021 11:32:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/crm-and-cx-q-a/backoffice-context-occasionally-fails-to-startup-nullpointerexception-at/qaa-p/12051762#M403564</guid>
      <dc:creator>pavelska</dc:creator>
      <dc:date>2021-04-07T11:32:05Z</dc:date>
    </item>
    <item>
      <title>Re: Backoffice context occasionally fails to startup: NullPointerException at DomLoader.java:134</title>
      <link>https://community.sap.com/t5/crm-and-cx-q-a/backoffice-context-occasionally-fails-to-startup-nullpointerexception-at/qaa-p/12051763#M403565</link>
      <description>&lt;P&gt;Update: turns out that this solution does not solve the problem - it still keeps happening from time to time.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jun 2021 08:49:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/crm-and-cx-q-a/backoffice-context-occasionally-fails-to-startup-nullpointerexception-at/qaa-p/12051763#M403565</guid>
      <dc:creator>pavelska</dc:creator>
      <dc:date>2021-06-09T08:49:52Z</dc:date>
    </item>
    <item>
      <title>Re: Backoffice context occasionally fails to startup: NullPointerException at DomLoader.java:134</title>
      <link>https://community.sap.com/t5/crm-and-cx-q-a/backoffice-context-occasionally-fails-to-startup-nullpointerexception-at/qaa-p/12051764#M403566</link>
      <description>&lt;P&gt;From stack trace, I could only make out that : &lt;BR /&gt;&lt;STRONG&gt;some line in cockpit configuration (may be backoffice *-config.xml) is wrong. &lt;/STRONG&gt;&lt;BR /&gt;Its parsing is expecting something and hence causing NPE since missing. &lt;/P&gt;&lt;P&gt;Please validate your config XMLs from all related extensions. &lt;/P&gt;&lt;P&gt;Might help!&lt;BR /&gt;Thanks! &lt;/P&gt;</description>
      <pubDate>Wed, 09 Jun 2021 14:23:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/crm-and-cx-q-a/backoffice-context-occasionally-fails-to-startup-nullpointerexception-at/qaa-p/12051764#M403566</guid>
      <dc:creator>pavan_joshi1</dc:creator>
      <dc:date>2021-06-09T14:23:22Z</dc:date>
    </item>
    <item>
      <title>Re: Backoffice context occasionally fails to startup: NullPointerException at DomLoader.java:134</title>
      <link>https://community.sap.com/t5/crm-and-cx-q-a/backoffice-context-occasionally-fails-to-startup-nullpointerexception-at/qaa-p/12051765#M403567</link>
      <description>&lt;P&gt;Thanks for looking into this question. The backoffice config XML is quite heavily customized in my project, and having very little information in the error message, I'm afraid it will be very difficult to find the problem (assuming it's there in the first place). But I will give it a look.&lt;/P&gt;&lt;P&gt;Current working hypothesis is that issue might be related to this: &lt;A href="https://answers.sap.com/questions/12761421/solr-search-in-backoffice-null-pointer-exception-d.html"&gt;https://answers.sap.com/questions/12761421/solr-search-in-backoffice-null-pointer-exception-d.html&lt;/A&gt;. Next thing I am going to try out when I get back to this problem is the workaround described in mentioned Q&amp;amp;A thread.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jun 2021 14:35:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/crm-and-cx-q-a/backoffice-context-occasionally-fails-to-startup-nullpointerexception-at/qaa-p/12051765#M403567</guid>
      <dc:creator>pavelska</dc:creator>
      <dc:date>2021-06-09T14:35:37Z</dc:date>
    </item>
  </channel>
</rss>

