You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by tapestrycn <ta...@yahoo.com.cn> on 2005/07/29 00:55:23 UTC

How to configure my MultipartDecoder implemention?

Hi,
In order to setting maxSize,thresholdSize,RepositoryPath at runtime,I 
configured my hivemind.xml as following:

    <implementation service-id="tapestry.multipart.MultipartDecoder">
        <invoke-factory>
            <construct class="com.test.tapestry.services.MultipartDecoderImpl" 
model="threaded">
                <set-service property="uploadConfig" service-id="UploadConfig"/>
            </construct>
        </invoke-factory>
    </implementation>

    <service-point id="UploadConfig" 
interface="com.test.tapestry.services.IUploadConfig">
        <create-instance class="com.test.tapestry.services.UploadConfig"/>
    </service-point>

However,exception always thrown as following:

org.apache.hivemind.ApplicationRuntimeException: Unable to construct service 
tapestry.multipart.MultipartDecoder: Parameter parameters must not be null. 
[context:/WEB-INF/hivemodule.xml, line 145, column 25]
	at 
org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl.constructNewServi
ceImplementation(AbstractServiceModelImpl.java:165)
	at 
org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl.constructServiceI
mplementation(AbstractServiceModelImpl.java:139)

Can anybody help me?

Thanks in advance
tapestrycn




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