Hi there,
I tried a sample programme, where Server1 fetches 2 records (out of 5) from Server2 using the conversational calls in a forever loop and print them each time. However, Server1 establishes the connection with Server2 before the loop and uses the descriptor returned from tpconnect call to fetch the records and the last record is printed out of the loop and returns. This is in tpsvrinit part of Server1 code.
This scenario is working fine while fetching the records and printing them. However after printing the last record that received by Server1, it is failing with "tpsvrinit() failed with with open conversations" while returning.
Below are the details:
Can anyone please help how to solve this?
Thanks in advance.
Server1 Program where it prints last record and return(0):
printf("Server1:*************Print the Last record***************************\n");
printf ("******************Server1:Generic Structure*********************\n");
printf("Server1:gen->id = %d\n",gen->id);
printf("Server1:gen->rqst =%s\n",gen->rqst);
printf("***********************Server1Simp Structure***********************\n");
for(int i=0;i<1;i++)
{
printf("Server1:******************Entered for loop for %d time**************\n",j);
printf("Server1:gen->sp[%d].rollno= %d\n",i,gen->sp.rollno);
printf("Server1:gen->sp[%d].name =%s\n",i,gen->sp.name);
printf("Server1:gen->sp[%d].place= %s\n",i,gen->sp.place);
printf("Server1:gen->sp[%d].end= %d\n",i,gen->sp.end);
}
printf("Server1:After while loop & about to return\n");
return(0);
}
Error in ULOG file for Server1:
111837.dtcs-ndaxdb01!exmpl1.5727.1.0: LIBTUX_CAT:6260: ERROR: tpsvrinit() failed with open conversations
111837.dtcs-ndaxdb01!exmpl1.5727.1.0: LIBTUX_CAT:522: INFO: Default tpsvrdone() function used
111837.dtcs-ndaxdb01!tmboot.5720.1.-2: 01-23-2012: tuxedo Version 11.1.1.2.0, 32-bit
Regards,
Swetha.
Edited by: 905947 on 23-Jan-2012 04:39
--友情转载