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.

Error calling method of a PBNI object

8 posts in EJB Client Last posting was on 2005-06-27 20:48:49.0Z
Jack Posted on 2005-06-17 00:41:48.0Z
Sender: 4ad9.42b21b06.1804289383@sybase.com
From: Jack
Newsgroups: sybase.public.powerbuilder.ejbclient
Subject: Error calling method of a PBNI object
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <42b21c49.4ae8.1681692777@sybase.com>
X-Original-NNTP-Posting-Host: 10.22.241.42
X-Original-Trace: 16 Jun 2005 17:41:46 -0700, 10.22.241.42
Lines: 32
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 16 Jun 2005 17:41:46 -0700, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 16 Jun 2005 17:41:48 -0700
X-Trace: forums-1-dub 1118968908 10.22.108.75 (16 Jun 2005 17:41:48 -0700)
X-Original-Trace: 16 Jun 2005 17:41:48 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:546
Article PK: 424676

I am getting "Error calling method of a PBNI object" when
executing the codes below. It triggers catch (Throwable
t2). It works when running the source code; it fails when
running the EXE on user's PC. Please Help....


I installed Java Runtime in
"C:\ProgramFiles\Sybase\Shared\PowerBuilder\jre"
and I have a path variable that points to that directory.

I think I have all the requred DLL/PDB/JAR files intalled in
"C:\ProgramFiles\Sybase\Shared\PowerBuilder". These
files include:

pbjvm90.dll
pbejbclient90.dll
pbejbclient90.pbd
pbejbclient90.jar




Try
gEJBConn = CREATE EJBConnection
li_return_jvm = gEJBConn.CreateJavaInstance
(gNCClientJava, "NCClient")

catch (Throwable t2)
li_return = -1
as_error_msg = t2.getMessage() + ". Contact I.S."
Return li_return
end try


Bruce Armstrong [TeamSybase] Posted on 2005-06-17 03:45:22.0Z
From: "Bruce Armstrong [TeamSybase]" <NOCANSPAM_bruce.armstrong@teamsybase.com>
Newsgroups: sybase.public.powerbuilder.ejbclient
Subject: Re: Error calling method of a PBNI object
Organization: TeamSybase
Reply-To: NOCANSPAM_bruce.armstrong@teamsybase.com
Message-ID: <9ph4b1p6gubq3h83s8bl9c5h3e4na73ri4@4ax.com>
References: <42b21c49.4ae8.1681692777@sybase.com>
X-Newsreader: Forte Agent 2.0/32.652
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 68-190-226-38.la-cbi.charterpipeline.net
X-Original-NNTP-Posting-Host: 68-190-226-38.la-cbi.charterpipeline.net
Date: 16 Jun 2005 20:45:22 -0700
X-Trace: forums-1-dub 1118979922 68.190.226.38 (16 Jun 2005 20:45:22 -0700)
X-Original-Trace: 16 Jun 2005 20:45:22 -0700, 68-190-226-38.la-cbi.charterpipeline.net
Lines: 48
X-Authenticated-User: TeamSybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:550
Article PK: 424681

Is that directory in the path? How does the deployed application know
to find the files there? Have you tried putting those files in the
same directory as the application?

On 16 Jun 2005 17:41:48 -0700, Jack wrote:

>I am getting "Error calling method of a PBNI object" when
>executing the codes below. It triggers catch (Throwable
>t2). It works when running the source code; it fails when
>running the EXE on user's PC. Please Help....
>
>
>I installed Java Runtime in
>"C:\ProgramFiles\Sybase\Shared\PowerBuilder\jre"
>and I have a path variable that points to that directory.
>
>I think I have all the requred DLL/PDB/JAR files intalled in
>"C:\ProgramFiles\Sybase\Shared\PowerBuilder". These
>files include:
>
>pbjvm90.dll
>pbejbclient90.dll
>pbejbclient90.pbd
>pbejbclient90.jar
>
>
>
>
>Try
> gEJBConn = CREATE EJBConnection
> li_return_jvm = gEJBConn.CreateJavaInstance
> (gNCClientJava, "NCClient")
>
>catch (Throwable t2)
> li_return = -1
> as_error_msg = t2.getMessage() + ". Contact I.S."
> Return li_return
>end try

Bruce Armstrong [TeamSybase]
http://www.teamsybase.com

June ISUG Techcast: PowerBuilder .NET Compiler In-Depth Review - June
7 & 9, 1:00 pm EDT
http://response.sybase.com/forms/JunISUGReg

Preach the gospel at all times. If necessary, use words. - Francis of Assisi
http://www.needhim.org


Jack Posted on 2005-06-17 14:25:28.0Z
Sender: 4ad9.42b21b06.1804289383@sybase.com
From: Jack
Newsgroups: sybase.public.powerbuilder.ejbclient
Subject: Re: Error calling method of a PBNI object
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <42b2dd56.5344.1681692777@sybase.com>
References: <9ph4b1p6gubq3h83s8bl9c5h3e4na73ri4@4ax.com>
X-Original-NNTP-Posting-Host: 10.22.241.42
X-Original-Trace: 17 Jun 2005 07:25:26 -0700, 10.22.241.42
Lines: 52
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 17 Jun 2005 07:25:27 -0700, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 17 Jun 2005 07:25:28 -0700
X-Trace: forums-1-dub 1119018328 10.22.108.75 (17 Jun 2005 07:25:28 -0700)
X-Original-Trace: 17 Jun 2005 07:25:28 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:552
Article PK: 424687

I did what you think I may miss. Please see my response to
Jim. Thanks.

> Is that directory in the path? How does the deployed
> application know to find the files there? Have you tried
> putting those files in the same directory as the
> application?
>
> On 16 Jun 2005 17:41:48 -0700, Jack wrote:
>
> >I am getting "Error calling method of a PBNI object" when
> >executing the codes below. It triggers catch (Throwable
> >t2). It works when running the source code; it fails
> when >running the EXE on user's PC. Please Help....
> >
> >
> >I installed Java Runtime in
> >"C:\ProgramFiles\Sybase\Shared\PowerBuilder\jre"
> >and I have a path variable that points to that directory.
> >
> >I think I have all the requred DLL/PDB/JAR files intalled
> in >"C:\ProgramFiles\Sybase\Shared\PowerBuilder". These
> >files include:
> >
> >pbjvm90.dll
> >pbejbclient90.dll
> >pbejbclient90.pbd
> >pbejbclient90.jar
> >
> >
> >
> >
> >Try
> > gEJBConn = CREATE EJBConnection
> > li_return_jvm = gEJBConn.CreateJavaInstance
> > (gNCClientJava, "NCClient")
> >
> >catch (Throwable t2)
> > li_return = -1
> > as_error_msg = t2.getMessage() + ". Contact I.S."
> > Return li_return
> >end try
>
> Bruce Armstrong [TeamSybase]
> http://www.teamsybase.com
>
> June ISUG Techcast: PowerBuilder .NET Compiler In-Depth
> Review - June 7 & 9, 1:00 pm EDT
> http://response.sybase.com/forms/JunISUGReg
>
> Preach the gospel at all times. If necessary, use words. -
> Francis of Assisi http://www.needhim.org


Jim O'Neil [Sybase] Posted on 2005-06-17 01:20:28.0Z
From: "Jim O'Neil [Sybase]" <joneil_at_sybase_dot_com>
Newsgroups: sybase.public.powerbuilder.ejbclient
Subject: Re: Error calling method of a PBNI object
Message-ID: <7894b11t8soogethscjsa447e80ecusd4f@4ax.com>
References: <42b21c49.4ae8.1681692777@sybase.com>
X-Newsreader: Forte Agent 2.0/32.652
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: vpn-concord-070.sybase.com
X-Original-NNTP-Posting-Host: vpn-concord-070.sybase.com
Date: 16 Jun 2005 18:20:28 -0700
X-Trace: forums-1-dub 1118971228 158.159.8.70 (16 Jun 2005 18:20:28 -0700)
X-Original-Trace: 16 Jun 2005 18:20:28 -0700, vpn-concord-070.sybase.com
Lines: 41
X-Authenticated-User: teamsybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:547
Article PK: 424682

I assume this is just part of the code, because I don't see a CREATE
JavaVM anywhere. Unless you put the JRE directory rooted in the same
directory as where PBJVM90.DLL is, you'll need to put the directory
containing jvm.dll on the path. In your case, you'd need to add
/bin/client or something like that to your path in the PATH variable.

On 16 Jun 2005 17:41:48 -0700, Jack wrote:

>I am getting "Error calling method of a PBNI object" when
>executing the codes below. It triggers catch (Throwable
>t2). It works when running the source code; it fails when
>running the EXE on user's PC. Please Help....
>
>
>I installed Java Runtime in
>"C:\ProgramFiles\Sybase\Shared\PowerBuilder\jre"
>and I have a path variable that points to that directory.
>
>I think I have all the requred DLL/PDB/JAR files intalled in
>"C:\ProgramFiles\Sybase\Shared\PowerBuilder". These
>files include:
>
>pbjvm90.dll
>pbejbclient90.dll
>pbejbclient90.pbd
>pbejbclient90.jar
>
>
>
>
>Try
> gEJBConn = CREATE EJBConnection
> li_return_jvm = gEJBConn.CreateJavaInstance
> (gNCClientJava, "NCClient")
>
>catch (Throwable t2)
> li_return = -1
> as_error_msg = t2.getMessage() + ". Contact I.S."
> Return li_return
>end try


Jack Posted on 2005-06-17 14:22:14.0Z
Sender: 4ad9.42b21b06.1804289383@sybase.com
From: Jack
Newsgroups: sybase.public.powerbuilder.ejbclient
Subject: Re: Error calling method of a PBNI object
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <42b2dc92.533a.1681692777@sybase.com>
References: <7894b11t8soogethscjsa447e80ecusd4f@4ax.com>
X-Original-NNTP-Posting-Host: 10.22.241.42
X-Original-Trace: 17 Jun 2005 07:22:10 -0700, 10.22.241.42
Lines: 70
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 17 Jun 2005 07:22:12 -0700, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 17 Jun 2005 07:22:14 -0700
X-Trace: forums-1-dub 1119018134 10.22.108.75 (17 Jun 2005 07:22:14 -0700)
X-Original-Trace: 17 Jun 2005 07:22:14 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:551
Article PK: 424683

1. My CREATE JavaVM code works (see the code) since the Try
Catch didn't catch any error.

Try
gJavaVM = CREATE JavaVM
li_return_jvm = gJavaVM.CreateJavaVM("", FALSE)
catch (CreateException ce)
....
catch (Throwable t1)
....
end try

2. Just like you suggested, my JRE (the actual directory
name is
also JRE) were installed in the same directory as where
PBJVM90.DLL is. For example, the directory
"c\....\powerbuilder" contains PBJVM90.DLL, I stalled Java
Runtime in
"c\....\powerbuilder\jre". I entered the JRE path in the
PATH
variable as well just to make sure.

By the way, if I change the PATH or CLASSPATH variable, do I
need to reboot the PC?

Any other suggestions? Thanks for the help. - Jack

> I assume this is just part of the code, because I don't
> see a CREATE JavaVM anywhere. Unless you put the JRE
> directory rooted in the same directory as where
> PBJVM90.DLL is, you'll need to put the directory
> containing jvm.dll on the path. In your case, you'd need
> to add /bin/client or something like that to your path in
> the PATH variable.
>
> On 16 Jun 2005 17:41:48 -0700, Jack wrote:
>
> >I am getting "Error calling method of a PBNI object" when
> >executing the codes below. It triggers catch (Throwable
> >t2). It works when running the source code; it fails
> when >running the EXE on user's PC. Please Help....
> >
> >
> >I installed Java Runtime in
> >"C:\ProgramFiles\Sybase\Shared\PowerBuilder\jre"
> >and I have a path variable that points to that directory.
> >
> >I think I have all the requred DLL/PDB/JAR files intalled
> in >"C:\ProgramFiles\Sybase\Shared\PowerBuilder". These
> >files include:
> >
> >pbjvm90.dll
> >pbejbclient90.dll
> >pbejbclient90.pbd
> >pbejbclient90.jar
> >
> >
> >
> >
> >Try
> > gEJBConn = CREATE EJBConnection
> > li_return_jvm = gEJBConn.CreateJavaInstance
> > (gNCClientJava, "NCClient")
> >
> >catch (Throwable t2)
> > li_return = -1
> > as_error_msg = t2.getMessage() + ". Contact I.S."
> > Return li_return
> >end try
>


Jim O'Neil [Sybase] Posted on 2005-06-17 22:47:13.0Z
From: "Jim O'Neil [Sybase]" <joneil_at_sybase_dot_com>
Newsgroups: sybase.public.powerbuilder.ejbclient
Subject: Re: Error calling method of a PBNI object
Message-ID: <dkk6b1hvs9th8bonvccmb0a5ngc7cjrtpv@4ax.com>
References: <7894b11t8soogethscjsa447e80ecusd4f@4ax.com> <42b2dc92.533a.1681692777@sybase.com>
X-Newsreader: Forte Agent 2.0/32.652
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Original-NNTP-Posting-Host: joneilw2k.sybase.com
X-Original-Trace: 17 Jun 2005 15:47:09 -0700, joneilw2k.sybase.com
Lines: 78
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 17 Jun 2005 15:47:10 -0700, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 17 Jun 2005 15:47:13 -0700
X-Trace: forums-1-dub 1119048433 10.22.108.75 (17 Jun 2005 15:47:13 -0700)
X-Original-Trace: 17 Jun 2005 15:47:13 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:553
Article PK: 424688

You don't need to reboot, but you would need to restart PB. I'd get a
copy of FileMonitor from sysinternals.com, sometimes looking at the
files accessed (class files, dlls) may provide some insight into
something that isn't being found.

On 17 Jun 2005 07:22:14 -0700, Jack wrote:

>1. My CREATE JavaVM code works (see the code) since the Try
>Catch didn't catch any error.
>
>Try
> gJavaVM = CREATE JavaVM
> li_return_jvm = gJavaVM.CreateJavaVM("", FALSE)
>catch (CreateException ce)
> ....
>catch (Throwable t1)
> ....
>end try
>
>2. Just like you suggested, my JRE (the actual directory
>name is
>also JRE) were installed in the same directory as where
>PBJVM90.DLL is. For example, the directory
>"c\....\powerbuilder" contains PBJVM90.DLL, I stalled Java
>Runtime in
>"c\....\powerbuilder\jre". I entered the JRE path in the
>PATH
>variable as well just to make sure.
>
>By the way, if I change the PATH or CLASSPATH variable, do I
>need to reboot the PC?
>
>Any other suggestions? Thanks for the help. - Jack
>
>> I assume this is just part of the code, because I don't
>> see a CREATE JavaVM anywhere. Unless you put the JRE
>> directory rooted in the same directory as where
>> PBJVM90.DLL is, you'll need to put the directory
>> containing jvm.dll on the path. In your case, you'd need
>> to add /bin/client or something like that to your path in
>> the PATH variable.
>>
>> On 16 Jun 2005 17:41:48 -0700, Jack wrote:
>>
>> >I am getting "Error calling method of a PBNI object" when
>> >executing the codes below. It triggers catch (Throwable
>> >t2). It works when running the source code; it fails
>> when >running the EXE on user's PC. Please Help....
>> >
>> >
>> >I installed Java Runtime in
>> >"C:\ProgramFiles\Sybase\Shared\PowerBuilder\jre"
>> >and I have a path variable that points to that directory.
>> >
>> >I think I have all the requred DLL/PDB/JAR files intalled
>> in >"C:\ProgramFiles\Sybase\Shared\PowerBuilder". These
>> >files include:
>> >
>> >pbjvm90.dll
>> >pbejbclient90.dll
>> >pbejbclient90.pbd
>> >pbejbclient90.jar
>> >
>> >
>> >
>> >
>> >Try
>> > gEJBConn = CREATE EJBConnection
>> > li_return_jvm = gEJBConn.CreateJavaInstance
>> > (gNCClientJava, "NCClient")
>> >
>> >catch (Throwable t2)
>> > li_return = -1
>> > as_error_msg = t2.getMessage() + ". Contact I.S."
>> > Return li_return
>> >end try
>>


Raynald M. Posted on 2005-06-27 20:48:49.0Z
From: "Raynald M." <no_spam_bilou120000_nsp@hotmail.com>
Organization: NLS
User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206)
X-Accept-Language: fr, en
MIME-Version: 1.0
Newsgroups: sybase.public.powerbuilder.ejbclient
Subject: Re: Error calling method of a PBNI object
References: <42b21c49.4ae8.1681692777@sybase.com>
In-Reply-To: <42b21c49.4ae8.1681692777@sybase.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
X-Original-NNTP-Posting-Host: dyn-83-154-183-177.ppp.tiscali.fr
Message-ID: <42c0662e$1@forums-2-dub>
X-Original-Trace: 27 Jun 2005 13:48:46 -0700, dyn-83-154-183-177.ppp.tiscali.fr
Lines: 37
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 27 Jun 2005 13:48:47 -0700, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 27 Jun 2005 13:48:49 -0700
X-Trace: forums-1-dub 1119905329 10.22.108.75 (27 Jun 2005 13:48:49 -0700)
X-Original-Trace: 27 Jun 2005 13:48:49 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:555
Article PK: 424685

Hi,

I have exactly same problem with soapconnection object on user PC

Jack a écrit :

> I am getting "Error calling method of a PBNI object" when
> executing the codes below. It triggers catch (Throwable
> t2). It works when running the source code; it fails when
> running the EXE on user's PC. Please Help....
>
>
> I installed Java Runtime in
> "C:\ProgramFiles\Sybase\Shared\PowerBuilder\jre"
> and I have a path variable that points to that directory.
>
> I think I have all the requred DLL/PDB/JAR files intalled in
> "C:\ProgramFiles\Sybase\Shared\PowerBuilder". These
> files include:
>
> pbjvm90.dll
> pbejbclient90.dll
> pbejbclient90.pbd
> pbejbclient90.jar
>
>
>
>
> Try
> gEJBConn = CREATE EJBConnection
> li_return_jvm = gEJBConn.CreateJavaInstance
> (gNCClientJava, "NCClient")
>
> catch (Throwable t2)
> li_return = -1
> as_error_msg = t2.getMessage() + ". Contact I.S."
> Return li_return
> end try