File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JNLP and Web Start and the fly likes Could not launch from cache. Will try online mode. [Some of required resources are not cached.] Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JNLP and Web Start
Bookmark "Could not launch from cache. Will try online mode. [Some of required resources are not cached.]" Watch "Could not launch from cache. Will try online mode. [Some of required resources are not cached.]" New topic
Author

Could not launch from cache. Will try online mode. [Some of required resources are not cached.]

Malcolm Clews
Greenhorn

Joined: Aug 30, 2007
Posts: 19
Hi,

WebStart app used here was developed to run on client jvm 1.6.0_14, everything working fine.

Client desktop PCs were upgraded a few days ago to jvm 1.6.0_22 without my prior knowledge.

App still appears to be working fine, but I now see...

'Could not launch from cache. Will try online mode. [Some of required resources are not cached.]'

... via Java Console when the app is started up, as per the following extract from the Java Console output:-


Java Web Start 1.6.0_22
Using JRE version 1.6.0_22-b04 Java HotSpot(TM) Client VM
User home directory = C:\Documents and Settings\9999
----------------------------------------------------
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>
----------------------------------------------------
Could not launch from cache. Will try online mode. [Some of required resources are not cached.]
06-12-2010 14:55:18: calls to server (runSelectStatementReturnResultsObject): 2
...
...


Can't see that any of the required resources are not cached; anyone know what's happening here?

Thanks,

Malcolm
Andrew Watson
Greenhorn

Joined: Dec 02, 2010
Posts: 25
Look at the Control Panel cache settings. Maybe it ignores coping temp internet files
Malcolm Clews
Greenhorn

Joined: Aug 30, 2007
Posts: 19
Hi Andrew,

Thanks for the reply.

I've had a look at Control Panel and tried different settings for cacheing, hasn't made any difference.

As far as I am aware, these settings haven't changed from when 1.6.0_14 was running....

Malcolm

Andrew Watson
Greenhorn

Joined: Dec 02, 2010
Posts: 25
You mean you checked control panel as checked (General - Temp internet files (temp files settings) - keep temp files on my computer)
Is the checkbox selected?


this phrase as
Could not launch from cache. Will try online mode. [Some of required resources are not cached.]

means you don't have the app required classes or resources installed on your computer. So as a
case... you can redownload the updated version into tour cache by getting in
(General - Temp Internet files (Views) - (find youp app in the list) and start it with Run button)
that should upgrade the cached app classes I guess

Report if that helps

PS
and as a case watch the cache available size.


Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10535
    
    9

What I think is happening, is the update cleared the Java cache.
You can confirm this by
1) Launching the application
2) Closing it
3) Relaunching

At #3, it should have the resources and will not need to go online


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Malcolm Clews
Greenhorn

Joined: Aug 30, 2007
Posts: 19
Hi Andrew/Maneesh,

Thanks for the replies - much appreciated this end.


Andrew:-

"You mean you checked control panel as checked (General - Temp internet files (temp files settings) - keep temp files on my computer)
Is the checkbox selected?"

Yes, checkbox is selected.

"this phrase as

Could not launch from cache. Will try online mode. [Some of required resources are not cached.]

means you don't have the app required classes or resources installed on your computer. So as a
case... you can redownload the updated version into tour cache by getting in
(General - Temp Internet files (Views) - (find youp app in the list) and start it with Run button)
that should upgrade the cached app classes I guess"

Yes, running the app from there, 'Could not launch from cache..' is not displayed.

Generating a shortcut using the 'Install shortcut to the selected application' button, and running the app from this newly generated
shortcut, error message is also not displayed.

The generated shortcut has:-

Target: C:\WINNT\system32\javaws.exe -localfile "C:\Documents and Settings\8869\Application Data\Sun\Java\Deployment\cache\6.0\33\82d9821-7e4789e6"
Start in: <blank>

When I run the app by invoking the old existing shortcut, the error message is still seen every time the app is launched.

The old shortcut has:-

Target: "C:\Program Files\Java\jre6\bin\javaws.exe" "http://157.236.1.40/fodw_EAP/fodw_EAP.jnlp"
Start in: "C:\Program Files\Java\jre6\bin"

Maneesh:-

As per above, I see the message every time app is launched with the old shortcut, but not when running as described above.


Andrew/Maneesh:-

I am being diverted onto other work now, so posting this now. I wonder whether the cached resources are actually always there but not being 'seen'
for some reason. When next possible I will try removing/reinstalling app and have a look more closely at the cache to check timestamps etc to
see if this throws any light on it.

Thanks again for your help,

Regards,

Malcolm
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Could not launch from cache. Will try online mode. [Some of required resources are not cached.]