Filter Configuration

I am trying to configure a filter for a particular driver developed for Zigbee protocol. Events from the dirver are arriving in the inbound queue. I am trying to write some buisness logic to check the incoming events in the filter by extending the Simple Filter/ Abstract filter. I am not able to trace the incoming event. The event is sent using the oracle.edge.common.Event class. The postFilter , preFilter methods in the filter is not able to receive the event.
Any help/advice would be highly appreciated.
Lakshmi

Events from the driver should be in the outboud queue! Are you sending in the wrong direction?

Similar Messages

  • It will not open Mozilla at all, it comes up with a problem box, which states on the first line: Access denied to system because of URL Filter Configuration.

    Problem Report -
    Access denied to system because of URL Filter Configuration.
    Message ID -
    FILTER_DENIED
    Problem Description -
    Your system was configured to deny access to the requested URL.
    Possible Problem Cause -
    Request denied, as specified in the local filter list configuration.
    Possible Solution -
    Contact your network support team if this problem persists.
    It comes up with thie above in a box with two colums. i can only usse internet explorer now.

    Does any body know how to fix it?
    I just got off the phone to my new isp and they said they could not help me at all.

  • Anti-relay filter configuration issues

    Configuration issues with the anti-relay filter in Messaging Server 4.1x.
    The following information addresses common questions about configuration issues
    with the anti-relay filter in Messaging Server 4.1x:<BR>
    <P>
    <OL>
    <LI><B>Question:</B><BR>
    What is the difference between the delivery
    and submission
    options?<BR>
    <P>
    <B>Answer:</B><BR>
    The submission option
    allows specified users to send email to any email address in the world.
    These users are typically internal users.
    <P>
    The delivery option
    allows specified users to receive email from anybody. These users
    are also typically internal users.
    <P>
    A standard filter will appear something as follows:<BR>
    <P>
    # This is the anti-relay config file written by Jay at iPlanet
    # The first section sets default conditions
    resolvehostnames:0
    useauthinfo:0
    advertiseauthinfo:1
    # This section sets domains to be delivered to by anybody
    delivery:*@my.domain.com
    # This section sets domains that can send any place
    submission:129.12.4.*
    <P>
    <P>
    <LI><B>Question:</B><BR>
    The delivery
    option works properly. However, why doesn't the
    submission option
    appear to be allowing emails from specified users to pass through?
    <P>
    <B>Answer:</B><BR>
    The problem with the submission behavior could be due to the setting of the
    the resolvehostnames
    parameter. If this parameter is turned on
    (resolvehostnames:1),
    then <I>all</I> entries in this configuration file must be fully qualified
    host names. Although wildcards will work, you cannot specify IP
    addresses with this configuration setting.
    <P>
    <P>
    <LI><B>Question:</B><BR>
    Is it possible to allow people outside of my network to connect to the server
    and send mail out?
    <P>
    <B>Answer:</B><BR>
    Yes. To allow outside users to connect to the server and send mail
    to any address, without granting the same privilege to the rest of the world,
    activate the authenticated SMTP portion of the filter via the
    useauthinfo option.
    Setting this parameter to "1" (i.e., useauthinfo:1
    ) will require a user who is not in a
    submission address and who is attempting to send email to an address not in
    the delivery range to authenticate with a user ID and password.
    </OL>
    <P>
    For additional information on the anti-relay filter, please refer to the
    Messaging Server 4.1 Administrator's Guide at<BR>
    <P>
    http://docs.iplanet.com/docs/manuals/messaging/nms41/ag/ubefiltr.htm#1073677

    Prashant:
    Are you using a UBE filter to configure domain-based anti-relayinging? We had better luck with the anti-relay plug-in. There is some info on this (for 4.15) at
    http://docs.sun.com/source/816-6044-10/ubefiltr.htm#1069973
    You have to enable the plug-in using configutil, per the above. The anti-relay plug-in is controlled by antirelay.conf. Be aware that the pattern matching rules are very limited, and not well documented. Fortunately, the source code to the plug-in is included, and you can see what it is doing. To pass the tests we had to add a hard-coded test for a "%" in the source and recompile:
    *** antirelay.c.orig Thu Oct 31 04:42:13 2002
    --- antirelay.c Thu Oct 31 04:22:07 2002
    *** 934,939 ****
    --- 934,940 ----
    * Weight must be non-zero to begin with so that matches on just "*"
    * will work.
    + if( strchr(text,'%') != NULL ) return ABORT;
    weight = TRUE;
    for ( ; *p; text++, p++) {
    if (*text == '\0' && p != '')
    Not a really elegant hack, but we didn't need a fully functional regex engine.

  • Dynamic configuration of IP Filter

    Hi ,
    For IP Filter configuration , we have stored the environment specific IP addresses in database.
    We use "Retrieve from or write to database" to retrieve the IP addresses to user attribute (Eg : user.ipaddress.1,user.ipaddress.2 etc)
    Since we may have dynamic number of ip addresses , these needs to be configured in IP filter.
    Could please help with this regard.
    Thanks,
    Vani

    Vani,
    IP filter wont do the job for you if your ip addresses are dynamic. You can use a Script filter to achieve your goal here. You script will work as follows:
    Get the value of attribute "http.request.clientaddr" from message. This attribute contains the ip address of the client that sent the request. This is of type java.net.InetSocketAddress and you can use method getAddress().getHostAddress() to obtain the ip address.
    Once you have the ip address of client, you can see if the list of addresses returned from DB contained this ip:
    If yes, then your script can return false and connect the failure part of the script filter to an "Abort" filter which will stop the processing.
    If no, then your script can return true which means the ip address is not blocked.
    Hope this helps.
    -Ankit

  • Filter not visible in configuration

    I've created a simple name space filter, and have deployed it to a portal environment.  I've recycled the portal, but the filter is not showing up in the system configuration 'Repository Filters' page.  Debugging messages are displayed the default trace log so the class is being loaded, but I can't assign the filter to any repositories since it's not visible...
    I suspect that the KEY parameter is incorrect.  I've tried variations, but nothing seems to work.
    My understanding is that the KEY value should be the actual class name of the filter, as defined in the *.co.xml configuration file:
    <Configurable configclass="com.example.MyFilter">
    <property name="name" value="com.example.MyFilter" />
    <property name="active" value="true" />
    <property name="description" value="Sample Filter filter"/>
    </Configurable>
    So I should use this:
    public static final String KEY = "com.example.MyFilter";
    Is this correct?  Or is there something else amiss?

    I noticed that too. I think that they ditched it because multiple filters can be applied and it could look confusing.
    I do have a couple of suggestions to improve this.
    1. They could show the filter (like in 1.0) if one filter condition is applied
    And/Or
    2. They could do a hover-over that shows the filter
    Or
    3. At a minimum, change the icon to show that it is currently filtered.

  • Is it possible to redirect in a filter After the doChain?

    Hello all,
    I have a filter configured...
      <filter>
        <filter-name>Hibernate Session Filter</filter-name>
        <filter-class>com.test.HibernateSessionFilter</filter-class>
      </filter>
      <filter-mapping>
        <filter-name>Hibernate Session Filter</filter-name>
        <url-pattern>/*</url-pattern>
        <dispatcher>REQUEST</dispatcher>
      </filter-mapping>... in my Web.xml file.
    I'm using this filter to implement the Hibernate "Session in View" notion. This is where a suitable interceptor (filter for me!) grabs the request /response on the way in and starts a hibernate session... then your servlets do whatever it is they do (which may/may not involve hibernate)... then on the way out the filter commits the transaction and closes the session.
    More can be read about this here...
    http://www.hibernate.org/43.html
    ... but the most interesting bit is really the filter itself:
    public class HibernateSessionRequestFilter implements Filter {
        private static Log log = LogFactory.getLog(HibernateSessionRequestFilter.class);
        private SessionFactory sf;
        public void doFilter(ServletRequest request,
                             ServletResponse response,
                             FilterChain chain)
                throws IOException, ServletException {
            try {
                log.debug("Starting a database transaction");
                sf.getCurrentSession().beginTransaction();
                // Call the next filter (continue request processing)
                chain.doFilter(request, response);
                // Commit and cleanup
                log.debug("Committing the database transaction");
                sf.getCurrentSession().getTransaction().commit();
            } catch (StaleObjectStateException staleEx) {
                log.error("This interceptor does not implement optimistic concurrency control!");
                log.error("Your application will not work until you add compensation actions!");
                // Rollback, close everything, possibly compensate for any permanent changes
                // during the conversation, and finally restart business conversation. Maybe
                // give the user of the application a chance to merge some of his work with
                // fresh data... what you do here depends on your applications design.
                throw staleEx;
            } catch (Throwable ex) {
                // Rollback only
                ex.printStackTrace();
                try {
                    if (sf.getCurrentSession().getTransaction().isActive()) {
                        log.debug("Trying to rollback database transaction after exception");
                        sf.getCurrentSession().getTransaction().rollback();
                } catch (Throwable rbEx) {
                    log.error("Could not rollback transaction after exception!", rbEx);
                // Let others handle it... maybe another interceptor for exceptions?
                throw new ServletException(ex);
        public void init(FilterConfig filterConfig) throws ServletException {
            log.debug("Initializing filter...");
            log.debug("Obtaining SessionFactory from static HibernateUtil singleton");
            sf = HibernateUtil.getSessionFactory();
        public void destroy() {}
    }This all works well except when there's a hibernate exception! When there is an exception I'd like to trap the error and redirect the user to an error page showing some text.. or do something informative. The comment in the sample code "// Let others handle it... " ain't very helpful!
    When I try to do a redirect/forward I get illegalStateExceptions (?because the response is already committed??) Is there some way I can manage the response being committed? I'm not very clear on how the header states/'response flush' actually happens. I've had a rummage here and see many similar posts, but they all seem to refer to redirection Before the doChain method... whereas I want to redirect after that method call.
    Thanks in advance for any advice.

    Nope! Not yet. I tried doing a simple ResponseWrapper (just to mess with the response output, inserting text here and there...
    import java.io.PrintWriter;
    import javax.servlet.ServletOutputStream;
    import javax.servlet.ServletRequest;
    import javax.servlet.ServletResponse;
    import javax.servlet.http.HttpServletResponse;
    import javax.servlet.http.HttpServletResponseWrapper;
    class HtmlResponseWrapper
    extends HttpServletResponseWrapper
      // A response must provide a PrintWriter and a ServletOutputStream.  So we
      // create new ones here, that uses our HtmlServletOutputStream instead of the
      // default ones...
      private PrintWriter printWriter;
      private HtmlServletOutputStream servletOutputStream;
      public HtmlResponseWrapper(
          ServletResponse servletResponse,
          ServletRequest request,
          String menuInsertMarker,
          String crumbInsertMarker)
      throws java.io.IOException
        // Run the constructor on HttpServletResponseWrapper
        super((HttpServletResponse) servletResponse);
        // Generate the appropriate ServletOutputStream/PrintWriter from the inbound
        // response...
        servletOutputStream = new HtmlServletOutputStream(
            servletResponse.getOutputStream(),
            request,
            menuInsertMarker,
            crumbInsertMarker);
        printWriter = new PrintWriter(servletOutputStream);
      public ServletOutputStream getOutputStream() throws java.io.IOException {
        return servletOutputStream;
      public PrintWriter getWriter() throws java.io.IOException {
        return printWriter;
    }... and that worked well. There's lots of examples of this kind of thing on the web. What I need to do now is understand when status changes, buffers get flushed etc. so I can override more than just the getOutputStream and getWriter methods, to keep my request alive until it gets back to the hibernate filter.
    Hoped to do it over Christmas... but maybe in the New Year!
    Once again - if anyone has any pointers - much appreciated!
    Rgds,
    T.

  • Can we have a filter to handle all the apps in a container?

    Hi,
    I have a simple (Stupid) question.
    Can I configure a Servlet filter to intercept requests to all the applications (a.k.a all the ServletContexts)? All I know is we can configure a filter for each ServletContext (application), but I am wondering if there is any way.
    The reason I am asking is because, if there is a way to do so, I can configure my filter to provide me the debug output (Such as CGI, session, request, and ServletContext variables) on all the applications on development servers and when I can get rid of debugging on production servers (by not deploying the filter).
    Thanx in advance,
    Thirupati Panyala

    Thanks for the reply Sudhir.
    I tried it in Tomcat 4.x. It works for only the root resources even though I configured the filter for /* which is expected to include all the resources including root (for ex: /examples/...).
    So, I understand, the web.xml under /conf will be overriden by that of the respective apps as you go further down the context paths (apps). That's why the container was not executing my filter when I went to the next level of the URI (http://localhost:8080/index.html WORKED, but NOT http://localhost:8080/examples/jsp/num/numguess.jsp).
    If you want to try it for yourself, here is the piece of code I tried with (This is taken from Apache Tomcat source):
    package filters;
    import java.io.IOException;
    import java.io.PrintWriter;
    import java.io.StringWriter;
    import java.sql.Timestamp;
    import java.util.Enumeration;
    import java.util.Locale;
    import javax.servlet.Filter;
    import javax.servlet.FilterChain;
    import javax.servlet.FilterConfig;
    import javax.servlet.ServletContext;
    import javax.servlet.ServletException;
    import javax.servlet.ServletRequest;
    import javax.servlet.ServletResponse;
    import javax.servlet.http.Cookie;
    import javax.servlet.http.HttpServletRequest;
    * Example filter that dumps interesting state information about a request
    * to the associated servlet context log file, before allowing the servlet
    * to process the request in the usual way. This can be installed as needed
    * to assist in debugging problems.
    * @author Craig McClanahan
    * @version $Revision: 1.5 $ $Date: 2001/05/23 22:26:17 $
    public final class RequestDumperFilter implements Filter {
    // ----------------------------------------------------- Instance Variables
    * The filter configuration object we are associated with. If this value
    * is null, this filter instance is not currently configured.
    private FilterConfig filterConfig = null;
    // --------------------------------------------------------- Public Methods
    * Take this filter out of service.
    public void destroy() {
    this.filterConfig = null;
    * Time the processing that is performed by all subsequent filters in the
    * current filter stack, including the ultimately invoked servlet.
    * @param request The servlet request we are processing
    * @param result The servlet response we are creating
    * @param chain The filter chain we are processing
    * @exception IOException if an input/output error occurs
    * @exception ServletException if a servlet error occurs
    public void doFilter(ServletRequest request, ServletResponse response,
    FilterChain chain)
         throws IOException, ServletException {
    if (filterConfig == null)
         return;
         // Render the generic servlet request properties
         StringWriter sw = new StringWriter();
         PrintWriter writer = new PrintWriter(sw);
         writer.println("Request Received at " +
              (new Timestamp(System.currentTimeMillis())));
         writer.println(" characterEncoding=" + request.getCharacterEncoding());
         writer.println(" contentLength=" + request.getContentLength());
         writer.println(" contentType=" + request.getContentType());
         writer.println(" locale=" + request.getLocale());
         writer.print(" locales=");
         Enumeration locales = request.getLocales();
         boolean first = true;
         while (locales.hasMoreElements()) {
         Locale locale = (Locale) locales.nextElement();
         if (first)
         first = false;
         else
         writer.print(", ");
         writer.print(locale.toString());
         writer.println();
         Enumeration names = request.getParameterNames();
         while (names.hasMoreElements()) {
         String name = (String) names.nextElement();
         writer.print(" parameter=" + name + "=");
         String values[] = request.getParameterValues(name);
         for (int i = 0; i < values.length; i++) {
         if (i > 0)
              writer.print(", ");
              writer.print(values);
         writer.println();
         writer.println(" protocol=" + request.getProtocol());
         writer.println(" remoteAddr=" + request.getRemoteAddr());
         writer.println(" remoteHost=" + request.getRemoteHost());
         writer.println(" scheme=" + request.getScheme());
         writer.println(" serverName=" + request.getServerName());
         writer.println(" serverPort=" + request.getServerPort());
         writer.println(" isSecure=" + request.isSecure());
         // Render the HTTP servlet request properties
         if (request instanceof HttpServletRequest) {
         writer.println("---------------------------------------------");
         HttpServletRequest hrequest = (HttpServletRequest) request;
         writer.println(" contextPath=" + hrequest.getContextPath());
         Cookie cookies[] = hrequest.getCookies();
    if (cookies == null)
    cookies = new Cookie[0];
         for (int i = 0; i < cookies.length; i++) {
         writer.println(" cookie=" + cookies[i].getName() +
                   "=" + cookies[i].getValue());
         names = hrequest.getHeaderNames();
         while (names.hasMoreElements()) {
         String name = (String) names.nextElement();
              String value = hrequest.getHeader(name);
         writer.println(" header=" + name + "=" + value);
         writer.println(" method=" + hrequest.getMethod());
         writer.println(" pathInfo=" + hrequest.getPathInfo());
         writer.println(" queryString=" + hrequest.getQueryString());
         writer.println(" remoteUser=" + hrequest.getRemoteUser());
         writer.println("requestedSessionId=" +
                   hrequest.getRequestedSessionId());
         writer.println(" requestURI=" + hrequest.getRequestURI());
         writer.println(" servletPath=" + hrequest.getServletPath());
         writer.println("=============================================");
         // Log the resulting string
         writer.flush();
         response.getWriter().print(sw.getBuffer().toString());
         // Pass control on to the next filter
    chain.doFilter(request, response);
    * Place this filter into service.
    * @param filterConfig The filter configuration object
    public void init(FilterConfig filterConfig) throws ServletException {
         this.filterConfig = filterConfig;
    * Return a String representation of this object.
    public String toString() {
         if (filterConfig == null)
         return ("RequestDumperFilter()");
         StringBuffer sb = new StringBuffer("RequestDumperFilter(");
         sb.append(filterConfig);
         sb.append(")");
         return (sb.toString());
    And the config in web.xml is :
    <filter>
    <filter-name>Request Dumper Filter</filter-name>
    <filter-class>filters.RequestDumperFilter</filter-class>
    </filter>
    <filter-mapping>
    <filter-name>Request Dumper Filter</filter-name>
    <url-pattern>/*</url-pattern>
    </filter-mapping>
    Thanx
    Thirupati Panyala

  • Sender ID Filter running very slowly

    Hi,
    I have recently deployed a test Exchange 2013 with the mailbox role and client access roll on Windows server 2012 R2
    The test machine is also a DC, DNS server, DHCP Server. I have no edge transport server, the Frontend transport connector, ie SMTP service is being used.
    Exchange 2013 has been updated to CU7 and windows server 2012 has all the latest updates installed from windows update.
    The problem i am having is the Sender ID filter, installed with the anti-spam configuration, is running very slowly.
    If i use the Test-SenderID cmdlet with any external address it can sometimes take minutes to come back with the test result.
    However sometimes it comes back quite quickly - its somewhat intermittent. It doesn't matter what 'PurportedResponsibleDomain' i use or IPaddress for the test - the majority of the time its very slow, although occasionally it will come back within a second
    with the result, but do the same test again with the same parameters and its back to a minute or 2 again.
    This slow response is replicated with a SMTP test via telnet, upon the final '.' to send the email, it can hang for a minute or 2. If i disable the SenderID filter i get the acknowledgement from the SMTP server within a second. This occurs if i telnet direct
    from the exchange machine, or from another machine on the network.
    Things i have observed:
    -After a couple of days from rebooting the server - the SenderID filter suddenly, for apparently no reason, starts responding instantly, with the Test-SenderID cmdlet consistently returing results within a second - ie problem resolved. If i reboot the server
    im back to the slow running.
    -Internal email is being delivered fast, no delays
    -External email is delayed by a minute or 2, confirmed to be caused by the SenderID filter.
    Things i have checked:
    -DNS configuration looks good, no problems, all Local IP's on the 1 and only adapter have A records. There is a valid MX record, external DNS records for the mail domain are correct. I have put valid SPF records for the dc domain etc.
    -No errors in application logs other than the usual suspects from exchange 2013 (a few performance counter errors)
    -No DNS errors or warnings in the event logs.
    -InternalSMTPServers on the TransportConfig has been set to the IP assigned to the adapter. I have also tried adding all IP's on  this adapter (there are 4), and even 127.0.0.1 to this InternalSMTPServers list, but it makes no difference for external
    mail or the Test-SenderID cmdlet. It does however speed up a telnet smtp test direct from the exchange machine as the internalSMTPServers list results in a bypass.

    Hi Gavin,
    I notice that there are some performace counter errors from Exchange 2013, sometimes performance issue can cause mailflow delay. Would you like to list some errors without sensitive information for the further troubleshooting?
    How about the impact, one user or all users? How about in OWA, does the email from outside delay in OWA?
    If you suspect this delay issue caused by Sender ID filter, I suggest disable it for a little while and use a test external account send an email for testing.
    If everything goes well without configuring Sender ID filter, it seems an issue on Sender ID filter configuration.
    More details on how to configure Sender ID filter as below:
    http://technet.microsoft.com/en-us/library/dd639388.aspx
    Thanks
    Mavis Huang
    TechNet Community Support

  • Servlet filter problem

    I've written a simple servlet filter to intercept a request to another servlet. So when the user tries to access /servlet/ViewMetadata servlet, they first hit InterceptServlet, the filter configured in Tomcat.
    I need to access the name and URL of the target servlet ViewMetada within InterceptServlet but don't know how to do this. I am familiar with HttpServletRequest.getServletPath() but doFilter uses ServletRequest as its argument.
    Can I obtain the target servlet name inside the filter servlet? I know this is probably very basic!
    Arc

    If the filter is invoked by a HttpServletRequest, then the ServletRequest handle you've in the filter is just an instance of HttpServletRequest.
    Cast it back.

  • Improve the performance of filter

    Hi All,
    We are using Oracle Coherence Standard Edition in our application.
    Any way to improve the performance of NamedCache.keySet(filter) configured as distributed?
    I know there is no scope for indexing since we are using Standard Edition.
    Thanks

    user1096084 wrote:
    Hi All,
    We are using Oracle Coherence Standard Edition in our application.
    Any way to improve the performance of NamedCache.keySet(filter) configured as distributed?
    I know there is no scope for indexing since we are using Standard Edition.
    ThanksNot only is there no indexing, but also, I believe, all data is sent to the querying node for filtering instead of filtering on the storage nodes in parallel. If you upgraded, then you could benefit from parallel querying which is only available in a higher edition.
    Best regards,
    Robert

  • Implementing resource list filter

    hi,
    i'm implementing a resource list filter. i added the filter as a jar file in the lib directory of my portal application, and created a portal service which registers the classloader to CRT. In the log file i can see that the registering is done succesfully. But when i create the filter in the portal i get ClassNotFoundException.
    Do i need to implement a manager too??? or is this probably just a naming problem?
    thx,
    Kristof

    Hi Detlev,
    yeah well, i was right about the naming problem, so i got the filter running now.
    But another problem occured. I need to extend the DCTMResourceListFilter, so i inherited this class. The only thing i did was calling super methods in constructor and FilterResourceList, and then i got this exception. Kinda strange because there is a filter configured using this DCTM class. Any idea's??? thx
    Exception ID:10:19_13/10/06_0001_4133550
    [EXCEPTION]
    com.sapportals.portal.prt.component.PortalComponentException: Error in service call of Portal Component
    Component : pcd:portal_content/every_user/general/eu_role/com.sap.km.home_ws/com.sap.km.hidden/com.sap.km.urlaccess/com.sap.km.basicsearch
    Component class : com.sapportals.wcm.portal.component.base.ControllerComponent
    User : E122830
    at com.sapportals.portal.prt.core.PortalRequestManager.handlePortalComponentException(PortalRequestManager.java:969)
    at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:343)
    at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
    at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
    at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:215)
    at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:646)
    at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
    at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
    at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
    at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:753)
    at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:240)
    at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:522)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:405)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:156)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
    at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
    at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
    at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
    at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
    at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
    at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    Caused by: com.sapportals.wdf.WdfError
    at com.sapportals.wdf.WdfCompositeController.buildComposition(WdfCompositeController.java:678)
    at com.sapportals.htmlb.AbstractCompositeComponent.render(AbstractCompositeComponent.java:41)
    at com.sapportals.htmlb.rendering.RenderUtil.renderContentObject(RenderUtil.java:103)
    at com.sapportals.htmlb.rendering.RenderUtil.renderContainerContent(RenderUtil.java:34)
    at com.sapportals.htmlb.rendering.DefaultFlowLayoutRenderer.render(DefaultFlowLayoutRenderer.java:29)
    at com.sapportals.htmlb.rendering.PageContext.render(PageContext.java:980)
    at com.sapportals.htmlb.Component.render(Component.java:150)
    at com.sapportals.htmlb.rendering.RenderUtil.renderContentObject(RenderUtil.java:103)
    at com.sapportals.htmlb.rendering.RenderUtil.renderContainerContent(RenderUtil.java:34)
    at com.sapportals.htmlb.rendering.DefaultFormRenderer.render(DefaultFormRenderer.java:39)
    at com.sapportals.htmlb.rendering.PageContext.render(PageContext.java:980)
    at com.sapportals.htmlb.Component.render(Component.java:150)
    at com.sapportals.htmlb.rendering.RenderUtil.renderContentObject(RenderUtil.java:103)
    at com.sapportals.htmlb.rendering.RenderUtil.renderContainerContent(RenderUtil.java:34)
    at com.sapportals.htmlb.rendering.DefaultDocumentRenderer.render(DefaultDocumentRenderer.java:69)
    at com.sapportals.htmlb.rendering.PageContext.render(PageContext.java:980)
    at com.sapportals.htmlb.Component.render(Component.java:150)
    at com.sapportals.htmlb.rendering.RenderUtil.renderContentObject(RenderUtil.java:103)
    at com.sapportals.htmlb.rendering.RenderUtil.renderContainerContent(RenderUtil.java:34)
    at com.sapportals.htmlb.unifiedrendering.ie5.GridLayoutRenderer.renderGridLayoutCellFragment(GridLayoutRenderer.java:686)
    at com.sapportals.htmlb.unifiedrendering.ie5.GridLayoutRenderer.renderGridLayoutRowFragment(GridLayoutRenderer.java:355)
    at com.sapportals.htmlb.unifiedrendering.ie5.GridLayoutRenderer.renderGridLayoutFragment(GridLayoutRenderer.java:286)
    at com.sapportals.htmlb.unifiedrendering.ie5.GridLayoutRenderer.render(GridLayoutRenderer.java:39)
    at com.sapportals.htmlb.rendering.PageContext.render(PageContext.java:980)
    at com.sapportals.wcm.portal.component.base.KMControllerDynPage.doOutput(KMControllerDynPage.java:127)
    at com.sapportals.htmlb.page.PageProcessor.handleRequest(PageProcessor.java:129)
    at com.sapportals.portal.htmlb.page.PageProcessorComponent.doContent(PageProcessorComponent.java:134)
    at com.sapportals.wcm.portal.component.base.ControllerComponent.doContent(ControllerComponent.java:73)
    at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
    at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
    at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
    ... 29 more

  • Custom Filter issue

    Hi,
    In my project we have written custom filter which will intercept each request and check whether session is active or not. If not then redirect it to login page else user can do normal operation.
    but the problem is, whenever i make a request, CustomFilter.doFilter() method is getting called 7-8 times. Ideally it should be called once, can anybody tell me what would be the root cause?
    following are the configuration made for customfilter in web.xml
    <filter>
    <filter-name>customfilter</filter-name>
    <filter-class>com.foo.CustomFilter</filter-class>
    </filter>
    <filter-mapping>
    <filter-name>customfilter</filter-name>
    <url-pattern>*.jfsf</url-pattern>
    </filter-mapping>
    Apart from this, i do have faces-servlets default filter in web.xml
    Am I am missing something in the filter configuration?>
    Please advice.
    Thanks
    chintan

    Hi,
    Here is sample code for the reference.
    public void init(FilterConfig filterConfig) {
      this.filterConfig = filterConfig;
    public void destroy() {
      this.filterConfig = null;
    public void doFilter(ServletRequest req, ServletResponse res, FilterChain chain) throws IOException, ServletException {
      HttpServletRequest request = (HttpServletRequest)req;
      HttpServletResponse response = (HttpServletResponse)res;
      ServletContext context = getFilterConfig().getServletContext();
      HttpSession session = request.getSession(false);
      String uri = request.getRequestURI();
      l
      //This code block contains work that must be done when a new session is created
      if(uri.indexOf("error.jsp") < 0 //Not a request for the error page
        && (session == null || session.getAttribute(ICommonConstants.SESSION_OBJ_USER_DAO) == null) //There is no session
       try{
        session = getOrCreateSession(request, context);
       }catch(Exception e){
        e.printStackTrace();
        response.sendRedirect("/webapp/error.jsp?message=" + e.toString());
        return;
       response.sendRedirect("/webapp/default.jsp");
       return;
      chain.doFilter(req, res);
    public static HttpSession getOrCreateSession(HttpServletRequest request, ServletContext context) throws Exception{
      //Need the security Service injected
      String userName = request.getHeader("USERNAME");
       if(userName == null)
       userName = "test";
      if(userName == null || userName.length() == 0){
       throw new Exception ("Http header property 'USERNAME' not found");
      HttpSession session = request.getSession(true);
      MockUserProfile updao = (MockUserProfile)session.getAttribute(ICommonConstants.SESSION_OBJ_USER_DAO);
        updao = new MockUserProfile();
       session.setAttribute(ICommonConstants.SESSION_OBJ_USER_DAO, updao);
       SecurityService service = new MockSecurityService();
       //initialize the user by adding entry into db table.
       service.initialize(userName, context );
       session.setAttribute(ICommonConstants.SESSION_OBJ_USER, userName);
      return session;
    }I debug the code and for each request it is coming into doFilter().

  • VSOM 7.0.1 LDAP Filter AD

    Hello!
    LDAP server settings are as follows: 
    Name: SFC.LOCAL
    Host Name: 192.168.104.252
    port: 389
    Member of: %USERID%@sfc.local
    Database search for users: OU=Accounts,DC=sfc,DC=local
    User ID attribute: sAMAccountName
    How to create a filter selecting users from a specific location in aerarhii AD?
    People are on the way: 
    OU=SPK,OU=Offices,OU=Delegate,OU=Common,OU=Accounts,DC=sfc,DC=local
    try like this: 
    search path: OU=Accounts,DC=sfc,DC=local
    Filter: (&(sAMAccountName=%USERID%)(memberOf=CN=SPK,OU=Offices,OU=Delegate,OU=Common,OU=Accounts,DC=sfc,DC=local))
    Runtime Error: The user with the given name is not found in the LDAP filter by (&(sAMAccountName=drozdov.alexander)(memberOf=CN=SPK,OU=Offices,OU=Delegate,OU=Common,OU=Accounts,DC=sfc,DC=local))
    in it may be inaccurate filter configuration?

    Hello Alex,
    Here is the example to do LDAP serach filter configuration. Let me know if this help
    •General Settings
    Hostname: ds.cisco.com
    Port: 389
    Principal: %USERID%@cisco.com
    User Search Base: ou=Cisco Users,dc=cisco,dc=com
    Userid Attribute: sAMAccountName
    •LDAP Search Filter:
    Select a Cisco mailing list you are on from mailer.cisco.com, and substitute its name for <anyMailer> in the Filter below
    Search Path: ou=Cisco Users,dc=cisco,dc=com
    Filter: (&(sAMAccountName=%USERID%)(memberOf=CN=<anyMailer>,OU=Mailer,OU=Cisco Groups,DC=cisco,DC=com))
    Br,
    Nadeem Ahmed

  • Servlet Filter issue

    Hi,
    In my project we have written custom filter which will intercept each request and check whether session is active or not. If not then redirect it to login page else user can do normal operation.
    but the problem is, whenever i make a request, CustomFilter.doFilter() method is getting called 7-8 times. Ideally it should be called once, can anybody tell me what would be the root cause?
    following are the configuration made for customfilter in web.xml
    <filter>
    <filter-name>customfilter</filter-name>
    <filter-class>com.foo.CustomFilter</filter-class>
    </filter>
    <filter-mapping>
    <filter-name>customfilter</filter-name>
    <url-pattern>*.jfsf</url-pattern>
    </filter-mapping>
    Apart from this, i do have faces-servlets default filter in web.xml
    Am I am missing something in the filter configuration?>
    Please advice.
    Thanks
    chintan

    I have the same problem, but in my case its looping inside the doFilter and never terminationg from it, and becz of that I dont see the 1st page(Login page ) what could be the problem,
    here is my web.xml..
         <filter>
              <filter-name>LoginFilter</filter-name>
              <filter-class>
                   com.indemand.indab.architecture.LoginFilter
              </filter-class>
              <init-param>
                   <param-name>error_page</param-name>
                   <param-value>login.jsp</param-value>
              </init-param>
              <init-param>
                   <param-name>login_page</param-name>
                   <param-value>login.jsp</param-value>
              </init-param>
         </filter>
         <filter-mapping>
              <filter-name>LoginFilter</filter-name>
              <url-pattern>/*</url-pattern>
         </filter-mapping>
    and here is filter class----
    public void doFilter(ServletRequest request, ServletResponse response,
                   FilterChain chain) throws IOException, ServletException {
              HttpSession session = ((HttpServletRequest) request).getSession(true);
              User currentUser = (User) session.getAttribute("user");
              String URI = ((HttpServletRequest) request).getRequestURI();
              System.out.println("Filter doFilter ......");
              if (filterConfig == null) {
                   System.out.println("filterConfig null.");
                   return;
              if (filterConfig.getInitParameter("error_page") != null) {
                   errorPage = filterConfig.getInitParameter("error_page");
              } else {
                   errorPage = "/indabch/login.jsp";
              if (filterConfig.getInitParameter("login_page") != null) {
                   loginPage = filterConfig.getInitParameter("login_page");
              } else {
                   loginPage = "/indabch/login.jsp";
              if (currentUser == null) {
                   ((HttpServletResponse) response).sendRedirect(loginPage);
              } else {
                   AuthorizationManager loginMan = new LoginManager();
                   boolean authorized = loginMan.isUserAuthorized(currentUser
                             .getLoginName(), currentUser.getPassword());
                   if (authorized) {
                        chain.doFilter(request, response);
                   } else {
                        ((HttpServletResponse) response).sendRedirect(errorPage);
         }

  • Servlet Filter never gets called

    I have a filter configured in web.xml to run on hitting the /welcome.jsf(forward, request).
    I want to update a statistics table with the hit count for login.  But the servlet is not getting called.
    In the debugger, it never stops there and the statistics table never gets updated.

    11.1.2.3
    <filter>
            <filter-name>IBHSLoginStatistics</filter-name>
            <filter-class>gov.samhsa.dasis.isats.view.servlets.filters.IBHSLoginStatistics</filter-class>
        </filter>
    <filter-mapping>
            <filter-name>IBHSLoginStatistics</filter-name>
            <url-pattern>/faces/welcome/*</url-pattern>
            <dispatcher>FORWARD</dispatcher>
            <dispatcher>REQUEST</dispatcher>
        </filter-mapping>
    public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException,
    ServletException {
    HttpSession session = (HttpSession)FacesContext.getCurrentInstance().getExternalContext().getSession(false);
    if(session.isNew()) {
    IbhsStatistics ibhsStatistics = new IbhsStatistics();
    ibhsStatistics.setEventDate(new Timestamp(new Date().getTime()));
    ibhsStatistics.setEventType("Login");
    ibhsStatistics.setUserid(SecurityShell.getUserId());
    ManageIbhsStatistics manageIbhsStatistics = new ManageIbhsStatistics();
    try {
    manageIbhsStatistics.saveIbhsStatistics(ibhsStatistics);
    } catch (NamingException e) {
    } catch (NotSupportedException e) {
    } catch (SystemException e) {
    } catch (RollbackException e) {
    } catch (HeuristicMixedException e) {
    } catch (HeuristicRollbackException e) {
    chain.doFilter(request, response);

Maybe you are looking for

  • How to determine the Host a VM runs on, if VM is 2012

    Morning all HyperV host on Win2012 (standard, not R2), guest is the same. Time was, you could query HKLM\SOFTWARE\Microsoft\Virtual Machine\Guest\Parameters\PhysicalHostName on a VM to find out the name of the host it was running on, and this is hand

  • HOWTO -- Install BC4J in OC4J 9.0.3

    I have JDdev 903 and OC4J 903. I want to install BC4J in OC4J 903. I can find NO documentation on doing this for OC4J 903, only 902. I assume it is because OC4J 903 is still preview, but come on! The scripts to do this under JDev 902 do not exist in

  • Issues restoring emails

    Hi, I have just brought a new MacBook Pro. I thought my email provider was storing emails, but they are not. I am not using Time Machine to restore my entire system from the old macbook as when I did this, it caused problems. Apparently some programs

  • MacBook Pro 2009 problems after latest update. Anyone else got the same issues?

    Hey community:) A couple of nights ago I decided to update my MacBook Pro to the latest version/update. It all went fine, I installed them, rebooted it and logged into my account as usual. Then it all started, my finder/spotlight slowed down by atlea

  • Android and pix 501

    Has anyone successfully configured a Pix 501 to communicate to a LG Pheonix (I'm assuming android OS) via a L2TP/IPSEC vpn?