JumpLoader
Java File Upload Applet
'Cache entry not found' while loading local applet instance

 
Post new topic   Reply to topic    JumpLoader Forum Index -> General questions
View previous topic :: View next topic  
Author Message
jlees



Joined: 13 Apr 2010
Posts: 3

PostPosted: Tue Apr 13, 2010 12:16 pm    Post subject: 'Cache entry not found' while loading local applet instance Reply with quote

I have a sample page on my development server that contains an <applet> tag reference to a copy of jumploader_z.jar in the same folder (see below).
When loading this page, the following entry appears numerous times in the Java Console ('network: Cache entry not found [url: http://xyz/apps/pw/jumploader_z.jar, version: null]').

These entries increase the total time to load the applet significantly (see below).

If I change the <applet> tag's archive attribute to use 'http://jumploader.com/jumploader_z.jar', the entries no longer appear in the Console and the applet loads much faster.

The copy of the jar on my development server is the same as the one at http://jumploader.com/jumploader_z.jar.

I am running the applet in FireFox 3.6.3 using Version 6 Update 19 (build 1.6.0_19-b04) of the Java plugin.

Please let me know what steps I can take to access the jar in my local environment without getting the 'Cache entry not found' messages.

Thanks, John



Contents of test.html


Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
   <meta content="text/html; charset=utf-8" http-equiv="Content-type">
         <title>JumpLoader - Java File Upload Applet</title>
</head>

<body>

<applet name="jumpLoaderApplet"
   code="jmaster.jumploader.app.JumpLoaderApplet.class"
   [b]archive="jumploader_z.jar"[/b]
   width="715"
   height="500"
   mayscript>
       <param name="uc_imageEditorEnabled" value="true"/>

      <param name="uc_uploadUrl" value="partitionedUploadHandler.php"/>
      <param name="uc_partitionLength" value="1000000"/>
</applet>

</body>
</html>


Contents of Java Console using local jar

