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.

Can PB passes a string to local Java class?

6 posts in EJB Client Last posting was on 2003-11-20 02:14:51.0Z
http://vmdd.tech.mylinuxisp.com/catalog/ Posted on 2003-11-18 19:56:25.0Z
Sender: d84.3fba7969.1804289383@sybase.com
From: Ben (http://vmdd.tech.mylinuxisp.com/catalog/)
Newsgroups: sybase.public.powerbuilder.ejbclient
Subject: Can PB passes a string to local Java class?
X-Mailer: WebNews to Mail Gateway v1.1s
Message-ID: <3fba7969.d84.1681692777@sybase.com>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 18 Nov 2003 11:56:25 -0800
X-Trace: forums-1-dub 1069185385 10.22.241.41 (18 Nov 2003 11:56:25 -0800)
X-Original-Trace: 18 Nov 2003 11:56:25 -0800, 10.22.241.41
Lines: 23
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:199
Article PK: 424387

I can create Java instances, and call some methods
successfully.

However, I get the error "Error calling method of a PBNI
method" because of this statement:

conv.initMsg ('Hello World')

In the conv class, initMsg is defined as:
public void initMsg (String aStr) {
// str = aStr;
}

In the conv proxy, initMsg is defined as:

subroutine initMsg(string string_1) alias for
"initMsg(),(Ljava/lang/String;)V"

Thanks,

Ben

http://vmdd.tech.mylinuxisp.com/catalog/


Roy Kiesler [TeamSybase] Posted on 2003-11-18 20:06:11.0Z
From: "Roy Kiesler [TeamSybase]" <SPAM_FREE_roy.kiesler@teamsybase.com>
Newsgroups: sybase.public.powerbuilder.ejbclient
References: <3fba7969.d84.1681692777@sybase.com>
Subject: Re: Can PB passes a string to local Java class?
Lines: 35
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 208.252.62.131
X-Original-NNTP-Posting-Host: 208.252.62.131
Message-ID: <3fba7bb3$1@forums-1-dub>
Date: 18 Nov 2003 12:06:11 -0800
X-Trace: forums-1-dub 1069185971 208.252.62.131 (18 Nov 2003 12:06:11 -0800)
X-Original-Trace: 18 Nov 2003 12:06:11 -0800, 208.252.62.131
X-Authenticated-User: TeamPS
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:200
Article PK: 424388

Enough with the duplicate posting, please? Give folks a chance to read the
post and do some digging around for an answer...

--
<hopethishelps/>
Roy Kiesler [TeamSybase]
SDN CodeXchange -- http://codexchange.sybase.com

<Ben (http://vmdd.tech.mylinuxisp.com/catalog/)> wrote in message
news:3fba7969.d84.1681692777@sybase.com...
> I can create Java instances, and call some methods
> successfully.
>
> However, I get the error "Error calling method of a PBNI
> method" because of this statement:
>
> conv.initMsg ('Hello World')
>
> In the conv class, initMsg is defined as:
> public void initMsg (String aStr) {
> // str = aStr;
> }
>
> In the conv proxy, initMsg is defined as:
>
> subroutine initMsg(string string_1) alias for
> "initMsg(),(Ljava/lang/String;)V"
>
> Thanks,
>
> Ben
>
> http://vmdd.tech.mylinuxisp.com/catalog/


Gökhan Demir Posted on 2003-11-18 20:47:10.0Z
Message-ID: <3FBA83DA.C9793075@igonline.biz>
From: =?iso-8859-1?Q?G=F6khan?= Demir <gokhan.demir@igonline.biz>
X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: sybase.public.powerbuilder.ejbclient
Subject: Re: Can PB passes a string to local Java class?
References: <3fba7969.d84.1681692777@sybase.com> <3fba7bb3$1@forums-1-dub>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: adsluser-1165.adsl.ttnet.net.tr
X-Original-NNTP-Posting-Host: adsluser-1165.adsl.ttnet.net.tr
Date: 18 Nov 2003 12:47:10 -0800
X-Trace: forums-1-dub 1069188430 212.174.52.141 (18 Nov 2003 12:47:10 -0800)
X-Original-Trace: 18 Nov 2003 12:47:10 -0800, adsluser-1165.adsl.ttnet.net.tr
Lines: 50
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:201
Article PK: 424390

Hi Roy,

Seem to me that this duplicate posting thing is a common problem across all
the newsgroups nowadays. Probably one of the web interfaces for the newsgroups
is causing that.

For the problem, Ben, are you able to instantiate the class? If so, are you
sure the class instance str is not static? I have seen this issue, when the
java class that you try to instantiate have no empty constructor, or you try
to access a static method or member.

HTH,
Gokhan

"Roy Kiesler [TeamSybase]" wrote:

> Enough with the duplicate posting, please? Give folks a chance to read the
> post and do some digging around for an answer...
>
> --
> <hopethishelps/>
> Roy Kiesler [TeamSybase]
> SDN CodeXchange -- http://codexchange.sybase.com
>
> <Ben (http://vmdd.tech.mylinuxisp.com/catalog/)> wrote in message
> news:3fba7969.d84.1681692777@sybase.com...
> > I can create Java instances, and call some methods
> > successfully.
> >
> > However, I get the error "Error calling method of a PBNI
> > method" because of this statement:
> >
> > conv.initMsg ('Hello World')
> >
> > In the conv class, initMsg is defined as:
> > public void initMsg (String aStr) {
> > // str = aStr;
> > }
> >
> > In the conv proxy, initMsg is defined as:
> >
> > subroutine initMsg(string string_1) alias for
> > "initMsg(),(Ljava/lang/String;)V"
> >
> > Thanks,
> >
> > Ben
> >
> > http://vmdd.tech.mylinuxisp.com/catalog/


http://vmdd.tech.mylinuxisp.com/catalog/ Posted on 2003-11-19 16:46:41.0Z
Sender: 1aab.3fbb9e70.1804289383@sybase.com
From: Ben (http://vmdd.tech.mylinuxisp.com/catalog/)
Newsgroups: sybase.public.powerbuilder.ejbclient
Subject: Re: Can PB passes a string to local Java class?
X-Mailer: WebNews to Mail Gateway v1.1s
Message-ID: <3fbb9e71.1aab.1681692777@sybase.com>
References: <3fba7969.d84.1681692777@sybase.com> <3fba7bb3$1@forums-1-dub><3FBA83DA.C9793075@igonline.biz>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 19 Nov 2003 08:46:41 -0800
X-Trace: forums-1-dub 1069260401 10.22.241.41 (19 Nov 2003 08:46:41 -0800)
X-Original-Trace: 19 Nov 2003 08:46:41 -0800, 10.22.241.41
Lines: 132
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:202
Article PK: 424389

Hi Gokhan,

I have tried all possiblities but it still gives me the
error.
Here is what my code looks like:

<pb9.01>

Converter conv

li_stat = g_EJBConn.createJavaInstance (conv, "Converter")
if li_stat <> 0 then
messagebox ('createJavaInstance', 'error')
end if
messagebox ('dollarToYen', string (conv.dollarToYen (100)))
//This works
messagebox ('', conv.sayHello ()) //This works
conv.initMsg ("Hello World") //This generates error

</pb9.01>

<converter.srx>
$PBExportHeader$converter.srx
$PBExportComments$Proxy generated for Java class
global type Converter from nonvisualobject
end type
global Converter Converter

type variables
protected:
string Converter_javaname= "sub.Converter"
end variables

forward prototypes
public:
subroutine Converter() alias for "<init>,()V"
function double dollarToYen(double ad_1) alias for
"dollarToYen,(D)D"
function double yenToEuro(double ad_1) alias for
"yenToEuro,(D)D"
function string sayHello() throws RemoteException alias for
"sayHello,()Ljava/lang/String;"
subroutine initmsg(string string_1) alias for
"initMsg(),(Ljava/lang/String;)V"
end prototypes
</converter.srx>

<Converter.java>
package sub;

public class Converter {
double yenRate = 121.6000;
double euroRate = 0.0077;
public String str = "Initial";

public double dollarToYen(double dollars) {
return dollars * yenRate;
}

public double yenToEuro(double yen) {
return yen * euroRate;
}

public String sayHello () {
return str;
}

public void initMsg (String aStr) {
str = aStr;
}

public Converter () {
}
}
</Converter.java>


Thanks,

Ben
http://vmdd.tech.mylinuxisp.com/catalog/

> Hi Roy,
>
> Seem to me that this duplicate posting thing is a common
> problem across all the newsgroups nowadays. Probably one
> of the web interfaces for the newsgroups is causing that.
>
> For the problem, Ben, are you able to instantiate the
> class? If so, are you sure the class instance str is not
> static? I have seen this issue, when the java class that
> you try to instantiate have no empty constructor, or you
> try to access a static method or member.
>
> HTH,
> Gokhan
>
> "Roy Kiesler [TeamSybase]" wrote:
>
> > Enough with the duplicate posting, please? Give folks a
> > chance to read the post and do some digging around for
> an answer... >
> > --
> > <hopethishelps/>
> > Roy Kiesler [TeamSybase]
> > SDN CodeXchange -- http://codexchange.sybase.com
> >
> > <Ben (http://vmdd.tech.mylinuxisp.com/catalog/)> wrote
> > in message news:3fba7969.d84.1681692777@sybase.com...
> > > I can create Java instances, and call some methods
> > > successfully.
> > >
> > > However, I get the error "Error calling method of a
> > > PBNI method" because of this statement:
> > >
> > > conv.initMsg ('Hello World')
> > >
> > > In the conv class, initMsg is defined as:
> > > public void initMsg (String aStr) {
> > > // str = aStr;
> > > }
> > >
> > > In the conv proxy, initMsg is defined as:
> > >
> > > subroutine initMsg(string string_1) alias for
> > > "initMsg(),(Ljava/lang/String;)V"
> > >
> > > Thanks,
> > >
> > > Ben
> > >
> > > http://vmdd.tech.mylinuxisp.com/catalog/
>


Gökhan Demir Posted on 2003-11-19 22:46:22.0Z
Message-ID: <3FBBF143.FCC929C5@igonline.biz>
From: =?iso-8859-1?Q?G=F6khan?= Demir <gokhan.demir@igonline.biz>
X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: sybase.public.powerbuilder.ejbclient
Subject: Re: Can PB passes a string to local Java class?
References: <3fba7969.d84.1681692777@sybase.com> <3fba7bb3$1@forums-1-dub><3FBA83DA.C9793075@igonline.biz> <3fbb9e71.1aab.1681692777@sybase.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Original-NNTP-Posting-Host: adsluser-1165.adsl.ttnet.net.tr
X-Original-Trace: 19 Nov 2003 14:52:15 -0800, adsluser-1165.adsl.ttnet.net.tr
Lines: 223
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 19 Nov 2003 14:36:38 -0800, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 19 Nov 2003 14:46:22 -0800
X-Trace: forums-1-dub 1069281982 10.22.108.75 (19 Nov 2003 14:46:22 -0800)
X-Original-Trace: 19 Nov 2003 14:46:22 -0800, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:203
Article PK: 424391

Hi back,

I have managed to get your code working, by making little code changes:
1. I have changed your Java class to implement java.io.Serializable (I
don't know if this has effect on the success).
2. I have made the String variable in the Java class protected.
3. I have generated a PowerBuilder proxy for the Converter Java class
which produced different result than yours.

The new codes look like the following:

<java_class>
package sub;

public class Converter
implements java.io.Serializable
{
double yenRate = 121.6000;
double euroRate = 0.0077;
protected String str = "Initial";

public Converter()
{
}

public void initMsg(String aStr)
{
this.str = aStr;
}

public double dollarToYen(double dollars)
{
return dollars * yenRate;
}

public double yenToEuro(double yen)
{
return yen * euroRate;
}

public String sayHello()
{
return str;
}

}
</java_class>

<powerbuilder_proxy>
$PBExportHeader$converter.srx
$PBExportComments$Proxy imported from EJB via EJB Proxy generator.
global type Converter from nonvisualobject
end type

type variables
protected:
string Converter_javaname= "sub.Converter"
end variables

forward prototypes
public:
function double dollarToYen( double double_1) alias for
"dollarToYen,(D)D"
function double yenToEuro( double double_1) alias for "yenToEuro,(D)D"
function string sayHello() alias for "sayHello,()Ljava/lang/String;"
subroutine initMsg( string string_1) alias for
"initMsg,(Ljava/lang/String;)V"
subroutine Converter() alias for "<init>,()V"
end prototypes
</powerbuilder_proxy>

<powerbuilder_code_snippet>
Converter cc
integer li_stat

li_stat = ejbapp.EJBConn.createJavaInstance (cc, "Converter")
if li_stat <> 0 then
messagebox ('createJavaInstance', 'error')
end if
cc.initMsg( "Deep Purple" )
messagebox( "Hello", cc.sayhello() )
</powerbuilder_code_snippet>

It works as expected.

HTH,
Gokhan

"http://vmdd.tech.mylinuxisp.com/catalog/" wrote:

> Hi Gokhan,
>
> I have tried all possiblities but it still gives me the
> error.
> Here is what my code looks like:
>
> <pb9.01>
>
> Converter conv
>
> li_stat = g_EJBConn.createJavaInstance (conv, "Converter")
> if li_stat <> 0 then
> messagebox ('createJavaInstance', 'error')
> end if
> messagebox ('dollarToYen', string (conv.dollarToYen (100)))
> //This works
> messagebox ('', conv.sayHello ()) //This works
> conv.initMsg ("Hello World") //This generates error
>
> </pb9.01>
>
> <converter.srx>
> $PBExportHeader$converter.srx
> $PBExportComments$Proxy generated for Java class
> global type Converter from nonvisualobject
> end type
> global Converter Converter
>
> type variables
> protected:
> string Converter_javaname= "sub.Converter"
> end variables
>
> forward prototypes
> public:
> subroutine Converter() alias for "<init>,()V"
> function double dollarToYen(double ad_1) alias for
> "dollarToYen,(D)D"
> function double yenToEuro(double ad_1) alias for
> "yenToEuro,(D)D"
> function string sayHello() throws RemoteException alias for
> "sayHello,()Ljava/lang/String;"
> subroutine initmsg(string string_1) alias for
> "initMsg(),(Ljava/lang/String;)V"
> end prototypes
> </converter.srx>
>
> <Converter.java>
> package sub;
>
> public class Converter {
> double yenRate = 121.6000;
> double euroRate = 0.0077;
> public String str = "Initial";
>
> public double dollarToYen(double dollars) {
> return dollars * yenRate;
> }
>
> public double yenToEuro(double yen) {
> return yen * euroRate;
> }
>
> public String sayHello () {
> return str;
> }
>
> public void initMsg (String aStr) {
> str = aStr;
> }
>
> public Converter () {
> }
> }
> </Converter.java>
>
> Thanks,
>
> Ben
> http://vmdd.tech.mylinuxisp.com/catalog/
> > Hi Roy,
> >
> > Seem to me that this duplicate posting thing is a common
> > problem across all the newsgroups nowadays. Probably one
> > of the web interfaces for the newsgroups is causing that.
> >
> > For the problem, Ben, are you able to instantiate the
> > class? If so, are you sure the class instance str is not
> > static? I have seen this issue, when the java class that
> > you try to instantiate have no empty constructor, or you
> > try to access a static method or member.
> >
> > HTH,
> > Gokhan
> >
> > "Roy Kiesler [TeamSybase]" wrote:
> >
> > > Enough with the duplicate posting, please? Give folks a
> > > chance to read the post and do some digging around for
> > an answer... >
> > > --
> > > <hopethishelps/>
> > > Roy Kiesler [TeamSybase]
> > > SDN CodeXchange -- http://codexchange.sybase.com
> > >
> > > <Ben (http://vmdd.tech.mylinuxisp.com/catalog/)> wrote
> > > in message news:3fba7969.d84.1681692777@sybase.com...
> > > > I can create Java instances, and call some methods
> > > > successfully.
> > > >
> > > > However, I get the error "Error calling method of a
> > > > PBNI method" because of this statement:
> > > >
> > > > conv.initMsg ('Hello World')
> > > >
> > > > In the conv class, initMsg is defined as:
> > > > public void initMsg (String aStr) {
> > > > // str = aStr;
> > > > }
> > > >
> > > > In the conv proxy, initMsg is defined as:
> > > >
> > > > subroutine initMsg(string string_1) alias for
> > > > "initMsg(),(Ljava/lang/String;)V"
> > > >
> > > > Thanks,
> > > >
> > > > Ben
> > > >
> > > > http://vmdd.tech.mylinuxisp.com/catalog/
> >


http://vmdd.tech.mylinuxisp.com/catalog/ Posted on 2003-11-20 02:14:51.0Z
Sender: 2220.3fbc2356.1804289383@sybase.com
From: Ben (http://vmdd.tech.mylinuxisp.com/catalog/)
Newsgroups: sybase.public.powerbuilder.ejbclient
Subject: Re: Can PB passes a string to local Java class?
X-Mailer: WebNews to Mail Gateway v1.1s
Message-ID: <3fbc239b.222a.846930886@sybase.com>
References: <3fba7969.d84.1681692777@sybase.com> <3fba7bb3$1@forums-1-dub><3FBA83DA.C9793075@igonline.biz> <3fbb9e71.1aab.1681692777@sybase.com><3FBBF143.FCC929C5@igonline.biz>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 19 Nov 2003 18:14:51 -0800
X-Trace: forums-1-dub 1069294491 10.22.241.41 (19 Nov 2003 18:14:51 -0800)
X-Original-Trace: 19 Nov 2003 18:14:51 -0800, 10.22.241.41
Lines: 232
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:204
Article PK: 424392

Gokhan,

Thank you very much. It works. You save me a lot of
debugging
time.

Ben

> Hi back,
>
> I have managed to get your code working, by making little
> code changes: 1. I have changed your Java class to
> implement java.io.Serializable (I don't know if this has
> effect on the success). 2. I have made the String variable
> in the Java class protected. 3. I have generated a
> PowerBuilder proxy for the Converter Java class which
> produced different result than yours.
>
> The new codes look like the following:
>
> <java_class>
> package sub;
>
> public class Converter
> implements java.io.Serializable
> {
> double yenRate = 121.6000;
> double euroRate = 0.0077;
> protected String str = "Initial";
>
> public Converter()
> {
> }
>
> public void initMsg(String aStr)
> {
> this.str = aStr;
> }
>
> public double dollarToYen(double dollars)
> {
> return dollars * yenRate;
> }
>
> public double yenToEuro(double yen)
> {
> return yen * euroRate;
> }
>
> public String sayHello()
> {
> return str;
> }
>
> }
> </java_class>
>
> <powerbuilder_proxy>
> $PBExportHeader$converter.srx
> $PBExportComments$Proxy imported from EJB via EJB Proxy
> generator. global type Converter from nonvisualobject
> end type
>
> type variables
> protected:
> string Converter_javaname= "sub.Converter"
> end variables
>
> forward prototypes
> public:
> function double dollarToYen( double double_1) alias for
> "dollarToYen,(D)D"
> function double yenToEuro( double double_1) alias for
> "yenToEuro,(D)D" function string sayHello() alias for
> "sayHello,()Ljava/lang/String;" subroutine initMsg(
> string string_1) alias for "initMsg,(Ljava/lang/String
> ;)V" subroutine Converter() alias for "<init>,()V"
> end prototypes
> </powerbuilder_proxy>
>
> <powerbuilder_code_snippet>
> Converter cc
> integer li_stat
>
> li_stat = ejbapp.EJBConn.createJavaInstance (cc,
> "Converter") if li_stat <> 0 then
> messagebox ('createJavaInstance', 'error')
> end if
> cc.initMsg( "Deep Purple" )
> messagebox( "Hello", cc.sayhello() )
> </powerbuilder_code_snippet>
>
> It works as expected.
>
> HTH,
> Gokhan
>
>
> "http://vmdd.tech.mylinuxisp.com/catalog/" wrote:
>
> > Hi Gokhan,
> >
> > I have tried all possiblities but it still gives me the
> > error.
> > Here is what my code looks like:
> >
> > <pb9.01>
> >
> > Converter conv
> >
> > li_stat = g_EJBConn.createJavaInstance (conv,
> > "Converter") if li_stat <> 0 then
> > messagebox ('createJavaInstance', 'error')
> > end if
> > messagebox ('dollarToYen', string (conv.dollarToYen
> > (100))) //This works
> > messagebox ('', conv.sayHello ()) //This works
> > conv.initMsg ("Hello World") //This generates error
> >
> > </pb9.01>
> >
> > <converter.srx>
> > $PBExportHeader$converter.srx
> > $PBExportComments$Proxy generated for Java class
> > global type Converter from nonvisualobject
> > end type
> > global Converter Converter
> >
> > type variables
> > protected:
> > string Converter_javaname= "sub.Converter"
> > end variables
> >
> > forward prototypes
> > public:
> > subroutine Converter() alias for "<init>,()V"
> > function double dollarToYen(double ad_1) alias for
> > "dollarToYen,(D)D"
> > function double yenToEuro(double ad_1) alias for
> > "yenToEuro,(D)D"
> > function string sayHello() throws RemoteException alias
> > for "sayHello,()Ljava/lang/String;"
> > subroutine initmsg(string string_1) alias for
> > "initMsg(),(Ljava/lang/String;)V"
> > end prototypes
> > </converter.srx>
> >
> > <Converter.java>
> > package sub;
> >
> > public class Converter {
> > double yenRate = 121.6000;
> > double euroRate = 0.0077;
> > public String str = "Initial";
> >
> > public double dollarToYen(double dollars) {
> > return dollars * yenRate;
> > }
> >
> > public double yenToEuro(double yen) {
> > return yen * euroRate;
> > }
> >
> > public String sayHello () {
> > return str;
> > }
> >
> > public void initMsg (String aStr) {
> > str = aStr;
> > }
> >
> > public Converter () {
> > }
> > }
> > </Converter.java>
> >
> > Thanks,
> >
> > Ben
> > http://vmdd.tech.mylinuxisp.com/catalog/
> > > Hi Roy,
> > >
> > > Seem to me that this duplicate posting thing is a
> > > common problem across all the newsgroups nowadays.
> > > Probably one of the web interfaces for the newsgroups
> > is causing that. >
> > > For the problem, Ben, are you able to instantiate the
> > > class? If so, are you sure the class instance str is
> > > not static? I have seen this issue, when the java
> > > class that you try to instantiate have no empty
> > > constructor, or you try to access a static method or
> > member. >
> > > HTH,
> > > Gokhan
> > >
> > > "Roy Kiesler [TeamSybase]" wrote:
> > >
> > > > Enough with the duplicate posting, please? Give
> > > > folks a chance to read the post and do some digging
> > > around for an answer... >
> > > > --
> > > > <hopethishelps/>
> > > > Roy Kiesler [TeamSybase]
> > > > SDN CodeXchange -- http://codexchange.sybase.com
> > > >
> > > > <Ben (http://vmdd.tech.mylinuxisp.com/catalog/)>
> > > > wrote in message
> > > > > news:3fba7969.d84.1681692777@sybase.com... I can
> > > > > create Java instances, and call some methods
> > > > successfully. >
> > > > > However, I get the error "Error calling method of
> > > > > a PBNI method" because of this statement:
> > > > >
> > > > > conv.initMsg ('Hello World')
> > > > >
> > > > > In the conv class, initMsg is defined as:
> > > > > public void initMsg (String aStr) {
> > > > > // str = aStr;
> > > > > }
> > > > >
> > > > > In the conv proxy, initMsg is defined as:
> > > > >
> > > > > subroutine initMsg(string string_1) alias for
> > > > > "initMsg(),(Ljava/lang/String;)V"
> > > > >
> > > > > Thanks,
> > > > >
> > > > > Ben
> > > > >
> > > > > http://vmdd.tech.mylinuxisp.com/catalog/
> > >
>