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.

prepend package name has side effects?

4 posts in General Discussion (old) Last posting was on 2000-03-15 17:19:54.0Z
Peter Reedijk Posted on 2000-03-14 08:14:52.0Z
Newsgroups: sybase.public.easerver
From: "Peter Reedijk" <peter.reedijk@pica.nl>
Organization: 192.87.44.61
X-Newsreader: AspNNTP 1.41 (Advent 2000, Inc.)
Subject: prepend package name has side effects?
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Date: Tue, 14 Mar 2000 03:14:52 -0500
Lines: 26
NNTP-Posting-Host: 207.156.232.4
Message-ID: <347_enEuf1Yj$GA.202@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:26472
Article PK: 157486

Hi all,

In our PowerBuilder proxies of Jaguar components (also built in PB) we have used
the option 'prepend Jaguar package name'. Now all proxies of components and the
structures that belong to their interface are prefixed with the package name
once (or twice, if remote references are passed between components).

Suddenly all kinds of errors have come up in intercomponent calls. F.i. when
component A wants to call a method of component B (both shared components in the
same package), the CreateInstance() gives no error but the subsequent function
call gives a CORBA_INTERNAL or CORBA_BAD_OPERATION:

// code from component A
package_componentB lnv_B
package_structureB lstr_B
long l

l = transactionserver.CreateInstance(lnv_B, "package/componentB")
IF l = 0 THEN
lnv_B.methodB(lstr_B)
END IF

Can this in any way be caused by using package names in our proxies?

TIA,
Peter
---== Posted via the PFCGuide Web Newsreader ==---
http://www.pfcguide.com/_newsgroups/group_list.asp


Carson Hager[Team Sybase] Posted on 2000-03-15 02:51:02.0Z
Newsgroups: sybase.public.easerver
From: chager@dyn-data.com (Carson Hager[Team Sybase])
Subject: Re: prepend package name has side effects?
Date: Wed, 15 Mar 2000 02:51:02 GMT
Organization: Dynamic Data Solutions, Inc.
X-Newsreader: Forte Free Agent 1.21/32.243
Lines: 62
NNTP-Posting-Host: charon.lifescape.com 63.86.26.130
Message-ID: <347_38cefa11.121622704@forums.sybase.com>
References: <347_enEuf1Yj$GA.202@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:26407
Article PK: 157078

I would seriously doubt it. The only effect that prepending the
package name has is that you must use the fully qualified version of
CreateInstance() like you are doing. Check srv.log for more details
on the error.

As a note, BAD_OPERATION generally means that you are calling a method
that does not exist on the implementation of the component.
CORBA_INTERNAL with PB components means that you have GPFed the PBVM
inside of EAServer.

Make sure that you are referencing the correct component by its string
name in your CreateInstance call.


Carson

___________________________________________________________

Carson Hager
Team Sybase
Dynamic Data Solutions, Inc.
Enterprise Application Studio 3.0 Consulting and Training
http://www.dyn-data.com

DDS is now hiring EAServer consultants
to support its exploding EAServer business!
Please submit your resume to
hr@dyn-data.com!


On Tue, 14 Mar 2000 03:14:52 -0500, "Peter Reedijk"

<peter.reedijk@pica.nl> wrote:

>Hi all,
>
>In our PowerBuilder proxies of Jaguar components (also built in PB) we have used
>the option 'prepend Jaguar package name'. Now all proxies of components and the
>structures that belong to their interface are prefixed with the package name
>once (or twice, if remote references are passed between components).
>
>Suddenly all kinds of errors have come up in intercomponent calls. F.i. when
>component A wants to call a method of component B (both shared components in the
>same package), the CreateInstance() gives no error but the subsequent function
>call gives a CORBA_INTERNAL or CORBA_BAD_OPERATION:
>
>// code from component A
>package_componentB lnv_B
>package_structureB lstr_B
>long l
>
>l = transactionserver.CreateInstance(lnv_B, "package/componentB")
>IF l = 0 THEN
> lnv_B.methodB(lstr_B)
>END IF
>
>Can this in any way be caused by using package names in our proxies?
>
>TIA,
>Peter
>---== Posted via the PFCGuide Web Newsreader ==---
>http://www.pfcguide.com/_newsgroups/group_list.asp

___________________________________________________________

Carson Hager
Team Sybase
Dynamic Data Solutions, Inc.
Enterprise Application Studio 3.0 Consulting and Training

DDS Enterprise Application Framework
Available Now as Open Source!
http://www.dyn-data.com


Peter Reedijk Posted on 2000-03-15 08:08:26.0Z
Newsgroups: sybase.public.easerver
From: "Peter Reedijk" <peter.reedijk@pica.nl>
Organization: 192.87.44.61
X-Newsreader: AspNNTP 1.41 (Advent 2000, Inc.)
Subject: Re: prepend package name has side effects?
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Date: Wed, 15 Mar 2000 03:08:26 -0500
Lines: 94
NNTP-Posting-Host: 207.156.232.4
Message-ID: <347_N08ujWlj$GA.261@forums.sybase.com>
References: <347_enEuf1Yj$GA.202@forums.sybase.com> <347_38cefa11.121622704@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:26393
Article PK: 157063

Thanks, Carson, for your ideas and notes. Meanwhile, we have redesigned a little
bit, which seems to have 'fixed it all'. In our architecture, some (remote)
component references and structures were passed on between several objects,
leading to 'multi level' prefixes of the package names in the proxies, like
package_package_structure for a structure that is passed from A, via B to C. I
don't know whether or not this puzzles the PBVM, but at least it confused me :)

Anyway, by not passing the structure immediately but copying it element by
element, like this:

// code from component B, that obtains a struct from A and passes it to C
structure lstr
package_structure lstr_proxy

lstr.element1 = lstr_proxy.element1
lstr.element2 = lstr_proxy.element2
etc.

The 'double package names' disappeared from our proxies and our app started
working again. Still not sure what was originally wrong, but we're out of
trouble now, I hope...

Peter

On Wed, 15 Mar 2000 02:51:02 GMT,
in powersoft.public.easerver

Carson Hager[Team Sybase] <chager@dyn-data.com> wrote:
>I would seriously doubt it. The only effect that prepending the
>package name has is that you must use the fully qualified version of
>CreateInstance() like you are doing. Check srv.log for more details
>on the error.
>
>As a note, BAD_OPERATION generally means that you are calling a method
>that does not exist on the implementation of the component.
>CORBA_INTERNAL with PB components means that you have GPFed the PBVM
>inside of EAServer.
>
>Make sure that you are referencing the correct component by its string
>name in your CreateInstance call.
>
>
>Carson
>
>___________________________________________________________
>
>Carson Hager
>Team Sybase
>Dynamic Data Solutions, Inc.
>Enterprise Application Studio 3.0 Consulting and Training
>http://www.dyn-data.com
>
> DDS is now hiring EAServer consultants
> to support its exploding EAServer business!
> Please submit your resume to
> hr@dyn-data.com!
>
>
>On Tue, 14 Mar 2000 03:14:52 -0500, "Peter Reedijk"
><peter.reedijk@pica.nl> wrote:
>
>>Hi all,
>>
>>In our PowerBuilder proxies of Jaguar components (also built in PB) we have
used
>>the option 'prepend Jaguar package name'. Now all proxies of components and
the
>>structures that belong to their interface are prefixed with the package name
>>once (or twice, if remote references are passed between components).
>>
>>Suddenly all kinds of errors have come up in intercomponent calls. F.i. when
>>component A wants to call a method of component B (both shared components in
the
>>same package), the CreateInstance() gives no error but the subsequent function
>>call gives a CORBA_INTERNAL or CORBA_BAD_OPERATION:
>>
>>// code from component A
>>package_componentB lnv_B
>>package_structureB lstr_B
>>long l
>>
>>l = transactionserver.CreateInstance(lnv_B, "package/componentB")
>>IF l = 0 THEN
>> lnv_B.methodB(lstr_B)
>>END IF
>>
>>Can this in any way be caused by using package names in our proxies?
>>
>>TIA,
>>Peter
>>---== Posted via the PFCGuide Web Newsreader ==---
>>http://www.pfcguide.com/_newsgroups/group_list.asp
>
>
>___________________________________________________________
>
>Carson Hager
>Team Sybase
>Dynamic Data Solutions, Inc.
>Enterprise Application Studio 3.0 Consulting and Training
>
> DDS Enterprise Application Framework
> Available Now as Open Source!
> http://www.dyn-data.com
>

---== Posted via the PFCGuide Web Newsreader ==---
http://www.pfcguide.com/_newsgroups/group_list.asp


Carson Hager[Team Sybase] Posted on 2000-03-15 17:19:54.0Z
Newsgroups: sybase.public.easerver
From: chager@dyn-data.com (Carson Hager[Team Sybase])
Subject: Re: prepend package name has side effects?
Date: Wed, 15 Mar 2000 17:19:54 GMT
Organization: Dynamic Data Solutions, Inc.
X-Newsreader: Forte Free Agent 1.21/32.243
Lines: 121
NNTP-Posting-Host: charon.lifescape.com 63.86.26.130
Message-ID: <347_38cfc625.173866667@forums.sybase.com>
References: <347_enEuf1Yj$GA.202@forums.sybase.com> <347_38cefa11.121622704@forums.sybase.com> <347_N08ujWlj$GA.261@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:26362
Article PK: 157031

The problem of passing things like structures by reference twice has
been around for a while.


Carson

___________________________________________________________

Carson Hager
Team Sybase
Dynamic Data Solutions, Inc.
Enterprise Application Studio 3.0 Consulting and Training
http://www.dyn-data.com

DDS is now hiring EAServer consultants
to support its exploding EAServer business!
Please submit your resume to
hr@dyn-data.com!


On Wed, 15 Mar 2000 03:08:26 -0500, "Peter Reedijk"

<peter.reedijk@pica.nl> wrote:

>Thanks, Carson, for your ideas and notes. Meanwhile, we have redesigned a little
>bit, which seems to have 'fixed it all'. In our architecture, some (remote)
>component references and structures were passed on between several objects,
>leading to 'multi level' prefixes of the package names in the proxies, like
>package_package_structure for a structure that is passed from A, via B to C. I
>don't know whether or not this puzzles the PBVM, but at least it confused me :)
>
>Anyway, by not passing the structure immediately but copying it element by
>element, like this:
>
>// code from component B, that obtains a struct from A and passes it to C
>structure lstr
>package_structure lstr_proxy
>
>lstr.element1 = lstr_proxy.element1
>lstr.element2 = lstr_proxy.element2
>etc.
>
>The 'double package names' disappeared from our proxies and our app started
>working again. Still not sure what was originally wrong, but we're out of
>trouble now, I hope...
>
>Peter
>
>On Wed, 15 Mar 2000 02:51:02 GMT,
> in powersoft.public.easerver
>Carson Hager[Team Sybase] <chager@dyn-data.com> wrote:
>>I would seriously doubt it. The only effect that prepending the
>>package name has is that you must use the fully qualified version of
>>CreateInstance() like you are doing. Check srv.log for more details
>>on the error.
>>
>>As a note, BAD_OPERATION generally means that you are calling a method
>>that does not exist on the implementation of the component.
>>CORBA_INTERNAL with PB components means that you have GPFed the PBVM
>>inside of EAServer.
>>
>>Make sure that you are referencing the correct component by its string
>>name in your CreateInstance call.
>>
>>
>>Carson
>>
>>___________________________________________________________
>>
>>Carson Hager
>>Team Sybase
>>Dynamic Data Solutions, Inc.
>>Enterprise Application Studio 3.0 Consulting and Training
>>http://www.dyn-data.com
>>
>> DDS is now hiring EAServer consultants
>> to support its exploding EAServer business!
>> Please submit your resume to
>> hr@dyn-data.com!
>>
>>
>>On Tue, 14 Mar 2000 03:14:52 -0500, "Peter Reedijk"
>><peter.reedijk@pica.nl> wrote:
>>
>>>Hi all,
>>>
>>>In our PowerBuilder proxies of Jaguar components (also built in PB) we have
>used
>>>the option 'prepend Jaguar package name'. Now all proxies of components and
>the
>>>structures that belong to their interface are prefixed with the package name
>>>once (or twice, if remote references are passed between components).
>>>
>>>Suddenly all kinds of errors have come up in intercomponent calls. F.i. when
>>>component A wants to call a method of component B (both shared components in
>the
>>>same package), the CreateInstance() gives no error but the subsequent function
>>>call gives a CORBA_INTERNAL or CORBA_BAD_OPERATION:
>>>
>>>// code from component A
>>>package_componentB lnv_B
>>>package_structureB lstr_B
>>>long l
>>>
>>>l = transactionserver.CreateInstance(lnv_B, "package/componentB")
>>>IF l = 0 THEN
>>> lnv_B.methodB(lstr_B)
>>>END IF
>>>
>>>Can this in any way be caused by using package names in our proxies?
>>>
>>>TIA,
>>>Peter
>>>---== Posted via the PFCGuide Web Newsreader ==---
>>>http://www.pfcguide.com/_newsgroups/group_list.asp
>>
>>
>>___________________________________________________________
>>
>>Carson Hager
>>Team Sybase
>>Dynamic Data Solutions, Inc.
>>Enterprise Application Studio 3.0 Consulting and Training
>>
>> DDS Enterprise Application Framework
>> Available Now as Open Source!
>> http://www.dyn-data.com
>>
>
>---== Posted via the PFCGuide Web Newsreader ==---
>http://www.pfcguide.com/_newsgroups/group_list.asp

___________________________________________________________

Carson Hager
Team Sybase
Dynamic Data Solutions, Inc.
Enterprise Application Studio 3.0 Consulting and Training

DDS Enterprise Application Framework
Available Now as Open Source!
http://www.dyn-data.com