[weld-issues] [JBoss JIRA] (WELD-2178) Misleading error message during Weld
Title: Message Title Grzegorz Demecki created an issue Weld / WELD-2178 Misleading error message during Weld Issue Type: Enhancement Affects Versions: 3.0.0.Alpha16 Assignee: Unassigned Components: Java SE Support Created: 08/Jun/16 9:53 AM Environment: Windows 7 Oracle JDK 1.7_75, 1.8_40 Weld 2.3.4.Final, 3.0.0.Alpha16 Priority: Minor Reporter: Grzegorz Demecki For weld-se 2.3.4.Final and even for Java 8 + weld-se-core 3.0.0.Alpha16 I'm getting following error message when executing the attached sample app: org.jboss.weld.exceptions.UnsatisfiedResolutionException: WELD-001308: Unable to resolve any beans for Type: class weld.bug.report.dem
[weld-issues] [JBoss JIRA] (WELD-2178) Misleading error message during Weld
Title: Message Title Grzegorz Demecki updated an issue Weld / WELD-2178 Misleading error message during Weld Sample application. Change By: Grzegorz Demecki Attachment: WELD-2178.zip Add Comment This message was sent by Atlassian JIRA (v6.4.11#64026-sha1:78f6ec4) ___ weld-issues mailing list weld-issues@lists.jboss.org https://lists.jboss.org/mailman/listinfo/weld-issues
[weld-issues] [JBoss JIRA] (WELD-2178) Misleading error message during Weld
Title: Message Title Tomas Remes commented on WELD-2178 Re: Misleading error message during Weld Hi, Well I think the bean (BeanA) doesn't exist. It's not created due to missing appropriate constructor. It is same as in EE where you will get UnsatisfiedDependencyException. So I am not sure how can we log something like "appropriate constructor missing" when the bean doesn't really exist. Add Comment This message was sent by Atlassian JIRA (v6.4.11#64026-sha1:78f6ec4) ___ weld-issues mailing list weld-issues@lists.jboss.org https://lists.jboss.org/mailman/listinfo/weld-issues
[weld-issues] [JBoss JIRA] (WELD-2178) Misleading error message during Weld
Title: Message Title Martin Kouba commented on WELD-2178 Re: Misleading error message during Weld In fact, these are two distinct problems. First BeanA does not have an appropriate constructor and so it's not registered as a bean. We don't log or record this kind of incidents as it does not necessarily have to be an error. Also note that usually there will a lot of classes which do not meet conditions from "3.1.1. Which Java classes are managed beans?". Consequently, there is an unsatisfied dependency for the required type BeanA and the qualifier Default. I think it would be quite complicated to track and analyze all the problems only to produce a more specific problem description (something like: "Unsatisfied dependency because of BeanA does not declare an appropriate constructor"). What we could probably do is to log a warning if a class which is explicitly annotated with a scope has a similar problem. Tomas Remes Tom, could you look at it? Add Comment This message was sent by Atlassian JIRA (v6.4.11#64026-sha1:78f6ec4) ___ weld-issues mailing list weld-issues@lists.jboss.org https://lists.jboss.org/mailman/listinfo/weld-issues
[weld-issues] [JBoss JIRA] (WELD-2178) Misleading error message during Weld
Title: Message Title Tomas Remes commented on WELD-2178 Re: Misleading error message during Weld Martin Kouba sure. Add Comment This message was sent by Atlassian JIRA (v6.4.11#64026-sha1:78f6ec4) ___ weld-issues mailing list weld-issues@lists.jboss.org https://lists.jboss.org/mailman/listinfo/weld-issues
[weld-issues] [JBoss JIRA] (WELD-2178) Misleading error message during Weld
Title: Message Title Tomas Remes assigned an issue to Tomas Remes Weld / WELD-2178 Misleading error message during Weld Change By: Tomas Remes Assignee: Tomas Remes Add Comment This message was sent by Atlassian JIRA (v6.4.11#64026-sha1:78f6ec4) ___ weld-issues mailing list weld-issues@lists.jboss.org https://lists.jboss.org/mailman/listinfo/weld-issues
[weld-issues] [JBoss JIRA] (WELD-2178) Misleading error message during Weld
Title: Message Title Issue was automatically transitioned when Tomas Remes created pull request #1392 in GitHub Weld / WELD-2178 Misleading error message during Weld Change By: Tomas Remes Status: Open Pull Request Sent Add Comment This message was sent by Atlassian JIRA (v6.4.11#64026-sha1:78f6ec4) ___ weld-issues mailing list weld-issues@lists.jboss.org https://lists.jboss.org/mailman/listinfo/weld-issues
[weld-issues] [JBoss JIRA] (WELD-2178) Misleading error message during Weld
Title: Message Title Grzegorz Demecki commented on WELD-2178 Re: Misleading error message during Weld Hi Martin Kouba and Tomas Remes, That makes sense. Thanks for clarifying this issue and of course for the already created pull request. I'm quite impressed. Add Comment This message was sent by Atlassian JIRA (v6.4.11#64026-sha1:78f6ec4) ___ weld-issues mailing list weld-issues@lists.jboss.org https://lists.jboss.org/mailman/listinfo/weld-issues
[weld-issues] [JBoss JIRA] (WELD-2178) Misleading error message during Weld
Title: Message Title Martin Kouba updated an issue Weld / WELD-2178 Misleading error message during Weld Change By: Martin Kouba Fix Version/s: 2.3.5.Final Fix Version/s: 3.0.0.Beta1 Add Comment This message was sent by Atlassian JIRA (v6.4.11#64026-sha1:78f6ec4) ___ weld-issues mailing list weld-issues@lists.jboss.org https://lists.jboss.org/mailman/listinfo/weld-issues
[weld-issues] [JBoss JIRA] (WELD-2178) Misleading error message during Weld
Title: Message Title Martin Kouba updated WELD-2178 Weld / WELD-2178 Misleading error message during Weld Change By: Martin Kouba Status: Pull Request Sent Resolved Resolution: Done Add Comment This message was sent by Atlassian JIRA (v6.4.11#64026-sha1:78f6ec4) ___ weld-issues mailing list weld-issues@lists.jboss.org https://lists.jboss.org/mailman/listinfo/weld-issues
[weld-issues] [JBoss JIRA] (WELD-2178) Misleading error message during Weld bootstrap
Title: Message Title Martin Kouba updated an issue Weld / WELD-2178 Misleading error message during Weld bootstrap Change By: Martin Kouba Summary: Misleading error message during Weld bootstrap Add Comment This message was sent by Atlassian JIRA (v6.4.11#64026-sha1:78f6ec4) ___ weld-issues mailing list weld-issues@lists.jboss.org https://lists.jboss.org/mailman/listinfo/weld-issues