native found in 1.4 and 1.5 but UnsatisfiedLinkError throwed in 1.6
We have an jnlp application working fine since 1.4.2
Some users have upgraded the vm and recently installed 1.6u1.
First, we had a cache problem resolved by adding version="+" on jar entries.
But the jnlp contains also a native library and now this dll can not be found by the 1.6.
Within the main I set all trace in com.sun.deploy.util.Trace,
this gives the two following console traces,
first for 1.6 failing to load the dll,
second for 1.5 working fine (other basic: informations removed),
each runned with cache cleared
Java Web Start 1.6.0_01
Using JRE version 1.6.0_01 Java HotSpot(TM) Client VM
User home directory = C:\Documents and Settings\x
-
c:clear console window
f:finalize objects on finalization queue
g:garbage collect
h:display this help message
m:print memory usage
o:trigger logging
p:reload proxy configuration
q:hide console
r:reload policy configuration
s:dump system and deployment properties
t:dump thread list
v:dump thread stack
0-5: set trace level to <n>
-
classpath:C:\Program Files\Java\jre1.6.0_01\lib\deploy.jar
network: Cache entry not found [url: http://localhost/test/xtgui/signed-xt-pagewriter-dll.jar, version: null]
network: Cache entry not found [url: http://localhost/test/xtgui/signed-xt-pagewriter-dll.jar, version: null]
network: Connecting http://localhost/test/xtgui/signed-xt-pagewriter-dll.jar with proxy=DIRECT
network: ResponseCode for http://localhost/test/xtgui/signed-xt-pagewriter-dll.jar : 200
network: Encoding for http://localhost/test/xtgui/signed-xt-pagewriter-dll.jar : null
network: Sever response: (length: 33150, lastModified: Thu May 10 15:09:40 CEST 2007, downloadVersion: 1.0, mimeType: application/java-archive)
network: Downloading resource: http://localhost/test/xtgui/signed-xt-pagewriter-dll.jar
Content-Length: 33,150
Content-Encoding: null
network: Wrote URL http://localhost/test/xtgui/signed-xt-pagewriter-dll.jar to File C:\Documents and Settings\x\Application Data\Sun\Java\Deployment\cache\6.0\31\3cdfddf-4e1e2f32-1.0--temp
network: Disconnect connection to http://localhost/test/xtgui/signed-xt-pagewriter-dll.jar
network: Connecting http://localhost/test/xtgui with proxy=DIRECT
network: Server http://localhost/test/xtgui requesting to set-cookie with "JSESSIONID=8FD32E04F92D91297845F4A31A3D8F4B; Path=/test"
network: Connecting http://localhost/test/xtgui with proxy=DIRECT
network: Connecting http://localhost/test/xtgui with cookie "JSESSIONID=8FD32E04F92D91297845F4A31A3D8F4B"
network: Connecting http://localhost/test/xtgui with proxy=DIRECT
network: Connecting http://localhost/test/xtgui with cookie "JSESSIONID=8FD32E04F92D91297845F4A31A3D8F4B"
security: Permission requested for: http://localhost/test/xtgui/signed-xt-pagewriter.jar
security: Loading certificates from Deployment session certificate store
security: Loaded certificates from Deployment session certificate store
security: Loading certificates from Internet Explorer TrustedPublisher certificate store
security: Loaded certificates from Internet Explorer TrustedPublisher certificate store
security: Validate the certificate chain using CertPath API
security: Obtain certificate collection in Root CA certificate store
security: Obtain certificate collection in Root CA certificate store
security: The CRL support is disabled
security: The OCSP support is disabled
security: No timestamping info available
security: Checking if certificate is in Deployment denied certificate store
security: Checking if certificate is in Deployment permanent certificate store
network: Created version ID: +
network: Created version ID: 1.0
network: Cache entry found [url: http://localhost/test/xtgui/signed-xt-pagewriter.jar, version: +]
network: Created version ID: +
network: Created version ID: 1.0
network: Cache entry found [url: http://localhost/test/xtgui/signed-xt-gui-client.jar, version: +]
pagewriter.classloader:com.sun.jnlp.JNLPClassLoader
network: Looking up native library: WindowsPageWriter.dll
network: Cache entry not found [url: http://localhost/test/xtgui/signed-xt-pagewriter-dll.jar, version: null]
network: Connecting http://localhost/test/xtgui/signed-xt-pagewriter-dll.jar with proxy=DIRECT
network: Connecting http://localhost/test/xtgui/signed-xt-pagewriter-dll.jar with cookie "JSESSIONID=8FD32E04F92D91297845F4A31A3D8F4B"
network: ResponseCode for http://localhost/test/xtgui/signed-xt-pagewriter-dll.jar : 200
network: Encoding for http://localhost/test/xtgui/signed-xt-pagewriter-dll.jar : null
network: Sever response: (length: 33150, lastModified: Thu May 10 15:09:40 CEST 2007, downloadVersion: 1.0, mimeType: application/java-archive)
network: Downloading resource: http://localhost/test/xtgui/signed-xt-pagewriter-dll.jar
Content-Length: 33,150
Content-Encoding: null
network: Wrote URL http://localhost/test/xtgui/signed-xt-pagewriter-dll.jar to File C:\Documents and Settings\x\Application Data\Sun\Java\Deployment\cache\6.0\31\3cdfddf-6ecc2ce9-1.0--temp
network: Disconnect connection to http://localhost/test/xtgui/signed-xt-pagewriter-dll.jar
basic: Looking up native library in: C:\Documents and Settings\x\Application Data\Sun\Java\Deployment\cache\6.0\31\3cdfddf-6ecc2ce9-1.0--n\WindowsPageWriter.dll
network: Native library WindowsPageWriter.dll not found
Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError: no WindowsPageWriter in java.library.path
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at com.evadix.pagewriter.windows.WindowsPageWriter.<clinit>(WindowsPageWriter.java:11)
at com.evadix.pagewriter.swing.PageWriterPanel.actionPerformed(PageWriterPanel.java:510)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Content of C:\Documents and Settings\x\Application Data\Sun\Java\Deployment\cache\6.0\31
05/10/2007 03:26 PM 2,425 3cdfddf-5c7108e9-1.0-.idx
05/10/2007 03:26 PM33,158 3cdfddf-5c7108e9-1.0-
05/10/2007 03:26 PM<REP> 3cdfddf-5c7108e9-1.0--n
05/10/2007 03:26 PM 2,425 3cdfddf-4e1e2f32-1.0-.idx
05/10/2007 03:26 PM33,158 3cdfddf-4e1e2f32-1.0-
05/10/2007 03:26 PM 2,425 3cdfddf-6ecc2ce9-1.0-.idx
05/10/2007 03:26 PM33,158 3cdfddf-6ecc2ce9-1.0-
Content of .\3cdfddf-5c7108e9-1.0--n
05/10/2007 03:26 PM77,824 WindowsPageWriter.dll
Java Web Start 1.5.0_05
Using JRE version 1.6.0_01 Java HotSpot(TM) Client VM
User home directory = C:\Documents and Settings\x
-
c:clear console window
f:finalize objects on finalization queue
g:garbage collect
h:display this help message
m:print memory usage
o:trigger logging
p:reload proxy configuration
q:hide console
r:reload policy configuration
s:dump system and deployment properties
t:dump thread list
0-5: set trace level to <n>
-
classpath:C:\Program Files\Java\jre1.5.0_05\lib\deploy.jar
network: Created version ID: +
network: Created version ID: 1.0
network: Found in cache: DisckCacheEntry[R;http://localhost/test/xtgui/signed-xt-pagewriter.jar;1.0;1178802580000;C:\Documents and Settings\x\Application Data\Sun\Java\Deployment\cache\javaws\http\Dlocalhost\P80\V1.0\DMtest\DMxtgui\RMsigned-xt-pagewriter.jar;null]
basic:String: C:\Documents and Settings\x\Application Data\Sun\Java\Deployment\cache\javaws\http\Dlocalhost\P80\V1.0\DMtest\DMxtgui\RMsigned-xt-pagewriter.jar
basic: encoded to: C:/Documents%20and%20Settings/x/Application%20Data/Sun/Java/Deployment/cache/javaws/http/Dlocalhost/P80/V1.0/DMtest/DMxtgui/RMsigned-xt-pagewriter.jar
basic: Creating loader for: file:C:/Documents%20and%20Settings/x/Application%20Data/Sun/Java/Deployment/cache/javaws/http/Dlocalhost/P80/V1.0/DMtest/DMxtgui/RMsigned-xt-pagewriter.jar
basic:String: C:\Documents%20and%20Settings\x\Application%20Data\Sun\Java\Deployment\cache\javaws\http\Dlocalhost\P80\V1.0\DMtest\DMxtgui\RMsigned-xt-pagewriter.jar
basic: decoded to: C:\Documents and Settings\x\Application Data\Sun\Java\Deployment\cache\javaws\http\Dlocalhost\P80\V1.0\DMtest\DMxtgui\RMsigned-xt-pagewriter.jar
network: Connecting http://localhost/test/xtgui with proxy=DIRECT
network: Server http://localhost/test/xtgui requesting to set-cookie with "JSESSIONID=507549B5A6EB4387B3EBDC240ED63850; Path=/test"
network: Connecting http://localhost/test/xtgui with proxy=DIRECT
network: Connecting http://localhost/test/xtgui with cookie "JSESSIONID=507549B5A6EB4387B3EBDC240ED63850"
network: Connecting http://localhost/test/xtgui with proxy=DIRECT
network: Connecting http://localhost/test/xtgui with cookie "JSESSIONID=507549B5A6EB4387B3EBDC240ED63850"
security: Permission requested for: file:C:/Documents%20and%20Settings/x/Application%20Data/Sun/Java/Deployment/cache/javaws/http/Dlocalhost/P80/V1.0/DMtest/DMxtgui/RMsigned-xt-pagewriter.jar
security: Loading certificates from Deployment session certificate store
security: Loaded certificates from Deployment session certificate store
security: Loading certificates from Internet Explorer TrustedPublisher certificate store
security: Loaded certificates from Internet Explorer TrustedPublisher certificate store
security: Checking if certificate is in Deployment permanent certificate store
pagewriter.classloader:com.sun.jnlp.JNLPClassLoader
basic: Looking up native library: WindowsPageWriter.dll
network: Found in cache: DisckCacheEntry[R;http://localhost/test/xtgui/signed-xt-pagewriter-dll.jar;null;1178802580000;C:\Documents and Settings\x\Application Data\Sun\Java\Deployment\cache\javaws\http\Dlocalhost\P80\DMtest\DMxtgui\RMsigned-xt-pagewriter-dll.jar;C:\Documents and Settings\x\Application Data\Sun\Java\Deployment\cache\javaws\http\Dlocalhost\P80\DMtest\DMxtgui\RNsigned-xt-pagewriter-dll.jar]
basic: Native library found: C:\Documents and Settings\x\Application Data\Sun\Java\Deployment\cache\javaws\http\Dlocalhost\P80\DMtest\DMxtgui\RNsigned-xt-pagewriter-dll.jar\WindowsPageWriter.dll
Any idea (other than switching back to 1.5) ?
Thank you

