Logout works fine on Local Machine but not on Server

I have the following code in my backing bean:
      ExternalContext external =
        FacesContext.getCurrentInstance().getExternalContext();
      HttpSession session = (HttpSession) external.getSession(false);
      session.invalidate();
     // redirect using response because logout is a HTML page
      HttpServletResponse response =
        (HttpServletResponse) external.getResponse();
      response.sendRedirect("../logout.html");The problem is that this works fine on my local machine http://localhost:8888/my-context-root
but on the Server clicking on the Logout link gives Page cannot be displayed.
The protocol is https://ip-address:port/my-context-root and on the local machine it's http
Is it the https thats causing the problem ?
I also tried using:
external.redirect("../logout.html"); but this also didn't help.

The URL for Login is
https://ip address:port/my-context-root/restricted/home.facesWhen the logout link is clicked the same URL is rendered.
Backing bean is
public class HomeBackingBean
  public String logout()
    try
      ExternalContext external =
        FacesContext.getCurrentInstance().getExternalContext();
      HttpSession session = (HttpSession) external.getSession(false);
      session.invalidate();
      //FacesContext.getCurrentInstance().responseComplete(); 
      Utility.logDebug("Session invalidated, trying to redirect to logout.html");
      // redirect using response because logout is a HTML page
      HttpServletResponse response =
        (HttpServletResponse) external.getResponse();
     response.sendRedirect("../logout.html");
    catch (IOException ioEx)
      Utility.logDebug("Failed to logout due to IOException");
    return null;
}The exit.jsp is :
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://myfaces.apache.org/trinidad" prefix="tr"%>
<h:form>
    <tr:commandLink styleClass="logout" text="Logout"
                    action="#{homeBean.logout}"/>
</h:form>The server log says:
07/31 23:42:19 DEBUG [com.eds.send.common.Utility] Session invalidated, trying to redirect to logout.html
07/31 23:42:19 DEBUG [com.sun.faces.application.NavigationHandlerImpl] No navigation rule found for outcome nulland viewId /r
estricted/home.faces Explicitly remain on the current view
07/31 23:42:19 DEBUG [com.sun.faces.lifecycle.InvokeApplicationPhase] Exiting InvokeApplicationsPhase
07/31 23:42:19 DEBUG [com.sun.faces.el.ValueBindingImpl] getValue(ref=restricted$home)
07/31 23:42:19 DEBUG [com.sun.faces.application.ApplicationImpl] Couldn't find a factory for restricted$home
07/31 23:42:19 DEBUG [com.sun.faces.el.VariableResolverImpl] resolveVariable: Resolved variable:null
07/31 23:42:19 DEBUG [com.sun.faces.el.ValueBindingImpl] getValue Result:null
07/31 23:42:19 DEBUG [com.sun.faces.el.ValueBindingImpl] getValue(ref=restricted$home)

Similar Messages

  • JDBC/JSP/MySQL Code works from my local machine, but not on server

    Hi there!
    I've been struggling with this problem for a while.
    I have a database from which I need to read and display some data on a browser. (The database is set up for remote access).
    I'm using the following JSP/JDBC code to do that.
    Class.forName ("com.mysql.jdbc.Driver").newInstance();
    out.println("<BR> Connecting to DB...Pls. Wait <BR>");
    Connection con = DriverManager.getConnection("url","user","pwd");
    if(con.isClosed())
    out.println("<BR><BR><BR>" +"Could NOT connect to MySQL Database...");
    else out.println("<BR> CONNECTED !!! <BR>");
    Statement stmt = con.createStatement();
    results = stmt.executeQuery("SELECT * FROM TableName" );
    When I run this of my local machine, it works fine. But when I upload it to a server, it doesn't run through. I dont get either the connected or not connected message.
    I tried this piece of code that I found online to check the driver.
    /*Driver d = (Driver)Class.forName("com.mysql.jdbc.Driver").newInstance();
    out.println("<BR>Got a driver instance. ");
    if (d.acceptsURL(url)) out.println("<BR>The driver does accept my URL");
    else out.println("<BR>The driver doesn't like the URL I'm trying"); */
    I ran it off the server and it worked. I got the outputs --Got a driver instance and The driver does accept my URL
    I'm unable to figure out why this code can be run locally from my machine, but not from a different location. The database is NOT on my machine.
    Any inouts will be really appreciated.
    I'm using an Apache Tomcat container and the database is MySQL.

    Just wanted to mention
    The database is on another (3rd) machine.
    So I have
    1. My local machine
    2. Database hosted on a 2nd machine
    3. Place I'm moving my code to (its basically a hosting account provided by an external company)
    I can access the database from my local machine. However, when I move the code over to another machine, it doesn't work.

  • Stream works fine on local subnet but not over web

    I am very new to FMS so excuse me if I get terminology messed up.
    I followed Tom Green's tutorials and at this point I can publish a live stream which I can view and interact with just fine on my local LAN.
    The FMS is NAT'ed to the outside world and I have ports 80 & 1935 open to the server.
    When I use a browser from the outside world and put in the servers public address I can see & interact with the FMS start page just fine.  I can use the "interactive" tab and supply my live stream name and view the stream just fine.
    However when I try to launch the Flashplayer that I built all I see is the controls with moving stipes,  No video feed above.  I can browse to the flashplayer HTML file on my local LAN and it works fine.  Interestingly enough I cannot open the flashplayer HTML file directly on the server either (but I can open the start page application and interact with it).
    This seems like a permissions issue to me... any ideas?
    Thanks in advance.
    Brian

    Hi Brian,
    Is it possible for you to send the source for the sample flash movie that you built? That might give me a clue as to what could be going wrong.
    Thanks
    Mamata

  • UIScrollBar works fine on my pc but not on server

    I created a textfield on stage, set it as dynamic, put a UIScrollBar next to it , with component inspector I set scrollTargetName to the instance name of the textfield then I wrote these actions:
    var externalReq:URLRequest = new URLRequest("loremIpsum.txt");
    var externalLoad:URLLoader = new URLLoader();
    externalLoad.load(externalReq);
    externalLoad.addEventListener(Event.COMPLETE, textReady);
    function textReady(event:Event):void {
        theText.text = event.target.data;
    Ot works on my pc just fine.  When I upload the swf and the text file to my godaddy linux hosting account the scroller doesn't work.
    example on server: http://www.jimslounge.com/scrollTest.swf 
    the text you see displayed is only about a quarter of the file, I should be able to scroll through it.

    I phoned godaddy and found out they've disabled UIScrollBar on their shared hosting accounts.

  • How do I connect to Net Flix? I put in my user name and password which work fine with my iMac but not on my Apple TV?

    How do I connect to Net Flix? I put in my user name and password which work fine with my iMac but not on my Apple TV?

    Can you give me a screenshot of the User Accounts window in Control Panel?
    Please create a screenshot by following the guide mentioned at [[How do I create a screenshot of my problem?]].
    Once you've done this, attach the saved screenshot file to your forum post by clicking the '''Browse...''' button below the ''Post your reply'' box. You really help us to visualize the problem.

  • WHEN I GO TO PRIVACY SETTINGS AND CLICK ON EXCEPTIONS AND TYPE IN A WEB ADDRESS TO ALLOW ALL THE TIME IT DOES NOT SAVE IT THE NEXT TIME I SIGN ON TO FIRE FOX IT IS LOST. IT WORKS FINE ON MY DESKTOP BUT NOT ON MY LAPTOP THAT I JUST BOUGHT in English.

    Question
    WHEN I GO TO PRIVACY SETTINGS AND CLICK ON EXCEPTIONS AND TYPE IN A WEB ADDRESS TO ALLOW ALL THE TIME IT DOES NOT SAVE IT THE NEXT TIME I SIGN ON TO FIRE FOX IT IS LOST. IT WORKS FINE ON MY DESKTOP BUT NOT ON MY LAPTOP THAT I JUST BOUGHT in English.

    I just updated my whatsapp...clicked on whatsapp in appstore and now can access my whatsapp

  • On 2011 iMac, External Altec Lansing speakers no longer work after upgrading to Mountain Lion. They DO work on a lenovo machine but not my imac

    On 2011 iMac, External Altec Lansing speakers no longer work after upgrading to Mountain Lion.
    They DO work on a lenovo machine but not my iMac. reset Pram - no luck. took speakers from wife's desktop, they
    do not work when jack plugged into my iMac - Sys Prefs "SOUND" only lists "internal speakers/ built in" as available options.
    I used my altec lansing speakers on 3 macs including this one for 5-6 years.....now with Mountian Lion I can only get internal speakers???
    Ideas? Any/All help would be greatly appreciated - been going nuts with this for 2 days now.

    Hi,
    When you start Messages fro the first time you are asked for an Apple ID
    When this is verified and entered it appears in Messages Menu > Preference > Accounts and is Enabled.
    The App should have also picked on on those iChat Accounst you had before.
    These should be Enabled if they were when you last used iChat.
    Exactly which "Accounts" are logged in can be seen in Message Menu > Accounts and will include the iMessage "Account" and Bonjour.
    In the Window menu you will see CMD +0 for the Messages window and CMD+1 for the "Buddies" window which is a combined list at this stage.
    Go to the Preferences > General Section and Untick the "Collect all accounts into one list".
    This will give you separate iChat type Buddy lists.
    You can check if that account/Buddy list is set to Invisible or if in the Preferences > Accounts > Security you have settings that will block some people from seeing you as On line.
    You are saying Buddies can see you as On Line which implies they are still sending to your AIM based Names (@Mac.com is a valid AIM Screen Name)
    I am not sure from your post if you are trying to iMessage their email IDs thinking they are Apple IDs and that they are using Messages as well.
    There is no Buddy list for iMessages side
    No-one can tell you are "On Line" until they have your details in the "To" spot in Messages with the correct iMessaged contact info (iPhone Number or Apple ID)
    Obviously an Apple ID can be an email or look like one.
    In some cases they are also valid AIM Screen Names as well.
    In the case or the @mac.com name you may have linked this Apple ID to iMessages as well.
    11:31 PM      Saturday; August 11, 2012
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
      iMac 2.5Ghz 5i 2011 (Lion 10.7.2)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • BDC with call transaction VD02 works fin in A mode but not in N mode

    Hi All,
        I have BDC program developed in 4.6c using call transaction VD02 works fine with mode A but not with mode N.
    Now we upgraded to ECC 6.0.Do I need to change anything?

    No, you don't have to change anything for ECC. BTW, I wonder why VD02 is not working in the background for you?

  • How do I send group emails from my iPad? They work fine from my MacBook but not the iPad.

    How do I send group emails from an iPad? They work fine on my MacBook but not my iPad.

    You need a third party app to do that. Look at Mail Shot or Group Email in the app store. You cannot do it with the built in mail app and the contacts app in iOS 5 without a third party app.

  • JavaMail applet working on local machine - but NOT on my webpage

    Hi.
    My code works on my machine as an applet run through my Eclipse IDE.
    I have the Applet deployed on my website, which is the same server as the email server itself.
    public void postMail(String to, String subject,
                                String message , String from) throws MessagingException
        boolean debug = false;
         //Set the host smtp address
         Properties props = new Properties();
         props.put("mail.smtp.host", "mail.completemusician.net");
         props.put("mail.smtp.port", "2626");
         props.put("mail.smtp.auth", "true");
        Authenticator auth = new SMTPAuthenticator();
        Session session = Session.getDefaultInstance(props, auth);
        session.setDebug(debug);
        // create a message
        Message msg = new MimeMessage(session);
        // set the from and to address
        InternetAddress addressFrom = new InternetAddress(from);
        msg.setFrom(addressFrom);
        InternetAddress addressTo = new InternetAddress(to);
        msg.setRecipient(Message.RecipientType.TO, addressTo);
        // Setting the Subject and Content Type
        msg.setSubject(subject);
        msg.setContent(message, "text/plain");
        Transport.send(msg);
    }1) I know my code works on my local machine - so it's not related to a code bug.
    2) I know that all class files are uploaded correctly and working in a single JAR file. The other 3 classes I use work fine in this applet.
    3) I receive no errors of any kind - it just appears that my constructor may not be called, or the instant java mail API is mentioned, the applet just refuses to work.
    v.setMessage("Attempting to send..");This line never is used in my class constructor - which is troubling.
    public SendMailUsingAuthentication(String from, String to, String subject,
              String text, ValidationDialog vd) {
           v = vd;
           v.setMessage("Attempting to send..");
           boolean succeed = true;
           try {
              postMail(to, subject, text, from);
         } catch (Exception e) {
              // TODO Auto-generated catch block
              v.setMessage("Email delivery has failed. " +
                         "Please check your email address provided and try again." +
                         "\n\n" + e.getMessage());
              e.printStackTrace();
              succeed = false;
         if(succeed)
               v.setMessage("Your request has been submitted successfully.\n\n" +
                         "You may safely navigate away from this page.");
               v.setBlue();
         // TODO Auto-generated constructor stub
    }Feel free to reply - I would appreciate your help. Just keep in mind:
    1) Don't tell me to use javascript. I refuse.
    2) Don't tell me I need a server application. It's supposed to work according to documentation, without it.

    Is your applet signed properly? Note that you have to sign all the jars for the applet -- including the JavaMail jar and the activation jar -- using the same signer.

  • Text Index works fine consistently with Table, but not on underlying View

    Hi,
    We are facing weird issue relating to Oracle Text Indexes. Search using Oracle Text Index
    works fine on a Table, but when running query on View it gives sometimes (not consistently)
    ORA-20000: Oracle Text error:
    DRG-10849: catsearch does not support functional invocation
    DRG-10599: column is not indexed
    Sometimes it works.
    All of the below steps are run using User IR2OWNER:
    STEP 1: Table CPF_CUSTOMER created as follows (3 Non Text Indexes defined at time of creation )
    **Please note no Public Synonym is created for this Table**
    ** There is already another Table by same name CPF_CUSTOMER under different Owner (CDROWNER)
    and that Table has Public Synonym CPF_CUSTOMER created. Other Table CPF_CUSTOMER does not
    have any Views **
    create table CPF_CUSTOMER
    CPF_CUSTOMER_UUID NUMBER(20) not null,
    SAP_ID VARCHAR2(10 CHAR) not null,
    IRIS2_ID VARCHAR2(7 CHAR),
    NAME VARCHAR2(70 CHAR) not null,
    DRAFT_IND NUMBER(1) not null,
    ACTIVE_IND NUMBER(1) not null,
    REPLACED_BY_CUST VARCHAR2(10 CHAR),
    CRE_DT_GMT DATE,
    CRE_DT_LOC DATE,
    TIME_ZONE VARCHAR2(3 CHAR),
    CRE_USR VARCHAR2(8 CHAR),
    CHG_DT_GMT DATE,
    CHG_DT_LOC DATE,
    CHG_TIME_ZONE VARCHAR2(3 CHAR),
    CHG_USR VARCHAR2(8 CHAR),
    VFY_DT_GMT DATE,
    VFY_DT_LOC DATE,
    VFY_USR VARCHAR2(8 CHAR),
    DIVISION VARCHAR2(20 CHAR),
    SALES_ADMIN VARCHAR2(3 CHAR),
    MF_CUST_CDE VARCHAR2(14 CHAR),
    CR_CTRL_OFCE VARCHAR2(3 CHAR),
    DEFAULT_INV_CCY VARCHAR2(3 CHAR),
    AUTOBILL_OVRRD_IND NUMBER(1) not null,
    AUTOBILL NUMBER(1) not null,
    AUTOPRT_OVRRD_IND NUMBER(1) not null,
    AUTOPRT NUMBER(1) not null,
    AVE_PYMT_DAY NUMBER(3),
    TTL_INV_VAL NUMBER(12,2),
    INHERIT_CR_TERM_ASSGMT NUMBER(1) not null,
    NORMALIZED_NME VARCHAR2(70 CHAR),
    OB_PYMT_OFCE VARCHAR2(3 CHAR),
    IB_PYMT_OFCE VARCHAR2(3 CHAR),
    CGO_SMART_ID VARCHAR2(20 CHAR),
    REC_UPD_DT TIMESTAMP(6),
    NCPF_CUST_ID VARCHAR2(7) not null,
    CPF_CUST_LEVEL_UUID NUMBER(20) not null
    tablespace DBCPFP1_LG_DATA LOGGING;
    CREATE UNIQUE INDEX CPF_CUSTOMERI1 ON CPF_CUSTOMER
    (SAP_ID ASC) TABLESPACE DBCPFP1_LG_INDX;
    ALTER TABLE CPF_CUSTOMER
    ADD CONSTRAINT CPF_CUSTOMERI1 UNIQUE (SAP_ID);
    CREATE UNIQUE INDEX CPF_CUSTOMERI2 ON CPF_CUSTOMER
    (CPF_CUSTOMER_UUID ASC) TABLESPACE DBCPFP1_LG_INDX;
    ALTER TABLE CPF_CUSTOMER
    ADD CONSTRAINT CPF_CUSTOMERI2 UNIQUE (CPF_CUSTOMER_UUID);
    CREATE INDEX CPF_CUSTOMER_IDX2 ON CPF_CUSTOMER (UPPER(NAME))
    TABLESPACE DBCPFP1_LG_INDX;
    STEP 2: Create View CPF_CUSTOMER_RVW on above Table (and Public Synonym on View)
    This View is created under same OWNER as Table created in STEP 1 (IR2OWNER)
    create or replace view cpf_customer_rvw as
    select
    CPF_CUSTOMER_UUID,
    SAP_ID,
    IRIS2_ID,
    NAME,
    DRAFT_IND,
    ACTIVE_IND,
    REPLACED_BY_CUST,
    CRE_DT_GMT,
    CRE_DT_LOC,
    TIME_ZONE,
    CRE_USR,
    CHG_DT_GMT,
    CHG_DT_LOC,
    CHG_TIME_ZONE,
    CHG_USR,
    VFY_DT_GMT,
    VFY_DT_LOC,
    VFY_USR,
    DIVISION,
    SALES_ADMIN,
    MF_CUST_CDE,
    CR_CTRL_OFCE,
    DEFAULT_INV_CCY,
    AUTOBILL_OVRRD_IND,
    AUTOBILL,
    AUTOPRT_OVRRD_IND,
    AUTOPRT,
    AVE_PYMT_DAY,
    TTL_INV_VAL,
    INHERIT_CR_TERM_ASSGMT,
    NORMALIZED_NME,
    OB_PYMT_OFCE,
    IB_PYMT_OFCE,
    CGO_SMART_ID,
    NCPF_CUST_ID,
    CPF_CUST_LEVEL_UUID,
    REC_UPD_DT
    from CPF_CUSTOMER;
    CREATE OR REPLACE PUBLIC SYNONYM CPF_CUSTOMER_RVW FOR CPF_CUSTOMER_RVW;
    STEP 3: Insert Test row
    insert into cpf_customer (CPF_CUSTOMER_UUID, SAP_ID, IRIS2_ID, NAME, DRAFT_IND, ACTIVE_IND, REPLACED_BY_CUST, CRE_DT_GMT, CRE_DT_LOC, TIME_ZONE, CRE_USR, CHG_DT_GMT, CHG_DT_LOC, CHG_TIME_ZONE, CHG_USR, VFY_DT_GMT, VFY_DT_LOC, VFY_USR, DIVISION, SALES_ADMIN, MF_CUST_CDE, CR_CTRL_OFCE, DEFAULT_INV_CCY, AUTOBILL_OVRRD_IND, AUTOBILL, AUTOPRT_OVRRD_IND, AUTOPRT, AVE_PYMT_DAY, TTL_INV_VAL, INHERIT_CR_TERM_ASSGMT, NORMALIZED_NME, OB_PYMT_OFCE, IB_PYMT_OFCE, CGO_SMART_ID, NCPF_CUST_ID, CPF_CUST_LEVEL_UUID, REC_UPD_DT)
    values (2.26283572796028E15, '6588125000', '6588125', 'S M Mooseen And Sons(PVT) Limited', 0, 1, '', to_date('15-03-2005 08:55:00', 'dd-mm-yyyy hh24:mi:ss'), to_date('15-03-2005 14:25:00', 'dd-mm-yyyy hh24:mi:ss'), 'IST', 'licr2', to_date('19-02-2007 00:33:00', 'dd-mm-yyyy hh24:mi:ss'), to_date('19-02-2007 06:03:00', 'dd-mm-yyyy hh24:mi:ss'), 'IST', 'BaseAdmi', to_date('15-03-2005 09:03:00', 'dd-mm-yyyy hh24:mi:ss'), to_date('15-03-2005 14:33:00', 'dd-mm-yyyy hh24:mi:ss'), 'ninwasa', '', '', 'SRI06588125000', '463', '', 0, 0, 0, 0, null, null, 0, 'SMMOOSEENANDSONSPVTLIMITED', '', '', '', '6588125', 109966195050333, '14-JAN-09 02.49.28.325774 PM');
    commit;
    STEP 4: Create Oracle Text Index on Table CPF_CUSTOMER
    EXEC CTX_DDL.DROP_PREFERENCE('CTXCAT_IR2_STORAGE');
    EXEC CTX_DDL.CREATE_PREFERENCE('CTXCAT_IR2_STORAGE', 'BASIC_STORAGE');
    EXEC CTX_DDL.SET_ATTRIBUTE('CTXCAT_IR2_STORAGE', 'I_INDEX_CLAUSE', 'TABLESPACE COMMON_SM_INDX COMPRESS 2');
    EXEC CTX_DDL.SET_ATTRIBUTE('CTXCAT_IR2_STORAGE', 'I_INDEX_CLAUSE', 'TABLESPACE COMMON_SM_INDX COMPRESS 2');
    EXEC CTX_DDL.SET_ATTRIBUTE('CTXCAT_IR2_STORAGE', 'K_TABLE_CLAUSE', 'TABLESPACE COMMON_SM_INDX COMPRESS 2');
    EXEC CTX_DDL.SET_ATTRIBUTE('CTXCAT_IR2_STORAGE', 'R_TABLE_CLAUSE', 'TABLESPACE COMMON_SM_INDX COMPRESS 2');
    EXEC CTX_DDL.SET_ATTRIBUTE('CTXCAT_IR2_STORAGE', 'I_ROWID_INDEX_CLAUSE', 'TABLESPACE COMMON_SM_INDX storage (INITIAL 5M)');
    -- Define IR2_AB_LEXER to handle Special Characters.
    EXEC ctx_ddl.drop_preference('IR2_AB_LEXER');
    EXEC ctx_ddl.create_preference('IR2_AB_LEXER', 'BASIC_LEXER');
    EXEC ctx_ddl.set_attribute ('IR2_AB_LEXER', 'printjoins', ',_!$~%?=({;|&+-:/)}.@`^');
    --Drop Indexes
    drop index CPF_CUSTOMER_DIDX1;
    -- CATSEARCH INDEX on CPF_CUSTOMER.NAME     
    CREATE INDEX CPF_CUSTOMER_DIDX1 ON CPF_CUSTOMER(NAME) INDEXTYPE IS CTXSYS.CTXCAT PARAMETERS ('STORAGE CTXCAT_IR2_STORAGE STOPLIST CTXSYS.EMPTY_STOPLIST LEXER IR2_AB_LEXER');
    commit;
    STEP 5: Run Query to use Oracle Text Index on Base Table (works fine always. No issues seen so far)
    SELECT a.sap_id||'|'||a.name||'|' CUSTOMER_STR
    FROM cpf_customer a
    WHERE (catsearch(a.name, 'Mooseen'||'*', '')>0);
    CUSTOMER_STR
    6588125000|S M Mooseen And Sons(PVT) Limited|
    STEP 6: Run Query to use Oracle Text Index on View created under Table (get below error periodically)
    ORA-20000: Oracle Text error:
    DRG-10849: catsearch does not support functional invocation
    DRG-10599: column is not indexed
    But it works sometimes as in STEP 5 and returns 1 row. It is never consistent. We would like to
    provide access to this Table using View only. That is why we would like to get this query working consistently
    using View.
    Any help or tips would be greatly appreciated
    Thanks
    Auro

    This is a known issue with CTXCAT indexes. Sometimes the optimizer will "drive" the query off another index, and request results from the CTXCAT index on a row-by-row basis ("does the row with rowid NNNN satisfy this CATSEARCH condition?"). That's known as a functional lookup, and is not supported by the CTXCAT indextype.
    The only solution is to try to persuade the optimizer to use a different plan which does not use a functional lookup. This can be achieved by the use of hints, or sometimes by collecting or deleting statistics on the table.

  • Scaling mobile app works fine on the X but not on the Y

    I originally made my app to work for iphone only but I am now scaling it to work on Ipad/ Android etc. I am doing all the scaling manually. It is a tabbed application.
    I am scaling all x and y locations and widths and heights by a scale factor that is created using..
              scaleFactorX = stage.width/320;
         scaleFactorY = stage.height/480;
    It works perfectly on the x but not quite enough on the y as objects look a little squashed vertically.
    I can't think why this is. If I were to alter the y scalefactor it would put things out when at the original phone size.
    The only part I'm not scaling manually is the actionBar and the bottom tabs. They are currently using default skins which use the DPI classification to determined size. I have however overridden this and set the action bar to use a skin with a much greater layoutContentGroupHeight. This hasn't however had any effect on the y scaling of objects in the main display area.
    The y scale isn't out by much, but it bothers me. If anyone has any suggestions I'd appreciate it.
    Thanks.

    Adobe won't fix it as long there are not enough votes for my bug report!!!!
    PLEASE VOTE: https://bugbase.adobe.com/index.cfm?event=bug&id=3376478

  • Report works fine in local environment but gives problem on server

    Hi,
    I have following condition which works fine when executed in local environment.
    But simply does not work when executed on server.
    <?for-each-group:XYZIC[ListOf_ssFsInvoice/ssFsInvoice/InvoiceDate >= EffStartDate][ListOf_ssFsInvoice/ssFsInvoice/InvoiceDate <= EffEndDate];./Code?>
    EffStartDate and EffEndDate are from XYZIC.
    What could be the reason?
    Thanks.

    Hi,
    try this
    <?for-each-group:XYZIC[ListOf_ssFsInvoice/ssFsInvoice/InvoiceDate >= EffStartDate] and [ListOf_ssFsInvoice/ssFsInvoice/InvoiceDate <= EffEndDate];./Code?>
    or this one
    before using declare namespace specifier
    <?for-each-group:XYZIC[psfn:totext(InvoiceDate,"dd-MMM-yyyy","MM/dd/yyyy" >= psfn:totext(EffStartDate,"dd-MMM-yyyy","MM/dd/yyyy" and psfn:totext(InvoiceDate,"dd-MMM-yyyy","MM/dd/yyyy" <=  psfn:totext(EffEndDate,"dd-MMM-yyyy","MM/dd/yyyy"];./Code?>

  • SWF works on any local computer but not on website

    Hi Guys
    I have developed a website using flash and xml. My export folder containts my swf file, html files nad xml config files (plus a numebr of images etc). The export fodler does not have any .fla files etc.
    When running the site locally all works perfecctly, but when trying to run off the web there is text corruption and layout problems. I obviously though it was a pthing issue - so I sent the export folder to a friend (exactly the same contents as what is loaded on the site) and he can laucnh and view the site perfectly - so its not a pathing issue as far as I can see.
    WOuld there be a reason why text is not visible when viewing off the web (but you can click here the text shoudl be - highlight then it suddenly appears). Also where text is located ont he design it has become double sapced ont he web version but not when running locally. I have checked all the permissions to 777 incase of an issue there.
    If it was a pathing issue - why would it work on various other computers when senidng just the export folder (which contains no sub folders at all) it can't be taking anything fromt he root or parent folder as it wouldnt work on the other local machines it has been tested on?
    Please let me know if anyone has any ideas as its really frustrating. I have folowed the logic of sending the output folder to other computers and it works perfectly (remember no subfolders or parent folders so its only looking for local files within the folder)....weird!?
    Thanks

    Thanks I will try and contact the hosting company now to find out - I am using Heart Internet: here is a sample of my xml file....thanks so much for replying :-) I thought it might be to do with server environment as wokring perfectly on multiple local computers etc....
    Here is some of the xml code: i see some ISO mention at the top? Not too sure about what you mentioned regarding CDATA....but it appears in the xml below (I bought template and then just edited the text to change so didnt actually rite the code so please excuse my lack of technical knowledge- I am trying lol
      <?xml version="1.0" encoding="iso-8859-1"?>
    <content>
    <!-- general vars -->
    <section name="settings">
    <item name="textSelectable">true</item>
    <item name="copyright"><![CDATA[Brainbox Group &#169; 2013 &#8226;<a href="asfunction:_root.more_click_func, privacyPolicy"> Privacy Policy</a> &#8226;]]></item>
    <item name="companyName"><![CDATA[b</font><font color="#ff0000">r</font><font color="#1c73ce">a</font><font color="#ff0000">i</font><font color="#f26522">n</font>box]]></item>
    <item name="slogan"><![CDATA[creative design services]]></item>
    <item name="slogan2"><![CDATA[E-mail: <a href="asfunction:link"> <font color="#000000"><u>[email protected]</u></font></a>]]></item>
    <image imageUrl="_logo.png" link="asfunction:link"/>
    <image imageUrl="_logo2.png" link="asfunction:link"/>
    </section>
    <section name="configuration">
    <delta_pics>5</delta_pics>
    <alpha_bg>90</alpha_bg>
    <delta_scr>0</delta_scr>
    <pic_smoth>true</pic_smoth>
    <pic_viz>3</pic_viz>
    <pic_ext>.jpg</pic_ext>
    </section>
    <section name="global_text">
    <texts><![CDATA[
    <font size="120">W</font><font size="55">eb & </font><font size="120">A</font><font size="55">pp</font>
    ]]></texts>
    <texts><![CDATA[
    DESIGN AGENCY
    ]]></texts>
    </section>
    <!-- menu -->
    <section name="menu">
    <link systemOrder="1"><![CDATA[
    <font color="#ffffb1">main</font> page
    ]]></link>
    <link systemOrder="2"><![CDATA[
    <font color="#ffffb1">web</font> design
    ]]></link>
    <link systemOrder="3"><![CDATA[
    <font color="#ffffb1">app</font> design
    ]]></link>
    <link systemOrder="4">
    <![CDATA[
    <font color="#ffffb1">portfolio</font>
    ]]></link>
    <link systemOrder="5"><![CDATA[
    <font color="#ffffb1">contacts</font>
    ]]></link>
    </section>
    <section name="global_img">
    <image imageUrl="_pic1s.png" link="asfunction:link"/>
    <image imageUrl="_pic2s.png" link="asfunction:link"/>
    <image imageUrl="_pic3s.png" link="asfunction:link"/>
    <image imageUrl="_pic4s.png" link="asfunction:link"/>
    <image imageUrl="_pic5s.png" link="asfunction:link"/>
    </section>
    <!-- pages -->
    <section name="pages">
    +++PAGE1++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +++++++++++++++++++++
    <page name="main page">
    <image imageUrl="_pic1.png" link="asfunction:link"/>
    <image imageUrl="_pic2.png" link="asfunction:link"/>
    <image imageUrl="_pic3.png" link="asfunction:link"/>
    <image imageUrl="_pic4.png" link="asfunction:link"/>
    <image imageUrl="_pic5.png" link="asfunction:link"/>
    <image imageUrl="_pic6.png" link="asfunction:link"/>
    <texts>
    <pageText><![CDATA[
    FREE
    ]]></pageText>
    <pageText><![CDATA[
    welcome!
    ]]></pageText>
    <pageText><![CDATA[
    packages
    ]]></pageText>
    <pageText><![CDATA[
    Here at the Brainbox Group we offer one stop design services.<br>
    Our consultants are experienced in business and our aim is to<br>
    make the process from 'brief' to 'sign off' as smooth & relaxing<br>
    as possible. Call our helpdesk now 0121 323 5164 early until late.
    ]]></pageText>
    <pageText><![CDATA[
    <a href="asfunction:link">+ Nationwide Service</a> <br>
    <a href="asfunction:link">+ Dedicated Progect Consultant</a> <br>
    <a href="asfunction:link">+ Remote Collaboration Tools</a> <br>
    ]]></pageText>
    <pageText><![CDATA[
    <a href="asfunction:link">+ Great Prices & Packages</a> <br>
    <a href="asfunction:link">+ Business Savy Experts</a> <br>
    <a href="asfunction:link">+ Experienced & Professional</a> <br>
    ]]></pageText>
    <pageText><![CDATA[
    <a href="asfunction:_root.more_click_func,0"><font color="#ff005b">+</font> <u>Learn more about Brainbox</u></a>
    ]]></pageText>
    <pageText><![CDATA[
    <a href="asfunction:link"><font color="#ff005b">+</font> <u>Brochure Web £500</u></a> <br>
    <a href="asfunction:link"><font color="#ff005b">+</font> <u>CMS Full Web £1000</u></a> <br>
    <a href="asfunction:link"><font color="#ff005b">+</font> <u>Ecommerce Web £1500</u></a> <br>
    <a href="asfunction:link"><font color="#ff005b">+</font> <u>PHP Custom Web £3000</u></a> <br>
    <a href="asfunction:link"><font color="#ff005b">+</font> <u>Website App from £1500</u></a> <br>
    <a href="asfunction:link"><font color="#ff005b">+</font> <u>Social App from £3000</u></a> <br>
    <a href="asfunction:link"><font color="#ff005b">+</font> <u>Custom App from £5000</u></a> <br>
    <a href="asfunction:_root.more_click_func,1"><font color="#ff005b">+</font> <u>Learn more</u></a> <br>
    ]]></pageText>
    </texts>
    <link linkType="readMoreLink">
    <item name="title"><![CDATA[
    Brainbox Group
    ]]></item>
    <item name="linkText"><![CDATA[
    You are in good company with the Brainbox Group of companies.<br>
    Brainbox Creative Design Services forms part of the Brainbox Group who specialise in delivering management services, design consultation and<br>
    print services to businesses and individuals across the UK. Our company is based in the heart of England - Birmingham. Here you can learn more<br>
    about our service divisons and how we can support your business and contribute towards operational efficiency, performance and tangible growth.<br>
    <br>
    Brainbox Creative<br>
    A boutique design agency that specialise in Packaged Website Development and Mobile Application Development. <br>
    www.BrainboxCreative.co.uk<br>
    <br>
    Brainbox Consultants<br>
    A nationwide management agency providing business and management consultibng services. <br>
    www.BrainboxConsultants.co.uk<br>
    <br>
    Printing Team<br>
    Providing cost effective printing and print design services nationwide. Supplying business with high quakity low cost print.<br>
    www.PrintingTeam.co.uk<br>
    ]]></item>
    <item name="linkText1"><![CDATA[
    ]]></item>
    </link>
    <link linkType="readMoreLink">
    <item name="title"><![CDATA[
    read more 1
    ]]></item>

  • IPOD works fine on other computers but not on mine (insists on "restore")

    Appreciate any help or guru advice. Switched to WIN XP Pro. Reinstalled iTunes 7.0.2.16. iTunes works fine on my desktop. When I went to sync my iPod, it said "iTunes detected a iPod in recovery mode" and insisted I do a "restore" on it, so I did, of course erasing all music from my iPod. But my computer still gives me same error message. I connected iPod to other computers in the house, and it works fine, and can load and play music fine. Any thoughts? Can I remove iTunes from my computer, and reinstall, and save ALL my music currently stored (whether purchased, ripped, imported, whatever?) What should I do? Help!! and Thank you immensely.

    Hello,
    If a sad iPod icon or an exclamation point and folder icon appears on your iPod’s screen, or with sounds of clicking or HD whirring, it is usually the sign of a hard drive problem and you have the power to do something about it now. Your silver bullet of resolving your iPod issue – is to restore your iPod to factory settings.
    http://docs.info.apple.com/article.html?artnum=60983
    If you're having trouble, try these steps at different levels one at a time until the issue is resolved. These steps will often whip your iPod back into shape.
    Make sure you do all the following “TRYs”
    A. Try to wait 30 minutes while iPod is charging.
    B. Try another FireWire or USB through Dock Connector cable.
    C. Try another FireWire or USB port on your computer .
    D. Try to disconnect all devices from your computer's FireWire and USB ports.
    E. Try to download and install the latest version of iPod software and iTunes
    http://www.apple.com/itunes/download/
    For old and other versions of iPod updater for window you can get here
    http://www.ipodwizard.net/showthread.php?t=7369
    F. Try these five steps (known as the five Rs) and it would conquer most iPod issues.
    http://www.apple.com/support/ipod/five_rs/
    G. Try to put the iPod into Disk Mode if it fails to appear on the desktop
    http://docs.info.apple.com/article.html?artnum=93651
    If none of these steps address the issue, you may need to go to Intermediate level listed below in logical order. Check from the top of the lists to see if that is what keeping iPod from appearing on your computer in order for doing the Restore.
    Intermediate Level
    A. Try to connect your iPod with another computer with the iPod updater pre-installed.
    B. Still can’t see your iPod, put it in Disk Mode and connect with a computer, instead of doing a Restore on iPod Updater. Go and format the iPod instead.
    For Mac computer
    1. Open the disk utility, hope your iPod appears there (left hand side), highlight it
    2. Go to Tab “Partition”, click either “Delete” or “Partition”, if fails, skip this step and go to 3
    3. Go to Tab “Erase” , choose Volume Format as “MAC OS Extended (Journaled), and click Erase, again if fails, skip it and go to 4
    4. Same as step 3, but open the “Security Options....” and choose “Zero Out Data” before click Erase. It will take 1 to 2 hours to complete.
    5. Eject your iPod and do a Reset
    6. Open the iTunes 7 and click “Restore”
    For Window computer
    Go to folder “My Computer”
    Hope you can see your iPod there and right click on the iPod
    Choose “Format”. Ensure the settings are at “Default” and that “Quick Format” is not checked
    Now select “Format”
    Eject your iPod and do a Reset
    Open the iTunes 7 and click “Restore”
    In case you do not manage to do a “Format” on a window computer, try to use some 3rd party disk utility software, e.g.“HP USB Disk Storage Format Tool”.
    http://discussions.apple.com/thread.jspa?threadID=501330&tstart=0
    C. Windows users having trouble with their iPods should locate a Mac user. In many cases when an iPod won't show up on a PC that it will show up on the Mac. Then it can be restored. When the PC user returns to his computer the iPod will be recognized by the PC, reformatted for the PC, and usable again. By the way, it works in reverse too. A Mac user often can get his iPod back by connecting it to a PC and restoring it.
    Tips
    a. It does not matter whether the format is completed or not, the key is to erase (or partly) the corrupted firmware files on the Hard Drive of the iPod. After that, when the iPod re-connected with a computer, it will be recognized as an fresh external hard drive, it will show up on the iTunes 7.
    b. It is not a difficult issue for a Mac user to find a window base computer, for a PC user, if they can’t find any Mac user, they can go to a nearest Apple Shop for a favor.
    c. You may need to switch around the PC and Mac, try to do several attempts between “Format” and “Restore”
    http://discussions.apple.com/thread.jspa?messageID=2364921&#2364921
    Advance Level
    A. Diagnostic mode solution
    If you have tried trouble shooting your iPod to no avail after all the steps above, chances are your iPod has a hardware problem. The iPod's built-in Diagnostic Mode is a quick and easy way to determine if you have a "bad" iPod.
    You need to restart your iPod before putting it into Diagnostic Mode. Check that your hold switch is off by sliding the switch away from the headphone jack. Toggle it on and off to be safe.
    Press and hold the following combination of buttons simultaneously for approximately 10 seconds to reset the iPod.
    iPod 1G to 3G: "Menu" and "Play/Pause"
    iPod 4G+ (includes Photo, Nano, Video, and Mini): "Menu" and "Select"
    The Apple logo will appear and you should feel the hard drive spinning up. Press and hold the following sequence of buttons:
    iPod 1G to 3G: "REW", "FFW" and "Select"
    iPod 4G+ (includes Photo, Nano, Video, and Mini): "Back" and "Select"
    You will hear an audible chirp sound (3G models and higher) and the Apple logo should appear backwards. You are now in Diagnostic Mode. Navigate the list of tests using "REW" and "FFW". The scroll wheel will not function while in diagnostic mode. For further details on Diagnostic mode can be found at http://www.methodshop.com/mp3/ipodsupport/diagnosticmode/
    Try to do the 5in1, HDD R/W and HDD scan tests. Some successful cases have been reported after the running the few tests under the Diagnostic mode. In case it does not work in your case, and the scan tests reports show some errors then it proves your iPod has a hardware problem and it needs a repairing service.
    B. Format your iPod with a start disk
    I have not tried this solution myself, I heard that there were few successful cases that the users managed to get their iPod (you must put your iPod in disk mode before connecting with a computer) mounted by the computer, which was booted by a system startup disk. For Mac, you can use the Disk Utility (on the Tiger OS system disk), for PC user, you can use the window OS system disk. Try to find a way to reformat your iPod, again it does not matter which format (FAT32, NTFS or HFS+) you choose, the key is to erase the corrupted system files on the iPod. Then eject your iPod and do a Reset to switch out from Disk Mode. Reboot your computer at the normal way, connect your iPod back with it, open the iPod updater, and hopefully your iPod will appear there for the Restore.
    If none of these steps address the issue, your iPod may need to be repaired.
    Consider setting up a mail-in repair for your iPod http://depot.info.apple.com/ipod/
    Or visit your local Apple Retail Store http://www.apple.com/retail/
    In case your iPod is no longer covered by the warranty and you want to find a second repairing company, you can try iPodResQ at your own risk
    http://www.ipodresq.com/index.php
    Just in case that you are at the following situation
    Your iPod warranty is expired
    You don’t want to pay any service charges
    You are prepared to buy a new one
    You can’t accept the re-sell value of your broken iPod
    Rather than leave your iPod as paper-weight or throw it away.
    You can try the following, but again, only do it as your last resort and at your own risk.
    Warning !!!! – It may or may not manage to solve your problem, and with a risk that you may further damage your iPod, which end up as an expensive paper weight or you need to pay more higher repairing cost. Therefore, please re-consider again whether you want to try the next level
    Last Resort Level
    1. . Disconnecting the Hard Drive and battery inside the iPod – Warning !! Your iPod warranty will be waived once you open the iPod.
    In Hong Kong there are some electronic shops offering an iPod service for Sad iPod, the first thing they do is to open up the iPod’s case and disconnecting the battery and the Hard Drive from the main board of the iPod. Wait for 5-10 minutes and reconnecting them back. The reason behind which I can think of is to do a fully reset of a processor of the iPod. In case you want do it itself and you believe that you are good on fixing the electronics devices and have experience to deal with small bits of electronic parts, then you can read the following of how to open the iPod case for battery and HDD replacement (with Quicktimes)
    http://eshop.macsales.com/tech_center/index.cfm?page=Video/directory.html
    2.Press the reset button on the Hard Drive inside the iPod – Suggestion from Kill8joy
    http://discussions.apple.com/thread.jspa?messageID=2438774#2438774
    Have I tried these myself? No, I am afraid to do it myself as I am squeamish about tinkering inside electronic devices, I have few experiences that either I broke the parts (which are normally tiny or fragile) or failed to put the parts back to the main case. Therefore, I agree with suggestion to have it fixed by a Pro.
    2. Do a search on Google and some topics on this discussion forum about “Sad iPod”
    Exclamation point and folder and nothing else
    http://discussions.apple.com/thread.jspa?messageID=2831962#2831962
    What should I do with my iPod? Send it or keep it?
    http://discussions.apple.com/thread.jspa?threadID=469080&tstart=0
    Strange error on iPod (probably death)
    http://discussions.apple.com/thread.jspa?threadID=435160&start=0&tstart=0
    Sad Face on iPod for no apparent reason
    http://discussions.apple.com/thread.jspa?threadID=336342&start=0&tstart=0
    Meeting the Sad iPod icon
    http://askpang.typepad.com/relevanthistory/2004/11/meeting_thesad.html#comment-10519524
    Sad faced iPod, but my computer won’t recognize it?
    http://discussions.apple.com/thread.jspa?messageID=2236095#2236095
    iPod Photo: unhappy icon + warranty question
    http://discussions.apple.com/thread.jspa?messageID=2233746#2233746
    4th Gen iPod Users - are we all having the same problem?
    http://discussions.apple.com/message.jspa?messageID=2235623#2235623
    Low Battery, and clicking sounds
    http://discussions.apple.com/thread.jspa?messageID=2237714#2237714
    Sad faced iPod, but my computer won’t recognize it
    http://discussions.apple.com/thread.jspa?messageID=2242018#2242018
    Sad iPod solution
    http://discussions.apple.com/thread.jspa?threadID=412033&tstart=0
    Re: try to restore ipod and it says "can't mount ipod"
    http://discussions.apple.com/thread.jspa?threadID=443659&tstart=30
    iPod making clicking noise and is frozen
    http://discussions.apple.com/thread.jspa?messageID=2420150#2420150
    I am not suggesting that you should follow as well, but just read them as your reference. You are the person to make the call.

Maybe you are looking for

  • Problem with tree view alignment

    http://tinypic.com/r/34o1wjl/6 please view the link !! i want the tree for the Finished product just below the Raw Material, where as i am not able to achieve it. The raw material gets place in a separate box and finished in another. the code for the

  • Matching tags in Organizer 9

    Hi, I can not get Organizer 9 to show only the matching photos when clicking on a name tag. When I apply a tag to a specific photo within a group of photos stored in the same file, or when I attach different tags to a set of photos, Organizer shows a

  • HT201263 can I update my iphone 3g ios 4.2.1 to ios 6.1.3?

    can I update my iphone 3g ios 4.2.1 to ios 6.1.3?

  • Awk: error while loading shared libraries: libdl.so.2: wrong ELF class: ELF

    Hello, I'm installing Application Dependency and Performance (ADP, also call CAMM) in OEM 11g. The steps is as follows: 1) go to the directory ../oms11g/ocamm and extract ocamm.zip file 2) then go to the directory ../oms11g/ocamm/Disk1/InstData/Linux

  • HELP!!  install/uninstall itunes

    HI, I upgraded my itunes tonight since I was prompted to do so. Since then, every time I go on I tunes I get this error message: The registry setting used by ITUNES drivers for importing and burning cds and dvds are missing. THis can happen as a resu