This discussion is archived
3 Replies Latest reply: Nov 29, 2012 5:09 AM by adf009 RSS

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

adf009 Explorer
Currently Being Moderated
Hi am able to get this value when debuging
USERNAMEametest juliatest14
USERNAMEametest nomsatest
USERNAMEametest julianev1
getusername julianev1
rolenameoid dfdgd

but when i what to send this value hear Map usr = (Map)actionEvent.getComponent().getAttributes().get(getusername()); am geting NPE error,why am i able to get the value but not able to pass them
public class Details {
 private String name;
    public void setName(String name) { = name;

    public String getName() {
        return name;
    public String getusername(){
        DCIteratorBinding it = ADFUtils.findIterator("addmemberBeanIterator");
         Row r1 = null;
        String usrw = null;
        if(it != null && it.size() >0){
        ArrayList<AddmemberBean> co = new  ArrayList<AddmemberBean> (it .size());
         for(Row r : it.getAllRowsInRange() ) {
              AddmemberBean rt = new AddmemberBean();
         usrw = (String)r.getAttribute("name");
             System.out.println("USERNAMEtest " + usrw);
        return usrw;
    public String GetNextStopPayment(){
    OIDOperations resu = new OIDOperations();
    System.out.println("getusernametooid " + this.getusername());
    System.out.println("rolenametooid " + name);
    Map usr = (Map)actionEvent.getComponent().getAttributes().get(getusername());
    System.out.println("uuseraddedin oi " + getusername());
    System.out.println("rolenameaddedin oid " + name);
when i get hear am geting null value= Map usr = (Map)actionEvent.getComponent().getAttributes().get(getusername());

am in jdeveloper
log error is
Caused by: javax.faces.el.EvaluationException: java.lang.NullPointerException
     at org.apache.myfaces.trinidad.component.MethodExpressionMethodBinding.invoke(
     at com.sun.faces.application.ActionListenerImpl.processAction(
     at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(
     at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(
     at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(
     at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(
     at javax.faces.webapp.FacesServlet.service(
     ... 38 more
Caused by: java.lang.NullPointerException
     at Details.GetNextStopPayment(
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(
     at java.lang.reflect.Method.invoke(
     at com.sun.el.parser.AstValue.invoke(Unknown Source)
     at com.sun.el.MethodExpressionImpl.invoke(Unknown Source)
     at org.apache.myfaces.trinidad.component.MethodExpressionMethodBinding.invoke(

am in jdeveloper

Edited by: adf0994 on 2012/11/29 1:02 PM


  • Correct Answers - 10 points
  • Helpful Answers - 5 points