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.

PB9.0.3#8511 and assignment of ANY[] into Java proxy[]

3 posts in EJB Client Last posting was on 2005-08-19 15:19:48.0Z
Bede <bede_nosp Posted on 2005-08-18 14:28:15.0Z
From: Bede <bede_nosp@m_sofico.be>
Newsgroups: sybase.public.powerbuilder.ejbclient
Subject: PB9.0.3#8511 and assignment of ANY[] into Java proxy[]
Message-ID: <MPG.1d6eb92431a189dd989743@forums.sybase.com>
Organization: Sofico
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-15"
Content-Transfer-Encoding: 7bit
User-Agent: MicroPlanet-Gravity/2.70.2067
X-Original-NNTP-Posting-Host: uu194-7-38-226.unknown.uunet.be
X-Original-Trace: 18 Aug 2005 07:28:10 -0700, uu194-7-38-226.unknown.uunet.be
Lines: 33
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 18 Aug 2005 07:28:12 -0700, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 18 Aug 2005 07:28:15 -0700
X-Trace: forums-1-dub 1124375295 10.22.108.75 (18 Aug 2005 07:28:15 -0700)
X-Original-Trace: 18 Aug 2005 07:28:15 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:560
Article PK: 424692

Hi all,

I've noticed that with this build, assigning an array of java objects
stored as ANY[] to another array of java objects (of the same/correct
type) no longer works.. assigning each element one by one is the
workaround.

Example: used to work, but causes PB to crash in PB9.0.3#8511

Any la_sysRepAttribute[]
java_sysrepattributedata anv_sysRepAttribute[], lnv_castAttributes[]

// This used to work (up to PB9.0.3 maintenance release)
la_sysRepAttribute[] = ids_theAttributes.inv_javasrv.of_getRows(ll_rows)
anv_sysRepAttribute = la_sysRepAttribute


// This is the workaround for PB9.0.3#8511 onwards
la_sysRepAttribute[] = ids_theAttributes.inv_javasrv.of_getRows(ll_rows)
// Check & transfer one by one
ll_count = UpperBound(la_sysRepAttribute)
For i= 1 To ll_count
lnv_castAttributes[i] = la_sysRepAttribute[i]
Next
// Set as result
anv_sysRepAttribute = lnv_castAttributes


Could anyone also check this, before i submit this as hidden feature?

Thanks,

Ben


Bede <bede_nosp Posted on 2005-08-18 15:03:27.0Z
From: Bede <bede_nosp@m_sofico.be>
Newsgroups: sybase.public.powerbuilder.ejbclient
Subject: Re: PB9.0.3#8511 and assignment of ANY[] into Java proxy[]
Message-ID: <MPG.1d6ec1a2679edc4989744@forums.sybase.com>
References: <MPG.1d6eb92431a189dd989743@forums.sybase.com>
Organization: Sofico
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-15"
Content-Transfer-Encoding: 7bit
User-Agent: MicroPlanet-Gravity/2.70.2067
X-Original-NNTP-Posting-Host: uu194-7-38-226.unknown.uunet.be
X-Original-Trace: 18 Aug 2005 08:03:24 -0700, uu194-7-38-226.unknown.uunet.be
Lines: 92
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 18 Aug 2005 08:03:26 -0700, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 18 Aug 2005 08:03:27 -0700
X-Trace: forums-1-dub 1124377407 10.22.108.75 (18 Aug 2005 08:03:27 -0700)
X-Original-Trace: 18 Aug 2005 08:03:27 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:561
Article PK: 424693

after a quick test it seems that this is the case for all datatypes
which aren't native! The problem is way bigger than i thot.

Ben


ANY la_value[], la_reset[]
String ls_value[], ls_target[]
n_selectparms lnv_value[], lnv_target[]
str_conditionitem lstr_condItem[], lstr_target[]
java_contactData lnv_contact[], lnv_targetContact[]

// 1. Strings
ls_value = {"one", "two", "three"}
la_value = ls_value
ls_target = la_value
// Reset
la_value[] = la_reset[]

// 2. Nonvisuals
lnv_value[1] = create n_selectparms
lnv_value[1].ib_multiselect = True
lnv_value[1].il_objectid = 1
lnv_value[1].il_originalselection = {1, 2, 3}
lnv_value[1].il_sysrepobjectid = 1
la_value = lnv_value
lnv_target = la_value
// Reset
la_value[] = la_reset[]

// 3. Structures
lstr_condItem[1].bracketsclose = "("
lstr_condItem[1].bracketsopen = ")"
lstr_condItem[1].conditionoperator = "="
lstr_condItem[1].conditionsequencenr = 1
lstr_condItem[1].conditionvalue = "test"
lstr_condItem[1].logicaloperator = "OR"
lstr_condItem[1].name = "Or Equals 'test' "
la_value = lstr_condItem
lstr_target = la_value
// Reset
la_value[] = la_reset[]

// 4. java proxies
gnv_app.of_getconnection().createjavainstance(lnv_contact[1],
"java_contactData")
lnv_contact[1].employeenumber = "1234543543"
lnv_contact[1].identification = "Joe Malone"
lnv_contact[1].jobtitle = "Senior Junior"
la_value = lnv_contact
lstr_target = la_value
// Reset
lnv_targetContact[] = la_reset[]



In article <MPG.1d6eb92431a189dd989743@forums.sybase.com>,
bede_nosp@m_sofico.be says...

