Problem while I try to run Applet using Appletviewer

Hi,
I have developed a simple Applet using JDeveloper 1.1, here I am
using a Dataset, a QueryDataSet and a grid.
When I run the Applet within JDeveloper it runs just fine, but
when I use the Appletviewer, the Applet starts of well but gives
the following error:
"borland.jbcl.dataset.DataSetException: Operation cannot be
performed on an open DataSet"
Please let me know what I am doing wrong.
Thanks,
Prag.
null

This may be a problem with JDK inconsistency problem. Make sure
your appletviewer IS Java 1.1 compliant. Also, have you properly
deployed your applet to a jar file?
Here are the instructions for deploying a database applet:
Hope this helps..
-Chris
Task 7: Deployment
The following requirements apply when deploying a database
applet:
The database must be on the same server as the Web Server (or use
a connection manager).
Must have a JDK 1.1 compatible browser, such as Netscape 4.0.4 or
Internet Explorer 4.0.
Creating the Java Archive (.jar) file
Select File|New
Click the Deployment tab
Double-click the Simple Archive Profile icon.
The Simple Archive Profile wizard (SAP wizard) is displayed.
On the Welcome page, click Next.
On page one of the SAP wizard, enter or browse to set the Archive
Path. Set the name of the jar to db_applet.jar.
Click Next.
Page two displays the names of all files in your project. Accept
the default value of deploying all of the files and click Next.
On page three, Dependencies, shift-click each item in the list
"List items that you do not want to appear in the archive to
select them all.
Click Remove.
In most cases, developers prefer to ship only their own classes
in the .jar file, with separate .jars that store common files
used by all of their Java programs. For the sake of simplicity,
you are going to create a .jar file that includes all of the
classes necessary to run your applet. By removing all of the
libraries, you indicate that no classes should be omitted from
your deployed .jar file.
Click Finish.
Deploying the applet
Using a file manager, copy the db_applet.jar file you have just
created to the Web Server.
Copy the tutorial.EmpApplet.html file to the same directory as
your .jar file.
The tutorial.EmpApplet.html file can be found in the project
directory (by default, the \myprojects directory under the
JDeveloper root directory) or you can extract the file from the
.jar using any PK-ZIP compatible file compression utility.
Using any text editor, modify the <APPLET> tag in the
tutorial.EmpApplet.html file to include an ARCHIVE tag that
references your .jar file. Your <APPLET> tag should include this
information:
<APPLET CODEBASE = "." CODE = "tutorial.EmpApplet.class"
NAME = "TestApplet" WIDTH = 400 HEIGHT = 300 HSPACE
= 0 VSPACE = 0 ALIGN = middle ARCHIVE =
"db_applet.jar">
To test the applet, open the tutorial.EmpApplet.html file through
a web server using a Java 1.1 enabled browser.
Congratulations! You have completed your first database applet.
You created a program that queries data from Oracle tables,
displays the data in data-aware controls, allows for viewing and
editing, displays status messages to a StatusBar, and includes a
NavigatorControl component.
Prag Ratra (guest) wrote:
: Hi,
: I have developed a simple Applet using JDeveloper 1.1, here I
am
: using a Dataset, a QueryDataSet and a grid.
: When I run the Applet within JDeveloper it runs just fine, but
: when I use the Appletviewer, the Applet starts of well but
gives
: the following error:
: "borland.jbcl.dataset.DataSetException: Operation cannot be
: performed on an open DataSet"
: Please let me know what I am doing wrong.
: Thanks,
: Prag.
null

