<?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>LifeRay 7.3 wont allow calling getUser() method</title>
  <link rel="self" href="https://liferay.dev/sv/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=118985548" />
  <subtitle>LifeRay 7.3 wont allow calling getUser() method</subtitle>
  <id>https://liferay.dev/sv/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=118985548</id>
  <updated>2026-06-12T13:17:42Z</updated>
  <dc:date>2026-06-12T13:17:42Z</dc:date>
  <entry>
    <title>RE: LifeRay 7.3 wont allow calling getUser() method</title>
    <link rel="alternate" href="https://liferay.dev/sv/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120557079" />
    <author>
      <name>Diego valencia</name>
    </author>
    <id>https://liferay.dev/sv/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120557079</id>
    <updated>2021-01-21T16:58:51Z</updated>
    <published>2021-01-21T16:50:33Z</published>
    <summary type="html">&lt;p&gt;I have the same problem&lt;/p&gt;
&lt;p&gt;
  &lt;img src="/documents/14/0/themedisplay+2021-01-21+114335.png/6737571e-0038-e30a-756b-7748c473cb4a?t=1611247505778&amp;amp;imagePreview=1" /&gt;&lt;/p&gt;
&lt;p&gt;only when I make use of display variable to use getuser.get
  screenname does the error appear.&lt;br /&gt;Problem with deploying bundle:
  gogo: BundleException: Could not resolve module:
  co.dnube.portlet.company [1365]&lt;br /&gt;  Unresolved requirement:
  Import-Package: com.liferay.portal.kernel.model; version = &amp;quot;[4.1.0,5.0.0)&amp;quot;&lt;/p&gt;
&lt;p&gt;
  &lt;img src="/documents/14/0/themedisplay1+2021-01-21+114751+%281%29.png/0eded905-6746-8423-68d6-22b3554026c2?t=1611247753566&amp;amp;imagePreview=1" /&gt;&lt;/p&gt;
