[weld-issues] [JBoss JIRA] (WELD-2273) An abstract decorator class that extends a managed bean causes NPE

2016-12-08 Thread Laird Nelson (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Laird Nelson commented on  WELD-2273  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: An abstract decorator class that extends a managed bean causes NPE   
 

  
 
 
 
 

 
 Sure. Shouldn't this problem be detected and reported, though?  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.2.3#72005-sha1:73be91d)  
 
 

 
   
 

  
 

  
 

   

___
weld-issues mailing list
weld-issues@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/weld-issues

[weld-issues] [JBoss JIRA] (WELD-2273) An abstract decorator class that extends a managed bean causes NPE

2016-12-08 Thread Matej Novotny (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Matej Novotny commented on  WELD-2273  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: An abstract decorator class that extends a managed bean causes NPE   
 

  
 
 
 
 

 
 Hi Laird, I think it cannot work with private constructor. Looking at it from plain Java perspective, if you have a class with private constructor, you cannot really extend it - you might as well declare the class final (unless you have another constructors there). And CDI needs to extends it - e.g. needs to build a special kind of proxy on top of it.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.2.3#72005-sha1:73be91d)  
 
 

 
   
 

  
 

  
 

   

___
weld-issues mailing list
weld-issues@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/weld-issues

[weld-issues] [JBoss JIRA] (WELD-2223) Registering servlet listener on tomcat embedded fails when container bootstrapped outside

2016-12-08 Thread John Ament (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 John Ament commented on  WELD-2223  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Registering servlet listener on tomcat embedded fails when container bootstrapped outside   
 

  
 
 
 
 

 
 Ok, so I think I understand the issue better. What's really happening is a dead lock between the two threads, simply because they're both locking on the same object. The second thread is derived from the first, so the lock never gets cleared. It seems to me, in this situation, the initialized event should not be fired from HttpContextLifecycle (it is fired in all 3 containers) since the container isn't bootstrapped from Weld Servlet. I hate to say it, but adding another boolean to the constructor for lifecycle may make the most sense. Thoughts?  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.2.3#72005-sha1:73be91d)  
 
 

 
   
 

  
 

  
 

   

___
weld-issues mailing list
weld-issues@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/weld-issues

[weld-issues] [JBoss JIRA] (WELD-2273) An abstract decorator class that extends a managed bean causes NPE

2016-12-08 Thread Laird Nelson (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Laird Nelson commented on  WELD-2273  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: An abstract decorator class that extends a managed bean causes NPE   
 

  
 
 
 
 

 
 OK, redid my decorator to not extend anything and to ensure that it is decorating an interface. Same result. The problem looks like it's related to the bean that is being decorated. It declares a constructor like this:  
 
 
 
 
 @Inject  
 
 
 private FoobarBean(final Foo foo, final Bar bar) {  
 
 
   super();  
 
 
   this.foo = foo;  
 
 
   this.bar = bar;  
 
 
 }
  
 
 
 
  Weld injects this just fine normally. When I add a decorator into the mix, the fact that this constructor is declared private results in the NullPointerException. I'll check the specification to see if private constructors annotated with @Inject are permitted (can't remember).  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 
   

[weld-issues] [JBoss JIRA] (WELD-2273) An abstract decorator class that extends a managed bean causes NPE

2016-12-08 Thread Laird Nelson (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Laird Nelson commented on  WELD-2273  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: An abstract decorator class that extends a managed bean causes NPE   
 

  
 
 
 
 

 
 My decorator (inadvertently) does not adhere to the specification. The specification says, in part: 
 
The set of decorated types of a decorator includes all bean types of the managed bean which are Java interfaces, except for java.io.Serializable. The decorator bean class and its superclasses are not decorated types of the decorator.
 So my decorator is directly extending the class of the bean it wants to decorate. That's wrong according to the above (I guess decorators can only decorate interfaces). However it still shouldn't give me a NullPointerException I don't think. The root issue is: SubclassedComponentInstantiator, line 79, returns null for my decorator. (My decorator is not providing the proper constructor, I guess.)  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.2.3#72005-sha1:73be91d)  
 
 

 
   
 

  
 

  
 

   

___
weld-issues mailing list
weld-issues@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/weld-issues

[weld-issues] [JBoss JIRA] (WELD-2273) An abstract decorator class that extends a managed bean causes NPE

2016-12-08 Thread Laird Nelson (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Laird Nelson created an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Weld /  WELD-2273  
 
 
  An abstract decorator class that extends a managed bean causes NPE   
 

  
 
 
 
 

 
Issue Type: 
  Bug  
 
 
Affects Versions: 
 3.0.0.Alpha17  
 
 
Assignee: 
 Unassigned  
 
 
Components: 
 Infrastructure  
 
 
Created: 
 08/Dec/16 12:50 PM  
 
 
Priority: 
  Major  
 
 
Reporter: 
 Laird Nelson  
 

  
 
 
 
 

 
 I have an abstract decorator class that extends a managed bean class and overrides one method. When Weld starts up, I get this error:  
 
 
 
 
 java.lang.NullPointerException  
 
 
 	at org.jboss.weld.injection.InjectionPointFactory.getParameterInjectionPoints(InjectionPointFactory.java:248)  
 
 
 	at org.jboss.weld.injection.AbstractCallableInjectionPoint.(AbstractCallableInjectionPoint.java:51)  
 
 
 	at org.jboss.weld.injection.ConstructorInjectionPoint.(ConstructorInjectionPoint.java:63)  
 

[weld-issues] [JBoss JIRA] (WELD-2273) An abstract decorator class that extends a managed bean causes NPE

2016-12-08 Thread Laird Nelson (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Laird Nelson commented on  WELD-2273  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: An abstract decorator class that extends a managed bean causes NPE   
 

  
 
 
 
 

 
 Obviously as time permits I will try to get a sanitized unit test for this. Figured it was better to report early.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.2.3#72005-sha1:73be91d)  
 
 

 
   
 

  
 

  
 

   

___
weld-issues mailing list
weld-issues@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/weld-issues

[weld-issues] [JBoss JIRA] (CDITCK-533) Cover assertion for section "6.7. Context management for built-in scopes"

2016-12-08 Thread Tomas Remes (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Tomas Remes updated  CDITCK-533  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 CDI TCK /  CDITCK-533  
 
 
  Cover assertion for section "6.7. Context management for built-in scopes"   
 

  
 
 
 
 

 
Change By: 
 Tomas Remes  
 
 
Status: 
 Open Pull Request Sent  
 
 
Git Pull Request: 
 https://github.com/cdi-spec/cdi-tck/pull/125  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.2.3#72005-sha1:73be91d)  
 
 

 
   
 

  
 

  
 

   

___
weld-issues mailing list
weld-issues@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/weld-issues

[weld-issues] [JBoss JIRA] (WELD-2190) ContextNotActive thrown when a static instance holds a reference to a bean and container restarts

2016-12-08 Thread Martin Kouba (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Martin Kouba updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Weld /  WELD-2190  
 
 
  ContextNotActive thrown when a static instance holds a reference to a bean and container restarts   
 

  
 
 
 
 

 
Change By: 
 Martin Kouba  
 
 
Fix Version/s: 
 3.0.0.Beta1  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.2.3#72005-sha1:73be91d)  
 
 

 
   
 

  
 

  
 

   

___
weld-issues mailing list
weld-issues@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/weld-issues

[weld-issues] [JBoss JIRA] (WELD-2271) Implement validation of ObserverMethod notify() methods [CDI-592]

2016-12-08 Thread Martin Kouba (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Martin Kouba assigned an issue to Martin Kouba  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Weld /  WELD-2271  
 
 
  Implement validation of ObserverMethod notify() methods [CDI-592]   
 

  
 
 
 
 

 
Change By: 
 Martin Kouba  
 
 
Assignee: 
 Martin Kouba  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.2.3#72005-sha1:73be91d)  
 
 

 
   
 

  
 

  
 

   

___
weld-issues mailing list
weld-issues@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/weld-issues