Forum Stats

  • 3,824,864 Users
  • 2,260,433 Discussions
  • 7,896,331 Comments

Discussions

Error java -jar frmsal.jar -url

User_FGJOF
User_FGJOF Member Posts: 4 Green Ribbon

It is giving me the following error when I try to connect to the application by launching the following command

java -jar frmsal.jar -url "http://xx.xx.xx.xx:9001/forms/frmservlet?config=standaloneapp&form=METFACT.fmx"


Inspeccionando los archivos de almacenamiento en el directorio de caché C:\Users\RAMON~1.VIC\AppData\Local\Temp\frmsal\130.162.33.232\12.2.1.4

Usando el archivo almacenado en caché frmall.jar desde el subdirectorio de caché 7gk3pjtnpp47cgqij83js5ns9

Exception in thread "main" java.lang.reflect.InvocationTargetException

    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

    at java.lang.reflect.Method.invoke(Unknown Source)

    at oracle.forms.saa.FormsStandAloneApp.main(Unknown Source)

Caused by: java.lang.NoClassDefFoundError: oracle/forms/engine/Main

    at oracle.forms.saa.FormsStandAloneApp.run(Unknown Source)

    at oracle.forms.saa.FormsStandAloneApp.run(Unknown Source)

    ... 5 more

Caused by: java.lang.ClassNotFoundException: oracle.forms.engine.Main

    at java.net.URLClassLoader.findClass(Unknown Source)

    at java.lang.ClassLoader.loadClass(Unknown Source)

    at java.lang.ClassLoader.loadClass(Unknown Source)

    ... 7 more

I have tried downloading frmsal.jar again and the same error follows.

I have also tried to execute java -jar frmsal.jar -url "http://xx.xx.xx.xx:9001/forms/frmservlet?config=standaloneapp"and it gives the same error, does anyone know why it can happen?

Comments

  • Michael Ferrante-Oracle
    Michael Ferrante-Oracle Senior Principal Product Manager USMember Posts: 7,194 Employee

    In the shell (DOS) you are using, type the following:

    java -version

    Assuming you are running Forms 12.2.1.4, you should be using Java 8u211 or newer in the v8 family. You can use a newer major version, but only v11 or 17. Do not attempt to use Java versions newer than v17 at this time.

    Also, be sure you are downloading the launcher (frmsal.jar) from the same server you plan to run against. Do not download the file from a different server.


    Michael Ferrante

    Senior Principal Product Manager

    Oracle

    Twitter: @OracleFormsPM

  • User_FGJOF
    User_FGJOF Member Posts: 4 Green Ribbon

    The version that I have from the computer that I execute it is the following java version "1.8.0_331" and I have downloaded the frmsal.jar from the server

  • Michael Ferrante-Oracle
    Michael Ferrante-Oracle Senior Principal Product Manager USMember Posts: 7,194 Employee

    Do the following:

    o Stop and restart the Forms managed server (e.g. WLS_FORMS).

    o On the user machine, delete all the contents in (including sub-directories) from here:

    C:\Users\RAMON~1.VIC\AppData\Local\Temp\frmsal\

    o Open a browser and enter this URL (replace the xx with your server) and verify that you are prompted to Save the frmall.jar file (you do not need to save it - just confirm you are prompted):

    http://xx.xx.xx.xx:9001/forms/java/frmall.jar

    o Retest


    Michael Ferrante

    Senior Principal Product Manager

    Oracle

    Twitter: @OracleFormsPM

  • User_FGJOF
    User_FGJOF Member Posts: 4 Green Ribbon

    Restarted the service, deleted the contents of the folder and tried to download the file frmall.jar but it still gives the same error

    java -jar frmsal.jar -url "http://xxxxxx:9001/forms/frmservlet?config=standaloneapp&form=METFACT.fmx"


    Inspeccionando los archivos de almacenamiento en el directorio de caché C:\Users\RAMON~1.VIC\AppData\Local\Temp\frmsal\xxxxx\12.2.1.4

    Descargando archivo frmall.jar en el subdirectorio de caché 7gk3pjtnpp47cgqij83js5ns9

    Exception in thread "main" java.lang.reflect.InvocationTargetException

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

        at java.lang.reflect.Method.invoke(Unknown Source)

        at oracle.forms.saa.FormsStandAloneApp.main(Unknown Source)

    Caused by: java.lang.NoClassDefFoundError: oracle/forms/engine/Main

        at oracle.forms.saa.FormsStandAloneApp.run(Unknown Source)

        at oracle.forms.saa.FormsStandAloneApp.run(Unknown Source)

        ... 5 more

    Caused by: java.lang.ClassNotFoundException: oracle.forms.engine.Main

        at java.net.URLClassLoader.findClass(Unknown Source)

        at java.lang.ClassLoader.loadClass(Unknown Source)

        at java.lang.ClassLoader.loadClass(Unknown Source)

        ... 7 more

  • Michael Ferrante-Oracle
    Michael Ferrante-Oracle Senior Principal Product Manager USMember Posts: 7,194 Employee

    For the most part, the error is self-explanatory; ClassNotFoundException

    This suggests that a needed JAR cannot be found. I suppose although it claims to be looking for frmall.jar, it might be looking for another. Verify that your ARCHIVE setting does not include any JAR files except frmall.jar. If you do have additional entries in ARCHIVE, ensure that the JARs mentioned are in the /forms/java directory. If you make any changes to this directory, you will need to bounce WLS_FORMS

    Also verify that the temp directory noted by the Launcher contains frmall.jar, which should have been downloaded from the server by the Launcher.

    C:\Users\RAMON~1.VIC\AppData\Local\Temp\frmsal\xxxxx\12.2.1.4


    Michael Ferrante

    Senior Principal Product Manager

    Oracle

    Twitter: @OracleFormsPM

  • User_FGJOF
    User_FGJOF Member Posts: 4 Green Ribbon

    Add another additional entry and the directory you indicate are both .jar