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.

NULL object reference

4 posts in General Discussion (old) Last posting was on 2000-02-25 21:27:51.0Z
Vladimir Uzlaner Posted on 2000-02-24 21:34:19.0Z
Newsgroups: sybase.public.easerver
From: "Vladimir Uzlaner" <vuzlaner@telsource.com>
Organization: 209.123.44.169
X-Newsreader: AspNNTP 1.41 (Advent 2000, Inc.)
Subject: NULL object reference
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Date: Thu, 24 Feb 2000 16:34:19 -0500
Lines: 27
NNTP-Posting-Host: 207.156.232.4
Message-ID: <347_tljko7wf$GA.251@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:27890
Article PK: 159589

Hi, all

I will very apptitiate if somebody can help me. I already two days try to get
rid of the next problem.

I can connect to Server, succesfully create remote instance of a component. I
can see method invocations and firing activate/ deactivate events, but when
clien application tries call function of this components, I getting error
message: NULL object reference, with no indicating name of objects etc.

But from debugging I can see it is happens on calling remote function.

I checked proxy object through the export file, all methods have the same
interfaces and aliases as component on the Jaguar.

I put this component in separate .pbl, deploy it in separate package. Nothing
work. It is stateless component that uses Transaction Object and embedded SQL.

Does anybody have such a problem. I already think about reinstallation the EAS.

Thank you,
Vladimir Uzlaner

P.S. My opinion is it's a flaw in Jaguar when remote instance of components is
created, but communication between it and proxy is failed.


Jim O'Neil [Sybase] Posted on 2000-02-25 04:12:51.0Z
Newsgroups: sybase.public.easerver
Date: Thu, 24 Feb 2000 23:12:51 -0500
From: "Jim O'Neil [Sybase]" <joneil@sybase.com>
Organization: Sybase, Inc.
X-Mailer: Mozilla 4.7 [en]C-CCK-MCD (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
Subject: Re: NULL object reference
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 41
NNTP-Posting-Host: nomad6-15.sybase.com 157.133.176.15
Message-ID: <347_38B60143.13F8ED94@sybase.com>
References: <347_tljko7wf$GA.251@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:27844
Article PK: 159550


Vladimir Uzlaner wrote:

> Hi, all
>
> I will very apptitiate if somebody can help me. I already two days try to get
> rid of the next problem.
>
> I can connect to Server, succesfully create remote instance of a component. I
> can see method invocations and firing activate/ deactivate events, but when
> clien application tries call function of this components, I getting error
> message: NULL object reference, with no indicating name of objects etc.
>
> But from debugging I can see it is happens on calling remote function.
>
> I checked proxy object through the export file, all methods have the same
> interfaces and aliases as component on the Jaguar.
>
> I put this component in separate .pbl, deploy it in separate package. Nothing
> work. It is stateless component that uses Transaction Object and embedded SQL.
>
> Does anybody have such a problem. I already think about reinstallation the EAS.
>
> Thank you,
> Vladimir Uzlaner
>
> P.S. My opinion is it's a flaw in Jaguar when remote instance of components is
> created, but communication between it and proxy is failed.

If you are seeing the component activated, then my guess is that the null object
reference is actually occurring within the component method. Make sure that
objects you may be referencing in the component are valid, for instance, if using
the TransactionServer or ErrorLogging objects make sure the call to
getContextService succeeds. You might be able to use remote debugging on the
component as well.
--
Jim O'Neil
Senior Technical Support Engineer
Sybase, Inc


Vladimir Uzlaner Posted on 2000-02-25 21:27:51.0Z
Newsgroups: sybase.public.easerver
From: "Vladimir Uzlaner" <vuzlaner@telsource.com>
Organization: 209.123.44.169
X-Newsreader: AspNNTP 1.41 (Advent 2000, Inc.)
Subject: Re: NULL object reference
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Date: Fri, 25 Feb 2000 16:27:51 -0500
Lines: 51
NNTP-Posting-Host: 207.156.232.4
Message-ID: <347_BgYqrc9f$GA.151@forums.sybase.com>
References: <347_tljko7wf$GA.251@forums.sybase.com> <347_38B60143.13F8ED94@sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:27776
Article PK: 159127

On Thu, 24 Feb 2000 23:12:51 -0500,
in powersoft.public.easerver

Jim O'Neil [Sybase] <joneil@sybase.com> wrote:
>Vladimir Uzlaner wrote:
>
>> Hi, all
>>
>> I will very apptitiate if somebody can help me. I already two days try to get
>> rid of the next problem.
>>
>> I can connect to Server, succesfully create remote instance of a component. I
>> can see method invocations and firing activate/ deactivate events, but when
>> clien application tries call function of this components, I getting error
>> message: NULL object reference, with no indicating name of objects etc.
>>
>> But from debugging I can see it is happens on calling remote function.
>>
>> I checked proxy object through the export file, all methods have the same
>> interfaces and aliases as component on the Jaguar.
>>
>> I put this component in separate .pbl, deploy it in separate package. Nothing
>> work. It is stateless component that uses Transaction Object and embedded
SQL.
>>
>> Does anybody have such a problem. I already think about reinstallation the
EAS.
>>
>> Thank you,
>> Vladimir Uzlaner
>>
>> P.S. My opinion is it's a flaw in Jaguar when remote instance of components
is
>> created, but communication between it and proxy is failed.
>
>If you are seeing the component activated, then my guess is that the null
object
>reference is actually occurring within the component method. Make sure that
>objects you may be referencing in the component are valid, for instance, if
using
>the TransactionServer or ErrorLogging objects make sure the call to
>getContextService succeeds. You might be able to use remote debugging on the
>component as well.
>--
>Jim O'Neil
>Senior Technical Support Engineer
>Sybase, Inc
>
>

Thank you, very much for help. I found the problem - transaction object was
created in contstructor event instead of activate event, so when component was
going to the Pool, it was loosing all instance variable and I was getting this
message.


Gilbert Posted on 2000-02-24 23:00:12.0Z
Newsgroups: sybase.public.easerver
From: "Gilbert" <tech@alvia.com>
Subject: Re: NULL object reference
Date: Fri, 25 Feb 2000 00:00:12 +0100
Lines: 33
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: 194.179.77.6
Message-ID: <347_NPDi1uxf$GA.201@forums.sybase.com>
References: <347_tljko7wf$GA.251@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:27858
Article PK: 159561

When you created the component did you check teh "allow NULL values in method parameter" ?
I had the same problem and I had to uncheck it.
A Jaguar expert can give better explanation.

Gilbert

Vladimir Uzlaner <vuzlaner@telsource.com> wrote in message news:tljko7wf$GA.251@forums.sybase.com...
> Hi, all
>
> I will very apptitiate if somebody can help me. I already two days try to get
> rid of the next problem.
>
> I can connect to Server, succesfully create remote instance of a component. I
> can see method invocations and firing activate/ deactivate events, but when
> clien application tries call function of this components, I getting error
> message: NULL object reference, with no indicating name of objects etc.
>
> But from debugging I can see it is happens on calling remote function.
>
> I checked proxy object through the export file, all methods have the same
> interfaces and aliases as component on the Jaguar.
>
> I put this component in separate .pbl, deploy it in separate package. Nothing
> work. It is stateless component that uses Transaction Object and embedded SQL.
>
> Does anybody have such a problem. I already think about reinstallation the EAS.
>
> Thank you,
> Vladimir Uzlaner
>
> P.S. My opinion is it's a flaw in Jaguar when remote instance of components is
> created, but communication between it and proxy is failed.