Code:
Java Plug-in 1.6.0_19
Using JRE version 1.6.0_19-b04 Java HotSpot(TM) Client VM
User home directory = C:\Documents and Settings\jlees
----------------------------------------------------
c:   clear console window
f:   finalize objects on finalization queue
g:   garbage collect
h:   display this help message
l:   dump classloader list
m:   print memory usage
o:   trigger logging
q:   hide console
r:   reload policy configuration
s:   dump system and deployment properties
t:   dump thread list
v:   dump thread stack
x:   clear classloader cache
0-5: set trace level to <n>
----------------------------------------------------
Trace level set to 5: all ... completed.
basic: Added progress listener: sun.plugin.util.GrayBoxPainter$GrayBoxProgressListener@1115152
basic: Plugin2ClassLoader.addURL parent called for xyzjumploader_z.jar
basic: Applet loaded.
basic: Applet resized and added to parent container
basic: PERF: AppletExecutionRunnable - applet.init() BEGIN ; jvmLaunch dt 220326 us, pluginInit dt 621531132 us, TotalTime: 621751458 us
13.04.2010 07:52:36 - DEBUG - thread applet-jmaster.jumploader.app.JumpLoaderApplet.class-7 - Applet.init() of jl_
13.04.2010 07:52:36 - DEBUG - thread applet-jmaster.jumploader.app.JumpLoaderApplet.class-7 - *****************************************************
13.04.2010 07:52:36 - DEBUG - thread applet-jmaster.jumploader.app.JumpLoaderApplet.class-7 - Initializing JumpLoader v2.16.1
13.04.2010 07:52:36 - DEBUG - thread applet-jmaster.jumploader.app.JumpLoaderApplet.class-7 - Applet code base=xyz
13.04.2010 07:52:36 - DEBUG - thread applet-jmaster.jumploader.app.JumpLoaderApplet.class-7 - Applet document base=xyztest2.html
13.04.2010 07:52:36 - DEBUG - thread applet-jmaster.jumploader.app.JumpLoaderApplet.class-7 - Applet document host=xyz
13.04.2010 07:52:36 - DEBUG - thread applet-jmaster.jumploader.app.JumpLoaderApplet.class-7 - Current thread=thread applet-jmaster.jumploader.app.JumpLoaderApplet.class-7
network: Cache entry not found [url: xyzjumploader_z.jar, version: null]
network: Connecting xyzjumploader_z.jar with proxy=DIRECT
network: Connecting xyz:80/ with proxy=DIRECT
network: Connecting xyzjumploader_z.jar with cookie "mc_p_work=cHNpZD0xZjA4YjQ3MDQ0YzRjMGE4MTQxMDIzMjI0ZmUmQU1HX3VuaXF1ZV9pZD0xZjA4YjQ3MDQ0NjBjMGE4MTQxMDIzMjI0ZmUmdHBjMj0wJnNzaWQ9NzcmYWZ1c2VnPWJyb3dzZXI%3D; mc_s_work=c3JjPXB3JmVzdGF0dXM9MSZjYW1wYWlnbj0mcHdqcz0xMDAwMCZla25vd249MCZ0c2M9MSZzaWQ9MWYwOGI0NzA0NGM0YzBhODE0MTAyMzIyNGZl; cfp_work=DaogCQcNDkX1NC5NGEBE3KrZT8c%3D; s_cc=true; s_nr=1271157486645; s_lastvisit=1271157486646; s_sq=%5B%5BB%5D%5D; ClrSSID=1271157486680-13486; ClrOSSID=1271157486680-13486; ClrSCD=1271157486681; PrefID=22-498396182"
network: Cache entry not found [url: xyzjumploader_z.jar, version: null]
network: Cache entry not found [url: xyzjumploader_z.jar, version: null]
network: Cache entry not found [url: xyzjumploader_z.jar, version: null]
network: Cache entry not found [url: xyzjumploader_z.jar, version: null]
network: Cache entry not found [url: xyzjumploader_z.jar, version: null]
network: Connecting xyzjumploader_z.jar with proxy=DIRECT
network: Connecting xyz:80/ with proxy=DIRECT
network: Connecting xyzjumploader_z.jar with cookie "mc_p_work=cHNpZD0xZjA4YjQ3MDQ0YzRjMGE4MTQxMDIzMjI0ZmUmQU1HX3VuaXF1ZV9pZD0xZjA4YjQ3MDQ0NjBjMGE4MTQxMDIzMjI0ZmUmdHBjMj0wJnNzaWQ9NzcmYWZ1c2VnPWJyb3dzZXI%3D; mc_s_work=c3JjPXB3JmVzdGF0dXM9MSZjYW1wYWlnbj0mcHdqcz0xMDAwMCZla25vd249MCZ0c2M9MSZzaWQ9MWYwOGI0NzA0NGM0YzBhODE0MTAyMzIyNGZl; cfp_work=DaogCQcNDkX1NC5NGEBE3KrZT8c%3D; s_cc=true; s_nr=1271157486645; s_lastvisit=1271157486646; s_sq=%5B%5BB%5D%5D; ClrSSID=1271157486680-13486; ClrOSSID=1271157486680-13486; ClrSCD=1271157486681; PrefID=22-498396182"
network: Cache entry not found [url: xyzjumploader_z.jar, version: null]




Contents of Java Console using jar on jumploader.com

