<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Catch Exceptions of screenlets</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=114159720" />
  <subtitle>Catch Exceptions of screenlets</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=114159720</id>
  <updated>2026-04-04T07:57:41Z</updated>
  <dc:date>2026-04-04T07:57:41Z</dc:date>
  <entry>
    <title>RE: Catch Exceptions of screenlets</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114161780" />
    <author>
      <name>David H Nebinger</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114161780</id>
    <updated>2019-06-28T21:55:16Z</updated>
    <published>2019-06-28T21:55:16Z</published>
    <summary type="html">Sorry, I didn&amp;#39;t catch that this was in mobile...&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I&amp;#39;ll see if I can find someone to help...</summary>
    <dc:creator>David H Nebinger</dc:creator>
    <dc:date>2019-06-28T21:55:16Z</dc:date>
  </entry>
  <entry>
    <title>RE: Catch Exceptions of screenlets</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114161763" />
    <author>
      <name>Javier Gamarra</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114161763</id>
    <updated>2019-06-28T21:43:25Z</updated>
    <published>2019-06-28T21:43:25Z</published>
    <summary type="html">Strange... I just tried with the sample App and the asset list activity and I get the error method @Override public void onListPageFailed(int startRow, Exception e) { called</summary>
    <dc:creator>Javier Gamarra</dc:creator>
    <dc:date>2019-06-28T21:43:25Z</dc:date>
  </entry>
  <entry>
    <title>RE: Catch Exceptions of screenlets</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114160419" />
    <author>
      <name>David H Nebinger</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114160419</id>
    <updated>2019-06-28T13:44:55Z</updated>
    <published>2019-06-28T13:44:55Z</published>
    <summary type="html">If you are running this as a thread, you must realize that much of the initialization context available during an incoming request will not have been in place in your thread context. It will be up to you to fully initialize your context within the scope of the thread.</summary>
    <dc:creator>David H Nebinger</dc:creator>
    <dc:date>2019-06-28T13:44:55Z</dc:date>
  </entry>
  <entry>
    <title>Catch Exceptions of screenlets</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114159719" />
    <author>
      <name>László Tóth</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114159719</id>
    <updated>2019-06-28T12:14:04Z</updated>
    <published>2019-06-28T12:14:04Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;Hi!I user an assetlist screenlet to display items. When the session is expired the screenlet is throw an Exception:&amp;nbsp;&lt;pre&gt;&lt;code&gt;LiferayScreens: Error loading list
&amp;amp;nbsp; &amp;amp;nbsp; java.lang.IllegalStateException: You need to be logged in to get a session
&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; at com.liferay.mobile.screens.context.SessionContext.createSessionFromCurrentSession(SessionContext.java:79)
&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; at com.liferay.mobile.screens.base.interactor.BaseInteractor.getSession(BaseInteractor.java:102)
&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; at com.liferay.mobile.screens.asset.list.interactor.AssetListInteractor.getEntries(AssetListInteractor.java:85)
&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; at com.liferay.mobile.screens.asset.list.interactor.AssetListInteractor.execute(AssetListInteractor.java:56)
&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; at com.liferay.mobile.screens.base.list.interactor.BaseListInteractor.online(BaseListInteractor.java:173)
&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; at com.liferay.mobile.screens.base.interactor.BaseCacheReadInteractor$1.run(BaseCacheReadInteractor.java:65)
&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; at java.lang.Thread.run(Thread.java:764)
&lt;/code&gt;&lt;/pre&gt;I added the BaseListListener to assetlistscreenlet, but the error method is never invoked.How can I catch that exception?&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>László Tóth</dc:creator>
    <dc:date>2019-06-28T12:14:04Z</dc:date>
  </entry>
</feed>
