3 Replies Latest reply on Aug 24, 2006 7:11 AM by Salman Qureshi

    Unable to cache jar files while runing forms application

    Salman Qureshi
      I have a forms application deployed on application server 10g release 1 (9.0.4).
      When i call application (http://rg:7779/rg) , i see java console in my task bar's tray and when i open it i see the following error
      ****************************************************************************
      java.net.ConnectException: Operation timed out: connect
      at java.net.PlainSocketImpl.socketConnect(Native Method)
      at java.net.PlainSocketImpl.doConnect(Unknown Source)
      at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
      at java.net.PlainSocketImpl.connect(Unknown Source)
      at java.net.Socket.<init>(Unknown Source)
      at java.net.Socket.<init>(Unknown Source)
      at sun.net.NetworkClient.doConnect(Unknown Source)
      at sun.plugin.protocol.jdk12.http.HttpClient.doConnect(Unknown ource)
      at sun.net.www.http.HttpClient.openServer(Unknown Source)
      at sun.net.www.http.HttpClient.openServer(Unknown Source)
      at sun.net.www.http.HttpClient.<init>(Unknown Source)
      at sun.net.www.http.HttpClient.<init>(Unknown Source)
      at sun.plugin.protocol.jdk12.http.HttpClient.<init>(Unknown Source)
      at sun.plugin.protocol.jdk12.http.HttpClient.New(Unknown Source)
      at sun.plugin.protocol.jdk12.http.HttpURLConnection.privBlock(Unknown Source)
      at sun.plugin.protocol.jdk12.http.HttpURLConnection$PrivilegedBlockAction.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      at sun.plugin.protocol.jdk12.http.HttpURLConnection.connect(Unknown Source)
      at sun.plugin.protocol.jdk12.http.HttpURLConnection.getInputStream(Unknown Source)
      at oracle.jre.protocol.jar.HttpUtils.followRedirects(Unknown Source)
      at oracle.jre.protocol.jar.JarCache$CachedJarLoader.download(Unknown Source)
      at oracle.jre.protocol.jar.JarCache$CachedJarLoader.load(Unknown Source)
      at oracle.jre.protocol.jar.JarCache.get(Unknown Source)
      at oracle.jre.protocol.jar.CachedJarURLConnection.connect(Unknown Source)
      at oracle.jre.protocol.jar.CachedJarURLConnection.getJarFile(Unknown Source)
      at sun.misc.URLClassPath$JarLoader.getJarFile(Unknown Source)
      at sun.misc.URLClassPath$JarLoader.<init>(Unknown Source)
      at sun.misc.URLClassPath$2.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      at sun.misc.URLClassPath.getLoader(Unknown Source)
      at sun.misc.URLClassPath.getLoader(Unknown Source)
      at sun.misc.URLClassPath.getResource(Unknown Source)
      at java.net.URLClassLoader$1.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(Unknown Source)
      at sun.applet.AppletClassLoader.findClass(Unknown Source)
      at sun.plugin.security.PluginClassLoader.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)
      WARNING: Unable to cache http://rg.lhr.systemsltd.com:7779/forms90/java/f90all_jinit.jar
      load: class oracle.forms.engine.Main not found.
      java.lang.ClassNotFoundException: java.net.ConnectException: Operation timed out: connect
      at java.net.PlainSocketImpl.socketConnect(Native Method)
      at java.net.PlainSocketImpl.doConnect(Unknown Source)
      at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
      at java.net.PlainSocketImpl.connect(Unknown Source)
      at java.net.Socket.<init>(Unknown Source)
      at java.net.Socket.<init>(Unknown Source)
      at sun.net.NetworkClient.doConnect(Unknown Source)
      at sun.plugin.protocol.jdk12.http.HttpClient.doConnect(Unknown ource)
      at sun.net.www.http.HttpClient.openServer(Unknown Source)
      at sun.net.www.http.HttpClient.openServer(Unknown Source)
      at sun.net.www.http.HttpClient.<init>(Unknown Source)
      at sun.net.www.http.HttpClient.<init>(Unknown Source)
      at sun.plugin.protocol.jdk12.http.HttpClient.<init>(Unknown Source)
      at sun.plugin.protocol.jdk12.http.HttpClient.New(Unknown Source)
      at sun.plugin.protocol.jdk12.http.HttpURLConnection.privBlock(Unknown Source)
      at sun.plugin.protocol.jdk12.http.HttpURLConnection$PrivilegedBlockAction.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      at sun.plugin.protocol.jdk12.http.HttpURLConnection.connect(Unknown Source)
      at sun.plugin.protocol.jdk12.http.HttpURLConnection.getInputStream(Unknown Source)
      at java.net.HttpURLConnection.getResponseCode(Unknown Source)
      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)
      at sun.applet.AppletClassLoader.findClass(Unknown Source)
      at sun.plugin.security.PluginClassLoader.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)
      ****************************************************************************
      the jar files which you can see in error is present in $ORACLE_HOME/forms90/java

      and my environment is set in rg.env file
      value of CLASS_PATH is as follows
      *************
      /u01/oracle/product/9.0.4/app/j2ee/OC4J_BI_Forms/applications/forms90app/forms90web/WEB-INF/lib/f90srv.jar:/u01/oracle/product/9.0.4/app/jlib/repository.jar:/u01/oracle/product/9.0.4/app/jlib/ldapjclnt9.jar:/u01/oracle/product/9.0.4/app/jlib/debugger.jar:/u01/oracle/product/9.0.4/app/jlib/ewt3.jar:/u01/oracle/product/9.0.4/app/jlib/share.jar:/u01/oracle/product/9.0.4/app/jlib/utj90.jar:/u01/oracle/product/9.0.4/app/jlib/zrclient.jar:/u01/oracle/product/9.0.4/app/reports/jlib/rwrun.jar:/u01/oracle/product/9.0.4/app/forms90/java/webutil.jar:/u01/oracle/product/9.0.4/app/forms90/java/jacob.jar
      *************

      I have created a section rg in my formsweb.cfg file which is telling that which environment file is to be used.
      Can anyone tell where the problem is and where should i look for errors?
      Regards
        • 1. Re: Unable to cache jar files while runing forms application
          411060
          Hi,

          If you are using proxy settings in your browser, you may try to omit them. This could solve the problem.
          However, I have encountered the same problem on Win XP Pro, Forms 10g, Release 2, Oracle 9i (9.2.0.7.0). Using Application server (<machine>:<port>/forms/frmservlet>, which is installed on Unix.
          And in this situation, the changing or omitting browser proxy settings has NOT solved the problem.

          Let me know if you find anything useful, OK? I will do the same.

          Grtx,
          Remco
          • 2. Re: Unable to cache jar files while runing forms application
            Salman Qureshi
            Well, i faced this error "unable to cache" once before and the reason was that jar files which need to be cached at client side had not timestamp assigned to them on my linux system where application server was installed, the reason which i came to know was that i coppied them from a windows system. To resolve this problem at that time, i coppied them on my linux server and then pasted again there and this time my linux server generated TIMESTAMP for my those files and it started working fine.

            This time i really didnt know what happend but now i am gona tell you a strange story. If i use http://rg:1810 (in firefox browser) i can see admin page of my application server control and if i use http://rg.lhr.systemsltd.com:1810, it displays error "Time out ouucred......" (This kind of error).

            But inter explorer doesn't report any error and works fine.
            now in my error message you can see that first APPLET goes to "http://rg.lhr.systemsltd.com:7779/forms90/java/webutil.jar" to cache the file and as this is using a fully qualified name of my server so it is unable to find that server as MOZILA did and returned connection time out type of error message.

            Now i changed the server name and then did a fresh installation and it started working fine. It means there is some problem with my DNS which is causing application applet could not find files if fully qualified name of server is used.

            regards
            • 3. Re: Unable to cache jar files while runing forms application
              Salman Qureshi
              Well, i faced this error "unable to cache" once before and the reason was that jar files which need to be cached at client side had not timestamp assigned to them on my linux system where application server was installed, the reason which i came to know was that i coppied them from a windows system. To resolve this problem at that time, i coppied them on my linux server and then pasted again there and this time my linux server generated TIMESTAMP for my those files and it started working fine.

              This time i really didnt know what happend but now i am gona tell you a strange story. If i use http://rg:1810 (in firefox browser) i can see admin page of my application server control and if i use http://rg.lhr.systemsltd.com:1810, it displays error "Time out ouucred......" (This kind of error).

              But inter explorer doesn't report any error and works fine.
              now in my error message you can see that first APPLET goes to "http://rg.lhr.systemsltd.com:7779/forms90/java/webutil.jar" to cache the file and as this is using a fully qualified name of my server so it is unable to find that server as MOZILA did and returned connection time out type of error message.

              Now i changed the server name and then did a fresh installation and it started working fine. It means there is some problem with my DNS which is causing application applet could not find files if fully qualified name of server is used.

              regards