1 Reply Latest reply: Jul 22, 2013 2:22 PM by ea21d030-6266-40d6-8cbb-5ac5d3684d6e RSS

    Latest Java 7 update 25 prevents JMF from working in Web Start application

    mshoe

      Has anyone else had a problem getting the JMF to work in a Web Start application since updating to Java 7 update 25?

       

      I can successfully run our application on my local machine via Eclipse and the webcam image loads. When I run my application from Web Start it does not load any image and errors out with the following error:

       

      java.lang.NullPointerException

          at javax.swing.RepaintManager.currentManager(Unknown Source)

          at javax.swing.RepaintManager.currentManager(Unknown Source)

          at javax.swing.RepaintManager.currentManager(Unknown Source)

          at javax.swing.JComponent.repaint(Unknown Source)

          at java.awt.Component.repaint(Unknown Source)

          at java.awt.Component.repaint(Unknown Source)

          at com.sun.media.renderer.video.AWTRenderer.doProcess(AWTRenderer.java:236)

          at com.sun.media.renderer.video.BasicVideoRenderer.process(BasicVideoRenderer.java:118)

          at com.sun.media.BasicRendererModule.processBuffer(BasicRendererModule.java:727)

          at com.sun.media.BasicRendererModule.scheduleBuffer(BasicRendererModule.java:499)

          at com.sun.media.BasicRendererModule.doProcess(BasicRendererModule.java:400)

          at com.sun.media.RenderThread.process(BasicRendererModule.java:1114)

          at com.sun.media.util.LoopThread.run(LoopThread.java:135)

       

      Any help would be appreciated

       

      Thanks,

      Mike

        • 1. Re: Latest Java 7 update 25 prevents JMF from working in Web Start application
          ea21d030-6266-40d6-8cbb-5ac5d3684d6e

          Hi - I have exactly the same issue. Referring to Java 1.7_25 release note, i have also included permissions/codebase attributes in jmf jar manifest file but it did not help. With the permissions attributes i dont see the warning missing permissions, but it not solve the actual problem. JMF throws following NPE exception in my case

           

          Exception in thread "JMF thread: SendEventQueue: com.sun.media.content.unknown.Handler" java.lang.NullPointerException

              at sun.awt.image.FetcherInfo.getFetcherInfo(Unknown Source)

              at sun.awt.image.ImageFetcher.add(Unknown Source)

              at sun.awt.image.InputStreamImageSource.startProduction(Unknown Source)

              at sun.awt.image.InputStreamImageSource.addConsumer(Unknown Source)

              at sun.awt.image.InputStreamImageSource.startProduction(Unknown Source)

              at sun.awt.image.ImageRepresentation.startProduction(Unknown Source)

              at sun.awt.image.ImageRepresentation.prepare(Unknown Source)

              at sun.awt.SunToolkit.prepareImage(Unknown Source)

              at java.awt.Component.prepareImage(Unknown Source)

              at java.awt.ImageMediaEntry.startLoad(Unknown Source)

              at java.awt.MediaEntry.getStatus(Unknown Source)

              at java.awt.ImageMediaEntry.getStatus(Unknown Source

           

          Please let me know if you have any solution for the above problem. Appreciated your help.

           

          Thanks

          Sri