Blank applet using Sun JRE plug-in on 10g

I have successfully run multiple forms using WebUtil with JInitiator on 10g DS and
AS. I have been struggling with getting forms to show up in the applet when I try to
use webutiljpi.htm. When I try to run a form from the builder, It loads an applet with
a broken image icon in the upper left hand corner and the status bar reads:
Loading Java Applet Failed...The java console gives me this(removed header stuff):
Java Plug-in 1.5.0_12
Using JRE version 1.5.0_12 Java HotSpot(TM) Client VM
User home directory = C:\Documents and Settings\xxxxxx
load: class oracle.forms.webutil.common.RegisterWebUtil not found.
java.lang.ClassNotFoundException: oracle.forms.webutil.common.RegisterWebUtil
I looked in Metalink and found an article talking about the webutil.cfg file and
assuring that the path to frmwebutil.jar isn't identified properly, but I think it is.
Anyway, I'm stuck and I must be missing something easy. Here are the entries for
my JInitiator and JPI configs and my default.env file. Any help would be greatly
appreciated.
[jasonjpi]
WebUtilArchive=frmwebutil.jar,jacob.jar
WebUtilLogging=off
WebUtilLoggingDetail=normal
WebUtilErrorMode=Alert
WebUtilDispatchMonitorInterval=5
WebUtilTrustInternal=true
WebUtilMaxTransferSize=16384
baseHTMLjinitiator=webutiljpi.htm
baseHTMLjpi=webutiljpi.htm
archive_jini=frmall_jinit.jar
archive=frmall.jar,frmwebutil.jar,Jacob.jar
lookAndFeel=oracle
pageTitle=10g Development
width=950
height=600
splashscreen=false
background=false
#colorScheme=blue
logo=false
codebase=c:\oracle\ora10g\forms\java
workingDirectory=f:\oraapps\dev\assist\fmb10g\jason_conversion\
envFile=default.env
jpi_classid=clsid:8AD9C840-044E-11D1-B3E9-00805F499D93
jpi_codebase=https://java.sun.com/update/1.5.0/jinstall-1_5-windows-i586.cab#Version=1,4,2,4
jpi_mimetype=application/x-java-applet;version=1.4.2
jpi_download_page=https://java.sun.com/j2se/1.5.0/download.html
[jasonwebutil]
WebUtilArchive=frmwebutil.jar,jacob.jar
WebUtilLogging=off
WebUtilLoggingDetail=normal
WebUtilErrorMode=Alert
WebUtilDispatchMonitorInterval=5
WebUtilTrustInternal=true
WebUtilMaxTransferSize=16384
baseHTMLjinitiator=webutiljini.htm
baseHTMLjpi=webutiljpi.htm
archive_jini=frmall_jinit.jar
archive=frmall.jar
lookAndFeel=generic
pageTitle=Assist - 10g Development
width=950
height=600
splashscreen=false
background=false
colorScheme=blue
logo=false
workingDirectory=f:\oraapps\dev\assist\fmb10g\jason_conversion\
default.env
ORACLE_HOME=C:\oracle\ora10g
FORMS_PATH=C:\oracle\ora10g\forms;c:\oracle\ora10g\forms\java;F:\oraapps\dev\Assist\fmb10g\Jason_Conversion;g:\oraapps\prod\assist\icons
WEBUTIL_CONFIG=C:\oracle\ora10g\forms\server\webutil.cfg
FORMS_RESTRICT_ENTER_QUERY=TRUE
PATH=C:\oracle\ora10g\bin;C:\oracle\ora10g\jdk\jre\bin\client
FORMS=C:\oracle\ora10g\forms
CLASSPATH=C:\oracle\ora10g\j2ee\OC4J_BI_Forms\applications\formsapp\formsweb\WEB-INF\lib\frmsrv.jar;C:\oracle\ora10g\jlib\repository.jar;C:\oracle\ora10g\jlib\ldapjclnt10.jar;C:\oracle\ora10g\jlib\debugger.jar;C:\oracle\ora10g\jlib\ewt3.jar;C:\oracle\ora10g\jlib\share.jar;C:\oracle\ora10g\jlib\utj.jar;C:\oracle\ora10g\jlib\zrclient.jar;C:\oracle\ora10g\reports\jlib\rwrun.jar;C:\oracle\ora10g\forms\java\frmwebutil.jar

