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.

TabularResultset and CORBA

2 posts in General Discussion (old) Last posting was on 2000-03-21 21:14:25.0Z
Phil Marchello Posted on 2000-03-21 20:09:16.0Z
Newsgroups: sybase.public.easerver
From: "Phil Marchello" <pmarchello@noblestar.com>
Subject: TabularResultset and CORBA
Date: Tue, 21 Mar 2000 15:09:16 -0500
Lines: 37
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
NNTP-Posting-Host: 206.138.153.250
Message-ID: <347_hPHEMC3k$GA.201@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:25982
Article PK: 155996

From a Jaguar component, I'm trying to call a method in a remote ORB
(Visibroker) and pass a Jaguar TabularResultset as a param. I copied the
necessary TabularResultSet IDL from Jaguar and the necessary class files to
my visi server, generated the stubs and skeletons, compiled. I
generated/compiled the stubs on the Jaguar side.

I started the visi server. I can successfully invoke methods on my visi
server that do not include the tabularresultset param. When I try to call a
method that does include the tabularresultset parm, I get a
org.omg.CORBA.MARSHAL exception. When I look in the Jaguar log file, I see:

Mar 21 12:43:34 2000: org.omg.CORBA.MARSHAL:
java.io.NotSerializableException: TabularResults.ResultSet
Mar 21 12:43:34 2000: at
com.sybase.CORBA.ObjectVal.writeObject(ObjectVal.java:58)
Mar 21 12:43:34 2000: at bank3._st_Account.m1(_st_Account.java:65)
Mar 21 12:43:34 2000: at
com.gtms.testtool.componenttesterImpl.observerTest(componenttesterImpl.java:
213)
Mar 21 12:43:34 2000: at
com.gtms.testtool._sk_testtool_GTMSComponentTester.invoke(_sk_testtool_GTMSC
omponentTester.java:46)
Mar 21 12:43:34 2000: System exception 'MARSHAL' thrown by component
'testtool/GTMSComponentTester' method 'observerTest'


This obviously implies that the java code in the TabularResultsSet package
is not serializable and cannot therefore be pushed across the IIOP
connection. However, how does a Powerbuilder datastore (resultset) get
converted to a TabularResultSet when sent to Jaguar??? Is there something
I'm missing?
Thanks.

-Phil


Evan Ireland Posted on 2000-03-21 21:14:25.0Z
Newsgroups: sybase.public.easerver
Date: Wed, 22 Mar 2000 09:14:25 +1200
From: Evan Ireland <eireland@sybase.com>
Organization: Sybase, Inc.
X-Mailer: Mozilla 4.7 [en] (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
To: Phil Marchello <pmarchello@noblestar.com>
Subject: Re: TabularResultset and CORBA
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 57
NNTP-Posting-Host: vpn-eme-096.sybase.com 130.214.8.96
Message-ID: <347_38D7E631.42B4485D@sybase.com>
References: <347_hPHEMC3k$GA.201@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:25974
Article PK: 154367


Phil Marchello wrote:
>
> From a Jaguar component, I'm trying to call a method in a remote ORB
> (Visibroker) and pass a Jaguar TabularResultset as a param. I copied the
> necessary TabularResultSet IDL from Jaguar and the necessary class files to
> my visi server, generated the stubs and skeletons, compiled. I
> generated/compiled the stubs on the Jaguar side.

In the method properties dialog, check the parameter type. It should
show as "ResultSet" (or as TabularResults::ResultSet if you use the
Edit IDL option). If the parameter type shows as
TabularResults.ResultSet from Jaguar Manager, change it to
TabularResults::ResultSet and regenerate your stubs and skeletons.

> I started the visi server. I can successfully invoke methods on my visi
> server that do not include the tabularresultset param. When I try to call a
> method that does include the tabularresultset parm, I get a
> org.omg.CORBA.MARSHAL exception. When I look in the Jaguar log file, I see:
>
> Mar 21 12:43:34 2000: org.omg.CORBA.MARSHAL:
> java.io.NotSerializableException: TabularResults.ResultSet
> Mar 21 12:43:34 2000: at
> com.sybase.CORBA.ObjectVal.writeObject(ObjectVal.java:58)
> Mar 21 12:43:34 2000: at bank3._st_Account.m1(_st_Account.java:65)
> Mar 21 12:43:34 2000: at
> com.gtms.testtool.componenttesterImpl.observerTest(componenttesterImpl.java:
> 213)
> Mar 21 12:43:34 2000: at
> com.gtms.testtool._sk_testtool_GTMSComponentTester.invoke(_sk_testtool_GTMSC
> omponentTester.java:46)
> Mar 21 12:43:34 2000: System exception 'MARSHAL' thrown by component
> 'testtool/GTMSComponentTester' method 'observerTest'
>
> This obviously implies that the java code in the TabularResultsSet package
> is not serializable and cannot therefore be pushed across the IIOP
> connection. However, how does a Powerbuilder datastore (resultset) get
> converted to a TabularResultSet when sent to Jaguar??? Is there something
> I'm missing?
> Thanks.
>
> -Phil

--
________________________________________________________________________________

Evan Ireland Sybase EAServer Engineering eireland@sybase.com
Wellington, New Zealand +64 4 934-5856