You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hivemind.apache.org by Aleksej <al...@ivs.lt> on 2006/03/24 15:58:10 UTC

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


Re: Problem with configurations ( "Unable to update property yyy of object Xxx" );

Posted by Aleksej <al...@ivs.lt>.
Thanks for pointing me where to dig. Property name was with error.

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


RE: Problem with configurations ( "Unable to update property yyy of object Xxx" );

Posted by James Carman <ja...@carmanconsulting.com>.
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