Request parameters not decoded in UTF-8 format

Hi All,
I've a spring mvc application hosted in tomcat.But when I make a get request to this application giving japanese characters as parameters , the servlet decodes it in ISO-8859-1 fomat, due to which a search functionality is failing.
Is there any way to specify the servlet for decoding the request parameters in UTF-8 format?
I Tried adding the URIEncoding="UTF-8" attribute in Connector tag in server.xml of the tomcat server where my application is hosted, but still -ve results.
Any help?

This link may help you:
http://wiki.apache.org/tomcat/FAQ/CharacterEncoding
The change you made is indeed documented:
http://tomcat.apache.org/tomcat-7.0-doc/config/http.html
so if that doesn't work, you'll have to direct your question to a Tomcat forum.

Similar Messages

  • Encoded characters in URL request string not decoded correctly

    When I make a GET request with the British Pound Symbol in one of the paramters, that parameter is either not there if the pound (%A3) sign is first, or truncated in my servlet. For Example:
              ValidateAmount.jsp?quantity=2&chargeAmount=%A312.2&chargeUnitType=R
              chargeAmount=null in above example
              ValidateAmount.jsp?quantity=2&chargeAmount=123-%A312.2&chargeUnitType=R
              chargeAmount=123- in the above example.
              When I look at the query string in the servlet, everything looks as it should, but I can't get the request parameters correctly.
              I have tried setting the Character Encoding to "UTF-8" in several places to no avail. I am using Weblogic 7.0 SP2 on a Windows 2000 machine. I am using Internet Explorer 6. How do I fix this?
              

    I cannot reproduce this using a test form I created: https://files.acrobat.com/a/preview/e6b390e1-625c-4f59-86c5-c2ca07998279
    Does the same thing happen with the form above?  If not, can you share your form with us: http://forums.adobe.com/thread/1408375

  • CreateAuthenticatedSessionToken: The signature of the request does not match the request parameters

    I'm creating an app using the SODA Architecture. 
    I could successfully create an app and make the client to authorize it. 
    Result of newApplicationCreationInfo:
    <?xml version="1.0" encoding="UTF-8"?>
    <response>
    <status>
    <code>0</code>
    </status>
    <wc:info xmlns:wc="urn:com.microsoft.wc.methods.response.NewApplicationCreationInfo">
    <app-id>4417587e-46d1-49ee-a0fa-50dbfdcf932c</app-id>
    <shared-secret>gBksYDAqcuAUXK+zyvfFW9F0sy8nchwnplJ6K7aKmAM=</shared-secret>
    <app-token>AiAAANDl....A5b9fxVIlXEloouci6jGhY/A==</app-token>
    </wc:info>
    </response>
    I'm using the app-token to build the redirect url, and I get to authorize the new app. 
    then, using the new child app id and the shared-secret I built the 
    CreateAuthenticatedSessionToken:
    <?xml version="1.0" encoding="UTF-8"?>
    <wc-request:request xmlns:wc-request="urn:com.microsoft.wc.request">
    <header>
    <method>CreateAuthenticatedSessionToken</method>
    <method-version>2</method-version>
    <app-id>4417587e-46d1-49ee-a0fa-50dbfdcf932c</app-id>
    <language>en</language>
    <country>US</country>
    <msg-time>2013-01-01T00:00:00Z</msg-time>
    <msg-ttl>1800</msg-ttl>
    <version>2.0.0.0</version>
    </header>
    <info>
    <auth-info>
    <app-id>4417587e-46d1-49ee-a0fa-50dbfdcf932c</app-id>
    <credential>
    <appserver2>
    <hmacSig algName="HMACSHA256">PcW4f9krD1O43O4JGBGEkqDlpatFIUUQY9JejHji0XA=</hmacSig>
    <content>
    <app-id>4417587e-46d1-49ee-a0fa-50dbfdcf932c</app-id>
    <hmac>HMACSHA256</hmac>
    <signing-time>2013-12-17T14:19:58.623Z</signing-time>
    </content>
    </appserver2>
    </credential>
    </auth-info>
    </info>
    </wc-request:request>
    Being hmacSig value the encryption of "<content>....</content>" using shared-secret value as private key:
    hmacSig = Encodingutil.base64Encode(Crypto.generateMac('hmacSHA256', Blob.valueOf(body), Blob.valueOf(sharedSecret)))
    this returns an error code 11: The signature of the request does not match the request parameters.
    I'm using the following endpoint: https://platform.healthvault-ppe.com/platform/wildcat.ashx
    Also the redirection url I received after authorizing the app contains the following: 
    https://<MY_URL>/?gws_rd=cr&ei=h5ewUuKLJa7IsASc4YHIAw I'm not using this parameters, if that helps.
    Any hint will be greatly appreciated.
    UPDATE: I already checked the HMAC encoding using a third party service and it returned the same as my app

    I figured this out (God bless Pair Programming):
    I was signing incorrectly: 
    On the newApplicationCreationInfo:
    My Shared Secret is : gBksYDAqcuAUXK+zyvfFW9F0sy8nchwnplJ6K7aKmAM=
    But BEFORE hashing the "<content>...</content>" i need to decode my secret that is:
    hmacsig = calculateHMAC256(content, sharedSecret.decodeBase64())
     

  • Files placed were not in UTF-8 format

    Hi Experts,
    In our project we have a pass through(no IR part) Interface from Source -
    >>PI -
    >>Target(where both Source and Target are File servers).PI should pick the file and place it in Target Directory by converting into UTF-8 format.For this we used File Type as Text and File Encoding as UTF-8 in the Receiver File channel.
    Recently the Target file server migrated to UNIX OS from WINDOWS OS and nothing was changed in PI but after the migration the Target system is facing an error saying "File is not in UTF-8 format"
    Previous when the OS is windows PI placed the files in UTF-8 format only but now after the OS migration to UNIX PI is placing ANSI files eventhough we are maintaining File Type as Text and File Encoding as UTF-8 in the Receiver File channel.
    Can anyone say how to overcome this problem and convert the files into UTF-8 and place in the Target Directory.
    Thanks and Regards,
    Prajwal Kumar

    Hi Shabarish,
    Can you please explain a bit more about issue with the line feeds.
    and also please let me know what should I check with the end system.
    Will the module help us to convert the file into UTF-8 format..?
    Thanks for your reply.
    Regards,
    Prajwal

  • IDoc to File - Russian Characters not in UTF-8 format - File Receiver

    Hello,
    My scenario is Idoc to File. My SAP sender system is a Unicode system and my RFC connection to XI is also set to a unicode connection. My idoc is sent to XI OK and whenever I look at the payload in SXMB_MONI, I see the Russian characters OK, but the problem is when the file gets created.
    My receiver system wants the file in UTF-8 format.  When the file gets created, the Russian characters are not in UTF-8 encoding format. For example, the Russian chars look like (but without the spaces inbetween): Ð # Ð µ Ñ # Ð ¶ Ð ° Ñ # Ð µ Ð » Ñ ...
    Instead, the chars should look like: Держатель
    My file type in my file receiver comm channel is binary and I am also using the AF_Modules/XMLAnonymizerBean with anonymizer.encoding of utf-8.
    Can someone please help me determine the problem?
    Thank you,
    Rhonda

    Hi Rhonda,
    Hope you have set the following for your file receiver adapter :
    1. Transfer Mode is set to Binary,
    2. File Type Text,
    3. Encoding ISO-8859-1( for Western European Latin ).
    Inorder to recognize russian Character, try as follows :
    Your sender idoc after coming into Pi has XML encoding declaration 'UTF-8'.
    Write a simple XSLT mapping to change the value of the attribute "encoding" to "ISO-8859-1" in the output XML of message mapping . Include this XSLT map as the second mapping step in your interface mapping.
    First step in your interface mapping will be your already existing message mapping.
    An example of the XSL code :
    <?xml version='1.0'?>
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output method='xml' encoding='ISO-8859-1' />
    <xsl:template match="/">
    <xsl:copy-of select="*" />
    </xsl:template>
    </xsl:stylesheet>
    Iam not sure whether Russian language encoding has ISO-8859-2 (Eastern European Latin) or
    ISO-8859-1( for Western European Latin )...pls check out !
    or you can also do java mapping instead of above mentioned xslt mapping  if you are comfortable with java code !
    Cheers,
    Ram.

  • I hired a commercial artist to create a color image for the cover of a self published book. I want a black and white image for the inside. The commercial artist has not responded to this request. How do I determine the format of the color image, I'm guess

    I hired a commercial artist to create a color image for the cover of a self published book. I want a black and white image for the inside. The commercial artist has not responded to this request. How do I determine the format of the color image, I'm guessing it's Illustrator's formatting but I don't know. How can I find out if Illustrator will open the file and allow alterations? The image opens only in Apple's Pages software?

    rons,
    It seems that all you have is a raster image, presumable PNG24 or JPEG, in RGB.
    It may have been created as raster artwork in Photoshop, or it may have been created as vector artwork with the help of Illy, or as a mixture of vector and raster artwork in either application, or both combined.
    If you just need to have a raster representation in black and white based on the current colour image, you may try this, in a new RGB document (View>Smart Guides are your friends):
    1) File>Place the image (you may tick Link or untick and have it embedded);
    2) Create a rectangle with black fill (R = G = B = 0), at least as large as the image, and place it behind the image (you may ClickDrag with the Rectangle Tool between opposite corners, then Ctrl/Cmd+X+B);
    3) Select all and in the Transparnecy palette flyout click Make Opacity Mask with both Clip and Invert Mask ticked.

  • Portal does not retain HTTP request parameters

    We are trying to do some basic pagination functionality using JSP tags. The problem that we are having is the JSP tag places request parameters in the URL that it creates. The tag then expects that these parameters will be available in the request when the page is rendered after the link is clicked. This JSP tag works great with normal pageflows but with the Portals concept of nested pageflows this no longer works.
    The problem is that these request parameters are not available in the request but only in the scoped request. How can the JSP tag in the JSP page get these parameters out of the request object?
    I can see the parameters in the ScopedRequest but not in the normal request. This is a major issue since the JSP tag has no knowledge (nor should it have to) of the concept of a Scoped request. The pageflow can access the parameters in the scoped request but there is no way to set parameters in a request.
    Is there a patch that places the parameters in the real request? Is there a work around for this?
    Thanks,
    Chris

    A couple options -
    1. Try using the OuterRequest
    2. You can prefix the portletinstance to the request parameters to get them from the main request object
    3. Try using the BEA grid for pagination OOTB.
    Hope this helps :)
    Kunal

  • How to obtain POST request parameters

    Does anyone know how to obtain POST request parameters after form submit like we can get GET parameters after form submission via {module_url, parameterName}?

    "garry.b" <[email protected]> wrote in
    message
    news:gnndbf$i2q$[email protected]..
    > Hi,
    >
    > When using AS3 to generate an HTTP POST request:
    >
    > var service:HTTPService = new HTTPService ();
    > service.url = "
    http://localhost:9090/service";
    > service.method = "post";
    > // service.request = {itemId: "12345"};
    > service.send ({itemId: "12345"});
    >
    > my CherryPy web server complains about unexpected body
    parameters:
    >
    > HTTPError: (400, 'Unexpected body parameters: itemId')
    >
    > Using Firebug's Network display, its Post tab shows the
    following content:
    >
    > Referer:
    http://localhost:8080/log/log-1.0-SNAPSHOT.swf
    > Content-type: application/x-www-form-urlencoded
    > Content-length: 12
    >
    > itemId=12345
    >
    > which looks very strange to me as I would expect the
    Referer, etc.,
    > request
    > headers to show up in the Request Headers section and
    not as POST body
    > content.
    > While this could be some Firebug issue, I think the
    request message is
    > really
    > formatted incorrectly. When the web server gets the
    request, it does
    > recognize
    > 'itemId' as a body parameter but then complains that
    it's unexpected.
    >
    > I've googled the error message, studied HTTPService
    examples, spent
    > several
    > hours playing with it and am stumped. Tracy Spratt
    suggested setting the
    > service 'request' to force a POST and I tried it but am
    getting the same
    > error.
    > How do I make a POST request? Can I get POST data into
    the message body?
    > Stick with URL parameters only?
    What happens if you post to the same service using an html
    form?

  • Newbie: what is the equivalent of passing request parameters?

    Hi-
    I am new to JSF. I have read many tutorials and articles. I still don't get one concept about passing parameters. Note: I don't want to store stuff in the session unless I have to.
    Let's say I have a page with a list of users. I layout the page with a panelGrid. Each row of the table has the first and last name of the user. If a user clicks on the name of a user on the user list, it should go to the user profile page. The backing bean for the user list page will be the UserListBean. It has a method called getUsers() that returns a List of User objects.
    For the View User page, I have a ViewUserBean. The ViewUserBean retrieve the entire profile for that user.
    How do I pass the user ID to the ViewUserBean? In struts, I would pass it as a request parameter (I would manually write the link URL with the userID). I know I can use the request like that in JSF, but that seems ugly. I looked at the code of the J2EE bookstore tutorial and it does a funky thing with all sorts of data stored in the session.
    What is the best way to request a page and "pass in" a userID?
    Thanks for your help.
    Adam

    I have a case on my current project very similar to your case. What you want, very simply, is an easy way to allow faces to handle URLs like http://www.domain.com/showUserDetails?userId=50
    The natural trouble is that when loading the page, there is no action to use to prefetch the User object based on the Request Parameters in JSF.
    All the solutions above either rely on the session or they are exceedingly complex. This case is actually very easy to do and is very straight forward using Managed Properties and a Request Scope bean...
    Here is the rather straight forward solution I used...
    First, make a "ShowUserDetailsBean" which represents the "logic" for this page.
    public class ShowUserDetailsBean
        /** Will point to the actual user service after dependency injection*/
        private UserService userService;
        /** Will hold the userId from the HTTP Request Parameters*/
        private String userId;
        /** Will hold a lazy loaded copy of the User object matching userId*/
        private User user;
        public void setUserService(UserService userService) {
            this.userService = userService;  //dependecy injection
        public void setUserId(String userId) {
           this.userId = userId;  //dependency injection
        /** Lazy loads the User object matching the UserId */
        public User getUser() {
            //Trap the case where the URL has no userId
            if (userId == null) return null;
            if (user == null) {
                user = userService.getUser(userId);  //Lazy Load
            return user;
    }Next, configure the managed properties in faces-config.xml
    <faces-config xmlns="http://java.sun.com/JSF/Configuration">
      <managed-bean>
        <managed-bean-name>userService</managed-bean-name>
        <managed-bean-class>foo.UserServiceImpl</managed-bean-class>
        <managed-bean-scope>application</managed-bean-scope>
      </managed-bean>
      <managed-bean>
        <managed-bean-name>showUserDetails</managed-bean-name>
        <managed-bean-class>foo.ShowUserDetailsBean</managed-bean-class>
        <managed-bean-scope>request</managed-bean-scope>
        <managed-property>
          <property-name>userService</property-name>
          <property-class>foo.UserService</property-class>
          <value>#{userService}</value>
        </managed-property>
        <managed-property>
          <property-name>userId</property-name>
          <property-class>java.lang.String</property-class>
          <value>#{param.userId}</value>
        </managed-property>
      </managed-bean>Finally, you just make your webpage as you normally would...
    <h:outputText value="#{showUserDetails.user.userId}"/>
    <h:outputText value="#{showUserDetails.user.firstName}"/>
    <h:outputText value="#{showUserDetails.user.lastName}"/>
    Now you're ready to test, so you visit the page
    http://www.domain.com/showUserDetails?userId=50
    And your user details with userId=50 appears!
    It's just that simple!
    Regards,
    Doug
    Caveat: I haven't added any sample logic to handle cases where you visit:
    http://www.domain.com/showUserDetails
    without specifying a userId. I suggest you add some basic logic to your page to handle this case more gracefully.

  • WHY? Request Parameters From Form are NULL

    I have the following process, which by the way has been working successfully for months, until just recently.
    1) User comes to JSP page to upload images through a form that has the <input type="file"> fields as well as <input type="hidden"> to hold a few essential values.
    2) User submits form, form action attribute set to go to a Servlet
    3) Servlet reads all request params and inserts the images into a database.
    I have code to read in the images...I use classes from the org.apache.commons package.
    I could only assume it was the servlet that was the problem, but doubted that because why would it work all these months than suddenly stop.
    I set up a test html page with a form and had it go to a jsp page to read the request params and print them out. To my suprise they all had NULL values.
    Which tells me that the params aren't being read from the form.
    How could this be??
    Here is some example code snippets from my test pages:
    HTML PAGE
    <html><body>
    <form name="images" action="testing_operations.jsp" enctype="multipart/form-data" method="post">
    <input type="hidden" name="Customer_Number" value="4750">
    <table>
    <tr><td>
    <input type="file" name="image1" />
    </td></tr>
    <tr><td>
    <input type="file" name="image2" />
    </td></tr>
    <tr><td>
    <input type="submit" value="submit">
    </td></tr>
    </table>
    </form>
    </body>
    </html>JSP PAGE
    String cus = request.getParameter("Customer_Number");
    out.println("cus : " + cus +"<br>");
    String image = request.getParameter("image1");
    out.println("image: " + image); 
    I'm stumped...what am I doing wrong?
    I can't continue until I get this figured out, can anybody help me with this?
    Message was edited by:
    Love2Java

    I ran my original app with the enctype and without it:
    the tomcat dos-prompt that shows exceptions lists out this below...
    org.apache.commons.fileupload.FileUploadException: Processing of multipart/form-data request failed.
    C:\jakarta-tomcat\temp\upload_00000009.tmp (The system cannot find the path specified)
    at org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:429)
    at org.apache.jsp.testing_operations_jsp._jspService(testing_operations_jsp.java:113)The code on line 113 in testing_operations.jsp is:
    List items = upload.parseRequest(request);
    and what is this .tmp file its trying to find?? I'm passing it an image off my local disk, not a .tmp file, there isn't even a temp folder in my jakarta-tomcat main folder....
    It is failing on this line because it isn't reading the request parameters sent in, thus why too when I test for the values of the params they return null.
    True, when I take out the enctype my test page will show the values, but this doesn't help me. I need that enctype attribute in there to process the images sent in through the fields.
    So where does this leave me??
    I went to the apache site for the commons upload and they have a more current version than what I'm using which is version 1.0, they have 1.1.1
    I downloaded the new version but had no success in using it, the compiler couldn't find a class I attempted to use.
    I still don't understand how this could be working and then suddenly stop.

  • EREC: From MSS Requisition request is not coming in Recruter UWL.

    hello everyone,
    we are creating Requisition request in MSS. But Request is not reaching Recruter UWL.
    We tried to find so many ways to solve this problem. We got to know that there is problem in workflow.
    we are getting follwoing error.
    Object CL_HRASR00_WF_COMPONENTS method DATAMAPPING cannot be executed
    we tried to resolve follwoing error but no success.
    finally we got reason behind this issue, workflow is using one standard auth table "t5asrauthmethod"
    with follwoing parameters
    Application=EREC
    Activity=R
    Content Type= p
    Content Group =
    and there is no entry corresponding to this, and finally we are getting error.
    please let me know which authorization object or role we have to add so that we should nt get this error.
    Thanks in advance
    jayesh Talreja

    Hello jayesh Talreja,
    I checked up in our standard system, there this entries were maintained, So please maintain the same as below:
    Client Appl.   Activity                                        Auth_Method
    004   EREC        A                                                      3
    004   EREC        D                                                      2
    004   EREC        P                                                      3
    004   EREC        R                                                      3
    004   EREC        S                                                      3
    004   EREC        W                                                      3
    004   EREC        X                                                      3
    This should be helpful.
    Best Regards,
    Deepak...

  • From MSS Requisition request is not coming in Recruter UWL.

    hello everyone,
    we are creating Requisition request in MSS. But Request is not reaching Recruter UWL.
    We tried to find so many ways to solve this problem. We got to know that there is problem in workflow.
    we are getting follwoing error.
    Object CL_HRASR00_WF_COMPONENTS method DATAMAPPING cannot be executed
    we tried to resolve follwoing error but no success.
    finally we got reason behind this issue, workflow is using one standard auth table "t5asrauthmethod"
    with follwoing parameters
    Application=EREC
    Activity=R
    Content Type= p
    Content Group =
    and there is no entry corresponding to this, and finally we are getting error.
    please let me know which authorization object or role we have to add so that we should nt get this error.
    Thanks in advance
    jayesh Talreja

    Hi,
    use TA ST01.
    1. Select to trace all Authority Objects.
    2. Set the trace to "ON".
    3. Reproduce your error.
    4. Se the trace to "OFF".
    5. evaluate the tracelog for the respective user producing the error.
    6. Filter for authority errors
    7. ????
    8. Profit!
    this ALWAYS helps
    regards, Lukas

  • Initialize managed bean from request parameters

    Hi:
    I thought this topic would be on the FAQ, but I couldn't find it. I am looking for a mean to initialize my managed bean from the query string. There must be something like:
    <h:form initializeBean=""true"" requestParameter=""id_author"" beanProperty=""#{author.id_author}"" action=""#{author.getFromDB}"" >
    </form>
    The url would be something like http://localhost:8080/protoJSF/showAuthor.jsf?id_author=5334
    And the getFromDB method would be something like
      Public void getFromDB()
         Statement stmt = cn.createStatement( ?SELECT * from author where id_author=? + getId_author() );
         ResultSet rs = stmt.executeQuery();
      }The only way I've found to perform something like this is to present a blank author form with a ''load data'' button: after pressing the button the user can see author's data and edit the data if she wants to. This two-step data screening is annoying, to say the least.
    There must be a better way.
    I beg for a pointer on how can I achieve the initializing of a managed bean with dynamic data.
    Regards
    Alberto Gaona

    You just have to read carefully the very fun 289 pages
    specification :-)Or, if 289 pages of JavaServer Faces is too much, you can get almost all of the same information from the JavaServer Pages 2.0 specification, or even the JSP Standard Tag Libraries specification :-).
    More seriously, the standard set of "magic" variable names that JavaServer Faces recognizes is the same as that reognized by the EL implementations in JSP and JSTL. Specifically:
    * applicationScope - Map of servlet context attributes
    * cooke - Map of cookies in this request
    * facesContext - The FacesContext instance for this request
    * header - Map of HTTP headers (max one value per header name)
    * headerValues - Map of HTTP headers (String array of values per header name)
    * initParam - Map of context initialization parameters for this webapp
    * param - Map of request parameters (max one value per parameter name)
    * paramMap - Map of request parameters (String array of values per parameter name)
    * requestScope - Map of request attributes for this request
    * sessionScope - Map of session attributes for this request
    * view - The UIViewRoot component at the base of the component tree for this view
    If you use a simple name other than the ones on this list, JavaServer Faces will search through request attributes, session attributes, and servlet context (application) attributes. If not found, it will then try to use the managed bean facility to create and configure an appropriate bean, and give it back to you.
    For extra fun, you can even create your own VariableResolver that can define additional "magic" variable names known to your application, and delegate to the standard VariableResolver for anything else.
    Craig McClanahan

  • Extracting Request Parameters from a POST.

    A client is POSTING some request parameters as part of its POST request.
    My servlet is getting this as part of the getInputStream.
    The contents of the inputStream received is:
    username=someUserName&password=somePassword
    Now how do I extract this username and password which is in the Body
    of the POST?
    I am trying request.getParameter("username")
    but am not getting the value of the username.
    Can some please help me as to how to get the request parameters?
    Attached is my servlet
    public class DeviceLocation extends HttpServlet {
    private static final String CONTENT_TYPE = "text/html";
    public void doGet(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
    doPost(request,response);
    public void doPost(HttpServletRequest request,
    HttpServletResponse response)
    throws ServletException, IOException {
    System.out.println("Servlet up and running...");
    InputStream requestInputStream = request.getInputStream();
    InputStreamReader isr = new InputStreamReader(requestInputStream);
    BufferedReader br = new BufferedReader(isr);
    String line = "";
    StringBuffer sb= new StringBuffer();
    while ((line = br.readLine()) != null)
    sb.append(line);
    br.close();
    System.out.println(sb.toString()); // display the input Stream
    // Display all the Request Parameters
    System.out.println("Request Method : " + request.getMethod());
    System.out.println("Host : " + request.getHeader("Host"));
    System.out.println("User Agent : " + request.getHeader("User-Agent"));
    } // End of servlet class.

    try doing it without reading in the requestInputStream first:
    public class DeviceLocation extends HttpServlet {
    private static final String CONTENT_TYPE = "text/html";
    public void doGet(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
    doPost(request,response);
    public void doPost(HttpServletRequest request,
    HttpServletResponse response)
    throws ServletException, IOException {
    System.out.println("Servlet up and running...");
    // Display all the Request Parameters
    System.out.println("username Parameter : " + request.getParameter("username"));
    System.out.println("Request Method : " + request.getMethod());
    System.out.println("Host : " + request.getHeader("Host"));
    System.out.println("User Agent : " + request.getHeader("User-Agent"));
    } // End of servlet class.

  • Crystal Reports VS 2008 "The request could not be submitted for background processing"

    Hi,
    I am going to try to explain this issue the best I can. Please let me know if you need any other information or have any ideas as I have exhausted my resources. We have an ASP.NET application that has highly formatted crystal reports in them that the users can export as PDFs. All reports export without a problem when the application is run off of our desktops. The reports use a sql server authenticated user, executing stored procedures, and each subreport is linked by the main parameter. We are using Visual Studio 2008 version 3.5 SP1 with Crystal Reports Basic for Visual Studio 2008 on Windows 7 Enterprise SP1. We have designed the reports in Crystal Reports XI Release 2 (11.5.12.1838) and imported them into the ASP.NET application. When trying to export the reports as PDFs from the development or production servers, we get the error message below for some, not all, reports:
    System.Runtime.InteropServices.COMException (0x800002AD):  Error in File C:\Windows\TEMP\KeyAccountProfile {9FA5C095-77A2-425D-AC6B-8BB66B435336}.rpt: The request could not be submitted for background processing.     at CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass.Export(ExportOptions pExportOptions, RequestContext pRequestContext)     at CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext)
    We have cleared the temp directory on the servers before exporting and are still receiving the error. We have installed Crystal Reports Basic Runtime for Visual Studio (10.5.2.0) on both servers. I have identified the underlying issue to one stored procedure/subreport that is causing the report to fail. The weird thing is, when we change the connection to point to development, the stored procedure/subreport runs fine for the report that generates an error when run from production, and the data is the exact same. I have tried rebuilding the subreport but the error still appears even though it runs fine for other reports.
    I have been through the document below, and othe similar issues in the forums, but still have not found a resolution. I was trying to use the "modules" application put since this is an ASP.NET application I am unsure of which executable I should be looking at.
    http://www.sdn.sap.com/irj/boc/go/portal/prtroot/docs/library/uuid/50a6f5e8-8164-2b10-7ca4-b5089df76b33?QuickLink=index&overridelayout=true&36837934524320
    Thanks in advance for your assistance,
    Brad Hood
    06-26-14
    OK.. I did some more investigating on this today. I have found out when I move the sub report that generates the error under another sub report, the sub report in question runs without issue. But when I try and move the sub report that produces the error above any other sub report, the error still generates. Can this get any weirder.... FYI.. there is a total of ten sub reports on this report.

    Hi Brad
    I'm not sure that Modules would show us anything in this case, so let's try a few other things:
    1) Make sure you are using SP 1 for Crystal Reports Basic Runtime for Visual Studio:
    Crystal Reports for VS 2005 and VS 2008 Updates & Runtime Downloads
    2) Seeing as this works on dev, this may be some db inconsistency so enabling the report option "Verify on 1st Print" will be a good idea.
    3) Double check the database client and make sure the same client is used on dev and deployed systems. Actually I take back my Modules negative as this is where it may prove useful. Once you have the Modules logs, look at who is loading the crpe32.dll, then look at that process and see the client dlls.
    4) Check the printer driver; see if there are any updates. Try a different printer driver.
    Ten subreports is not too bad, though not that good either as you are loading the report engine with at minimum 11 simultaneous reports (each subreport is considered to be a report). If a subreport is in a details section and the details section returns a 100 records, you are running 100 + 1 reports. This may lead to memory issues, which may lead to the error.
    If I was a betting man, I'd put most of my money on the printer driver (based on your last addition to your post). What ever money I had left would go to some database issue (be it actual data or client related).
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

