Jose,

You need to be contacting Temenos support about this one, as there are very
few people on this list with knowledge of the (Temenos supplied) jBASE
version you are using.

 

One thing I do know is that your jBASE account should be using UTF-8
encoding.

 

Also, there have been enhancements made to the non-Temenos C# jRemote and
jAgent to allow a specific code page to be set, rather than the default
UTF-8. I have no idea whether these same enhancement have found their way
into the Temenos versions of these same products.

 

Mike

 

From: [email protected] [mailto:[email protected]] On Behalf Of
JOSE L MARTINEZ-AVIAL
Sent: Friday, November 2, 2012 12:38 PM
To: [email protected]
Subject: JBASE AGENT returns null when returning characters with accent

 

Hi all,
                We are using Jbase Agent and jremote.jar to connect to
Jbase. We have found an issue when returning values with accents. For
example, we have the following test program:
SUBROUTINE TEST.JBASE.AGENT(ID,XML)
$INSERT I_COMMON
$INSERT I_EQUATE
    
          IF ID = '1' THEN
             XML = 'Inversión : Will be null'
          END ELSE
             XML = 'Inversion : Will be sent correctly'
          END
           RETURN
    END

                Note the ó that will be returned if ID is 1. We invoque the
routine from java as follows:

            DefaultJConnectionFactory cxf = new DefaultJConnectionFactory();
            cxf.setHost("myserver");
            cxf.setPort(20002);
            JConnection conexion = cxf.getConnection();

            JSubroutineParameters parametersIn = new
JSubroutineParameters();
            parametersIn.add(new JDynArray("1"));
            parametersIn.add(new JDynArray(""));
            JSubroutineParameters parametersOut =
conexion.call("TEST.JBASE.AGENT", parametersIn);
            for (JDynArray jDynArray : parametersOut) {
                System.out.println("Parameter out is" + jDynArray);
            }

                If we execute the program passing anything but "1" as the
first parameter we got:

Parameter out is<1>2

Parameter out is<1>Inversion : Will be sent correctly

 

                But if we pass "1" then we got:

 

Parameter out is<1>1

Parameter out is<1>null

                Any ideas?


        jdiag - jBASE diagnostic '$Revision: 1.15 $'

System Information
==================

System                      : HP-UX miaux01 B.11.11.U 9000/800
UNIX User                   : miaswp01 (uid 138, euid 138)
Tty name                    : /dev/pts/ta
Time                        : Fri Nov  2 08:37:10 2012

Environment
===========

JBCPORTNO                   : Not Set
JBCRELEASEDIR               : '/apps/jbase5.0.14'
JBCGLOBALDIR                : '/apps/jbase5.0.14'
JBCDATADIR                  : '/volarc/miaswp01/bnk/bnk.run/../bnk.data'
HOME                        : '/volarc/miaswp01/bnk/bnk.run'
JEDIFILEPATH                : '/volarc/miaswp01/bnk/bnk.run'
JEDIFILENAME_MD             : '/volarc/miaswp01/bnk/bnk.run/VOC'
JEDIFILENAME_SYSTEM         : '/apps/jbase5.0.14/src/SYSTEM'
RELEASE Information         : Major 5.0 , Minor 14 , Patch 0287 (Change
73758)
Spooler dir (JBCSPOOLERDIR) : '/volarc/miaswp01/bnk/bnk.run/jspooler'
JBCEMULATE                  : 'prime'
WARNING: Cannot access Executable path
'/volarc/miaswp01/bnk/bnk.run/globuspatchbin', error 2
WARNING: Cannot access Library path '/apps/jbase5.0.14/jdk/jre/lib', error 2
Object path (JBCOBJECTLIST) :
'/volarc/miaswp01/bnk/bnk.run/globuspatchlib:/volarc/miaswp01/bnk/bnk.run/li
b:/volarc/miaswp01/bnk/bn'
jBASE Compiler Run-time     : '/apps/jbase5.0.14/config/system.properties'
Program dir (JBCDEV_BIN)    : '/volarc/miaswp01/bnk/bnk.run/bin'
Subroutine dir (JBCDEV_LIB) : '/volarc/miaswp01/bnk/bnk.run/lib'
Max open files              : 2048

-- 
-- 
IMPORTANT: T24/Globus posts are no longer accepted on this forum.
 
To post, send email to [email protected]
To unsubscribe, send email to [email protected]
For more options, visit this group at
http://groups.google.com/group/jBASE?hl=en
 
 
 

-- 
-- 
IMPORTANT: T24/Globus posts are no longer accepted on this forum.

To post, send email to [email protected]
To unsubscribe, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/jBASE?hl=en



Reply via email to