java.lang.NoClassDefFoundError: haven/Rendered

The worst monsters in the Hearthlands warp the fabric of space and time...

java.lang.NoClassDefFoundError: haven/Rendered

Postby mvgulik » Sat Sep 19, 2020 1:21 pm

Default client ... :
- Triggered while just walking around a bit (outside, top level).
- Also triggered on character login. (50/50 change it seems)

Code: Select all
java.lang.NoClassDefFoundError: haven/Rendered
   at haven.res.lib.motley.Gaussian.addstuff(motley.cjava:36)
   at haven.res.lib.motley.Motley.create(motley.cjava:51)
   at haven.Sprite.create(Sprite.java:129)
   at haven.ResDrawable.<init>(ResDrawable.java:42)
   at haven.OCache.cres(OCache.java:233)
   at haven.OCache.lambda$cres$4(OCache.java:245)
   at haven.OCache$GobInfo.apply(OCache.java:720)
   at haven.Loader.lambda$defer$0(Loader.java:235)
   at haven.Loader$Future.run(Loader.java:71)
   at haven.Loader$Future.access$400(Loader.java:42)
   at haven.Loader.loop(Loader.java:197)
   at java.lang.Thread.run(Thread.java:748)
Caused by: haven.Resource$ResourceClassNotFoundException: Could not find class haven.Rendered in resource lib/motley(v7)
   at haven.Resource$CodeEntry$1$1.findClass(Resource.java:1192)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
   ... 12 more
mvgulik
 
Posts: 3742
Joined: Fri May 21, 2010 2:29 am

Re: java.lang.NoClassDefFoundError: haven/Rendered

Postby loftar » Sat Sep 19, 2020 3:13 pm

mvgulik wrote:
Code: Select all
Caused by: haven.Resource$ResourceClassNotFoundException: Could not find class haven.Rendered in resource lib/motley(v7)

That's weird. It seems like it's using resources from the old client. I can't think of any obvious reason why it would do that. I've made some changes to the client to allow it to report the more exact conditions of the resource used, so if you could please try and trigger the error again, that would probably be helpful.
"Object-oriented design is the roman numerals of computing." -- Rob Pike
User avatar
loftar
 
Posts: 8926
Joined: Fri Apr 03, 2009 7:05 am

Re: java.lang.NoClassDefFoundError: haven/Rendered

Postby mvgulik » Sat Sep 19, 2020 6:51 pm

loftar wrote:That's weird. It seems like it's using resources from the old client.


As in, it should detect and update those ?

(I'm 'playing' the game with the Ender client)
mvgulik
 
Posts: 3742
Joined: Fri May 21, 2010 2:29 am

Re: java.lang.NoClassDefFoundError: haven/Rendered

Postby loftar » Sat Sep 19, 2020 7:13 pm

mvgulik wrote:As in, it should detect and update those ?

No, the new resources come from a completely different source, so it shouldn't ever even see the resources for the old client.
"Object-oriented design is the roman numerals of computing." -- Rob Pike
User avatar
loftar
 
Posts: 8926
Joined: Fri Apr 03, 2009 7:05 am

Re: java.lang.NoClassDefFoundError: haven/Rendered

Postby Forik » Thu Oct 22, 2020 9:01 am

Code: Select all
java.lang.NoClassDefFoundError: haven/Rendered
   at java.lang.Class.getDeclaredConstructors0(Native Method)
   at java.lang.Class.privateGetDeclaredConstructors(Class.java:2671)
   at java.lang.Class.getConstructor0(Class.java:3075)
   at java.lang.Class.getConstructor(Class.java:1825)
   at haven.Utils.construct(Utils.java:1404)
   at haven.Sprite$FactMaker.make(Sprite.java:66)
   at haven.Sprite$FactMaker.make(Sprite.java:63)
   at haven.Resource$CodeEntry.lambda$get$0(Resource.java:1312)
   at java.security.AccessController.doPrivileged(Native Method)
   at haven.Resource$CodeEntry.get(Resource.java:1310)
   at haven.Resource.getcode(Resource.java:1149)
   at haven.Sprite.create(Sprite.java:127)
   at haven.ResDrawable.<init>(ResDrawable.java:42)
   at haven.OCache.cres(OCache.java:233)
   at haven.OCache.lambda$cres$4(OCache.java:245)
   at haven.OCache$GobInfo.apply(OCache.java:720)
   at haven.Loader.lambda$defer$0(Loader.java:235)
   at haven.Loader$Future.run(Loader.java:71)
   at haven.Loader$Future.access$400(Loader.java:42)
   at haven.Loader.loop(Loader.java:197)
   at java.lang.Thread.run(Thread.java:748)
Caused by: haven.Resource$ResourceClassNotFoundException: Could not find class haven.Rendered in resource gfx/terobjs/vflag(v63)
   at haven.Resource$CodeEntry$1$1.findClass(Resource.java:1239)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
   ... 21 more


I got one of these today too, and it works just fine on an outdated amber client.
Forik
 
Posts: 48
Joined: Wed Dec 22, 2010 3:58 am

Re: java.lang.NoClassDefFoundError: haven/Rendered

Postby loftar » Thu Oct 22, 2020 11:03 am

Forik wrote:I got one of these today too, and it works just fine on an outdated amber client.

Under what circumstances did this happen to you? Was it the default client just as downloaded from the website? Part of the reason why I'm wondering is that I don't seem to have received an error report from your client.
"Object-oriented design is the roman numerals of computing." -- Rob Pike
User avatar
loftar
 
Posts: 8926
Joined: Fri Apr 03, 2009 7:05 am

Re: java.lang.NoClassDefFoundError: haven/Rendered

Postby Forik » Fri Oct 23, 2020 10:17 am

loftar wrote:
Forik wrote:I got one of these today too, and it works just fine on an outdated amber client.

Under what circumstances did this happen to you? Was it the default client just as downloaded from the website? Part of the reason why I'm wondering is that I don't seem to have received an error report from your client.


Yeah, a freshly downloaded website client, think my java didn't report for some reason the first time, just did it again, and it looks like the report was successful. Happens as I walk out of my front gate, the game itself doesn't actually crash (I can see my character move and all), but I can't control it anymore, and a java error prompt shows up with the error (if that helps).
Forik
 
Posts: 48
Joined: Wed Dec 22, 2010 3:58 am

Re: java.lang.NoClassDefFoundError: haven/Rendered

Postby loftar » Fri Oct 23, 2020 1:08 pm

Forik wrote:Yeah, a freshly downloaded website client, think my java didn't report for some reason the first time, just did it again, and it looks like the report was successful. Happens as I walk out of my front gate, the game itself doesn't actually crash (I can see my character move and all), but I can't control it anymore, and a java error prompt shows up with the error (if that helps).

I can see from your error report that you have a bad version of the resource cached. The real question is how it made it into your cache to begin with. If only for the sake of science, could you try clearing your cache to see whether that fixes the problem? (If you do, remember to export your map first.)
"Object-oriented design is the roman numerals of computing." -- Rob Pike
User avatar
loftar
 
Posts: 8926
Joined: Fri Apr 03, 2009 7:05 am

Re: java.lang.NoClassDefFoundError: haven/Rendered

Postby Forik » Fri Oct 23, 2020 5:32 pm

loftar wrote: I can see from your error report that you have a bad version of the resource cached. The real question is how it made it into your cache to begin with. If only for the sake of science, could you try clearing your cache to see whether that fixes the problem? (If you do, remember to export your map first.)


Yep, that fixed the issue, maybe it's gotta do with the fact that I'd mostly been playing with amber up to when the clients broke a few weeks ago.
Forik
 
Posts: 48
Joined: Wed Dec 22, 2010 3:58 am

Re: java.lang.NoClassDefFoundError: haven/Rendered

Postby loftar » Fri Oct 23, 2020 8:30 pm

Forik wrote:Yep, that fixed the issue, maybe it's gotta do with the fact that I'd mostly been playing with amber up to when the clients broke a few weeks ago.

How annoying, tbh. I was hoping that it would crash again and reveal the reason why it got that resource into the cache to begin with. I don't think any custom client should be using the same cache ID.
"Object-oriented design is the roman numerals of computing." -- Rob Pike
User avatar
loftar
 
Posts: 8926
Joined: Fri Apr 03, 2009 7:05 am

Next

Return to Bugs

Who is online

Users browsing this forum: Google [Bot] and 8 guests