Error "Cannot find cached resource" with Gary's personal server V1.4.6 and JDK1.7.0_21

1,136 views
Skip to first unread message

Taifun

unread,
Apr 18, 2013, 12:50:43 PM4/18/13
to ai...@googlegroups.com
Does anyone have Gary's personal server running successfully together with the new JDK?
I get the error "Cannot find cached resource for URL" while opening the blocks editor. MIT App Inventor is running fine.

I already tried to clean my cache in the browser, reinstalled the personal server and rebooted.
Up to now without success :-(
Probably because of new security features in the JDK?
Taifun



java.io.IOException: Cannot find cached resource for URL: http://localhost:8888/ode2/webstartfile/v132-16-g0025b7e_d824h4eddfpc0kipeldr4iva1k9hgrc4x1ozk7q86g0hjtqzv82hheizrfaervtvr05omhmta51gkm9qasqckx8vr61zt1nzb2e52wp365oj0q69kjkdikxo0e8nc7b80takai1o3n/BlocksEditor.jar
    at com.sun.deploy.cache.Cache.getCachedResourceFilePath(Unknown Source)
    at com.sun.deploy.cache.ResourceProviderImpl.getCachedResourceFilePath(Unknown Source)
    at com.sun.javaws.security.JNLPSignedResourcesHelper.getSignedJNLPBits(Unknown Source)
    at com.sun.javaws.security.JNLPSignedResourcesHelper.getSignedJNLPFile(Unknown Source)
    at com.sun.javaws.security.JNLPSignedResourcesHelper.checkSignedLaunchDescHelper(Unknown Source)
    at com.sun.javaws.security.JNLPSignedResourcesHelper.checkSignedLaunchDesc(Unknown Source)
    at com.sun.javaws.security.JNLPSignedResourcesHelper.checkSignedLaunchDesc(Unknown Source)
    at com.sun.javaws.Launcher.prepareResources(Unknown Source)
    at com.sun.javaws.Launcher.prepareAllResources(Unknown Source)
    at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
    at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
    at com.sun.javaws.Launcher.launch(Unknown Source)
    at com.sun.javaws.Main.launchApp(Unknown Source)
    at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
    at com.sun.javaws.Main.access$000(Unknown Source)
    at com.sun.javaws.Main$1.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)

Taifun

unread,
Apr 18, 2013, 1:37:53 PM4/18/13
to ai...@googlegroups.com
meanwhile I went back to JDK7 Update 17 and everything worked fine.
then tried again JDK7 Update 21, still the "Cannot find cached resource" problem
then I installed the newest JDK6 Update 45. Gary's personal server works!
I'm now back again.at Java 6 ...
Taifun

Gary

unread,
Apr 18, 2013, 3:20:00 PM4/18/13
to ai...@googlegroups.com
I just installed Java 7.21. I'll test. It may be a while. :-(

Gary

unread,
Apr 18, 2013, 4:21:46 PM4/18/13
to ai...@googlegroups.com
Good news, Gary's personal server is having problems also

and!!!

I had a problem before the problem with the file you reported Taifun :-S

I'll dig.

and...

can you go to where you have the personal server while it is running and check for a folder \ode2

Gary

Taifun

unread,
Apr 18, 2013, 4:46:43 PM4/18/13
to ai...@googlegroups.com
can you go to where you have the personal server while it is running and check for a folder \ode2
is this folder inside of AppEngine\war?
running JDK 6 Version 45 I can't see this folder, only the folder \ode
do you want me to install Java 7 Version 21 again and look for that folder there?
Taifun

Gary

unread,
Apr 18, 2013, 5:00:18 PM4/18/13
to ai...@googlegroups.com
no
it is generated

still looking. what an interesting problem :-P

Gary

Yutthana

unread,
Apr 18, 2013, 9:08:24 PM4/18/13
to ai...@googlegroups.com
I've upgrade to jdk 7 update 21 and got the problem too.
clear java cached in control panel and every thing work fine.

Gary

unread,
Apr 19, 2013, 5:32:13 AM4/19/13
to ai...@googlegroups.com
!!!

Thanks Yutthana. That worked for me.

