History | Log In     View a printable version of the current page. Get help!  
Issue Details (XML | Word)

Key: HJMS-37
Type: Improvement Improvement
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Colin Crist
Reporter: Colin Crist
Votes: 0
Watchers: 0
Operations

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

Throw an exception then no binding property is set on the JNDIConnectionFactory

Created: 07/Jun/07 07:58 AM   Updated: 07/Jun/07 08:29 AM
Component/s: GUI
Affects Version/s: 1.12
Fix Version/s: 1.13

Environment: All


 Description  « Hide
When Context.lookup() is called with a null binding, JNDI gives an NPE:

java.lang.NullPointerException
   at javax.naming.InitialContext.getURLScheme(InitialContext.java:228)
   at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:277)
   at javax.naming.InitialContext.lookup(InitialContext.java:351)
   at hermes.JNDIConnectionFactory.createConnection(JNDIConnectionFactory.java:69)
   at hermes.impl.jms.ConnectionManagerSupport.createConnection(ConnectionManagerSupport.java:117)

Hermes should check the binding property and give a more meaningful error message.


 All   Comments   Change History      Sort Order:
Colin Crist [07/Jun/07 08:29 AM]
A suitable exception is thown with a meaningful message.