<?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>resource bundles and null pointer exception</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=135305" />
  <subtitle>resource bundles and null pointer exception</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=135305</id>
  <updated>2026-04-06T18:51:10Z</updated>
  <dc:date>2026-04-06T18:51:10Z</dc:date>
  <entry>
    <title>RE: resource bundles and null pointer exception</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=176876" />
    <author>
      <name>Morad Moradinho Morad</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=176876</id>
    <updated>2007-09-30T11:12:00Z</updated>
    <published>2007-09-30T11:12:00Z</published>
    <summary type="html">I have the same problem ...</summary>
    <dc:creator>Morad Moradinho Morad</dc:creator>
    <dc:date>2007-09-30T11:12:00Z</dc:date>
  </entry>
  <entry>
    <title>RE: resource bundles and null pointer exception</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=174492" />
    <author>
      <name>Alexandre Jose Santoro</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=174492</id>
    <updated>2007-09-27T23:20:14Z</updated>
    <published>2007-09-27T23:20:14Z</published>
    <summary type="html">I never found or got an answer to this issue, so I ended up just adding my stuff to the StrutsResoruceBundle.&lt;br /&gt;&lt;br /&gt;This involved:&lt;br /&gt;   &lt;ul&gt;&lt;li&gt;In the portlet-ext.xml configuration for the portlet, declare it to use the com.liferay.portlet. StrutsResourceBundle&lt;/li&gt;&lt;li&gt;Added a Language-ext.properties file to WEB-INF/classes/content with the property javax.portlet.title.XXX (where XXX is my portlet name) set to the desired value, for example, &amp;#34;javax.portlet.title.E01=My Title&amp;#34;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;Didn&amp;#39;t solve the original problem, but was the only way I could get the title I wanted to show up.&lt;br /&gt;&lt;br /&gt;- Alex</summary>
    <dc:creator>Alexandre Jose Santoro</dc:creator>
    <dc:date>2007-09-27T23:20:14Z</dc:date>
  </entry>
  <entry>
    <title>RE: resource bundles and null pointer exception</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=173095" />
    <author>
      <name>The Meurwinn Concept Concept</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=173095</id>
    <updated>2007-09-27T09:27:51Z</updated>
    <published>2007-09-27T09:27:51Z</published>
    <summary type="html">Hi, me too.</summary>
    <dc:creator>The Meurwinn Concept Concept</dc:creator>
    <dc:date>2007-09-27T09:27:51Z</dc:date>
  </entry>
  <entry>
    <title>RE: resource bundles and null pointer exception</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=163430" />
    <author>
      <name>monstro .bra</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=163430</id>
    <updated>2007-09-21T11:39:01Z</updated>
    <published>2007-09-21T11:39:01Z</published>
    <summary type="html">I have the same problem ...&lt;br /&gt;&lt;br /&gt;someone know how to solve this problem!??</summary>
    <dc:creator>monstro .bra</dc:creator>
    <dc:date>2007-09-21T11:39:01Z</dc:date>
  </entry>
  <entry>
    <title>RE: resource bundles and null pointer exception</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=163302" />
    <author>
      <name>Carsten Büchert</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=163302</id>
    <updated>2007-09-21T10:36:43Z</updated>
    <published>2007-09-21T10:36:43Z</published>
    <summary type="html">Hi Alexandre,&lt;br /&gt;&lt;br /&gt;did you solve your problem? I&amp;#39;m facing the same and would appreciate your help and experience.&lt;br /&gt;&lt;br /&gt;Greetings,&lt;br /&gt;&lt;br /&gt;Carsten</summary>
    <dc:creator>Carsten Büchert</dc:creator>
    <dc:date>2007-09-21T10:36:43Z</dc:date>
  </entry>
  <entry>
    <title>resource bundles and null pointer exception</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=135304" />
    <author>
      <name>Alexandre Jose Santoro</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=135304</id>
    <updated>2007-09-08T00:51:28Z</updated>
    <published>2007-09-08T00:51:28Z</published>
    <summary type="html">I have a Liferay 4.2.2 professional installation running on tomcat 5.5.23. I have written my own portlet and deployed it successfully by adding it under WEB-INF/classes/com/myorg/ and editing WEB-INF/portlet-ext.xml, WEB-INF/liferay-portlet-ext.xml and WEB-INF/liferay-display.xml.&lt;br /&gt;&lt;br /&gt;My problem happens when I try to modfiy the code from using the StrutsResourceBundle to using my own. I did the following:&lt;br /&gt;&lt;br /&gt;1) created a MyResources.properties file and placed it under WEB-INF/classes/com/myorg. &lt;br /&gt;2) Edited the portal-ext definition file so that the resource-bundle element is:&lt;br /&gt;      &amp;lt;resource-bundle&amp;gt;com.myorg.MyResources&amp;lt;/resource-bundle&amp;gt;&lt;br /&gt;&lt;br /&gt;After these changes running liferay causes a NullPointerexception with the following stack-trace:&lt;br /&gt;&lt;br /&gt;        at com.liferay.portlet.PortletConfigImpl.getResourceBundle(PortletConfigImpl.java:148)&lt;br /&gt;        at javax.portlet.GenericPortlet.getTitle(GenericPortlet.java:188)&lt;br /&gt;        at javax.portlet.GenericPortlet.render(GenericPortlet.java:162)&lt;br /&gt;        at com.liferay.portlet.CachePortlet._invoke(CachePortlet.java:365)&lt;br /&gt;        at com.liferay.portlet.CachePortlet.render(CachePortlet.java:182)&lt;br /&gt;        at org.apache.jsp.html.portal.render_005fportlet_jsp._jspService(render_005fportlet_jsp.java:953)&lt;br /&gt;        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)&lt;br /&gt;        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)&lt;br /&gt;        at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)&lt;br /&gt;        at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)&lt;br /&gt;        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)&lt;br /&gt;        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)&lt;br /&gt;        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)&lt;br /&gt;        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)&lt;br /&gt;        at com.liferay.filters.strip.StripFilter.doFilter(StripFilter.java:260)&lt;br /&gt;        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)&lt;br /&gt;        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)&lt;br /&gt;        at com.liferay.filters.compression.CompressionFilter.doFilter(CompressionFilter.java:124)&lt;br /&gt;        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)&lt;br /&gt;        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)&lt;br /&gt;&lt;br /&gt;As I said, defining the resource bundle to be com.liferay.portlet.StrutsResourceBundle works just fine, my change doesn&amp;#39;t.&lt;br /&gt;&lt;br /&gt;I would appreciate any pointers as to what I am doing wrong. &lt;br /&gt;&lt;br /&gt;- Alex</summary>
    <dc:creator>Alexandre Jose Santoro</dc:creator>
    <dc:date>2007-09-08T00:51:28Z</dc:date>
  </entry>
</feed>
