Skip to content

NoSuchMethodError AnimComposer.makeLayer() #2374

@stephengold

Description

@stephengold

The MavDemo1 application in my jme-vehicles project uses v1.1.1 of the JmePower library, which was compiled for JME v3.6.0-stable.

When I build MavDemo1 with JME v3.8.0-alpha3, initialization of the app fails with the following diagnostic messages on the console:

> Task :MavDemo1:run
Feb 17, 2025 2:28:59 PM com.jayfella.jme.vehicle.lemurdemo.MavDemo1 main
WARNING: Assertions are enabled.
Feb 17, 2025 2:29:03 PM com.jme3.app.LegacyApplication handleError
SEVERE: Uncaught exception thrown in Thread[jME3 Main,5,main]
java.lang.NoSuchMethodError: 'void com.jme3.anim.AnimComposer.makeLayer(java.lang.String, com.jme3.anim.AnimationMask)'
	at com.github.stephengold.jmepower.JmeLoadingState.setupCinematic(JmeLoadingState.java:409)
	at com.github.stephengold.jmepower.JmeLoadingState.startCinematic(JmeLoadingState.java:557)
	at com.github.stephengold.jmepower.JmeLoadingState.update(JmeLoadingState.java:319)
	at com.jme3.app.state.AppStateManager.update(AppStateManager.java:371)
	at com.jme3.app.SimpleApplication.update(SimpleApplication.java:260)
	at com.jme3.system.lwjgl.LwjglWindow.runLoop(LwjglWindow.java:707)
	at com.jme3.system.lwjgl.LwjglWindow.run(LwjglWindow.java:797)
	at java.base/java.lang.Thread.run(Thread.java:840)

Exception in thread "Thread-3" java.lang.NullPointerException: Cannot invoke "com.jme3.input.InputManager.addRawInputListener(com.jme3.input.RawInputListener)" because the return value of "com.jme3.app.Application.getInputManager()" is null
	at com.simsilica.lemur.event.KeyInterceptState.<init>(KeyInterceptState.java:65)
	at com.simsilica.lemur.GuiGlobals.<init>(GuiGlobals.java:157)
	at com.simsilica.lemur.GuiGlobals.initialize(GuiGlobals.java:125)
	at com.jayfella.jme.vehicle.lemurdemo.LemurLoadingState.initializeLemur(LemurLoadingState.java:100)
	at com.jayfella.jme.vehicle.lemurdemo.LemurLoadingState.access$000(LemurLoadingState.java:43)
	at com.jayfella.jme.vehicle.lemurdemo.LemurLoadingState$1.run(LemurLoadingState.java:83)

Testing shows this regression occurred between v3.7.0-stable and v3.8.0-alpha1 .
Probably it can be solved be rebuilding JmePower for JME 3.8, but I think this should be investigated.

Metadata

Metadata

Assignees

Labels

defectSomething that is supposed to work, but doesn't. Less severe than a "bug"

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions