hivemind-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Carman" <ja...@carmanconsulting.com>
Subject RE: Problem with configurations ( "Unable to update property yyy of object Xxx" );
Date Fri, 24 Mar 2006 15:09:16 GMT
The setter threw an exception when HiveMind tried to call it.  What's the
rest of that stack trace?

-----Original Message-----
From: Aleksej [mailto:aleksej@ivs.lt] 
Sent: Friday, March 24, 2006 9:58 AM
To: hivemind-user@jakarta.apache.org
Subject: Problem with configurations ( "Unable to update property yyy of
object Xxx" );

Got exception at hivemind startup, caused by configuration system.
I got service which has public property with List argument.
Configuration bean SpecialPage is simple bean with empty constructor.
All hivemind configurations are in the same module.
DynamicPageEncoder interface is empty interface extending ServiceEncoder 
interface
( setSpecialPages( List ) method declaration in interface didn't help too ).
Hivemind descriptor is quite simple:

<configuration-point id="specialPageConf">
        <schema>
            <element name="page">
                <attribute name="pageName" required="true"/>
                <attribute name="tapestryPage" required="true"/>
                <conversion class="ivs.cross.service.conf.SpecialPage"/>
            </element>
        </schema>
    </configuration-point>
   
    <contribution configuration-id="specialPageConf">
        <page pageName="NewsList" tapestryPage="news/NewsList" />
    </contribution>   
       
    <service-point id="dynamicPageEncoder" interface="DynamicPageEncoder">
        <invoke-factory model="threaded" >
            <construct class="impl.DynamicPageEncoderImpl">
                <set-configuration property="specialPages" 
configuration-id="specialPageConf" />
                <set-service property="dataSqueezer" 
service-id="tapestry.data.DataSqueezer" />
                <set-service property="servletRequest" 
service-id="tapestry.globals.HttpServletRequest" />
                <set property="extension" value="html" />
            </construct>
        </invoke-factory>
    </service-point>
----
Got exception:

javax.servlet.ServletException:
Unable to construct service ivs.cross.service.dynamicPageEncoder:
Error building service ivs.cross.service.dynamicPageEncoder:
Error at context:/WEB-INF/crossmodule.xml, line 25, column 85:
Unable to update property specialPages of object
ivs.cross.service.impl.DynamicPageEncoderImpl@db248c:
java.lang.reflect.InvocationTargetException

Can anyone explain whats wrong? I was looking in docs and tutorial and 
have no clues.



---------------------------------------------------------------------
To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-user-help@jakarta.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-user-help@jakarta.apache.org


Mime
View raw message