Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

Appeon 5.0, NVO, String Array ref error with return code 57

3 posts in Appeon (partner product) Last posting was on 2006-08-11 02:30:47.0Z
Victor Posted on 2006-07-03 05:03:57.0Z
Reply-To: "Victor" <chiuvictor@gmail.com>
From: "Victor" <chiuvictor@gmail.com>
Newsgroups: sybase.public.appeon
Subject: Appeon 5.0, NVO, String Array ref error with return code 57
Lines: 273
X-Newsreader: Microsoft Outlook Express 6.00.2800.1506
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506
NNTP-Posting-Host: mail.fairton.com
X-Original-NNTP-Posting-Host: mail.fairton.com
Message-ID: <44a8a53d@forums-1-dub>
Date: 2 Jul 2006 22:03:57 -0700
X-Trace: forums-1-dub 1151903037 202.155.204.178 (2 Jul 2006 22:03:57 -0700)
X-Original-Trace: 2 Jul 2006 22:03:57 -0700, mail.fairton.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.appeon:1487
Article PK: 13025

Hi,

I'm using Appeon 5.0 Trail Edition and PB10.5 for an existing application
that invokes an EAServer component (PB Comp). This component has a lot of
methods and I have no problem in invokling other methods unde Appeon except
the following:

function Integer uf_get_pgm_but (String as_pgm_id,REF String
as_func_cd[],REF String as_sc_key[]) alias for "uf_get_pgm_but__N"

In C/S Mode, the function will successfully return 1.
In Appeon mode, the function will return 57

I tried to initialize the array before passing to the method but it doesn't
help.

I turned on the Appeon Server log and found this function invokation is no
even logged in the log but another method is logged in Appeon Server log
(see below)


I search through the documentation and it didn't tell the meaning of return
code '57'

Any pointer??

Regards,
Victor

***************************************************
Sample Client Side Code
***************************************************
lnvo_common = create nvo_exe_common
lnvo_conn = create nvo_exe_common_conn
lnvo_conn.connecttoserver()
lnvo_conn.createinstance(lnvo_jag, "Pkg_exe_common/nvo_jag")
// set screen label
lnvo_jag.uf_setscnlbl('code', 'code', 2) // *** this can be logged in
server log

integer li_rtn
ls_func_cd[1] = ''
ls_sc_key[1] = ''
li_rtn = lnvo_jag.uf_get_pgm_but(this.tag, ls_func_cd[], ls_sc_key[])
// ** * couldn' find this but with return code of 57

messagebox('li_rtn', li_rtn)
messagebox("upperbound ls_func_cd:" , string(upperbound(ls_func_cd)))

***************************************************
Component Side Code
***************************************************

function Integer uf_get_pgm_but (String as_pgm_id,REF String
as_func_cd[],REF String as_sc_key[]) alias for "uf_get_pgm_but__N"

datastore lds_pgm_but
int i, li_rtn

lds_pgm_but = create datastore
lds_pgm_but.dataobject = "d_pgm_but"
lds_pgm_but.SetTransObject(it_sql)
lds_pgm_but.retrieve(as_pgm_id)

IF it_sql.SQLCode = 0 THEN
FOR i = 1 to lds_pgm_but.RowCount()
as_func_cd[i] = lds_pgm_but.GetItemString(i, "func_cd")
as_sc_key[i] = lds_pgm_but.GetItemString(i, "sc_key")
NEXT
li_rtn = 1
ELSE
li_rtn = -1
END IF
destroy lds_pgm_but
return li_rtn
***************************************************
Extract the tail of Appeon Server log
***************************************************
1151900510305:3 [06-07-03 12:21:50.305]
[com.appeon.server.sessionmanage.Sessions (getSession)]
sessionName1=1167145416
1151900510305:3 [06-07-03 12:21:50.305]
[com.appeon.server.sessionmanage.Sessions (getSession)]
sessionName1=1167145416
1151900510305:3 [06-07-03 12:21:50.305]
[com.appeon.server.sessionmanage.Sessions (getSession)]
sessionName1=1167145416
1151900510305:2 [06-07-03 12:21:50.305]
[com.appeon.server.sessionmanage.SessionAccessInfo (getComponent)] Get
component in the current session. Component name=1894890619.
1151900510305:3 [06-07-03 12:21:50.305]
[com.appeon.server.sessionmanage.Sessions (getSession)]
sessionName1=1167145416
1151900510305:3 [06-07-03 12:21:50.305]
[com.appeon.server.services.controller.JRouterImpl (call)]
command=com.appeon.server.command.CallNvoCommandData[
1151900510305:3 [06-07-03 12:21:50.305] packageName=Pkg_exe_common,
1151900510305:3 [06-07-03 12:21:50.305] name=nvo_jag,
1151900510305:3 [06-07-03 12:21:50.305] methodName=uf_setscnlbl,
1151900510305:3 [06-07-03 12:21:50.305] handler=1894890619,
1151900510305:3 [06-07-03 12:21:50.305] dbType=null,
1151900510305:3 [06-07-03 12:21:50.305] commitProperty=null,
1151900510305:3 [06-07-03 12:21:50.305]
parameters=[DataParameterInfo[name=, dataType=1, jdbcType=1111, inoutType=0,
isNull=false, isArray=false, value=PRC300], DataParameterInfo[name=,
dataType=1, jdbcType=1111, inoutType=0, isNull=false, isArray=false,
value=br_t], DataParameterInfo[name=, dataType=3, jdbcType=1111,
inoutType=0, isNull=false, isArray=false, value=1]],
1151900510305:3 [06-07-03 12:21:50.305]
pbTransObject=PBTransaction[name=null, cacheName=null,driverID=-1,
autoCommitMode=0, commitOnDisconnect=false, dbType=null],
1151900510305:3 [06-07-03 12:21:50.305] isInChainedMode=false,
1151900510305:3 [06-07-03 12:21:50.305] cachedResultKey=null,
1151900510305:3 [06-07-03 12:21:50.305] isAsynchronous=false,
1151900510305:3 [06-07-03 12:21:50.305] flag=-94,
1151900510305:3 [06-07-03 12:21:50.305] clientType=1,
1151900510305:3 [06-07-03 12:21:50.305] logId=null,
1151900510305:3 [06-07-03 12:21:50.305] isNeedSession=true,
1151900510305:3 [06-07-03 12:21:50.305] applicationName=prc300,
1151900510305:3 [06-07-03 12:21:50.305] sessionId=1167145416,
1151900510305:3 [06-07-03 12:21:50.305] clientContext={rStream=1537151643,
encoding=UTF-16LE, return_pt=[I@11803fb, inputencoding=UTF-16LE,
counter=com.appeon.util.Counter@1ad8690, pt=[I@15d7792, rIP=127.0.0.1,
server_flag=[B@1a17727, rUser=null,
testdata_session=com.sybase.jaguar.servlet.JagHttpSession@10a94c5},
1151900510305:3 [06-07-03 12:21:50.305] commandDataId=null,
1151900510305:3 [06-07-03 12:21:50.305] list=null]
1151900510305:3 [06-07-03 12:21:50.305]
[com.appeon.server.sessionmanage.Sessions (getSession)]
sessionName1=1167145416
1151900510305:3 [06-07-03 12:21:50.305]
[com.appeon.server.services.controller.JRouterImpl (call-Before execute)]
Execute command.execute()
1151900510305:3 [06-07-03 12:21:50.305]
[com.appeon.server.sessionmanage.Sessions (getSession)]
sessionName1=1167145416
1151900510321:2 [06-07-03 12:21:50.321]
[com.appeon.server.sessionmanage.SessionAccessInfo (getComponent)] Get
component in the current session. Component name=1894890619.
1151900510321:2 [06-07-03 12:21:50.321]
[com.appeon.server.services.transactionservice.TransactionServiceImpl
(executeNvoComponent())] start:[type =1,
applicationName=prc300,sessionId=1167145416,handler=1894890619,packageName=P
kg_exe_common,componentName=nvo_jag,methodName=uf_setscnlbl,parameters=[Data
ParameterInfo[name=, dataType=1, jdbcType=1111, inoutType=0, isNull=false,
isArray=false, value=PRC300], DataParameterInfo[name=, dataType=1,
jdbcType=1111, inoutType=0, isNull=false, isArray=false, value=br_t],
DataParameterInfo[name=, dataType=3, jdbcType=1111, inoutType=0,
isNull=false, isArray=false, value=1]]]
1151900510321:3 [06-07-03 12:21:50.321]
[com.appeon.server.sessionmanage.Sessions (getSession)]
sessionName1=1167145416
1151900510321:2 [06-07-03 12:21:50.321]
[com.appeon.server.sessionmanage.SessionAccessInfo (getComponent)] Get
component in the current session. Component name=1894890619.
1151900510321:3 [06-07-03 12:21:50.321]
[com.appeon.server.services.transactionservice.TransactionServiceImpl
(executeNvoComponent(): convert parameters)]
parameters=[DataParameterInfo[name=, dataType=1, jdbcType=1111, inoutType=0,
isNull=false, isArray=false, value=PRC300], DataParameterInfo[name=,
dataType=1, jdbcType=1111, inoutType=0, isNull=false, isArray=false,
value=br_t], DataParameterInfo[name=, dataType=3, jdbcType=1111,
inoutType=0, isNull=false, isArray=false, value=1]]
1151900510462:3 [06-07-03 12:21:50.462]
[com.appeon.server.services.transactionservice.TransactionServiceImpl
(executeNvoComponent():)] retrueValue = [B@15538e5
1151900510462:3 [06-07-03 12:21:50.462]
[com.appeon.server.parser.SerializeReturnObject
(SerializeObject(ReturnObject returnObject))] ReturnObject [ Code=0,
Message=, Exception=, ReturnValue=Class name is :
com.appeon.server.value.CallNvoReturn
1151900510462:3 [06-07-03 12:21:50.462] Properties is:
1151900510462:3 [06-07-03 12:21:50.462] isVoid : false
1151900510462:3 [06-07-03 12:21:50.462] value : [B@15538e5
1151900510462:3 [06-07-03 12:21:50.462] type : 16
1151900510462:3 [06-07-03 12:21:50.462] javaType : class [B
1151900510462:3 [06-07-03 12:21:50.462] applicationName : null
1151900510462:3 [06-07-03 12:21:50.462] businessErrorInfo :
1151900510462:3 [06-07-03 12:21:50.462] businessErrorInfoCode : 0
1151900510462:3 [06-07-03 12:21:50.462] ]
1151900510462:3 [06-07-03 12:21:50.462]
[com.appeon.server.parser.SerializeReturnObject (SerializeObject)] Total
writed bytes=56
1151900510477:3 [06-07-03 12:21:50.477]
[com.appeon.server.services.controller.JRouterImpl (call-After execute)]
After execute command.execute()
1151900510477:3 [06-07-03 12:21:50.477] [appeon.weblibrary.AXDispatcher
(doPost)]
1151900510477:3 [06-07-03 12:21:50.477] =======================INVOKE
FINISHED==========================================
1151900510477:3 [06-07-03 12:21:50.477] Input time < 15ms; Process and
output time = 172ms; Total time = 172ms.
1151900510477:3 [06-07-03 12:21:50.477]
============================================================================
====

1151900510493:3 [06-07-03 12:21:50.493]
[com.appeon.server.sessionmanage.Sessions (getSession)]
sessionName1=1167145416
1151900510493:3 [06-07-03 12:21:50.493]
[com.appeon.server.sessionmanage.Sessions (getSession)]
sessionName1=1167145416
1151900510493:3 [06-07-03 12:21:50.493]
[com.appeon.server.sessionmanage.Sessions (getSession)]
sessionName1=1167145416
1151900510493:2 [06-07-03 12:21:50.493]
[com.appeon.server.sessionmanage.SessionAccessInfo (getComponent)] Get
component in the current session. Component name=1894890619.
1151900516540:3 [06-07-03 12:21:56.540]
[com.appeon.server.sessionmanage.Sessions (getSession)]
sessionName1=1167145416
1151900516540:3 [06-07-03 12:21:56.540]
[com.appeon.server.sessionmanage.Sessions (getSession)]
sessionName1=1167145416
1151900516540:3 [06-07-03 12:21:56.540]
[com.appeon.server.services.controller.JRouterImpl (call)]
command=com.appeon.server.command.DisconnectServerCommandData[
1151900516540:3 [06-07-03 12:21:56.540] serverHandle=1338426891,
1151900516540:3 [06-07-03 12:21:56.540] isInChainedMode=false,
1151900516540:3 [06-07-03 12:21:56.540] cachedResultKey=null,
1151900516540:3 [06-07-03 12:21:56.540] isAsynchronous=false,
1151900516540:3 [06-07-03 12:21:56.540] flag=-89,
1151900516540:3 [06-07-03 12:21:56.540] clientType=1,
1151900516540:3 [06-07-03 12:21:56.540] logId=null,
1151900516540:3 [06-07-03 12:21:56.540] isNeedSession=true,
1151900516540:3 [06-07-03 12:21:56.540] applicationName=prc300,
1151900516540:3 [06-07-03 12:21:56.540] sessionId=1167145416,
1151900516540:3 [06-07-03 12:21:56.540] clientContext={rStream=1555062237,
encoding=UTF-16LE, return_pt=[I@a765c, inputencoding=UTF-16LE,
counter=com.appeon.util.Counter@e0b1d6, pt=[I@1bb6976, rIP=127.0.0.1,
server_flag=[B@1a17727, rUser=null,
testdata_session=com.sybase.jaguar.servlet.JagHttpSession@10a94c5},
1151900516540:3 [06-07-03 12:21:56.540] commandDataId=null,
1151900516540:3 [06-07-03 12:21:56.540] list=null]
1151900516540:3 [06-07-03 12:21:56.540]
[com.appeon.server.sessionmanage.Sessions (getSession)]
sessionName1=1167145416
1151900516540:3 [06-07-03 12:21:56.540]
[com.appeon.server.services.controller.JRouterImpl (call-Before execute)]
Execute command.execute()
1151900516540:3 [06-07-03 12:21:56.540]
[com.appeon.server.sessionmanage.Sessions (getSession)]
sessionName1=1167145416
1151900516540:2 [06-07-03 12:21:56.540]
[com.appeon.server.sessionmanage.SessionAccessInfo (destroyInstance)]
Destroy instance. Instance name=1338426891.
1151900516540:3 [06-07-03 12:21:56.540]
[com.appeon.server.parser.SerializeReturnObject
(SerializeObject(ReturnObject returnObject))] ReturnObject [ Code=0,
Message=, Exception=, ReturnValue=null ]
1151900516540:3 [06-07-03 12:21:56.540]
[com.appeon.server.parser.SerializeReturnObject (SerializeObject)] Total
writed bytes=33
1151900516540:3 [06-07-03 12:21:56.540]
[com.appeon.server.services.controller.JRouterImpl (call-After execute)]
After execute command.execute()
1151900516540:3 [06-07-03 12:21:56.540]
[com.appeon.server.sessionmanage.Sessions (getSession)]
sessionName1=1167145416
1151900516540:3 [06-07-03 12:21:56.540] [appeon.weblibrary.AXDispatcher
(doPost)]
1151900516540:3 [06-07-03 12:21:56.540] =======================INVOKE
FINISHED==========================================
1151900516540:3 [06-07-03 12:21:56.540] Input time < 15ms; Process and
output time < 15ms; Total time < 15ms.
1151900516540:3 [06-07-03 12:21:56.540]
============================================================================
====


jiangzepeng Posted on 2006-08-11 02:18:49.0Z
Sender: 6268.44dbe119.1804289383@sybase.com
From: jiangzepeng
Newsgroups: sybase.public.appeon
Subject: Re: Appeon 5.0, NVO, String Array ref error with return code 57
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <44dbe6db.6299.1681692777@sybase.com>
References: <44a8a53d@forums-1-dub>
X-Original-NNTP-Posting-Host: 10.22.241.42
X-Original-Trace: 10 Aug 2006 19:09:31 -0700, 10.22.241.42
Lines: 298
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 10 Aug 2006 19:09:34 -0800, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 10 Aug 2006 19:18:49 -0700
X-Trace: forums-1-dub 1155262729 10.22.108.75 (10 Aug 2006 19:18:49 -0700)
X-Original-Trace: 10 Aug 2006 19:18:49 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.appeon:1518
Article PK: 13037

which contents in appeonerror.log?

> Hi,
>
> I'm using Appeon 5.0 Trail Edition and PB10.5 for an
> existing application that invokes an EAServer component
> (PB Comp). This component has a lot of methods and I have
> no problem in invokling other methods unde Appeon except
> the following:
>
> function Integer uf_get_pgm_but (String as_pgm_id,REF
> String as_func_cd[],REF String as_sc_key[]) alias for
> "uf_get_pgm_but__N"
>
> In C/S Mode, the function will successfully return 1.
> In Appeon mode, the function will return 57
>
> I tried to initialize the array before passing to the
> method but it doesn't help.
>
> I turned on the Appeon Server log and found this function
> invokation is no even logged in the log but another method
> is logged in Appeon Server log (see below)
>
>
> I search through the documentation and it didn't tell the
> meaning of return code '57'
>
> Any pointer??
>
> Regards,
> Victor
>
> ***************************************************
> Sample Client Side Code
> ***************************************************
> lnvo_common = create nvo_exe_common
> lnvo_conn = create nvo_exe_common_conn
> lnvo_conn.connecttoserver()
> lnvo_conn.createinstance(lnvo_jag,
> "Pkg_exe_common/nvo_jag") // set screen label
> lnvo_jag.uf_setscnlbl('code', 'code', 2) // *** this can
> be logged in server log
>
> integer li_rtn
> ls_func_cd[1] = ''
> ls_sc_key[1] = ''
> li_rtn = lnvo_jag.uf_get_pgm_but(this.tag, ls_func_cd[]
> , ls_sc_key[]) // ** * couldn' find this but with return
> code of 57
>
> messagebox('li_rtn', li_rtn)
> messagebox("upperbound ls_func_cd:" ,
> string(upperbound(ls_func_cd)))
>
> ***************************************************
> Component Side Code
> ***************************************************
>
> function Integer uf_get_pgm_but (String as_pgm_id,REF
> String as_func_cd[],REF String as_sc_key[]) alias for
> "uf_get_pgm_but__N"
>
> datastore lds_pgm_but
> int i, li_rtn
>
> lds_pgm_but = create datastore
> lds_pgm_but.dataobject = "d_pgm_but"
> lds_pgm_but.SetTransObject(it_sql)
> lds_pgm_but.retrieve(as_pgm_id)
>
> IF it_sql.SQLCode = 0 THEN
> FOR i = 1 to lds_pgm_but.RowCount()
> as_func_cd[i] = lds_pgm_but.GetItemString(i, "func_cd")
> as_sc_key[i] = lds_pgm_but.GetItemString(i, "sc_key")
> NEXT
> li_rtn = 1
> ELSE
> li_rtn = -1
> END IF
> destroy lds_pgm_but
> return li_rtn
> ***************************************************
> Extract the tail of Appeon Server log
> ***************************************************
> 1151900510305:3 [06-07-03 12:21:50.305]
> [com.appeon.server.sessionmanage.Sessions (getSession)]
> sessionName1=1167145416
> 1151900510305:3 [06-07-03 12:21:50.305]
> [com.appeon.server.sessionmanage.Sessions (getSession)]
> sessionName1=1167145416
> 1151900510305:3 [06-07-03 12:21:50.305]
> [com.appeon.server.sessionmanage.Sessions (getSession)]
> sessionName1=1167145416
> 1151900510305:2 [06-07-03 12:21:50.305]
> [com.appeon.server.sessionmanage.SessionAccessInfo
> (getComponent)] Get component in the current session.
> Component name=1894890619. 1151900510305:3 [06-07-03
> 12:21:50.305] [com.appeon.server.sessionmanage.Sessions
> (getSession)] sessionName1=1167145416
> 1151900510305:3 [06-07-03 12:21:50.305]
> [com.appeon.server.services.controller.JRouterImpl (call)]
> command=com.appeon.server.command.CallNvoCommandData[
> 1151900510305:3 [06-07-03 12:21:50.305]
> packageName=Pkg_exe_common, 1151900510305:3 [06-07-03
> 12:21:50.305] name=nvo_jag, 1151900510305:3 [06-07-03
> 12:21:50.305] methodName=uf_setscnlbl, 1151900510305:3
> [06-07-03 12:21:50.305] handler=1894890619,
> 1151900510305:3 [06-07-03 12:21:50.305] dbType=null,
> 1151900510305:3 [06-07-03 12:21:50.305]
> commitProperty=null, 1151900510305:3 [06-07-03
> 12:21:50.305] parameters=[DataParameterInfo[name=,
> dataType=1, jdbcType=1111, inoutType=0, isNull=false,
> isArray=false, value=PRC300], DataParameterInfo[name=,
> dataType=1, jdbcType=1111, inoutType=0, isNull=false,
> isArray=false, value=br_t], DataParameterInfo[name=,
> dataType=3, jdbcType=1111, inoutType=0, isNull=false,
> isArray=false, value=1]], 1151900510305:3 [06-07-03
> 12:21:50.305] pbTransObject=PBTransaction[name=null,
> cacheName=null,driverID=-1, autoCommitMode=0,
> commitOnDisconnect=false, dbType=null], 1151900510305:3
> [06-07-03 12:21:50.305] isInChainedMode=false,
> 1151900510305:3 [06-07-03 12:21:50.305]
> cachedResultKey=null, 1151900510305:3 [06-07-03
> 12:21:50.305] isAsynchronous=false, 1151900510305:3
> [06-07-03 12:21:50.305] flag=-94, 1151900510305:3
> [06-07-03 12:21:50.305] clientType=1, 1151900510305:3
> [06-07-03 12:21:50.305] logId=null, 1151900510305:3
> [06-07-03 12:21:50.305] isNeedSession=true,
> 1151900510305:3 [06-07-03 12:21:50.305]
> applicationName=prc300, 1151900510305:3 [06-07-03
> 12:21:50.305] sessionId=1167145416, 1151900510305:3
> [06-07-03 12:21:50.305] clientContext={rStream=1537151643
> , encoding=UTF-16LE, return_pt=[I@11803fb,
> inputencoding=UTF-16LE,
> counter=com.appeon.util.Counter@1ad8690, pt=[I@15d7792,
> rIP=127.0.0.1, server_flag=[B@1a17727, rUser=null,
> testdata_session=com.sybase.jaguar.servlet.JagHttpSession@
> 10a94c5}, 1151900510305:3 [06-07-03 12:21:50.305]
> commandDataId=null, 1151900510305:3 [06-07-03
> 12:21:50.305] list=null] 1151900510305:3 [06-07-03
> 12:21:50.305] [com.appeon.server.sessionmanage.Sessions
> (getSession)] sessionName1=1167145416
> 1151900510305:3 [06-07-03 12:21:50.305]
> [com.appeon.server.services.controller.JRouterImpl
> (call-Before execute)] Execute command.execute()
> 1151900510305:3 [06-07-03 12:21:50.305]
> [com.appeon.server.sessionmanage.Sessions (getSession)]
> sessionName1=1167145416
> 1151900510321:2 [06-07-03 12:21:50.321]
> [com.appeon.server.sessionmanage.SessionAccessInfo
> (getComponent)] Get component in the current session.
> Component name=1894890619. 1151900510321:2 [06-07-03
> 12:21:50.321]
> [com.appeon.server.services.transactionservice.Transaction
> ServiceImpl (executeNvoComponent())] start:[type =1,
> applicationName=prc300,sessionId=1167145416
> ,handler=1894890619,packageName=P kg_exe_common
> ,componentName=nvo_jag,methodName=uf_setscnlbl
> ,parameters=[Data ParameterInfo[name=, dataType=1,
> jdbcType=1111, inoutType=0, isNull=false, isArray=false,
> value=PRC300], DataParameterInfo[name=, dataType=1,
> jdbcType=1111, inoutType=0, isNull=false, isArray=false,
> value=br_t], DataParameterInfo[name=, dataType=3,
> jdbcType=1111, inoutType=0, isNull=false, isArray=false,
> value=1]]] 1151900510321:3 [06-07-03 12:21:50.321]
> [com.appeon.server.sessionmanage.Sessions (getSession)]
> sessionName1=1167145416
> 1151900510321:2 [06-07-03 12:21:50.321]
> [com.appeon.server.sessionmanage.SessionAccessInfo
> (getComponent)] Get component in the current session.
> Component name=1894890619. 1151900510321:3 [06-07-03
> 12:21:50.321]
> [com.appeon.server.services.transactionservice.Transaction
> ServiceImpl (executeNvoComponent(): convert parameters)]
> parameters=[DataParameterInfo[name=, dataType=1,
> jdbcType=1111, inoutType=0, isNull=false, isArray=false,
> value=PRC300], DataParameterInfo[name=, dataType=1,
> jdbcType=1111, inoutType=0, isNull=false, isArray=false,
> value=br_t], DataParameterInfo[name=, dataType=3,
> jdbcType=1111, inoutType=0, isNull=false, isArray=false,
> value=1]] 1151900510462:3 [06-07-03 12:21:50.462]
> [com.appeon.server.services.transactionservice.Transaction
> ServiceImpl (executeNvoComponent():)] retrueValue =
> [B@15538e5 1151900510462:3 [06-07-03 12:21:50.462]
> [com.appeon.server.parser.SerializeReturnObject
> (SerializeObject(ReturnObject returnObject))] ReturnObject
> [ Code=0, Message=, Exception=, ReturnValue=Class name is
> : com.appeon.server.value.CallNvoReturn
> 1151900510462:3 [06-07-03 12:21:50.462] Properties is:
> 1151900510462:3 [06-07-03 12:21:50.462] isVoid : false
> 1151900510462:3 [06-07-03 12:21:50.462] value :
> [B@15538e5 1151900510462:3 [06-07-03 12:21:50.462]
> type : 16 1151900510462:3 [06-07-03 12:21:50.462]
> javaType : class [B 1151900510462:3 [06-07-03
> 12:21:50.462] applicationName : null 1151900510462:3
> [06-07-03 12:21:50.462] businessErrorInfo :
> 1151900510462:3 [06-07-03 12:21:50.462]
> businessErrorInfoCode : 0 1151900510462:3 [06-07-03
> 12:21:50.462] ] 1151900510462:3 [06-07-03 12:21:50.462]
> [com.appeon.server.parser.SerializeReturnObject
> (SerializeObject)] Total writed bytes=56
> 1151900510477:3 [06-07-03 12:21:50.477]
> [com.appeon.server.services.controller.JRouterImpl
> (call-After execute)] After execute command.execute()
> 1151900510477:3 [06-07-03 12:21:50.477]
> [appeon.weblibrary.AXDispatcher (doPost)]
> 1151900510477:3 [06-07-03 12:21:50.477]
> =======================INVOKE
> FINISHED==========================================
> 1151900510477:3 [06-07-03 12:21:50.477] Input time < 15ms;
> Process and output time = 172ms; Total time = 172ms.
> 1151900510477:3 [06-07-03 12:21:50.477]
> ==========================================================
> ================== ====
>
> 1151900510493:3 [06-07-03 12:21:50.493]
> [com.appeon.server.sessionmanage.Sessions (getSession)]
> sessionName1=1167145416
> 1151900510493:3 [06-07-03 12:21:50.493]
> [com.appeon.server.sessionmanage.Sessions (getSession)]
> sessionName1=1167145416
> 1151900510493:3 [06-07-03 12:21:50.493]
> [com.appeon.server.sessionmanage.Sessions (getSession)]
> sessionName1=1167145416
> 1151900510493:2 [06-07-03 12:21:50.493]
> [com.appeon.server.sessionmanage.SessionAccessInfo
> (getComponent)] Get component in the current session.
> Component name=1894890619. 1151900516540:3 [06-07-03
> 12:21:56.540] [com.appeon.server.sessionmanage.Sessions
> (getSession)] sessionName1=1167145416
> 1151900516540:3 [06-07-03 12:21:56.540]
> [com.appeon.server.sessionmanage.Sessions (getSession)]
> sessionName1=1167145416
> 1151900516540:3 [06-07-03 12:21:56.540]
> [com.appeon.server.services.controller.JRouterImpl (call)]
> command=com.appeon.server.command.DisconnectServerCommandD
> ata[ 1151900516540:3 [06-07-03 12:21:56.540]
> serverHandle=1338426891, 1151900516540:3 [06-07-03
> 12:21:56.540] isInChainedMode=false, 1151900516540:3
> [06-07-03 12:21:56.540] cachedResultKey=null,
> 1151900516540:3 [06-07-03 12:21:56.540]
> isAsynchronous=false, 1151900516540:3 [06-07-03
> 12:21:56.540] flag=-89, 1151900516540:3 [06-07-03
> 12:21:56.540] clientType=1, 1151900516540:3 [06-07-03
> 12:21:56.540] logId=null, 1151900516540:3 [06-07-03
> 12:21:56.540] isNeedSession=true, 1151900516540:3
> [06-07-03 12:21:56.540] applicationName=prc300,
> 1151900516540:3 [06-07-03 12:21:56.540]
> sessionId=1167145416, 1151900516540:3 [06-07-03
> 12:21:56.540] clientContext={rStream=1555062237,
> encoding=UTF-16LE, return_pt=[I@a765c,
> inputencoding=UTF-16LE,
> counter=com.appeon.util.Counter@e0b1d6, pt=[I@1bb6976,
> rIP=127.0.0.1, server_flag=[B@1a17727, rUser=null,
> testdata_session=com.sybase.jaguar.servlet.JagHttpSession@
> 10a94c5}, 1151900516540:3 [06-07-03 12:21:56.540]
> commandDataId=null, 1151900516540:3 [06-07-03
> 12:21:56.540] list=null] 1151900516540:3 [06-07-03
> 12:21:56.540] [com.appeon.server.sessionmanage.Sessions
> (getSession)] sessionName1=1167145416
> 1151900516540:3 [06-07-03 12:21:56.540]
> [com.appeon.server.services.controller.JRouterImpl
> (call-Before execute)] Execute command.execute()
> 1151900516540:3 [06-07-03 12:21:56.540]
> [com.appeon.server.sessionmanage.Sessions (getSession)]
> sessionName1=1167145416
> 1151900516540:2 [06-07-03 12:21:56.540]
> [com.appeon.server.sessionmanage.SessionAccessInfo
> (destroyInstance)] Destroy instance. Instance
> name=1338426891. 1151900516540:3 [06-07-03 12:21:56.540]
> [com.appeon.server.parser.SerializeReturnObject
> (SerializeObject(ReturnObject returnObject))] ReturnObject
> [ Code=0, Message=, Exception=, ReturnValue=null ]
> 1151900516540:3 [06-07-03 12:21:56.540]
> [com.appeon.server.parser.SerializeReturnObject
> (SerializeObject)] Total writed bytes=33
> 1151900516540:3 [06-07-03 12:21:56.540]
> [com.appeon.server.services.controller.JRouterImpl
> (call-After execute)] After execute command.execute()
> 1151900516540:3 [06-07-03 12:21:56.540]
> [com.appeon.server.sessionmanage.Sessions (getSession)]
> sessionName1=1167145416
> 1151900516540:3 [06-07-03 12:21:56.540]
> [appeon.weblibrary.AXDispatcher (doPost)]
> 1151900516540:3 [06-07-03 12:21:56.540]
> =======================INVOKE
> FINISHED==========================================
> 1151900516540:3 [06-07-03 12:21:56.540] Input time < 15ms;
> Process and output time < 15ms; Total time < 15ms.
> 1151900516540:3 [06-07-03 12:21:56.540]
> ==========================================================
> ================== ====
>
>
>
>
>


jiangzepeng Posted on 2006-08-11 02:30:47.0Z
Sender: 6c8e.44dbeb2c.1804289383@sybase.com
From: jiangzepeng
Newsgroups: sybase.public.appeon
Subject: Re: Appeon 5.0, NVO, String Array ref error with return code 57
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <44dbebd7.6c93.1681692777@sybase.com>
References: <44a8a53d@forums-1-dub>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 10 Aug 2006 19:30:47 -0700
X-Trace: forums-1-dub 1155263447 10.22.241.41 (10 Aug 2006 19:30:47 -0700)
X-Original-Trace: 10 Aug 2006 19:30:47 -0700, 10.22.241.41
Lines: 306
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.appeon:1519
Article PK: 21232

is there any error in appeonerror.log or jaguar.log
?
are you sure your demo code is right?
for in pb:
connection.ConnectToServer ( )
57 Connection object not connected to server
connection.CreateInstance (objectvariable {, classname } )
57 Not connected

> Hi,
>
> I'm using Appeon 5.0 Trail Edition and PB10.5 for an
> existing application that invokes an EAServer component
> (PB Comp). This component has a lot of methods and I have
> no problem in invokling other methods unde Appeon except
> the following:
>
> function Integer uf_get_pgm_but (String as_pgm_id,REF
> String as_func_cd[],REF String as_sc_key[]) alias for
> "uf_get_pgm_but__N"
>
> In C/S Mode, the function will successfully return 1.
> In Appeon mode, the function will return 57
>
> I tried to initialize the array before passing to the
> method but it doesn't help.
>
> I turned on the Appeon Server log and found this function
> invokation is no even logged in the log but another method
> is logged in Appeon Server log (see below)
>
>
> I search through the documentation and it didn't tell the
> meaning of return code '57'
>
> Any pointer??
>
> Regards,
> Victor
>
> ***************************************************
> Sample Client Side Code
> ***************************************************
> lnvo_common = create nvo_exe_common
> lnvo_conn = create nvo_exe_common_conn
> lnvo_conn.connecttoserver()
> lnvo_conn.createinstance(lnvo_jag,
> "Pkg_exe_common/nvo_jag") // set screen label
> lnvo_jag.uf_setscnlbl('code', 'code', 2) // *** this can
> be logged in server log
>
> integer li_rtn
> ls_func_cd[1] = ''
> ls_sc_key[1] = ''
> li_rtn = lnvo_jag.uf_get_pgm_but(this.tag, ls_func_cd[]
> , ls_sc_key[]) // ** * couldn' find this but with return
> code of 57
>
> messagebox('li_rtn', li_rtn)
> messagebox("upperbound ls_func_cd:" ,
> string(upperbound(ls_func_cd)))
>
> ***************************************************
> Component Side Code
> ***************************************************
>
> function Integer uf_get_pgm_but (String as_pgm_id,REF
> String as_func_cd[],REF String as_sc_key[]) alias for
> "uf_get_pgm_but__N"
>
> datastore lds_pgm_but
> int i, li_rtn
>
> lds_pgm_but = create datastore
> lds_pgm_but.dataobject = "d_pgm_but"
> lds_pgm_but.SetTransObject(it_sql)
> lds_pgm_but.retrieve(as_pgm_id)
>
> IF it_sql.SQLCode = 0 THEN
> FOR i = 1 to lds_pgm_but.RowCount()
> as_func_cd[i] = lds_pgm_but.GetItemString(i, "func_cd")
> as_sc_key[i] = lds_pgm_but.GetItemString(i, "sc_key")
> NEXT
> li_rtn = 1
> ELSE
> li_rtn = -1
> END IF
> destroy lds_pgm_but
> return li_rtn
> ***************************************************
> Extract the tail of Appeon Server log
> ***************************************************
> 1151900510305:3 [06-07-03 12:21:50.305]
> [com.appeon.server.sessionmanage.Sessions (getSession)]
> sessionName1=1167145416
> 1151900510305:3 [06-07-03 12:21:50.305]
> [com.appeon.server.sessionmanage.Sessions (getSession)]
> sessionName1=1167145416
> 1151900510305:3 [06-07-03 12:21:50.305]
> [com.appeon.server.sessionmanage.Sessions (getSession)]
> sessionName1=1167145416
> 1151900510305:2 [06-07-03 12:21:50.305]
> [com.appeon.server.sessionmanage.SessionAccessInfo
> (getComponent)] Get component in the current session.
> Component name=1894890619. 1151900510305:3 [06-07-03
> 12:21:50.305] [com.appeon.server.sessionmanage.Sessions
> (getSession)] sessionName1=1167145416
> 1151900510305:3 [06-07-03 12:21:50.305]
> [com.appeon.server.services.controller.JRouterImpl (call)]
> command=com.appeon.server.command.CallNvoCommandData[
> 1151900510305:3 [06-07-03 12:21:50.305]
> packageName=Pkg_exe_common, 1151900510305:3 [06-07-03
> 12:21:50.305] name=nvo_jag, 1151900510305:3 [06-07-03
> 12:21:50.305] methodName=uf_setscnlbl, 1151900510305:3
> [06-07-03 12:21:50.305] handler=1894890619,
> 1151900510305:3 [06-07-03 12:21:50.305] dbType=null,
> 1151900510305:3 [06-07-03 12:21:50.305]
> commitProperty=null, 1151900510305:3 [06-07-03
> 12:21:50.305] parameters=[DataParameterInfo[name=,
> dataType=1, jdbcType=1111, inoutType=0, isNull=false,
> isArray=false, value=PRC300], DataParameterInfo[name=,
> dataType=1, jdbcType=1111, inoutType=0, isNull=false,
> isArray=false, value=br_t], DataParameterInfo[name=,
> dataType=3, jdbcType=1111, inoutType=0, isNull=false,
> isArray=false, value=1]], 1151900510305:3 [06-07-03
> 12:21:50.305] pbTransObject=PBTransaction[name=null,
> cacheName=null,driverID=-1, autoCommitMode=0,
> commitOnDisconnect=false, dbType=null], 1151900510305:3
> [06-07-03 12:21:50.305] isInChainedMode=false,
> 1151900510305:3 [06-07-03 12:21:50.305]
> cachedResultKey=null, 1151900510305:3 [06-07-03
> 12:21:50.305] isAsynchronous=false, 1151900510305:3
> [06-07-03 12:21:50.305] flag=-94, 1151900510305:3
> [06-07-03 12:21:50.305] clientType=1, 1151900510305:3
> [06-07-03 12:21:50.305] logId=null, 1151900510305:3
> [06-07-03 12:21:50.305] isNeedSession=true,
> 1151900510305:3 [06-07-03 12:21:50.305]
> applicationName=prc300, 1151900510305:3 [06-07-03
> 12:21:50.305] sessionId=1167145416, 1151900510305:3
> [06-07-03 12:21:50.305] clientContext={rStream=1537151643
> , encoding=UTF-16LE, return_pt=[I@11803fb,
> inputencoding=UTF-16LE,
> counter=com.appeon.util.Counter@1ad8690, pt=[I@15d7792,
> rIP=127.0.0.1, server_flag=[B@1a17727, rUser=null,
> testdata_session=com.sybase.jaguar.servlet.JagHttpSession@
> 10a94c5}, 1151900510305:3 [06-07-03 12:21:50.305]
> commandDataId=null, 1151900510305:3 [06-07-03
> 12:21:50.305] list=null] 1151900510305:3 [06-07-03
> 12:21:50.305] [com.appeon.server.sessionmanage.Sessions
> (getSession)] sessionName1=1167145416
> 1151900510305:3 [06-07-03 12:21:50.305]
> [com.appeon.server.services.controller.JRouterImpl
> (call-Before execute)] Execute command.execute()
> 1151900510305:3 [06-07-03 12:21:50.305]
> [com.appeon.server.sessionmanage.Sessions (getSession)]
> sessionName1=1167145416
> 1151900510321:2 [06-07-03 12:21:50.321]
> [com.appeon.server.sessionmanage.SessionAccessInfo
> (getComponent)] Get component in the current session.
> Component name=1894890619. 1151900510321:2 [06-07-03
> 12:21:50.321]
> [com.appeon.server.services.transactionservice.Transaction
> ServiceImpl (executeNvoComponent())] start:[type =1,
> applicationName=prc300,sessionId=1167145416
> ,handler=1894890619,packageName=P kg_exe_common
> ,componentName=nvo_jag,methodName=uf_setscnlbl
> ,parameters=[Data ParameterInfo[name=, dataType=1,
> jdbcType=1111, inoutType=0, isNull=false, isArray=false,
> value=PRC300], DataParameterInfo[name=, dataType=1,
> jdbcType=1111, inoutType=0, isNull=false, isArray=false,
> value=br_t], DataParameterInfo[name=, dataType=3,
> jdbcType=1111, inoutType=0, isNull=false, isArray=false,
> value=1]]] 1151900510321:3 [06-07-03 12:21:50.321]
> [com.appeon.server.sessionmanage.Sessions (getSession)]
> sessionName1=1167145416
> 1151900510321:2 [06-07-03 12:21:50.321]
> [com.appeon.server.sessionmanage.SessionAccessInfo
> (getComponent)] Get component in the current session.
> Component name=1894890619. 1151900510321:3 [06-07-03
> 12:21:50.321]
> [com.appeon.server.services.transactionservice.Transaction
> ServiceImpl (executeNvoComponent(): convert parameters)]
> parameters=[DataParameterInfo[name=, dataType=1,
> jdbcType=1111, inoutType=0, isNull=false, isArray=false,
> value=PRC300], DataParameterInfo[name=, dataType=1,
> jdbcType=1111, inoutType=0, isNull=false, isArray=false,
> value=br_t], DataParameterInfo[name=, dataType=3,
> jdbcType=1111, inoutType=0, isNull=false, isArray=false,
> value=1]] 1151900510462:3 [06-07-03 12:21:50.462]
> [com.appeon.server.services.transactionservice.Transaction
> ServiceImpl (executeNvoComponent():)] retrueValue =
> [B@15538e5 1151900510462:3 [06-07-03 12:21:50.462]
> [com.appeon.server.parser.SerializeReturnObject
> (SerializeObject(ReturnObject returnObject))] ReturnObject
> [ Code=0, Message=, Exception=, ReturnValue=Class name is
> : com.appeon.server.value.CallNvoReturn
> 1151900510462:3 [06-07-03 12:21:50.462] Properties is:
> 1151900510462:3 [06-07-03 12:21:50.462] isVoid : false
> 1151900510462:3 [06-07-03 12:21:50.462] value :
> [B@15538e5 1151900510462:3 [06-07-03 12:21:50.462]
> type : 16 1151900510462:3 [06-07-03 12:21:50.462]
> javaType : class [B 1151900510462:3 [06-07-03
> 12:21:50.462] applicationName : null 1151900510462:3
> [06-07-03 12:21:50.462] businessErrorInfo :
> 1151900510462:3 [06-07-03 12:21:50.462]
> businessErrorInfoCode : 0 1151900510462:3 [06-07-03
> 12:21:50.462] ] 1151900510462:3 [06-07-03 12:21:50.462]
> [com.appeon.server.parser.SerializeReturnObject
> (SerializeObject)] Total writed bytes=56
> 1151900510477:3 [06-07-03 12:21:50.477]
> [com.appeon.server.services.controller.JRouterImpl
> (call-After execute)] After execute command.execute()
> 1151900510477:3 [06-07-03 12:21:50.477]
> [appeon.weblibrary.AXDispatcher (doPost)]
> 1151900510477:3 [06-07-03 12:21:50.477]
> =======================INVOKE
> FINISHED==========================================
> 1151900510477:3 [06-07-03 12:21:50.477] Input time < 15ms;
> Process and output time = 172ms; Total time = 172ms.
> 1151900510477:3 [06-07-03 12:21:50.477]
> ==========================================================
> ================== ====
>
> 1151900510493:3 [06-07-03 12:21:50.493]
> [com.appeon.server.sessionmanage.Sessions (getSession)]
> sessionName1=1167145416
> 1151900510493:3 [06-07-03 12:21:50.493]
> [com.appeon.server.sessionmanage.Sessions (getSession)]
> sessionName1=1167145416
> 1151900510493:3 [06-07-03 12:21:50.493]
> [com.appeon.server.sessionmanage.Sessions (getSession)]
> sessionName1=1167145416
> 1151900510493:2 [06-07-03 12:21:50.493]
> [com.appeon.server.sessionmanage.SessionAccessInfo
> (getComponent)] Get component in the current session.
> Component name=1894890619. 1151900516540:3 [06-07-03
> 12:21:56.540] [com.appeon.server.sessionmanage.Sessions
> (getSession)] sessionName1=1167145416
> 1151900516540:3 [06-07-03 12:21:56.540]
> [com.appeon.server.sessionmanage.Sessions (getSession)]
> sessionName1=1167145416
> 1151900516540:3 [06-07-03 12:21:56.540]
> [com.appeon.server.services.controller.JRouterImpl (call)]
> command=com.appeon.server.command.DisconnectServerCommandD
> ata[ 1151900516540:3 [06-07-03 12:21:56.540]
> serverHandle=1338426891, 1151900516540:3 [06-07-03
> 12:21:56.540] isInChainedMode=false, 1151900516540:3
> [06-07-03 12:21:56.540] cachedResultKey=null,
> 1151900516540:3 [06-07-03 12:21:56.540]
> isAsynchronous=false, 1151900516540:3 [06-07-03
> 12:21:56.540] flag=-89, 1151900516540:3 [06-07-03
> 12:21:56.540] clientType=1, 1151900516540:3 [06-07-03
> 12:21:56.540] logId=null, 1151900516540:3 [06-07-03
> 12:21:56.540] isNeedSession=true, 1151900516540:3
> [06-07-03 12:21:56.540] applicationName=prc300,
> 1151900516540:3 [06-07-03 12:21:56.540]
> sessionId=1167145416, 1151900516540:3 [06-07-03
> 12:21:56.540] clientContext={rStream=1555062237,
> encoding=UTF-16LE, return_pt=[I@a765c,
> inputencoding=UTF-16LE,
> counter=com.appeon.util.Counter@e0b1d6, pt=[I@1bb6976,
> rIP=127.0.0.1, server_flag=[B@1a17727, rUser=null,
> testdata_session=com.sybase.jaguar.servlet.JagHttpSession@
> 10a94c5}, 1151900516540:3 [06-07-03 12:21:56.540]
> commandDataId=null, 1151900516540:3 [06-07-03
> 12:21:56.540] list=null] 1151900516540:3 [06-07-03
> 12:21:56.540] [com.appeon.server.sessionmanage.Sessions
> (getSession)] sessionName1=1167145416
> 1151900516540:3 [06-07-03 12:21:56.540]
> [com.appeon.server.services.controller.JRouterImpl
> (call-Before execute)] Execute command.execute()
> 1151900516540:3 [06-07-03 12:21:56.540]
> [com.appeon.server.sessionmanage.Sessions (getSession)]
> sessionName1=1167145416
> 1151900516540:2 [06-07-03 12:21:56.540]
> [com.appeon.server.sessionmanage.SessionAccessInfo
> (destroyInstance)] Destroy instance. Instance
> name=1338426891. 1151900516540:3 [06-07-03 12:21:56.540]
> [com.appeon.server.parser.SerializeReturnObject
> (SerializeObject(ReturnObject returnObject))] ReturnObject
> [ Code=0, Message=, Exception=, ReturnValue=null ]
> 1151900516540:3 [06-07-03 12:21:56.540]
> [com.appeon.server.parser.SerializeReturnObject
> (SerializeObject)] Total writed bytes=33
> 1151900516540:3 [06-07-03 12:21:56.540]
> [com.appeon.server.services.controller.JRouterImpl
> (call-After execute)] After execute command.execute()
> 1151900516540:3 [06-07-03 12:21:56.540]
> [com.appeon.server.sessionmanage.Sessions (getSession)]
> sessionName1=1167145416
> 1151900516540:3 [06-07-03 12:21:56.540]
> [appeon.weblibrary.AXDispatcher (doPost)]
> 1151900516540:3 [06-07-03 12:21:56.540]
> =======================INVOKE
> FINISHED==========================================
> 1151900516540:3 [06-07-03 12:21:56.540] Input time < 15ms;
> Process and output time < 15ms; Total time < 15ms.
> 1151900516540:3 [06-07-03 12:21:56.540]
> ==========================================================
> ================== ====
>
>
>
>
>