Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8125287

NPE on second run of Java Web Start Application

XMLWordPrintable

        I changed my JavaFX-maven-project from 2.1 to 2.2 and kept my pom as it was (except javafx-dependency).
        Maven builds the application without errors and produces the .jnlp file, the main-jar and the lib-jar (see attachments).
        Wenn I run the -jnlp file for the first time the application is started properly (see javafx-example-secondrun-npe-FIRSTRUN.png),
        but after closing the application and re-run it a NPE is thrown and the application is not started any more (see javafx-example-secondrun-npe-SECONDRUN.png).
        When I clean the Java cache it starts once again.

          1. FIRSTRUNjavaws3820401876056396144.trace
            54 kB
            Andreas Liebelt
          2. FIRSTRUNjavaws3982816209760742968.trace
            51 kB
            Andreas Liebelt
          3. javafx-example-secondrun-npe-FIRSTRUN.png
            528 kB
            Andreas Liebelt
          4. javafx-example-secondrun-npe-localstart.jnlp
            1 kB
            Andreas Liebelt
          5. javafx-example-secondrun-npe-SECONDRUN.png
            964 kB
            Andreas Liebelt
          6. SECONDRUNjavaws720039113932701445.trace
            46 kB
            Andreas Liebelt

              nam Nam Nguyen (Inactive)
              aliebelt Andreas Liebelt
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported: