プラットフォーム:Win7 32ビット、Netbeans 7.1.2、JDK 7、JRE1.7.0_05。
Webサーバー:Ubuntu/ApacheおよびWindowsServer2008 /IIS7。
私は大きなJavaWebアプレットを持っていますが、ローカルファイルシステムから実行すると正常に動作しますが、実行すると失敗しますhttp
(両方のサーバーがテストされています)。APPLET、OBJECT、deployJava.jsを使用しました。アプレットだけで始めましたが、現在はJaveWebStartを使用しています。
実験により、この問題は約34k以上のJARでのみ発生することが明らかになりました。現在のバージョンでは、APPLETタグを介して呼び出されたJWSアプレットを使用しています。
すべてのJARSは署名されています。
JAVAキャッシングは有効になっています(誤った「コードが署名されていない」エラーを回避するため)が、各テスト間のキャッシュをクリアします。
HTML:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Test page for launching the applet via JNLP</title>
</head>
<body>
<h3>Test page for launching the applet via JNLP</h3>
<applet width="300" height="300">
<param name="jnlp_href" value="launch.jnlp"/>
</applet>
</body>
</html>
JNLP:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<jnlp href="launch.jnlp" spec="1.0+">
<information>
<title>cleverAUDIO</title>
<vendor>ChrisSpray</vendor>
<homepage href=""/>
<description>cleverAUDIO</description>
<description kind="short">cleverAUDIO</description>
</information>
<update check="always"/>
<security>
<all-permissions/>
</security>
<resources>
<j2se java-vm-args="-Djava.security.policy=applet.policy" version="1.7+"/>
<jar href="cleverAUDIO.jar" main="true"/>
<jar download="lazy" href="lib/cleverDEBUG.jar"/>
<jar download="lazy" href="lib/cleverWINDOWS.jar"/>
<jar download="lazy" href="lib/cleverWinMMDevice.jar"/>
<jar download="lazy" href="lib/platform.jar"/>
<jar download="lazy" href="lib/jna.jar"/>
</resources>
<applet-desc height="300" main-class="uk.co.cleverit.cleverAUDIO.applet" name="cleverAUDIO" width="300">
</applet-desc>
</jnlp>
ローカルのファイルシステムを介して呼び出された場合、およびここを介して呼び出された場合の完全なJavaログはここにありHTTP
ます。
パリティファイルログ:
network: ResponseCode for file:/N:/cleverAUDIO/dist/cleverAUDIO.jar : 200
network: Encoding for file:/N:/cleverAUDIO/dist/cleverAUDIO.jar : null
network: Sever response: (length: 62791, lastModified: Fri Aug 03 14:51:01 BST 2012, downloadVersion: null, mimeType: application/x-java-archive)
network: CleanupThread used 6 us
preloader: Added pending event 2: DownloadEvent[type=load,loaded=0, total=62791, percent=0]
network: Downloading resource: file:/N:/cleverAUDIO/dist/cleverAUDIO.jar
Content-Length: 62,791
Content-Encoding: null
JVM[id=1]-Heartbeat sent heartbeat: [Conversation: id=0, initiatingSide=true] { healthy: true, ageSeconds: 7, availableHeapKB: 248528, appletThreads: 6 }
preloader: Using preloader class: null com.sun.deploy.uitoolkit.impl.awt.AWTAppletAdapter@1737e47
preloader: Using default preloader
preloader: Requested to use preloader class: null
preloader: Delivering: ConfigEvent[type=SetVisible, value=true]
preloader: Delivering: DownloadEvent[type=load,loaded=0, total=62791, percent=1]
preloader: Skipped all (0) download events prior to DownloadEvent[type=load,loaded=0, total=62791, percent=1]
preloader: Preloader jars loaded. Error state=null
security: Staring warmup validation
preloader: Start progressCheck thread
preloader: GrayBox: parent = sun.plugin2.main.client.PluginEmbeddedFrame[frame0,0,0,300x300,layout=java.awt.BorderLayout,title=,resizable,normal]
preloader: Delivering: DownloadEvent[type=load,loaded=1005, total=62791, percent=1]
<snip>
preloader: Delivering: DownloadEvent[type=load,loaded=62791, total=62791, percent=80]
network: Wrote URL file:/N:/cleverAUDIO/dist/cleverAUDIO.jar to File C:\Users\ChrisSpray\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\39\9a4cda7-7f8c3d0f-temp
部分的なHTTP
ログ:
network: ResponseCode for http://lamp.cleverit.co.uk/includes/cleverAUDIO/cleverAUDIO.jar : 200
network: Encoding for http://lamp.cleverit.co.uk/includes/cleverAUDIO/cleverAUDIO.jar : null
network: Sever response: (length: 62791, lastModified: Fri Aug 03 15:09:41 BST 2012, downloadVersion: null, mimeType: application/java-archive)
network: CleanupThread used 6 us
preloader: Added pending event 2: DownloadEvent[type=load,loaded=0, total=62791, percent=0]
network: Downloading resource: http://lamp.cleverit.co.uk/includes/cleverAUDIO/cleverAUDIO.jar
Content-Length: 62,791
Content-Encoding: null
preloader: Added pending event 3: DownloadEvent[type=load,loaded=1005, total=62791, percent=1]
<snip>
preloader: Added pending event 32: DownloadEvent[type=load,loaded=34440, total=62791, percent=43]
cache: MemoryCache: removed entry http://lamp.cleverit.co.uk/includes/cleverAUDIO/launch.jnlp
preloader: Using preloader class: null com.sun.deploy.uitoolkit.impl.awt.AWTAppletAdapter@60acdc
preloader: Using default preloader
preloader: Requested to use preloader class: null
JVM[id=1]-Heartbeat sent heartbeat: [Conversation: id=0, initiatingSide=true] { healthy: true, ageSeconds: 6, availableHeapKB: 250928, appletThreads: 6 }
preloader: Delivering: ConfigEvent[type=SetVisible, value=true]
preloader: Delivering: DownloadEvent[type=load,loaded=34440, total=62791, percent=1]
preloader: Skipped all (30) download events prior to DownloadEvent[type=load,loaded=34440, total=62791, percent=1]
preloader: Preloader jars loaded. Error state=null
security: Staring warmup validation
preloader: Start progressCheck thread
preloader: GrayBox: parent = sun.plugin2.main.client.PluginEmbeddedFrame[frame0,0,0,300x300,layout=java.awt.BorderLayout,title=,resizable,normal]
JVM[id=1]-Heartbeat round-trip heartbeat took 1003640 microsecs.
JVM[id=1]-Heartbeat sent heartbeat: [Conversation: id=0, initiatingSide=true] { healthy: true, ageSeconds: 8, availableHeapKB: 249559, appletThreads: 8 }
JVM[id=1]-Heartbeat round-trip heartbeat took 1006503 microsecs.
JVM[id=1]-Heartbeat sent heartbeat: [Conversation: id=0, initiatingSide=true] { healthy: true, ageSeconds: 10, availableHeapKB: 250558, appletThreads: 8 }
JVM[id=1]-Heartbeat round-trip heartbeat took 1005683 microsecs.
preloader: Stop progressCheck thread
ご覧のとおり、処理は34440バイト後に停止しましたが、JARの長さは62791バイトです。
エラーや例外はどこにも発生しません(私が見ることができます)。
私はこの問題に1週間費やしましたが、知識を増やすことは別として、さまざまなバリエーションを試しても、問題を解決できませんでした。誰かが何か明るいアイデアを思いついた?
期待して感謝します
クリス