I do not  have an answer to your problem. 
But you might like to make sure  <parameters-schema> 
works by testing it as a normal configuration.

Shing

--- Ron Piterman <[EMAIL PROTECTED]> wrote:

> hi - I try to pass a parameter to a
> serviceIMplementationFactory but get 
> an exception from hivemind:
> 
> Parameter parameters must not be null.
> 
> here is the xml:
> 
> 
> <service-point id="ViewControllerFactory"
>   
>
interface="org.apache.hivemind.ServiceImplementationFactory"
>    parameters-occurs="0..1">
> 
>    <parameters-schema>
>      <element name="view">
>       <attribute name="name" required="true"/>
>       <attribute name="api" required="true"
> translator="class"/>
>       <attribute name="view-data" required="true"
> translator="class"/>
>       <conversion class="ViewDef">
>       <map attribute="name" property="name"/>
>       <map attribute="api" property="apiClass"/>
>       <map attribute="view-data"
> property="viewTransientDataClass"/>
>       </conversion>
>      </element>
>    </parameters-schema>
> 
>    <invoke-factory>
>      <construct class="ViewControllerFactory"/>
>    </invoke-factory>
> </service-point>
> 
> and in another module:
> 
> <service-point id="BGController"
>    interface="ViewController">
>    <invoke-factory
> service-id="share.ViewControllerFactory"
>      model="pooled">
>      <view
>       name="bg"
>       api="BGAPI"
>       view-data="BGViewData">
>      </view>
>    </invoke-factory>
> </service-point>
> 
> the exception:
> 
> java.lang.NullPointerException
> Parameter parameters must not be null.
>
org.apache.hivemind.util.Defense.notNull(Defense.java:41)
>
org.apache.hivemind.impl.ServiceImplementationFactoryParametersImpl.<init>(ServiceImplementationFactoryParametersImpl.java:47)
>
org.apache.hivemind.impl.InvokeFactoryServiceConstructor.constructCoreServiceImplementation(InvokeFactoryServiceConstructor.java:59)
>
org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl.constructCoreServiceImplementation(AbstractServiceModelImpl.java:108)
>
org.apache.hivemind.impl.servicemodel.PooledServiceModel.constructPooledService(PooledServiceModel.java:210)
>
org.apache.hivemind.impl.servicemodel.PooledServiceModel.obtainPooledService(PooledServiceModel.java:186)
>
org.apache.hivemind.impl.servicemodel.PooledServiceModel.getServiceImplementationForCurrentThread(PooledServiceModel.java:170)
> 
> 
> Any Idea what I am doing wrong here ?
> 
> Cheers,
> Ron
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 


Home page :
  http://uk.geocities.com/matmsh/index.html


                
___________________________________________________________ 
Try the all-new Yahoo! Mail. "The New Version is radically easier to use" – The 
Wall Street Journal 
http://uk.docs.yahoo.com/nowyoucan.html

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to