Skip to content

com.jme3.audio.LowPassFilter lacks the required no-argument constructor for jME deserialization - #2441

Merged
yaRnMcDonuts merged 3 commits into
jMonkeyEngine:masterfrom
capdevon:capdevon-LowPassFilter-no-args
May 20, 2025
Merged

com.jme3.audio.LowPassFilter lacks the required no-argument constructor for jME deserialization#2441
yaRnMcDonuts merged 3 commits into
jMonkeyEngine:masterfrom
capdevon:capdevon-LowPassFilter-no-args

Conversation

@capdevon

Copy link
Copy Markdown
Contributor

com.jme3.audio.LowPassFilter lacks the required no-argument constructor for jME deserialization.

java.lang.InstantiationException: Loading requires a no-arg constructor, but class com.jme3.audio.LowPassFilter lacks one.
	at com.jme3.export.SavableClassUtil.findNoArgConstructor(SavableClassUtil.java:248)
	at com.jme3.export.SavableClassUtil.fromName(SavableClassUtil.java:187)
	at com.jme3.export.binary.BinaryImporter.readObject(BinaryImporter.java:332)
	at com.jme3.export.binary.BinaryImporter.load(BinaryImporter.java:245)
	at com.jme3.export.binary.BinaryImporter.load(BinaryImporter.java:128)
	at com.jme3.export.binary.BinaryImporter.load(BinaryImporter.java:282)
	at com.jme3.export.binary.BinaryExporter.saveAndLoad(BinaryExporter.java:168)

> Task :jme3-core:test FAILED
AudioFilterTest > testSaveAndLoad FAILED
    java.lang.NullPointerException: Cannot invoke "com.jme3.audio.LowPassFilter.getVolume()" because "copy" is null
        at com.jme3.audio.AudioFilterTest.testSaveAndLoad(AudioFilterTest.java:27)
1 test completed, 1 failed

@yaRnMcDonuts
yaRnMcDonuts merged commit 389d91a into jMonkeyEngine:master May 20, 2025
@yaRnMcDonuts yaRnMcDonuts added this to the v3.9.0 milestone May 20, 2025
@capdevon
capdevon deleted the capdevon-LowPassFilter-no-args branch June 15, 2025 22:42
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

Successfully merging this pull request may close these issues.

2 participants