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.

Java2PB

5 posts in EJB Client Last posting was on 2004-06-18 06:12:06.0Z
Kannan Posted on 2004-06-15 13:38:26.0Z
From: "Kannan" <kannankr@cgvakindia.com>
Newsgroups: sybase.public.powerbuilder.ejbclient
Subject: Java2PB
Lines: 16
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4927.1200
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4927.1200
NNTP-Posting-Host: 61.95.184.101
X-Original-NNTP-Posting-Host: 61.95.184.101
Message-ID: <40cefbd2@forums-1-dub>
Date: 15 Jun 2004 06:38:26 -0700
X-Trace: forums-1-dub 1087306706 61.95.184.101 (15 Jun 2004 06:38:26 -0700)
X-Original-Trace: 15 Jun 2004 06:38:26 -0700, 61.95.184.101
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:303
Article PK: 424485

Hi Jim O'Niel,

This
http://powerbuilder.codexchange.sybase.com/files/documents/67/1135/calljava
helped me to understand the use of java class files in powerbuilder. The
example "Convertor" you have provided is working fine. I wrote my own
example and able to create the proxy successsfully but during runtime i'm
getting this error "Failed to invoke the EJB method:".

Thanks,
Kannan


Jim O'Neil [Sybase] Posted on 2004-06-15 22:34:10.0Z
From: joneil@sybase.com (Jim O'Neil [Sybase])
Newsgroups: sybase.public.powerbuilder.ejbclient
Subject: Re: Java2PB
Organization: Sybase Technical Support
Reply-To: joneil_REMOVETHISPART@sybase.com
Message-ID: <40cf7881.121017564@forums.sybase.com>
References: <40cefbd2@forums-1-dub>
X-Newsreader: Forte Free Agent 1.21/32.243
NNTP-Posting-Host: joneilpc.sybase.com
X-Original-NNTP-Posting-Host: joneilpc.sybase.com
Date: 15 Jun 2004 15:34:10 -0700
X-Trace: forums-1-dub 1087338850 10.18.63.187 (15 Jun 2004 15:34:10 -0700)
X-Original-Trace: 15 Jun 2004 15:34:10 -0700, joneilpc.sybase.com
Lines: 27
X-Authenticated-User: teamsybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:305
Article PK: 424484

That's a pretty generic error. Can you post the PowerScript you are
using as well as the Java method signature.

On 15 Jun 2004 06:38:26 -0700, "Kannan" <kannankr@cgvakindia.com>

wrote:

>Hi Jim O'Niel,
>
>This
>http://powerbuilder.codexchange.sybase.com/files/documents/67/1135/calljava
>helped me to understand the use of java class files in powerbuilder. The
>example "Convertor" you have provided is working fine. I wrote my own
>example and able to create the proxy successsfully but during runtime i'm
>getting this error "Failed to invoke the EJB method:".
>
>Thanks,
>Kannan
>
>
>
>
>

Jim O'Neil
Principal Technical Support Engineer
Sybase, Inc.
Concord, MA


Kannan Posted on 2004-06-16 05:42:54.0Z
From: "Kannan" <kannankr@cgvakindia.com>
Newsgroups: sybase.public.powerbuilder.ejbclient
References: <40cefbd2@forums-1-dub> <40cf7881.121017564@forums.sybase.com>
Subject: Re: Java2PB
Lines: 75
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4927.1200
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4927.1200
NNTP-Posting-Host: 203.129.254.50
X-Original-NNTP-Posting-Host: 203.129.254.50
Message-ID: <40cfddde$3@forums-1-dub>
Date: 15 Jun 2004 22:42:54 -0700
X-Trace: forums-1-dub 1087364574 203.129.254.50 (15 Jun 2004 22:42:54 -0700)
X-Original-Trace: 15 Jun 2004 22:42:54 -0700, 203.129.254.50
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:306
Article PK: 424486

Hi Jim O'Neil,

Pls find both Powerbuildr & Java code below

Below is Powerbuilder code
===================
JavaVM lJavaVM
EJBConnection lEJBConn
JavapDemoApplication lConv
double ld_convertor

lJavaVM = CREATE JavaVM
lJavaVM.CreateJavaVM("", FALSE)

lEJBConn = CREATE EJBConnection
lEJBConn.CreateJavaInstance(lConv, "JavapDemoApplication")

try
ld_convertor = lConv.dollarToRs(100.0)
catch (Exception ex)
MessageBox("Exception Caught", ex.getMessage())
end try

messagebox("$ to Rs.", "$100 = Rs." + string(ld_convertor))

Below is Java File
============
public class JavapDemoApplication
{
double dollar = 45;
public double dollarToRs(double arg_rs)
{
return arg_rs * dollar;
}
}

The system throws the Exception error "Failed to invoke the EJB Method:
dollarToRs". But i'm able to create the proxy successsfully using EJB Client
Proxy.

Thanks,
Kannan

"Jim O'Neil [Sybase]" <joneil@sybase.com> wrote in message
news:40cf7881.121017564@forums.sybase.com...
> That's a pretty generic error. Can you post the PowerScript you are
> using as well as the Java method signature.
>
> On 15 Jun 2004 06:38:26 -0700, "Kannan" <kannankr@cgvakindia.com>
> wrote:
>
> >Hi Jim O'Niel,
> >
> >This
>
>http://powerbuilder.codexchange.sybase.com/files/documents/67/1135/calljava
> >helped me to understand the use of java class files in powerbuilder. The
> >example "Convertor" you have provided is working fine. I wrote my own
> >example and able to create the proxy successsfully but during runtime i'm
> >getting this error "Failed to invoke the EJB method:".
> >
> >Thanks,
> >Kannan
> >
> >
> >
> >
> >
>
> Jim O'Neil
> Principal Technical Support Engineer
> Sybase, Inc.
> Concord, MA


Jim O'Neil [Sybase] Posted on 2004-06-17 15:01:34.0Z
From: joneil@sybase.com (Jim O'Neil [Sybase])
Newsgroups: sybase.public.powerbuilder.ejbclient
Subject: Re: Java2PB
Organization: Sybase Technical Support
Reply-To: joneil_REMOVETHISPART@sybase.com
Message-ID: <40d1adea.7715924@forums.sybase.com>
References: <40cefbd2@forums-1-dub> <40cf7881.121017564@forums.sybase.com> <40cfddde$3@forums-1-dub>
X-Newsreader: Forte Free Agent 1.21/32.243
X-Original-NNTP-Posting-Host: joneilpc.sybase.com
X-Original-Trace: 17 Jun 2004 07:50:13 -0700, joneilpc.sybase.com
Lines: 87
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 17 Jun 2004 07:52:29 -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 2004 08:01:34 -0700
X-Trace: forums-1-dub 1087484494 10.22.108.75 (17 Jun 2004 08:01:34 -0700)
X-Original-Trace: 17 Jun 2004 08:01:34 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:307
Article PK: 424488

Nothing looks obviously wrong here to me. Are you certain the
class is in the classpath that PowerBuilder sets when it starts the
Java VM?

On 15 Jun 2004 22:42:54 -0700, "Kannan" <kannankr@cgvakindia.com>

wrote:

>Hi Jim O'Neil,
>
>Pls find both Powerbuildr & Java code below
>
>Below is Powerbuilder code
>===================
>JavaVM lJavaVM
>EJBConnection lEJBConn
>JavapDemoApplication lConv
>double ld_convertor
>
>lJavaVM = CREATE JavaVM
>lJavaVM.CreateJavaVM("", FALSE)
>
>lEJBConn = CREATE EJBConnection
>lEJBConn.CreateJavaInstance(lConv, "JavapDemoApplication")
>
>try
> ld_convertor = lConv.dollarToRs(100.0)
>catch (Exception ex)
> MessageBox("Exception Caught", ex.getMessage())
>end try
>
>messagebox("$ to Rs.", "$100 = Rs." + string(ld_convertor))
>
>Below is Java File
>============
>public class JavapDemoApplication
>{
> double dollar = 45;
> public double dollarToRs(double arg_rs)
> {
> return arg_rs * dollar;
> }
>}
>
>The system throws the Exception error "Failed to invoke the EJB Method:
>dollarToRs". But i'm able to create the proxy successsfully using EJB Client
>Proxy.
>
>Thanks,
>Kannan
>
>"Jim O'Neil [Sybase]" <joneil@sybase.com> wrote in message
>news:40cf7881.121017564@forums.sybase.com...
>> That's a pretty generic error. Can you post the PowerScript you are
>> using as well as the Java method signature.
>>
>> On 15 Jun 2004 06:38:26 -0700, "Kannan" <kannankr@cgvakindia.com>
>> wrote:
>>
>> >Hi Jim O'Niel,
>> >
>> >This
>>
>>http://powerbuilder.codexchange.sybase.com/files/documents/67/1135/calljava
>> >helped me to understand the use of java class files in powerbuilder. The
>> >example "Convertor" you have provided is working fine. I wrote my own
>> >example and able to create the proxy successsfully but during runtime i'm
>> >getting this error "Failed to invoke the EJB method:".
>> >
>> >Thanks,
>> >Kannan
>> >
>> >
>> >
>> >
>> >
>>
>> Jim O'Neil
>> Principal Technical Support Engineer
>> Sybase, Inc.
>> Concord, MA
>
>

Jim O'Neil
Principal Technical Support Engineer
Sybase, Inc.
Concord, MA


Kannan Posted on 2004-06-18 06:12:06.0Z
From: "Kannan" <kannankr@cgvakindia.com>
Newsgroups: sybase.public.powerbuilder.ejbclient
References: <40cefbd2@forums-1-dub> <40cf7881.121017564@forums.sybase.com> <40cfddde$3@forums-1-dub> <40d1adea.7715924@forums.sybase.com>
Subject: Re: Java2PB
Lines: 98
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4927.1200
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4927.1200
NNTP-Posting-Host: 203.129.254.50
X-Original-NNTP-Posting-Host: 203.129.254.50
Message-ID: <40d287b6@forums-1-dub>
Date: 17 Jun 2004 23:12:06 -0700
X-Trace: forums-1-dub 1087539126 203.129.254.50 (17 Jun 2004 23:12:06 -0700)
X-Original-Trace: 17 Jun 2004 23:12:06 -0700, 203.129.254.50
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:309
Article PK: 424489

The class file was not in the path. Now it's working. Thanks.

"Jim O'Neil [Sybase]" <joneil@sybase.com> wrote in message
news:40d1adea.7715924@forums.sybase.com...
> Nothing looks obviously wrong here to me. Are you certain the
> class is in the classpath that PowerBuilder sets when it starts the
> Java VM?
>
> On 15 Jun 2004 22:42:54 -0700, "Kannan" <kannankr@cgvakindia.com>
> wrote:
>
> >Hi Jim O'Neil,
> >
> >Pls find both Powerbuildr & Java code below
> >
> >Below is Powerbuilder code
> >===================
> >JavaVM lJavaVM
> >EJBConnection lEJBConn
> >JavapDemoApplication lConv
> >double ld_convertor
> >
> >lJavaVM = CREATE JavaVM
> >lJavaVM.CreateJavaVM("", FALSE)
> >
> >lEJBConn = CREATE EJBConnection
> >lEJBConn.CreateJavaInstance(lConv, "JavapDemoApplication")
> >
> >try
> > ld_convertor = lConv.dollarToRs(100.0)
> >catch (Exception ex)
> > MessageBox("Exception Caught", ex.getMessage())
> >end try
> >
> >messagebox("$ to Rs.", "$100 = Rs." + string(ld_convertor))
> >
> >Below is Java File
> >============
> >public class JavapDemoApplication
> >{
> > double dollar = 45;
> > public double dollarToRs(double arg_rs)
> > {
> > return arg_rs * dollar;
> > }
> >}
> >
> >The system throws the Exception error "Failed to invoke the EJB Method:
> >dollarToRs". But i'm able to create the proxy successsfully using EJB
Client
> >Proxy.
> >
> >Thanks,
> >Kannan
> >
> >"Jim O'Neil [Sybase]" <joneil@sybase.com> wrote in message
> >news:40cf7881.121017564@forums.sybase.com...
> >> That's a pretty generic error. Can you post the PowerScript you are
> >> using as well as the Java method signature.
> >>
> >> On 15 Jun 2004 06:38:26 -0700, "Kannan" <kannankr@cgvakindia.com>
> >> wrote:
> >>
> >> >Hi Jim O'Niel,
> >> >
> >> >This
> >>
>
>>http://powerbuilder.codexchange.sybase.com/files/documents/67/1135/calljav
a
> >> >helped me to understand the use of java class files in powerbuilder.
The
> >> >example "Convertor" you have provided is working fine. I wrote my own
> >> >example and able to create the proxy successsfully but during runtime
i'm
> >> >getting this error "Failed to invoke the EJB method:".
> >> >
> >> >Thanks,
> >> >Kannan
> >> >
> >> >
> >> >
> >> >
> >> >
> >>
> >> Jim O'Neil
> >> Principal Technical Support Engineer
> >> Sybase, Inc.
> >> Concord, MA
> >
> >
>
> Jim O'Neil
> Principal Technical Support Engineer
> Sybase, Inc.
> Concord, MA