Title: TextureLoader / NPE checkScrImage issue

My application works fine on a standalone mode.

But when I'm using JWS (http://cazapool3d.sourceforge.net/cazapooljws/CazaPool3D.jnlp ),  either:

Latest fcs/patch version of Java  3D (currently 1.3.1_01)

Or

Latest fcs/patch version of Java  3D v 1.3.* (currently 1.3.1_01)

Or

Latest patch release of Java  3D v 1.3.1 (currently 1.3.1_01)

I have the following NPE

java.lang.NullPointerException

        at sun.awt.windows.WToolkit.checkScrImage(WToolkit.java:514)

        at sun.awt.windows.WComponentPeer.checkImage(WComponentPeer.java:491)

        at java.awt.Component.checkImage(Component.java:2822)

        at java.awt.Component.checkImage(Component.java:2779)

        at com.sun.j3d.utils.image.TextureLoader.createBufferedImage(TextureLoader.java:635)

        at com.sun.j3d.utils.image.TextureLoader.<init>(TextureLoader.java:497)

        at com.sun.j3d.utils.image.TextureLoader.<init>(TextureLoader.java:444)

        at com.caza.core.util3d.Utils3D.createAppearance(Utils3D.java:388)

        at com.caza.billard3D.PoolSceneGraph.buildFloor(PoolSceneGraph.java:409)

        at com.caza.billard3D.PoolSceneGraph.<init>(PoolSceneGraph.java:73)

              at com.caza.billard3D.Pool.createSceneBranchGroup(Pool.java:1237)

I was told that there was issue with Photoshop and JPG format / java.

Is it true?

Did someone experience the same issue?

Is it a known bug?

Thanks to let me know,

Franck

PS:

Here is also the hs_err_pid.log file:


An unexpected exception has been detected in native code outside the VM.

Unexpected Signal : EXCEPTION_ACCESS_VIOLATION (0xc0000005) occurred at PC=0x1CEC36B9

Function=JNI_OnLoad+0x24D

Library=C:\j2sdk1.4.2_04\jre\bin\jpeg.dll

Current Java thread:

        at sun.awt.image.JPEGImageDecoder.readImage(Native Method)

        at sun.awt.image.JPEGImageDecoder.produceImage(JPEGImageDecoder.java:144)

        at sun.awt.image.InputStreamImageSource.doFetch(InputStreamImageSource.java:254)

        at sun.awt.image.ImageFetcher.fetchloop(ImageFetcher.java:172)

        at sun.awt.image.ImageFetcher.run(ImageFetcher.java:136)

Dynamic libraries:

0x00400000 - 0x00407000         C:\j2sdk1.4.2_04\bin\javaw.exe

0x77F80000 - 0x77FFD000         C:\WINNT\system32\ntdll.dll

0x7C2D0000 - 0x7C332000         C:\WINNT\system32\ADVAPI32.dll

0x7C570000 - 0x7C628000         C:\WINNT\system32\KERNEL32.DLL

0x77D30000 - 0x77DA1000         C:\WINNT\system32\RPCRT4.DLL

0x77E10000 - 0x77E75000         C:\WINNT\system32\USER32.dll

0x77F40000 - 0x77F7E000         C:\WINNT\system32\GDI32.DLL

0x78000000 - 0x78045000         C:\WINNT\system32\MSVCRT.dll

0x08000000 - 0x08138000         C:\j2sdk1.4.2_04\jre\bin\client\jvm.dll

0x77570000 - 0x775A0000         C:\WINNT\system32\WINMM.dll

0x681A0000 - 0x681A7000         C:\WINNT\system32\serwvdrv.dll

0x66740000 - 0x66747000         C:\WINNT\system32\umdmxfrm.dll

0x10000000 - 0x10007000         C:\j2sdk1.4.2_04\jre\bin\hpi.dll

0x007E0000 - 0x007EE000         C:\j2sdk1.4.2_04\jre\bin\verify.dll

0x007F0000 - 0x00809000         C:\j2sdk1.4.2_04\jre\bin\java.dll

0x00810000 - 0x0081D000         C:\j2sdk1.4.2_04\jre\bin\zip.dll

0x18270000 - 0x1837F000         C:\j2sdk1.4.2_04\jre\bin\awt.dll

0x77800000 - 0x7781E000         C:\WINNT\system32\WINSPOOL.DRV

0x76620000 - 0x76630000         C:\WINNT\system32\MPR.DLL

0x75E60000 - 0x75E7A000         C:\WINNT\system32\IMM32.dll

0x77A50000 - 0x77B3F000         C:\WINNT\system32\ole32.dll

0x18380000 - 0x183D0000         C:\j2sdk1.4.2_04\jre\bin\fontmanager.dll

0x51000000 - 0x51047000         C:\WINNT\system32\ddraw.dll

0x728A0000 - 0x728A6000         C:\WINNT\system32\DCIMAN32.dll

0x5C000000 - 0x5C0C8000         C:\WINNT\system32\D3DIM700.DLL

0x1C670000 - 0x1C67E000         C:\Program Files\JS Pager\CBT.dll

0x779B0000 - 0x77A4B000         C:\WINNT\system32\oleaut32.dll

0x60000000 - 0x60045000         C:\WINNT\system32\MSCTF.dll

0x1CC00000 - 0x1CC0A000         C:\Program Files\Java\j2re1.4.2_04\javaws\javawspl.dll

0x782F0000 - 0x78535000         C:\WINNT\system32\SHELL32.dll

0x70A70000 - 0x70AD4000         C:\WINNT\system32\SHLWAPI.dll

0x71710000 - 0x71794000         C:\WINNT\system32\COMCTL32.dll

0x7CA00000 - 0x7CA23000         C:\WINNT\system32\rsaenh.dll

0x7C0F0000 - 0x7C151000         C:\WINNT\system32\USERENV.dll

0x7C740000 - 0x7C7C7000         C:\WINNT\system32\CRYPT32.dll

0x77430000 - 0x77440000         C:\WINNT\system32\MSASN1.DLL

0x75170000 - 0x751BF000         C:\WINNT\system32\netapi32.dll

0x7C340000 - 0x7C34F000         C:\WINNT\system32\Secur32.dll

0x77BF0000 - 0x77C01000         C:\WINNT\system32\NTDSAPI.dll

0x77980000 - 0x779A4000         C:\WINNT\system32\DNSAPI.DLL

0x75050000 - 0x75058000         C:\WINNT\system32\WSOCK32.DLL

0x75030000 - 0x75044000         C:\WINNT\system32\WS2_32.DLL

0x75020000 - 0x75028000         C:\WINNT\system32\WS2HELP.DLL

0x77950000 - 0x7797A000         C:\WINNT\system32\WLDAP32.DLL

0x751C0000 - 0x751C6000         C:\WINNT\system32\NETRAP.dll

0x75150000 - 0x7515F000         C:\WINNT\system32\SAMLIB.dll

0x1CEC0000 - 0x1CEDE000         C:\j2sdk1.4.2_04\jre\bin\jpeg.dll

0x1CF20000 - 0x1CF2F000         C:\j2sdk1.4.2_04\jre\bin\net.dll

0x782C0000 - 0x782CC000         C:\WINNT\System32\rnr20.dll

0x77340000 - 0x77353000         C:\WINNT\system32\iphlpapi.dll

0x77520000 - 0x77525000         C:\WINNT\system32\ICMP.DLL

0x77320000 - 0x77337000         C:\WINNT\system32\MPRAPI.DLL

0x773B0000 - 0x773DF000         C:\WINNT\system32\ACTIVEDS.DLL

0x77380000 - 0x773A3000         C:\WINNT\system32\ADSLDPC.DLL

0x77830000 - 0x7783E000         C:\WINNT\system32\RTUTILS.DLL

0x77880000 - 0x7790E000         C:\WINNT\system32\SETUPAPI.DLL

0x774E0000 - 0x77513000         C:\WINNT\system32\RASAPI32.DLL

0x774C0000 - 0x774D1000         C:\WINNT\system32\RASMAN.DLL

0x77530000 - 0x77552000         C:\WINNT\system32\TAPI32.DLL

0x77360000 - 0x77379000         C:\WINNT\system32\DHCPCSVC.DLL

0x777E0000 - 0x777E8000         C:\WINNT\System32\winrnr.dll

0x777F0000 - 0x777F5000         C:\WINNT\system32\rasadhlp.dll

0x74FD0000 - 0x74FEE000         C:\WINNT\system32\msafd.dll

0x75010000 - 0x75017000         C:\WINNT\System32\wshtcpip.dll

0x1D000000 - 0x1D022000         C:\j2sdk1.4.2_04\jre\bin\dcpr.dll

0x775A0000 - 0x77630000         C:\WINNT\system32\CLBCATQ.DLL

0x77840000 - 0x7787E000         C:\WINNT\system32\cscui.dll

0x770C0000 - 0x770E3000         C:\WINNT\system32\CSCDLL.DLL

0x76710000 - 0x76719000         C:\WINNT\system32\LINKINFO.DLL

0x76FA0000 - 0x76FAF000         C:\WINNT\system32\ntshrui.dll

0x773E0000 - 0x773F5000         C:\WINNT\system32\ATL.DLL

0x1D8F0000 - 0x1D914000         C:\j2sdk1.4.2_04\jre\bin\jsound.dll

0x77560000 - 0x77568000         C:\WINNT\system32\wdmaud.drv

0x77400000 - 0x77408000         C:\WINNT\system32\msacm32.drv

0x77410000 - 0x77423000         C:\WINNT\system32\MSACM32.dll

0x1D9F0000 - 0x1DA47000         C:\j2sdk1.4.2_04\jre\bin\J3D.dll

0x1DA50000 - 0x1DB73000         C:\WINNT\system32\d3d8.dll

0x1DB80000 - 0x1DB85000         C:\WINNT\system32\d3d8thk.dll

0x77820000 - 0x77827000         C:\WINNT\system32\VERSION.dll

0x759B0000 - 0x759B6000         C:\WINNT\system32\LZ32.DLL

0x1DCA0000 - 0x1DCA5000         C:\j2sdk1.4.2_04\jre\bin\jawt.dll

0x1DCB0000 - 0x1E01B000         C:\WINNT\system32\nvoglnt.dll

0x77920000 - 0x77943000         C:\WINNT\system32\imagehlp.dll

0x72A00000 - 0x72A2D000         C:\WINNT\system32\DBGHELP.dll

0x690A0000 - 0x690AB000         C:\WINNT\system32\PSAPI.DLL

Heap at VM Abort:

Heap

 def new generation   total 576K, used 550K [0x10010000, 0x100b0000, 0x104f0000)

  eden space 512K, 100% used [0x10010000, 0x10090000, 0x10090000)

  from space 64K,  60% used [0x100a0000, 0x100a9a48, 0x100b0000)

  to   space 64K,   0% used [0x10090000, 0x10090000, 0x100a0000)

 tenured generation   total 6612K, used 4912K [0x104f0000, 0x10b65000, 0x14010000)

   the space 6612K,  74% used [0x104f0000, 0x109bc1d8, 0x109bc200, 0x10b65000)

 compacting perm gen  total 11520K, used 11504K [0x14010000, 0x14b50000, 0x18010000)

   the space 11520K,  99% used [0x14010000, 0x14b4c210, 0x14b4c400, 0x14b50000)

Local Time = Thu Sep 23 14:08:05 2004

Elapsed Time = 21

#

# The exception above was detected in native code outside the VM

#

# Java VM: Java HotSpot(TM) Client VM (1.4.2_04-b05 mixed mode)

#




Confidentiality Notice: This email and any files transmitted with it are confidential and are intended solely for the use of the individual or entity to whom they are addressed. If you are not the original recipient or the person responsible for delivering the email to the intended recipient, be advised that you have received this email in error, and that any use, dissemination, forwarding, printing, or copying of this email is strictly prohibited. If you received this email in error, please notify the originator immediately.

=========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA3D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to