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!

Exception in thread "main" bea.jolt.ServiceException: Service is not availa

s_ranjan_iwayJun 10 2010 — edited Jun 14 2010
Hi All,

I'm new to Tuxedo. I've installed tuxedo. I've deployed simpapp given as sample. It's c clients and server are working fine. Now I'm trying to use Java client for the same server. In my office I need to work with Tuxedo9.1 and JOLT. When I'm trying to run I'm getting problem. I'm not able to find any solution. Please help me. I'm giving entire work done by me as follows.

Problem in Running Java Client with Tuxedo.
-------------------------------------------


My ASCII tuxconfig file details:
--------------------------------
# (c) 2003 BEA Systems, Inc. All Rights Reserved.
#eident "@(#) samples/atmi/simpapp/ubbsimple $Revision: 1.5 $"

#Skeleton UBBCONFIG file for the TUXEDO Simple Application.
#Replace the <bracketed> items with the appropriate values.

*RESOURCES
IPCKEY 123456

#Example:
#IPCKEY 123456

DOMAINID simpapp
MASTER simple
MAXACCESSERS 50
MAXSERVERS 30
MAXSERVICES 50
MODEL SHM
LDBAL N

*MACHINES
DEFAULT:
APPDIR="/shashi/mysimpleapp/simpapp"
TUXCONFIG="/shashi/mysimpleapp/simpapp/tuxconfig"
TUXDIR="/newutitux/newtux/tuxedo9.1"
#Example:
# APPDIR="/home/me/simpapp"
# TUXCONFIG="/home/me/simpapp/tuxconfig"
# TUXDIR="/usr/tuxedo"

systest LMID=simple MAXWSCLIENTS=4

#Example:
#beatux LMID=simple

*GROUPS
GROUP1
LMID=simple GRPNO=1 OPENINFO=NONE
JSLGROUP LMID=simple GRPNO=2 OPENINFO=NONE
JREPGROUP LMID=simple GRPNO=3 OPENINFO=NONE

*SERVERS
DEFAULT:
CLOPT="-A"

simpserv SRVGRP=GROUP1 SRVID=1
JSL SRVGRP=JSLGROUP SRVID=2
CLOPT=" -- -n //10.10.100.110:5000 -d /dev/tcp "
JREPSVR SRVGRP=JREPGROUP SRVID=4
CLOPT=" -- -W -P /shashi/mysimpleapp/simpapp/jrepository "
JRAD SRVGRP=JSLGROUP SRVID=3
CLOPT=" -- -l //10.10.100.110:5555 -c //10.10.100.110:5000 "
*SERVICES
TOUPPER

---------------------------------------

I've started the server using command tmboot -y.5 servers are started.

When I test using tmadmin command following is the output.

>psr
Prog Name Queue Name Grp Name ID RqDone Load Done Current Service
--------- ---------- -------- -- ------ --------- ---------------
BBL 123456 simple 0 0 0 ( IDLE )
simpserv 00001.00001 GROUP1 1 0 0 ( IDLE )
JSL 00002.00002 JSLGROUP 2 0 0 ( IDLE )
JRAD 00002.00003 JSLGROUP 3 0 0 ( IDLE )
JREPSVR 00003.00004 JREPGRO+ 4 0 0 ( IDLE )

---------------------------------------
psc
Service Name Routine Name Prog Name Grp Name ID Machine # Done Status
------------ ------------ --------- -------- -- ------- ------ ------
TOUPPER TOUPPER simpserv GROUP1 1 simple 0 AVAIL

My Jrlyconfig file content is:-
------------------------------
LOGDIR=/shashi/mysimpleapp
ACCESS_LOG=access.log
ERROR_LOG=error.log
LISTEN=10.10.100.110:4444
CONNECT=10.10.100.110:5555
SOCKETTIMEOUT=30

and jrly is also running.

Content of jrepository file is:-
---------------------------------
#!JOLT1.0^M
add SVC/TOUPPER:vs=1:ex=1:bt=STRING:\^M
bp:pn=STRING:pt=string:pf=167772161:pa=rw:ep:^M
add PKG/SIMPSERV:TOUPPER:^M

