[prev in list] [next in list] [prev in thread] [next in thread]
List: activemq-dev
Subject: [jira] Assigned: (AMQ-1229)
From: "Claus Ibsen (JIRA)" <jira () apache ! org>
Date: 2009-01-30 7:28:59
Message-ID: 953308519.1233300539415.JavaMail.jira () brutus
[Download RAW message or body]
[ https://issues.apache.org/activemq/browse/AMQ-1229?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel \
]
Claus Ibsen reassigned AMQ-1229:
--------------------------------
Assignee: Claus Ibsen
> Thread.currentThread().getContextClassLoader() null in FactoryFinder.newInstance
> --------------------------------------------------------------------------------
>
> Key: AMQ-1229
> URL: https://issues.apache.org/activemq/browse/AMQ-1229
> Project: ActiveMQ
> Issue Type: Bug
> Components: Transport
> Reporter: John McLeroy
> Assignee: Claus Ibsen
> Fix For: 5.0.0
>
> Attachments: FactoryFinder.java
>
> Original Estimate: 5 minutes
> Remaining Estimate: 5 minutes
>
> org.apache.activemq.util.FactoryFinder.doFindFactoryProperies() correctly consults \
> the current class's loader if Thread.currentThread().getContextClassLoader() is \
> null: ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
> if (classLoader == null) classLoader = getClass().getClassLoader();
> newInstance(), however, generates a null pointer exception if \
> Thread.currentThread().getContextClassLoader() is null: Class clazz;
> try {
> clazz = Thread.currentThread().getContextClassLoader().loadClass(className);
> } catch (ClassNotFoundException e) {
> clazz = FactoryFinder.class.getClassLoader().loadClass(className);
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic