Unexpected Null pointer exception in Oracle ADF

Recently I faced an issue in Adf application. The .jspx page giving null pointer exception after doing some operation in page. And every variable have contain their value. I have try to run application many time in debug mode to replicate the problem but not able to find. Then I find in ADF application when ever You make any Input or Output text in jspx. page it automatically make validator. af:validator is automatically generated when you create a form component. You can check that validator by clicking the Source button. Solution of the problem is – to comment the validator part in xml part.
You will find error in ADF class like this.

java.lang.NullPointerException
at oracle.jbo.uicli.binding.JUCtrlValueBinding.validateAttributeValue(JUCtrlValueBinding.java:757)

For Solution you should go to seach option and Search for af:validator in full application.Where you can find this tag. Make it comment like example I have given below.

null1

After applying the solution application doesn’t give Null pointer exception

Vinay

I am an Oracle ACE in Oracle ADF/Webcenter. Sr Java Consultant-working on Java/J2EE/Oracle ADF/Webcenter Portal/ content and Hibernate for several years. I'm an active member of the OTN JDeveloper/Webcenter forum. Passionate about learning new technologies. I am here to share my knowledge. Give your views and suggestion on [email protected] .

More Posts - Website

Follow Me:
TwitterLinkedInGoogle PlusYouTube