Help me to run this filter...please

Hi guys,
i'm a problem and i don't find a solution from 10 days....please help me.
I have to give access security to my jsf application because each page shows private information. I have a login page and a visit bean that store the session's information,like current user and current locale.
I've developed a filter that when a page is loaded try to retrieve user from Visit Object,if it's not found go to login page.
What's my problem?
When i try to open from my browser a page different from Login my application shows me the page,without addressing me to Login Page.
When i go to
http://localhost:8080/MicroArray/pages/protected/Menu.jsf
i see the page Menu while i want LOGIN!
Can you help me?
I post you the important code.
This is the important code of mu AuthenticationBean
User newUser=new User(loginName,password,teamName,tipo);
Visit visit = new Visit();
visit.setUser(newUser);
visit.setAuthenticationBean(this);
setVisit(visit);
FacesContext facesContext = getFacesContext();
getApplication().createValueBinding("#{sessionScope.visit}").setValue(facesContext, visit);this is my Visit Object
package giu;
import javax.faces.context.FacesContext;
import java.util.Locale;
import javax.faces.model.SelectItem;
import javax.faces.application.Application;
import java.util.*;
import java.io.Serializable;
public class Visit implements Serializable
private static final long serialVersionUID = 1L;
private User user;
private AuthenticationBean authenticationBean;
public Visit()
public User getUser()
return user;
public void setUser(User user)
this.user = user;
public AuthenticationBean getAuthenticationBean()
return authenticationBean;
public void setAuthenticationBean(AuthenticationBean authenticationBean)
this.authenticationBean = authenticationBean;
}and this is my filter
package giu;
import java.io.IOException;
import javax.servlet.*;
import javax.servlet.http.*;
public class AuthorizationFilter implements Filter
FilterConfig config = null;
ServletContext servletContext = null;
public AuthorizationFilter()
public void init(FilterConfig filterConfig) throws ServletException
config = filterConfig;
servletContext = config.getServletContext();
public void doFilter(ServletRequest request, ServletResponse response,
                    FilterChain chain) throws IOException, ServletException
Utils.log(servletContext, "Inside the filter");
HttpServletRequest httpRequest = (HttpServletRequest)request;
HttpServletResponse httpResponse = (HttpServletResponse)response;
HttpSession session = httpRequest.getSession();
String requestPath = httpRequest.getPathInfo();
Visit visit = (Visit)session.getAttribute("visit");
if (visit == null)
   session.setAttribute("originalTreeId", httpRequest.getPathInfo());
   Utils.log(servletContext, "redirecting to " + httpRequest.getContextPath() +
             "/faces/index.jsp");
   httpResponse.sendRedirect(httpRequest.getContextPath() +
             "/faces/index.jsp");
else
   session.removeAttribute("originalTreeId");
   String role = visit.getUser().getRole();
   if ((role.equals("utente") &&  requestPath.indexOf("protected") > 0))
     String text = Utils.getDisplayString("ptrackResources",
                                          "PathNotFound",
                                          new Object[] { requestPath },
                                          request.getLocale());
     httpResponse.sendError(HttpServletResponse.SC_NOT_FOUND,
                            text);
   else*/
     chain.doFilter(request, response);
Utils.log(servletContext, "Exiting the filter");
public void destroy()
}index.jsp addresses to /pages/protected/Login.jsf...
with its declaration in web.xml
<filter>
<filter-name>AuthorizationFilter</filter-name>
<filter-class>giu.AuthorizationFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>AuthorizationFilter</filter-name>
<url-pattern>/faces/*</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>AuthorizationFilter</filter-name>
<url-pattern>*.jsf</url-pattern>
</filter-mapping>Please help me.....

Hi guys,
i'm a problem and i don't find a solution from 10 days....please help me.
I have to give access security to my jsf application because each page shows private information. I have a login page and a visit bean that store the session's information,like current user and current locale.
I've developed a filter that when a page is loaded try to retrieve user from Visit Object,if it's not found go to login page.
What's my problem?
When i try to open from my browser a page different from Login my application shows me the page,without addressing me to Login Page.
When i go to
http://localhost:8080/MicroArray/pages/protected/Menu.jsf
i see the page Menu while i want LOGIN!
Can you help me?
I post you the important code.
This is the important code of mu AuthenticationBean
User newUser=new User(loginName,password,teamName,tipo);
Visit visit = new Visit();
visit.setUser(newUser);
visit.setAuthenticationBean(this);
setVisit(visit);
FacesContext facesContext = getFacesContext();
getApplication().createValueBinding("#{sessionScope.visit}").setValue(facesContext, visit);this is my Visit Object
package giu;
import javax.faces.context.FacesContext;
import java.util.Locale;
import javax.faces.model.SelectItem;
import javax.faces.application.Application;
import java.util.*;
import java.io.Serializable;
public class Visit implements Serializable
private static final long serialVersionUID = 1L;
private User user;
private AuthenticationBean authenticationBean;
public Visit()
public User getUser()
return user;
public void setUser(User user)
this.user = user;
public AuthenticationBean getAuthenticationBean()
return authenticationBean;
public void setAuthenticationBean(AuthenticationBean authenticationBean)
this.authenticationBean = authenticationBean;
}and this is my filter
package giu;
import java.io.IOException;
import javax.servlet.*;
import javax.servlet.http.*;
public class AuthorizationFilter implements Filter
FilterConfig config = null;
ServletContext servletContext = null;
public AuthorizationFilter()
public void init(FilterConfig filterConfig) throws ServletException
config = filterConfig;
servletContext = config.getServletContext();
public void doFilter(ServletRequest request, ServletResponse response,
                    FilterChain chain) throws IOException, ServletException
Utils.log(servletContext, "Inside the filter");
HttpServletRequest httpRequest = (HttpServletRequest)request;
HttpServletResponse httpResponse = (HttpServletResponse)response;
HttpSession session = httpRequest.getSession();
String requestPath = httpRequest.getPathInfo();
Visit visit = (Visit)session.getAttribute("visit");
if (visit == null)
   session.setAttribute("originalTreeId", httpRequest.getPathInfo());
   Utils.log(servletContext, "redirecting to " + httpRequest.getContextPath() +
             "/faces/index.jsp");
   httpResponse.sendRedirect(httpRequest.getContextPath() +
             "/faces/index.jsp");
else
   session.removeAttribute("originalTreeId");
   String role = visit.getUser().getRole();
   if ((role.equals("utente") &&  requestPath.indexOf("protected") > 0))
     String text = Utils.getDisplayString("ptrackResources",
                                          "PathNotFound",
                                          new Object[] { requestPath },
                                          request.getLocale());
     httpResponse.sendError(HttpServletResponse.SC_NOT_FOUND,
                            text);
   else*/
     chain.doFilter(request, response);
