HTTP GET method error

I've created a simple web page that contains a text box in which the user enters an URL. And also have a servlet to take this address and do something "useful" with it. The Servlet has a doPost method to get this address, and the web page also has the corresponding method
(<FORM method="POST" ACTION="../fyp/AddressServlet" >).
I'm using a j2ee server, which runs fine, as does the deploytool.
However, when I attempt to open the web page in my browser, I get the following error,
"HTTP Status 405-HTTP method GET is not supported by this URL"
I don't know why I'm getting a GET method error, when it's a POST method I'm using.
Any help would be appreciated,
thanks,
ahhfor

Hi !
You're using the POST method to call the servlet when you submit the HTML page. However, when you try to load your HTML page into the browser, this is done with GET !
Check your server.xml file in the /conf directory and see if your application context is correctly defined. And then check the web.xml file in your application's WEB-INF directory. Finally, check your path to the servlet in your HTML file.

Similar Messages

  • Retrieving image using HTTP GET method?

    I want to send a image to a client browser. My servlet's HTML response to the client browser contains the <img src="..."> tag. The client browser uses the HTTP GET method to call my servlet's DoGet method, and I must transfer the desired image to the client browser in this DoGet method at servlet. Now, the problem is that, what should be the source URL in the image(img) tag that is present in my servlet response to client?
    For eg: the img tag should be like this
    <img src="http://<hostname>:<portname>/<servletname>/...?[var1=value1]">
    Now at the ellipsis that you see in the above source URI, I want to write the type of image file (something.jpg) ,so the browser knows what kind of image file it is.
    To sum it up...how to get the image using DoGet method and <img src="...">
    Regards,
    Amit

    To give you a better idea on what's happening, read the RFC:
    (HTTP/1.0) http://ftp.ics.uci.edu/pub/ietf/http/rfc1945.html
    (HTTP/1.1 - compressed data)
    http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html
    If you for example execute the command by telnetting to port 80 on a server:
    GET http://somewhere.com/some.jpg HTTP/1.0<cr>
    <cr>You will get this header:
    Trying 217.22.64.73...
    Connected to xxx.xxx.xxx
    Escape character is '^]'.
    HTTP/1.1 200 OK
    Date: Fri, 01 Aug 2003 12:36:30 GMT
    Server: Apache/1.3.27 (Unix) FrontPage/5.0.2.2510
    Last-Modified: Tue, 15 Jul 2003 03:11:52 GMT
    ETag: "268de8-2fc4-3f1370f8"
    Accept-Ranges: bytes
    Content-Length: 12228
    Connection: close
    Content-Type: image/jpegWatch the last part, that's what the setContentType does, normally the content-type defaults to text/html in a webserver.
    A webserver usually maintains a list of file extensions by which it will determine the correct MIME type to emit, when a resource is retrieved.
    The browser reads the header, and decides what to do with it, in combination with (X)HTML markup.
    Greets.

  • No Getter Method Error

    I had a working JSP/Struts application. I added a new data page and struts forward, and started getting:
    No getter method for property Fullname6 of bean org.apache.struts.taglib.html.BEAN
    errors.
    I have confirmed that the Fullname6 is referenced in the UIModel.xml file. My changes were only to add a read-only table to the jsp that is failing, so I don't see how that could be causing this error. I made no changes to the struts action that forwards to this page.
    What is going on here? Anybody have any ideas?

    I know about the link that you've sent.
    We don't have a specific form bean for this, as we have 'DataForm' which takes care of get/setter method for the attributes. I am using ADF, JSP, Struts and parameterized where clause in my VO. I do not know how to procede as it doesn't allow me to create the form bean.
    Thanks,

  • Authentication syntax for HTTP GET method using TCP functions in Labview on linux

    Hi,
    Currently, I am trying to communicate to web server. I have Labview installed on a Linux machine. The HTTP function blocks and other labview functions do not work. Hence, I am building a HTTP code string using TCP functions (port 80) to talk to the web server. I am successfully able to fetch a response from web sites (example www.ni.com) from my vi. However, when I try to communicate to my web server, it does not work. It requires an authentication. I am able to open http://ipaddress in my browser from my machine using username and password. Can someone help with Authentication string requirement for GET method?
    so far the string is:
    GET /index/ HTTP/1.1
    Host: http://xx.xx.xx.xx

    An easy option would be to try http://userassword@server syntax for the URL.
    Else I posted a Twitter fetcher once (won't work anymore since Twitter moved to Oauth authentication) at LAVA. Based on code from @cloew.
    The code is part of this LLB.
    Ton
    Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
    Nederlandse LabVIEW user groep www.lvug.nl
    My LabVIEW Ideas
    LabVIEW, programming like it should be!

  • HANDLING HTTP "GET"  IN SENDER ADAPTER

    Hi,
    I have a Scenario where I have to use HTTP GET Adapter  to get data from a website daily to PI and Post the data from PI to SAP ECC.On the receiver end Idoc is being used.I need help on what to use (From sdn I came to know that Java Proxy or Adapter Module can be used ) and how to configure the sender adapter in this scenario.In case of Adpater module the steps needed to configure the scenario would be helpful.In case of Java Proxy sample code that would suit the scenario would be appreciated.

    Only 7.3 version (Latest) supports HTTP GET method. All previous versions support only POST.
    In your case java proxy is better choice.
    Refer these standard links.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/7d4db211-0d01-0010-1e8e-9b07fc2113ab?quicklink=index&overridelayout=true
    http://wiki.sdn.sap.com/wiki/display/Java/JavaProxyChangesinPI7.1fromPI7.0
    http://help.sap.com/saphelp_nwesrce/helpdata/en/86/58cd3b11571962e10000000a11402f/content.htm
    Basically you have to create java proxy for the outbound (sender) interface and use those proxy(stub) objects to code in java. Refer sender java proxy in the above link.

  • Is it possible to use HTTP GET navigation links?

    Hi,
    I'm learing JSF technology, I found it very powerful.
    But I'm not able to understand how generate navigation links that use HTTP GET method. Do anyone Help me?
    It seems impossilbe, but I don't want believe that it is true.
    Building a web site using only HTTP POST methods is out of the W3C for Web Site suggestions.
    A "good" serach engine for example dosen't take in cosideration HTTP POST Links.
    I hope that someone tell me how generate using JSF HTTP GET links for navigation.
    Bye

    Balusc, thanks for you help.
    The blog is very good!
    I make help classe (FacesUtils) who you show in blog, but not find the property on request context map, but I use the param variable on faces-config.xml and Request Managed Bean and all work fine.
    thanks.
    I'm wrong where I think the Request Managed Bean is create for each request on all pages, the Request Managed Bean is create only on requeste page reference its.
    Parte of my faces-config where I put the Request Managed Bean:
    <managed-bean>
              <managed-bean-name>uuidParamManager</managed-bean-name>
              <managed-bean-class>
                   br.srv.full.virtual.managers.request.UUIDParamManager
              </managed-bean-class>
              <managed-bean-scope>request</managed-bean-scope>
                   <managed-property>
                   <property-name>loginManager</property-name>
                   <property-class>
                        br.srv.full.virtual.managers.LoginManager
                   </property-class>
                   <value>#{loginManager}</value>
              </managed-property>
              <managed-property>
                   <property-name>uuid</property-name>
                   <property-class>java.lang.String</property-class>
                   <value>#{param.UUID}</value>
              </managed-property>
         </managed-bean>Where UUIDParamManager is create on request its receive first the LoginManager Instance, and later its receive the UUID param.
    I put the prototype of project on virtual.full.srv.br.
    thanks.

  • Getting HTTP 403/500 errors when accessing SharePoint 2010 pages

    Hi,
    I'm getting intermittent HTTP 403/500 errors when accessing SharePoint Foundation 2010 pages.
    When it happens, any SharePoint pages I access I get a HTTP 403 error (example: /sites/test/default.aspx) . If I don't specify a page, I get a HTTP 500 error (example: /sites/test/). What's odd is that I have non-SharePoint .NET applications running on the
    same server under the "_layouts" directory and those still work just fine.
    After recycling the IIS application pool, it starts to work again, but sometime won't stay up very long.
    Does anyone encounter this problem before?
    TIA
    Also, I'm hoping to understand what the "Microsoft.SharePoint.Library.SPRequest.GetFileAndMetaInfo" method does to help me track down this issue. If you have any info on what the above method is doing, I really appreciated.
    EVENT LOG
    Nothing
    ULS LOG
    System.Runtime.InteropServices.COMException: Cannot complete this action.  Please try again.   
     at Microsoft.SharePoint.Library.SPRequestInternalClass.GetFileAndMetaInfo(String bstrUrl, Byte bPageView, Byte bPageMode, Byte bGetBuildDependencySet, String bstrCurrentFolderUrl, Int32 iRequestVersion, Boolean& pbCanCustomizePages, Boolean& pbCanPersonalizeWebParts,
    Boolean& pbCanAddDeleteWebParts, Boolean& pbGhostedDocument, Boolean& pbDefaultToPersonal, Boolean& pbIsWebWelcomePage, String& pbstrSiteRoot, Guid& pgSiteId, UInt32& pdwVersion, String& pbstrTimeLastModified, String& pbstrContent,
    Byte& pVerGhostedSetupPath, UInt32& pdwPartCount, Object& pvarMetaData, Object& pvarMultipleMeetingDoclibRootFolders, String& pbstrRedirectUrl, Boolean& pbObjectIsList, Guid& pgListId, UInt32& pdwItemId, Int64& pllListFlags,
    Boolean& pbAccessDenied, Guid& pgDocid, Byte& piLevel, UInt64& ppermMask, Object& pvarBuildDependencySet, UInt32& pdwNumBuildDependencies, Object& pvarBuildDependencies, String& pbstrFolderUrl, String& pbstrContentTypeOrder)  
     at Microsoft.SharePoint.Library.SPRequest.GetFileAndMetaInfo(String bstrUrl, Byte bPageView, Byte bPageMode, Byte bGetBuildDependencySet, String bstrCurrentFolderUrl, Int32 iRequestVersion, Boolean& pbCanCustomizePages, Boolean& pbCanPersonalizeWebParts,
    Boolean& pbCanAddDeleteWebParts, Boolean& pbGhostedDocument, Boolean& pbDefaultToPersonal, Boolean& pbIsWebWelcomePage, String& pbstrSiteRoot, Guid& pgSiteId, UInt32& pdwVersion, String& pbstrTimeLastModified, String& pbstrContent,
    Byte& pVerGhostedSetupPath, UInt32& pdwPartCount, Object& pvarMetaData, Object& pvarMultipleMeetingDoclibRootFolders, String& pbstrRedirectUrl, Boolean& pbObjectIsList, Guid& pgListId, UInt32& pdwItemId, Int64& pllListFlags,
    Boolean& pbAccessDenied, Guid& pgDocid, Byte& piLevel, UInt64& ppermMask, Object& pvarBuildDependencySet, UInt32& pdwNumBuildDependencies, Object& pvarBuildDependencies, String& pbstrFolderUrl, String& pbstrContentTypeOrder)

    These are the associated lines in the ULS.
    01/07/2014 02:59:24.33    w3wp.exe (0x1988)    0x10A4    SharePoint Foundation    Logging Correlation Data    xmnv    Medium    Name=Request (GET:https://XXXXXXXXXXXXXXXXXXXXX)  
     e8e08e76-1b88-4913-bce6-b9300e7b63f6
    01/07/2014 02:59:24.48    w3wp.exe (0x1988)    0x10A4    SharePoint Foundation    General    8kh7    High    Cannot complete this action.  Please try
    again.    e8e08e76-1b88-4913-bce6-b9300e7b63f6
    01/07/2014 02:59:24.48    w3wp.exe (0x1988)    0x10A4    SharePoint Foundation    Monitoring    b4ly    High    Leaving Monitored Scope (PostResolveRequestCacheHandler).
    Execution Time=6.79828022835305    e8e08e76-1b88-4913-bce6-b9300e7b63f6
    01/07/2014 02:59:24.48    w3wp.exe (0x1988)    0x10A4    SharePoint Foundation    Runtime    tkau    Unexpected    System.Runtime.InteropServices.COMException:
    Cannot complete this action.  Please try again.    at Microsoft.SharePoint.Library.SPRequestInternalClass.GetFileAndMetaInfo(String bstrUrl, Byte bPageView, Byte bPageMode, Byte bGetBuildDependencySet, String bstrCurrentFolderUrl, Int32
    iRequestVersion, Boolean& pbCanCustomizePages, Boolean& pbCanPersonalizeWebParts, Boolean& pbCanAddDeleteWebParts, Boolean& pbGhostedDocument, Boolean& pbDefaultToPersonal, Boolean& pbIsWebWelcomePage, String& pbstrSiteRoot, Guid&
    pgSiteId, UInt32& pdwVersion, String& pbstrTimeLastModified, String& pbstrContent, Byte& pVerGhostedSetupPath, UInt32& pdwPartCount, Object& pvarMetaData, Object& pvarMultipleMeetingDoclibRootFolders, String& pbstrRedirectUrl,
    Boolean& pbObjectIsList, Guid& pgListId, UInt32& pdwItemId, Int64& pllListFlags, Boolean& pbAccessDenied, Guid& pgDocid, Byte& piLevel, UInt64& ppermMask, Object& pvarBuildDependencySet, UInt32& pdwNumBuildDependencies,
    Object& pvarBuildDependencies, String& pbstrFolderUrl, String& pbstrContentTypeOrder)     at Microsoft.SharePoint.Library.SPRequest.GetFileAndMetaInfo(String bstrUrl, Byte bPageView, Byte bPageMode, Byte bGetBuildDependencySet,
    String bstrCurrentFolderUrl, Int32 iRequestVersion, Boolean& pbCanCustomizePages, Boolean& pbCanPersonalizeWebParts, Boolean& pbCanAddDeleteWebParts, Boolean& pbGhostedDocument, Boolean& pbDefaultToPersonal, Boolean& pbIsWebWelcomePage,
    String& pbstrSiteRoot, Guid& pgSiteId, UInt32& pdwVersion, String& pbstrTimeLastModified, String& pbstrContent, Byte& pVerGhostedSetupPath, UInt32& pdwPartCount, Object& pvarMetaData, Object& pvarMultipleMeetingDoclibRootFolders,
    String& pbstrRedirectUrl, Boolean& pbObjectIsList, Guid& pgListId, UInt32& pdwItemId, Int64& pllListFlags, Boolean& pbAccessDenied, Guid& pgDocid, Byte& piLevel, UInt64& ppermMask, Object& pvarBuildDependencySet, UInt32&
    pdwNumBuildDependencies, Object& pvarBuildDependencies, String& pbstrFolderUrl, String& pbstrContentTypeOrder)    e8e08e76-1b88-4913-bce6-b9300e7b63f6
    01/07/2014 02:59:24.48    w3wp.exe (0x1988)    0x10A4    SharePoint Foundation    General    8kh7    High    Cannot complete this action.  Please try
    again.    e8e08e76-1b88-4913-bce6-b9300e7b63f6
    01/07/2014 02:59:24.48    w3wp.exe (0x1988)    0x10A4    SharePoint Foundation    General    8kh7    High    Cannot complete this action.  Please try
    again.    e8e08e76-1b88-4913-bce6-b9300e7b63f6
    01/07/2014 02:59:24.50    w3wp.exe (0x1988)    0x10A4    SharePoint Foundation    General    8kh7    High    Cannot complete this action.  Please try
    again.    e8e08e76-1b88-4913-bce6-b9300e7b63f6
    01/07/2014 02:59:24.50    w3wp.exe (0x1988)    0x10A4    SharePoint Foundation    General    8kh7    High    Cannot complete this action.  Please try
    again.    e8e08e76-1b88-4913-bce6-b9300e7b63f6
    01/07/2014 02:59:24.50    w3wp.exe (0x1988)    0x10A4    SharePoint Foundation    General    8kh7    High    Cannot complete this action.  Please try
    again.    e8e08e76-1b88-4913-bce6-b9300e7b63f6
    01/07/2014 02:59:24.50    w3wp.exe (0x1988)    0x10A4    SharePoint Foundation    General    8kh7    High    Cannot complete this action.  Please try
    again.    e8e08e76-1b88-4913-bce6-b9300e7b63f6
    01/07/2014 02:59:24.50    w3wp.exe (0x1988)    0x10A4    SharePoint Foundation    General    8kh7    High    Cannot complete this action.  Please try
    again.    e8e08e76-1b88-4913-bce6-b9300e7b63f6
    01/07/2014 02:59:24.50    w3wp.exe (0x1988)    0x10A4    SharePoint Foundation    General    8kh7    High    Cannot complete this action.  Please try
    again.    e8e08e76-1b88-4913-bce6-b9300e7b63f6
    01/07/2014 02:59:24.51    w3wp.exe (0x1988)    0x10A4    SharePoint Foundation    General    8kh7    High    Cannot complete this action.  Please try
    again.    e8e08e76-1b88-4913-bce6-b9300e7b63f6
    01/07/2014 02:59:24.51    w3wp.exe (0x1988)    0x10A4    SharePoint Foundation    General    8kh7    High    Cannot complete this action.  Please try
    again.    e8e08e76-1b88-4913-bce6-b9300e7b63f6
    01/07/2014 02:59:24.51    w3wp.exe (0x1988)    0x10A4    SharePoint Foundation    Monitoring    b4ly    Medium    Leaving Monitored Scope (Request (GET:https://XXXXXXXXXXXXXXXXXXXXX)).
    Execution Time=187.132582493026    e8e08e76-1b88-4913-bce6-b9300e7b63f6
    Thanks,

  • Why do I get the error message "unable to load page (HTTP 502) when I try to open Mobile Web?

    I have an LG Octane 3 basic phone.   Does everything I need, phone and text, and I never was interested in web or e-mail capabilities until I recently upgraded our plan to the "More Everything" and was able to use data and check e-mail and access the internet.   Whenever I try to open Mobile Web, I get the error message "unable to load page (HTTP 502)".    As of March 31, 2015, all of us basic phone users lose the "Mobile Email" app on our phones, and will have to access web versions of our e-mail via the web.  Which is currently unavailable and doesn't work.
    Over a week ago, did a chat session with a tech support rep, and she indicated that either she or an engineer would contact me with how to fix the problem.   Have not heard anything from anybody, and the deadline is approaching quickly.   Have no need of all the excess features of a smart phone, nor do I wish to be forced to jettison a perfectly working phone for my needs and buy something I don't want to be able to do 2 simple things.............check e-mail to see if there's something that needs to be answered right away, and to check traffic reports when I'm on the road, or find something in an area with which I'm not familiar.     Not really too much to ask, you would think....   )
    Has anyone else had this same problem, and if so, how do we fix it....???  My next move is a phone call, but those haven't always been very productive.
    If any of you have any ideas why this error keeps coming up and the web can't load, and some on how to fix it, I would really appreciate some advice.
    Thanks in advance.
    Karen

    Since the chat session got no reply, I contacted Verizon by phone and a very nice level 2 tech created a trouble ticket and sent it up the food chain.  Got a call back, maybe 2 days later, and had a nice, although very long session with a higher level tech.  They had determined that the browser for the LG Octane is an old one and no longer supported by Verizon.    We tried everything we could to download the Opera browser, but since I was totally unable to get Mobile Web to work, couldn't do it.   The only other possible "fix" was to totally reset the phone to factory specs and try it again.   That would mean a lot of work on my part to move anything I didn't want to disappear off the phone, and find a place to forward texts that had to be saved.   Caught our tenants lying about why the rent was late (again), and need that for when I put them back on a lease....  
    Long story short is that unless we try this total reset, which isn't a sure fix, either, anyone who isn't able to access the Mobile Web with the LG Octane will have to change their plan to avoid paying for data that you can't access using any method. 
    I ran a test with an app that I knew was no longer valid.....that was sending photos to PixPlace.   Got the exact same error message as when trying to access Mobile Web to get the web version of my e-mail.   That just verified that the 502 error is, at least in the LG Octane, for an app that no longer works.   After today, we'll get the same thing when we try to access Mobile E-Mail.
    Have to admit, it's a real ****-off, but this shouldn't surprise me, since Verizon won't repair older copper phone lines if you are in an area where FIOS is offered. 
    I am going to immediately change my husband's and my cell phone plan to one without data, and see what I can find that will still give unlimited calls and text.  The way my luck runs, they won't offer one for a decent price.  The other half has some very long-winded friends and he was always running over minutes, and some months are very text-heavy and I'd go over my limit.   Absolutely HATE touch screens, and am not looking forward to having to get a new phone.  

  • ITunes is updated and works fine and I am able to log onto my account. When I go to purchase a song, I get the error message "Your Apple ID has been disabled". I've tried different methods: changing passwords, making a new account with another email addre

    iTunes is updated and works fine and I am able to log onto my account. When I go to purchase a song, I get the error message "Your Apple ID has been disabled". I've tried different methods: changing passwords, making a new account with another email address, and emailing itunes tech support. I am curious as to how many others have been experiencing the same issue. When I googled the error, it seemed like it was happening extremely often with many people.
    We all love their products, but they always come with a lot of issues and horrible customer support.
    My apple Id is [email protected]

    My Iphone 4 is telling me the same thing and I believe I figured out what the problem is.  I had some fraudulent charges on my itunes account, so I call my bank and disputed the charges.  Right after I did that, I started getting the message "Your apple ID has been disabled."  I just realized today that the charges are not fraudulent, they are "in app purchases."  One of my daughters downloaded the game Top Girl which is FREE, but in the game Top Girl you use money in the game to purchase things.  It just so happens that the money you use to purchase things is real money MY Money!!!.  My daughter thought she was using play money in the game and had no idea she was using real money.  She spent $106.00 buying stuff.  Now I have to call the bank and tell them to release the hold and pay Itunes.  I'm hoping this solves the problem.  Here is the link to learn how to disable "in app purchase" on your iphone or ipad.
    http://www.ikidapps.com/2010/12/parents-avoid-accidental-app-purchases-how-to-tu rn-off-in-app-purchasing.html

  • ICM_HTTP_CONNECTION_FAILED error on http receive method

    Hi,
    I am trying to read a XML via http. I have developed a code referencing this blog:
    /people/rashid.javed/blog/2007/03/11/cricket-world-cup-http-client-and-simple-transformations
    When http receive method is executed it gives me an error.
    On executiong of: CALL METHOD client->receive it gives error:
    code:    400  message:  ICM_HTTP_CONNECTION_FAILED
    I treid changing host and buf in code below both to http://www.google.com to rule out the possibility of bad url. Also tried setting time out to 500 in send method. Still no luck.
    ICM trace shows following:
    Thr 4864] *** WARNING => Connection request from (16/6462/1) to host: http://www.google.com/, service: 80 failed (NIEHOST_UNKNO
    How do I solve this error, please give me some tips.
    I was looking forum for this issue but was not able to find a solution.
    Here is complete code:
    DATA: client TYPE REF TO if_http_client.
    DATA: host TYPE string.
    * DATA: proxyh TYPE string VALUE 'IfYouHave.Proxy.com',
    *      proxyp TYPE string VALUE '8080'.
    DATA: buff TYPE string,
          respd TYPE string.
    DATA: subrc TYPE sysubrc.
    CALL METHOD cl_http_client=>create
      EXPORTING
        host               = 'http://www.google.com/ig/api'
    *    SERVICE            =
    *    proxy_host         = proxyh
    *    proxy_service      = proxyp
    *    SCHEME             = SCHEMETYPE_HTTP
    *    SSL_ID             =
    *    SAP_USERNAME       =
    *    SAP_CLIENT         =
      IMPORTING
        client             = client
      EXCEPTIONS
        argument_not_found = 1
        plugin_not_active  = 2
        internal_error     = 3
        OTHERS             = 4
    IF sy-subrc <> 0.
      WRITE:/ ' cl_http_client=>create, subrc = ', sy-subrc.
      EXIT.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ELSE.
      buff = 'GET'.
      CALL METHOD client->request->set_header_field
        EXPORTING
          name  = '~request_method'
          value = buff.
      buff = 'http://www.google.com/ig/api?weather=21218&hl=en'.
      cl_http_utility=>set_request_uri( request = client->request
                                        uri     = buff ).
      subrc = cl_http_utility=>get_last_error( ).
      IF subrc <> 0.
        WRITE: / 'Wrong URI format'.
        EXIT.
      ENDIF.
    ENDIF.
    CALL METHOD client->send
    *  EXPORTING
    *    TIMEOUT                    = CO_TIMEOUT_DEFAULT
      EXCEPTIONS
        http_communication_failure = 1
        http_invalid_state         = 2
        http_processing_failed     = 3
        http_invalid_timeout       = 4
        OTHERS                     = 5
    IF sy-subrc <> 0.
      CALL METHOD client->get_last_error
        IMPORTING
          code    = subrc
          MESSAGE = buff.
      WRITE: / 'communication_error( send )',
             / 'code: ', subrc, 'message: ', buff.
      EXIT.
    ENDIF.
    CALL METHOD client->receive
      EXCEPTIONS
        http_communication_failure = 1
        http_invalid_state         = 2
        http_processing_failed     = 3
        OTHERS                     = 4.
    IF sy-subrc <> 0.
      CALL METHOD client->get_last_error
        IMPORTING
          code    = subrc
          MESSAGE = buff.
      FORMAT COLOR COL_BACKGROUND.
      WRITE: / 'communication_error( receive )',
             / 'code: ', subrc, 'message: ', buff.
      WRITE: / 'communication_error'.
      EXIT.
    ENDIF.
    respd = client->response->get_cdata(  ).
    WRITE:/ respd.
    Thanks in advance,
    CD
    Edited by: CD on Feb 19, 2009 1:46 PM

    Check this link..
    [HTTP client code 400 reason ICM_HTTP_CONNECTION_FAILED;

  • [svn:fx-trunk] 10891: Fix for ASDoc throws error when using getter methods for pseudo-inheritance of static constants

    Revision: 10891
    Author:   [email protected]
    Date:     2009-10-06 09:46:47 -0700 (Tue, 06 Oct 2009)
    Log Message:
    Fix for ASDoc throws error when using getter methods for pseudo-inheritance of static constants
    QE notes: None.
    Doc notes: None
    Bugs: SDK-22676
    Tests run: checkintests
    Is noteworthy for integration: No
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-22676
    Modified Paths:
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/AsDocUtil.java

    Have you tried using com.adobe.air.crypto.EncryptionKeyGenerator instead?

  • Getting no such method error   when calling  getEnvelope()

    I getting this error
    java.lang.NoSuchMethodError: org.apache.xerces.dom.ElementNSImpl.<init>(Lorg/apache/xerces/dom/CoreDocumentImpl;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
         at com.sun.xml.messaging.saaj.soap.impl.ElementImpl.<init>(ElementImpl.java:45)
         at com.sun.xml.messaging.saaj.soap.impl.EnvelopeImpl.<init>(EnvelopeImpl.java:40)
         at com.sun.xml.messaging.saaj.soap.impl.EnvelopeImpl.<init>(EnvelopeImpl.java:49)
         at com.sun.xml.messaging.saaj.soap.ver1_1.Envelope1_1Impl.<init>(Envelope1_1Impl.java:34)
         at com.sun.xml.messaging.saaj.soap.ver1_1.SOAPPart1_1Impl.createEmptyEnvelope(SOAPPart1_1Impl.java:39)
         at com.sun.xml.messaging.saaj.soap.SOAPPartImpl.getEnvelope(SOAPPartImpl.java:78)
              SOAPPart sp = message.getSOAPPart();
              SOAPEnvelope envelope = sp.getEnvelope();
    when I call the getEnvelope() method I get this message.
    If this is problem because of wrong jar files please guide mew what jar files I must use I am using jdk 1.4
    these are the jar fiels I am using
         <classpathentry kind="lib" path="lib/log4j.jar"/>
         <classpathentry kind="lib" path="lib/xerces.jar"/>
         <classpathentry kind="lib" path="lib/xercesImpl.jar"/>
         <classpathentry kind="lib" path="lib/jdom.jar"/>
         <classpathentry kind="lib" path="lib/activation.jar"/>
         <classpathentry kind="lib" path="lib/classes12.jar"/>
         <classpathentry kind="lib" path="lib/commons-logging-api.jar"/>
         <classpathentry kind="lib" path="lib/j2ee_small_version.jar"/>
         <classpathentry kind="lib" path="lib/jakarta-regexp-1.2.jar"/>
         <classpathentry kind="lib" path="lib/jaxp.jar"/>
         <classpathentry kind="lib" path="lib/jaxp-api.jar"/>
         <classpathentry kind="lib" path="lib/saaj-api.jar"/>
         <classpathentry kind="lib" path="lib/saaj-impl.jar"/>
         <classpathentry kind="lib" path="lib/xalan.jar"/>

    Issue solved. Compatablility issue NWDS 2.0 Version should use for NW 2004.

  • Getting an error while copying pdf file into RMS enabled document library using copyTo() method

    In SharePoint 2010, I am trying to copy pdf file programmatically from a non-RMS protected document library into RMS protected library using copyTo() method.
    But I am getting an error while doing so. it gives error as mentioned below -
    This library does not accept files of the given type. You must either upload a
    new, unprotected file that supports rights management or re-upload a document
    that was previously downloaded from this library.
    Please suggest some solution.
    Thanks,

    Are You sure that you have give 'PDF' in caps in your program? and check whether you are getting all the datas before calling the method.
    in my program, i have used like this and it is working fine for me,
    I am getting PDF content from the form...
    DATA  ls_formoutput     TYPE fpformoutput.
      DATA  pdf_content        TYPE solix_tab.
      DATA  lp_pdf_size        TYPE so_obj_len.
    DATA  lv_mail_title      TYPE so_obj_des.
    *Attach the PDF .
          lp_pdf_size = XSTRLEN( ls_formoutput-pdf ).
          pdf_content = cl_document_bcs=>xstring_to_solix(
              ip_xstring = ls_formoutput-pdf ).
          document->add_attachment(
            i_attachment_type     = 'PDF'
            i_att_content_hex     = pdf_content
            i_attachment_size     = lp_pdf_size
            i_attachment_subject  = lv_mail_title ) .

  • I am trying to export the combained PDF based on BOOK opetion using below scripts. but i am getting following error message "Invalid value for parameter 'to' of method 'exportFile'. Expected File, but received 1952403524". anyone knows, please suggest me

    Dear ALL,
    i am trying to export the combained PDF based on BOOK opetion using below scripts. but i am getting following error message "Invalid value for parameter 'to' of method 'exportFile'. Expected File, but received 1952403524". anyone knows, please suggest me solutions.
    var myBookFileName ,myBookFileName_temp;
                    if ( myFolder != null )
                            var myFiles = [];
                            var myAllFilesList = myFolder.getFiles("*.indd");    
                            for (var f = 0; f < myAllFilesList.length; f++)
                                        var myFile = myAllFilesList[f]; 
                                        myFiles.push(myFile);
                            if ( myFiles.length > 0 )
                                        myBookFileName = myFolder + "/"+ myFolder.name + ".indb";
                                        myBookFileName_temp=myFolder.name ;
                                        myBookFile = new File( myBookFileName );
                                        myBook = app.books.add( myBookFile );  
                                       myBook.automaticPagination = false;
                                        for ( i=0; i < myFiles.length; i++ )
                                                   myBook.bookContents.add( myFiles[i] );             
                                        var pdfFile =File(File(myFolder).fsName + "\\"+myBookFileName_temp+"_WEB.pdf");
                                        var bookComps = myBook.bookContents;
                                        if (bookComps.length === 1)
                                                       bookComps = [bookComps];
                                         var myPDFExportPreset = app.pdfExportPresets.item("AER6");
                                        app.activeBook.exportFile(ExportFormat.PDF_TYPE,File("D:\\AER\\WEBPDF.pdf"),false,myPDFEx portPreset,bookComps);
                                      //myBook.exportFile (ExportFormat.pdfType, pdfFile, false);
                                      //myBook.exportFile(pdfFile, false, pdfPref, bookComps);
                                        myBook.close(SaveOptions.yes);      

    Change the below line:
    app.activeBook.exportFile(ExportFormat.PDF_TYPE,File("D:\\AER\\WEBPDF.pdf"),false,myPDFExp ortPreset,bookComps);
    to
    app.activeBook.exportFile(ExportFormat.PDF_TYPE,File("D:\\AER\\WEBPDF.pdf"),false,myPDFExp ortPreset);
    Vandy

  • Getting an error in the "Partner Link" when specifying an https-base wsdl

    Hi friends,
    this is Hari. I'm getting an error in the "Create Partner Link" dialogue when specifying an https-based wsdl url. The non-ssl wsdl url works fine, but I need it to work for ssl (https). The specific errror reads:
    Error:Failed to read wsdl file at "https://serverstuff/webservice.cfc?wsdl", caused by: javax.net.ssl.SSLHandshakeException. :sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
    i need to invoke secure service(https).what should i do for taht?
    Regards,
    hari

    http://orasoa.blogspot.com/2007/09/compile-error-bpel-against-ssl.html
    marc

Maybe you are looking for

  • How to increase dynamically open_cursors and session_cached_cursors

    how to increase dynamically open_cursors and session_cached_cursors for Ex. alter system open_cursors = 500

  • Adobe Reader for iOS and Android & Rights Management

    This week's release of Reader for iOS and Android devices incorporates support for accessing files secured by Adobe LiveCycle Rights Management. As you are probably familiar, LiveCycle Rights Management protects sensitive documents by encrypting them

  • AMF connection working on browser, not in stand alone player

    Greetings, I'm trying to communicate my SWF file with PHP using Zend_Amf. I compile the flash side using Flex SDK 4. Whenever I try to run the swf using the stand alone player (the projector), I always get a NetConnection.Call.BadVersion event. Howev

  • IPAD does not want to start

    I have a problem iPad is iPad 2 3G w/16gb, it is 4 years old. sustained no damage at all, worked fine up to a few days ago when it didn't wake up, did the reset with the home button and the power on/of one, it worked, then after i left it alone again

  • License issues, help please?

    This afternoon I went to launch Photoshop CS3 and got one of those dreaded "Licensing for this product has stopped working" on my Mac. After multiple searches and all kinds of suggestions and nothing working, this is where Abode has sent me. I'm not