-
1. Re: 'sometimes' a nullpointer exception for #{identity.logge
ffischer May 21, 2007 9:05 AM (in response to koenhandekyn)Are you using seam 1.2.1 with richFaces/ajax4Jjsf enabled? I suffer from very similar problems. Randomly I get exceptions like your exception or exceptions like this one: "Cannot get value for expression '#{org.jboss.seam.messages}' "
After I switched off ajax4jsf by commenting out the ajax4jsf filter and the ajax4jsf.VIEW_HANDLERS within web.xml and reactivating the view-handler within faces-config.xml the problem disapears. -
2. Re: 'sometimes' a nullpointer exception for #{identity.logge
svntdeepak May 22, 2007 8:54 AM (in response to koenhandekyn)I am also facing the same problem but in a slight different case.i have a dropdown downlist s like this
<h:outputLabel value="#{msg.supplier}" />
<h:selectOneMenu value="#{claimHandler.suppList}">
<si:selectItems value="#{supplierValues}" var="suppList" label="#{suppList.claimsuppName}" />
<si:convertEntity entityClass="com.dss.web.model.SupplierModel" />
</h:selectOneMenu>
<h:outputLabel value="#{msg.suppNo}" />
<h:selectOneMenu value="#{claimHandler.suppNoList}">
<si:selectItems value="#{supplierNoValues}" var="suppNoList" label="#{suppNoList.claimsuppNo}" />
<si:convertEntity entityClass="com.dss.web.model.SupplierNoModel" />
</h:selectOneMenu>
where if i run individually it is working fine but if i am using the two drop downs at a time in my jsp page ,sometimes it is displaying properly but sometimes it is giving error message as suppNoList.claimsuppNo as not bound at all...
plz help me .. -
3. Re: 'sometimes' a nullpointer exception for #{identity.logge
bulloncito May 23, 2007 9:40 PM (in response to koenhandekyn)Hey ffischer !! I 'm also having that problem !! random #{org.jboss.seam.security.identity} and #{org.jboss.seam.messages} erros, I do have ajax4jsf in web.xml, I can disable it there as you say, but then I get
Resources framework is not initialised, check web.xml for Filter configuration
when I disable<filter> <display-name>Ajax4jsf Filter</display-name> <filter-name>ajax4jsf</filter-name> <filter-class>org.ajax4jsf.Filter</filter-class> </filter> <filter-mapping> <filter-name>ajax4jsf</filter-name> <url-pattern>*.seam</url-pattern> </filter-mapping>
in web.xml, how does your web.xml and faces-config.xml look like ? please, that would help a lot. -
4. Re: 'sometimes' a nullpointer exception for #{identity.logge
ffischer May 24, 2007 5:36 PM (in response to koenhandekyn)Sorry Daniel,
my comment about disableing ajax4jsf is really misleading. I was in the happy situation that I switched an old seam app (1.1.5) without any use of ajax4jsf over to 1.2.1.GA.
I used seam-gen to build the project structure for seam 1.2.1 and moved all my classes/src and the necessary configurations over to the new project.
So ajax4jsf was enabled, but not used in my app - but the errors occured in spite of that.
After disableing the ajax4jsf filter, everything started to work again flawless.
Frank -
5. Re: 'sometimes' a nullpointer exception for #{identity.logge
bulloncito May 25, 2007 11:48 PM (in response to koenhandekyn):( Thanks anyway.