Skip to content

Instantly share code, notes, and snippets.

@theopendle
Created June 21, 2020 14:44
Show Gist options
  • Save theopendle/52e042cf1287814f8ab31a33bc9b9746 to your computer and use it in GitHub Desktop.
Save theopendle/52e042cf1287814f8ab31a33bc9b9746 to your computer and use it in GitHub Desktop.
Caused by: org.apache.sling.models.factory.MissingElementsException: Could not inject all required fields into class com.theopendle.core.models.impl.TestModelImpl
at org.apache.sling.models.impl.ModelAdapterFactory.createObject(ModelAdapterFactory.java:765) [org.apache.sling.models.impl:1.4.10]
at org.apache.sling.models.impl.ModelAdapterFactory.internalCreateModel(ModelAdapterFactory.java:448) [org.apache.sling.models.impl:1.4.10]
at org.apache.sling.models.impl.ModelAdapterFactory.createModel(ModelAdapterFactory.java:314) [org.apache.sling.models.impl:1.4.10]
at org.apache.sling.scripting.sightly.models.impl.SlingModelsUseProvider.provide(SlingModelsUseProvider.java:135) [org.apache.sling.scripting.sightly.models.provider:1.0.8]
at org.apache.sling.scripting.sightly.impl.engine.extension.use.UseRuntimeExtension.call(UseRuntimeExtension.java:72) [org.apache.sling.scripting.sightly:1.1.2.1_4_0]
... 298 common frames omitted
Suppressed: org.apache.sling.models.factory.MissingElementException: Could not inject private com.theopendle.core.models.FakeService com.theopendle.core.models.impl.TestModelImpl.fakeService
at org.apache.sling.models.impl.ModelAdapterFactory.createObject(ModelAdapterFactory.java:749) [org.apache.sling.models.impl:1.4.10]
... 302 common frames omitted
Caused by: org.apache.sling.models.factory.ModelClassException: No injector returned a non-null value!
at org.apache.sling.models.impl.ModelAdapterFactory.injectElement(ModelAdapterFactory.java:635) [org.apache.sling.models.impl:1.4.10]
at org.apache.sling.models.impl.ModelAdapterFactory.createObject(ModelAdapterFactory.java:744) [org.apache.sling.models.impl:1.4.10]
... 302 common frames omitted
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment