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.

Not allowed to create java.callStaticMethod[callStaticMethod]

2 posts in General Discussion (old) Last posting was on 2000-03-17 02:23:19.0Z
Jorge Luzarraga C. Posted on 2000-03-16 23:16:46.0Z
Newsgroups: sybase.public.easerver
From: "Jorge Luzarraga C." <jluzarra@alboradasystems.com>
Subject: Not allowed to create java.callStaticMethod[callStaticMethod]
Date: Thu, 16 Mar 2000 18:16:46 -0500
Lines: 63
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: 209.170.68.205
Message-ID: <347_Vr28#F6j$GA.151@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:26242
Article PK: 156912

Hi Guys,

I've fighting against this error for a while and don't know to solve it. The
error is :

Not allowed to create java.callStaticMethod[callStaticMethod] near line 20
in "/dw6.htm"
Warning: undefined variable query.next[next] near line 21 in "/dw6.htm"

This happen in the PowerDynamo script that follows:

<html>

<head>
<title>Alborada Systems-Proceso de Tarificación</title>
</head>

<body bgcolor="#FFFFFF">
<p align="center"><a href="http://www.alboradasystems.com"><img
src="images/logo2.gif" alt="Alborada Systems" border="0" WIDTH="510"
HEIGHT="80"></a></p>
<!--SCRIPT
listaTarifas =
java.CreateComponent("alborada/Tarificar","iiop://myhost:9000",
"jagadmin","","alborada/Tarificar");
if ( listaTarifas != null ){
RecordSet = listaTarifas.test();
query = java.callStaticMethod("com.sybase.CORBA.jdbc11.SQL",
"getResultSet",RecordSet );
received = query.next();
i = 0;
while ( received ){
metadata = query.getMetaData();
document.writeln("*********");
columns = metadata.getColumnCount();
for( j=1; j <= columns; j++){
value = query.getString(j);
document.writeln( value );
}
received = query.next();
i++;
}
}
else{
document.writeln("No se pudo crear el componente deseado<BR>");
document.writeln(site.GetErrorInfo()+"<BR>");
}
-->
</body>
</html>

Please tell me what could it be?

TIA


--
Ing. Jorge Luzarraga C.
Analista de Sistemas
Alborada Systems, S.A.
www.alboradasystems.com


Carson Hager[Team Sybase] Posted on 2000-03-17 02:23:19.0Z
Newsgroups: sybase.public.easerver
From: chager@dyn-data.com (Carson Hager[Team Sybase])
Subject: Re: Not allowed to create java.callStaticMethod[callStaticMethod]
Date: Fri, 17 Mar 2000 02:23:19 GMT
Organization: Dynamic Data Solutions, Inc.
X-Newsreader: Forte Free Agent 1.21/32.243
Lines: 69
NNTP-Posting-Host: charon.lifescape.com 63.86.26.130
Message-ID: <347_38d196f8.32625162@forums.sybase.com>
References: <347_Vr28#F6j$GA.151@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:26238
Article PK: 156907

Methods in PD are case sensitive and you need to use a capital C for
CallStaticMethod.

java.CallStaticMethod()


Carson

___________________________________________________________

Carson Hager
Team Sybase
Dynamic Data Solutions, Inc.
Enterprise Application Studio 3.0 Consulting and Training
http://www.dyn-data.com

DDS is now hiring EAServer consultants
to support its exploding EAServer business!
Please submit your resume to
hr@dyn-data.com!


On Thu, 16 Mar 2000 18:16:46 -0500, "Jorge Luzarraga C."

<jluzarra@alboradasystems.com> wrote:

>Hi Guys,
>
>I've fighting against this error for a while and don't know to solve it. The
>error is :
>
>Not allowed to create java.callStaticMethod[callStaticMethod] near line 20
>in "/dw6.htm"
>Warning: undefined variable query.next[next] near line 21 in "/dw6.htm"
>
>This happen in the PowerDynamo script that follows:
>
><html>
>
><head>
><title>Alborada Systems-Proceso de Tarificación</title>
></head>
>
><body bgcolor="#FFFFFF">
><p align="center"><a href="http://www.alboradasystems.com"><img
>src="images/logo2.gif" alt="Alborada Systems" border="0" WIDTH="510"
>HEIGHT="80"></a></p>
><!--SCRIPT
> listaTarifas =
>java.CreateComponent("alborada/Tarificar","iiop://myhost:9000",
> "jagadmin","","alborada/Tarificar");
> if ( listaTarifas != null ){
> RecordSet = listaTarifas.test();
> query = java.callStaticMethod("com.sybase.CORBA.jdbc11.SQL",
>"getResultSet",RecordSet );
> received = query.next();
> i = 0;
> while ( received ){
> metadata = query.getMetaData();
> document.writeln("*********");
> columns = metadata.getColumnCount();
> for( j=1; j <= columns; j++){
> value = query.getString(j);
> document.writeln( value );
> }
> received = query.next();
> i++;
> }
> }
> else{
> document.writeln("No se pudo crear el componente deseado<BR>");
> document.writeln(site.GetErrorInfo()+"<BR>");
> }
>-->
></body>
></html>
>
>Please tell me what could it be?
>
>TIA
>
>
>--
>Ing. Jorge Luzarraga C.
>Analista de Sistemas
>Alborada Systems, S.A.
>www.alboradasystems.com
>
>

___________________________________________________________

Carson Hager
Team Sybase
Dynamic Data Solutions, Inc.
Enterprise Application Studio 3.0 Consulting and Training

DDS Enterprise Application Framework
Available Now as Open Source!
http://www.dyn-data.com