No, there are no errors and that's also the problem. For the good ones and the bad ones, on the POM server side, logs are the same. We think there is an issue with the POM PDC but we cannot reach the dev team for it. Should I put this issue in the POM forum directly? Are they the ones responsible for the PDC?
One member of our team took a look inside the PDC code, below his comments:
"Today I looked inside the PDC code and based on available logs I know that a NullPointerException (NPE) comes from an AgentAPIClient class inside AgentAPI.jar (used by POM PDC), but I can’t say exactly where and why this is being thrown.
The reason for that is because this AgentAPIClient class receives a NPE and before throwing it upwards, it creates a new Exception object and sets only the error message from the original NPE, losing the stack trace in the process.
JAR AgentAPI.jar - Class AgentAPIClient - Method GetContactDataFromList
catch (Exception e2) // catching the NPE
{
GetContactDataFromListFault obj = new GetContactDataFromListFault(); // creating the new Exception object
VP_POMAgentAPIServiceStub.GetContactDataFromListFaultInfo objInfo = new VP_POMAgentAPIServiceStub.GetContactDataFromListFaultInfo();
Log(e2.getMessage()); // logging only the exception message: NullPointerException
objInfo.setFaultMsg(e2.getMessage());// setting only the exception message into the new Exception, losing the stack trace
objInfo.setRetCode(-7);
obj.setFaultMessage(objInfo);
throw obj; // throwing the new Exception upwards
}
** The PDC class then receives an exception and prints the stack trace (which is empty):
JAR pomDataConnector.jar - Class GetContactInfoImpl – Method execute
catch (Exception e) {
if ((mySession != null) && (mySession.isTraceEnabled()))
{
ITraceInfo tr = mySession.getTraceOutput();
tr.writeln(4, "Error While Getting Contact Info: " + e.getMessage());// this I can see in the logs, it’s ‘null’
}
e.printStackTrace(); //there’s no stack trace in this new Exception, so I can’t see anything here
}
Do you know who from the POM team can assist us with the PDC and AgentAPI libraries?
The way things are now we don’t have the stack trace of the error to identify where in the code it’s throwing a NullPointerException.
We need a fix on these libs so we have more information in the logs and also to classify the good and the bad calls.
|