&lt;p&gt;
  &lt;img src="/documents/14/0/themedisplay2+2021-01-21+114942.png/b03b9d7e-0f4a-382e-5baf-a7ad47103615?t=1611247813001&amp;amp;imagePreview=1" /&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</summary>
    <dc:creator>Diego valencia</dc:creator>
    <dc:date>2021-01-21T16:50:33Z</dc:date>
  </entry>
  <entry>
    <title>RE: Liferay 7.3 wont allow calling getUser() method</title>
    <link rel="alternate" href="https://liferay.dev/sv/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120129026" />
    <author>
      <name>Mike Bigelow</name>
    </author>
    <id>https://liferay.dev/sv/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120129026</id>
    <updated>2020-10-22T13:09:38Z</updated>
    <published>2020-10-22T13:09:38Z</published>
    <summary type="html">&amp;lt;p&amp;gt;Hi Alberto,&amp;lt;/p&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;p&amp;gt;Like I stated above: In the .jsp there seem to already be global variables defined &amp;amp;quot;&amp;lt;strong&amp;gt;themeDisplay&amp;lt;/strong&amp;gt;&amp;amp;quot; and &amp;amp;quot;&amp;lt;strong&amp;gt;user&amp;lt;/strong&amp;gt;&amp;amp;quot;&amp;lt;/p&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;p&amp;gt;So, switch your code out of the .java and move it into the .jsp&amp;lt;/p&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;p&amp;gt;That&amp;amp;#39;s how I solved it, by eliminating it from the .java, as no solution ever was presented.&amp;lt;/p&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;p&amp;gt;If needed, you can pass it from the .jsp to the .java by a variable. But, I found once I moved it to .jsp side I no longer required the .java area code.&amp;lt;/p&amp;gt;</summary>
    <dc:creator>Mike Bigelow</dc:creator>
    <dc:date>2020-10-22T13:09:38Z</dc:date>
  </entry>
  <entry>
    <title>RE: Liferay 7.3 wont allow calling getUser() method</title>
    <link rel="alternate" href="https://liferay.dev/sv/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120127177" />
    <author>
      <name>Olaf Kock</name>
    </author>
    <id>https://liferay.dev/sv/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120127177</id>
    <updated>2020-10-22T07:34:03Z</updated>
    <published>2020-10-22T07:34:03Z</published>
    <summary type="html">&lt;div class="quote-title"&gt;Alberto Fernandez:&lt;/div&gt;&lt;blockquote&gt;&lt;br /&gt;Hi Olaf,My code in doView() method:&lt;br /&gt;        ThemeDisplay td = (ThemeDisplay) renderRequest.getAttribute(WebKeys.THEME_DISPLAY);&lt;br /&gt;        String userScreenName = td.getUser().getScreenName();&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;That&amp;#39;s a bit too minimal (i.e. not enough to reproduce, that&amp;#39;d require a full project), but with a bit of digging, at least the log gives some hints:&lt;br /&gt;&lt;br /&gt;&lt;div class="quote-title"&gt;Alberto Fernandez:&lt;/div&gt;&lt;blockquote&gt;&lt;br /&gt;When the td.getUser () method is executed, these traces are obtained in the application log:&lt;br /&gt;&lt;br /&gt;020-10-21 14:54:01.263 INFO  [http-nio-8080-exec-2][SeguimientoAmaPortlet:50] doview&lt;br /&gt;2020-10-21 14:54:10.529 ERROR [http-nio-8080-exec-2][FragmentRendererControllerImpl:120] Unable to render content of fragment entry 0:com.liferay.fragment.exception.FragmentEntryContentException: com.liferay.portal.kernel.portlet.PortletContainerException: javax.servlet.ServletException: &lt;strong&gt;java.lang.NoClassDefFoundError: com/liferay/portal/kernel/model/User&lt;/strong&gt;&lt;br /&gt;2020-10-21 14:54:10.757 ERROR [liferay/monitoring-3][ParallelDestination:59] Unable to process message....&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;I&amp;#39;m not sure if the next message (about monitoring/message processing) belongs to the investigated issue, i.e. if it is a follow-up problem or unrelated. &lt;br /&gt;If the User class can&amp;#39;t be found, there&amp;#39;s something wrong with the OSGi wiring of your portlet - and I&amp;#39;m wondering why it deploys at all: Technically the Manifest should contain the dependencies, and if they&amp;#39;re not met, your portlet won&amp;#39;t be deployed. But if this runtime problem pops up, it obviously is deployed and started.&lt;br /&gt;How do you deploy your portlet? What are the buildfiles and dependencies like? Can you provide a (minimal) fully building plugin that exhibits this behavior?</summary>
    <dc:creator>Olaf Kock</dc:creator>
    <dc:date>2020-10-22T07:34:03Z</dc:date>
  </entry>
  <entry>
    <title>RE: LifeRay 7.3 wont allow calling getUser() method</title>
    <link rel="alternate" href="https://liferay.dev/sv/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120123996" />
    <author>
      <name>Alberto Fernandez</name>
    </author>
    <id>https://liferay.dev/sv/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120123996</id>
    <updated>2020-10-21T14:55:31Z</updated>
    <published>2020-10-21T14:55:31Z</published>
    <summary type="html">Hi Olaf,My code in doView() method:&lt;br /&gt;        ThemeDisplay td = (ThemeDisplay) renderRequest.getAttribute(WebKeys.THEME_DISPLAY);&lt;br /&gt;        String userScreenName = td.getUser().getScreenName();&lt;br /&gt;&lt;br /&gt;When the td.getUser () method is executed, these traces are obtained in the application log:&lt;br /&gt;&lt;br /&gt;020-10-21 14:54:01.263 INFO  [http-nio-8080-exec-2][SeguimientoAmaPortlet:50] doview&lt;br /&gt;2020-10-21 14:54:10.529 ERROR [http-nio-8080-exec-2][FragmentRendererControllerImpl:120] Unable to render content of fragment entry 0:com.liferay.fragment.exception.FragmentEntryContentException: com.liferay.portal.kernel.portlet.PortletContainerException: javax.servlet.ServletException: java.lang.NoClassDefFoundError: com/liferay/portal/kernel/model/User&lt;br /&gt;2020-10-21 14:54:10.757 ERROR [liferay/monitoring-3][ParallelDestination:59] Unable to process message {destinationName=liferay/monitoring, response=null, responseDestinationName=null, responseId=null, payload=[{displayName=SeguimientoAma, portletId=seguimiento_ama_SeguimientoAmaPortlet_INSTANCE_ewhp, requestType=RENDER, {attributes=null, companyId=37401, groupId=38402, description=null, duration=0, name=seguimiento_ama_SeguimientoAmaPortlet, namespace=com.liferay.monitoring.Portlet, requestStatus=null, stopWatch=0:00:09.484, timeout=0, user=37435}}, {displayName=Product Menu, portletId=com_liferay_product_navigation_product_menu_web_portlet_ProductMenuPortlet, requestType=RENDER, {attributes=null, companyId=37401, groupId=38402, description=null, duration=67, name=com_liferay_product_navigation_product_menu_web_portlet_ProductMenuPortlet, namespace=com.liferay.monitoring.Portlet, requestStatus=SUCCESS, stopWatch=0:00:00.067, timeout=0, user=37435}}, {displayName=Search Bar, portletId=com_liferay_portal_search_web_search_bar_portlet_SearchBarPortlet_INSTANCE_templateSearch, requestType=RENDER, {attributes=null, companyId=37401, groupId=38402, description=null, duration=2, name=com_liferay_portal_search_web_search_bar_portlet_SearchBarPortlet, namespace=com.liferay.monitoring.Portlet, requestStatus=SUCCESS, stopWatch=0:00:00.002, timeout=0, user=37435}}, {displayName=User Personal Bar, portletId=com_liferay_product_navigation_user_personal_bar_web_portlet_ProductNavigationUserPersonalBarPortlet, requestType=RENDER, {attributes=null, companyId=37401, groupId=38402, description=null, duration=3, name=com_liferay_product_navigation_user_personal_bar_web_portlet_ProductNavigationUserPersonalBarPortlet, namespace=com.liferay.monitoring.Portlet, requestStatus=SUCCESS, stopWatch=0:00:00.003, timeout=0, user=37435}}, {displayName=Navigation, portletId=com_liferay_site_navigation_menu_web_portlet_SiteNavigationMenuPortlet, requestType=RENDER, {attributes=null, companyId=37401, groupId=38402, description=null, duration=4, name=com_liferay_site_navigation_menu_web_portlet_SiteNavigationMenuPortlet, namespace=com.liferay.monitoring.Portlet, requestStatus=SUCCESS, stopWatch=0:00:00.004, timeout=0, user=37435}}, {referer=null, remoteAddr=127.0.0.1, requestURL=http://localhost:8080/c/portal/layout.jsp_display, statusCode=200, userAgent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.75 Safari/537.36, {attributes=null, companyId=37401, groupId=38402, description=Portal Request, duration=200, name=/c/portal/layout, namespace=com.liferay.monitoring.Portal, requestStatus=SUCCESS, stopWatch=0:00:00.200, timeout=-1, user=37435}}, {referer=null, remoteAddr=127.0.0.1, requestURL=, statusCode=200, userAgent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.75 Safari/537.36, {attributes=null, companyId=37401, groupId=38402, description=null, duration=9500, name=/c/portal/layout, namespace=com.liferay.monitoring.Portal, requestStatus=SUCCESS, stopWatch=0:00:09.500, timeout=-1, user=37435}}, {referer=null, remoteAddr=127.0.0.1, requestURL=, statusCode=200, userAgent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.75 Safari/537.36, {attributes=null, companyId=37401, groupId=38402, description=null, duration=9504, name=/group/seguimiento/home, namespace=com.liferay.monitoring.Portal, requestStatus=SUCCESS, stopWatch=0:00:09.504, timeout=-1, user=null}}], values={defaultLocale=es_ES, companyId=37401, groupId=0, principalName=37435, permissionChecker=com.liferay.portal.kernel.util.TransientValue@3b4fe16d, siteDefaultLocale=es_ES, themeDisplayLocale=es_ES}}&lt;br /&gt;com.liferay.portal.kernel.messaging.MessageListenerException: java.lang.NullPointerException&lt;br /&gt;    at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:41)&lt;br /&gt;    at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:74)&lt;br /&gt;    at com.liferay.portal.messaging.internal.ParallelDestination$1.run(ParallelDestination.java:56)&lt;br /&gt;    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)&lt;br /&gt;    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)&lt;br /&gt;    at java.lang.Thread.run(Thread.java:748)&lt;br /&gt;Caused by: java.lang.NullPointerException&lt;br /&gt;    at com.liferay.portal.monitoring.internal.statistics.portlet.PortletStatistics.processDataSample(PortletStatistics.java:112)&lt;br /&gt;    at com.liferay.portal.monitoring.internal.statistics.portlet.CompanyStatistics.processDataSample(CompanyStatistics.java:209)&lt;br /&gt;    at com.liferay.portal.monitoring.internal.statistics.portlet.ServerStatistics.processDataSample(ServerStatistics.java:118)&lt;br /&gt;    at com.liferay.portal.monitoring.internal.statistics.portlet.ServerStatistics.processDataSample(ServerStatistics.java:35)&lt;br /&gt;    at com.liferay.portal.monitoring.internal.messaging.MonitoringMessageListener.processDataSample(MonitoringMessageListener.java:93)&lt;br /&gt;    at com.liferay.portal.monitoring.internal.messaging.MonitoringMessageListener.doReceive(MonitoringMessageListener.java:121)&lt;br /&gt;    at com.liferay.portal.kernel.messaging.BaseMessageListener.doReceive(BaseMessageListener.java:48)&lt;br /&gt;    at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:34)&lt;br /&gt;    ... 5 more</summary>
    <dc:creator>Alberto Fernandez</dc:creator>
    <dc:date>2020-10-21T14:55:31Z</dc:date>
  </entry>
  <entry>
    <title>RE: LifeRay 7.3 wont allow calling getUser() method</title>
    <link rel="alternate" href="https://liferay.dev/sv/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120123569" />
    <author>
      <name>Olaf Kock</name>
    </author>
    <id>https://liferay.dev/sv/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120123569</id>
    <updated>2020-10-21T07:28:00Z</updated>
    <published>2020-10-21T07:28:00Z</published>
    <summary type="html">I only see this thread now.&lt;br /&gt;The only explanation that I&amp;#39;d have for a module to be STOPPED upon a simple call is if that call happens during a module&amp;#39;s initialization - e.g. in @Activate. During runtime, it shouldn&amp;#39;t make a difference to the state of the bundle. &lt;br /&gt;Can you provide code (preferably a minimal version) that demonstrates what you observe? Where does the code live that causes this behavior?</summary>
    <dc:creator>Olaf Kock</dc:creator>
    <dc:date>2020-10-21T07:28:00Z</dc:date>
  </entry>
  <entry>
    <title>RE: LifeRay 7.3 wont allow calling getUser() method</title>
    <link rel="alternate" href="https://liferay.dev/sv/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120117872" />
    <author>
      <name>Alberto Fernandez</name>
    </author>
    <id>https://liferay.dev/sv/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120117872</id>
    <updated>2020-10-20T16:28:29Z</updated>
    <published>2020-10-20T16:28:29Z</published>
    <summary type="html">Hi Mike, I have the same problem. How did you solve it in java</summary>
    <dc:creator>Alberto Fernandez</dc:creator>
    <dc:date>2020-10-20T16:28:29Z</dc:date>
  </entry>
  <entry>
    <title>RE: LifeRay 7.3 wont allow calling getUser() method</title>
    <link rel="alternate" href="https://liferay.dev/sv/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118998939" />
    <author>
      <name>Mike Bigelow</name>
    </author>
    <id>https://liferay.dev/sv/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118998939</id>
    <updated>2020-04-21T15:02:16Z</updated>
    <published>2020-04-21T15:02:16Z</published>
    <summary type="html">The first import package throws a new error:java.lang.NoClassDefFoundError: com/liferay/portal/kernel/portlet/bridges/mvc/MVCPortlet&lt;br /&gt;The second import package says:IllegalArgumentException: Invalid filter directive</summary>
    <dc:creator>Mike Bigelow</dc:creator>
    <dc:date>2020-04-21T15:02:16Z</dc:date>
  </entry>
  <entry>
    <title>RE: LifeRay 7.3 wont allow calling getUser() method</title>
    <link rel="alternate" href="https://liferay.dev/sv/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118994929" />
    <author>
      <name>Christoph Rabel</name>
    </author>
    <id>https://liferay.dev/sv/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118994929</id>
    <updated>2020-04-21T14:41:55Z</updated>
    <published>2020-04-21T14:41:55Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;Ok, from somewhere the OSGI runtime believes that com.liferay.portal.kernel.model; version="[4.1.0,5.0.0) is a necessary dependency. Probably this is an issue in one of the dependencies of the artifacts you have in the pom.xml.&lt;br&gt;You could try to enforce that the package is not required by adapting the bnd file. Something along:&lt;br&gt;Import-Package: !com.liferay.portal.kernel.model; version="[4.1.0,5.0.0), *&lt;br&gt;I am not sure if that works, if it complains later on (e.g. ClassNotFound), you may also need to add the model again in the correct version, e.g.:&lt;br&gt;Import-Package: !com.liferay.portal.kernel.model; version="[4.1.0,5.0.0), com.liferay.portal.kernel.model; version="[5.0.0,6.0.0), *&lt;br&gt;Again, I am not sure if this works.&lt;br&gt;&lt;br&gt;In gradle you could try this in build.gradle:&lt;br&gt;&lt;pre&gt;&lt;code&gt;implementation enforcedPlatform(group: 'com.liferay.portal', name: 'com.liferay.portal.kernel', version: '5.4.0')&lt;/code&gt;&lt;/pre&gt;instead of compileOnly ...&lt;br&gt;But I have no idea how that could be done in maven.&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Christoph Rabel</dc:creator>
    <dc:date>2020-04-21T14:41:55Z</dc:date>
  </entry>
  <entry>
    <title>RE: LifeRay 7.3 wont allow calling getUser() method</title>
    <link rel="alternate" href="https://liferay.dev/sv/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118998577" />
    <author>
      <name>Mike Bigelow</name>
    </author>
    <id>https://liferay.dev/sv/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118998577</id>
    <updated>2020-04-21T14:36:32Z</updated>
    <published>2020-04-21T14:36:32Z</published>
    <summary type="html">I&amp;#39;m not sure how to get this import-package into the manifest.mf, if I add it manually it just gets removed on redeploy.&lt;br /&gt;If I put an Import-Package: com.liferay.portal.kernel.model on the bnd.bnd it just stops the rebuild.Do I have to go get some .jar file to include the model manually? Not understanding how this can&amp;#39;t already be there.</summary>
    <dc:creator>Mike Bigelow</dc:creator>
    <dc:date>2020-04-21T14:36:32Z</dc:date>
  </entry>
  <entry>
    <title>RE: LifeRay 7.3 wont allow calling getUser() method</title>
    <link rel="alternate" href="https://liferay.dev/sv/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118998214" />
    <author>
      <name>Mike Bigelow</name>
    </author>
    <id>https://liferay.dev/sv/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118998214</id>
    <updated>2020-04-21T13:52:49Z</updated>
    <published>2020-04-21T13:52:49Z</published>
    <summary type="html">STOPPED state, diag says:Unresolved requirement: Import-Package: com.liferay.portal.kernel.model; version=&amp;#34;[4.1.0,5.0.0)&lt;br /&gt;I&amp;#39;ve tried changing the version of the dependency, but no change:        &amp;lt;dependency&amp;gt;&lt;br /&gt;            &amp;lt;groupId&amp;gt;com.liferay.portal&amp;lt;/groupId&amp;gt;&lt;br /&gt;            &amp;lt;artifactId&amp;gt;com.liferay.portal.kernel&amp;lt;/artifactId&amp;gt;&lt;br /&gt;            &amp;lt;version&amp;gt;5.4.0&amp;lt;/version&amp;gt;&lt;br /&gt;            &amp;lt;scope&amp;gt;provided&amp;lt;/scope&amp;gt;&lt;br /&gt;        &amp;lt;/dependency&amp;gt;</summary>
    <dc:creator>Mike Bigelow</dc:creator>
    <dc:date>2020-04-21T13:52:49Z</dc:date>
  </entry>
  <entry>
    <title>RE: LifeRay 7.3 wont allow calling getUser() method</title>
    <link rel="alternate" href="https://liferay.dev/sv/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118991581" />
    <author>
      <name>Christoph Rabel</name>
    </author>
    <id>https://liferay.dev/sv/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118991581</id>
    <updated>2020-04-21T06:02:20Z</updated>
    <published>2020-04-21T06:02:20Z</published>
    <summary type="html">Wait a second.&lt;br /&gt;Does it crash or does it stay in STOPPED state when you deploy it?&lt;br /&gt;I guess, you are missing a dependency. What does the gogo shell say? Have you tried &amp;#34;diag &amp;lt;bundleId&amp;gt;&amp;#34;?</summary>
    <dc:creator>Christoph Rabel</dc:creator>
    <dc:date>2020-04-21T06:02:20Z</dc:date>
  </entry>
  <entry>
    <title>RE: LifeRay 7.3 wont allow calling getUser() method</title>
    <link rel="alternate" href="https://liferay.dev/sv/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118989403" />
    <author>
      <name>Mike Bigelow</name>
    </author>
    <id>https://liferay.dev/sv/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118989403</id>
    <updated>2020-04-20T19:44:11Z</updated>
    <published>2020-04-20T19:44:11Z</published>
    <summary type="html">I found the fix for .jsp, but still not in the .java:In the .jsp there seem to already be global variables defined &amp;#34;themeDisplay&amp;#34; and &amp;#34;user&amp;#34;. If I use these then everything is fine.Must be an issue trying to grab them again.However, I can&amp;#39;t find these same globals on the .java side</summary>
    <dc:creator>Mike Bigelow</dc:creator>
    <dc:date>2020-04-20T19:44:11Z</dc:date>
  </entry>
  <entry>
    <title>RE: LifeRay 7.3 wont allow calling getUser() method</title>
    <link rel="alternate" href="https://liferay.dev/sv/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118987035" />
    <author>
      <name>Mike Bigelow</name>
    </author>
    <id>https://liferay.dev/sv/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118987035</id>
    <updated>2020-04-20T18:27:24Z</updated>
    <published>2020-04-20T18:27:24Z</published>
    <summary type="html">I&amp;#39;ve further found from the view.jsp I can call:mylog.info(themeDisplay.getUser().getComments());&lt;br /&gt;But if I want to import the &amp;#34;User&amp;#34; class and assign themeDisplay.getUser() to a User variable than it crashes.&lt;br /&gt;Without the import it doesn&amp;#39;t know what User class is.Perhaps some issue with double loading going on once it hits the server deployment?</summary>
    <dc:creator>Mike Bigelow</dc:creator>
    <dc:date>2020-04-20T18:27:24Z</dc:date>
  </entry>
  <entry>
    <title>RE: LifeRay 7.3 wont allow calling getUser() method</title>
    <link rel="alternate" href="https://liferay.dev/sv/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118986361" />
    <author>
      <name>Mike Bigelow</name>
    </author>
    <id>https://liferay.dev/sv/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118986361</id>
    <updated>2020-04-20T18:17:08Z</updated>
    <published>2020-04-20T18:17:08Z</published>
    <summary type="html">I&amp;#39;m not seeing anything reach the log. Just my Eclipse shows the module STOPPED and doesn&amp;#39;t start until I remove the getUser() call.&lt;br /&gt;2020-04-20 18:12:05.721 INFO  [pipe-stop 1150][BundleStartStopLogger:49] STOPPED MIR3&lt;br /&gt;I know td works because all the td methods that aren&amp;#39;t getUser() work correctly for example: String item = td.getURLCurrent(); &amp;lt;-- working&lt;br /&gt;I also tried a new Module with just a call to td.getUser() and this breaks it. It&amp;#39;s like LifeRay 7.3 won&amp;#39;t allow it, I have the same lines of code running on the 7.0 server 6.1 servers fine.&lt;br /&gt;Can you get the td.getUser() to work under 7.3 module?</summary>
    <dc:creator>Mike Bigelow</dc:creator>
    <dc:date>2020-04-20T18:17:08Z</dc:date>
  </entry>
  <entry>
    <title>RE: LifeRay 7.3 wont allow calling getUser() method</title>
    <link rel="alternate" href="https://liferay.dev/sv/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118988798" />
    <author>
      <name>Christoph Rabel</name>
    </author>
    <id>https://liferay.dev/sv/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118988798</id>
    <updated>2020-04-20T18:10:57Z</updated>
    <published>2020-04-20T18:10:57Z</published>
    <summary type="html">What exception do you see in the logfiles? Is the Themedisplay really available (I mean, did you check if td != null?).&lt;br /&gt;That an exception in a jsp should be able to disable a module baffles me.</summary>
    <dc:creator>Christoph Rabel</dc:creator>
    <dc:date>2020-04-20T18:10:57Z</dc:date>
  </entry>
  <entry>
    <title>LifeRay 7.3 wont allow calling getUser() method</title>
    <link rel="alternate" href="https://liferay.dev/sv/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118985547" />
    <author>
      <name>Mike Bigelow</name>
    </author>
    <id>https://liferay.dev/sv/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118985547</id>
    <updated>2020-04-20T15:30:05Z</updated>
    <published>2020-04-20T15:30:05Z</published>
    <summary type="html">This crashes on the &lt;strong&gt;getUser&lt;/strong&gt;() call when I put it into either .java or .jsp , why? I have this code working in LifeRay 6.1 and LifeRay 7.0, but I cannot get it to work in the latest 7.3:&lt;br /&gt;ThemeDisplay td = (ThemeDisplay) actionRequest.getAttribute(WebKeys.THEME_DISPLAY); &amp;lt;-- works fine&lt;br /&gt;&lt;strong&gt;        &lt;/strong&gt;User tduser = td.&lt;strong&gt;getUser(); &amp;lt;-- any usage of getUser() crashes the module to a STOPPED state&lt;/strong&gt;</summary>
    <dc:creator>Mike Bigelow</dc:creator>
    <dc:date>2020-04-20T15:30:05Z</dc:date>
  </entry>
</feed>
