PQ46768: COM.IBM.EJS.EXCEPTION.DUPLICATERELATIONINSTANCEEXCEPTION WHEN IMPORTING A FULL XMLCONFIG


APAR

APAR status
Closed as program error.

Error description
RECEIVE EXCEPTION :-
Create Application W Encountered an exception:
.
com.ibm.ejs.exception.DuplicateRelationInstanceException
.
WHEN IMPORTING A FULL XMLCONFIG EXPORT INTO A NEWLY CREATED
WEBSPHERE ADMIN DATABASE.  THESE ERRORS CAN BE AVOIDED BY
DELETING THE ENTRY FOR THE ENTERPRISE APPLICATION
adminApplication PRIOR TO PERFORMING THE
IMPORT.
Create Application W Encountered an exception:.com.ibm.ejs.exception.DuplicateRelationInstanceException.WHEN IMPORTING A FULL XMLCONFIG EXPORT INTO A NEWLY CREATEDWEBSPHERE ADMIN DATABASE. THESE ERRORS CAN BE AVOIDED BYDELETING THE ENTRY FOR THE ENTERPRISE APPLICATIONadminApplication PRIOR TO PERFORMING THEIMPORT.
Local fix
Problem summary
whenever trying to add a resource to an Enterprise Application
where the resource is already included under any Enterprise
Application.  The problem is that this exception wasn't getting
caught.
Problem conclusion
Introduced the following lines into CreateApplicationBean's
addRelation(EJBObject resource) method. This would catch the
exception:
//Begin PQ46768: Catch the DuplicateRelationshipException
catch(DuplicateRelationInstanceException re) {
 //If the resource is already part of the application,
    ignore and continue processing
 if(tc.isDebugEnabled())
 Tr.debug(tc, "Ignoring DuplicationRelationInstance
     Exception", re);
 }//End PQ46768
.
Source file changed: com.ibm.ejs.sm.tasks.CreateApplicationBean
exception://Begin PQ46768: Catch the DuplicateRelationshipExceptioncatch(DuplicateRelationInstanceException re) {//If the resource is already part of the application,ignore and continue processingif(tc.isDebugEnabled())Tr.debug(tc, "Ignoring DuplicationRelationInstanceException", re);}//End PQ46768.Source file changed: com.ibm.ejs.sm.tasks.CreateApplicationBean
Temporary fix
Comments
APAR information
APAR numberPQ46768
Reported component nameWAS ADVANCED AI
Reported component ID5648C8400
Reported release350
StatusCLOSED PER
PENoPE
HIPERNoHIPER
Submitted date2001-03-08
Closed date2001-04-09
Last modified date2001-04-09

APAR is sysrouted FROM one or more of the following:

APAR is sysrouted TO one or more of the following:APAR is sysrouted FROM one or more of the following:


Modules/Macros
EJS
APAR is sysrouted TO one or more of the following:Modules/Macros

Fix information
Fixed component nameWAS ADVANCED AI
Fixed component ID5648C8400

Applicable component levels
R350 PSYUP











Document Information

Product categories: Software, Application Servers, Distributed Application & Web Servers, WebSphere Application Server, General
Software version: 350
Reference #: PQ46768
IBM Group: Software Group
Modified date: 2001-04-09