Code:
Java Plug-in 1.6.0_19
Using JRE version 1.6.0_19-b04 Java HotSpot(TM) Client VM
User home directory = C:\Documents and Settings\jlees
----------------------------------------------------
c:   clear console window
f:   finalize objects on finalization queue
g:   garbage collect
h:   display this help message
l:   dump classloader list
m:   print memory usage
o:   trigger logging
q:   hide console
r:   reload policy configuration
s:   dump system and deployment properties
t:   dump thread list
v:   dump thread stack
x:   clear classloader cache
0-5: set trace level to <n>
----------------------------------------------------
13.04.2010 08:05:50 - DEBUG - thread applet-jmaster.jumploader.app.JumpLoaderApplet.class-2 - Applet.stop() of jl_9030750
13.04.2010 08:05:50 - DEBUG - thread applet-jmaster.jumploader.app.JumpLoaderApplet.class-2 - Applet.destroy() of jl_9030750
13.04.2010 08:05:50 - DEBUG - thread applet-jmaster.jumploader.app.JumpLoaderApplet.class-2 - Destroying jl_9030750
13.04.2010 08:05:50 - DEBUG - jl_9030750_appletMessagePumper - jl_9030750_appletMessagePumper terminated
13.04.2010 08:05:50 - DEBUG - jl_9030750_UploaderJSProxy - jl_9030750_UploaderJSProxy terminated
13.04.2010 08:05:50 - DEBUG - jl_9030750_thumbnailManager - jl_9030750_thumbnailManager terminated
13.04.2010 08:05:50 - DEBUG - thread applet-jmaster.jumploader.app.JumpLoaderApplet.class-3 - Applet.init() of jl_
13.04.2010 08:05:50 - DEBUG - thread applet-jmaster.jumploader.app.JumpLoaderApplet.class-3 - *****************************************************
13.04.2010 08:05:50 - DEBUG - thread applet-jmaster.jumploader.app.JumpLoaderApplet.class-3 - Initializing JumpLoader v2.16.1
13.04.2010 08:05:50 - DEBUG - thread applet-jmaster.jumploader.app.JumpLoaderApplet.class-3 - Applet code base=xyz
13.04.2010 08:05:50 - DEBUG - thread applet-jmaster.jumploader.app.JumpLoaderApplet.class-3 - Applet document base=xyztest1.html
13.04.2010 08:05:50 - DEBUG - thread applet-jmaster.jumploader.app.JumpLoaderApplet.class-3 - Applet document host=xyz
13.04.2010 08:05:50 - DEBUG - thread applet-jmaster.jumploader.app.JumpLoaderApplet.class-3 - Current thread=thread applet-jmaster.jumploader.app.JumpLoaderApplet.class-3
13.04.2010 08:05:50 - DEBUG - thread applet-jmaster.jumploader.app.JumpLoaderApplet.class-3 - Starting JumpLoader v2.16.1
13.04.2010 08:05:50 - DEBUG - thread applet-jmaster.jumploader.app.JumpLoaderApplet.class-3 - Creating thread: thumbnailManager
13.04.2010 08:05:50 - DEBUG - thread applet-jmaster.jumploader.app.JumpLoaderApplet.class-3 - Creating thread: appletMessagePumper
13.04.2010 08:05:50 - DEBUG - jl_19556074_thumbnailManager - jl_19556074_thumbnailManager started
13.04.2010 08:05:50 - DEBUG - jl_19556074_appletMessagePumper - jl_19556074_appletMessagePumper started
13.04.2010 08:05:50 - DEBUG - thread applet-jmaster.jumploader.app.JumpLoaderApplet.class-3 - Creating thread: UploaderJSProxy
13.04.2010 08:05:50 - DEBUG - jl_19556074_UploaderJSProxy - jl_19556074_UploaderJSProxy started
13.04.2010 08:05:50 - DEBUG - AWT-EventQueue-3 - Creating thread: uploadFileListUpdater
13.04.2010 08:05:50 - DEBUG - AWT-EventQueue-3 - Creating thread: uploadFileList_ClipboardMon
13.04.2010 08:05:50 - DEBUG - AWT-EventQueue-3 - View created: jmaster.jumploader.view.impl.main.MainView[,0,0,0x0,invalid,layout=java.awt.GridBagLayout,alignmentX=0.0,alignmentY=0.0,border=javax.swing.border.EtchedBorder@bcb23e,flags=9,maximumSize=,minimumSize=,preferredSize=]
13.04.2010 08:05:51 - DEBUG - thread applet-jmaster.jumploader.app.JumpLoaderApplet.class-3 - Controller created: jmaster.jumploader.controller.Controller@83d8be
13.04.2010 08:05:51 - DEBUG - thread applet-jmaster.jumploader.app.JumpLoaderApplet.class-3 - Starting controller, model config objects dump
13.04.2010 08:05:51 - DEBUG - thread applet-jmaster.jumploader.app.JumpLoaderApplet.class-3 - UploaderConfig:

uploadThreadCount=1
uploadUrl=xyzpartitionedUploadHandler.php
maxFiles=-1
maxFileLength=-1
maxLength=-1
fileNamePattern=null
fileNamePatternDescription=null
directoriesEnabled=false
duplicateFileEnabled=false
fileParameterName=file
partitionLength=1000000
userAgent=Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 (.NET CLR 3.5.30729)
cookie=mc_p_work=cHNpZD0xZjA4YjQ3MDQ0YzRjMGE4MTQxMDIzMjI0ZmUmQU1HX3VuaXF1ZV9pZD0xZjA4YjQ3MDQ0NjBjMGE4MTQxMDIzMjI0ZmUmdHBjMj0wJnNzaWQ9NzcmYWZ1c2VnPWJyb3dzZXI%3D; mc_s_work=c3JjPXB3JmVzdGF0dXM9MSZjYW1wYWlnbj0mcHdqcz0xMDAwMCZla25vd249MCZ0c2M9MSZzaWQ9MWYwOGI0NzA0NGM0YzBhODE0MTAyMzIyNGZl; cfp_work=DaogCQcNDkX1NC5NGEBE3KrZT8c%3D; s_cc=true; s_nr=1271157486645; s_lastvisit=1271157486646; s_sq=%5B%5BB%5D%5D; ClrSSID=1271157486680-13486; ClrOSSID=1271157486680-13486; ClrSCD=1271157486681; PrefID=22-498396182
useMd5=false
usePartitionMd5=false
minFiles=-1
minFileLength=-1
uploadScaledImages=false
uploadScaledImagesNoZip=false
stretchImages=false
uploadOriginalImage=false
scaledInstanceNames=null
scaledInstanceDimensions=null
scaledInstanceQualityFactors=null
scaledInstanceRecompressAndUploadSmaller=false
scaledInstanceWatermarkNames=null
scaledInstancePreserveMetadata=false
scaledInstanceScaleMode=lanczos
sendOriginalImageMimetype=false
imageSubsamplingFactor=7
useMainFile=false
addImagesOnly=false
minimumImageDimension=null
maximumImageDimension=null
imageEditorEnabled=true
imageRotateEnabled=false
resumeCheckUrl=null
urlEncodeParameters=false
sendFileLastModified=true
compressionMode=null
zipDirectoriesOnAdd=false
sendFilePath=false
maxTransferRate=-1
httpUploaderClassName=jmaster.util.http.D
uploadQueueReorderingAllowed=false
requestEncoding=UTF-8
sendImageMetadata=false
preserveRelativePath=false
useMetadata=false
metadataDescriptorUrl=null
metadataCheckRequiredFields=true
mimeTypePattern=null
useJMimeMagic=false
jmmExtensionHints=true
jmmOnlyMimeMatch=false
autoRetryCount=0
useLosslessJpegTransformations=false
generalPurposeCheckParamName=null
generalPurposeCheckboxTooltip=null
uploaderListeners=null
imageMaxMpx=0.0
uploadFormName=null
preserveImageFormat=false
saveImageTransformations=false
zipPartitions=false
removeUploadedFiles=false
imageLoadPixelsMax=7000000
regionPixelsMax=3000000
clipboardImageEnabled=true
clipboardImageFormat=jpg
clipboardImageNameFormat=paste 0
requestProperties=null
ignoreFileAddErrors=true

13.04.2010 08:05:51 - DEBUG - thread applet-jmaster.jumploader.app.JumpLoaderApplet.class-3 - ViewConfig:
lookAndFeel=crossPlatform
uiDefaults=null
dumpUiDefaults=false
guiProperties=null
useThumbs=true
thumbWidth=80
thumbHeight=80
fileNamePattern=null
mainViewLogoEnabled=false
mainViewFileTreeViewVisible=false
mainViewFileTreeViewWidthPercent=25
mainViewFileListViewVisible=false
mainViewFileListViewHeightPercent=50
mainViewShowUploadErrors=false
fileBrowserInitialLocation=default
fileTreeViewShowFiles=false
fileTreeViewShowFileLength=false
fileTreeViewShowHiddenFiles=false
fileTreeViewRootFiles=home
fileListViewLocationBarVisible=true
fileListViewUseThumbs=true
fileListViewShowFolders=true
fileListQueueFileOnDblClick=true
fileListViewImagePreviewTooltip=true
fileListViewImagePreviewTooltipBox=400x400
fileTreeViewShowHiddenFiles=false
fileTreeQueueFileOnDblClick=true
uploadViewMenuBarVisible=true
uploadViewPasteActionVisible=true
uploadViewAddActionVisible=true
uploadViewRemoveActionVisible=true
uploadViewRetryActionVisible=true
uploadViewFilesSummaryBarVisible=true
uploadViewStartActionVisible=true
uploadViewStopActionVisible=true
uploadViewListStatusVisible=true
uploadViewProgressPaneVisible=true
uploadViewUseThumbs=true
uploadListViewName=null
disableLocalFileSystem=true
uploadViewStartUploadButtonTextnull
uploadViewStartUploadButtonImageUrl=null
uploadViewStopUploadButtonText=null
uploadViewStopUploadButtonImageUrl=null
uploadViewAutoscrollToUploadingFile=false
uploadViewStartActionAlwaysVisible=false
uploadViewStopActionAlwaysVisible=false
uploadViewMenuBarY=0
uploadViewListY=1
uploadViewControlPanelY=2
thumbnailManagerProgressViewEnabled=true
thumbnailManagerProgressViewHorizontalMargin=4
thumbnailManagerProgressViewVerticalMargin=4
uploadViewListShowFileSize=true
uploadViewListShowStop=true
uploadViewListShowRetry=true
uploadViewListShowAddDialogOnDblClick=true
uploadViewFileChooserDetailsView=false

13.04.2010 08:05:51 - DEBUG - thread applet-jmaster.jumploader.app.JumpLoaderApplet.class-3 - AppletConfig:
mode=embedded
fireAppletInitialized=false
fireUploaderFileAdded=false
fireUploaderFileRemoved=false
fireUploaderFileMoved=false
fireUploaderFileStatusChanged=false
fireUploaderFilesReset=false
fireUploaderStatusChanged=false
fireUploaderSelectionChanged=false
properties=null

f=C:\DOCUME~1\jlees\LOCALS~1\Temp\jumploader6554824446787511766jumploader
13.04.2010 08:05:51 - DEBUG - thread applet-jmaster.jumploader.app.JumpLoaderApplet.class-3 - Applet.start() of jl_19556074


[/code]
Back to top
View user's profile Send private message
jlees



Joined: 13 Apr 2010
Posts: 3

PostPosted: Tue Apr 13, 2010 12:44 pm    Post subject: re: 'Cache entry not found' Reply with quote

I forgot to mention that I only get the 'Cache entry not found' entries in the Java Console if I access the jar file locally
AND have the 'Keep temporary files on my computer' checkbox checked in the 'Temporary Internet Files' section of the Java Control Panel.
If the checkbox is unchecked, the applet loads at its normal speed and the entries do not appear.
Is there a <PARAM> that I can use to always disable the 'Keep temporary files on my computer' feature
or is there another way that I can prevent the entries from appearing?
Thanks again, John
Back to top
View user's profile Send private message
jlees



Joined: 13 Apr 2010
Posts: 3

PostPosted: Tue Apr 13, 2010 7:03 pm    Post subject: Reply with quote

This issue was related to the server that I was hosting the jar file on. The server was returning a mime-type of application/octet-stream rather than application/java-archive. Once it was changed, the 'Cache' statements went away.
Back to top
View user's profile Send private message
srgadewar



Joined: 15 Feb 2011
Posts: 1

PostPosted: Tue Feb 15, 2011 9:59 am    Post subject: I am facing the same problem Reply with quote

Can you please provide me more details. Since 3-4 days m trying to remove those not cache found message... :(
Back to top
View user's profile Send private message
Andy



Joined: 24 May 2011
Posts: 1

PostPosted: Tue May 24, 2011 8:39 am    Post subject: Reply with quote

I'm having the same problem. I've been developing an asp.net website with this jumploader upload applet. Everything is working fine aslong as I work locally through my developping IDE (Visual Studio) but once I try to upload everything to the online server I keep getting this error:

Quote:

Exception: java.lang.ClassNotFoundException: jmaster.jumploader.app.JumpLoaderApplet.class


I'm not sure if I'm uploading the website correctly. Does anyone have some experience using this uploader in an asp.net website?

It has probably something to do with the path that ain't correct but I have no idea which one I have to change.

Thx for any reply!
Back to top
View user's profile Send private message
jklam



Joined: 09 Nov 2007
Posts: 256

PostPosted: Tue May 24, 2011 12:17 pm    Post subject: Reply with quote

For a start, you can use the basic <applet> tag:
Code:

<applet name="jumpLoaderApplet"
   code="jmaster.jumploader.app.JumpLoaderApplet.class"
   archive="jumploader_z.jar"
   width="715"
   height="500"
   mayscript>
...
</applet>


Then make sure you have jumploader_z.jar in the same folder as your aspx script. Also check that file permissions are correct.

If that doesn't work you can provide the test URL.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    JumpLoader Forum Index -> General questions All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group