Mitkees & Webcenter

Into the charm of Oracle Webcenter and ADF

NullPointerException while parsing ELExpression to a POJO

I was trying to create a quick ADF application to Draw ADF table from Array list , I have created the array list  and the pojo and created a sample jspx

as follows

<af:table var="row" rowBandingInterval="0" id="t1"
 <af:column sortable="false" headerText="idTransaction" id="c2">
 <af:outputText value="#{row.idTransaction}" id="ot4"/>
 <af:column sortable="false" headerText="referenceCode" id="c5">
 <af:outputText value="#{row.referenceCode}" id="ot7"/>

I got found exception

<ActionListenerImpl> <processAction> java.lang.NullPointerException

javax.faces.el.EvaluationException: java.lang.NullPointerException

and i tried to trace the exceptions is it from the value of the list #{backingBeanScope.indexBean.transactionList} or the column values


until i found that it can’t access the POJO that has the idTransaction .

and the Reason behind that the POJO have default access identifier after changing it to public the application worked successfully.


2 responses to “NullPointerException while parsing ELExpression to a POJO

  1. Amr Salah September 16, 2012 at 11:45 am

    What is the relation between ( POJP access modifier and transaction ID ) . Explain please as you mentioned to two points
    “until i found that it can’t access the POJO that has the idTransaction .”
    and default access modifier

    • Mohamed Mitkees September 16, 2012 at 12:07 pm

      transactionID is a class member of the pojo class,and default access modifier is to not write any modifier which are (public ,private).

Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: