Hi, remove the call from the constructor of Home and just keep the definition
in hivemodule.xml

That's all that's needed - otherwise, maybe post the stacktrace here

PS. You don't need to keep the visit name for your session state object, you
can use whatever name best describes its purpose


On Tue, Nov 4, 2008 at 1:46 PM, Muralidhar Y <[EMAIL PROTECTED]> wrote:
> Even I have created hivemodule.xml under WEB-INF. The following is the xml.
>
> <module id="FPS" version="1.0.0" package="org.apache.tapestry.fps">
>   <contribution configuration-id="tapestry.state.ApplicationObjects">
>       <state-object name="visit" scope="session">
>            <create-instance class="com.tapestry.core.Visit"/>
>       </state-object>
>  </contribution>
>
> </module>
>
> Still it is throwing null pointer exception. Kidly look into this. I am
> struck at this point. I need to access the ASO in my application.
>
> Warm regards,
> Muralidhar Y
> [EMAIL PROTECTED]
>
> US Main: 877 KENSIUM (536.7486)
> India Main:  +91 9949495511
> India Fax:   +91 9949495522
> Kensium
> 200 S Wacker Dr, Suite 3100
> Chicago, IL 60606
>
>
> Confidentiality Note:
> -----------------------------
> The information contained in this e-mail is strictly confidential and for
> the intended use of the addressee only. Any disclosure, use or copying of
> the information by anyone other than the intended recipient is prohibited.
> If you have received this message in error, please notify the sender
> immediately by return e-mail and securely discard this message.
>
> ________________________________
>
>
>
> -----Original Message-----
> From: Andreas Andreou [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, November 04, 2008 3:57 PM
> To: Tapestry users
> Subject: Re: visit and global
>
> http://tapestry.apache.org/tapestry4.1/usersguide/state.html
> http://tapestry.apache.org/tapestry4.1/tapestry-annotations/index.html
> (InjectState & InjectStateFlag)
>
> On Tue, Nov 4, 2008 at 11:00 AM, Muralidhar Y <[EMAIL PROTECTED]>
> wrote:
>> Hi friends,
>>
>>                  From tapestry4.1 "getVisit() and getGlobal()" has been
>> deprecated from AbstractPage". So how do we access  Visit and Global
>> objects.
>>
>>
>>
>> Warm regards,
>>
>> Muralidhar Y
>>
>> [EMAIL PROTECTED]
>>
>>
>>
>> US Main: 877 KENSIUM (536.7486)
>> India Main:  +91 9949495511
>>
>> India Fax:   +91 9949495522
>>
>> Kensium
>>
>> 200 S Wacker Dr, Suite 3100
>>
>> Chicago, IL 60606
>>
>>
>>
>>
>>
>> Confidentiality Note:
>> -----------------------------
>> The information contained in this e-mail is strictly confidential and for
>> the intended use of the addressee only. Any disclosure, use or copying of
>> the information by anyone other than the intended recipient is prohibited.
>> If you have received this message in error, please notify the sender
>> immediately by return e-mail and securely discard this message.
>>
>>
>>
>>  _____
>>
>>
>>
>>
>
>
>
> --
> Andreas Andreou - [EMAIL PROTECTED] - http://blog.andyhot.gr
> Tapestry / Tacos developer
> Open Source / JEE Consulting
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-- 
Andreas Andreou - [EMAIL PROTECTED] - http://blog.andyhot.gr
Tapestry / Tacos developer
Open Source / JEE Consulting

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

Reply via email to