Tuesday, March 17, 2015

Eclipse / IBM RAD /IBM RSA capabilities

For beginners, while using this products you may find some components or features or preferences or windows not available .

Eclipse / IBM RAD (Rational Application Developer) /IBM Rational Software Architect capabilities

Resolution: Turn on all the capabilities from Windows>>Preferences>>Capabilities

Sunday, February 15, 2015

Intermittent Errors or issues which occur randomly.

Intermittent Errors or issues which occur randomly.

There may be various factors associated for any particular software getting failed randomly. I have come across these reasons.

1. Code or Data Issue.
When a developer develops a piece of code, he may not have considered a case or scenario where a sql statement could return two rows and developer would have coded believing return value of one row. So in this, he may actually miss to pick up relevant row in the subsequent while.resultset() code.
And the code may pick up wrong value and try to process wrong value which can lead to failure. Now this behavior will be random as the orders in which rows will be fetched were not being specified.
So, sometimes it would, just by chance have picked up correct value and processed and sometime would have failed.



2. Performance Issue.
In one case I found that my software (MDM) makes entry into history tables by using AFTER TRIGGERS to keep history of updated, deleted or newly inserted records.
Now on one of the UPDATE trigger for a particular table say ANSWER table, which would create a new entry in H_ANSWER table and update the previous entries with end_dates(to mark them as ended); the update sql statement(in UPDATE TRIGGER) had where clause which itself is equivalent to search clause on a particular column which actually was not indexed(problem).
So, whenever any updates on ANSWER table was coming, UPDATE trigger will do operations on H_ANSWER and was getting failed randomly due to performance.
I presumed where user had updated lot of answers per transaction, those while updating the H_ANSWER table were getting timed out.
After applying index on that particular column, problem got resolved.


3. Session
In one case, Tester came back and said that he is getting intermittent failure on one of the screen (USER Interface). Sometimes he will get and sometime he may not get.
I asked for logs of that particular environment and realized that in cases where he was getting error he was executing some different flow and somehow session was getting maintained and was getting carried to the screen where he was getting this failure.
And in cases he would simply test other flows and then test this flow, it would work fine.
So culprit here was improper session management.



So intermittent failures or errors are always associated with some issues which are hard to debug but can be fixed by doing some analysis. I just chalked out few cases. If you come across any, please do mention in the comments to let others know and help in their analysis.




Wednesday, February 4, 2015

Websphere Application Server Conecpts

Good document for WebSphere Application Server Terminologies for understanding Cell, Cluster, Node, Profile, etc. The ABC's of WAS.

ftp://ftp.software.ibm.com/pub/info/training/WAS_Terminology_LC.pdf

Friday, January 16, 2015

MDM Hybrid Model : Event Manager ( Virtual MDM) is not Working

Sometimes, even we do everything right like have enabled hybrid model but still do not see event manger to work properly means even data get inserted into Virtual MDM Model but event manger does not create golden record into Physical MDM.  We also see mpi_entoque_xxx table populated with data but do not get picked by Event Manager.

There might be multiple reason for it. Below is written few check points

1. Make sure that  Messaging Engine is started

2. See log files minutely while starting the server because sometimes it gets started successfully but still some errors get captured in SystemOut.log file.

For Example:

I have got this error:

java.lang.RuntimeException: Application could not be initialized. Application Name and Version could not be resolved.


Solution:

This error typically indicates that the InfoSphere MDM EBA application symbolic name does not match the entries in the APPSOFTWARE configuration table.
Confirm that the APPSOFTWARE entry matches the EBA symbolic name by executing the following SQL statement:
select * from APPSOFTWARE;
In the WebSphere Application Sever Administrative Console, navigate to Applications > Application Types > Assets. Under Assets, click on theMDM operational server EBA > com.ibm.mdm.hub.server.app-E001.eba asset. On the following page, click Export the deployment manifest from this application.
Now open the deployment.mf file and search for Application-SymbolicName and Version. Next to it will be the value that needs to correspond to the entry in the APPSOFTWARE table.

Friday, January 9, 2015

IBM MDM v11-- MDMSE : ORA-01000: maximum open cursors exceeded in SystemOut.log

Symptom

One scenario for this problem happening is loading data. While attempting to load data into engine, customer is experiencing problems with maximum open cursors on the database. This happens at random periods when loading data.

Cause

JDBC connection pool management issue in WAS

Diagnosing the problem

When checking in the database, the SQL with excessive open cursors is "select 1 from dual" statement, which is done by WAS to verify data source connections.

Resolving the problem

WAS has problem in JDBC connection pool management. As a workaround, in the data source definition page of WAS console, choose "WebSphere Application Server data source properties", and enable "Validate existing pooled connections", and select "Validation by JDBC driver", pick an appropriate timeout, then save.

For an Oracle datasource, Validation by JDBC Driver appears on the administrative console only after the validateNewConnectionTimeout property is added to the [Updated in September 2013]custom properties of the datasource[Updated in September 2013]. 
 Name: validateNewConnectionTimeout 
Value =0
Type: "java.lang.Integer"

Tuesday, November 4, 2014

Asynchronous flow in transactional context of MDM in case where it should not rollback.

In case if asynchronous flow has to be started in transactional context of MDM in case where it should not rollback. A thread (WorkManager from Websphere) can be used.

Links referred

http://publib.boulder.ibm.com/infocenter/dmndhelp/v6rxmx/index.jsp?topic=/com.ibm.wsps.602.javadoc.doc/doc/com/ibm/websphere/asynchbeans/WorkManager.html

http://www.bencode.net/blog/2014/07/26/was-async-beans/

https://wiki.base22.com/display/btg/How+to+configure+a+Work+Manager+on+WebSphere+Portal

MDM DWLTnProcessor Class not found error

Class Not found error for DWLTxnProcessor

at java.lang.J9VMInternals.newInstanceImpl(Native Method) at java.lang.Class.newInstance(Class.java:1325) at com.dwl.base.requestHandler.DWLTxnProcessor.getBusProxy(DWLTxnProcessor.java:205)


Resolution: Check if an entry is there in the java EE dependency of the MDM project and in the manifest file of DWLCommonServicesEJB project