Improper handling of RFC5987 HTTP parameters such as filename

I have files on my website whose names are in UTF-8 and contain characters outside the ASCII set. I am setting the Content-Disposition header as an attachment with a filename* parameter encoded per RFC5987. The non-ascii characters are translated fine, but there appears to be a problem handling space encoding (%20). Per this RFC spaces in the filename are encoded as %20, but when I download the file these encoded space characters are being converted to + characters which is incorrect. This appears to be a bug in Firefox (Chrome as well I might add).

Ignore this one. Turns out there was a unicode conversion bug that was causing this, Firefox is all good. :-)

Similar Messages

  • HTTP Parameters for CRL Update

    Hi,
    There is a new parameter in the Identity Server 6.2 in the Certificate Authentication Service called "HTTP Parameters for CRL Update".
    Has anyone used this parameter?
    This is a nice feature that I think should enable the CRL update.
    The question is how it should work?
    Where should it store the CRL?
    How to set the time interval for CRL update?
    Any clues?
    Mario

    Hi,
    Unfortunatelly, triggers are not supported in SAP environment. For more details see SAP Note:
    105047: Support for Oracle functions in the SAP environment
    57. Trigger                                                                               
    o  Used implicitly by SAP in the BW environment (/BI0/05*, see Note  
            449891)                                                                               
    o  Logon Trigger can be used in accordance with Note 712777.                                                                               
    o  Otherwise, it cannot be used                                                                               
    o  You cannot use trigger-based real-time replication either.        

  • How process HTTP-parameters in Web Dynpro?

    Hello,
    as a beginner in Web Dynpro I would like to know if and how it's possible to read http-parameters, e.g. those of "javax.servlet.http.HttpServletRequest" in a WD component..
    When I call a WD application by a URL, it could be done from another SAP-Web application where the Request-parameters have been filled - and I want to display/process the contents in WD.
    Hope there is a solution for that -
    Regards,
    Jens

    Hi Jens,
    you can access HTTP parameters via the WDWebContextAdapter:
    http://help.sap.com/javadocs/NW04/current/wd/com/sap/tc/webdynpro/services/sal/adapter/api/IWDWebContextAdapter.html
    You can call in wdDoInit() for instance
    String Name = WDWebContextAdapter.getWebContextAdapter().getRequestParameter("parameter-name");
    HTH
    Daniel

  • Handle mutually exclusive user parameters

    Handle mutually exclusive user parameters
    Hi Everyone,
    I have a report, needs to handle mutually exclusive user parameters, e.g. District, Region, Location. I need to handle the User Parameter Form in the following scenario, if users put/select a value in District, then other 2 parameters(Region, Location) would show null. The same logic works on the other 2 parameter. Anyway, the report user parameter form shows 3 parameters, however, any choice in one parameter would nullify the other 2. This is not a web report, only paper based, with a default User Parameter Form
    I would be very appreciating if any one can help.
    Regards!
    AChen

    Hi,
    I don't think it is possible to get a dynamic parameter form like that. At most, you can use some Javascript on the parameter form field, eg, if the value is not a number, you show an error msg and so on. But it may not be possible to dynamically change the field values baed on a user action.
    You can do it in a JSP though, that submits request to your paper report.
    Navneet.

  • Debug with http parameters

    I want to debug an application that takes http parameters,
    but in FlexBuilder 2, I do not understand how to specify http
    parameters with the debug command line
    Alternatively, is it possible (and how) to connect a debug
    session to an existing flash (debug) running instance ?

    Have you tried editing the Launch Configuration url? Go to
    Run > Debug... to bring up the Launch Config dialog box. Select
    your Flex App in the list on the left and then on the right under
    URL or path to launch, uncheck Use Deafults. You should be able to
    append url parameters (although I haven't tried it).
    Hope that helps,
    -Heidi

  • Can a servlet handle other than HTTP request..?

    I was asked this question in a interview. Can anyone clear me this.
    Can a servlet handle other than HTTP request..?
    If yes, please give me a working example.

    Can anyone guide me to achieve this.?
    Note: If anyone worked with servlet responding ftp request, please send me the code.
    Yes, a servlet can handle requests in other protocols
    like FTP.
    To achieve this, your Servlet ought to inherit from
    javax.servlet.GenericServlet or implement the
    javax.servlet.Servlet interface. To code the Servlet,
    you should have a working knowledge of ftp protocol.
    When your servlet extends
    javax.servlet.http.HttpServlet, it can process http
    requests only.
    Cheers,
    ram.

  • Can script be parameterized such that we don't need 3 copies

    Can script be parameterized such that we don't need 3 copies, or to run against actual table name if aforementioned pre-implementation activities are effective?
    INSERT INTO ACCT_ALT_ID(acct_alt_id,
    ibd_id,
    acct_alt_id_cntx_cde,
    eods_acct_id,
    data_grp_cde,
    crte_pgm,
    crte_tstp,
    updt_pgm,
    updt_tstp)
    SELECT acct_alt_id,
    ibd_id,
    acct_alt_id_cntx_cde,
    eods_acct_id,
    data_grp_cde,
    'EODS',--crte_pgm
    SYSDATE,--crte_tstp
    'EODS',--updt_pgm
    SYSDATE--updt_tstp
    FROM     ACCT_ALT_ID_1
    INSERT INTO ACCT_BENF_DESG_NEW( eods_acct_id,
    data_grp_cde,
    benf_desg_opt_nme,
    crte_pgm,
    crte_tstp,
    updt_pgm,
    updt_tstp,
    prtt_cde)
    SELECT eods_acct_id,
    data_grp_cde,
    benf_desg_opt_nme,
    'EODS',--crte_pgm
    SYSDATE,--crte_tstp
    'EODS',--updt_pgm
    SYSDATE,--updt_tstp
    'BETA_0'--prtt_cde
    FROM     ACCT_BENF_DESG_1
    INSERT INTO ACCT_ALT_ID_NEW(acct_alt_id,
    ibd_id,
    acct_alt_id_cntx_cde,
    eods_acct_id,
    data_grp_cde,
    crte_pgm,
    crte_tstp,
    updt_pgm,
    updt_tstp)
    SELECT acct_alt_id,
    ibd_id,
    acct_alt_id_cntx_cde,
    eods_acct_id,
    data_grp_cde,
    'EODS',--crte_pgm
    SYSDATE,--crte_tstp
    'EODS',--updt_pgm
    SYSDATE--updt_tstp
    FROM     ACCT_ALT_ID_2
    INSERT INTO ACCT_BENF_DESG_NEW( eods_acct_id,
    data_grp_cde,
    benf_desg_opt_nme,
    crte_pgm,
    crte_tstp,
    updt_pgm,
    updt_tstp,
    prtt_cde)
    SELECT eods_acct_id,
    data_grp_cde,
    benf_desg_opt_nme,
    'EODS',--crte_pgm
    SYSDATE,--crte_tstp
    'EODS',--updt_pgm
    SYSDATE,--updt_tstp
    'BETA_0'--prtt_cde
    FROM     ACCT_BENF_DESG_2
    INSERT INTO ACCT_ALT_ID_NEW(acct_alt_id,
    ibd_id,
    acct_alt_id_cntx_cde,
    eods_acct_id,
    data_grp_cde,
    crte_pgm,
    crte_tstp,
    updt_pgm,
    updt_tstp)
    SELECT acct_alt_id,
    ibd_id,
    acct_alt_id_cntx_cde,
    eods_acct_id,
    data_grp_cde,
    'EODS',--crte_pgm
    SYSDATE,--crte_tstp
    'EODS',--updt_pgm
    SYSDATE--updt_tstp
    FROM     ACCT_ALT_ID_3
    INSERT INTO ACCT_BENF_DESG_NEW( eods_acct_id,
    data_grp_cde,
    benf_desg_opt_nme,
    crte_pgm,
    crte_tstp,
    updt_pgm,
    updt_tstp,
    prtt_cde)
    SELECT eods_acct_id,
    data_grp_cde,
    benf_desg_opt_nme,
    'EODS',--crte_pgm
    SYSDATE,--crte_tstp
    'EODS',--updt_pgm
    SYSDATE,--updt_tstp
    'BETA_0'--prtt_cde
    FROM     ACCT_BENF_DESG_3
    /

    876793 wrote:
    It is promting enter substution variable, I do not want like that.
    And what is "it"??? Without you showing us what "it" is how do you think we can help you. Anyway, "it" doesn't prompt me (exception is raised since I do not have tables ACCT_ALT_ID_1 and ACCT_BENF_DESG_1):
    SQL> COLUMN N NEW_VALUE N NOPRINT
    SQL> SELECT  '1' N
      2    FROM  EMP
      3    WHERE ROWNUM = 1;
    SQL> INSERT INTO ACCT_ALT_ID_NEW(acct_alt_id,
      2  ibd_id,
      3  acct_alt_id_cntx_cde,
      4  eods_acct_id,
      5  data_grp_cde,
      6  crte_pgm,
      7  crte_tstp,
      8  updt_pgm,
      9  updt_tstp)
    10  SELECT acct_alt_id,
    11  ibd_id,
    12  acct_alt_id_cntx_cde,
    13  eods_acct_id,
    14  data_grp_cde,
    15  'EODS',--crte_pgm
    16  SYSDATE,--crte_tstp
    17  'EODS',--updt_pgm
    18  SYSDATE--updt_tstp
    19  FROM ACCT_ALT_ID_&N
    20  /
    old  19: FROM ACCT_ALT_ID_&N
    new  19: FROM ACCT_ALT_ID_1
    FROM ACCT_ALT_ID_1
    ERROR at line 19:
    ORA-00942: table or view does not exist
    SQL> 
    SQL> INSERT INTO ACCT_BENF_DESG_NEW( eods_acct_id,
      2  data_grp_cde,
      3  benf_desg_opt_nme,
      4  crte_pgm,
      5  crte_tstp,
      6  updt_pgm,
      7  updt_tstp,
      8  prtt_cde)
      9  SELECT eods_acct_id,
    10  data_grp_cde,
    11  benf_desg_opt_nme,
    12  'EODS',--crte_pgm
    13  SYSDATE,--crte_tstp
    14  'EODS',--updt_pgm
    15  SYSDATE,--updt_tstp
    16  'BETA_0'--prtt_cde
    17  FROM ACCT_BENF_DESG_&N
    18  /
    old  17: FROM ACCT_BENF_DESG_&N
    new  17: FROM ACCT_BENF_DESG_1
    FROM ACCT_BENF_DESG_1
    ERROR at line 17:
    ORA-00942: table or view does not exist
    SQL> SY.

  • Changing HTTP-Parameters for HTTP Receiver Channel

    Dear all,
    we have a partner we send files to using the simple HTTP adapter.
    We have different types of messages (interfaces) we send to the partner.
    Our partner expects the message type as a parameter of the URL. Such as http://xxx:000/xxx?msgtype=outbound
    In turn, the "outbound" could also be "inbound" - depending on the message type.
    I want to avoid using to services with two adapters.
    Thus, my question to you: Do you have an idea how I could manipulate the parameter's value?
    Thanks in advance,
    Helge

    Hi Helge,
    if you have Sp14 and above you can try setting the url
    dynamically in the mapping using Adapter-Specific Message Attributes in the http receiver channel:
    http://help.sap.com/saphelp_nw04/helpdata/en/43/64dbb0af9f30b4e10000000a11466f/content.htm
    this way it should be no problem to change it
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions">XI FAQ - Frequently Asked Questions</a>

  • Passing http parameters to xsl

    Hi,
    1.I'am passing the http posted posted parameters from a form object.I can retrieve the params as @x but the prob. is i'am not able to send the params to xsl where i would like to use it as matching pattern.
    2.i want to set the column names in the query
    to set with the paramters passed via form object like checkboxes/multiple select menus.
    how to achieve this.

    Hi,
    You need the following in the xsl file
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:lxslt="http://xml.apache.org/xslt" -- or other whichever you use
    xmlns:sc="com.mycompany.SomeServlet"
    extension-element-prefixes="sc"
    version="1.0">
    <lxslt:component prefix="sc"
    functions="shouldPrint">
    <lxslt:script lang="javaclass" src="com.mycompany.SomeServlet"/>
    </lxslt:component>
    <xsl:param name="filter"/>
    to use the function or it can just as well be a method as above
    <xsl:variable name="print" select="sc:shouldPrint()"/>
    <xsl:if test="$print='true'">
    <!-- do some styling -->
    in the servlet the following method is defined
    public String print() { return "true"; }
    hope that helps

  • Handling Redirection to https

    hi,
    I just want to get the content of a http URL that may redirect to a htts page. When I use URL and HttpURLConnection, I'm unable to connect and get contents of the redirected https page.
    How to handle this. Should i go for handling each redirections with Sockets.
    Thanks.

    I'm not sure, but I think the problem is the switch between HTTP and HTTPS because a HttpURLConnection shouldn't be able to connect via HTTPS protocol. Have you checked if a redirect to another HTTP URL works? What's the exact HTTP Error code? Is there an exception thrown and what is its stacktrace?
    regards
    slowfly

  • Firefox 4.0: Improper handling of Animated Gif background-image

    FF 4.0 is giving erratic and incorrect displays of an animated gif on a project I am working on. I have prepared a very small sample that demonstrates the problem.
    The problem occurs when an animated gif is used as the background-image for a div (it may also be true when used as a background-image for the body, but I have not tested that).
    When a page is first loaded, the animated gif displays properly.
    I would expect that the animation be displayed as animated either:
    # On each page load
    # On a page load with new session or when the image is removed from cache prior to loading the page. Otherwise the last frame of the image would show
    The sample page is designed to test this.
    IE: Behaved as in #1, i.e. the image was animated on each and every page load. (IE 8: 8.0.6001....)
    Google Chrome: Behaved as in #2, i.e. the image is animated only when there is a new session or when the image is no longer in cache. (Version 10.0.648.204)
    FF 3.6.8: Slightly strange, but acceptable.
    * The image is animated on new session and on any reload button.
    * The last frame is displayed if the location is reentered in the URL bar.
    * The last frame is displayed if the back/forward navigation buttons are used.
    * SOMETIMES the image is animated and sometimes the last frame is displayed when the change page button is pressed (i.e. Javascript change page).
    FF 4.0: Just plain NOT acceptable
    * Correctly animates the image on page load for new session
    * Correctly animates the image on reload button following clearing the image from cache.
    * INCORRECTLY shows the FIRST gif frame if the reload button is pressed.
    * INCORRECTLY shows the FIRST gif frame if the URL is reentered from the URL bar.
    * INCORRECTLY shows the FIRST gif frame if the page change button is pressed (i.e. Javascript change page).
    * INCORRECTLY shows the FIRST gif frame if theURL is reentered from the URL bar after clearing the image from cache.
    * INCORRECTLY shows the FIRST gif frame if the page change button is pressed (i.e. Javascript change page) after clearing the item from cache.
    All of these tests were run with Windows XP-Pro (all service packs and updates applied).
    I can find no clear specification as to what ''should'' happen with pages using animated gifs that are already loaded.
    * I can conceive of rationales for always displaying with animation.
    * I can also conceive of rationales for sometimes displaying the last frame, especially if the same page is being reloaded since many sites reload the same page in response to user form submissions.
    # '''I can see no rationale for displaying the first frame of the gif and would suggest that this is a bug. '''

    Can be this bug:
    * [https://bugzilla.mozilla.org/show_bug.cgi?id=641198 Bug 641198] – Rollover animated gif show only one frame.
    You can try these nightly test builds to see if they behave better:
    Fx5.0 ftp://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-mozilla-aurora
    Fx6.0 ftp://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-mozilla-central
    Create a new profile exclusively for each Firefox version and create a desktop shortcut with -P "profile" appended to the target to launch each Firefox version with its own profile.
    See these mozillaZine KB articles for information:
    * http://kb.mozillazine.org/Testing_pre-release_versions
    * http://kb.mozillazine.org/Creating_a_new_Firefox_profile_on_Windows
    * http://kb.mozillazine.org/Shortcut_to_a_specific_profile
    * http://kb.mozillazine.org/Using_multiple_profiles_-_Firefox

  • Javax.faces.application.ViewExpiredException when using http parameters

    Hi,
    I got two jsf-pages and every time I'm using an http request parameter I get a javax.faces.application.ViewExpiredException straight away, so it's no timeout issue.
    That means, if I open the page with "http://localhost:8080/rmp-invoicing/invoicing/monitorInvoiceRun.jsf" everything works fine, but when I use "http://localhost:8080/rmp-invoicing/invoicing/monitorInvoiceRun.jsf?test=test" I get the following exception:
    05.12.2008 09:48:41 com.sun.faces.lifecycle.LifecycleImpl phase
    WARNUNG: executePhase(RESTORE_VIEW 1,org.apache.myfaces.trinidadinternal.context.FacesContextFactoryImpl$CacheRenderKit@1ec239f) threw exception
    javax.faces.application.ViewExpiredException: viewId:/invoicing/monitorInvoiceRun.jsf - View /invoicing/monitorInvoiceRun.jsf could not be restored.
         at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:185)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
         at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:177)
         at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:267)
         at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:380)
         at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:507)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:246)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.apache.myfaces.orchestra.filter.OrchestraServletFilter.doFilter(OrchestraServletFilter.java:77)
         at org.apache.myfaces.orchestra.lib.CompoundFilter$1.doFilter(CompoundFilter.java:58)
         at org.apache.myfaces.orchestra.lib._NullFilter.doFilter(_NullFilter.java:45)
         at org.apache.myfaces.orchestra.lib.CompoundFilter.doFilter(CompoundFilter.java:63)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:301)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:868)
         at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:663)
         at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
         at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Thread.java:595)
    09:48:41,149 DEBUG [DelegatingVariableResolver:140] - Successfully resolved variable 'org.apache.myfaces.orchestra.viewController.ViewControllerManager' in Spring ApplicationContext
    09:48:41,165 DEBUG [DefaultListableBeanFactory:214] - Returning cached instance of singleton bean 'org.apache.myfaces.orchestra.viewController.ViewControllerManager'
    09:48:41,165 DEBUG [DelegatingVariableResolver:140] - Successfully resolved variable 'org.apache.myfaces.orchestra.viewController.ViewControllerManager' in Spring ApplicationContext
    09:48:41,165 DEBUG [DefaultListableBeanFactory:214] - Returning cached instance of singleton bean 'org.apache.myfaces.orchestra.viewController.ViewControllerManager'
    09:48:41,165 ERROR [BaseXMLFilter:180] - Exception in the filter chain
    javax.servlet.ServletException: viewId:/invoicing/monitorInvoiceRun.jsf - View /invoicing/monitorInvoiceRun.jsf could not be restored.
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:249)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:177)
         at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:267)
         at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:380)
         at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:507)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:246)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.apache.myfaces.orchestra.filter.OrchestraServletFilter.doFilter(OrchestraServletFilter.java:77)
         at org.apache.myfaces.orchestra.lib.CompoundFilter$1.doFilter(CompoundFilter.java:58)
         at org.apache.myfaces.orchestra.lib._NullFilter.doFilter(_NullFilter.java:45)
         at org.apache.myfaces.orchestra.lib.CompoundFilter.doFilter(CompoundFilter.java:63)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:301)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:868)
         at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:663)
         at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
         at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Thread.java:595)
    09:48:41,165 ERROR [[Faces Servlet]:253] - Servlet.service() for servlet Faces Servlet threw exception
    javax.faces.application.ViewExpiredException: viewId:/invoicing/monitorInvoiceRun.jsf - View /invoicing/monitorInvoiceRun.jsf could not be restored.
         at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:185)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
         at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:177)
         at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:267)
         at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:380)
         at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:507)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:246)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.apache.myfaces.orchestra.filter.OrchestraServletFilter.doFilter(OrchestraServletFilter.java:77)
         at org.apache.myfaces.orchestra.lib.CompoundFilter$1.doFilter(CompoundFilter.java:58)
         at org.apache.myfaces.orchestra.lib._NullFilter.doFilter(_NullFilter.java:45)
         at org.apache.myfaces.orchestra.lib.CompoundFilter.doFilter(CompoundFilter.java:63)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:301)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:868)
         at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:663)
         at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
         at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Thread.java:595)
    09:48:41,180 DEBUG [RequestContextListener:89] - Cleared thread-bound request context: org.apache.catalina.connector.RequestFacade@114798a
    I also get the same exception when trying to navigate from one page to the next using navigations-rule in the spring-config.xml file since the http request parameter "?conversationContext=2" is then attached to the http-path.
    I will add some code in the following posts

    my faces-config.xml file looks like this:
            <managed-bean>
              <managed-bean-name>InvoicingBean</managed-bean-name>
              <managed-bean-class>com.bearingpoint.ta.webac.invoicing.jsf.InvoiceRunBacking</managed-bean-class>
                    <managed-bean-scope>request</managed-bean-scope>
         </managed-bean>
         <managed-bean>
              <managed-bean-name>InvoicingMonitorBean</managed-bean-name>
              <managed-bean-class>com.bearingpoint.ta.webac.invoicing.jsf.InvoiceMonitorBacking</managed-bean-class>
                    <managed-bean-scope>request</managed-bean-scope>
                    <managed-property>
                       <property-name>invoicingFacade</property-name>
                       <value>#{invoicingFacade}</value>
                    </managed-property>
         </managed-bean>
        <navigation-rule>
            <from-view-id>/invoicing/startInvoiceRun.xhtml</from-view-id>
            <navigation-case>
                <from-outcome>monitor</from-outcome>
                <to-view-id>/invoicing/monitorInvoiceRun.xhtml</to-view-id>
                <redirect/>
            </navigation-case>
        </navigation-rule>In my Backing Bean (com.bearingpoint.ta.webac.invoicing.jsf.InvoiceRunBacking) I got something like this:
         * Start generate invoice.
        public String startGenerateInvoice() {
           String outcome;
           //find out if we should stay on this page or go to the Monitor-Page
           //assume we want to go to the monitor page
           outcome = "monitor";
           return outcome;
        }And this method is called in the file startInvoiceRun.xhtml:
                   <a4j:commandButton value="#{rpmMessages['invoicing.button.label']}"
                    action="#{InvoicingBean.startGenerateInvoice}">
                </a4j:commandButton>Anyone got any ideas?
    Edited by: Thomas_Schenkeli on Dec 5, 2008 12:53 AM

  • HTTP-parameters encoding

    I use an HTML page with some form. When I submit it, a parameter is passed in my http-request (a servlet request). But I can't manage to retrieve the value of this parameter in my servlet !!!
    My HTML code:
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    </head>
    <body bgcolor="#F2F2F2" text="#000000">
    <form name="form" method="get" action="http://localhost:8080/servlet/backOffice.servlets.ServletSuppressionEntreprise" target="framePage">
    <input type="hidden" name="nomEntreprise" value="Oc� Print Technologies"/>
    <input type="image" src="../bitmaps/boutonSupprimer.jpg"/>
    </form>
    </body>
    </html>
    The code I use in my servlet to retrieve the parameter:
    String nomEntreprise = request.getParameter("nomEntreprise");
    nomEntreprise = new String(nomEntreprise.getBytes(), "utf-8");
    Thank's to anyone knowing the solution.

    Well ... Idon't understand anything ...
    In fact, my HTML page is geberated by a servlet: here is its code:
    public class ServletBoutonSuppressionEntreprise extends CheckSession {
    private static final String CONTENT_TYPE = "text/html";
    //Initialize global variables
    public void init() throws ServletException {
    //Process the HTTP Get request
    public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
    response.setContentType(CONTENT_TYPE);
    if(checkSession(request, response, true)) {
    String nomEntreprise = request.getParameter("nomEntreprise");
    nomEntreprise = new String(nomEntreprise.getBytes(), "utf-8");
    PrintWriter out = response.getWriter();
    out.println("<html>");
    out.println("<head>");
    out.println("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">");
    out.println("</head>");
    out.println("<body bgcolor=\"#F2F2F2\" text=\"#000000\">");
    out.println("<form name=\"form\" method=\"get\" action=\"http://localhost:8080/servlet/backOffice.servlets.ServletSuppressionEntreprise\" target=\"framePage\">");
    out.println("<input type=\"hidden\" name=\"nomEntreprise\" value=\"" + nomEntreprise + "\"/>");
    out.println("<div align=\"center\">");
    out.println("<input type=\"image\" src=\"../bitmaps/boutonSupprimer.jpg\"/>");
    out.println("</div>");
    out.println("</form>");
    out.println("</body></html>");
    //Clean up resources
    public void destroy() {
    I hope someone will find the problem.
    Thank's a lot for your responses.

  • "Avoid reassigning parameters such as 'myString'" What kind of error is it?

    This is the method where the compiler gives me an error that I'm not able to understand...
         private String removeQuotes(String myString) {
              myString.trim();
              if (myString.startsWith("\"")) {
                   myString = myString.substring(1);
              if (myString.endsWith("\"")) {
                   myString = myString.substring(0, myString.length() - 1);
              return myString;
         }What's the problem? o_O
    Message was edited by:
    Lukyan

    Are you sure? I try to put the whole class (it's not huge):
    public class SearchResultFactory {
         private String[] header;
         private String          stringToParse;
         private Iterator     it;
         private IIssueRepositoryLocation location;
         public SearchResultFactory(Bugzilla220RepositorySession session) {
            super();
            location = session.getLocation();
         public void parse(InputStream stream, ISearchResultCollector sc) throws IOException {
              CSVParser parser = new CSVParser();
              BufferedReader reader = new BufferedReader(new InputStreamReader(stream));
              int i = 0;
              int rowLength = 0;
              // read first row (column description) and check length
              stringToParse = reader.readLine();
              if (stringToParse != null) {
                   it = parser.parse(stringToParse);
                   while (it.hasNext()) {
                        it.next();
                        rowLength++;
                   header = new String[rowLength];
                   it = parser.parse(stringToParse);
                   while (it.hasNext()) {
                        header[i] = removeQuotes((String) it.next());
                        i++;
                   String[] row;
                   stringToParse = reader.readLine();
                   while (stringToParse != null) {
                        it = parser.parse(stringToParse);
                        row = new String[rowLength];
                        i = 0;
                        while (it.hasNext()) {
                             row[i] = removeQuotes((String) it.next());
                             i++;
                        reportRow(sc, row);
                        stringToParse = reader.readLine();
         private void reportRow(ISearchResultCollector sc, String[] row) {
              BasicBugReport bug = new BasicBugReport();          
              bug.setId(Integer.parseInt(row[0]));
              bug.setRepositoryLocation(location);
              for (int i = 1; i < row.length; i++) {
                   IIssueAttributeDescriptor descr = BugzillaAttributes.getAttributeDescriptor(header);
                   if (descr != null && descr.getValueType() == TextAttribute.class) {
                        TextAttribute ta = new TextAttribute(row[i]);
                        bug.setAttribute(descr, ta);
                   if (descr != null && descr.getValueType() == UserAttribute.class) {
                        UserAttribute ua = new UserAttribute(new User(row[i], row[i]));
                        bug.setAttribute(descr, ua);
    if (descr == null) {
    IIssueFolder folder = getFolder(header[i], row[i]);
    if (folder != null) {
    bug.addParentIssueFolder(folder);
    bug.setState(ISyncState.PARTLY_SYNCHRONIZED);
              sc.reportResult(bug);
    private IIssueFolder getFolder(String ident, String name) {
    if (ident.equals("component")) {
    return new Component(name);
    if (ident.equals("product")) {
    return new Product(name);
    if (ident.equals("version")) {
    return new Version(name);
    if (ident.equals("target_milestone")) {
    return new TargetMilestone(name);
    return null;
         private String removeQuotes(String myString) {
              myString.trim();
              if (myString.startsWith("\"")) {
                   myString = myString.substring(1);
              if (myString.endsWith("\"")) {
                   myString = myString.substring(0, myString.length() - 1);
              return myString;
    However the compiler gives me the error on the method "removeQuotes"... so?

  • HT4221 Is it a concern that a software company such as Apple wouldn't automatically support multiple sort keys for photo albums (such as filename, last modified, date taken, etc.)?!

    Other than 3rd party apps, has anyone found a work-around for Apple's goofy album sort order limitation?

    That's a comment in the file. It has no effect at all.

Maybe you are looking for

  • Problem with matchcode in alv for specific field

    Hi, I have created a customer specific data element ZE_CONFTYPE, with a customer specific domain, and in this domain I have defined a value range with 3 possible single values (partial, final, automatic). Later, I have defined a field: CTYPE type ZE_

  • Getting Dynamic Error Text for Error Handling in BPM

    Hello, is there any way to get the error message or further details on an exception handler in BPM? I would like to pass the detailed error description of the error that has happened in BPM to an alert using a separate Alert container variable. Is th

  • Why does iPhoto crash so often when I am trying to assign faces?

    I have a 15" MacBook Pro with Retina Display. I cannot figure out why iPhoto crashes so often. I have rebuilt the library several times. I have transferred the library to a different hard drive and then opened the library under a different user accou

  • Add failed. [4911] Cannot connect to License Manager

    Hello I am facing a strange problem with our CCM, i cant add new phones (auto registration or manual add) although i still have 82 DLU's free Always getting the error Add failed. [4911] Cannot connect to License Manager I have tried restarting the Ca

  • Handling Batch Input errors in workflow

    Greetings Friends, I got a Subworkflow (Pa. process) to get aproves to unblock a Salesdocument. After everyone aproves it, the process return to my main-workflow for a Batch input inside in a background task. But the batch input can result in somekin