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.

Java Object Error

2 posts in PowerSite specific Last posting was on 2001-06-15 15:39:07.0Z
Vasu Posted on 2001-06-13 10:15:54.0Z
Newsgroups: sybase.public.powersite
From: "Vasu" <kr_vasudev@advantaindia.com>
Subject: Java Object Error
Date: Wed, 13 Jun 2001 15:45:54 +0530
Lines: 46
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6700
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700
NNTP-Posting-Host: 203.200.8.34
Message-ID: <382_cgJGXT$8AHA.85@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.powersite:182
Article PK: 862602

Dear All

I have downloaded the document in PDF Format
for PowerBuilder 7 & the Web DataWindow

I followed all the steps given in the documentation but
I'm getting Java Object not Found Error

Here is the Script

<!--SCRIPT PSOBJMOD=TRUE
import( site.GetRootDocument().location + "/ObjMod.ssc" );
session.active = true;
InitObjects(session);
-->

<SCRIPT language=JavaScript>

dw_crop=java.CreateComponent("dataWindow/HTMLGenerator","iiop://localhost:90
00","jagadmin","","DataWindow/HTMLGenerator");

dw_crop.SetDWObject("D:\PowerSite\Advanta\DataWindow\advanta.pbl","d_crop_ma
ster");

dw_crop.SetHTMLObjectName("dw_crop")
dw_crop.SetTrans("ODBC","ConnectString='DSN=Advanta;UID=DBA;PWD=SQL'","","",
"","","")
dw_crop.Retrieve()

dw_crop.SetSelfLink(document.name,"");

dw_crop.SetWeight(true,true,true,true,true)
document.Write(dw_crop.Generate());


</SCRIPT>

End of Script

Kindly help me in this regards


Thanx
Vasu


Tina Capadouca Posted on 2001-06-15 15:39:07.0Z
Newsgroups: sybase.public.powersite
Date: Fri, 15 Jun 2001 11:39:07 -0400
From: Tina Capadouca <tina.capadouca@sybase.com>
Organization: Sybase
X-Mailer: Mozilla 4.76 [en] (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
To: Vasu <kr_vasudev@advantaindia.com>
Subject: Re: Java Object Error
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 34
NNTP-Posting-Host: tcapadou-pc2.sybase.com 172.31.142.49
Message-ID: <382_3B2A2C1B.9496BEDE@sybase.com>
References: <382_cgJGXT$8AHA.85@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.powersite:179
Article PK: 862599

Vasu,

In your java.CreateComponent statement your package name should have an
uppercase "d" as in "DataWindow/HTMLGenerator".

Also, all the slashes in your SetDWObject statement should be forward slashes
not backslashes.

HTH,
Tina Capadouca
Sybase Product Support

Vasu wrote:

> Dear All
>
> I have downloaded the document in PDF Format
> for PowerBuilder 7 & the Web DataWindow
>
> I followed all the steps given in the documentation but
> I'm getting Java Object not Found Error
>
> Here is the Script
>
> <!--SCRIPT PSOBJMOD=TRUE
> import( site.GetRootDocument().location + "/ObjMod.ssc" );
> session.active = true;
> InitObjects(session);
> -->
>
> <SCRIPT language=JavaScript>
>
> dw_crop=java.CreateComponent("dataWindow/HTMLGenerator","iiop://localhost:90
> 00","jagadmin","","DataWindow/HTMLGenerator");
>
> dw_crop.SetDWObject("D:\PowerSite\Advanta\DataWindow\advanta.pbl","d_crop_ma
> ster");
>
> dw_crop.SetHTMLObjectName("dw_crop")
> dw_crop.SetTrans("ODBC","ConnectString='DSN=Advanta;UID=DBA;PWD=SQL'","","",
> "","","")
> dw_crop.Retrieve()
>
> dw_crop.SetSelfLink(document.name,"");
>
> dw_crop.SetWeight(true,true,true,true,true)
> document.Write(dw_crop.Generate());
>
> </SCRIPT>
>
> End of Script
>
> Kindly help me in this regards
>
> Thanx
> Vasu