I have the following setup in my application:
ABCAPI.java (TestAPIInterface.jar)
public void search(FormData data);
ABCAPIBean.java (TestAPI.ear)
public void search(FormData data)
{
//log
//more code
}
ABCAction.java (TestUI.war)
public void loadList(session) {
//get ABCAPIBean
api.search(loadFormData(session));
}
public FormData loadFormData(session) {
//get some information from ABCCore class based on form filters
}
ABCCore.java (TestCore.jar)
Deployed the following packages in JBoss, tomcat servers
JBoss Clusters (node1, node2)
TestAPI.ear
TestAPIInterface.jar
TestCore.jar
Tomcat Web servers (node1, node2)
TestUI.war
TestAPIInterface.jar
TestCore.jar
Everything seems to be working fine until I made a few code changes to ABCCore.java file & deployed latest TestCore.jar into all servers.
Now when accessing the UI, I am getting results and error alternatively. When I checked the logs, whenever UI application requests ABCAPIBean from node1, it is throwing error 'InvalidObjectException', and when it requests from node2, it is giving results. This is happening with the new constant introduced in 'ABCCore.java'.
One possible issue is with the latest jar but I eliminated it by copying TestCore.jar from node2 to node1. I still see the same issue in node1. Any other suggestions ?
P.S: I don't see log statement (ABCAPIBean) in Jboss node1 but I see it in Jboss node2. InvalidObjectException
is coming in the tomcat UI log