Utils.log(servletContext, "Exiting the filter");
public void destroy()
}index.jsp addresses to /pages/protected/Login.jsf...
with its declaration in web.xml
<filter>
<filter-name>AuthorizationFilter</filter-name>
<filter-class>giu.AuthorizationFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>AuthorizationFilter</filter-name>
<url-pattern>/faces/*</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>AuthorizationFilter</filter-name>
<url-pattern>*.jsf</url-pattern>
</filter-mapping>Please help me.....

Similar Messages

  • HT1338 I have a macbook Pro i7 mid november 2010. I am wondering if i can exchange my notebook with the latest one. Can anyone help me out with this query please.

    I have a macbook Pro i7 mid november 2010. I am wondering if i can exchange my notebook with the latest one. Can anyone help me out with this query please.

    You can sell your existing computer using eBay, Craigslist or the venue of your choice. You could then use the proceeds to purchase a new computer.

  • I have the iPhone 4 recently became weak Wi-Fi where I can not use the Internet only when sitting Bejjani router, Can anyone help me in solving this problem please iPhone 4, iOS 7.0.3

    I have the iPhone 4 recently became weak Wi-Fi where I can not use the Internet only when sitting Bejjani router, Can anyone help me in solving this problem please
    iPhone 4, iOS 7.0.3

    There's a whole lot to read in your post, and frankly I have not read it all.
    Having said that, this troubleshooting guide should help:
    http://support.apple.com/kb/TS1538
    In particular, pay attention to the mobile device support sections near the bottom, assuming you have already done the items above it.

  • Please help me to run this CMP BEAN, I need help urgently, I am running out of time :(

    Hi,
    I am facing this problem, Please help me, I am attaching the source files
    also along with the mail. This is a small CMP EJB application, I am using
    IAS SP2 on NT server with Oracle 8. I highly appreciate if someone can send
    me the working copy of the same. I need these urgent. I am porting all my
    beans from bea weblogic to Iplanet. Please help me dudes.
    Err.........
    [06/Sep/2001 13:41:29:7] error: EBFP-marshal_internal: internal exception
    caught
    in kcp skeleton, exception = java.lang.NoSuchMethodError
    [06/Sep/2001 13:41:29:7] error: Exception Stack Trace:
    java.lang.NoSuchMethodError
    at
    com.se.sales.customer.ejb_kcp_skel_CompanyHome.create__com_se_sales_c
    ustomer_Company__java_lang_Integer__indir_wstr__215617959(ejb_kcp_skel_Compa
    nyHo
    me.java:205)
    at com.kivasoft.ebfp.FPRequest.invokenative(Native Method)
    at com.kivasoft.ebfp.FPRequest.invoke(Unknown Source)
    at
    com.se.sales.customer.ejb_kcp_stub_CompanyHome.create(ejb_kcp_stub_Co
    mpanyHome.java:297)
    at
    com.se.sales.customer.ejb_stub_CompanyHome.create(ejb_stub_CompanyHom
    e.java:89)
    at
    com.se.sales.customer.CompanyServlet.doGet(CompanyServlet.java:35)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
    at
    com.netscape.server.servlet.servletrunner.ServletInfo.service(Unknown
    Source)
    at
    com.netscape.server.servlet.servletrunner.ServletRunner.execute(Unkno
    wn Source)
    at com.kivasoft.applogic.AppLogic.execute(Unknown Source)
    at com.kivasoft.applogic.AppLogic.execute(Unknown Source)
    at com.kivasoft.thread.ThreadBasic.run(Native Method)
    at java.lang.Thread.run(Thread.java:479)
    Caught an exception.
    java.rmi.RemoteException: SystemException: exid=UNKNOWN
    at com.kivasoft.eb.EBExceptionUtility.idToSystem(Unknown Source)
    at com.kivasoft.ebfp.FPUtility.replyToException(Unknown Source)
    at
    com.se.sales.customer.ejb_kcp_stub_CompanyHome.create(ejb_kcp_stub_Co
    mpanyHome.java:324)
    at
    com.se.sales.customer.ejb_stub_CompanyHome.create(ejb_stub_CompanyHom
    e.java:89)
    at
    com.se.sales.customer.CompanyServlet.doGet(CompanyServlet.java:35)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
    at
    com.netscape.server.servlet.servletrunner.ServletInfo.service(Unknown
    Source)
    at
    com.netscape.server.servlet.servletrunner.ServletRunner.execute(Unkno
    wn Source)
    at com.kivasoft.applogic.AppLogic.execute(Unknown Source)
    at com.kivasoft.applogic.AppLogic.execute(Unknown Source)
    at com.kivasoft.thread.ThreadBasic.run(Native Method)
    at java.lang.Thread.run(Thread.java:479)
    Thanks in advance
    Shravan
    [Attachment iplanet_app.jar, see below]
    [Attachment iplanet_src.jar, see below]

    One reason that I sometimes get 'NoSuchMethodError' is when I make a change to a
    java class that is imported into another java class. When I go to run the
    importing class, it will throw a 'NoSuchMethodError' on any methods that I've
    changed in the imported class. The solution is to recompile the importing class
    with the changed classes in the classpath.
    shravan wrote:
    Hi,
    I am facing this problem, Please help me, I am attaching the source files
    also along with the mail. This is a small CMP EJB application, I am using
    IAS SP2 on NT server with Oracle 8. I highly appreciate if someone can send
    me the working copy of the same. I need these urgent. I am porting all my
    beans from bea weblogic to Iplanet. Please help me dudes.
    Err.........
    [06/Sep/2001 13:41:29:7] error: EBFP-marshal_internal: internal exception
    caught
    in kcp skeleton, exception = java.lang.NoSuchMethodError
    [06/Sep/2001 13:41:29:7] error: Exception Stack Trace:
    java.lang.NoSuchMethodError
    at
    com.se.sales.customer.ejb_kcp_skel_CompanyHome.create__com_se_sales_c
    ustomer_Company__java_lang_Integer__indir_wstr__215617959(ejb_kcp_skel_Compa
    nyHo
    me.java:205)
    at com.kivasoft.ebfp.FPRequest.invokenative(Native Method)
    at com.kivasoft.ebfp.FPRequest.invoke(Unknown Source)
    at
    com.se.sales.customer.ejb_kcp_stub_CompanyHome.create(ejb_kcp_stub_Co
    mpanyHome.java:297)
    at
    com.se.sales.customer.ejb_stub_CompanyHome.create(ejb_stub_CompanyHom
    e.java:89)
    at
    com.se.sales.customer.CompanyServlet.doGet(CompanyServlet.java:35)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
    at
    com.netscape.server.servlet.servletrunner.ServletInfo.service(Unknown
    Source)
    at
    com.netscape.server.servlet.servletrunner.ServletRunner.execute(Unkno
    wn Source)
    at com.kivasoft.applogic.AppLogic.execute(Unknown Source)
    at com.kivasoft.applogic.AppLogic.execute(Unknown Source)
    at com.kivasoft.thread.ThreadBasic.run(Native Method)
    at java.lang.Thread.run(Thread.java:479)
    Caught an exception.
    java.rmi.RemoteException: SystemException: exid=UNKNOWN
    at com.kivasoft.eb.EBExceptionUtility.idToSystem(Unknown Source)
    at com.kivasoft.ebfp.FPUtility.replyToException(Unknown Source)
    at
    com.se.sales.customer.ejb_kcp_stub_CompanyHome.create(ejb_kcp_stub_Co
    mpanyHome.java:324)
    at
    com.se.sales.customer.ejb_stub_CompanyHome.create(ejb_stub_CompanyHom
    e.java:89)
    at
    com.se.sales.customer.CompanyServlet.doGet(CompanyServlet.java:35)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
    at
    com.netscape.server.servlet.servletrunner.ServletInfo.service(Unknown
    Source)
    at
    com.netscape.server.servlet.servletrunner.ServletRunner.execute(Unkno
    wn Source)
    at com.kivasoft.applogic.AppLogic.execute(Unknown Source)
    at com.kivasoft.applogic.AppLogic.execute(Unknown Source)
    at com.kivasoft.thread.ThreadBasic.run(Native Method)
    at java.lang.Thread.run(Thread.java:479)
    Thanks in advance
    Shravan
    Name: iplanet_app.jar
    iplanet_app.jar Type: Java Archive (application/java-archive)
    Encoding: x-uuencode
    Name: iplanet_src.jar
    iplanet_src.jar Type: Java Archive (application/java-archive)
    Encoding: x-uuencode

  • Help Me To Fix This Loading Please

    Dear All Users
    I really need your help on this, I have a loader in my edge animate that i picked up from http://www.gayadesign.com/diy/queryloader-preload-your-website-in-styl e/
    and this is the Only loader that works very well on Edge and Load anything Completely, loader had some bugs so i google it and find fixes for, and now i have this loader without any bug except One bug that loader has with Maxthon, IE, Chrome and Safari browsers, i'm going Crazy right Now and dont know what to do with this Bug, The bug is only at last seconds of loading, after load complete a symbol that created in the loading Script wont remove !!
    if you try this on any edge Project you will see after loading is complete you just see a 0% in a black screen but if you zoom out your Browser you will see your project is there...
    and the point is this is happen only with Maxthon, IE, Chrome and Safari, and works very well with FireFox ... !!!
    i really need this loading, Here is the Final Script and CSS file that Loader Needs :
    CSS File Link : http://www.mediafire.com/?kb11s474aipt39w
    Script :
    var QueryLoader = {
            overlay: "",
            loadBar: "",
            preloader: "",
            items: new Array(),
            doneStatus: 0,
            doneNow: 0,
            selectorPreload: "body",
            ieLoadFixTime: 2000,
            ieTimeout: "",
            init: function() {
                    if (navigator.userAgent.match(/MSIE (\d+(?:\.\d+)+(?:b\d*)?)/) == "MSIE 6.0,6.0") {
                            //break if IE6                
                            return false;
                    if (QueryLoader.selectorPreload == "body") {
                            QueryLoader.spawnLoader();
                            QueryLoader.getImages(QueryLoader.selectorPreload);
                            QueryLoader.createPreloading();
                    } else {
                            $(document).ready(function() {
                                    QueryLoader.spawnLoader();
                                    QueryLoader.getImages(QueryLoader.selectorPreload);
                                    QueryLoader.createPreloading();
                    //help IE drown if it is trying to die
                    QueryLoader.ieTimeout = setTimeout("QueryLoader.ieLoadFix()", QueryLoader.ieLoadFixTime);
            ieLoadFix: function() {
                    if(jQuery.browser.msie){
                            if ((100 / QueryLoader.doneStatus) * QueryLoader.doneNow < 100) {
                                    QueryLoader.imgCallback();
                                    QueryLoader.ieTimeout = setTimeout("QueryLoader.ieLoadFix()", QueryLoader.ieLoadFixTime);
            imgCallback: function() {
                    QueryLoader.doneNow ++;
                    QueryLoader.animateLoader();
            getImages: function(selector) {
                    var everything = $(selector).find("*:not(script)").each(function() {
                            var url = "";
                            if ($(this).css("background-image") != "none") {
                                    var url = $(this).css("background-image");
                            } else if (typeof($(this).attr("src")) != "undefined" && $(this).prop("tagName").toLowerCase() == "img") {
                                    var url = $(this).attr("src");
                            url = url.replace("url(\"", "");
                            url = url.replace("url(", "");
                            url = url.replace("\")", "");
                            url = url.replace(")", "");
                            if (url.length > 0) {
                                    QueryLoader.items.push(url);
            createPreloading: function() {
                    QueryLoader.preloader = $("<div></div>").appendTo(QueryLoader.selectorPreload);
                    $(QueryLoader.preloader).css({
                            height:         "0px",
                            width:          "0px",
                            overflow:       "hidden"
                    var length = QueryLoader.items.length;
                    QueryLoader.doneStatus = length;
                    for (var i = 0; i < length; i++) {
                            var imgLoad = $("<img></img>");
                            $(imgLoad).attr("src", QueryLoader.items[i]);
                            $(imgLoad).unbind("load");
                            $(imgLoad).one('load', function() {             //IE Cache Fix  
                              QueryLoader.imgCallback();
                            }).each(function() {
                              if(this.complete) $(this).load();
                            $(imgLoad).appendTo($(QueryLoader.preloader));
            spawnLoader: function() {
                    if (QueryLoader.selectorPreload == "body") {
                            var height = $(window).height();
                            var width = $(window).width();
                            var position = "fixed";
                    } else {
                            var height = $(QueryLoader.selectorPreload).outerHeight();
                            var width = $(QueryLoader.selectorPreload).outerWidth();
                            var position = "absolute";
                    var left = $(QueryLoader.selectorPreload).offset()['left'];
                    var top = $(QueryLoader.selectorPreload).offset()['top'];
                    QueryLoader.overlay = $("<div></div>").appendTo($(QueryLoader.selectorPreload));
                    $(QueryLoader.overlay).addClass("QOverlay");
                    $(QueryLoader.overlay).css({
                            position: position,
                            top: top,
                            left: left,
                            width: width + "px",
                            height: height + "px"
                    QueryLoader.loadBar = $("<div></div>").appendTo($(QueryLoader.overlay));
                    $(QueryLoader.loadBar).addClass("QLoader");
                    $(QueryLoader.loadBar).css({
                            position: "relative",
                            top: "50%",
                            width: "0%"
                    QueryLoader.loadAmt = $("<div>0%</div>").appendTo($(QueryLoader.overlay));
                    $(QueryLoader.loadAmt).addClass("QAmt");
                    $(QueryLoader.loadAmt).css({
                            position: "relative",
                            top: "50%",
                            left: "50%"
            animateLoader: function() {
                    var perc = (100 / QueryLoader.doneStatus) * QueryLoader.doneNow;
                    if (perc > 99) {
                            $(QueryLoader.loadAmt).html("100%");
                            $(QueryLoader.loadBar).stop().animate({
                                    width: perc + "%"
                            }, 500, "linear", function() {
                                    QueryLoader.doneLoad();
                    } else {
                            $(QueryLoader.loadBar).stop().animate({
                                    width: perc + "%"
                            }, 500, "linear", function() { });
                            $(QueryLoader.loadAmt).html(Math.floor(perc)+"%");
            doneLoad: function() {
                    //prevent IE from calling the fix
                    clearTimeout(QueryLoader.ieTimeout);
                    //determine the height of the preloader for the effect
                    if (QueryLoader.selectorPreload == "body") {
                            var height = $(window).height();
                    } else {
                            var height = $(QueryLoader.selectorPreload).outerHeight();
                    //The end animation, adjust to your likings
                    $(QueryLoader.loadAmt).hide();
                    $(QueryLoader.loadBar).animate({
                            height: height + "px",
                            top: 0
                    }, 500, "linear", function() {
                            $(QueryLoader.overlay).fadeOut(800);
                            $(QueryLoader.preloader).remove();
    yepnope({nope:[
                                                      'queryLoader.css',
                                                      ],complete: initialize});
    function initialize (){
                                                      QueryLoader.init();
    Note : when  you are in the Edge and hit ctrl+enter the project loads very well in IE, Chrome, and Safari without any problems !!  but when save and run HTML file the problem would appear !!
    but if you run that HTML file in Firefox everything works like a charm...
    i really don't know what can i do, i used all of my knowledge that i had in java Programming but no luck :'(
    Please Help Me...
    Note : you have to use this code inside of Preloader > Loading
    & place CSS file in the main folder of your Edge Project
    Zaxist

    Hello Zaxist,
    I must say this script is driving me nuts since the beginning.
    How hard can it be for a (simple) percentage preloader to use on our (Edge Animate) website?
    It was all so easy in Flash. A different story now.
    I can see when pasting the code below (or yours) in the Preloader "loading" event, the code gets triggered 3 times.
    So it seems it works (in Chrome) but 2 of the 3 loading overlays (+loadbar and text) won't remove like it should.
    I don't have a solution for this either, but maybe someone with much more javascript experience can help us out with this one?
    The nicest thing would be if the Adobe Edge Animate team provide us something simple we can put in the Preloader "loading" event like:
    sym.$("ldr_txt").html(e.loaded+"%");
    or maybe the use of (e.bytesloaded) and (e.bytestotal)?
    Wouldn't that be great? Maybe they are working on this?
    I really hope we finally can get a proper solution for this.
    An animated gif (as we have now) is simply not enough.
    Kind Regards,
    Lester.
    The below code is almost the same of yours, without the CSS.
    var QueryLoader = {
              overlay: "",
              loadBar: "",
              preloader: "",
              items: new Array(),
              doneStatus: 0,
              doneNow: 0,
              selectorPreload: "body",
              ieLoadFixTime: 10,
              ieTimeout: "",
              init: function() {
                                   if (navigator.userAgent.match(/MSIE (\d+(?:\.\d+)+(?:b\d*)?)/) == "MSIE 6.0,6.0") {
                                                                //break if IE6                
                                                                return false;
                                   QueryLoader.spawnLoader();
                                   QueryLoader.getImages(QueryLoader.selectorPreload);
                                   QueryLoader.createPreloading();
                                   //help IE drown if it is trying to die
                                   QueryLoader.ieTimeout = setTimeout("QueryLoader.ieLoadFix()", QueryLoader.ieLoadFixTime);
                                   console.log("INIT")
              ieLoadFix: function() {
                                   if(jQuery.browser.msie){
                                                                if ((100 / QueryLoader.doneStatus) * QueryLoader.doneNow < 100) {
                                                                                      QueryLoader.imgCallback();
                                                                                      QueryLoader.ieTimeout = setTimeout("QueryLoader.ieLoadFix()", QueryLoader.ieLoadFixTime);
              imgCallback: function() {
                                   QueryLoader.doneNow ++;
                                   QueryLoader.animateLoader();
              getImages: function(selector) {
                                   var everything = $(selector).find("*:not(script)").each(function() {
                                                                var url = "";
                                                                if ($(this).css("background-image") != "none") {
                                                                                      var url = $(this).css("background-image");
                                                                } else if (typeof($(this).attr("src")) != "undefined" && $(this).prop("tagName").toLowerCase() == "img") {
                                                                                      var url = $(this).attr("src");
                                                                url = url.replace("url(\"", "");
                                                                url = url.replace("url(", "");
                                                                url = url.replace("\")", "");
                                                                url = url.replace(")", "");
                                                                if (url.length > 0) {
                                                                                      QueryLoader.items.push(url);
              createPreloading: function() {
                                   QueryLoader.preloader = $("<div></div>").appendTo(QueryLoader.selectorPreload);
                                   $(QueryLoader.preloader).css({
                                                                height:         "0px",
                                                                width:          "0px",
                                                                overflow:       "hidden"
                                   var length = QueryLoader.items.length;
                                   QueryLoader.doneStatus = length;
                                   for (var i = 0; i < length; i++) {
                                            (function(i) {
                                                                var imgLoad = $("<img></img>");
                                                                $(imgLoad).attr("src", QueryLoader.items[i]);
                                                                $(imgLoad).unbind("load");
                                                                $(imgLoad).one('load', function() {             //IE Cache Fix  
                                                                  QueryLoader.imgCallback();
                                                                }).each(function() {
                                                                  if(this.complete) $(this).load();
                                                                $(imgLoad).appendTo($(QueryLoader.preloader));
                                                                  })(i);
              spawnLoader: function() {
                                   var height = $(window).height();
                                   var width = $(window).width();
                                   var position = "fixed";
                                   var left = $(QueryLoader.selectorPreload).offset()['left'];
                                   var top = $(QueryLoader.selectorPreload).offset()['top'];
                                   QueryLoader.overlay = $("<div></div>").appendTo($(QueryLoader.selectorPreload));
                                   $(QueryLoader.overlay).css({
                                                                "background-color":"#000",
                                                                "z-index":"9999",
                                                                position: position,
                                                                top: top,
                                                                left: left,
                                                                width: width + "px",
                                                                height: height + "px"
                                   QueryLoader.loadBar = $("<div></div>").appendTo($(QueryLoader.overlay));
                                   $(QueryLoader.loadBar).css({
                                                                "background-color":"#ccc",
                                                                height:"6px",
                                                                position: "relative",
                                                                top: "50%",
                                                                left: "0%",
                                                                width: "0%"
                                   QueryLoader.loadAmt = $("<div>0%</div>").appendTo($(QueryLoader.overlay));
                                   $(QueryLoader.loadAmt).css({
                                            color:"#666",
                                            "font-family":"'Trebuchet MS',Arial,Helvetica,sans-serif",
                                            "font-size":"24px",
                                            "font-weight":"700",
                                            "line-height":"50px",
                                            height:"50px",
                                            width:"100px",
                                            margin:"-60px 0 0 -50px",
                                                                position: "relative",
                                                                top: "50%",
                                                                left: "52%"
                                   //console.log("SPAWNLOADER")
              animateLoader: function() {
                                   var perc = (100 / QueryLoader.doneStatus) * QueryLoader.doneNow;
                                   if (perc > 99) {
                                                                $(QueryLoader.loadAmt).html("100%");
                                                                $(QueryLoader.loadBar).stop().animate({
                                                                                      width: perc + "%"
                                                                }, 500, "linear", function() {
                                                                                      QueryLoader.doneLoad();
                                   } else {
                                                                $(QueryLoader.loadBar).stop().animate({
                                                                                      width: perc + "%"
                                                                }, 500, "linear", function() { });
                                                                $(QueryLoader.loadAmt).html(Math.floor(perc)+"%");
              doneLoad: function() {
                                   //prevent IE from calling the fix
                                   clearTimeout(QueryLoader.ieTimeout);
                                   var height = $(window).height();
                                  //The end animation, adjust to your likings
                                   $(QueryLoader.loadAmt).hide();
                                   $(QueryLoader.loadBar).animate({
                                                                //height: height + "px",
                                                                //top: "0%"
                                   }, 500, "linear", function() {
                                                                $(QueryLoader.overlay).fadeOut(800);
                                                                $(QueryLoader.preloader).remove();
                                                                console.log("LOADED")                                         
    QueryLoader.init();

  • Help me to run this simple RMI example

    When i m running this example in standalone pc it works but while running on to different pc it gives error though I m giving the IP address from client of server.. If anyone can help me out plz help.
    Code:
    ReceiveMessageInterface
    import java.rmi.*;
    public interface ReceiveMessageInterface extends Remote
    void receiveMessage(String x) throws RemoteException;
    Server code:
    import java.rmi.*;
    import java.rmi.registry.*;
    import java.rmi.server.*;
    import java.net.*;
    public class RmiServer extends java.rmi.server.UnicastRemoteObject
    implements ReceiveMessageInterface
    int thisPort;
    String thisAddress;
    Registry registry; // rmi registry for lookup the remote objects.
    // This method is called from the remote client by the RMI.
    // This is the implementation of the �ReceiveMessageInterface�.
    public void receiveMessage(String x) throws RemoteException
    System.out.println(x);
    public RmiServer() throws RemoteException
    try{
    // get the address of this host.
    thisAddress= (InetAddress.getLocalHost()).toString();
    catch(Exception e){
    throw new RemoteException("can't get inet address.");
    thisPort=3232; // this port(registry�s port)
    System.out.println("this address="+thisAddress+",port="+thisPort);
    try{
    // create the registry and bind the name and object.
    registry = LocateRegistry.createRegistry( thisPort );
    registry.rebind("rmiServer", this);
    catch(RemoteException e){
    throw e;
    static public void main(String args[])
    try{
    RmiServer s=new RmiServer();
    catch (Exception e) {
    e.printStackTrace();
    System.exit(1);
    Client code:
    import java.rmi.*;
    import java.rmi.registry.*;
    import java.net.*;
    public class RmiClient
    static public void main(String args[])
    ReceiveMessageInterface rmiServer;
    Registry registry;
    String serverAddress=args[0];
    String serverPort=args[1];
    String text=args[2];
    System.out.println("sending "+text+" to "+serverAddress+":"+serverPort);
    try{
    // get the �registry�
    registry=LocateRegistry.getRegistry(
    serverAddress,
    (new Integer(serverPort)).intValue()
    // look up the remote object
    rmiServer=
    (ReceiveMessageInterface)(registry.lookup("rmiServer"));
    // call the remote method
    rmiServer.receiveMessage(text);
    catch(RemoteException e){
    e.printStackTrace();
    catch(NotBoundException e){
    e.printStackTrace();
    }

    When we compile with rmic skeleton and stub get created then we hav to place stub at each client ???Your remote client applcation need only _Stub.class fiels.
    Is there way by which we can know how many clients are connected to the
    server and there IP address, can anyone give the code... I guess that you should use a RMI login/logout method to register/unregister your client connection information into a databse or a simple static Hashtable(Vector) object.

  • Need Help with setting up this Filter

    Hi,
    I need help making a filter sound like the one used in this youtube song.
    I tried setting it up but I've had no success; even though I know for a fact that this filter was made in Logic Pro 9 according to the maker of this song.
    I think there might be a bit of 'Fuzz-Wah' in there too but I've never really used that effect so any tips on that would be great, too.
    Link: http://www.youtube.com/watch?v=tf017M8SZZE&feature=plcp
    Any help with this would be widely appreciated.
    Thank you :-)

    It sounds like a simple hi Q filter sweep to me but getting close to the original synth sound that it is being used on is the challenge. It might well be that it is the filter on the synth itself is what is being swept. Either way, turn up the filter resonance on a band pass filter and sweep it with the lfo or adsr to modulate the filter cutoff if its the synth filter, or automate the filter frequency  sweep if you use the channel filter.

  • Apple Remote Desktop can't possibly run this slow - please help!

    Running ARD 3.2 on MacBook Pro 2.4ghz w/ 4GB RAM, trying to access a iMac 2.1ghz w/ 2.5GB RAM via internet connection (DSL speeds). The iMac has ARD 3.2.1.
    I have made a flat-color desktop on the iMac, closed out all non-essential programs freeing up RAM on both machines, closed all windows on both machines, matched the screens to Millions of Colors on both machines - and when I connect from the MacBook Pro, it may take 30-40 seconds for the screen to draw, and even longer to open up a folder located on the desktop. Copying small files (500k) takes so long, I gave up after 10 minutes.
    ARD can't possible operate this slow, so I am assuming I am missing something here. Any insight would be appreciated!

    Hi
    Typically upstream and downstream speeds for broadband connections disparate. For instance Downstream speeds can sometimes reach 7-8mbps or more. Upstream on the other hand is probably no more than a tenth of that.
    How you connect will also have a bearing. Using a wired connection to the local network is going to be better than a wireless one generally speaking.
    Unless you have the finances to pay for an SDS Service or a service that offers 1:1 ratio this won't change and you have to put up with it. I reguarly connect remotely and see this most of the time. I select a graphic level that is as low as possible but still allows me to see what is going on. Even then it can be slow.
    Tony

  • Need help - how to run this particular method in the main method?

    Hi all,
    I have a problem with methods that involves objects such as:
    public static Animal get(String choice) { ... } How do we return the "Animal" type object? I understand codes that return an int or a String but when it comes to objects, I'm totally lost.
    For example this code:
    import java.util.Scanner;
    interface Animal {
        void soundOff();
    class Elephant implements Animal {
        public void soundOff() {
            System.out.println("Trumpet");
    class Lion implements Animal {
        public void soundOff() {
            System.out.println("Roar");
    class TestAnimal {
        public static void main(String[] args) {
            TestAnimal ta = new TestAnimal();
            ta.get(); // error
            // doing Animal a = new Animal() is horrible... :(                   
        public static Animal get(String choice) {
            Scanner myScanner = new Scanner(System.in);
            choice = myScanner.nextLine();
            if (choice.equalsIgnoreCase("meat eater")) {
                return new Lion();
            } else {
                return new Elephant();
    }Out of desperation, I tried "Animal a = new Animal() ", and it was disastrous because an interface cannot be instantiated. :-S And I have no idea what else to put in my main method to get the code running. Need some help please.
    Thank you.

    Hi paulcw,
    Thank you. I've modified my code but it still doesn't print "roar" or "trumpet". When it returns a Lion or an Elephant, wouldn't the soundOff() method get printed too?
    refactored:
    import java.util.Scanner;
    interface Animal {
        void soundOff();
    class Elephant implements Animal {
        public void soundOff() {
            System.out.println("Trumpet");
    class Lion implements Animal {
        public void soundOff() {
            System.out.println("Roar");
    class TestAnimal {
        public static void main(String[] args) {
            Animal a = get();
        public static Animal get() {
            Scanner myScanner = new Scanner(System.in);
            System.out.println("Meat eater or not?");
            String choice = myScanner.nextLine();
            if (choice.equalsIgnoreCase("meat eater")) {
                return new Lion();
            } else {
                return new Elephant();
    }The soundOff() method should override the soundOff(); method in the interface, right? So I'm thinking, it should print either "roar" or "trumpet" but it doesn't. hmm..

  • Help me to apply this sapnote please!

    I've never done it before.
    So we would apply this note e 1025910 - HR-IT:
    Our system is SAP R/3 Enterprise with  SAP_HR 470 0058
    I undesterdtand the i have to download 470_132315_SYST.CAR and ALL_222454_CUST.CAR.
    But then, what i have to do?
    The note explain also that some table must be customized
    Pls can you help me in this procedure?

    Hello Sleep,
    The OSS notes indeed are tricky.
    Prerequisite notes for 1025910:
    ***989847 - HR-IT: Finanziaria 2007
    Prerequisite notes for 989847
    ***964635
    ***1015793
    So ideal note sequence must be:
    #1 Apply note 964635
    #2 Apply note 1015793
    #3 Apply note 989847
    #4 Apply note 1025910
    *Notes are usually linked to support packages, check if the linked support package is applied. (Check if the correction instructions mentioned in the note have already been applied by the suport package)
    *Please plan your steps before you execute.
    *Make detail notes of all manual changes made to the system.
    *Check if you have a recent successfull backup (incase of emergency)
    *Export the data from tables before you make any changes (incase you need to revert back).
    Regards,
    Ammey Kesarkar
    <i>'All the best'</i>

  • I need someone to help me out of this hole please for the love of God!

    About a month ago water was spilled onto my MacBook Pro 2.4GHz Intel Core Duo. This caused several keys on my keyboard to stick and several other keys to not function and all. To add insult to injury the DVD optical drive now works about one out of every 100 times. To drive the final nail through my brain I have been unable to locate my install disk one.
    The problems stems from this.....at some point my admin password was needing to be input which it was. However not noticing the key sticking problem right away the password was somehow reset to a random number of stuck key inputs and punctuation marks. I now no longer have Admin access to my own computer.
    The situation is getting desperate. Luckily I do not have to input the password on boot up but I can not add any new programs or upgrade any existing programs as I can not modify the applications folder....not being the admin and all.
    I solved the keyboard problem by way of the apple mini bluetooth keyboard and just yesterday I purchased a USB external optical drive. However I have had any luck booting to the install disk (I have since borrowed a friends)
    Last night I got close to resetting the password using target mode and another mac but it was sounding like I wasn't quite getting booted into single user mode as when I imput the standard seried of fsck -y and rm /-uaw and the rm /var/db/.AppleSetupDone I ended up getting a promt that said something to the effect of override -rw-------uw/0 var/db/.applesetupdone? at which point I was being prompted for a yes or no which I input "Y" for yes and then it just returned and said permission denied.
    Now I am back at the attempt again this morning and have another install disk. I can get to the Utilities meny and select any of the tools....."reset password" " or "system profiler" however pretty much every single utility tool I select "Quits unexpectedly" and I am asked to reset and relaunch but I can NOT get them to work.
    I refer to Console and I see some error messages saying cryptic things such as....
    11/24/09 8:37:57 AM [0x0-0x28028].Reset Password[261] Expected in: /usr/lib/libSystem.B.dylib
    11/24/09 8:37:57 AM [0x0-0x28028].Reset Password[261] dyld: Symbol not found: __commpagedsmos
    11/24/09 8:37:57 AM [0x0-0x28028].Reset Password[261] Referenced from: /Volumes/Mac OS X Install Disc 1/Applications/Utilities/Reset Password.app/Contents/MacOS/Reset Password
    11/24/09 8:46:57 AM [0x0-0x38038].System Profiler[320] dyld: lazy symbol binding failed: Symbol not found: __commpagedsmos
    I am really at a loss here and if there is anyone out there that can help me out I would be forever greatful.
    Thank you.

    Wow you guys are completely off base about how I am reacting, sorry....I mean now I'm a little upset because you have no idea how frustrating this is for me, I have said over and over how appreciative I am of everyone who has even replied. In reading and re-reading my last post I think it is pretty clear what my intent was with my comment, unless you practice at being a dick. All I was saying is that as the individual tidbits of information were streaming in, progress was being made but no resolution yet, which makes it appear like this is not going to be some easy fix, if all the advice coming in from people who have thousands and posts and obviously much more experience than I do and when that group is all out of ideas,,,,,,I am in deep doo doo. No I didn't mean it like I thought the entire forum was conspiring against me, just making an observation......sheesh lighten up. Just saying if guys were out of ideas I was probably out of luck, sorry to put quotations around the word "experts"....everyone on this board that has had any kind of an idea to try IS and EXPERT compared to me. I mean sorry pal but compared to how I actually feel and in reading my posts many times now, they are pretty complimentary. But again in re-reading these last two.....don't see a lot of advice in there. Anywhoooo..... I took it to the genius bar.....and VOILA they were able to reset my password.......my standard access password........standard as in now I can log in with a password but that is all I can do now I can't modify pretty much any folder. However I CAN now boot into single user mode as I was correct my thinking that the master password was preventing me from booting into single user mode....so I get the proper screen now when I boot to disk and I get the correct utility menu pulldown and run the reset password utility from there and now it doesn't keep quitting however when it should show the actual Hard Drive that I am wanting to apply the reset to....it never shows my hard drive OSX it only shows my Install DVD containing OSX. So anyway, sorry if the grinding of the teeth was beginning to leave dust in my posts I'll be careful not to recklessly "compliment" anymore

  • Should correct run this filter sample?

    Hi all,
    i trying to use a filter on an IBM WAS 6.1.0.2 but the result is not what i expect because i think the application server doesn't work correctly. I show the sample and i hope someone can tell me if this sample should run how i expect:
    i have a filter so configured in web.xml:
       <filter>
            <filter-name>extensions</filter-name>
            <filter-class>test</filter-class>
        </filter>
       <filter-mapping>
             <filter-name>extensionsFilter</filter-name>
             <url-pattern>*.js</url-pattern>
       </filter-mapping>The filter serves all javascript files sending a javascript like this:
    function test() {
        alert('THIS IS A TEST');
    }I have this page indexNOK.jsp:
    <html>
    <head>
    <script language="JavaScript" src="not-found.js"></script>
    </head>
    <body>
         <BUTTON onclick="test();"></BUTTON>
    </body>not-found.js does not exists because i want is served by my filter.
    The expected result is a page with a button and when i press the button i expect the alert "'THIS IS A TEST'".
    This test DOES WORK on WAS 6.0.
    WHAT DO YOU THINK?
    Regards
    Mario

    I'm sorry, the "Spell Check" function corrected the code. In web.xml i have:
       <filter>
            <filter-name>extensionsFilter</filter-name>
            <filter-class>test.MyFilter</filter-class>
        </filter>
        <filter-mapping>
             <filter-name>extensionsFilter</filter-name>
             <url-pattern>*.js</url-pattern>
       </filter-mapping>The result is a javascript error because non javascript was served.
    Regards
    Mario

  • Help needed in understanding this question, please.

    Here is the question:
    What is the number displayed when the following program is compiled and run.
    class test {
        public static void main(String args[]) {
            test test1 = new test();
                System.out.println(test1.xyz(100));   
        public int xyz(int num) {
            if(num == 1) return 1;
            else return(xyz(num-1) + num);
    Answer= 5050.
    I'll be honest I am lost as to what happens in this code. Any help in explaining what happens in the code would be gratefully received, thanks, Dave.

    public int xyz(int num) {
    if(num == 1) return 1;
    else return(xyz(num-1) + num);
    it's called recursion, the method calls itself
    xyz(100) returns
    xyz(99)+100 which returns
    xyz(98)+99 which returns
    xyz(97)+98 which returns
    xyz(99)+100 which returns
    until you get to xyz(1) which returns 1
    so starting from the end of the recursion you get
    (for num = 2): 1+2
    (for num = 3): 3+3
    (for num = 4): 6+4
    (for num = 5): 10+5
    (for num = 100): 4950+100

  • Help me to run pkg via procedure

    i have a package :  
    create or replace
    PACKAGE SUBS_INS_API_SS
    IS
    PROCEDURE SUBSCRIBER_INS_SS
        (SOURCE_SYS_ID IN VARCHAR2,
        TRACKING_ID   IN VARCHAR2,
        ACCOUNT_NO IN VARCHAR2,
        prepaidActDevDetails_tab IN prepaidActDeviceDetails_tabobj,
        ERROR_CODE OUT VARCHAR2);
    END SUBS_INS_API_SS;
    pprepaidActDevDetails_tab  is a plsql table and  prepaidActDeviceDetails_tabobj is an object it contains few variable's check below procedure.
    If i run the above package by giving input's via the below procedure. Then i got an error:
    Error(35,7): PLS-00306: wrong number or types of arguments in call to 'SUBSCRIBER_INS_SS'
    create or replace
    PROCEDURE SAMPLE_EXC
    IS
    ERRORCOD VARCHAR2 (30):= NULL ;
    SOURCE_SYS_ID1 VARCHAR2 (30):= '5698745';
    TRACKING_ID1   VARCHAR2 (30):= '5874125';
    ACCOUNT_NO1    VARCHAR2 (30):= NULL;
    prepaidAccountDetails1         prepaid_act_dvc_details_obj
                                           := prepaid_act_dvc_details_obj  ('CM00000006184',  '00:1C:15:15:15:42', NULL,  'HSD',  NULL, '1',  NULL,  '12',  NULL, NULL);
    BEGIN
          SUBS_INS_API_SS.SUBSCRIBER_INS_SS(SOURCE_SYS_ID1, TRACKING_ID1, ACCOUNT_NO1, prepaidAccountDetails1, ERRORCOD);
           DBMS_OUTPUT.PUT_LINE( ERRORCOD);                                 
    END;
    please help me to run this package via the procedure.

    Moderator Action:
    Stay with your original "how do I run a package" thread from the previous day:
    https://community.oracle.com/thread/2615939
    You already have responses there.
    Keep all information there instead of fragmenting it among separate posts.
    This new thread is locked.

  • Cannot run this script in matlab

    Hello..
    Can anyone help me in running this script in matlab. It is a code in matlab for finding a R transformation. 
     "letzt_size reduced_2.jpg" is the inlut image we gives. Any image can be used. I tried to put this code in a Mathscript functionnode. Butit is not working. Otherwise this code works in Matlab.
    D = imread('letzt_size reduced_2.jpg');
    imagesc(D)
    imshow(D)
    [R,xp] = radon(D,[0 45]);
    figure; plot(xp,R(:,1)); title('R_{0^o} (x\prime)')
    theta = 0:360;
    [R,xp] = radon(D,theta);
    imagesc(theta,xp,R);
    title('R_{\theta} (X\prime)');
    xlabel('\theta (degrees)');
    ylabel('X\prime');
    set(gca,'XTick',0:20:180);
    colormap(hot);
    colorbar
    save radon R xp -ascii -double -tabs
    Nghtcwrlr
    ********************Kudos are alwayzz Welcome !! ******************

    Hi Nghtcrwir,
    the reason is LabVIEW doesnt have "imread" function in  Mathscript function node.
    You can use LabVIEW help to check which matlab programs are supported by Mathscript function node.
    All the Best!
    Ritesh

Maybe you are looking for