<?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>Unable to add address data in address table using ContactModelListener</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=113472774" />
  <subtitle>Unable to add address data in address table using ContactModelListener</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=113472774</id>
  <updated>2026-04-05T05:30:57Z</updated>
  <dc:date>2026-04-05T05:30:57Z</dc:date>
  <entry>
    <title>RE: Unable to add address data in address table using ContactModelListener</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=113655082" />
    <author>
      <name>Amos Fong</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=113655082</id>
    <updated>2019-05-16T17:56:28Z</updated>
    <published>2019-05-16T17:56:28Z</published>
    <summary type="html">Does the contact get added to the DB? Can you check if the current transaction is read-only (eg triggered by a localService.getXMethod())?</summary>
    <dc:creator>Amos Fong</dc:creator>
    <dc:date>2019-05-16T17:56:28Z</dc:date>
  </entry>
  <entry>
    <title>RE: Unable to add address data in address table using ContactModelListener</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=113494014" />
    <author>
      <name>Rahul Panchivala</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=113494014</id>
    <updated>2019-05-02T06:58:31Z</updated>
    <published>2019-05-02T06:58:31Z</published>
    <summary type="html">Hi Zubair,&lt;br /&gt;&lt;br /&gt;Actually i have debug code line by line and code is working without any exception, but after service execution(_addressLocalService.addAddress(address);) when i am going to check data in address table, data is not there.</summary>
    <dc:creator>Rahul Panchivala</dc:creator>
    <dc:date>2019-05-02T06:58:31Z</dc:date>
  </entry>
  <entry>
    <title>RE: Unable to add address data in address table using ContactModelListener</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=113492564" />
    <author>
      <name>Gnaniyar Zubair</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=113492564</id>
    <updated>2019-05-02T06:17:30Z</updated>
    <published>2019-05-02T06:17:30Z</published>
    <summary type="html">Hi Rahul,&lt;br /&gt;&lt;br /&gt;Try log inside onAfterCreate or onBeforeCreate before the service triggers and after.&lt;br /&gt;&lt;br /&gt;​​​​​​​</summary>
    <dc:creator>Gnaniyar Zubair</dc:creator>
    <dc:date>2019-05-02T06:17:30Z</dc:date>
  </entry>
  <entry>
    <title>RE: Unable to add address data in address table using ContactModelListener</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=113491797" />
    <author>
      <name>Rahul Panchivala</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=113491797</id>
    <updated>2019-05-02T05:40:47Z</updated>
    <published>2019-05-02T05:40:47Z</published>
    <summary type="html">Hi David,&lt;br /&gt;&lt;br /&gt;I have done changes as per your suggestion but i am not getting success and also i have checked that component is running PFA.</summary>
    <dc:creator>Rahul Panchivala</dc:creator>
    <dc:date>2019-05-02T05:40:47Z</dc:date>
  </entry>
  <entry>
    <title>RE: Unable to add address data in address table using ContactModelListener</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=113475991" />
    <author>
      <name>David H Nebinger</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=113475991</id>
    <updated>2019-04-30T20:23:03Z</updated>
    <published>2019-04-30T20:23:03Z</published>
    <summary type="html">Hmm, are you sure the component is even running?&lt;br /&gt;&lt;br /&gt;Also, I cringe when I see &amp;#34;e.printStackTrace()&amp;#34; in code since you have no idea where it might actually go. It is so easy to instantiate a logger and using it guarantees where it will go, so why not just do it right from the outset?</summary>
    <dc:creator>David H Nebinger</dc:creator>
    <dc:date>2019-04-30T20:23:03Z</dc:date>
  </entry>
  <entry>
    <title>Unable to add address data in address table using ContactModelListener</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=113472773" />
    <author>
      <name>Rahul Panchivala</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=113472773</id>
    <updated>2019-04-30T13:34:10Z</updated>
    <published>2019-04-30T13:34:10Z</published>
    <summary type="html">Hi Guys,&lt;br /&gt;&lt;br /&gt;I am developing ContactModelListener, in which i am trying to add data into address table using onBeforeCreate() event and onAfterCreate() event , but after trying both event listener method one after another, data is not storing in address table, also there is no exception occurs during method execution, I have attached code, please help.&lt;br /&gt;&lt;br /&gt;Environment : Liferay 7.1 CE GA2</summary>
    <dc:creator>Rahul Panchivala</dc:creator>
    <dc:date>2019-04-30T13:34:10Z</dc:date>
  </entry>
</feed>