> Hi all,
>
> I've noticed that with this build, assigning an array of java objects
> stored as ANY[] to another array of java objects (of the same/correct
> type) no longer works.. assigning each element one by one is the
> workaround.
>
> Example: used to work, but causes PB to crash in PB9.0.3#8511
>
> Any la_sysRepAttribute[]
> java_sysrepattributedata anv_sysRepAttribute[], lnv_castAttributes[]
>
> // This used to work (up to PB9.0.3 maintenance release)
> la_sysRepAttribute[] = ids_theAttributes.inv_javasrv.of_getRows(ll_rows)
> anv_sysRepAttribute = la_sysRepAttribute
>
>
> // This is the workaround for PB9.0.3#8511 onwards
> la_sysRepAttribute[] = ids_theAttributes.inv_javasrv.of_getRows(ll_rows)
> // Check & transfer one by one
> ll_count = UpperBound(la_sysRepAttribute)
> For i= 1 To ll_count
> lnv_castAttributes[i] = la_sysRepAttribute[i]
> Next
> // Set as result
> anv_sysRepAttribute = lnv_castAttributes
>
>
> Could anyone also check this, before i submit this as hidden feature?
>
> Thanks,
>
> Ben
>


Bede <bede_nosp Posted on 2005-08-19 15:19:48.0Z
From: Bede <bede_nosp@m_sofico.be>
Newsgroups: sybase.public.powerbuilder.ejbclient
Subject: Re: PB9.0.3#8511 and assignment of ANY[] into Java proxy[]
Message-ID: <MPG.1d7016fe739770db989747@forums.sybase.com>
References: <MPG.1d6eb92431a189dd989743@forums.sybase.com> <MPG.1d6ec1a2679edc4989744@forums.sybase.com>
Organization: Sofico
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-15"
Content-Transfer-Encoding: 7bit
User-Agent: MicroPlanet-Gravity/2.70.2067
NNTP-Posting-Host: uu194-7-38-226.unknown.uunet.be
X-Original-NNTP-Posting-Host: uu194-7-38-226.unknown.uunet.be
Date: 19 Aug 2005 08:19:48 -0700
X-Trace: forums-1-dub 1124464788 194.7.38.226 (19 Aug 2005 08:19:48 -0700)
X-Original-Trace: 19 Aug 2005 08:19:48 -0700, uu194-7-38-226.unknown.uunet.be
Lines: 98
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:562
Article PK: 424694

Case 11162306 is alive!


In article <MPG.1d6ec1a2679edc4989744@forums.sybase.com>,
bede_nosp@m_sofico.be says...

> after a quick test it seems that this is the case for all datatypes
> which aren't native! The problem is way bigger than i thot.
>
> Ben
>
>
> ANY la_value[], la_reset[]
> String ls_value[], ls_target[]
> n_selectparms lnv_value[], lnv_target[]
> str_conditionitem lstr_condItem[], lstr_target[]
> java_contactData lnv_contact[], lnv_targetContact[]
>
> // 1. Strings
> ls_value = {"one", "two", "three"}
> la_value = ls_value
> ls_target = la_value
> // Reset
> la_value[] = la_reset[]
>
> // 2. Nonvisuals
> lnv_value[1] = create n_selectparms
> lnv_value[1].ib_multiselect = True
> lnv_value[1].il_objectid = 1
> lnv_value[1].il_originalselection = {1, 2, 3}
> lnv_value[1].il_sysrepobjectid = 1
> la_value = lnv_value
> lnv_target = la_value
> // Reset
> la_value[] = la_reset[]
>
> // 3. Structures
> lstr_condItem[1].bracketsclose = "("
> lstr_condItem[1].bracketsopen = ")"
> lstr_condItem[1].conditionoperator = "="
> lstr_condItem[1].conditionsequencenr = 1
> lstr_condItem[1].conditionvalue = "test"
> lstr_condItem[1].logicaloperator = "OR"
> lstr_condItem[1].name = "Or Equals 'test' "
> la_value = lstr_condItem
> lstr_target = la_value
> // Reset
> la_value[] = la_reset[]
>
> // 4. java proxies
> gnv_app.of_getconnection().createjavainstance(lnv_contact[1],
> "java_contactData")
> lnv_contact[1].employeenumber = "1234543543"
> lnv_contact[1].identification = "Joe Malone"
> lnv_contact[1].jobtitle = "Senior Junior"
> la_value = lnv_contact
> lstr_target = la_value
> // Reset
> lnv_targetContact[] = la_reset[]
>
>
>
> In article <MPG.1d6eb92431a189dd989743@forums.sybase.com>,
> bede_nosp@m_sofico.be says...
> > Hi all,
> >
> > I've noticed that with this build, assigning an array of java objects
> > stored as ANY[] to another array of java objects (of the same/correct
> > type) no longer works.. assigning each element one by one is the
> > workaround.
> >
> > Example: used to work, but causes PB to crash in PB9.0.3#8511
> >
> > Any la_sysRepAttribute[]
> > java_sysrepattributedata anv_sysRepAttribute[], lnv_castAttributes[]
> >
> > // This used to work (up to PB9.0.3 maintenance release)
> > la_sysRepAttribute[] = ids_theAttributes.inv_javasrv.of_getRows(ll_rows)
> > anv_sysRepAttribute = la_sysRepAttribute
> >
> >
> > // This is the workaround for PB9.0.3#8511 onwards
> > la_sysRepAttribute[] = ids_theAttributes.inv_javasrv.of_getRows(ll_rows)
> > // Check & transfer one by one
> > ll_count = UpperBound(la_sysRepAttribute)
> > For i= 1 To ll_count
> > lnv_castAttributes[i] = la_sysRepAttribute[i]
> > Next
> > // Set as result
> > anv_sysRepAttribute = lnv_castAttributes
> >
> >
> > Could anyone also check this, before i submit this as hidden feature?
> >
> > Thanks,
> >
> > Ben
> >
>