Synchronous HTTP Response

Hello,
In our process we receive a cXML document via http which creates a SO in our R/3 system. According to the cXML specification we need to send a response xml back to the trade partner. This response needs to specify if the xml was well received or not and must be sent back in the http response of the original http request.
How can we put this into XI? When I compare to the RNIF/CIDX adapter, there this response is sent out via the adapter. Can we enhance the http adapter in some way for this behaviour.
Other possibility is to use BPM, but this looks heavy for this simple process.
Greetings,
Bart

Hi Bart,
  As I understand this, if you use reciever RFC then you can think of a Synchronous call and the sucessfull creation of SO can be known by the return of the BAPI, which can be passed across to the http adapter.
  This shows that your cXML was not only valid but also contains proper data to create SO.
  In case of Idoc, & if you want to send an immediate response, then you should go for BPM.
In the BPM, there should be an Interface (or some mechanism) to validate your cXML & send back a response to the sender system.
  If you dont want to use a BPM, allow the Idoc to be processed. after a while "trigger" a seperate flow which goes from SAP->XI->(original Sender) with the reponse message (about validity, creation of SO acknowledgement etc)
Also, the http call ends, if ANY (only ONE) response is sent back. check this link
Receiver HTTP Adaper Response Message problem
check this lin
Hope this Helps
Regards
Vishnu

Similar Messages

  • Processing sync http response code XI

    We are receiving a synchronous HTTP response code from the 3rd party using HTTP adapter. The requirement is based on the response code (either 200 or 4xx or 5xx), email or some action needs to be generated, so that the user knows what happened to the Outbound message processing.
    I am not very sure how to trap and process further this HTTP response code. Please note that this is a syn scenario and has been achieved without using BPM.
    Any suggestion is highly appreciated.
    Thank you.
    Anuradha.

    Hello Stephan.
    I have the impression, that the mentioned response code is not the HTTP code, but part of the HTTP message payload. Is this correct?
    -->> The response code is part of the synch response message that we are getting from the 3rd party
    When you send a message with HTTP adapter to external system, any other HTTP code than 2xx will make the XI message fail.
    If I am not correct, could you provide the HTTP stream of the response message here? This will help to understand the issue.
    This is the attached payload: (response sync message)
      <?xml version="1.0" encoding="UTF-8" ?>
      <!DOCTYPE cXML (View Source for full doctype...)>
    - <cXML timestamp="2011-06-2916:08:49-0400" payloadID="50000011930000000220110629200753" version="1.2.011">
    - <Response>
      <Status code="200" text="OK" />
      </Response>
      </cXML>
    Thanks.
    Anuradha.

  • Received HTTP response code 500 : Internal Server Error using connection Fi

    Hi everybody,
    I have configured a file-webservice-file without BPM scenario...as explained by Bhavesh in the following thread:
    File - RFC - File without a BPM - Possible from SP 19.
    I have used a soap adapter (for webservice) instead of rfc .My input file sends the date as request message and gets the sales order details from the webservice and then creates a file at my sender side.
    I monitored the channels in the Runtime work bench and the error is in the sender ftp channel.The other 2 channel status is "not used" in RWB.
    1 sender ftp channel
    1 receiver soap channel
    1 receiver ftp channel.
    2009-12-16 15:02:00 Information Send binary file "b.xml" from ftp server "10.58.201.122:/", size 194 bytes with QoS EO
    2009-12-16 15:02:00 Information MP: entering1
    2009-12-16 15:02:00 Information MP: processing local module localejbs/AF_Modules/RequestResponseBean
    2009-12-16 15:02:00 Information RRB: entering RequestResponseBean
    2009-12-16 15:02:00 Information RRB: suspending the transaction
    2009-12-16 15:02:00 Information RRB: passing through ...
    2009-12-16 15:02:00 Information RRB: leaving RequestResponseBean
    2009-12-16 15:02:00 Information MP: processing local module localejbs/CallSapAdapter
    2009-12-16 15:02:00 Information The application tries to send an XI message synchronously using connection File_http://sap.com/xi/XI/System.
    2009-12-16 15:02:00 Information Trying to put the message into the call queue.
    2009-12-16 15:02:00 Information Message successfully put into the queue.
    2009-12-16 15:02:00 Information The message was successfully retrieved from the call queue.
    2009-12-16 15:02:00 Information The message status was set to DLNG.
    2009-12-16 15:02:02 Error The message was successfully transmitted to endpoint com.sap.engine.interfaces.messaging.api.exception.MessagingException: Received HTTP response code 500 : Internal Server Error using connection File_http://sap.com/xi/XI/System.
    2009-12-16 15:02:02 Error The message status was set to FAIL.
    Please help.
    thanks a lot
    Ramya

    Hi Suraj,
    You are right.The webservice is not invoked.I see the same error in the sender channel and the receiver soap channel status is "never used".
    2009-12-16 15:52:25 Information Send binary file  "b.xml" from ftp server "10.58.201.122:/", size 194 bytes with QoS BE
    2009-12-16 15:52:25 Information MP: entering1
    2009-12-16 15:52:25 Information MP: processing local module localejbs/CallSapAdapter
    2009-12-16 15:52:25 Information The application tries to send an XI message synchronously using connection File_http://sap.com/xi/XI/System.
    2009-12-16 15:52:25 Information Trying to put the message into the call queue.
    2009-12-16 15:52:25 Information Message successfully put into the queue.
    2009-12-16 15:52:25 Information The message was successfully retrieved from the call queue.
    2009-12-16 15:52:25 Information The message status was set to DLNG.
    2009-12-16 15:52:27 Error The message was successfully transmitted to endpoint com.sap.engine.interfaces.messaging.api.exception.MessagingException: Received HTTP response code 500 : Internal Server Error using connection File_http://sap.com/xi/XI/System.
    2009-12-16 15:52:27 Error The message status was set to FAIL.
    what can I do about this?
    thanks,
    Ramya

  • HTTP Response code 404 - RFC Adapter des not connect to Integration engine

    Hi,
    I seem to have problem with XI Integration engine. My integration process does not go beyond adapter engine and it fails with the following error,
    Begining of the erorr report -
    2006-01-23 13:35:53 Success RFC adapter received sRFC for ZSCEN2_XI from <sysno>/<client>. Attempting to send message synchronously
    2006-01-23 13:35:54 Success Application attempting to send an XI message synchronously using connection AFW.
    2006-01-23 13:35:55 Success Trying to put the message into the call queue.
    2006-01-23 13:35:55 Success Message successfully put into the queue.
    2006-01-23 13:35:55 Success The message was successfully retrieved from the call queue.
    2006-01-23 13:35:55 Success The message status set to DLNG.
    2006-01-23 13:35:55 Error Returning synchronous error notification to calling application: Received HTTP response code 404 : Not Found.
    2006-01-23 13:35:55 Error Transmitting the message using connection http://<host>:55300/sap/xi/engine?type=entry failed, due to: Received HTTP response code 404 : Not Found.
    2006-01-23 13:35:55 Error The message status set to FAIL.
    2006-01-23 13:35:55 Error Returning to application. Exception: Received HTTP response code 404 : Not Found
    end of error report -
    and the runtime workbench does not connect to Integration engine and fails with the following error,
    begin error report -
    javax.ejb.CreateException: Unable to log on to system XID in language en with user XIRWBUSER
         at com.sap.aii.mdt.server.integrationengine.IntegrationEngineMonitoringBean.ejbCreate(IntegrationEngineMonitoringBean.java:374)
         at com.sap.aii.mdt.server.IntegrationEngineHomeImpl10.create(IntegrationEngineHomeImpl10.java:185)
         at com.sap.aii.mdt.server.IntegrationEngineHome_Stub.create(IntegrationEngineHome_Stub.java:56)
    end of report -
    Have anyone experienced the same issue?. Are we missing some post installation configuration?.
    Thanks in advance
    Regards,
    Arul

    HI Anulraja,
    Your Adapter Engine searches the pipeline url of the integration engine from the SLD.
    Check the Bussiness System in Sld , which you'll have defined for XI Server.
    It should have ROLE : Integration Server And
    pipeline url: http://ux0800:55300/sap/xi/engine?type=entry
    should be this if your http port is 55300.
    Check if this url is right in SLD-Bussiness System.
    You can check the exact http port in transaction sxmb_adm.
    Go to Integration engine configuration and then click on check icon(F7).
    It should match with that provided in the BS in SLD.
    By default it should be 8000.
    Check all these things and then try.
    Regards,
    Yomesh

  • HTTP Response code 500 : Delivery Exception

    Hello ,
    i have following scenario WS(Client) <--> RFC. I am getting the following error :
    Response code 500: File couldnot be posted.
    Here are RWB data entries :
    2006-03-13 09:45:52       Success       SOAP: request message leaving the adapter (call)
    2006-03-13 09:45:52      Success      Application attempting to send an XI message synchronously using connection AFW.
    2006-03-13 09:45:52      Success      Trying to put the message into the call queue.
    2006-03-13 09:45:52      Success      Message successfully put into the queue.
    2006-03-13 09:45:52      Success      The message was successfully retrieved from the call queue.
    2006-03-13 09:45:52      Success      The message status set to DLNG.
    2006-03-13 09:46:11      Error      Returning synchronous error notification to calling application: Received HTTP response code 500..
    2006-03-13 09:46:11      Error      Transmitting the message using connection http://<XiServer>:8000/sap/xi/engine?type=entry failed, due to: Received HTTP response code 500..
    //i changed here server name for internal reasons//
    2006-03-13 09:46:11      Error      The message status set to FAIL.
    2006-03-13 09:46:11      Error      Returning to application. Exception: Received HTTP response code 500.
    2006-03-13 09:46:11      Error      SOAP: call failed: com.sap.aii.af.ra.ms.api.DeliveryException: Received HTTP response code 500.
    I did all the things i could do , tested soap service working fine, changed settings in sxmb_adm as well
    Please suggest,
    Vara

    thanks sam,
    Well i have the following error message in soap envelope:
    <SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
         <SOAP:Body>
              <SOAP:Fault>
                   <faultcode>SOAP:Server</faultcode>
                   <faultstring>failed to call the adapter engine</faultstring>
                   <detail>
                        <s:SystemError
    xmlns:s="http://sap.com/xi/WebService/xi2.0">
                             <context>XIAdapter</context>
                             <code>DeliveryException</code>
                             <text><![CDATA[
    Please suggest :

  • Can we capture HTTP response for async message without BPM?

    We are in the process of migrating an XI 2.0 scenario to XI 3.0.
    The scenario is as follows in XI 2.0 - SAP sends an IDoc to XI which is mapped to an HTTP request and sent to an endpoint.  The HTTP response is captured and shown in SXMB_MONI.
    When we migrate this scenario to XI 3.0, we do not see the HTTP response in MONI.  It looks like since the incoming message (IDoc) is triggering an asynchronous message flow, the HTTP receiver is ignoring the HTTP response payload if it sees a 200 OK status code.  Ideally, we would like for the HTTP response to be captured in MONI just as in XI 2.0.
    Is there a way to capture the HTTP response without using a BPM to make the HTTP synchronous call?  It appears that there is nothing in the HTTP receiver communication channel that we can change (to change it from asynchronous to synchronous).
    Thanks for your help,
    Jay Malla
    SAP XI Consultant
    Licensed To Code

    It looks like the problem I am having might be due to a bug in SP15.  It looks like i should see the HTTP response in MONI by default.  Some other people had this problem with SP 15.  Here is the posting:
    Re: SXMB_MONI does not show payload after upgrade to SP15
    Regards,
    Jay

  • HTTP_RESP_STATUS_CODE_NOT_OK HTTP response contains status code 500 with th

    hello friend,
    I have developed a proxy to JDBC synchronous scenario.
    My scenario works like this.
    i run an abap program which calls a client proxy,
    the proxy fetches the data from database table and returns the data in the ABAP program.
    My program is working fine but there is a small problem.
    when i run the report for the first time, it gives me an exception while calling proxy
    HTTP_RESP_STATUS_CODE_NOT_OK HTTP response contains status code 500 with the description Timeout
    and when i run the report for the second time with same variant it works fine.
    i can see the exception mostly in the morning when i run the report for the first time
    please help me to find the solution of this problem.
    thanks
    kannu.

    1. Increase the proctimeout in smicm as per note - 824554
    2.   Application threads in the J2EE engine might have got consumed in high load situations.
    Increase the count of application threads in config tool at location Config Tool -> cluster-data ->
    <configuration template> -> <instance-ID> -> managers -> ApplicationThreadManager ->
    MaxThreadCount
    3.    Increase the parameter ServletInputStreamTimeout from 180000 to 1728000000.
    Steps for setting this parameter:
    a.   If you have configured ICM to forward requests to the J2EE dispatcher then apply Note
    1048692. If the problem is not resolved, then apply section b.
    b.   The request bytes are reaching the Engine too slowly
    i.    Start the configtool in <J2EE>/configtool directory
    ii.    Browse the tree in the left pane
    cluster-data -> Global server configuration -> services -> http
    iii.    Press the ServletInputStreamTimeout key in the keylist on the right
    iv.    Change the value of the "Value" field at the bottom of the right pane to the
    preferred one (in milliseconds).
    -1 means there is no timeout - that is unless the full request comes into a single
    chunk, an error will be thrown
    180000 means the Engine would wait for 3 minutes for any byte to be entered in
    the stream.
    1728000000 means the Engine would wait for 20 days for any byte to be entered
    in the stream 
    v.    Press the "Set" button in the top-right corner
    vi.    Select from the menu File -> Apply and confirm all popups.
    vii.    Restart the Engine for changes to take effect

  • Invalid http response: null - Error in SOAP sync receiver

    Hi,
    We are getting the following error in synchronous SOAP receiver connection.
    com.sap.engine.interfaces.messaging.api.exception.MessagingException: java.io.IOException: invalid http response: null
    note: This inteface is working fine without error in the subsequent run.
    Anyone please help me out in this...
      <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Inbound Message
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
      <SAP:Category>XIAdapterFramework</SAP:Category>
      <SAP:Code area="MESSAGE">GENERAL</SAP:Code>
      <SAP:P1 />
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText>com.sap.engine.interfaces.messaging.api.exception.MessagingException: java.io.IOException: invalid http response: null</SAP:AdditionalText>
      <SAP:Stack />
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>

    Hi Rajendra,
    The same issue I am also facing in production system.
    In my case the all the requests are failing after an IIS7.5  upgrade of the Application in production.
    The strange thing is that except SAP rest all the applications are able to submit requests and getting proper response also.
    We are using a https communication and private key certificate authentication in SAP PI.
    Does it look like a PI issue or IIS upgrade  is causing some issue.
    Please suggest.
    Thanks,
    Ashish

  • HTTP Response as Attachment

    Hello,
    I have a synchronous http scenario. I use a SOAP receiver adapter with "Do not use SOAP envelope" marked.
    However when checking monitoring for the http response I just have "MainAttachment (text/html)" displayed in Payload.
    So obviously there is just an attachment sent back.
    What would be the easiest way to retrieve this attachment and set it as payload?
    I tried to use the adapter module PayloadSwapBean, keyField = "content/type", keyValue = "text/html" but this has not solved my problem yet. Maybe I used it the wrong way. How would I use this module just for the response message?
    Could you please help me with this?
    Thank you!
    Edited by: Florian Guppenberger on Feb 3, 2010 4:04 PM

    I tried to use the adapter module PayloadSwapBean, keyField = "content/type", keyValue = "text/html" but this has not
    solved my problem yet. Maybe I used it the wrong way. How would I use this module just for the response message?
    PayloadSwapBean has swap.keyName and swap.keyValue and does not have any keyField parameter....refer this similar discussion: Re: Critical Issue:-- Convert SOAP Attachment into SOAP Body ... the thread owner has mentioned a blog by Michal on the same...do refer it.
    Regards,
    Abhishek.

  • INTERNAL.HTTP_RESP_STATUS_CODE_NOT_OK HTTP response contains status code 50

    Hi Gurus,
    I am getting error message "INTERNAL.HTTP_RESP_STATUS_CODE_NOT_OK HTTP response contains status code 500 with the description Timeout" when I call a proxy to retrieve data from external database (oracle) through XI (Synchronous Call). This proxy works fine if the data size is limited to 120 MB but terminates with above message if data size is larger may be > 130 MB but some time it works as well with this data size.
    Me & our basis team are working hard to fine out the issue but still could not succeeded. we have applied the OSS Note 807000  but still we are getting the error message. To make it more clear I am sending SQL Query to Reciever (Oracle) from SAP through ABAP proxies.
    If I check the status of messages in "Monitor for processed XML messages" the message has status icon which says "Log version" I am new in XI Please help me to solve the issue.

    hey...try increasing the synchronous timeout parameter. I think the default is 180 secs.
    I would suggest you look at redesigning the the interface  to pull the data in smaller pieces...120 Mb is really big...Pi gives max throughput at around 5 mb...
    Dont worry about the log version....It just persisted in the system when a job is still running... try looking at the same message after a while...it would have changed its stsatus.
    Arvind R

  • Cant see synchronous http-calls in message monitoring

    Hi all,
    I 've got a synchronous http call. When the request was bad I saw the failed request and response messages in XI message monitoring with red lights. But now the call seems to work fine, because the sequenced step is showing. But I can not see the http-message in message monitoring.
    Any ideas?
    Regards
    Mathias

    hi,
    have a look at my blog:
    /people/michal.krawczyk2/blog/2005/05/10/xi-i-cannot-see-some-of-my-messages-in-the-sxmbmoni
    how to turn it on
    logging_sync
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

  • Synchronous HTTP POST on Asynchronous Server

    I am writing an asynchronous event driven server that must accept synchronous HTTP posts.
    For example:
    - Client sends HTTP POST to server
    - Server fires an internal asynchronous event
    - Some time later, another asynchronous event
    - Server returns an HTTP response
    If I attempt to do this with Servlets, each POST will result in a separate thread that waits for the response. For a high number of posts, this could result in a massive amount of threads. What I would rather happen is that each POST waits for the HTTP response without the server having to waste a thread.
    Is there a way to do this?
    Thanks.
    Chris

    Hi,
    Thanks for the sharing.J
    Jeremy Wu
    TechNet Community Support

  • HELP: Delay HTTP Response

    Hi,
    I'm trying to use a simple HTTP Servlet to provide a synchronous interface to an inheritantly asynchronous systems.
    For example
    1. Client does HTTP POST
    2. Servlet receives request (via doPost)
    3. Servlet generates an internal asynchronous request
    4. Servlet receives an internal asynchronous response
    5. Servlet returns the HTTP response
    6. Client receives the HTTP response
    How can I get my servlet to delay sending the HTTP response once I've exited the doPost() method (or is there a more clever way to do this?
    Thanks.
    Chris

    You can't. But you could control when you leave doPost() by sleeping for the requisite amount of time.
    Of course you can't control what the network of processes between your servlet and the client does or how long it takes, but I suppose you have taken care of that in some way.

  • Java.io.IOException: Server returned HTTP response code: 502 for URL

    Hi,
    I am calling below method in ADF 11g Ver 11.1.2.3.0 . for creating report in our developed Form Report Apps.
    below generated URL accessible in browser and showing pdf but runtime this URL is not opening automatically and throwng some error.
    http://ittest:7779/reports/rwservlet?orientation=PORTRAIT&desformat=PDF&destype=cache&desname=RF07D10.pdf&server=repittest11&report_execution_mode=RUNTIME&P_DOCCOD=24&report_comm_mode=SYNCHRONOUS&P_COMCOD=5&report=H:\ami\RF07D10.rdf&userid=refmdba/refm11gtest@refm11g&P_DOCNO=945861&disposition=inline&P_DOCFYR=2013
    public static void fileUrl(String fAddress, String localFileName, String destinationDir) {
    System.out.println("\n mak fAddress = "+fAddress+"\n mak localFileName="+localFileName+"\n mak mak destinationDir = "+destinationDir);
    OutputStream outStream = null;
    URLConnection uCon = null;
    //InputStream is = null;
    InputStream is = null;
    try {
    URL url;
    byte[] buf;
    int ByteRead, ByteWritten = 0;
    url = new URL(fAddress);
    outStream = new BufferedOutputStream(new FileOutputStream(destinationDir + "\\" + localFileName));
    System.out.println("outStream = "+outStream);
    uCon = url.openConnection();
    System.out.println("uCon = "+uCon);
    is = uCon.getInputStream(); //Error Caught in this line
    System.out.println("is = "+is);
    buf = new byte[size];
    while ((ByteRead = is.read(buf)) != -1) {                 
    outStream.write(buf, 0, ByteRead);
    ByteWritten += ByteRead;
    System.out.println("Downloaded Successfully.");
    System.out.println("File name:\"" + localFileName + "\"\nNo ofbytes :" + ByteWritten);
    } catch (Exception e) {
    System.out.println("Exception Caught");
    e.printStackTrace();
    } finally {
    try {
    is.close();
    outStream.close();
    } catch (IOException e) {
    e.printStackTrace();
    SOP for confirmation, in console all variables and parameter have value
    fileName = refm11gtest@refm11g&P_DOCNO=945861&disposition=inline&P_DOCFYR=2013
    mak fAddress = http://ittest:7779/reports/rwservlet?orientation=PORTRAIT&desformat=PDF&destype=cache&desname=RF07D10.pdf&server=repittest11&report_execution_mode=RUNTIME&P_DOCCOD=24&report_comm_mode=SYNCHRONOUS&P_COMCOD=5&report=H:\ami\RF07D10.rdf&userid=refmdba/refm11gtest@refm11g&P_DOCNO=945861&disposition=inline&P_DOCFYR=2013
    mak localFileName=refm11gtest@refm11g&P_DOCNO=945861&disposition=inline&P_DOCFYR=2013
    mak mak destinationDir = D://Resource
    outStream = java.io.BufferedOutputStream@b8c77f
    uCon = sun.net.www.protocol.http.HttpURLConnection:http://ittest:7779/reports/rwservlet?orientation=PORTRAIT&desformat=PDF&destype=cache&desname=RF07D10.pdf&server=repittest11&report_execution_mode=RUNTIME&P_DOCCOD=24&report_comm_mode=SYNCHRONOUS&P_COMCOD=5&report=H:\ami\RF07D10.rdf&userid=refmdba/refm11gtest@refm11g&P_DOCNO=945861&disposition=inline&P_DOCFYR=2013
    Error Console
    Exception Caught
    java.io.IOException: Server returned HTTP response code: 502 for URL: http://ittest:7779/reports/rwservlet?orientation=PORTRAIT&desformat=PDF&destype=cache&desname=RF07D10.pdf&server=repittest11&report_execution_mode=RUNTIME&P_DOCCOD=24&report_comm_mode=SYNCHRONOUS&P_COMCOD=5&report=H:\ami\RF07D10.rdf&userid=refmdba/refm11gtest@refm11g&P_DOCNO=945861&disposition=inline&P_DOCFYR=2013
         at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1436)
         at amgdom.refm.view.managebean.authentication.UrIDownload.fileUrl(UrIDownload.java:34)
         at amgdom.refm.view.managebean.authentication.UrIDownload.fileDownload(UrIDownload.java:64)
         at amgdom.refm.view.managebean.collection.MakePayment2.callReport(MakePayment2.java:259)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.sun.el.parser.AstValue.invoke(Unknown Source)
         at com.sun.el.MethodExpressionImpl.invoke(Unknown Source)
         at org.apache.myfaces.trinidad.component.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:46)
         at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
         at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:190)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:130)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:461)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:134)
         at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:112)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:130)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:461)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:134)
         at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:106)
         at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:787)
         at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1252)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._invokeApplication(LifecycleImpl.java:973)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:354)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:202)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:508)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:173)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:125)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:293)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:199)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:180)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)
         at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    <ActionListenerImpl> <processAction> java.lang.NullPointerException
    javax.faces.el.EvaluationException: java.lang.NullPointerException
         at org.apache.myfaces.trinidad.component.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:51)
         at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
         at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:190)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:130)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:461)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:134)
         at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:112)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:130)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:461)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:134)
         at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:106)
         at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:787)
         at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1252)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._invokeApplication(LifecycleImpl.java:973)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:354)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:202)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:508)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:173)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:125)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:293)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:199)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:180)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)
         at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    Caused by: java.lang.NullPointerException
         at amgdom.refm.view.managebean.authentication.UrIDownload.fileUrl(UrIDownload.java:48)
         at amgdom.refm.view.managebean.authentication.UrIDownload.fileDownload(UrIDownload.java:64)
         at amgdom.refm.view.managebean.collection.MakePayment2.callReport(MakePayment2.java:259)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.sun.el.parser.AstValue.invoke(Unknown Source)
         at com.sun.el.MethodExpressionImpl.invoke(Unknown Source)
         at org.apache.myfaces.trinidad.component.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:46)
         ... 54 more
    <RichExceptionHandler> <_logUnhandledException> ADF_FACES-60098:Faces lifecycle receives unhandled exceptions in phase INVOKE_APPLICATION 5
    javax.faces.FacesException: #{makePayment2.callReport}: java.lang.NullPointerException
         at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:118)
         at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:190)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:130)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:461)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:134)
         at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:112)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:130)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:461)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:134)
         at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:106)
         at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:787)
         at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1252)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._invokeApplication(LifecycleImpl.java:973)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:354)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:202)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:508)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:173)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:125)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:293)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:199)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:180)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)
         at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    Caused by: javax.faces.el.EvaluationException: java.lang.NullPointerException
         at org.apache.myfaces.trinidad.component.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:51)
         at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
         ... 53 more
    Caused by: java.lang.NullPointerException
         at amgdom.refm.view.managebean.authentication.UrIDownload.fileUrl(UrIDownload.java:48)
         at amgdom.refm.view.managebean.authentication.UrIDownload.fileDownload(UrIDownload.java:64)
         at amgdom.refm.view.managebean.collection.MakePayment2.callReport(MakePayment2.java:259)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.sun.el.parser.AstValue.invoke(Unknown Source)
         at com.sun.el.MethodExpressionImpl.invoke(Unknown Source)
         at org.apache.myfaces.trinidad.component.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:46)
         ... 54 more
    <JUCtrlHierNodeBinding> <release> [3154] released: ROOT node binding:noCtrl_oracle_adfinternal_view_faces_model_binding_FacesCtrlHierNodeBinding_579, value:DummyVpartyDealDetVOIterator
    <JUCtrlHierNodeBinding> <release> [3155] released: ROOT node binding:noCtrl_oracle_adfinternal_view_faces_model_binding_FacesCtrlHierNodeBinding_579, value:DummyVpartyDealDetVOIterator
    <DCIteratorBinding> <releaseDataInternal> [3156] Releasing iterator binding:DummyVpartyDealDetVOIterator
    <DCIteratorBinding> <releaseDataInternal> [3157] Releasing iterator binding:vcRowsIterator
    <DCIteratorBinding> <releaseDataInternal> [3158] Releasing iterator binding:variableIterator
    <JUCtrlHierNodeBinding> <release> [3159] released: ROOT node binding:noCtrl_oracle_adfinternal_view_faces_model_binding_FacesCtrlHierNodeBinding_581, value:CompanyAMIVOIterator
    <JUCtrlHierNodeBinding> <release> [3160] released: ROOT node binding:noCtrl_oracle_adfinternal_view_faces_model_binding_FacesCtrlHierNodeBinding_581, value:CompanyAMIVOIterator
    <DCIteratorBinding> <releaseDataInternal> [3161] Releasing iterator binding:CompanyAMIVOIterator
    <DCUtil> <findSpelObject> [3162] DCUtil, returning:oracle.jbo.uicli.binding.JUFormBinding, for ptb1
    <JUCtrlHierNodeBinding> <release> [3163] released: ROOT node binding:noCtrl_oracle_adfinternal_view_faces_model_binding_FacesCtrlHierNodeBinding_581, value:CompanyAMIVOIterator
    <JUCtrlHierNodeBinding> <release> [3164] released: ROOT node binding:noCtrl_oracle_adfinternal_view_faces_model_binding_FacesCtrlHierNodeBinding_581, value:CompanyAMIVOIterator
    <DCIteratorBinding> <releaseDataInternal> [3165] Releasing iterator binding:CompanyAMIVOIterator
    <ADFLogger> <begin> Rollback transaction
    <ApplicationModuleImpl> <resetState> [3166] Resetting AM=Root
    <ApplicationPoolMessageHandler> <doPoolMessage> [3167] **** PoolMessage REQ DETACH LWS
    <May 21, 2013 4:22:17 PM AST> <Error> <HTTP> <BEA-101017> <[ServletContext@20213623[app:REFMApp module:amificweb path:/amificweb spec-version:2.5], request: weblogic.servlet.internal.ServletRequestImpl@182b8[
    POST /amificweb/faces/makePayment/makePayment_2?_adf.ctrl-state=spmhovpgy_24 HTTP/1.1
    Connection: keep-alive
    Content-Length: 316
    Cache-Control: max-age=0
    Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
    Origin: http://192.168.102.41:7101
    User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.22 (KHTML, like Gecko) Chrome/25.0.1364.172 Safari/537.22
    Content-Type: application/x-www-form-urlencoded
    Referer: http://192.168.102.41:7101/amificweb/faces/makePayment/makePayment_2?_adf.ctrl-state=spmhovpgy_24
    Accept-Encoding: gzip,deflate,sdch
    Accept-Language: en-US,en;q=0.8
    Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
    Cookie: oracle.uix=0^^GMT+3:00; JSESSIONID=JTRBRb0FQQYDWJNvyL26fhj2MNPtyDwH05GtH2kDLLwqyBVLxPzD!1337581137
    ]] Root cause of ServletException.
    javax.faces.el.EvaluationException: java.lang.NullPointerException
         at org.apache.myfaces.trinidad.component.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:51)
         at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
         at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:190)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:130)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:461)
         Truncated. see log file for complete stacktrace
    Caused By: java.lang.NullPointerException
         at amgdom.refm.view.managebean.authentication.UrIDownload.fileUrl(UrIDownload.java:48)
         at amgdom.refm.view.managebean.authentication.UrIDownload.fileDownload(UrIDownload.java:64)
         at amgdom.refm.view.managebean.collection.MakePayment2.callReport(MakePayment2.java:259)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         Truncated. see log file for complete stacktrace
    >
    Maroof

    dvohra21 wrote:
    Caused By: java.lang.NullPointerException
    at amgdom.refm.view.managebean.authentication.UrIDownload.fileUrl(UrIDownload.java:48)
    The file url is producing NullPointerException.Dear
    method fileUrl() not have problem,
    problem at line number 19.
    1.     public static void fileUrl(String fAddress, String localFileName, String destinationDir) {
    2.     System.out.println("\n mak fAddress = "+fAddress+"\n mak localFileName="+localFileName+"\n mak mak destinationDir = "+destinationDir);
    3.     OutputStream outStream = null;
    4.     URLConnection uCon = null;
    5.     //InputStream is = null;
    6.     InputStream is = null;
    7.     try {
    8.     URL url;
    9.     byte[] buf;
    10.     int ByteRead, ByteWritten = 0;
    11.     url = new URL(fAddress);
    12.     outStream = new BufferedOutputStream(new FileOutputStream(destinationDir + "\\" + localFileName));
    13.     System.out.println("outStream = "+outStream);
    14.     //Error Caught
    15.     uCon = url.openConnection();
    16.     System.out.println("uCon = "+uCon);
    17.     //---------------------------------
    18.     // is = uCon.getInputStream();
    *19.     is = uCon.getInputStream();*
    20.     System.out.println("is = "+is);
    21.     buf = new byte[size];
    22.     while ((ByteRead = is.read(buf)) != -1) {                 
    a.     outStream.write(buf, 0, ByteRead);
    b.     ByteWritten += ByteRead;
    23.     }
    24.     System.out.println("Downloaded Successfully.");
    25.     System.out.println("File name:\"" + localFileName + "\"\nNo ofbytes :" + ByteWritten);
    26.     } catch (Exception e) {
    27.     System.out.println("Exception Caught");
    28.     e.printStackTrace();
    29.     } finally {
    30.     try {
    a.     is.close();
    b.     outStream.close();
    31.     } catch (IOException e) {
    a.     e.printStackTrace();
    32.     }
    33.     }
    34.     }
    Maroof
    Edited by: Maroof Ahmad on May 22, 2013 9:19 AM

  • Scheduled report failures - Unexpected error getting the HTTP response

    Getting this error when scheduled report executes:
    Unexpected error getting the HTTP response stream while generating report: http://cdmdb1c.nam.nsroot.net:4889/em/console/reports/render

    Hi..
    Thanks for the comment.
    Below is how my web.xml entry looks like.
    The requirement is to send a 404 error response and that will be handled by a servlet which inturn writes the output to the response object.
         <servlet>
              <servlet-name>ErrorPageServlet</servlet-name>
              <servlet-class>com.test.ErrorPageServlet</servlet-class>
         </servlet>
         <servlet-mapping>
              <servlet-name>ErrorPageServlet</servlet-name>
              <url-pattern>/error</url-pattern>
         </servlet-mapping>
         <error-page>
              <error-code>404</error-code>
              <location>/error</location>
         </error-page>>>
    the first option to turn off the "show friendly html error pages" works fine.
    It would be better if I can get a different solution

