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!

Null Pointer Exception when calling doFilter(request, response, chain) of ADFBindingFilter

John SubinSep 11 2015 — edited Oct 14 2015

Hi ,

I am using JDevelper11.1.1.7.

I followed this blog http://www.jobinesh.com/2010/04/invoking-applicationmodule-from-servlet.html to instantiate BindingContext before the servlet come into action.

import java.io.IOException;

import javax.servlet.Filter;

import javax.servlet.FilterChain;

import javax.servlet.FilterConfig;

import javax.servlet.ServletException;

import javax.servlet.ServletRequest;

import javax.servlet.ServletResponse;

import oracle.adf.model.servlet.ADFBindingFilter;

public class CustomBindingFilter extends ADFBindingFilter {

private FilterConfig \_filterConfig = null;

public void init(FilterConfig filterConfig) throws ServletException {

    \_filterConfig = filterConfig;

}

public void destroy() {

    \_filterConfig = null;

}

public void doFilter(ServletRequest request, ServletResponse response,

                     FilterChain chain) throws IOException,

                                               ServletException {

    super.doFilter(request, response, chain);

}

}

I mapped this filter to my servlet in web.xml declaratively.

filter.JPG

When the servlet is called, I am getting the breakpoint at line no 31. But after that Null Pointer Exception is thrown.

java.lang.NullPointerException

at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:169)

at com.symmetry.dashboard.panels.view.backing.scan.CustomBindingFilter.doFilter(CustomBindingFilter.java:28)

Could you please help me in solving this problem.

Thanks and Regards,

John.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 16 2015
Added on Sep 11 2015
8 comments
1,603 views