Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

tpinit failed: TPEOS - operating system error

tuxitJun 16 2010 — edited Jul 11 2010
Hello,
I am trying to write a tuxedo monitoring daemon.
One problem I'm currently facing is that when tuxedo is being stoped example
tmadmin :
stop -y -w 5 -c
the monitoring daemon loses the connection to tuxedo... which is logical to me since tuxedo is stoped.
but when booting again.
tmadmin:
boot -y
I still can't reconnect. tpinit then get's this error once tux is started again :
Can't send request to service .TMIB
Tperrno = 7
errno: 7
tpinit failed: TPEOS - operating system error

the connection code is :
   TPINIT * tpinfo = (TPINIT*)tpalloc((char *)"TPINIT",NULL,TPINITNEED(20));
   strcpy(tpinfo->cltname, "tpsysadm");
   if (tpinit(tpinfo) == -1) 
   {
     printf("errno: %ld\n", tperrno);
     fprintf(stderr, "tpinit failed: %s\n", tpstrerror(tperrno));
     int tret = tpterm();
     if (tret < 0)
     {
         cout << "tprem : " << tret << endl;
         fprintf(stderr, "tpinit failed: %s\n", tpstrerror(tperrno));
     }
     tpfree((char *)tpinfo);
     return -1;   
   }
when restaring the daemon the connection can be re-established. Is there any way to re-establish without having to restart my daemon process ?

kind regards,

Gery

Edited by: tuxit on 16.06.2010 06:15
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 8 2010
Added on Jun 16 2010
11 comments
4,608 views