Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

AM Impl- View Object not found- Null pointer exception

998899-OracleApr 12 2012 — edited Apr 12 2012
Hi,

I wanted to filter my view criteria to get a particular row . i used the following code inside the application module. But Why can't I get View Objects?

private Row getUserInfo(String emailId) {
Row userInfo = null;
if (emailId != null && !emailId.equals("")) {
ViewObject userAuthentionEVO = this.getViewObj1();//returns null
userAuthentionEVO.setNamedWhereClauseParam("The_EmailId", emailId);
userAuthentionEVO.executeQuery();
userInfo = userAuthentionEVO.first();
}
return userInfo;
}
Exception in thread "main" java.lang.NullPointerException
at oracle.insurance.viking.foundation.model.am.AuthenticationAMImpl.getUserInfo(AuthenticationAMImpl.java:165)
at oracle.insurance.viking.foundation.model.am.AuthenticationAMImpl.validateUserCredential(AuthenticationAMImpl.java:64)
at oracle.insurance.viking.foundation.model.am.AuthenticationAMImpl.main(AuthenticationAMImpl.java:35)
This post has been answered by Timo Hahn on Apr 12 2012
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 10 2012
Added on Apr 12 2012
12 comments
793 views