EasyBeans is an open source implementation by ObjectWeb of the EJB3 container specification. 
X Wiki
  History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: EZB-226
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Trivial Trivial
Assignee: Florent BENOIT
Reporter: Ruzand Brice
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
EasyBeans

NPE in Mail component

Created: 30/Jan/08 12:08 PM   Updated: 04/Feb/08 09:58 PM
Component/s: None
Affects Version/s: EasyBeans 1.0 RC2
Fix Version/s: EasyBeans 1.0 RC3


 Description  « Hide
I d'like to setup only a session mail factory (no mimepart)

I add in my easybeans.xml
<mail>
   <session name="javax.mail.Session" jndiName="MailSession">
      <!-- Example of properties -->
      <property name="mail.debug" value="true" />
   </session>
</mail>

And I got an NPE, until I add mimepart factory

    /**
     * @return list of factories.
     */
    public List<MailItf> getAllFactories() {
        List<MailItf> factories = new ArrayList<MailItf>();
        factories.addAll(sessionFactories);
        factories.addAll(mimePartFactories);
        return factories;
    }

but mimePartFactories is null so I got an NPE.

Thx

 All   Comments   Change History   Related Builds      Sort Order:
Florent BENOIT - 04/Feb/08 09:58 PM
Thanks for the report
Fixed in the current SVN tree


Copyright © 2006-2007 EasyBeans / ObjectWeb consortium

http://www.easybeans.org