Hendy Irawan created SOLDER-318:
-----------------------------------

             Summary: beforeBeanDiscovery throws unhelpful exception if cannot 
read configuration
                 Key: SOLDER-318
                 URL: https://issues.jboss.org/browse/SOLDER-318
             Project: Solder
          Issue Type: Bug
          Components: XML Configuration
    Affects Versions: 3.1.0.Final
         Environment: JBoss AS 7.1.0.CR1b
            Reporter: Hendy Irawan


Example configuration:

{code}
<?xml version="1.0"?>
<beans xmlns="http://java.sun.com/xml/ns/javaee"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
        xsi:schemaLocation="http://java.sun.com/xml/ns/javaee 
http://jboss.org/schema/cdi/beans_1_0.xsd";
        xmlns:s="urn:java:ee"
        xmlns:security="urn:java:org.jboss.seam.security"
        xmlns:twitter="urn:java:org.springframework.social.twitter.connect">

        <twitter:TwitterConnectionFactory>
                <s:modifies/>
                <s:ApplicationScoped/>
                <s:parameters>
                        <s:String><value>ol3bJ0*******</value></s:String>
                        <s:String><value>Mgg**************</value></s:String>
                </s:parameters>
        </twitter:TwitterConnectionFactory>
{code}

I'm not sure yet what is the correct way to specify constructor parameter 
literal values to a bean, but Weld/Solder Config is not helping me with this 
error message:

{code}
01:18:36,198 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-15) 
MSC00001: Failed to start service 
jboss.deployment.unit."satukancinta-web.war".WeldService: 
org.jboss.msc.service.StartException in service 
jboss.deployment.unit."satukancinta-web.war".WeldService: 
org.jboss.weld.exceptions.DefinitionException: Exception List with 1 exceptions:
Exception 0 :
java.lang.Exception
        at 
org.jboss.solder.config.xml.bootstrap.XmlConfigExtension.beforeBeanDiscovery(XmlConfigExtension.java:121)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        at 
org.jboss.weld.util.reflection.SecureReflections$13.work(SecureReflections.java:264)
        at 
org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:52)
        at 
org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation(SecureReflectionAccess.java:137)
        at 
org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflections.java:260)
        at 
org.jboss.weld.introspector.jlr.WeldMethodImpl.invokeOnInstance(WeldMethodImpl.java:170)
        at 
org.jboss.weld.introspector.ForwardingWeldMethod.invokeOnInstance(ForwardingWeldMethod.java:51)
        at 
org.jboss.weld.injection.MethodInjectionPoint.invokeOnInstanceWithSpecialValue(MethodInjectionPoint.java:154)
        at 
org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:241)
        at 
org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:229)
        at 
org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:207)
        at 
org.jboss.weld.bootstrap.events.AbstractContainerEvent.fire(AbstractContainerEvent.java:75)
        at 
org.jboss.weld.bootstrap.events.AbstractDefinitionContainerEvent.fire(AbstractDefinitionContainerEvent.java:46)
        at 
org.jboss.weld.bootstrap.events.BeforeBeanDiscoveryImpl.fire(BeforeBeanDiscoveryImpl.java:46)
        at 
org.jboss.weld.bootstrap.WeldBootstrap.startInitialization(WeldBootstrap.java:322)
        at org.jboss.as.weld.WeldContainer.start(WeldContainer.java:80)
        at org.jboss.as.weld.services.WeldService.start(WeldService.java:89)
        at 
org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824)
        at 
org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759)
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
        at java.lang.Thread.run(Thread.java:722)

        at org.jboss.as.weld.services.WeldService.start(WeldService.java:96)
        at 
org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824)
 [jboss-msc-1.0.1.GA.jar:1.0.1.GA]
        at 
org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759)
 [jboss-msc-1.0.1.GA.jar:1.0.1.GA]
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) 
[:1.7.0_147-icedtea]
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) 
[:1.7.0_147-icedtea]
        at java.lang.Thread.run(Thread.java:722) [:1.7.0_147-icedtea]
Caused by: org.jboss.weld.exceptions.DefinitionException: Exception List with 1 
exceptions:
Exception 0 :
java.lang.Exception
        at 
org.jboss.solder.config.xml.bootstrap.XmlConfigExtension.beforeBeanDiscovery(XmlConfigExtension.java:121)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        at 
org.jboss.weld.util.reflection.SecureReflections$13.work(SecureReflections.java:264)
        at 
org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:52)
        at 
org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation(SecureReflectionAccess.java:137)
        at 
org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflections.java:260)
        at 
org.jboss.weld.introspector.jlr.WeldMethodImpl.invokeOnInstance(WeldMethodImpl.java:170)
        at 
org.jboss.weld.introspector.ForwardingWeldMethod.invokeOnInstance(ForwardingWeldMethod.java:51)
        at 
org.jboss.weld.injection.MethodInjectionPoint.invokeOnInstanceWithSpecialValue(MethodInjectionPoint.java:154)
        at 
org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:241)
        at 
org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:229)
        at 
org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:207)
        at 
org.jboss.weld.bootstrap.events.AbstractContainerEvent.fire(AbstractContainerEvent.java:75)
        at 
org.jboss.weld.bootstrap.events.AbstractDefinitionContainerEvent.fire(AbstractDefinitionContainerEvent.java:46)
        at 
org.jboss.weld.bootstrap.events.BeforeBeanDiscoveryImpl.fire(BeforeBeanDiscoveryImpl.java:46)
        at 
org.jboss.weld.bootstrap.WeldBootstrap.startInitialization(WeldBootstrap.java:322)
        at org.jboss.as.weld.WeldContainer.start(WeldContainer.java:80)
        at org.jboss.as.weld.services.WeldService.start(WeldService.java:89)
        at 
org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824)
        at 
org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759)
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
        at java.lang.Thread.run(Thread.java:722)

        at 
org.jboss.weld.bootstrap.events.AbstractDefinitionContainerEvent.fire(AbstractDefinitionContainerEvent.java:48)
        at 
org.jboss.weld.bootstrap.events.AfterBeanDiscoveryImpl.fire(AfterBeanDiscoveryImpl.java:40)
        at 
org.jboss.weld.bootstrap.WeldBootstrap.deployBeans(WeldBootstrap.java:346)
        at org.jboss.as.weld.WeldContainer.start(WeldContainer.java:81)
        at org.jboss.as.weld.services.WeldService.start(WeldService.java:89)
        ... 5 more
{code}

Basically it says "Exception 0". It should say the description of the error, 
and hopefully the file name, line number, column number, and a snippet of the 
unparseable input in question. Hopefully with a hint how to fix the error.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
seam-issues mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/seam-issues

Reply via email to