Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jme3test.asset.TestManyLocators crashes due to missing assets #982

Closed
stephengold opened this issue Dec 29, 2018 · 4 comments
Closed

jme3test.asset.TestManyLocators crashes due to missing assets #982

stephengold opened this issue Dec 29, 2018 · 4 comments
Assignees
Milestone

Comments

@stephengold
Copy link
Member

stephengold commented Dec 29, 2018

Some files required to run TestManyLocators have moved. Paths need to be updated.

Currently (in master branch at 3.3-6680) it crashes with the following stack trace:

Exception in thread "main" com.jme3.asset.AssetLoadException: Failed to open zip file: town.zip
	at com.jme3.asset.plugins.ZipLocator.setRootPath(ZipLocator.java:79)
	at com.jme3.asset.ImplHandler$ImplThreadLocal.initialValue(ImplHandler.java:120)
	at java.lang.ThreadLocal.setInitialValue(ThreadLocal.java:180)
	at java.lang.ThreadLocal.get(ThreadLocal.java:170)
	at com.jme3.asset.ImplHandler.tryLocate(ImplHandler.java:178)
	at com.jme3.asset.DesktopAssetManager.locateAsset(DesktopAssetManager.java:191)
	at jme3test.asset.TestManyLocators.main(TestManyLocators.java:59)
Caused by: java.io.FileNotFoundException: town.zip (The system cannot find the file specified)
	at java.util.zip.ZipFile.open(Native Method)
	at java.util.zip.ZipFile.<init>(ZipFile.java:225)
	at java.util.zip.ZipFile.<init>(ZipFile.java:155)
	at com.jme3.asset.plugins.ZipLocator.setRootPath(ZipLocator.java:77)
	... 6 more
@Ali-RS
Copy link
Member

Ali-RS commented Dec 31, 2018

Once I created a pr #565 to add town.zip to jme testdata which was not merged. You can read the reason for the objection there.

@Ali-RS
Copy link
Member

Ali-RS commented Dec 31, 2018

Note, town.zip along with some other assets are also available in wiki
https://github.com/jMonkeyEngine/wiki/tree/master/src/docs/resources/Scenes

@stephengold
Copy link
Member Author

That's fine for other tests. However, accessing town.zip via HTTP would defeat the purpose behind including it in TestManyLocators, which is to test/demonstrate a ZipLocator.

@stephengold
Copy link
Member Author

Fixed in master branch at hash 000ac95 .

I copied the town.zip file from the Google Code archives to the jme3-examples sub-project. (No effect on jme3-testdata.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants