This site requires JavaScript, please enable it in your browser!
Greenfoot back
TheNightStrider
TheNightStrider wrote ...

2012/3/22

What? Scenario not loading when uploaded?

1
2
3
4
TheNightStrider TheNightStrider

2012/3/23

#
This has really got me! I honestly can think of a situation where it would work in the Greenfoot IDE, but no when uploaded and not when In a jar?
danpost danpost

2012/3/23

#
If you were running it in Greenfoot, I am sure (it would give a reference to a line). Does it reference lines in your code when it is exported as a website?
TheNightStrider TheNightStrider

2012/3/23

#
danpost wrote...
If you were running it in Greenfoot, I am sure (it would give a reference to a line). Does it reference lines in your code when it is exported as a website?
It runs perfectly in greenfoot. Those error messages that I have posted are all from when running in a website.
java.lang.IllegalArgumentException: Could not open sound file: New Folder
	at greenfoot.sound.SoundExceptionHandler.handleIOException(SoundExceptionHandler.java:66)
	at greenfoot.sound.SoundFactory.createSound(SoundFactory.java:115)
	at greenfoot.sound.SoundFactory.getCachedSound(SoundFactory.java:130)
	at greenfoot.sound.SoundFactory.<init>(SoundFactory.java:67)
	at greenfoot.sound.SoundFactory.getInstance(SoundFactory.java:77)
	at greenfoot.export.GreenfootScenarioViewer.init(GreenfootScenarioViewer.java:180)
	at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)
Caused by: java.io.FileNotFoundException: Could not find file: New Folder
	at greenfoot.util.GreenfootUtil.getURL(GreenfootUtil.java:532)
	at greenfoot.sound.SoundFactory.createSound(SoundFactory.java:95)
	... 6 more
java.lang.NullPointerException
	at greenfoot.core.ProjectProperties.load(ProjectProperties.java:93)
	at greenfoot.core.ProjectProperties.<init>(ProjectProperties.java:82)
	at greenfoot.export.GreenfootScenarioViewer.init(GreenfootScenarioViewer.java:152)
	at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)
Exception: java.lang.NullPointerException
TheNightStrider TheNightStrider

2012/3/23

#
Taking a look at some of the consoles I also got this:
Java Plug-in 1.6.0_31
Using JRE version 1.6.0_31-b05 Java HotSpot(TM) Client VM
User home directory = C:\Users\mrinank

----------------------------------------------------
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>
----------------------------------------------------

java.lang.RuntimeException: ERROR: Failed to recover corrupt cache entry
	at com.sun.deploy.cache.CacheEntry.recover(Unknown Source)
	at com.sun.deploy.cache.CacheEntry.getCodeSourceCache(Unknown Source)
	at com.sun.deploy.cache.CacheEntry.getCodeSources(Unknown Source)
	at com.sun.deploy.cache.CachedJarFile.getCodeSources(Unknown Source)
	at com.sun.deploy.cache.DeployCacheJarAccessImpl.getCodeSources(Unknown Source)
	at com.sun.deploy.security.CPCallbackHandler$ParentCallback.openClassPathElement(Unknown Source)
	at com.sun.deploy.security.DeployURLClassPath$JarLoader.getJarFile(Unknown Source)
	at com.sun.deploy.security.DeployURLClassPath$JarLoader.access$1000(Unknown Source)
	at com.sun.deploy.security.DeployURLClassPath$JarLoader$1.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at com.sun.deploy.security.DeployURLClassPath$JarLoader.ensureOpen(Unknown Source)
	at com.sun.deploy.security.DeployURLClassPath$JarLoader.<init>(Unknown Source)
	at com.sun.deploy.security.DeployURLClassPath$3.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at com.sun.deploy.security.DeployURLClassPath.getLoader(Unknown Source)
	at com.sun.deploy.security.DeployURLClassPath.getLoader(Unknown Source)
	at com.sun.deploy.security.DeployURLClassPath.getResource(Unknown Source)
	at sun.plugin2.applet.Plugin2ClassLoader$2.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at sun.plugin2.applet.Plugin2ClassLoader.findClassHelper(Unknown Source)
	at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
	at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
	at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
	at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
	at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
	at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
	at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
	at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)
Exception: java.lang.RuntimeException: ERROR: Failed to recover corrupt cache entry
TheNightStrider TheNightStrider

2012/3/23

#
I honestly have NO idea what is going on
danpost danpost

2012/3/23

#
Try closing Greenfoot, and re-starting it. Not saying it will help, but who knows!?
TheNightStrider TheNightStrider

2012/3/23

#
danpost wrote...
Try closing Greenfoot, and re-starting it. Not saying it will help, but who knows!?
I still get this!?
java.lang.IllegalArgumentException: Could not open sound file: New Folder
	at greenfoot.sound.SoundExceptionHandler.handleIOException(SoundExceptionHandler.java:66)
	at greenfoot.sound.SoundFactory.createSound(SoundFactory.java:115)
	at greenfoot.sound.SoundFactory.getCachedSound(SoundFactory.java:130)
	at greenfoot.sound.SoundFactory.<init>(SoundFactory.java:67)
	at greenfoot.sound.SoundFactory.getInstance(SoundFactory.java:77)
	at greenfoot.export.GreenfootScenarioViewer.init(GreenfootScenarioViewer.java:180)
	at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)
Caused by: java.io.FileNotFoundException: Could not find file: New Folder
	at greenfoot.util.GreenfootUtil.getURL(GreenfootUtil.java:532)
	at greenfoot.sound.SoundFactory.createSound(SoundFactory.java:95)
	... 6 more
danpost danpost

2012/3/23

#
I guess davmac has to WWWAAAKKKEEE UUUPPP!!!!!
danpost danpost

2012/3/23

#
Are your sound files in your 'sounds' folder within the scenario folder?
TheNightStrider TheNightStrider

2012/3/23

#
danpost wrote...
Are your sound files in your 'sounds' folder within the scenario folder?
Yeah
TheNightStrider TheNightStrider

2012/3/23

#
TheNightStrider wrote...
danpost wrote...
Are your sound files in your 'sounds' folder within the scenario folder?
Yeah
Wait, what? Why is there a folder in there called New Folder?
TheNightStrider TheNightStrider

2012/3/23

#
danpost wrote...
I guess davmac has to WWWAAAKKKEEE UUUPPP!!!!!
WAKE UP PLEASE!
TheNightStrider TheNightStrider

2012/3/23

#
I think I have just got it. I have removed that folder and it is working now, so, Thanks So Much !!!!1
TheNightStrider TheNightStrider

2012/3/23

#
TheNightStrider wrote...
I think I have just got it. I have removed that folder and it is working now, so, Thanks So Much !!!!1
YES!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
danpost danpost

2012/3/23

#
I was hoping to post "Sorry, davmac, you can go back to sleep now," but I guess that will not be the case. But as for me, well, it is getting quite late and my usefulness is hiding somewhere tonight. @davmac, WAKE UP!, I will catch those Zzz for you.
There are more replies on the next page.
1
2
3
4