Hi,
Can you define
[jasonjpi]
WebUtilArchive=frmwebutil.jar,jacob.jar -- you use jacob.jar but it isn't in your classpath in your default .env . You must add it there too
WebUtilLogging=off
WebUtilLoggingDetail=normal
WebUtilErrorMode=Alert
WebUtilDispatchMonitorInterval=5
WebUtilTrustInternal=true
WebUtilMaxTransferSize=16384
baseHTMLjinitiator=webutiljpi.htm
baseHTMLjpi=webutiljpi.htm
archive_jini=frmall_jinit.jar
archive=frmall.jar,frmwebutil.jar,Jacob.jar -- remove frmwebutil an jacob.jar here
lookAndFeel=oracle
pageTitle=10g Development
width=950
height=600
splashscreen=false
background=false
#colorScheme=blue
logo=false
codebase=c:\oracle\ora10g\forms\java --replace by codebase=/forms/java should be virtual directoryworkingDirectory=f:\oraapps\dev\assist\fmb10g\jason_conversion\
envFile=default.env
this is a little messy ;-)
jpi_classid=clsid:8AD9C840-044E-11D1-B3E9-00805F499D93
jpi_codebase=https://java.sun.com/update/1.5.0/jinstall-1_5-windows-i586.cab#Version=1,4,2,4
jpi_mimetype=application/x-java-applet;version=1.4.2
jpi_download_page=https://java.sun.com/j2se/1.5.0/download.html
should be
jpi_classid=clsid:CAFEEFAC-0015-0000-0012-ABCDEFFEDCBA
jpi_codebase=https://java.sun.com/update/1.5.0/jinstall-1_5-windows-i586.cab#Version=1,5,0,12
jpi_mimetype=application/x-java-applet;version=1.5.0
jpi_download_page=https://java.sun.com/j2se/1.5.0/download.html
then try again. Normally you even don't have to restart your OC4J
Hope it helps
Erwin

Similar Messages

  • Arabic Characters Alef & Lam Appear Incorrect at Runtime using Sun JRE/JPI

    Hi,
    We implemented Sun JRE for Oracle EBS 11i in Production on 7th Jan 2009.
    We went with Sun JRE 1.6.0_07 as we faced new Broswer Minimizing Problem in IE with 1.6.0_10 and 1.6.0_11.
    Now we have some issue related to Arabic Characters Alef and Lam - Doc Id 731703.1.
    The solution is to use 1.6.0_11 but we can't. I would like to know if there is any work around without using 1.6.0_11.
    Thanks
    Thiru

    Hi,
    We have the problem with 1.6.0_11 also.
    I checked in TEST instance. Strangly the problem is only while using Arabic Forms thru Arabic Login.
    If we login thru English Login and access the same Form in Enlgish and then type in Arabic there is no problem. I got these details from our Arabic Consultants.
    I am trying the revert back to jinitiator.
    Rgds,
    Thiru

  • Ruuning applet using specified JRE.

    Hi,
    I have applet, which has to run using JRE1.5.0_15. But, I have 1.6 installed, the applet gets started using 1.6.
    I have read and corrected my applet to object, which keeps giving error saying that object not supported. Could you please convert the below, which will use JRE1.5.0_15
    var appletString = '<applet id="kanaAppLauncher" codebase="lib/" archive="response_s.jar,kc_sharedGUI_s.jar,link_s.jar,jdic_s.jar,javaws_s.jar" code="kana.response.wkstn.KanaAppLauncherApplet" width="0" height="0" MAYSCRIPT></applet>';
    Thanks
    Shanmu

    The JRE should be controlled through use of compiler options.
    However, the use of 1.6 should be ok as long as the code is
    compiled to follow 1.5 rules.
    The 'javac' compiler includes two parameters '-source' and '-target'.
    For your case, you might try the following:
    javac -source 1.5 -target 1.5
    The '-source' param should force the compiler to reject any Java 1.6 syntax that is not backward compatible with Java 1.5 and should compile as if using the java compiler for 1.5.
    The '-target' param should require 1.5 or later. Although your goal is to force the applet to use a specific JRE, using JRE 1.6 with code compiled to run under 1.5 from the '-source' should make it work as you expect.
    Have you tried this already? If so, what problems did you run into?

  • WEBUTIL and Sun Java Plug-In

    Hello friends:
    how can I setup my formsweb.cfg to use Sun Java Plug-In (instead of JInitiator) and WEBUTIL?
    I tried all I can but still send me the same error when I try to use some of its functionalities:
    oracle.forms.webutil.fileTransfer.FileTransfer bean not found. Webutil_file_trnasfer.getmaxtransfer will not work.
    This errors happens no matter which webutil function or procedure am I using.
    Does anybody know which is the cause of the problem or have some example to config my formsweb.cfg for Sun Java Plug-In and WEBUTIL.
    Thanks so much
    Abdel

    I did it.
    But it sends me this error now:
    load: class oracle.forms.webutil.common.RegisterWebUtil not found.
    java.lang.ClassNotFoundException: oracle.forms.webutil.common.RegisterWebUtil
         at sun.applet.AppletClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadCode(Unknown Source)
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Caused by: java.io.IOException: open HTTP connection failed.
         at sun.applet.AppletClassLoader.getBytes(Unknown Source)
         at sun.applet.AppletClassLoader.access$100(Unknown Source)
         at sun.applet.AppletClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         ... 10 more
    Exception in thread "Thread-5" java.lang.NullPointerException
         at sun.plugin.util.GrayBoxPainter.showLoadingError(Unknown Source)
         at sun.plugin.AppletViewer.showAppletException(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    java.lang.NullPointerException
         at sun.plugin.util.GrayBoxPainter.showLoadingError(Unknown Source)
         at sun.plugin.AppletViewer.showAppletStatus(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Any suggestions?
    thanks for your help.
    AM

  • Logo not displayed in MS JVM to Sun JRE conversion

    Hi,
    We have a small MS JVM version of application which we converted to Sun JRE. It has only one applet (we made it to <Object>). Applet code tries to load a logo using following code
    URL url = getMainApplet().getCodeBase();
    String protocol = url.getProtocol();
    String host = url.getHost();
    String file = url.getFile();
    file = file.concat("images\\weblogo.gif");
    URL imageURL = new URL(protocol,host,file);
    Image weblogoImage = Toolkit.getDefaultToolkit().getImage(imageURL);
    imagePanel = new ImagePanel(weblogoImage);
    //imagePanel.setBounds(7,2,101,47);
    imagePanel.setBounds(4,1,101,47);
    add(imagePanel);
    Some how it works fine with MS JVM but when we use sun jre..logo doent come..no error shown on console...
    Any one has any idea...
    thanks in advance..
    Anand
    Message was edited by:
    anand8030

    I also have same problem with my WinXP-SP1 and I also had removed MSJVM through the Microsoft utility. Since then I am having problems using Java based sites. To solve this problem I upgraded my JRE from 1.4.1_xx to 1.4.2_04, now the problem is completly different. I am prompted to download Java Virtual Machine which opens a page from Microsoft web site saying that you need MSJVM but then that site works fine, I can use Java applets in that site. If I refuse to download the Java Virtual Machine (which just opens the Microsoft page) then it does not work. Only problem is I am prompted to download Java Virtual Machine and I have to click on Download button.
    I have done everything to solve this problem unistalled JRE..restart..installing JRE...restart..and then checked http://www.java.com/en/download/help/testvm.jsp but problem is still same.
    I am highly frusteated with this. I think there are thousands of users who have same problem and Sun should have taken some initiative to solve this problem for Microsoft is not going to do anything in this regard. I seach Google and various forums and found tens of same problem with unresolved queries. Or Sun has taken any initiative in this regard.
    JRE is working fine in my Firefox browser.
    Thanks

  • **Urgent**: GO_ITEM to pop-up CANVAS with IMAGE in Sun JRE gives error

    Our Forms 10g Environment is this: Forms [32 Bit] Version 10.1.2.0.2 (Production) using Sun JRE i.e. Java Plug-in 1.6.0_06
    Problem is that when we try to navigate to a canvas (from a Button) which has an IMAGE ITEM the form is exited. This happens in every form which has a canvas with an image.
    i.e. In Button, we have code: Go_Item('block123.button1'). Button1 is also in that pop-up canvas.
    Even GO_BLOCK gives the same result.
    If the image is in the same canvas as the button which has GO_ITEM code, then it works.
    Of course this whole things works fine in JInit. But we need to run in Sun JRE.
    Is this a Bug?? Any help would be greatly appreciated.

    christian erlinger wrote:
    Well, as you are on 10.1.2.0.2 I strongly suggest that you apply the latest Patchset (10.1.2.3) the latest CPU Patches and the latest merge Patches. A lot of focus related things are fixed in those patches.
    cheersI will do this and let u know thans.

  • BEA JRE 1.5.0 vs SUN JRE 1.5.0

    Having tried both these JREs as Internet Explorer and FireFox plug-ins, I have found an applet related issue with the BEA JRE.
    Visit this URL:
    http://www.jython.org/applets/index.html
    It should launch a small Jython applet. SUN JRE 1.5.0 loads and runs the applet just fine in both FireFox and IE. The BEA JRE 1.5.0 fails to launch this applet from both these browsers.
    Interestingly enough, I can run Jython from the command-line with BEA JRE 1.5.0.
    java version "1.5.0"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-b64)
    BEA WebLogic JRockit(R) (build dra-38972-20041208-2001-win-ia32, R25.0.0-75
    tial strategy singleparpar))
    Jython 2.1 on java1.5.0 (JIT: null)
    Type "copyright", "credits" or "license" for more information.
    >>>

    Hi Joel,
    This problem exists in JRockit based on J2SE versions up to and including 1.5.0_06, as with Sun. We have verified that it is fixed in an internal build we have based on 1.5.0_07. Unfortunately, that release will probably be some months away.
    If you need a patch to an existing JRockit version, please open a ticket with BEA Support.
    -- Henrik

  • Sun Java Plug-in with Developer forms 10.1.2.0.2

    Someone ask me (here at my work) if we can switch between JInitiator to Sun Java Plug-in.
    I am not sure about Sun Java Plug-in implementation or even more, I don't have any documentation about it.
    Is these possible?
    We can use our web application through the internet using Sun Java Plug-in instead of JInitiator?
    How can I setup to do that?
    thanks a lot.
    Abdel Miranda

    HI people:
    I have a wear behavior in my web application using Java Plug-in.
    Let me put my environment straight:
    1. iDS 10g Rel. 10.1.2.x
    2. OC4J Enbedded on iDS
    3. Webutil 1.0.6
    Problem:
    I can test one module at time, and they works just fine, without any problem or error or bad behavior.
    But, if I access my complete application, which has menu, modules, reports, etc. It has some wear and strange behavior. If I try to move to any item on any module with the mouse it can be possible.
    I don't really know which are the problem with this behaivor but these issues occur as soon as I connect to the application. The main module is a log in screen. It works fin, let me move with the mouse or with the keyboard. But after write the user, password and string info and press the connect button, the behavior change.
    It doesn't matter which module I access, I can't move or use my mouse to execute any operation on any module.
    The only moves I can do is press the button bar or the menu options associated with the main module.
    Does anybody has an idea of these wear behavior.
    I need help ASAP.
    Thanks in advanced.
    Abdel Miranda

  • Using the Sun JRE

    Hi.  We currently force the use for Java 6, version 22 by placing this code in the formsweb.cfg file:
    [code]
    ### Define the default SUN JRE
    ### Java Plug-in 6 22
    jpi_download_page=http://java.sun.com/javase/downloads/
    ### Parameter related to the version of the Java Plugin
    jpi_classid=clsid:CAFEEFAC-0016-0000-0022-ABCDEFFEDCBA
    ### Parameter related to the version of the Java Plugin
    jpi_codebase=http://java.sun.com/update/1.6.0/jinstall-6u22-windows-i586.cab#Version=1,6,0,22
    ### Parameter related to the version of the Java Plugin
    jpi_mimetype=application/x-java-applet;jpi-version=1.6.0_22
    [code]
    If I want to change this confirguration so that users always use the latest version of the Sun JRE, how would I modify this code?
    Any help would be greatly appreciated.  Thanks.

    sharpe wrote:
    Hi.  Thank you so much!
    Is there a reason I would want to let users use any version of Java 1.6, but not Java 1.7?  Is it not possible to use the same logic, but to allow the users to use any version of Java 1.7?  Or is it unwise for some reason?
    I'm just curious because sometimes my users are automatically prompted to install the latest version of Java, which is version 7, update 45 (I believe).  And when they do that installation then our Web Form applications start to prompt them that they need to install the correct version of the plug-in.  So I uninstall version 7, update 45 and Web Forms is fine again.  Any thoughts on the best way to be handling the Java plug-ins?
    Hello Sharpe,
    Good Day. From your post we don't know what is your application server version. guess 10.x.x.x.x as you are talking about JRE 1.6.
    JRE 1.7 is not compatible with AS 10.x.x.x.
    So, if your user wish to install JRE 1.7, make sure JRE 1.6 also installed in the same pc. Now what can you do ? Yes. you can restrict a web browser to run only selected Java plugins not other one. You can manage this from Add-Ons manage settings.
    This restrict user, use specific browser for you application.
    Hope this helps
    Hamid

  • Please help...Problem with 3D Applet using JRE 1.5

    Hi all,
    I have an applet which uses sun opengl 1.3.1 plugin to render some 3D graphics. It is working fine with JRE 1.4.2_06, but not showing the 3D graphics with the latest JRE 1.5 release. I tried to repaint using available API with no success.
    Please help asap,
    Thanks in advance
    prasad

    I wonder if you have the same problem as me... Maybe we can find a solution for us both, no need for me to open a new thread for this topic then...
    I wrote an applet using Swing and compiled it using JavaSDK 1.4.x. I also installed the 1.4.x JRE for both of my test browsers. In Mozilla 1.1 the applet displays properly all the time. In IE6 SP1 it sometimes works as intended but sometimes the applet simply stops working, as per my Java Console somewhere after invoking the "start" method. Parts of the applet simply become gray and when I resize it - I have a JFrame in my applet - the whole JFrame becomes gray and does not respond to input nor it redraws itself. Shutting down IE does not close the JFrame(although the java console reports normal program termination and cleanup) and the only way to close it is through the task manager. I am using Windows 98SE btw.
    Does it sound similiar to your problem? It happens ONLY with IE, not with Mozilla. Anybody has an idea on what it could be? I doubt there's an error in my code...

  • How confgure applet to use latest jre from its own family and not the next

    Hi!
    I have configured oracle forms for using latest 1.4.2 sun jre. The problem is, that dynamic versioning uses the latest installed sun jre. This is in my case 1.5.0_02. But I have installed several 1.4.2 versions too. How can I restrict dynamic versioning to 1.4.2 family?
    Actual configuration:
    jpi_classid=clsid:8AD9C840-044E-11D1-B3E9-00805F499D93
    jpi_codebase=https://java.sun.com/products/plugin/autodl/jinstall-1_4_2-windows-i586.cab#Version=1,4,2,5
    jpi_mimetype=application/x-java-applet;version=1.4.2
    regard
    Torsten Kleiber

    I also have this problem - and I am looking to use a CLSID that runs the latest version of 1.4.2 but does NOT run 1.5, even if it is installed.
    Alternatively, I investigated writing a javascript to get the JRE version installed on the client machine, but this requires an Active X object and is only available for Windows systems.
    var javaVersion;
    var shell;
    try
    shell = new ActiveXObject("WScript.Shell");
    if (shell != null)
    try
    javaVersion = shell.regRead("HKEY_LOCAL_MACHINE\\Software\\JavaSoft\\Java Runtime Environment\\CurrentVersion");
    You could see if 1.5 is installed and then either not load java and request user download 1.4.2, or use the "dynamic CLSID" clsid:8AD9C840-044E-11D1-B3E9-00805F499D93 in the case where 1.5 is not installed and you will get the latest version of 1.4.2
    The CLSID would be the simplest solution - have Sun thought of this and are not telling!!?

  • Slow Oracle Forms 10gR2 using  Sun's JRE on Windows 7 x64

    Hi,
    We are running Application Server 10gR2 10.1.2.3 and we've been running Sun's JRE on Windows XP SP3 just fine. It is snappy and with the exception of a couple of minor issues, everything works well.
    We are now testing a few new workstations running Windows 7 x64 (64bit) with Sun's JRE again and the performance is just horrible. It is almost unusable. We've tried both 32bit (x86) jre and x64 (64bit) no difference. We also tried Firefox (only comes in 32bit version) and the same problem.
    Oddly the problem does not exist on Windows 7 x86 (32bit). Anyone have any ideas or suggestions to get it to behave?
    Thanks.
    George.

    First, I think we need to clarify what is and is not certified for use with 10.1.2.3 so that other readers don't misunderstand what is being discussed.
    Forms 10.1.2.3 has been certified to use Windows 7 x64 with IE8 and Sun JRE 1.6.0_16+ (32bit only). Refer to the new Forms 10.1.2 Client Statement of Direction which can be found here:
    http://www.oracle.com/technetwork/developer-tools/forms/clientsod-forms10gr2-088253.html
    If you have previously bookmarked the SOD, please update your bookmark as this is a new location.
    Second, without knowing at least some details about the app and even how the client machine is used, it will be difficult to offer any specifics. In general, I don't believe that we (Oracle) have had any specific complaints. However, we are currently investigating at least one performance complaint (it may be yours :) ), but so far details are limited so we don't have much to go on.
    In order for anyone to understand a performance problem we must first understand exactly what is meant be terms like "degraded", "slow", etc. In the case of this thread, it has been claimed that it takes "2 seconds" to get from field to field. Is this an accurate measurement or an exaggerated guess? We also need to understand the app and the environment. For example:
    1. Besides the change in the JRE from one version to another, what else has changed? For example, are more users accessing the server, was the server or Application Server patched, have there been networking changes, has SSL been enabled where it previously was not, etc.
    2. Besides the Forms application, are any other java applications running on the client machine when this performance issue is experienced?
    3. Are there any fat applications running on the client machine? For example, some virus scanners tend to hog significant levels of resources and degrade performance from other apps. Email client software also tends to be fat and hog resources (I won't mention names here :) ). Disable or terminate fat apps and retest. What is the result?
    4. Does the Forms application execute client side java? For example, WebUtil, custom Beans, etc?
    5. Is the client machine configured to access mapped drives (either related or not related to the Forms app)?
    6. Has JRE tracing or logging been enabled? This setting can be found on the Java Control Panel (Advanced tab). If yes, disable it.
    7. Have you tested setting the JRE "..next-generation Java Plug-in" to OFF? This is also on the Advanced tab of the Java Control Panel under "Java Plug-in". Restart the browser will be necessary.
    8. On the server, are the application's modules (fmx, mmx, plx, etc) stored locally with the installation of Application Server or are then access via a net drive?

  • Problem in loading an applet using JRE 1.5

    Hi,
    I have an applet which is working fine under JRE 1.4, but the same applet failing to load by using JRE 1.5
    Problem Description:
    1. The images in the applet fails to load using JRE 1.5
    2. The Username and Password text box are also failing to initialize.
    Can anyone help me out in this.
    Is there any code changes required ?

    I wonder if you have the same problem as me... Maybe we can find a solution for us both, no need for me to open a new thread for this topic then...
    I wrote an applet using Swing and compiled it using JavaSDK 1.4.x. I also installed the 1.4.x JRE for both of my test browsers. In Mozilla 1.1 the applet displays properly all the time. In IE6 SP1 it sometimes works as intended but sometimes the applet simply stops working, as per my Java Console somewhere after invoking the "start" method. Parts of the applet simply become gray and when I resize it - I have a JFrame in my applet - the whole JFrame becomes gray and does not respond to input nor it redraws itself. Shutting down IE does not close the JFrame(although the java console reports normal program termination and cleanup) and the only way to close it is through the task manager. I am using Windows 98SE btw.
    Does it sound similiar to your problem? It happens ONLY with IE, not with Mozilla. Anybody has an idea on what it could be? I doubt there's an error in my code...

  • Can't parse xml from applet using dom on linux on Netscape 7 using jre 1.4.

    Hi,
    I can't seem to parse xml from an applet on linux on Netscape 7 using the JRE 1.4.
    My code looks like the following:
    StringBufferInputStream is = new StringBufferInputStream("<foo></foo>");
    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
    DocumentBuilder builder = null;
    try
      builder = factory.newDocumentBuilder();
      domDocument = builder.parse(is); // this line creates an exception
    catch (Exception e)
      System.out.println(e);
    This code works fine from an applet on windows. On linux, the error message is:
    java.security.AccessControlException: access denied (java.util.PropertyPermission entityExpansionLimit read)
    I've tried both JRE 1.4.0_04 and 1.4.1_03
    Thanks!
    Q

    There's another posting about this same problem (platform unspecified), but the same error message. I was also having this problem (Windows 1.4.03) and swithced back to 1.4.01 and the problem went away. In the future, I may sign my applets to get a more generous security policy. But, I'm sure it'll be a lot of work (vs. a line of code somewhere).

  • Writing new HTML to a page from an applet using LiveConnect, 1.3.1 Plug-i

    Has anyone been able to successfully replace a page with an applet with the dynamically generated HTML from an applet using LiveConnect and Plugin 1.3.1 in Netscape 6.2 or IE?
    The following works fine without plugin or with 1.4.0 beta3 plugin.
    Here is the code that I use without plugin:
    JSObject windowObject = JSObject.getWindow(this);
    JSObject documentObject = (JSObject) windowObject.getMember("document");
    documentObject.call("close",null);
    documentObject.call("open",null);
    String anArray1[] = {null};
    anArray1[0] ="some HTML here";
    documentObject.call("write", anArray1);
    documentObject.call("close",null);
    Here is the code that I use with 1.4.0 plugin:
    JSObject windowObject = JSObject.getWindow(this);
    JSObject documentObject = (JSObject) windowObject.getMember("document");
    String anArray1[] = {null};
    anArray1[0] ="some HTML here";
    documentObject.call("write", anArray1);
    When I try to use anyone of the above using plugin 1.3.1, the browser either hangs or plugin generates runtime error. What is the correct way of writing to a document object? Or what is the way that works for 1.3.1 plugin?

    Hi,
    I am doing this in my applet to replace the page containing the applet with the new content. I tested that extensively with Netscape 4.7 and IE 5.5+. Definitely works if you are using Java Plug-In 1.3.1_02. Does not work well in Netscape 6.2.
        protected void setPageContent(final String newContent) {
            final JSObject window = JSObject.getWindow(this);
            final JSObject document = (JSObject) window.getMember("document");
            new Thread( new Runnable() {
                            public void run() {
                                document.call("clear", null);
                                document.call("write", new String[]{newContent});
                                try {
                                              document.call("close", null);
                                   } catch (JSException ignored) {
                        } ).start();

Maybe you are looking for