Re: CODI issue with CDI Observer

2014-03-24 Thread Thomas Andraschko
Ok. Rafael, could you create an issue? 2014-03-23 23:49 GMT+01:00 Gerhard Petracek gerhard.petra...@gmail.com: it isn't nice that we need such a workaround, however, we can add it easily (in codi as well as in deltaspike). regards, gerhard http://www.irian.at Your JSF/JavaEE powerhouse

Re: CODI issue with CDI Observer

2014-03-24 Thread Rafael Pestano
Hi Thomas, here it goes: https://issues.apache.org/jira/browse/DELTASPIKE-546   Att,  Rafael M. Pestano Desenvolvedor Java Cia. de Processamento de Dados do Rio Grande do Sul Graduando em Ciência da Computação UFRGS http://conventions.github.io/home/ http://rpestano.wordpress.com/

CODI issue with CDI Observer

2014-03-23 Thread Rafael Pestano
Hi guys, i'm facing an issue with CODI on Glassfish 4 which i can't observe CDI events with notifyObserver = Reception.IF_EXISTS if my bean uses a CODI scope, here is some code: @ViewAccessScoped @Named public class MyBean implements Serializable{     @Inject     EventMyEvent myEvent;    

Re: CODI issue with CDI Observer

2014-03-23 Thread Gerhard Petracek
hi rafael, please test the same with deltaspike 0.6 regards, gerhard http://www.irian.at Your JSF/JavaEE powerhouse - JavaEE Consulting, Development and Courses in English and German Professional Support for Apache MyFaces 2014-03-23 18:23 GMT+01:00 Rafael Pestano rmpest...@yahoo.com.br:

Re: CODI issue with CDI Observer

2014-03-23 Thread Rafael Pestano
Hi gerhard, same thing with ds 0.6: [2014-03-23T18:14:20.514-0300] [glassfish 4.0] [WARNING] [] [javax.enterprise.web.core] [tid: _ThreadID=20 _ThreadName=http-listener-1(1)] [timeMillis: 1395609260514] [levelValue: 900] [[   Servlet.service() for servlet FacesServlet threw exception

Re: CODI issue with CDI Observer

2014-03-23 Thread Gerhard Petracek
since the implementation in ds is different and it works with other servers, it sounds like a general glassfish-issue with custom scopes. regards, gerhard http://www.irian.at Your JSF/JavaEE powerhouse - JavaEE Consulting, Development and Courses in English and German Professional Support for

Re: CODI issue with CDI Observer

2014-03-23 Thread Rafael Pestano
Hi Gerhard, i can confirm its a GF4 issue, justed added a simple custom scope and received the same NPE in the scope GET method: @Override     public T T get(final ContextualT contextual, final CreationalContextT creationalContext) {     Bean bean = (Bean) contextual;     if

Re: CODI issue with CDI Observer

2014-03-23 Thread Rafael Pestano
Hi again, i just solved it in my custom scope by checking the null contextual: @Override     public T T get(final ContextualT contextual, final CreationalContextT creationalContext) {     if(creationalContext == null){     return null;     } i dont know what the spec says about

Re: CODI issue with CDI Observer

2014-03-23 Thread Thomas Andraschko
Gerhard, i would add the null check but we should do it in AbstractContext. Could it break anything? 2014-03-23 22:57 GMT+01:00 Rafael Pestano rmpest...@yahoo.com.br: Hi again, i just solved it in my custom scope by checking the null contextual: @Override public T T get(final

Re: CODI issue with CDI Observer

2014-03-23 Thread Gerhard Petracek
it isn't nice that we need such a workaround, however, we can add it easily (in codi as well as in deltaspike). regards, gerhard http://www.irian.at Your JSF/JavaEE powerhouse - JavaEE Consulting, Development and Courses in English and German Professional Support for Apache MyFaces