Operating System - HP-UX
1836648 Members
2016 Online
110102 Solutions
New Discussion

Problem with loading an image from a java applet in 1.3.1.08 plugin

 
Brett Bergquist_1
New Member

Problem with loading an image from a java applet in 1.3.1.08 plugin

I'm having a problem loading an image from a java applet with the 1.3.1.08 plugin. Earlier versions of the plugin (1.3.1.01) work correctly and only changing the plugin causes the existing working code to fail.

Basically what I am doing is the following:

image = applet.createImage((ImageProducer) applet.getClass().getResource("/some/path/to/some/jpeg.jpg").getContent());

With the 1.3.1.08 plugin and Netscape 4.69 on HP-UX 11, this fails with a NullPointerException from the method "java.net.URLConnection.stripOffParameters" called from "java.net.URLConnection.getContentHandlers" called from java.net.URLConnection.getContent" called from "java.net.URL.getContent".

Like I said, this exact same code works under earlier plugin version, on a SunOS 4 and on WinNT/XP. Something obviously changed but I can find no information anywhere.

Any help will be greatly appreciated.

1 REPLY 1
Steve Steel
Honored Contributor

Re: Problem with loading an image from a java applet in 1.3.1.08 plugin

Hi

Go to www.hp.com/go/java

See that all required patches are loaded.

If no good then get later version and upgrade.


Try again



steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)