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-276
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
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 SmartContextFactory

Created: 06/Jun/08 11:44 AM   Updated: 06/Jun/08 06:04 PM
Component/s: SmartClient
Affects Version/s: EasyBeans 1.0
Fix Version/s: EasyBeans 1.0.1, EasyBeans 1.1.0 M1


 Description  « Hide
I got an NPE if no INITIAL_CONTEXT_FACTORY is set in System Properties.

Exception in thread "main" java.lang.NullPointerException
at java.util.Hashtable.put(Hashtable.java:396)
at java.util.Properties.setProperty(Properties.java:128)
at java.lang.System.setProperty(System.java:701)
at org.ow2.easybeans.component.smartclient.spi.SmartContextFactory.getInitialContext(SmartContextFactory.java:156)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
at javax.naming.InitialContext.init(InitialContext.java:223)
at javax.naming.InitialContext.<init>(InitialContext.java:197)

 All   Comments   Change History   Related Builds      Sort Order:
Florent BENOIT - 06/Jun/08 06:04 PM
Thanks for the report !

This is now fixed (if no property is defined this is working too)



Copyright © 2006-2007 EasyBeans / ObjectWeb consortium

http://www.easybeans.org