Bug 790431 - remove-old-service will throw ServiceNotFoundException, skip registerEpr
Summary: remove-old-service will throw ServiceNotFoundException, skip registerEpr
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: JBoss Enterprise SOA Platform 5
Classification: JBoss
Component: JBossESB
Version: 5.2.0 GA
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ER1
: 5.3.0 GA
Assignee: tcunning
QA Contact: Jiri Pechanec
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-14 14:27 UTC by Martin Weiler
Modified: 2025-02-10 03:15 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2025-02-10 03:15:07 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker JBESB-3747 0 Major Closed remove-old-service will throw ServiceNotFoundException, skip registerEpr 2012-07-31 02:37:40 UTC

Description Martin Weiler 2012-02-14 14:27:03 UTC
Description of problem:

In case the service is being deployed for the first time, this setting prevents it from being registered:

            try
            {
                    if ("true".equalsIgnoreCase(removeOldService))                    
                            registry.unRegisterService(category, name);
                    
                registry.registerEPR(category, name,
                    serviceDescription, epr, eprDescription) ;
            }
            catch (ServiceNotFoundException ex)
            {
                    // ignore as it's possible another client just did the removal for us.
                    
                    logger.debug("Could not unregister service < "+category+", "+name+" >.");
            }

The registry.registerEPR call should happen after the ServiceNotFoundException is caught?

How reproducible:
always

Steps to Reproduce:
1. Add remove-old-service attribute to EPR:
    <jms-listener name="JMS-ESBListener"  busidref="quickstartEsbChannel">
        <property name="remove-old-service" value="true"/>
    </jms-listener>  
2. Start against a clean DB
3. Service registration fails
  
Actual results:
Service not registered

Expected results:
Service getting registered

Comment 1 JBoss JIRA Server 2012-02-23 20:27:39 UTC
Tom Cunningham <tcunning> updated the status of jira JBESB-3747 to Resolved

Comment 2 JBoss JIRA Server 2012-02-23 20:27:39 UTC
Tom Cunningham <tcunning> made a comment on jira JBESB-3747

Move the registerEpr so that it will happen whether or not a ServiceNotFoundException occurs.

Comment 3 JBoss JIRA Server 2012-02-23 20:27:44 UTC
Tom Cunningham <tcunning> updated the status of jira JBESB-3747 to Closed

Comment 4 Rick Wagner 2012-03-19 21:49:03 UTC
Customer-facing, seems done.  Please include this 'medium' issue if at all possible.

Comment 5 Suz 2012-06-13 04:34:47 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
A problem occurs when launching the JBoss ESB which prevents it from being registered. When adding the remove-old-service attribute to the EPR, the service registration fails and a ServiceNotFoundException error is thrown. The registerEpr should be moved to prevent this from occuring.

Comment 6 Jiri Pechanec 2012-06-13 06:16:52 UTC
Verified in ER3

Comment 7 David Le Sage 2012-06-14 03:31:38 UTC
    Technical note updated. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    Diffed Contents:
@@ -1 +1 @@
-A problem occurs when launching the JBoss ESB which prevents it from being registered. When adding the remove-old-service attribute to the EPR, the service registration fails and a ServiceNotFoundException error is thrown. The registerEpr should be moved to prevent this from occuring.+A problem occurs when the user tries to deploy a service for the frist time. When adding the remove-old-service attribute to the EPR, the service registration fails and a ServiceNotFoundException error is thrown. The registerEpr should be moved to prevent this from occuring.

Comment 9 Red Hat Bugzilla 2025-02-10 03:15:07 UTC
This product has been discontinued or is no longer tracked in Red Hat Bugzilla.


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