Similar Messages

  • There is some problem while I try to put a figure in a slide.

    Hi, There is some problem while I try to put a figure in a slide. For editing the data, the input will change into a date(e.g. 2014/1/8) while I key in a floating(e.g. 1.8), and I can't change it back to a floating while I use the new version of keynote. Is that a bug?

    I have never seen this issue.
    Try this, ensure you complete all the tasks and in the order shown:

    delete all the iWork applications if you have them, not just Keynote, using Appcleaner from Mac Update, its a freeware application

    empty the trash:  Finder > Empty Trash

    Shut down your Mac, wait 30 seconds, then power on the Mac, immediately after the start chime, hold down the Shift key
    When you see the grey Apple symbol and progress indicator (a spinning gear), release the Shift key.
    If you are prompted to log in, type your password, then hold down the Shift key again as you click Log in. 
    Let the Mac fully boot up, it will take longer as the OS is repairing the drive
    4
    when fully booted, go to Applications > Utilities > Disc Utility; click on the boot drive then First Aid tab and click  repair disc permissions
    5
    when complete, restart the Mac normally, Apple menu > Restart

    install Keynote from the Mac App Store

  • When I publish a SWF/HTML5 module with Captivate 8 and try to run it using IE9 - I get the following error "The content you are viewing is not supported in the current Document Mode" - anyone know why?

    When I publish a SWF/HTML5 module with Captivate 8 and try to run it using IE9 - I get the following error "The content you are viewing is not supported in the current Document Mode" - anyone know why?

    TLCMediaDesign wrote:
    I've seen a lot of threads about getting rid of these kind of messages. Those messages are there for a reason most of the time. If you have CSS animations or other HTML5 standards that cannot be rendered in IE9 they won't magically start working becuse you got rid of a message. I use IE9 since that is the minimum standard for the client. I have never seen that message publishing to HTML5 content.
    IMO, if your client has IE9 I think that you should develop with IE9 in mind not IE11.
    When you say "develop with IE9 in mind not IE11" do you mean use SWF instead of HTML5? I used the standard question types, and a converted PowerPoint presentation. I didn't add anything out of the ordinary.

  • I had formatted external HDD as Mac OS Extended(journaled) earlier, but now i want to format the same as ExFAT so that i can copy files between PC and MAC. But it is giving 'Can't unmount' error while i try to run Erase

    I had formatted external HDD as Mac OS Extended(journaled) earlier, but now i want to format the same as ExFAT so that i can copy files between PC and MAC. But it is giving 'Can't unmount' error while i try to run Erase

    Use the PC to reformat the drive.

  • Problem while writing data on xls file using jxl API

    Hi,
    I am getting problem while writing data on excel file using jxl api.
    When i write data on file and all handles associated to the file are closed, file size increases but when i open the file nothing is written in it and when file is closed manually from excel window, file size decreased to its original that was before writing data.
    here is code:
              FileOutputStream os = new FileOutputStream(this.dirPath + this.fileName, true);
              WritableWorkbook this.workbook = Workbook.createWorkbook(os);
    after writing data following handler are closed:
    this.os.flush();
                        this.workbook.write();
                        this.workbook.close();
                        this.os.close();
                        this.os = null;
    can any body help me.
    Thanks in advance

    Err, I did help you. I did understand your problem; and I solved it for you. What was missing was that you apparently made no effort to understand what you were being told. Or even consider it. You just argued about it, as though you were the one with the solution, instead of the one whose code didn't work.
    And the other thing that was missing was the part where you said 'thank you' to me for solving your problem. Somewhat more appropriate than biting the hand that fed you, frankly. I do this for nothing, on my own gas, and it's extremely irritating when people keep asking about problems I have already solved for them. I am entitled to discourage that. It's part of making them more efficient actually.
    But it happens often enough that it also makes me think I'm just wasting my time. Probably I am.

  • Problems when i try to run a WebI query on top of a BW query

    Hi, people,
    All the time i try to run a query in WebIntelligence on top of a BW Query it raises the error message "A database error ocurred. The database error text is: Unable to create a cube. The connection is not connected to a cube (WIS 10901)".
    My installation is BOE XI 3.1 SP2 with IK for SAP SP2 on a Linux  Suse 64 bits environment.
    I did all the transports in BW side with the same patch level (SP2).
    any help, pls?
    thank you very much.
    Cesar.

    Hi Ingo,
    Here the answers:
    are you able to run the BW query in transaction RSRT ? YES
    does this happen even with a very simplified Web Intelligence report ?  YES
    does it happen with all reports on top of BW or only with a specific one ? it happens with all reports
    I saw the SAP notes 1282118 where I can find the same error, although in my case it is not an upgrade, but a new installation. It seems that some library for SAP Connectivity is not OK.
    Any help, pls?
    Thank you
    Cesar

  • How to Run Applets using HTML ?

    I am trying to add a java applet in an html file,
    by adding the line <applet code = "XXX.class" width = XXX height = XXX>
    and using AppletViewer I can see it, but my Explorer (IE6) just
    draws a gray frame, and echoes something like "class XXX not found"
    Please help me...
    I tried to change the path, and the location but it just doesn't work.
    10x

    http://java.sun.com/products/plugin/

  • Problem while migrating from Sybase to Oracle using Quick Migrate

    Hi,
    For SQL Developer version 2.1, while migrating from sybase to oracle, Using Quick migrate, during data move step, for the rows having ''(Blank) values in TEXT data type in SYBASE, which is convertd to CLOB in Oracle, the migration for that table terminates at that row.
    However, NULL values in Sybase TEXT data type are successfully inserted in Oracle CLOB.
    How can we overcome this?

    reproduced and see exception in console, bug logged.
    Edited by: Jade Zhong on Feb 1, 2010 6:10 PM

  • Getting AccessControlException when running Applet in AppletViewer

    I'm using Java 1.5, and NetBeans 4.1, when I try to run my applet in the AppletViewer in NetBeans I get the error message 'AccessControlException', which comes from me trying to access a text file on the local system to read from. I have checked the applet policy which reads,
    grant {
    permission java.security.AllPermission;
    Which looks fine to me? So I don't understand why I haven't got permission to access files??

    Thanks Sir!
    But it is also not working i.e "The IE gives a memory error and then terminate...."
    then from a sun tutorial exampl i used following HTML file which is working fine.
    <html>
    <head>
    <title>Chat Swing Applet</title>
    </head>
    <body BGCOLOR="#ffffff" LINK="#000099">
    <h2>
    Running Swing Applet
    </h2>
    <!--"CONVERTED_APPLET"-->
    <!-- CONVERTER VERSION 1.1 -->
    <SCRIPT LANGUAGE="JavaScript"><!--
    var info = navigator.userAgent; var ns = false;
    var ie = (info.indexOf("MSIE") > 0 && info.indexOf("Win") > 0 && info.indexOf("Windows 3.1") < 0);
    //--></SCRIPT>
    <COMMENT><SCRIPT LANGUAGE="JavaScript1.1"><!--
    var ns = (navigator.appName.indexOf("Netscape") >= 0 && ((info.indexOf("Win") > 0 && info.indexOf("Win16") < 0 && java.lang.System.getProperty("os.version").indexOf("3.5") < 0) || (info.indexOf("Sun") > 0) || (_info.indexOf("Linux") > 0)));
    //--></SCRIPT></COMMENT>
    <SCRIPT LANGUAGE="JavaScript"><!--
    if (_ie == true) document.writeln('<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH = 500 HEIGHT = 450 codebase="http://java.sun.com/products/plugin/1.1.2/jinstall-112-win32.cab#Version=1,1,2,0"><NOEMBED><XMP>');
    else if (_ns == true) document.writeln('<EMBED type="application/x-java-applet;version=1.1.2" java_CODE = "Client.class" java_CODEBASE = "./Chat" java_ARCHIVE = "*.class" WIDTH = 400 HEIGHT = 50 pluginspage="http://java.sun.com/products/plugin/1.1.2/plugin-install.html"><NOEMBED><XMP>');
    //--></SCRIPT>
    <APPLET CODE = "Client.class" CODEBASE = "./Chat" ARCHIVE = "*.class" WIDTH=500 HEIGHT=450 ></XMP>
    <PARAM NAME = CODE VALUE = "Client.class" >
    <PARAM NAME = CODEBASE VALUE = "./Chat" >
    <PARAM NAME = ARCHIVE VALUE = "Client.class" >
    <PARAM NAME="type" VALUE="application/x-java-applet;version=1.1.2">
    </APPLET>
    </NOEMBED></EMBED></OBJECT>
    </body>
    </html>

  • Can't run applet with appletviewer(java.io.FilePermission)

    Guys, I am writing an applet and it has compiled fine but when I try running it with appletviewer, it spews out these error. I have changed permissions on my .class file and .html file.
    Can anyone help? It's pretty frustrating...
    ava.security.AccessControlException: access denied (java.io.FilePermission /.automount/blah/usr/blah/blah/Node.class read)
    at java.security.AccessControlContext.checkPermission(AccessControlContext.java:272)
    at java.security.AccessController.checkPermission(AccessController.java:399)
    at java.lang.SecurityManager.checkPermission(SecurityManager.java:545)
    at java.lang.SecurityManager.checkRead(SecurityManager.java:890)
    thanks.

    See if you find anything here:
    http://search.java.sun.com/search/java/index.jsp?col=javaforums&qp=%2Bforum%3A31&qt=%22java.security.AccessControlException%3A+access+denied+%22&x=17&y=14
    It�s a search on the forum, users with the same error.
    Andreas

  • Problems while doing a rollback on MQSeries using a java client

    Hi,
    I'm new to using MQSeries with Java client. I have a kind of similar problem. I have a set of messages in a Queue. When i'm doing a rollback on certain message it's returing to the same pointer where it had come from in the queue. When i'm iterating through the messages in the queue using a for loop, the same message is again retireved. So, i tried to set the setMQGMO_MARK_SKIP_BACKOUT flag to true. But i'm getting an RequestException with error code 2046: MQRC_OPTIONS_ERROR
    Any help on this would be highlly appreciated.
    I'm pasting the code snippet below.
    Class X {
    public void receive(
    com.stc.connector.webspheremqadapter.message.IMessage input, com.stc.connector.webspheremqadapter.message.IMqOtd
    MQSeries_1){
    int msginqueue = MQSeries_1.getCurrentDepth();
    String corrID = "";
    byte[] corrIDInputArray = input.getMsgHeader().getCorrelationId();
    String corrInputID = (new String( corrIDInputArray )).trim();
    for (int i = 0; i < msginqueue; i = i + 1) {
    MQSeries_1.getQueue().getGMO().setMQGMO_SYNCPOINT( true );
    MQSeries_1.getQueue().getWithOptions();
    byte[] corrIDArray = MQSeries_1.getMessage().getMsgHeader().getCorrelationId();
    corrID = (new String( corrIDArray )).trim();
    if (corrID.equalsIgnoreCase( corrInputID )) {
    MQSeries_1.commit();
    } else {
    MQSeries_1.getQueue().getGMO().setMQGMO_MARK_SKIP_BACKOUT( true );
    MQSeries_1.backout();
    }

    I agree that you should check for a specific axis / tomcat forum (maybe on apache website??;)) anyway ... check the path and classpath you use while building the wsdd file and when running the adminclient, and check the syntax of its invokation

  • Problem while sending seriailized  object from applet to servlet

    Hi I m having Object communication between Applet and Servlet.
    I m getting error stack trace as
    java.io.EOFException
         at java.io.ObjectInputStream$PeekInputStream.readFully(Unknown Source)
         at java.io.ObjectInputStream$BlockDataInputStream.readShort(Unknown Source)
    at java.io.ObjectInputStream.readStreamHeader(Unknown Source)
         at java.io.ObjectInputStream.<init>(Unknown Source)
         at com.chat.client.ObjectClient.write(ObjectClient.java:56)
    at the line
    ObjectInputStream ois = new ObjectInputStream(conn.getInputStream());
    thanks in advance
    Ravi
    the whole code is as follows....
    public Serializable write(Serializable obj) throws IOException,ClassNotFoundException{
              URLConnection conn = serverURL.openConnection();
              conn.setDoOutput(true);
              conn.setDoInput(true);
              conn.setUseCaches(false);
              conn.setRequestProperty("Content-Type", "java-internal/"+obj.getClass().getName());
              conn.connect();
              ObjectOutputStream oos= null;
              try{
              oos = new ObjectOutputStream(
                   conn.getOutputStream());
                        oos.writeObject(obj);
                   catch(Exception ee){
                                       ee.printStackTrace();
                   finally{
                        if(oos!=null){
                             oos.flush();
                             oos.close();
                        return the reponse to the client
                   ObjectInputStream ois=null;
                   try{
    \\this is the line where i m getting the error               
    ois = new ObjectInputStream(conn.getInputStream());
                             return (Serializable)ois.readObject();
                        catch(Exception ee){
                                            System.out.println("Error in Object Client inputstream ");
                                            ee.printStackTrace();
                                            return null;
                        finally{
                             if(ois!=null){
                                  ois.close();

    Did anyone find a fix to this problem. I am having a similiar problem. Sometimes I receive an EOFException and othertimes I don't. When I do receive an EOFException I check for available() in the stream and it appears 0 bytes were sent to the Servlet from the Applet.
    I am always open to produce this problem when I use File->New in IE my applet loads on the new page.. and then I navigate to a JSP sitting on the same application server. When I go to the Applet on the initial page and try to send an object to the server I get an EOFException. No idea!

  • Sound problem while transimission over the network by using JMF API

    i had done an application which transmit audio and video over the network by using JMF API in JAVA. All my application work very well but i have a problem with the sound while i transmit it. this sound has a very bad quality (i am using AVReceive2.java) .
    has anyone an indication or solution for my problem
    it's very urgent, please help me.
    regards
    sar

    you can try modifing de Capture example from JMF Solutions.
    change this function:
    public int startCapture() {
         int result = -1;
         enableComponents(false);
         buttonStart.setLabel("Pause");
         buttonEnd.setEnabled(true);
         startMonitoring();
         try {
    processor.start();
    DataSource clone = Manager.createCloneableDataSource(datasource);
         MediaLocator ml2 = new MediaLocator("file://capture.mov");
    System.out.println("Content Type " + clone.getContentType());
    datasink = Manager.createDataSink(processor.getDataOutput(), ml2);
         datasink.open();
    datasink.addDataSinkListener(this);
         datasink.start();
    result = 0;
         } catch (Exception e) {
         System.err.println("DataSink Exception " + e);
    result= -1;
    Regards.
    Fernando

  • Problem while receiving a mail in blackberry using offline approval

    Dear SRM Gurus,
    We are working with SRM Server 5.5, SP08.
    We are using offline approval functionality using <b>Blackberry</b> device. We
    have observed that in an approval mail sent to blackberry, the approver
    does not see hyperlink for "Approve by mail" or "Reject by mail" text.
    However, when the same approval mail is checked on any other mail
    application like gmail or yahoo, we are able to get an hyperlink and
    approve the work item.
    While execution of report "RBBP_NOTIFICATION_OFFAPP", we have selected
    a checkbox "with approval links".
    Kindly suggest, how can we rectify this problem. We will appreciate your immediate help.
    Thanks in advance,
    chandra sekhar
    0062 081510685482

    Hi
    Yes, but for this you need have SAP MI (mobile infrastructure) configured in the landscape. MI is part of SAP NW. Integration of MI is possible with SRM2.0 and upwards.
    <u>For details refer -</u>
    http://service.sap.com/mobile - mobile procurement
    Re: Shopping Cart approval process in SRM using Black Berry
    Shopping Basket Approvals Through Blackberry
    <b>To change standard email text</b>
    Re: How can we change the standard email text?
    <b>There is a former thread dealing with text modification in the <u>RBBP_NOTIFICATION_OFFAPP</u> .</b>
    https://forums.sdn.sap.com/click.jspa?searchID=3694563&messageID=3714821
    <u>Configuration of Approval mails to Blackberry - Refer to the HELP links -></u>
    http://help.sap.com/saphelp_srm40/helpdata/en/5a/af5eff85d011d2b42d006094b92d37/content.htm
    <b>Other related links -></b>
    WF does not restart when requester accept changes
    RBBP_NOTIFICATION_OFFAPP
    Offline Approval: RBBP_NOTIFICATION_OFFAPP Vs RSWUWFMLEC
    RBBP_NOTIFICATION_OFFAPP
    Re: Offline approval
    Re: Is it possible to action an approval  work item sent to Lotus Notes mail
    http://help.sap.com/saphelp_erp2005/helpdata/en/index_srmaddon.htm
    WF-BATCH or not WF-BATCH....
    Do let me know.
    Regards
    - Atul

  • How to run Applet using jsp in netbeans 5.5

    hi,
    I want to run an applet program using jsp and tomcat. I have created an applet class in NetBeans 5.5 and also a Jsp. In that jsp I have given the <jsp:plugin type="" code="" ......> tag. But its not warking. Can any one please tell me the correct steps to run that applet?
    Thanks

    no clue???????????

Maybe you are looking for

  • How to convert a text file in lower case to upper case?

    I've a beginner in java world and I just come through the tutorial in http://java.sun.com/docs/books/tutorial/essential/io/filestreams.html showing how to copy a text file: import java.io.*; public class Copy { public static void main(String[] args)

  • Can't find folder/documents?

    When I search for a folder in spotlight, it doesn't come up, and neither do any of the files inside.  However when I go to Word and look at my recent files that I have saved to those locations (I am still able to do so) they're there.  What could the

  • OO ABAP + Performance

    Hi all… I have recently started working in an organization as an ABAP programmer. Earlier, as part of my curriculum, I have designed a couple of systems using UML and coded the same in JAVA. Having worked on OO systems, I have a few questions to ask

  • [SOLVED]how to use a VO that has bind variables in a Tree

    Hi, I have 3 view objects that I have linked using ViewLinks. My last object - the details is based on a View Object that takes in a bind parameter for use in its where clause. Originally when I used this View Object I could set this where clause by

  • Cwjava.exe uses 100% utilization in LMS 3.1

    We have observed that cwjava.exe process nearle utilizing 80% - 90% cpu utilization in LMS 3.1 It makes that LMS server responding slow. Please tell how to overcome this problem.