Can someone document how to clear the the temporary files in the Java control panel?

Gary

Chris Roberts

unread,
Apr 19, 2013, 7:10:46 AM4/19/13
to ai...@googlegroups.com
Here is Java's instructions for clearing the cache. http://www.java.com/en/download/help/plugin_cache.xml

Though, this did not work for me.

-Chris

Gary

unread,
Apr 19, 2013, 7:23:04 AM4/19/13
to ai...@googlegroups.com
You may have another problem
Back to your original post in the other group for that.

Gary

unread,
Apr 21, 2013, 8:15:00 AM4/21/13
to ai...@googlegroups.com
I'm still fighting with 1.7.0_21. Anyone else having problems with it and the Personal Server?

Tom Andersen

unread,
Apr 22, 2013, 4:17:35 AM4/22/13
to ai...@googlegroups.com
Yes... I'm having the same exact issue!  I cleared the Java cache, didn't solve the problem.... ouch.  And yes, I have the ode2 file.  I'll be glad to help or test in any way needed...

Gary

unread,
Apr 22, 2013, 4:59:35 AM4/22/13
to ai...@googlegroups.com
Try this

clear the Java cache
reboot
unzip V1.4.7 and run it

Gary

Tom Andersen

unread,
Apr 22, 2013, 5:02:14 AM4/22/13
to ai...@googlegroups.com
I'll try it now... thanks!
--
You received this message because you are subscribed to a topic in the Google Groups "App Inventor for All" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ai4a/pqy4NsIPl0E/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to ai4a+uns...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Tom Andersen

unread,
Apr 22, 2013, 6:34:43 AM4/22/13
to ai...@googlegroups.com, Tom Andersen

Unfortunately still not working for me...

I cleared my Java cache, rebooted, then extracted the new copy to my "Personal_Server folder, still get the same message when I try to open the Blocks editor...:about missing the cache file... here is the detail:

<jnlp spec="1.0+" codebase="http://localhost:8888/ode2/webstartfile/v132-32-g56eb7b4_d7g1czshg5oba2xf0ciw0cuyat7rrvk2incys56y37mlyixc1dzkej7hcy402y1qf3bq9955mja441oln3e4wy4ynq53yj4zsuy277rwvssj1u2fa4odpw5nalzy3at14nlvwztvu3">
  <information>
    <title>App Inventor for Android Blocks Editor</title>
    <vendor>MIT Center for Mobile Learning</vendor>
    <description>App Inventor for Android Blocks Editor</description>
  </information>
  <security>
    <all-permissions/>
  </security>
  <update check="always" policy="always"/>
  <resources>
    <j2se version="1.5+" max-heap-size="925m" java-vm-args=""/>
    <jar href="BlocksEditor.jar"/>
    <property name="wifi.enabled" value="true"/>
  </resources>
  <application-desc main-class="com.google.appinventor.blockseditor.youngandroid.YaHttpServerMain">
    <argument>http://localhost:8888/ode2/webstartfile/</argument>
    <argument>v132-32-g56eb7b4_d7g1czshg5oba2xf0ciw0cuyat7rrvk2incys56y37mlyixc1dzkej7hcy402y1qf3bq9955mja441oln3e4wy4ynq53yj4zsuy277rwvssj1u2fa4odpw5nalzy3at14nlvwztvu3/</argument>
  </application-desc>
</jnlp>

The first time I tried it I created a new folder called "Personal_Server1" and tried to start fresh from there, but then I realized that might have environment variable issues... so I then extracted the new version on top of my original "Personal_Server" folder, cleared the cache, and also cleared my browser history. (Note, running Firefox)... still getting the same error.

The AppEngine is telling me:

INFO: Appstats available: /appstats/details?time=1366626002484
Apr 22, 2013 3:20:07 AM com.google.appinventor.server.IdMap get
INFO: IdMap.get called for te...@example.com but no valid map exists.
Apr 22, 2013 3:20:07 AM com.google.appengine.tools.appstats.AppstatsFilter doFil
ter

Any other ideas are GREATLY appreciated, as is your efforts...
To unsubscribe from this group and all its topics, send an email to ai4a+unsubscribe@googlegroups.com.

Gary

unread,
Apr 22, 2013, 8:26:52 AM4/22/13
to ai...@googlegroups.com, Tom Andersen
Howdy Tom and all,

Some days it all goes smooth
today I can not get the blocks editor to connect to a device, hardware or emulator.
I'll keep hammering

Tom, try rolling back to the previous version of Java.

woo hoo?

Gary

Gary

unread,
Apr 22, 2013, 8:28:42 AM4/22/13
to ai...@googlegroups.com, Tom Andersen
the app engine log is telling you that there is nothing in a control file
not an error, just some INFO

Gary

Frank Super

unread,
Apr 24, 2013, 12:53:38 AM4/24/13
to ai...@googlegroups.com
Like wise and now it won't work I even tried the 1.4.7 update but no luck.

Anand P

unread,
Apr 24, 2013, 2:51:16 AM4/24/13
to ai...@googlegroups.com
Me too get same error, my java updated to 1.7.0_17, can you please help me to fix. TQ.


Gary

unread,
Apr 24, 2013, 4:31:58 AM4/24/13
to ai...@googlegroups.com
Anand

you are getting it with 1.7.0_17?

Gary (still no clue as to what the problem is)

Tom Andersen

unread,
Apr 24, 2013, 4:43:39 AM4/24/13
to ai...@googlegroups.com
I took Gary's advice and rolled back, and have it working again.  BUT... I had to mess with it for a while.  I noticed uninstalling 7_21 didn't work the first time... I finally went back and did it again, and got it foing.  I'm running the 7_17, with the 1.6.0_45 JDK installed, and it now works again.  You have to be careful about clearing your Java cache first... from the Java console.

Tom

Gary

unread,
Apr 24, 2013, 5:50:24 AM4/24/13
to ai...@googlegroups.com
Thanks Tom

I am not finding anything that I can point at. Any input is appreciated.

It looks like it is something that Java 1.7.0_21 'did'. I am not able to find anything about that by googling. Hmmm, perhaps a question in the App Engine group.

Gary

Taifun

unread,
Apr 24, 2013, 11:29:25 AM4/24/13
to ai...@googlegroups.com
there is this thread https://forums.oracle.com/forums/thread.jspa?messageID=10980436
probably you understand the solution?
Taifun

Taifun

unread,
Apr 24, 2013, 11:32:43 AM4/24/13
to ai...@googlegroups.com
http://www.oracle.com/technetwork/java/javase/7u21-relnotes-1932873.html
could it be because of one of these changes?
Taifun

Changes to Java Control Panel's Security Settings

In this release, low and custom settings are removed from the Java Control Panel(JCP)'s Security Slider.

Depending on the security level set in the Java Control Panel and the user's version of the JRE, self-signed or unsigned applications might not be allowed to run. The default setting of High permits all but local applets to run on a secure JRE. If the user is running an insecure JRE, only applications that are signed with a certificate issued by a recognized certificate authority are allowed to run.

For more information, see the Security section of the Java Control Panel documentation.


Changes to Security Dialogs

As of JDK 7u21, JavaScript code that calls code within a privileged applet is treated as mixed code and warning dialogs are raised if the signed JAR files are not tagged with the Trusted-Library attribute.

For more information, see Mixing Privileged Code and Sandbox Code documentation.

The JDK 7u21 release enables users to make more informed decisions before running Rich Internet Applications (RIAs) by prompting users for permissions before an RIA is run. These permission dialogs include information on the certificate used to sign the application, the location of the application, and the level of access that the application requests. For more information, see User Acceptance of RIAs.


Changes to Application Signing

Starting from JDK 7u21, it is recommended that all applications be signed. In addition, it is also possible to restrict signed applications to the security sandbox.

Therefore, the previous use of the term "unsigned" to mean an application that ran in the security sandbox and "signed" to mean an application that ran with extended permissions, is no longer meaningful.

The terminology in the Java Tutorial and the Java SE Guides has been changed to use "sandbox application" for applications that are restricted to the security sandbox, and "privileged application" for applications that have extended permissions.

Unsigned or self-signed applications may not be supported in future JDK update releases.

For more information on signing applications, see Understanding Signing and Verification. Deploying with Applet Tag describes setting permissions for an applet within the applet tag.

Gary

unread,
Apr 25, 2013, 5:19:59 AM4/25/13
to ai...@googlegroups.com
I'll follow up. Probably not till tomorrow. :-(

Thanks for the help!!!

J Martin Grännsjö

unread,
May 1, 2013, 1:01:32 PM5/1/13
to ai...@googlegroups.com
Thank you all for the fantastic you are doing (many discussions and support) in creating a personal AI server (especially Gary) I downloaded the OLD version of Java xx17 and it worked with 1.4.7.

But the problem I encountered was that I no longer can use the Wifi connection and it is "huge" problem with updating to 5554: AVD emulator (I use the Android SDK emulator)

Is there any way to go back to the 1.4.6 server? I've tried to clear java, but the charge is still 1.4.7, even when I start the 1.4.6?

Taifun

unread,
May 1, 2013, 1:40:34 PM5/1/13
to ai...@googlegroups.com
clear the browser cache
Taifun

J Martin Grännsjö

unread,
May 1, 2013, 2:11:56 PM5/1/13
to ai...@googlegroups.com
I have tried to clear cache in browser. But it starts anyway 1.4.7. there must be something I'm missing? I have cleared the Java temp and Browser Cache.

Taifun

unread,
May 1, 2013, 2:21:18 PM5/1/13
to ai...@googlegroups.com
did you stop 1.4.7 before clearing the browser cache and starting 1.4.6?
it might help to restart your computer, clear the browser cache again and then start 1.4.6
Taifun

J Martin Grännsjö

unread,
May 3, 2013, 7:05:30 AM5/3/13
to ai...@googlegroups.com
Where can I find whats new in Garys Personal server v1.5?

Gary

unread,
May 3, 2013, 7:17:10 AM5/3/13
to ai...@googlegroups.com
Howdy

The ai4a Personal Server V1.5.0 is the newblocks version of App Inventor. It's for the few that want to test bleeding edge software.
There is no documentation.

Gary

PS. Gary's personal server is on Gary's PC. The ai4a personal servers are on sourceforge.

J Martin Grännsjö

unread,
May 3, 2013, 7:22:29 AM5/3/13
to ai...@googlegroups.com
Thanks Gary (you are awesome) information I was looking for was whether the new verison 1.5 works with the latest Jav (xx.21) and if it works with MIT Wifi connecion

Gary

unread,
May 3, 2013, 7:30:15 AM5/3/13
to ai...@googlegroups.com
It does not have the Companion so no wifi.
I have not tested with Java 1.7.0_21

and

:-)

Gary

J Martin Grännsjö

unread,
May 3, 2013, 4:00:11 PM5/3/13
to ai...@googlegroups.com
Hey, maybe the wrong forum for this question ... But I have a thought about JAVA_HOME. I have set the Java home to C: \ Program Files \ Java \ jdk1.7.0_17. But I am of the zip file to download to the server so there is a library named AppEngine-java-sdk-1.7.7.1. Should I put my Java_ home to this library instead?

Another question. When I work with blocks editor, it becomes desyncs when I move the block ... eg I put an IF block does not follow the contents of the block? Anyone else encountered the same problem?

/ J Martin

Thiago Proeti Nunes

unread,
May 3, 2013, 5:25:57 PM5/3/13
to ai...@googlegroups.com
Hello man!!

On Java_Home you must put your Java JDK path

Ex.: mine is C:\Program Files\Java\jdk1.7.0_17

Jomebrew

unread,
May 3, 2013, 6:06:26 PM5/3/13
to ai...@googlegroups.com
I got sick up updating java home so now I use:

echo Detecting OS processor type

if "%PROCESSOR_ARCHITECTURE%"=="AMD64" goto 64BITOS
echo 32-bitOS

for /d %%i in ("\Program Files(x86)\Java\jdk*") do set JAVA_HOME=%%i

goto START

:64BITOS
echo 64bitOS
for /d %%i in ("\Program Files\Java\jdk*") do set JAVA_HOME=%%i

:START

REM Change current directory and drive to where this script is.
cd /d %~dp0
REM set the location of the App Engine
set AEJSDK=C:\drived\ai_server\appengine-java-sdk-1.7.3

REM assumes war is below this cmd
start %AEJSDK%\bin\dev_appserver.cmd --port=8888 --address=0.0.0.0 war


--
You received this message because you are subscribed to the Google Groups "App Inventor for All" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ai4a+uns...@googlegroups.com.

Gary

unread,
May 4, 2013, 5:33:08 AM5/4/13
to ai...@googlegroups.com
Does the test FOR PROCESSOR ARCHITECTURE == "AMD64" work for all kinds of 64bit processors?

Gary

Jomebrew

unread,
May 4, 2013, 11:01:15 AM5/4/13
to ai...@googlegroups.com
For AMD (the first 64/32 bit processor hence AMD64) and Intel it does. The Itanium is IA64 but I doubt any AI4A folks who would have one of those beasts.


Gary

unread,
May 5, 2013, 5:53:43 AM5/5/13
to ai...@googlegroups.com
Thanks

I do not think App Inventor runs on anything other than Intel and AMD.

I appreciate the updates to the script. I am not a script guru.

Gary

Mathias Kegelmann

unread,
May 25, 2013, 8:56:03 AM5/25/13
to ai...@googlegroups.com
After some trial and error I'm basically sure that the issue is that when javaws downloads BlocksEditor.jar the HTTP header

 Cache-Control: no-cache, no-store, max-age=0, must-revalidate

is set. Without that header everything works fine. I did not investigate...
  • ... which of the attributes is the problem (my first guess would be no-store)
  • ... nor whether omitting this header has any negative side effects, as I have been only playing with the patched version for an hour.

Here's the patch:

Modified   appinventor/appengine/src/com/google/appinventor/server/util/CacheHeadersImpl.java
diff --git a/appinventor/appengine/src/com/google/appinventor/server/util/CacheHeadersImpl.java b/appinventor/appengine/src/com/google/appinventor/server/util/CacheHeadersImpl.java
index 0e63832..233d7ca 100644
--- a/appinventor/appengine/src/com/google/appinventor/server/util/CacheHeadersImpl.java
+++ b/appinventor/appengine/src/com/google/appinventor/server/util/CacheHeadersImpl.java
@@ -21,7 +21,7 @@ public class CacheHeadersImpl implements CacheHeaders {
 
   @Override
   public void setNotCacheable(HttpServletResponse resp) {
-    resp.setHeader("Cache-Control","no-cache, no-store, max-age=0, must-revalidate");
+    // BREAKS WEBSTART in JAVA1.7u21 resp.setHeader("Cache-Control","no-cache, no-store, max-age=0, must-revalidate");
     resp.setHeader("Pragma", "no-cache");
     resp.setHeader("Expires", TIME_IN_THE_PAST);
   }

Cheers,
Mathias

Gary

unread,
May 25, 2013, 12:29:58 PM5/25/13
to ai...@googlegroups.com
!!!

Make that !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

I do not have time to put a new version out soon :-(


and

If it was a problem with both Windows and Mac, it probably is a problem with Linux and that is something worth passing on to MIT.

Gary

J Martin Grännsjö

unread,
May 28, 2013, 12:06:05 PM5/28/13
to ai...@googlegroups.com
There is a new version today 1.4.7? Whats new? I downloaded one 1.4.7 a month ago?

/ Martin

Taifun

unread,
May 28, 2013, 12:24:36 PM5/28/13
to ai...@googlegroups.com

mavilla vishnu vardhan

unread,
May 25, 2014, 12:15:11 PM5/25/14
to ai...@googlegroups.com
i am getting the same error. any sollution for this. sorry but i didn't understand the discussion above. i have emptied the cache of both java and browser but i am still getting the error.

Taifun

unread,
May 25, 2014, 3:16:39 PM5/25/14
to ai...@googlegroups.com
@Mavilla: which personal server are you using?
Taifun
Reply all
Reply to author
Forward
0 new messages