[jboss-user] [JBoss Seam] - Re: Seam 2.0.0.BETA1 & Ajax4JSF 1.1.1 problem (bug?)

p2auljr do-not-reply at jboss.com
Tue Jul 10 16:32:49 EDT 2007


I am experiencing a similar problem. I am using the same environment except for facelets. I am testing a JSP page. 


This code is causing an exception when the action is fired
<a4j:support event="onclick" action="#{myaction.execute}"
					reRender="mylist" />

Caused by: java.lang.NullPointerException
	at org.jboss.seam.el.SeamExpressionFactory.createMethodExpression(SeamExpressionFactory.java:76)
	at org.jboss.seam.jsf.UnifiedELMethodBinding.getMethodExpression(UnifiedELMethodBinding.java:63)
	at org.jboss.seam.jsf.UnifiedELMethodBinding.invoke(UnifiedELMethodBinding.java:50)
	at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:91)
	at javax.faces.component.UICommand.broadcast(UICommand.java:383)
	at org.ajax4jsf.framework.ajax.AjaxActionComponent.broadcast(AjaxActionComponent.java:55)
	at org.ajax4jsf.framework.ajax.AjaxViewRoot.processEvents(AjaxViewRoot.java:180)
	at org.ajax4jsf.framework.ajax.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:158)
	at org.ajax4jsf.framework.ajax.AjaxViewRoot.processApplication(AjaxViewRoot.java:346)
	at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:97)


The exception is occurirng in: SeamExpressionFactory.createMethodExpression(ELContext elContext, String expression, Class returnType, Class[] paramTypes) 
{
if ( paramTypes.length==1 && JSF.FACES_EVENT.isAssignableFrom( paramTypes[0] ) )
        {
         return new OptionalParameterMethodExpression(
                 expressionFactory.createMethodExpression( decorateELContext(elContext), expression, returnType, paramTypes ),
                 expressionFactory.createMethodExpression( decorateELContext(elContext), expression, returnType, NO_CLASSES )
              );
        }
        else
        {
           return expressionFactory.createMethodExpression( decorateELContext(elContext), expression, returnType, paramTypes );
        }
}


The exception is caused by if (paramTypes.length==1...) because the
paramTypes is null. 


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4062681#4062681

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4062681



More information about the jboss-user mailing list