Maybe you are looking for

  • SAP portal 7.3 KM content - 500 Internal Server Error

    Getting 500 Internal Server Error for KM content. Here is error in Log file. Cannot process an HTTP request to servlet [prt] in [irj] web application. [EXCEPTION] java.lang.NoClassDefFoundError: com/sap/ip/bi/km/repository/manager/skwf/bw/PropertyMap

  • Problem with scriplet variable as tag attribute

              This question was already treated here but it doesn't help me.           I have a .jsp page where I am using a custom tag written by me like this :           <%! String thecategory= request.getParameter("category");%>           <gamemarket:

  • How to create data_block from procedure ?

    hi all can anyone to help me : how to create data_block from procedure ? i want to join 2 or 3 table and use order by then show some field in my form i can not use view because order by can not use in view please send sample code for this procedure t

  • Query,insert,update and delete in forms6i

    Hi i am new to forms6i, when i tried to update or delete the record it is giving error "FRM-40508 Oracle error: unable to insert record". when i hardcode the update statement it is executing fine. i have checked my sql statement at alert box, it is f

  • DCS2 files with TIFF preview

    Since getting CS3 (13.0.2) I've found that it refuses to place a DCS2 file that has the Preview set to 8-bit TIFF. CS3 displays a message saying something about duplicate spot colors and not being able to read TIFF files. The same file places fine in