-
Bug
-
Resolution: Done
-
Major
-
8.0.0.Final
-
None
I am getting this error when injecting my mail session. I don't know what's causing it and the injection used to work.
Caused by: java.lang.RuntimeException: JBAS011875: Resource lookup for injection failed: java:/mail/LocalMailHost
at org.jboss.as.naming.deployment.ContextNames$BindInfo$1$1.getReference(ContextNames.java:304) [wildfly-naming-8.0.0.Final.jar:8.0.0.Final]
at org.jboss.as.naming.ServiceBasedNamingStore.lookup(ServiceBasedNamingStore.java:140) [wildfly-naming-8.0.0.Final.jar:8.0.0.Final]
... 128 more
Caused by: javax.naming.NamingException [Root exception is java.lang.NullPointerException]
at org.jboss.as.naming.ServiceBasedNamingStore.lookup(ServiceBasedNamingStore.java:142) [wildfly-naming-8.0.0.Final.jar:8.0.0.Final]
at org.jboss.as.naming.ServiceBasedNamingStore.lookup(ServiceBasedNamingStore.java:81) [wildfly-naming-8.0.0.Final.jar:8.0.0.Final]
at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:202) [wildfly-naming-8.0.0.Final.jar:8.0.0.Final]
at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:188) [wildfly-naming-8.0.0.Final.jar:8.0.0.Final]
at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:184) [wildfly-naming-8.0.0.Final.jar:8.0.0.Final]
at org.jboss.as.naming.deployment.ContextNames$BindInfo$1$1.getReference(ContextNames.java:302) [wildfly-naming-8.0.0.Final.jar:8.0.0.Final]
... 129 more
Caused by: java.lang.NullPointerException
at org.jboss.as.mail.extension.MailSessionService.getValue(MailSessionService.java:72)
at org.jboss.as.mail.extension.MailSessionManagedReferenceFactory.getReference(MailSessionManagedReferenceFactory.java:57)
at org.jboss.as.naming.ServiceBasedNamingStore.lookup(ServiceBasedNamingStore.java:140) [wildfly-naming-8.0.0.Final.jar:8.0.0.Final]
... 134 more