Hi

I have a problem with injecting a "good old" visit object.

I do the following:

<contribution configuration-id="tapestry.state.ApplicationObjects">
        <state-object name="visit" scope="session">
            <create-instance class="no.imb.bite.framework.BiteVisit"/>
        </state-object>
    </contribution>

and in my BasePage i do the following:

@InjectState("visit")
public abstract BiteVisit getVisit();

As far as I can see, that should be all that 
is to it, but when I try to 
access the get visit method, the following exception occurs:

 Error at
jar:file:.../WEB-INF/lib/tapestry-framework-4.1.3.jar!/META-INF/
tapestry.state.xml,
line 186, column 42: Unable to initialize service
tapestry.state.StateObjectManagerRegistry (by invoking method 
initializeService
on org.apache.tapestry.engine.state.SOMRegistryImpl): Parameter
 factory must not
be null.

 Parameter factory must not be null.
java.lang.NullPointerException
Parameter factory must not be null.
Stack Trace:

    * org.apache.hivemind.util.Defense.notNull(Defense.java:41)
    *
org.apache.tapestry.engine.state.StateObjectManagerImpl.<init>(
StateObjectManagerImpl.java:36)
    *
org.apache.tapestry.engine.state.SOMRegistryImpl.initializeServ
ice(SOMRegistryImpl.java:66)
    * sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    * sun.reflect.NativeMethodAccessorImpl.invoke(N
ativeMethodAccesso
rImpl.java:39)
    *
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMetho
dAccessorImpl.java:25)
    * java.lang.reflect.Method.invoke(Method.java:585)
    *
org.apache.hivemind.service.impl.BuilderFactoryLogic.findAndInv
okeInitializerMethod(BuilderFactoryLogic.java:275)
    *
org.apache.hivemind.service.impl.BuilderFactoryLogic.invokeInit
ializer(BuilderFactoryLogic.java:249)
    *
org.apache.hivemind.service.impl.BuilderFactoryLogic.createServ
ice(BuilderFactoryLogic.java:81)
    *
org.apache.hivemind.service.impl.BuilderFactory.createCoreServi
ceImplementation(BuilderFactory.java:42)
    *
org.apache.hivemind.impl.InvokeFactoryServiceConstructor.const
ructCoreServiceImplementation(InvokeFactoryServ
iceConstructor.java:62)
    *
org.apache.hivemind.impl.servicemodel.AbstractServiceModelImp
l.constructCoreServiceImplementation(AbstractS
erviceModelImpl.java:108)
    *
org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl
.constructNewServiceImplementation(AbstractSer
viceModelImpl.java:158)
    *
org.apache.hivemind.impl.servicemodel.AbstractServiceModelImp
l.constructServiceImplementation(AbstractSer
viceModelImpl.java:140)
    *
org.apache.hivemind.impl.servicemodel.SingletonServiceModel.
getActualServiceImplementation(SingletonServiceModel.java:69)
    *
$StateObjectManagerRegistry_115afae841a._service($StateObjectMan
agerRegistry_115afae841a.java)
    *
$StateObjectManagerRegistry_115afae841a.get($StateObjectManagerReg
istry_115afae841a.java)
sun.reflect.DelegatingMethodAccessorImpl.invo

ke(DelegatingMethodAccessorImpl.java:25)
    * java.lang.reflect.Method.invoke(Method.java:585)
    * ognl.OgnlRuntime.invokeMethod(OgnlRuntime.java:768)
    * ognl.OgnlRuntime.getMethodValue(OgnlRuntime.java:1213)
    *
ognl.ObjectPropertyAccessor.getPossibleProper
ty(ObjectPropertyAccessor.java:60)
    * ognl.ObjectPropertyAccessor.getPropert
y(ObjectPropertyAccessor.java:144)
    * ognl.OgnlRuntime.getProperty(OgnlRuntime.java:1934)
    * ognl.ASTProperty.getValueBody(ASTProperty.java:109)
    * ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:202)
    * ognl.SimpleNode.getValue(SimpleNode.java:246)
    * ognl.ASTNotEq.getValueBody(ASTNotEq.java:50)
    * ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:202)
    * ognl.SimpleNode.getValue(SimpleNode.java:246)
    * ognl.Ognl.getValue(Ognl.java:494)
    * ognl.Ognl.getValue(Ognl.java:458)
    *

I really hope somebody can help me with this issue.

Henrik


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

Reply via email to