Maybe you are looking for

  • Data recovery after system restore and corrupt user account.

    A few months ago I was in the middle of a school assignment and my HP laptop started acting strange. I would try to move an image and a copy of it would remain in its place. I couldn't delete the picture either, but I could "cut" the image. Well, I e

  • LIVECYCLE Acrobat Pro 9 Data Collection

    HELP!! I have created a PDF form using Livecycle Design and I intend to distribute the form to various users; and collect the responses back with the in-built feature in adobe pro 9 ( there is this file called RESPONSE FILE (after I distributed the f

  • Resize custom shapes that I have downloaded

    Hi, I have downloaded some  scroll picture frames as custom shapes.   but on draging over picture they are thick and huge.   can i alter the size of custom shapes.  I have tried doing on a separate layer and when these particular shapes there is no s

  • Aperture won't open... at all.

    i have had an issue with my dear aperture... i bought it from the App store about a month ago... it was working perfectly, until i installed Final Cut Express. I realised Aperture wouldn't open since then, so i uninstalled them all and re-installed A

  • Masking Turns Off After Render

    Hello, I'm on a Mac Book Pro: 16GB of Memory 2.6 Processor OS: 10.9.2 I'm working in the latest version of Premiere Pro CC (2014) Here is my issue: I've been using the new masking option quite a bit; mainly the Crop tool, then masking with it.  I've