[JBoss JIRA] Created: (WELD-928) Weld should log failure to load a class at a higher level than DEBUG
by Stuart Douglas (JIRA)
Weld should log failure to load a class at a higher level than DEBUG
--------------------------------------------------------------------
Key: WELD-928
URL: https://issues.jboss.org/browse/WELD-928
Project: Weld
Issue Type: Bug
Affects Versions: 1.1.1.Final
Reporter: Stuart Douglas
Priority: Critical
Fix For: 1.1.2.Final
At the moment weld logs failure to load a class at a log level of debug, which is not displayed by default.
Due to the new modular class loading in AS7 these types of errors will become much more frequent, and the user is given no debug information to determine where the problem is. Changing the default log level to DEBUG for org.jboss.weld.Bootstrap is not an option as this is to verbose.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 5 months
[JBoss JIRA] Created: (WELD-941) Log stacktrace following "WELD-000119 Not generating any bean definitions" at TRACE level.
by Ondrej Zizka (JIRA)
Log stacktrace following "WELD-000119 Not generating any bean definitions" at TRACE level.
------------------------------------------------------------------------------------------
Key: WELD-941
URL: https://issues.jboss.org/browse/WELD-941
Project: Weld
Issue Type: Enhancement
Affects Versions: 1.1.1.Final
Reporter: Ondrej Zizka
Currently, the stack trace is logged at DEBUG level, which makes it hard to filter (see below).
I suggest to log it with TRACE for that reason.
{code}
08:32:33.999 DEBUG [main] org.jboss.weld.Bootstrap WELD-000119 Not generating any bean definitions from org.jboss.logging.JBossLogManagerProvider because of underlying class loading error
08:32:34.001 DEBUG [main] org.jboss.weld.Bootstrap catching
org.jboss.weld.resources.spi.ResourceLoadingException: java.lang.NoClassDefFoundError: Lorg/jboss/logmanager/Logger$AttachmentKey;
at org.jboss.weld.environment.se.discovery.url.WeldSEResourceLoader.classForName(WeldSEResourceLoader.java:70)
at org.jboss.weld.bootstrap.BeanDeployer.addClass(BeanDeployer.java:83)
at org.jboss.weld.bootstrap.BeanDeployer.addClasses(BeanDeployer.java:133)
at org.jboss.weld.bootstrap.BeanDeployment.deployBeans(BeanDeployment.java:192)
at org.jboss.weld.bootstrap.WeldBootstrap.deployBeans(WeldBootstrap.java:370)
at org.jboss.weld.environment.se.Weld.initialize(Weld.java:87)
at org.jboss.jawabot.JawaBotApp.main(JawaBotApp.java:64)
Caused by: java.lang.NoClassDefFoundError: Lorg/jboss/logmanager/Logger$AttachmentKey;
at java.lang.Class.getDeclaredFields0(Native Method)
at java.lang.Class.privateGetDeclaredFields(Class.java:2291)
at java.lang.Class.getDeclaredFields(Class.java:1743)
at org.jboss.weld.environment.se.discovery.url.WeldSEResourceLoader.classForName(WeldSEResourceLoader.java:58)
... 6 more
Caused by: java.lang.ClassNotFoundException: org.jboss.logmanager.Logger$AttachmentKey
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
... 10 more
{code}
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 5 months
[JBoss JIRA] Created: (WELD-575) Definition/DeploymentExceptions thrown by an AnnotationModel are wrapped by a ComputationException
by Marius Bogoevici (JIRA)
Definition/DeploymentExceptions thrown by an AnnotationModel are wrapped by a ComputationException
--------------------------------------------------------------------------------------------------
Key: WELD-575
URL: https://jira.jboss.org/browse/WELD-575
Project: Weld
Issue Type: Feature Request
Components: Reflection layer
Affects Versions: 1.0.1.Final
Reporter: Marius Bogoevici
Assignee: Pete Muir
Fix For: 1.1.0.BETA1
If an exception is thrown while evaluating a Function, the exception is wrapped by a ComputationException. As a result, the exceptions thrown by the AnnotationModel subclasses (Stereotype, InterceptionBinding) - which indicate a definition error detected while parsing the annotation are thrown as ComputationExceptions by the framework.
An illustration for this can be found in MetaAnnotationStore.getInterceptionBindingModel, although this needs to be done in a more general fashion.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 5 months