• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Look at the Control Panel cache settings. Maybe it ignores coping temp internet files
 
Malcolm Clews
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.


 
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Malcolm Clews
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
reply
    Bookmark Topic Watch Topic
  • New Topic