Error Running JAVA Command Language Script in wsadmin.sh: com.ibm.bsf.BSFException: error while eval'ing Jacl expression: missing close-bracket
 Technote (troubleshooting)
 
Problem(Abstract)
When running a JAVA™ Command Language (JACL) script using the wsadmin scripting interface, you may see the following error:

WASX7017E: Exception received while running file "<scriptName>.jacl"; exception information: com.ibm.bsf.BSFException: error while eval'ing Jacl expression: missing close-bracket
 
Cause
This error is often caused by a mix-up between the code page the scripting client is expecting and the code page in which the JACL script was written.
 
Resolving the problem
The problem is resolved by coding one of the following depending on where the script was written:

Set the option '-Dscript.encoding=script codepage ' in the wsadmin.sh file to the code page of the JACL script. Here are some guidelines for determining what the code page of the script is:

  • If the script was written in the OMVS® interface using the OEDIT editor, the code page is IBM-037. In this case, set the option to '-Dscript.encoding=Cp037'.
  • If the script was written in a telnet session to the OMVS interface using the VI editor, the code page is IBM-1047. In this case, set the option to '-Dscript.encoding=Cp1047'.
  • If the script was written on a personal computer, or any other ASCII machine, but was transferred to the host as a text file, the code page is IBM-1047. In this case, set the option to '-Dscript.encoding=Cp1047'.
  • If the script was written on a personal computer, or any other ASCII machine, and transferred to the host in binary, the code page is ISO-8859-1 (ASCII). In this case, no option needs to be set in wsadmin as the default is ASCII. You should review other possible reasons for this error.
 
 
 


Document Information


Current web document: swg21166029.html
Product categories: Software > Application Servers > Distributed Application & Web Servers > WebSphere Application Server for z/OS > Administrative Console (all non-scripting)
Operating system(s): z/OS
Software version: 5.0
Software edition:
Reference #: 1166029
IBM Group: Software Group
Modified date: Apr 20, 2004