ULOG Message is:-
-----------------------------------
165446.systest!BBL.5691.1.0: 06-10-2010: Tuxedo Version 9.1, 64-bit, Patch Level (none)
165446.systest!BBL.5691.1.0: LIBTUX_CAT:262: INFO: Standard main starting
165446.systest!simpserv.5692.1.0: 06-10-2010: Tuxedo Version 9.1, 64-bit
165446.systest!simpserv.5692.1.0: LIBTUX_CAT:262: INFO: Standard main starting
165446.systest!simpserv.5692.1.0: Welcome to the simple server
165446.systest!JSL.5693.1.0: 06-10-2010: Tuxedo Version 9.1, 64-bit
165446.systest!JSL.5693.1.0: LIBTUX_CAT:262: INFO: Standard main starting
165446.systest!JSL.5693.1.0: INFO: JOLT Listener version-BEA Jolt 9.1
165446.systest!JSL.5693.1.0: JOLT_CAT:1563: "INFO: Serial Number : <454493271161-2664953090480>, Expiration Date : <None>"
165446.systest!JSL.5693.1.0: JOLT_CAT:1564: "INFO: Licensee : <Customer>"
165446.systest!JREPSVR.5694.1.0: 06-10-2010: Tuxedo Version 9.1, 64-bit
165446.systest!JREPSVR.5694.1.0: LIBTUX_CAT:262: INFO: Standard main starting
165446.systest!JREPSVR.5694.1.0: Current version: BEA Jolt 9.1
165446.systest!JREPSVR.5694.1.0: Repository "/shashi/mysimpleapp/simpapp/jrepository" (2 records) is writable.
165446.systest!JRAD.5695.1.0: 06-10-2010: Tuxedo Version 9.1, 64-bit
165446.systest!JRAD.5695.1.0: LIBTUX_CAT:262: INFO: Standard main starting
165446.systest!JRAD.5695.1.0: INFO: JRAD version-BEA Jolt 9.1


-------------------------------------------

I don't find any problem in starting and running the system.

Problem faced:-
--------------

1.Repository Editor is connected to the system using port number given for jrly( i.e.. 4444) but it is giving an exception
"bea.jolt.ServiceException:Service is not available:.GETKEYS"

2.When trying to load bulk loader after setting jolt.jar and joltadmin.jar to the classpath it is giving the exception

java bea.jolt.admin.jbld //10.10.100.110:4444 services.txt
Exception in thread "main" bea.jolt.ServiceException: Service is not available:.GETKEYS
at bea.jolt.JoltRemoteService.init(JoltRemoteService.java:156)
at bea.jolt.JoltRemoteService.<init>(JoltRemoteService.java:112)
at bea.jolt.admin.JSvcPkgTbl.initTable(jbld.java:1010)
at bea.jolt.admin.JSvcPkgTbl.<init>(jbld.java:990)
at bea.jolt.admin.JBldDefRec.<init>(jbld.java:138)
at bea.jolt.admin.jbld.main(jbld.java:801)

Note:- I've tested on port number 5000 and file as jrepository also.The content of services.txt is as follows

service=TOUPPER
export=true
inbuf=STRING
outbuf=STRING
access=inout

3.While running the ToUpper.java given in sample it is giving the exception as follows.
"Exception in thread "main" bea.jolt.ServiceException: Service is not available:TOUPPER
at bea.jolt.JoltRemoteService.init(JoltRemoteService.java:156)
at bea.jolt.JoltRemoteService.<init>(JoltRemoteService.java:112)
at ToUpper.main(ToUpper.java:36)"

Content of ToUpper.java:-
-------------------------
/* Copyright 1996 BEA Systems, Inc. All Rights Reserved */
import bea.jolt.*;
public class ToUpper
{
public static void main (String[] args)
{
JoltSession session;
JoltSessionAttributes sattr;
JoltRemoteService toupper;
JoltTransaction trans;
String userName=null;
String userPassword=null;
String appPassword=null;
String userRole="myapp";
String outstr;

sattr = new JoltSessionAttributes();
sattr.setString(sattr.APPADDRESS, "//10.10.100.110:4444");

switch (sattr.checkAuthenticationLevel())
{
case JoltSessionAttributes.NOAUTH:
break;
case JoltSessionAttributes.APPASSWORD:
appPassword = "appPassword";
break;
case JoltSessionAttributes.USRPASSWORD:
userName = "myname";
userPassword = "mysecret";
appPassword = "appPassword";
break;
}
sattr.setInt(sattr.IDLETIMEOUT, 300);
session = new JoltSession(sattr, null, null,
null, null);
toupper = new JoltRemoteService ("TOUPPER", session);
toupper.setString("STRING", "hello world");
toupper.call(null);
outstr = toupper.getStringDef("STRING", null);
if (outstr != null)
System.out.println(outstr);

session.endSession();
System.exit(0);
} // end main
} // end ToUpper


Please help me. Thanks in Advance. Waiting for ASAP help.

Regards
Shashi Ranjan
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 12 2010
Added on Jun 10 2010
3 comments
4,449 views