Bug 778401 (SOA-885) - Confusing error message with misconfigured SQL listener - and an SLQ notifier on the same DB table
Summary: Confusing error message with misconfigured SQL listener - and an SLQ notifier...
Keywords:
Status: CLOSED WONTFIX
Alias: SOA-885
Product: JBoss Enterprise SOA Platform 4
Classification: JBoss
Component: JBossESB
Version: 4.2 CP02
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 4.2 CP03
Assignee: Mark Little
QA Contact:
URL: http://jira.jboss.org/jira/browse/SOA...
Whiteboard:
Depends On: SOA-642
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-09-27 21:14 UTC by Len DiMaggio
Modified: 2008-12-04 19:31 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
CP02
Last Closed: 2008-10-30 12:16:13 UTC
Type: Bug


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 778584 0 high CLOSED sql-message-filter optional attribute "insert-timestamp-column" actually not optional 2021-02-22 00:41:40 UTC
Red Hat Issue Tracker SOA-885 0 None None None Never

Internal Links: 778584

Description Len DiMaggio 2008-09-27 21:14:51 UTC
Date of First Response: 2008-10-30 08:16:13
project_key: SOA

I'm seeing an odd warning message (see below) if the message-id-column from an SQL notifier is inadvertently omitted from a corresponding SqlTableGatewayListener.

  If I setup a listener with these settings:

<sql-bus busid="notifiedSQLChannel">
   <sql-message-filter tablename="NOTIFICATIONS_TABLE"
       status-column="STATUS_COL"
       message-id-column="UNIQUE_ID"
       message-column="MESSAGECONTENTS"
       insert-timestamp-column="FAKE_TS_COLUMN" />
</sql-bus>

  And then setup a notifier, with these settings, but omit the message-id-column:

<action name="SQLNotificationTest"
   class="org.jboss.soa.esb.actions.Notifier">
   <property name="okMethod" value="notifyOK" />
   <property name="notification-details">
       <NotificationList type="OK">
           <target class="NotifySqlTable"
               driver-class="@DB_DRIVER@" connection-url="@DB_URL@"
               user-name="@DB_USERNAME@" password="@DB_PASSWORD@"
               table="NOTIFICATIONS_TABLE" dataColumn="MESSAGECONTENTS">
               <column name="STATUS_COL" value="P" />
               <column name="UNIQUE_ID" value="1234" />      ------> If this is omitted,
           </target>                                                the warning listed below is logged
       </NotificationList>
   </property>
</action>

This warning is logged:

22:01:36,965 WARN  [SqlTableGatewayListener] Cannot change row state from Pending to Working.  Number of rows in state Pending = 0
22:01:47,052 WARN  [SqlTableGatewayListener] Cannot change row state from Pending to Working.  Number of rows in state Pending = 0
22:01:57,055 WARN  [SqlTableGatewayListener] Cannot change row state from Pending to Working.  Number of rows in state Pending = 0
22:02:07,059 WARN  [SqlTableGatewayListener] Cannot change row state from Pending to Working.  Number of rows in state Pending = 0
22:02:17,063 WARN  [SqlTableGatewayListener] Cannot change row state from Pending to Working.  Number of rows in state Pending = 0

  It's a broken configuration - but a pretty confusing error message. 

See attached standalone test - modified version of CP02 notification Quickstart.

Comment 1 Mark Little 2008-09-27 21:18:53 UTC
Link: Added: This issue depends SOA-642


Comment 2 Julian Coleman 2008-10-30 12:16:13 UTC
We will not fix this for 4.2CP03.

Comment 3 Len DiMaggio 2008-12-04 19:31:31 UTC
Link: Added: This issue related SOA-1058



Note You need to log in before you can comment on or make changes to this bug.