[jboss-jira] [JBoss JIRA] (WFLY-3257) NPE in MailSessionService.getValue()
Tomaz Cerar (JIRA)
issues at jboss.org
Fri Jun 26 18:02:02 EDT 2015
[ https://issues.jboss.org/browse/WFLY-3257?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13084082#comment-13084082 ]
Tomaz Cerar edited comment on WFLY-3257 at 6/26/15 6:01 PM:
------------------------------------------------------------
NPE in that line can only occur if service failed to start.
So you should see an error even before you start deploying your application.
was (Author: ctomc):
NPE in that line can only occur if service failed to start.
So you should see an error even you start deploying your application.
> NPE in MailSessionService.getValue()
> ------------------------------------
>
> Key: WFLY-3257
> URL: https://issues.jboss.org/browse/WFLY-3257
> Project: WildFly
> Issue Type: Bug
> Components: Mail
> Affects Versions: 8.0.0.Final
> Environment: Windows 8.1
> Reporter: Paul Benedict
> Assignee: Tomaz Cerar
> Fix For: 8.1.0.CR1, 8.1.0.Final
>
>
> I am getting this error when injecting my mail session. I don't know what's causing it and the injection used to work.
> {code}
> 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
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
More information about the jboss-jira
mailing list