[JBoss JIRA] Created: (WELDINT-29) Add deployers for injection between Weld and MC
by Kabir Khan (JIRA)
Add deployers for injection between Weld and MC
-----------------------------------------------
Key: WELDINT-29
URL: https://jira.jboss.org/jira/browse/WELDINT-29
Project: Weld Integration
Issue Type: Feature Request
Components: Deployer
Reporter: Kabir Khan
Assignee: Pete Muir
Fix For: 5.2.0.Beta5
On 10 Nov 2009, at 10:39, Kabir Khan wrote:
Hi Pete,
I've done a fair bit of work on https://svn.jboss.org/repos/jbossas/projects/weld-int/trunk/deployer which I need to commit. This falls into two parts.
1) Moving some of the hardcoded strings created by the deployers into DeployersUtils utility methods
2) New stuff for mc-weld integration
I know you guys are busy releasing everything and don't want to fuck things up for you. So first of all, is there a code freeze on this repository at the moment?
<pete>No code freeze officially. I did a new release of weld-int last night with the latest Weld 1.0.0 code. If you could hold until later today, so I can verify all, that would be great :-)</pete>
Secondly, it looks like the AS 5.2 releases are taken from trunk?
<pete>Yes.</pete>
The stuff for 1) is pretty trivial. Apart from those the changes for 2) are all new classes, but this depends on snapshot versions of MC kernel and deployers. Unless you have any objections or better suggestions, I think I will create a new module for my 2) work which hardcodes the dependencies to those snapshot versions and which is excluded from the main build unless run with a special profile untill we have some proper MC releases.
<pete>Yes, quite happy with that!</pete>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 1 month
[JBoss JIRA] Created: (WELD-445) NullPointerException
by Ian (JIRA)
NullPointerException
---------------------
Key: WELD-445
URL: https://jira.jboss.org/jira/browse/WELD-445
Project: Weld
Issue Type: Bug
Affects Versions: 1.0.1.CR2
Environment: JBoss 6.0.0 M2 updated with Weld 1.0.1 CR2, Windows XP
Reporter: Ian
I get a NullPointerException when trying to inject a logger into my code. It happens in two circumstances - once when injection is done by the container, once when I manually inject (using the SPI of course!).
The top of the stack trace is exactly the same in both instances:
java.lang.NullPointerException org.jboss.weld.util.Beans.isPassivatingScope(Beans.java:132) org.jboss.weld.bean.AbstractProducerBean.checkReturnValue(AbstractProducerBean.java:263) org.jboss.weld.bean.AbstractProducerBean.create(AbstractProducerBean.java:349) org.jboss.weld.context.DependentContext.get(DependentContext.java:62) org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:788) org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:850) org.jboss.weld.manager.BeanManagerImpl.getInjectableReference(BeanManagerImpl.java:874) org.jboss.weld.injection.FieldInjectionPoint.inject(FieldInjectionPoint.java:108) org.jboss.weld.util.Beans.injectBoundFields(Beans.java:775) org.jboss.weld.util.Beans.injectFieldsAndInitializers(Beans.java:787) org.jboss.weld.manager.SimpleInjectionTarget$1.proceed(SimpleInjectionTarget.java:122) org.jboss.weld.injection.InjectionContextImpl.run(InjectionContextImpl.java:51) org.jboss.weld.manager.SimpleInjectionTarget.inject(SimpleInjectionTarget.java:116)
The code fragment for the item being injected is the following: (the logger is a log4j logger)
public class LoggingFactory {
@Produces
Logger createLogger(InjectionPoint injectionPoint) {
return Logger.getLogger(injectionPoint.getMember().getDeclaringClass().getName());
}
}
The servletContextListener code fragment is as follows:
public class ApplicationInitialisation
implements ServletContextListener {
@Inject
private Logger log;
/**
* @see ServletContextListener#contextInitialized(ServletContextEvent)
*/
public void contextInitialized(ServletContextEvent event) {
// Never gets into the method because of the stack trace
}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 1 month