[weld-issues] [JBoss JIRA] Commented: (WELDSE-6) weldContainer.instance().select().iterator() contains null element

George Gastaldi (JIRA) jira-events at lists.jboss.org
Fri Apr 23 01:25:11 EDT 2010


    [ https://jira.jboss.org/jira/browse/WELDSE-6?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12527203#action_12527203 ] 

George Gastaldi commented on WELDSE-6:
--------------------------------------

I´ve debugged and found that the problem might be in org.jboss.weld.bean.ManagedBean.FixInjectionPoint<T>.cleanup() method. 
The originalInjectionPoint is null, and is pushing a null object onto the stack.

> weldContainer.instance().select().iterator() contains null element
> ------------------------------------------------------------------
>
>                 Key: WELDSE-6
>                 URL: https://jira.jboss.org/jira/browse/WELDSE-6
>             Project: Weld support for Java SE
>          Issue Type: Bug
>         Environment: Java 1.6, weld-se.1.0.1-Final
>            Reporter: Samuli Saarinen
>             Fix For: 1.0.2.CR1
>
>
> {code}
> private Weld weld;
> 	private WeldContainer container;
> 	@BeforeMethod
> 	public void beforeMethod() throws Exception {
> 		weld = new Weld();
> 		container =  weld.initialize();
> 		
> 	}
> 	
> 	@Test
> 	public void testSelect() throws Exception {
> 		Iterator<Object> iter = container.instance().select().iterator();
> 		while (iter.hasNext()) {
> 			assertNotNull(iter.next());
> 		}
> 	}
> 	@AfterMethod
> 	public void afterMethod() {
> 		weld.shutdown();
> 	}
> {code}

-- 
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

       



More information about the weld-issues mailing list