This content has been marked as final. Show 3 replies
First of all, I believe tperrno 12 means TPESYSTEM - and not TPED_INVALIDCONTEXT....
I have no experience with WTC - only "pure" ATMI calls from C
Your code contains:
tuxConn = TuxedoServiceLocator.getLocator().getTuxedoConnection();
System.err.println("TP Call start time " + new Date());
tuxReplyBuffer = tuxConn.tpcall(pServiceName, pRequestBuffer, 0);
E.g. you have two tuxedo calls within the same try block - Both getTuxedoConnection() and tpcall() can throw exceptions -
Do you now for sure - which call actually throws the exception ?
Another problem i see with the overall structure of your code is - that you actually returns the "result" - Even when the tuxedo service call fails... E.g even when an exception occurs, you
//Convert to typed FML 32 buffer
tuxReplyFML32 = (TypedFML32) tuxReplyBuffer.getReplyBuffer();
Think you have to elaborate a little on the structure.
And to solve the problem with your error, we need some clarification of where ther error occurs.
Another point is that if the tuxedo service call takes more than 2 minuttes - you should consider timeout situations. This should be covered within your configuration.
Also you should look at the ulog files - they might contain some details as to what the error is