6 Replies Latest reply on Mar 18, 2009 8:40 AM by 525306

    webutil problem

    525306
      Hi,
      I patched server with p8217396_10123_GENERIC.zip, p7720024_10123_GENERIC.zip, p8209429_10123_GENERIC.zip from metalink.
      I signed JAR with sign_webutil.bat on frmwebutil.jar and jacob.rar

      c:\DevSuiteHome_1\forms\webutil>sign_webutil.bat c:\DevSuiteHome_1\forms\java\frmwebutil.jar
      Generating a self signing certificate for key=webutil2...
      keytool error: java.lang.Exception: Key pair not generated, alias <webutil2> alr
      eady exists
      .
      There were warnings or errors while generating a self signing certificate. Pleas
      e review them.
      .
      Backing up c:\DevSuiteHome_1\forms\java\frmwebutil.jar as c:\DevSuiteHome_1\form
      s\java\frmwebutil.jar.old...
      Počet skopírovaných súborov: 1
      Signing c:\DevSuiteHome_1\forms\java\frmwebutil.jar using key=webutil2...
      ...successfully done.


      , but still receive an error

      Oracle JInitiator: Version 1.3.1.26
      Using JRE version 1.3.1.26-internal Java HotSpot(TM) Client VM
      User home directory = C:\Documents and Settings\surkos.samuel
      Proxy Configuration: Manual Configuration
      Proxy: wbaisa01:3128
      Proxy Overrides: 10.*.*.*,*.slposta.sk,localhost,127.0.0.1,webmail.slposta.sk,surkoss-nb.slposta.sk,<local>
      JAR cache enabled
      Location: C:\Documents and Settings\surkos.samuel\Oracle Jar Cache
      Maximum size: 50 MB
      Compression level: 9
      ----------------------------------------------------
      c: clear console window
      f: finalize objects on finalization queue
      g: garbage collect
      h: display this help message
      l: dump classloader list
      m: print memory usage
      q: hide console
      s: dump system properties
      t: dump thread list
      x: clear classloader cache
      0-5: set trace level to <n>
      ----------------------------------------------------
      Loading http://surkoss-nb.slposta.sk:8889/forms/java/frmall_jinit.jar from JAR cache
      Loading http://surkoss-nb.slposta.sk:8889/forms/java/frmwebutil.jar from JAR cache
      Loading http://surkoss-nb.slposta.sk:8889/forms/java/jacob.jar from JAR cache
      Loading http://surkoss-nb.slposta.sk:8889/forms/java/myicons.jar from JAR cache
      Loading http://surkoss-nb.slposta.sk:8889/forms/java/lablediconbutton.jar from JAR cache
      Loading http://surkoss-nb.slposta.sk:8889/forms/java/hyperlink.jar from JAR cache
      Loading http://surkoss-nb.slposta.sk:8889/forms/java/colorpicker.jar from JAR cache
      proxyHost=null
      proxyPort=0
      connectMode=HTTP, native.
      Verzia apletu systému Forms je: 10.1.2.3
      java.lang.ExceptionInInitializerError: java.security.AccessControlException: access denied (java.util.PropertyPermission java.home read)
           at java.security.AccessControlContext.checkPermission(Unknown Source)
           at java.security.AccessController.checkPermission(Unknown Source)
           at java.lang.SecurityManager.checkPermission(Unknown Source)
           at java.lang.SecurityManager.checkPropertyAccess(Unknown Source)
           at java.lang.System.getProperty(Unknown Source)
           at oracle.forms.webutil.common.VBeanCommon.<clinit>(Unknown Source)
           at java.lang.Class.forName0(Native Method)
           at java.lang.Class.forName(Unknown Source)
           at oracle.forms.handler.UICommon.instantiate(Unknown Source)
           at oracle.forms.handler.UICommon.onCreate(Unknown Source)
           at oracle.forms.handler.JavaContainer.onCreate(Unknown Source)
           at oracle.forms.engine.Runform.onCreateHandler(Unknown Source)
           at oracle.forms.engine.Runform.processMessage(Unknown Source)
           at oracle.forms.engine.Runform.processSet(Unknown Source)
           at oracle.forms.engine.Runform.onMessageReal(Unknown Source)
           at oracle.forms.engine.Runform.onMessage(Unknown Source)
           at oracle.forms.engine.Runform.sendInitialMessage(Unknown Source)
           at oracle.forms.engine.Runform.startRunform(Unknown Source)
           at oracle.forms.engine.Main.createRunform(Unknown Source)
           at oracle.forms.engine.Main.start(Unknown Source)
           at sun.applet.AppletPanel.run(Unknown Source)
           at java.lang.Thread.run(Unknown Source)

      Any idea ? Thanks.

      Samo S.
        • 1. Re: webutil problem
          Michael Ferrante-Oracle
          First, I think it is important (to everyone) that I point out the fact that there is no reason to sign frmwebutil.jar if you are using Forms 10.1.2. Forms 10.1.2 includes the corresponding WebUtil version and is already signed by Oracle when it ships. The only releases which needed signing are the early/pre-production releases 1.0.6 and earlier. These versions are found on OTN. The production release is included in Forms 10.1.2 and newer installations.

          Second, the error/warning you see when attempting to sign is not uncommon and is self explanitory. If you read it carefully you will understand:

          +java.lang.Exception: Key pair not generated, alias <webutil2> already exists*+

          This means that you have run the jar signer tool at least once before and the alias "webutil2" was already found in the keystore. Therefore there is no reason to create it again. This is just a warning and can be ignored.

          Regarding the runtime problem, the issue is likely related to one of two things.

          1. Your signed jar files are not being downloaded through the jre and cache. For example, if this was your first time running the form with webutil, the message should show "... to cache..." and not "... from cache..."

          Loading http://surkoss-nb.slposta.sk:8889/forms/java/frmwebutil.jar from JAR cache*

          2. If frmwebutil.jar is inaccessible a similar problem can occur. For example if you have included the jar in the Forms Builder CLASSPATH the file may be locked and not usable at runtime. Close the builder and retest while the builder is not open.
          • 2. Re: webutil problem
            525306
            Hi,
            Reason for signing frmwebutil.jar and jacob.jar is in METALINK Doc ID: 280376.1 (Forms WebUtil Fails to Work, java.security.AccessControlException Error in Java Console)

            It wasn't 1. running. Log after signing ....

            Loading [http://surkoss-nb.slposta.sk:8889/forms/java/frmall_jinit.jar] from JAR cache
            *Cached copy of [http://surkoss-nb.slposta.sk:8889/forms/java/frmwebutil.jar] is out of date*
            Cached copy: 17.3.2009 11:12:57
            Server copy: 17.3.2009 15:23:34
            *Downloading [http://surkoss-nb.slposta.sk:8889/forms/java/frmwebutil.jar] to JAR cache*
            Loading [http://surkoss-nb.slposta.sk:8889/forms/java/jacob.jar] from JAR cache
            Loading [http://surkoss-nb.slposta.sk:8889/forms/java/myicons.jar] from JAR cache
            Loading [http://surkoss-nb.slposta.sk:8889/forms/java/lablediconbutton.jar] from JAR cache
            Loading [http://surkoss-nb.slposta.sk:8889/forms/java/hyperlink.jar] from JAR cache
            Loading [http://surkoss-nb.slposta.sk:8889/forms/java/colorpicker.jar] from JAR cache
            proxyHost=null
            proxyPort=0
            connectMode=HTTP, native.
            Verzia apletu syst&eacute;mu Forms je: 10.1.2.3
            java.lang.ExceptionInInitializerError: java.security.AccessControlException: access denied (java.util.PropertyPermission java.home read)
            at java.security.AccessControlContext.checkPermission(Unknown Source)
            at java.security.AccessController.checkPermission(Unknown Source) ........

            "frmwebutil.jar" was replaced correctly, but still the same error.
            Thanks.
            Samo S.
            • 3. Re: webutil problem
              Michael Ferrante-Oracle
              I would recommend retesting with the latest JInitiator or Sun JRE. The latest Jinitiator is 1.3.1.30.

              http://www.oracle.com/technology/software/products/developer/htdocs/jinit.htm

              I would also recommend retesting with a simplier configuration. You currently appear to be including several jar files. Try using a simplier for which only needs frmall.jar and frmwebutil.jar (i.e. the WebUtil test form).

              There were reports of Jinitiator issues (earlier versions) having problems with loading several signed jars. Problems were also reported when some jars where signed and others were not. This is why I recommend testing a newer Jinit or Sun JRE.

              Also, be sure that your jar cache is stored on the local machine and not a remote or mapped drive. This is not supported and will cause problems.
              • 4. Re: webutil problem
                525306
                On JRE Java Plug-in 1.6.0_07 is same problem.
                Before PATCH was all OK, therefore problem with others JAR isn't. Too in other FMB only with webutil.jar

                The problem is in Developer Suite (ODS) on WIN XP and Application Server (OAS) on WIN 2003 Server with every FMX with webutil library on JRE 1.6.0_07 and Jinit 1.3.1.26

                I don't know what I forgott by patching. I only replaced files , restarted AS and signed frmwebutil a jacob again.

                Samo.
                • 5. Re: webutil problem
                  Michael Ferrante-Oracle
                  Well, just for clarification, a failure to download and load jars has nothing to do with Developer Suite or Applicatoin Server directly. This is a standard web/networking process which occurs between a client java runtime environment and a web server. The problem can only be caused by a few things:

                  1. faulty jar file signature
                  2. defective or misconfigured jre
                  3. permission issue on client machine

                  In some rare situations, a similar permission issue can occur if the client machine accesses the server via a proxy.

                  I would recommend the following in order to address each of the possibilities mentioned:

                  1. Assuming you are using Developer Suite on your local machine, change the host name to "localhost" or "127.0.0.1". For example:

                  http://localhost:8889/forms/frmservlet

                  2. Use the latest Forms super merge which includes a new Forms applet jars, new WebUtil jar, new webutil.pll, as well as other new files. Refer to Metalink Patch ID 7703734
                  Do NOT attempt to resign any of the jar files included in this patch.

                  3. It appears that you have enabled jar cache compression. The default value is 0 (none). Change your setting back to the default (None). Your current value appears to be "Compression level: 9". This is set in the Jinitiator Control Panel

                  4. Verify that your user has Windows Power User or Administrator permissions. This is not normally needed for runtime, but because you are having problems, it is recommended.
                  • 6. Re: webutil problem
                    525306
                    Hi,
                    Thank You, applied Patch ID 7703734 and all OK.

                    Samo.