Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-3257

NPE in MailSessionService.getValue()

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 8.1.0.CR1, 8.1.0.Final
    • 8.0.0.Final
    • Mail
    • 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
      

              tomazcerar Tomaž Cerar (Inactive)
              paul.benedict Paul Benedict
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: