Parse http response

Hi all :)
I am trying to parse an http response that I get back from a webserver that I sent my request to. The reponse is recieved as an InputStream which I then wrap in a Buffered Reader:
BufferedReader input = new BufferedReader(new InputStreamReader( urlConn.getInputStream()));
The content of the InputStream looks is in the following format:
name1=intValue&name2=strValue&name3=strValue&name4=&name5=strValue
...etc
The content always comes back to me with the same variables in the same order, even if the variables have no value (see name4=&name5 indicates name4 has no value, but the variable is still returned). What I'd like to do is separate the value of name1 and store it in a local variable of the same name. So I have:
String name1 = ?? //some code to browser input stream for "name1" then retrieve the value after the '=' and before the '&'
I am not exactly sure how to write this code? I am looking at the API's for InputStream, StreamTokenizer, and BufferedReader, but I am not having that much luck finding out how to do this.
Any advice or direction is greatly appreciated. Thanks!

StringTokenizer st = new StringTokenizer(response, "&");
// creates a tokenizer that uses "&" as the delimiter to break up the response
while (st.hasMoreTokens()) {
  String parameter = st.nextToken();
  // this should have something like "name1=intValue"
  int break = parameter.indexOf("=");
  // find where the equals sign is in it
  // I leave it to you to use the substring() method to get the 2 bits
}I just noticed the bit about "store it in a local variable of the same name". Forget about that, variables are created at compile time. You need some kind of a Map where the parameter name is the key and the parameter value is the value.

Similar Messages

  • HTTP response code 500 : Error during parsing of SOAP header

    Hi Experts,
    I have a MAIL to IDOC scenario.  An external third party emails invoices to our inbox - which we pick up and process the attachment.  All is well when I test the scenario internally, but when the third party emails it fails with (see ERROR MESSAGE below).
    When I look at the SOAP header of the failed message I see the values from the dump in this field:
      <sap:Record namespace="http://sap.com/xi/XI/System/Mail" name="SHeaderTHREAD-INDEX">AcarCeJmJKHuV6wZSxm2UMoUeAjS1gALPExABtze/PACiUJDcAGS0DCwAmOOELAJlOzP0AFiOo8gCK1pEZAF500SsAYW46lgBgX2bGALyieMQAXw2oKgBYXf0WAGeueD0AAAHnhwBamTSaAGIUE0kAYZSYTQBgY5OTADunN0gAE3t/sQAWScBXADTQvvEAD4yNhQATdkKiAFr7DBMAGIXTZQAP2xJFABZ0YfoAGHYAuAAKlaeaACJ9xtUAEjcvQAAV4L06ABZuwsAAK/f9vgAAF/GSAAAYmRYARIKwtQAV5R9SABMo5bsAGQQyvAAVqsjyABOh9uMAFXTa2QAWEjsfABaEvp4AFaL1NQAV5MnUABXiVbIAGc7LsQAYVN9SABLfYQIAEwF3nQAWSL2lABn5ZgIAEf/k8gAWeVgrAAJaSZIAAElM4gATZR0GA=</sap:Record>
    Can anyone tell me what SHeaderTHREAD-INDEX does?  Or what my problem is  (Our email is Outlook)
    ERROR MESSAGE.........
    SOAPFault received from Integration Server. ErrorCode/Category: XIProtocol/WRONG_VALUE; Params: SOAP:Envelope(1)SOAP:Header(1)sap:DynamicConfiguration(3)sap:Record(14), AcarCeJmJKHuV6wZSxm2UMoUeAjS1gALPExABtze/PACiUJDcAGS0DCwAmOOELAJlOzP0AFiOo8gCK1pEZAF500SsAYW46lgBgX2bGALyieMQAXw2oKgBYXf0WAGeueD0AAAHnhwBamTSaAGIUE0kAYZSYTQBgY5OTADunN0gAE3t/sQAWScBXADTQvvEAD4yNhQATdkKiAFr7DBMAGIXTZQAP2xJFABZ0YfoAGHYAuAAKlaeaACJ9xtUAEjcvQAAV4L06ABZuwsAAK/f9vgAAF/GSAAAYmRYARIKwtQAV5R9SABMo5bsAGQQyvAAVqsjyABOh9uMAFXTa2QAWEjsfABaEvp4AFaL1NQAV5MnUABXiVbIAGc7LsQAYVN9SABLfYQIAEwF3nQAWSL2lABn5ZgIAEf/k8gAWeVgrAAJaSZIAAElM4gATZR0GA=協彎䅍䔾ਉ़䥎噏䥃䕟乏㸸㌱ㄵㄹ㰯䥎噏䥃䕟乏㸊उ㱁䵏啎呟䕘䍌彖䅔㸷⸵〼⽁䵏啎呟䕘䍌彖䅔㸊उ㱃啒剅乃失㹅啒㰯䍕剒䕎䍙ㄾਉ़䅍何乔彖䅔㸱⸴㜼⽁ꯃ䅢坡汫, ST: ST_XM; AdditionalText: An error occurred when deserializing in the simple transformation program ST_XMS_MSGHDR30_DYNAMIC; ApplicationFaultMessage:  ; ErrorStack: XML tag SOAP:Envelope(1)SOAP:Header(1)sap:DynamicConfiguration(3)sap:Record(14) (or one of the attributes) has the incorrect value AcarCeJmJKHuV6wZSxm2UMoUeAjS1gALPExABtze/PACiUJDcAGS0DCwAmOOELAJlOzP0AFiOo8gCK1pEZAF500SsAYW46lgBgX2bGALyieMQAXw2oKgBYXf0WAGeueD0AAAHnhwBamTSaAGIUE0kAYZSYTQBgY5OTADunN0gAE3t/sQAWScBXADTQvvEAD4yNhQATdkKiAFr7DBMAGIXTZQAP2xJFABZ0YfoAGHYAuAAKlaeaACJ9xtUAEjcvQ An error occurred when deserializing in the simple transformation program ST_XMS_MSGHDR30_DYNAMIC Data loss occurred when converting AcarCeJmJKHuV6wZSxm2UMoUeAjS1gALPExABtze/PACiUJDcAGS0DCwAmOOELAJlOzP0AFiOo8gCK1p
    Transmitting the message to endpoint http://sdcxp1-ci.na.fmo.com:8000/sap/xi/engine?type=entry using connection AFW failed, due to: com.sap.aii.af.ra.ms.api.RecoverableException: Received HTTP response code 500 : Error during parsing of SOAP header.

    We work with Microsoft Outlook, but I'm sure this could work with any email system.
    This error only came from external emails - what we did in the end is to get the third party to email a particular email (email1) in our company.  This is set up as a regular email account.  On this email put a forward rule to email2 for a particular sender/subject.  email2 is set up as POP3 so that XD1 can poll it - we also block any emails except from email1.
    Doing this accomplishes a couple of things:
    1)  We get around the error because XI polls email2 (which has adapter settings of IMAP4 so we can see MAIL adapter attributes ie. sender, subject etc...When we originally had as POP3 we were not able to see these - but setting as IMAP4 causes the error for external emailers)
    2) We have a SPAM filter - the XI email is clean from SPAM and the adapter will not have errors, as it only receives valid emails to process
    3) We have a central email (email1) which is used to archive all XI emails - we use this for all email scenarios (as we also save to folder and forward in the rule)
    Hope this helps your situation.

  • How to Parse different HTTP response efficiently ... ?

    how to Parse different HTTP response efficiently ... ?

    1. Last time I helped you I didn't get any response back.
    2. How is this question related to Swing?
    3. Your question has too many details...
    4. No help for you.

  • IMAP error messages "Error while parsing IMAP response"

    I'm getting thousands of IMAP errors every hour, can I shut those off?
    My console log is flooded with them and it keeps me from seeing anything else
    in the system log.  The IMAP errors happen continuously while Mail.app is running.
    It looks like debug output from Mail.app !?!
    IMAP server is Beehive Server -- it's my company email so I need to use it.
    Windows Outlook (Windows 7) shows no errors, possibly they're silently ignored
    on Windows.  My disk is writing almost continuously when Mail.appo is running.
    Sample error:  (thousands are generated per hour)
    Apr  8 10:29:18 Js-Coolio-iMac.local Mail[22903]: Error while parsing IMAP response (null): Incomplete response
              Remaining text: <    Gian Luigi<br>>
              Full text: <    Gian Luigi<br>>
    Any idea how to shut these off?  I reinstalled Mavericks, no improvement as expected
    since this seems to be Mail complaining about IMAP protocol issues.
    Thanks in advance for any suggestions.  And yes I've rebooted, reinstalled the IMAP account,
    reinstalled Mavericks, etc.
    Entrecheck follows...
    Hardware Information:
              iMac (27-inch, Late 2009)
              iMac - model: iMac11,1
              1 2.8 GHz Intel Core i7 CPU: 4 cores
              12 GB RAM
    Video Information:
              ATI Radeon HD 4850 - VRAM: 512 MB
    System Software:
              OS X 10.9.2 (13C64) - Uptime: 9 days 20:39:45
    Disk Information:
              ST31000528ASQ disk0 : (1 TB)
                        EFI (disk0s1) <not mounted>: 209.7 MB
                        Macintosh HD (disk0s2) / [Startup]: 999.35 GB (801.18 GB free)
                        Recovery HD (disk0s3) <not mounted>: 650 MB
              OPTIARC DVD RW AD-5680H 
    USB Information:
              Seagate Backup+ Desk 3 TB
                        disk1s1 (disk1s1) <not mounted>: 209.7 MB
                        JOHN TM (disk1s2) /Volumes/JOHN TM: 2 TB (1.81 TB free)
                        LIU TM (disk1s3) /Volumes/LIU TM: 500 GB (203.45 GB free)
                        Untitled 3 (disk1s4) /Volumes/Untitled 3: 499.39 GB (498.94 GB free)
              Apple Inc. BRCM2046 Hub
                        Apple Inc. Bluetooth USB Host Controller
              Apple Internal Memory Card Reader
              Griffin Technology, Inc iMic USB audio system
              Apple, Inc. Keyboard Hub
                        Logitech USB Trackball
                        Apple, Inc Apple Keyboard
              Apple Computer, Inc. IR Receiver
              Apple Inc. Built-in iSight
    FireWire Information:
    Thunderbolt Information:
    Configuration files:
              /etc/hosts - Count: 4
    Kernel Extensions:
              com.seagate.driver.PowSecDriverCore          (5.2.4 - SDK 10.4)
              com.seagate.driver.PowSecLeafDriver_10_5          (5.2.4 - SDK 10.5)
    Launch Daemons:
              [System]          com.adobe.fpsaud.plist 3rd-Party support link
              [System]          com.barebones.textwrangler.plist 3rd-Party support link
              [System]          com.oracle.java.Helper-Tool.plist 3rd-Party support link
    Launch Agents:
              [System]          com.oracle.java.Java-Updater.plist 3rd-Party support link
              [System]          net.culater.SIMBL.Agent.plist 3rd-Party support link
    User Launch Agents:
              [not loaded]          com.adobe.ARM.[...].plist 3rd-Party support link
              [not loaded]          com.google.keystone.agent.plist 3rd-Party support link
              [not loaded]          com.leadertech.PowerRegister.SEA1.7c77b2ab072a21a06107fccae868ff4b.plist 3rd-Party support link
              [not loaded]          com.valvesoftware.steamclean.plist 3rd-Party support link
    User Login Items:
              Flux
              smcFanControl
              SpeechSynthesisServer
              AdobeResourceSynchronizer
              Flux (13.0)
    Internet Plug-ins:
              Default Browser: Version: 537 - SDK 10.9
              Flip4Mac WMV Plugin: Version: 3.1.0.24   - SDK 10.8 3rd-Party support link
              AmazonMP3DownloaderPlugin101750: Version: AmazonMP3DownloaderPlugin 1.0.17 - SDK 10.4 3rd-Party support link
              RealPlayer Plugin: Version: (null) 3rd-Party support link
              AdobePDFViewerNPAPI: Version: 10.1.3 3rd-Party support link
              FlashPlayer-10.6: Version: 12.0.0.77 - SDK 10.6 3rd-Party support link
              MRJPlugin: Version: 1.0-JEP-0.9.0 3rd-Party support link
              QuickTime Plugin: Version: 7.7.3
              Flash Player: Version: 12.0.0.77 - SDK 10.6 3rd-Party support link
              iPhotoPhotocast: Version: 7.0
              AdobePDFViewer: Version: 10.1.3 3rd-Party support link
              JavaAppletPlugin: Version: Java 7 Update 51 3rd-Party support link
    Safari Extensions:
              Ghostery: Version: 5.1.0
              AdBlock: Version: 2.6.18
              Turn Off the Lights: Version: 2.3.0.5
    Audio Plug-ins:
              BluetoothAudioPlugIn: Version: 1.0 - SDK 10.9
              AirPlay: Version: 2.0 - SDK 10.9
              AppleAVBAudio: Version: 203.2 - SDK 10.9
              iSightAudio: Version: 7.7.3 - SDK 10.9
    iTunes Plug-ins:
              Quartz Composer Visualizer: Version: 1.4 - SDK 10.9
    User Internet Plug-ins:
              WebEx: Version: 1.0 3rd-Party support link
              WebEx64: Version: 1.0 - SDK 10.5 3rd-Party support link
              Google Earth Web Plug-in: Version: 7.1 3rd-Party support link
    3rd Party Preference Panes:
              RCDefaultApp
              Flash Player  3rd-Party support link
              Flip4Mac WMV  3rd-Party support link
              Java  3rd-Party support link
              MenuMeters  3rd-Party support link
    Old Applications:
              asannotation2:          Version: 10.21.26.0 - SDK 10.5 3rd-Party support link
                        /Users/[redacted]/Library/Application Support/WebEx Folder/924/asannotation2.app
              convertpdf:          Version: 1.2 - SDK 10.5 3rd-Party support link
                        /Users/[redacted]/Library/Application Support/WebEx Folder/1224/convertpdf/convertpdf.app
              Neverwinter Nights 2:          Version: 1.23.1765 - SDK 10.5 3rd-Party support link
              Amazon MP3 Downloader:          Version: INFO_PLIST_VERSION - SDK 10.4 3rd-Party support link
              TurboTax Deluxe 2011:          Version: 2011.r17.007 - SDK 10.4 3rd-Party support link
              Ventrilo:          Version: 3.0.13 - SDK 10.5 3rd-Party support link
              /Users/[redacted]/Library/Application Support/WebEx Folder/1224
                        Cisco WebEx Meeting Center:          Version: 1207.04.2732.10 - SDK 10.5 3rd-Party support link
                        asannotation2:          Version: 8.25.31.0 - SDK 10.5 3rd-Party support link
                        atmsupload:          Version: 4.14.29.0 - SDK 10.5 3rd-Party support link
                        convertpdf:          Version: 1.2 - SDK 10.5 3rd-Party support link
    Time Machine:
              Skip System Files: NO
              Auto backup: YES
              Volumes being backed up:
                        Macintosh HD: Disk size: 930.71 GB Disk used: 184.55 GB
              Destinations:
                        JOHN TM [Local] (Last used)
                        Total size: 2 
                        Total number of backups: 51
                        Oldest backup: 2014-01-09 05:11:53 +0000
                        Last backup: 2014-04-04 08:40:29 +0000
                        Size of backup disk: Adequate
                                  Backup size 2  > (Disk used 184.55 GB X 3)
              Time Machine details may not be accurate.
              All volumes being backed up may not be listed.
    Top Processes by CPU:
                   2%          WindowServer
                   1%          EtreCheck
                   0%          SystemUIServer
                   0%          com.apple.WebKit.Networking
                   0%          softwareupdated
    Top Processes by Memory:
              344 MB          Safari
              258 MB          mds_stores
              258 MB          com.apple.IconServicesAgent
              172 MB          softwareupdated
              172 MB          soffice
    Virtual Memory Information:
              3.05 GB          Free RAM
              5.12 GB          Active RAM
              2.71 GB          Inactive RAM
              1.05 GB          Wired RAM
              7.04 GB          Page-ins
              15 MB          Page-outs

    try Mail is not syncing an imap account correctly
    (https://discussions.apple.com/message/21904088#21904088) , it just worked for me.

  • Java.io.IOException: Server returned HTTP response code: 500

    Hi,
    I am connecting to a servlet from an applet to send and receive data using the following code.
    try
    URL servletURL = new URL("http://www.progressivecoding.com/servlet/gatesqlang");
                   URLConnection servletConnection = null;
                   URLConnection servletConnection = servletURL.openConnection();
                   servletConnection.setDoOutput(true);
                   servletConnection.setUseCaches(false);
                   PrintStream out = new PrintStream(servletConnection.getOutputStream());
                   out.println("hhd8836gh828dhhskjdhn38847gosf747");
                   out.close();
                   InputStream in = servletConnection.getInputStream();
                   StringBuffer response = new StringBuffer();
                   int chr;
                   while ((chr=in.read())!=-1)
                        response.append((char) chr);
                   in.close();
                   return response.toString();
              catch (IOException e)
              e.printStackTrace();
              tfTxtFile.setText(e.toString());
              return "An error occurred: " + e.toString();
    Everything was working well and fine. All of a sudden without any change of code. It began to return this error to applet
    An error occurred: java.io.IOException: Server returned HTTP response code: 500 for URL: http://www.progressivecoding.com/servlet/gatesqlang
    But I am able to access the same URL from a browser.
    Someone please tell me what could be the problem

    hi, that error got solved, the SessID i was receiving in that code had some leading or trailing white spaces. so SessID = SessID.trim() did the job.
    But i have a question. This program workd fine when i compile and run from my local system. But when i port this on to the oracle server (JAVA_TOP) and access this from a JSP, then the program performs very un-reliably.
    The first data transfer works fine, i get the SessID, when i pass that SessID along with the DTSSessionID to the server, the server says that i doesn't recognise my SessID, and throws a client.Authentication Error.
    So there goes the parsing out of the window for the data in the second iteration.

  • HTTP response code 401 when trying to import webservice

    Hi,
    I've created a Webservice how descripted in http://help.sap.com/saphelp_erp2005/helpdata/de/24/186440bdd39a0ae10000000a155106/content.htm. Now I try to import it in NWDS. I followed the step by step guide "81 Using a Web Service as External Service (Service)".
    My WDSL file of my webservice is available over http://server:8000/sap/bc/srt/rfc/sap/Z_MPO_XRFC_CAFTESTBO_GETBYNAME?wsdl
    When I try to use this url in step 4 (page 13) I get the following message:
    Cannot Load WebService WSDL from URI: http://server:8000/sap/bc/srt/rfc/sap/Z_MPO_XRFC_CAFTESTBO_GETBYNAME?wsdl reason: IO Exception occurred while parsing file:Server returned HTTP response code: 401 for URL:
    http://server:8000/sap/bc/srt/rfc/sap/Z_MPO_XRFC_CAFTESTBO_GETBYNAME?wsdl
    The HTTP errorcode means "no authorisation". But why does the NWDS don't ask for user and password?
    Any ideas?
    Best regards from cologne
    Martin

    Hello Martin,
    step 4 of page 13 is only for loading the WSDL and generating the external service model.  The user and password that you give here is not used for exectuting the web service.  The runtime configuration for your web service is done on page 23 of the tutorial.  Here is where you set the user and password for the execution of the web service.  You can choose either basic authentication or SSO with login ticket which will not send any text login information.
    Regards,
    Austin.

  • Adt.bat Could not generate timestamp: Cannot parse the response

    I am using the command line to build an air app as follows:
    adt.bat -package -storetype pkcs12 -keystore mycert.pfx
    -storepass xxx -tsa
    http://timestamp.verisign.com/scripts/timstamp.dll
    myApp.air myApp-app.xml myApp.swf
    However, I receive this error:
    Could not generate timestamp: Cannot parse the response
    I am using a Verisign issued Authenticode certificate. Has
    anyone got any idea why this might be happening?
    Thanks

    There is no previous thread running for this application
    (that's the first thing I checked out). As I said in the last
    message, I can successfully launch my app from within FlexBuilder3,
    but not from a generated .air file install.
    At your suggestion, I created a simple "Hello World" type of
    Flex application in FlexBuilder3. From within FlexBuilder3, I
    exported it to an AIR file and installed it. This simple
    application does indeed run on my system after being installed from
    the .air file.
    So there's something different about this new public release
    of the FlexSDK than the last bet release. I compared that simple
    project contents and layout to my project. The big difference is
    that all the source files for the simple project was automatically
    dropped/created in a child 'src' folder under the main project
    folder. I also noticed that when installed, there were files
    missing for my app, but not for the simple app. The big difference
    there being that only the files in the src folder were copied into
    the AIR installer to be installed. Nothing outside of that folder
    was part of the install codebase!
    I therefore refactored my code (yet again) to move all my
    source files (including my external config XML files) into a 'src'
    folder under the main project folder. After a lot of tweaking in
    FlexBuilder3 to get it all working again and running, I exported to
    an AIR file once again. This time all the files were included, when
    I ran the new installer. The application now launches successfully.
    The next step is to replicate this via the command-line ADT
    tool.
    It would have been nice to know the changes in this area (src
    folder) before going this far into the process. Unless they are
    documented in some obscure release note somewhere that I am not
    aware of yet.
    I'll let you know how the ADT run goes when I get the chance.
    Thanks for your help everyone.

  • Parse CLOB response

    Hi!
    How can I could parse the response from the REST request (using XML or JSON)??? I can't find any API to parse the CLOB response.
    Thanks
    declare
    l_clob clob;
    l_buffer varchar2(32767);
    l_amount number;
    l_offset number;
    begin
    l_clob := apex_web_service.make_rest_request(
    p_url => 'http://ptmc0005:8080/Rest-Test-Web/patients.xml',
    p_http_method => 'GET',
    p_parm_name => apex_util.string_to_table('searchStr'),
    p_parm_value => apex_util.string_to_table('Bill'));
    l_amount := 32000;
    l_offset := 1;
    dbms_output.put_line(l_clob);
    end;

    What could be the problem or the solutions?1) Create an XMLType table (could be temporary) using binary XML storage :
    create table tmp_xml of xmltype
    xmltype store as securefile binary xml;2) In your procedure, load the XMLType containing the response (rsp_xml) into the table :
    insert into tmp_xml values (rsp_xml);3) Then, execute the query directly from the table :
    SELECT opciones_obj ( ... )
    BULK COLLECT INTO t_opciones
    FROM tmp_xml t
       , XMLTABLE (
             xmlnamespaces ( ... ),
             '/env:Envelope/env:Body/...'
             PASSING t.object_value
             COLUMNS ...4) At the end of the procedure, delete (or truncate) the table or simply let the table delete itself when the session ends (in case you created it TEMPORARY)

  • 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

  • Parsing SOAP response

    Hi all,
    I'm trying to parse a response to a SOAP request and am not quite sure how to do this. I see in all the examples on the web and in the books where the information being returned is a simple type or a complex type and you can use Response.getReturnValue() to access the data.
    Either something like,
    <SOAP-ENV:Body>
    <stockquoteresponse>
    <stockprice>123.45</stockprice>
    </stockquoteresponse>
    </SOAP-ENV:Body> or
    <SOAP-ENV:Body>
    <stockquoteresponse>
    <stock>
    <tickersymbol>XYZ</tickersymbol>
    <stockprice>123.45</stockprice>
    </stock>
    </stockquoteresponse>
    </SOAP-ENV:Body> In my case however i have multiple pieces of information coming back and I am not sure how to encapsulate it in an object and if that is not possible, how to read it. I am getting something like,
    <SOAP-ENV:Body>
    <stockquoteresponse>
    <tickersymbol>XYZ</tickersymbol>
    <stockprice>123.45</stockprice>
    </stockquoteresponse>
    </SOAP-ENV:Body> Is it possible to get access to the stockquoteresponse element and deserialize that into an object ? In the examples I have seen, it doesn't seem to be possible.
    Please help.

    There are standard APIs for reading SOAP message. e.g.
    http://java.sun.com/webservices/docs/1.0/tutorial/doc/JAXM.html
    If you try google you might find one approriate for you.

  • Server return HTTP response code: 413

    Hi, I'm trying to make an application that pushes message to phones.
    First of all, I use a string to make an XML Element which can be parsed by the phones:
    String messageXML = "<CiscoIPPhoneText>";
    messageXML += "<Title>A hello message</Title>";
    messageXML += "<Text>Text to be displayed.</Text>";
    messageXML += "<Prompt>prompt to be displayed.</Prompt>";
    messageXML += "<SoftKeyItem>";
    messageXML += "<Name>OK</Name>";
    messageXML += "<URL>url</URL>";
    messageXML += "<Position>1</Position>";
    messageXML += "</SoftKeyItem>";
    messageXML += "<SoftKeyItem>";
    messageXML += "<Name>Exit</Name>";
    messageXML += "<URL>Key:Services</URL>";
    messageXML += "<Position>3</Position>";
    messageXML += "</SoftKeyItem>";
    messageXML += "</CiscoIPPhoneText>";
    But when I push this message to the phones(by using Phone.push(String[], String, String, String, boolean)), I got error: "Exception:java.io.IOException: Server returned HTTP response code:413 for URL: http://xxx.xxx.xxx.xxx/CGI/Execute". It seems that the request entity is too large. I'm using tomcat.
    Is there any idea to sovle the problem?
    Thanks in advance.

    Hello,
    would you mind posting the complete code. I guess you get this error when the XML object is invalid.

  • 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

  • Deploying simple HTML page to WLS 10.3.6 fails with HTTP response code: 502

    - I created a simple HTML page and want to test deployment to WLS 10.3.6 on Linux. I created WAR file and when using JDev 11.1.1.4.0 to deploy to WebLogic Server, it fails to deploy. Full errors/messages are:
    [04:40:56 PM] ---- Deployment started. ----
    [04:40:56 PM] Target platform is (Weblogic 10.3).
    [04:40:59 PM] Retrieving existing application information
    [04:40:59 PM] Running dependency analysis...
    [04:40:59 PM] Building...
    [04:40:59 PM] Deploying profile...
    [04:40:59 PM] Wrote Web Application Module to C:\JDeveloper\mywork\Simpe_HTML\Project1\deploy\SimpleHTML.war
    [04:41:01 PM] Deploying Application...
    [04:41:01 PM] Weblogic Server Exception: weblogic.deploy.api.internal.utils.DeployerHelperException: The source 'C:\DOCUME~1\NGOLDR~1.LAT\LOCALS~1\Temp\SimpleHTML.war' for the application 'SimpleHTML' could not be loaded to the server 'http://dupe:7031/bea_wls_deployment_internal/DeploymentService'.
    Server returned HTTP response code: 502 for URL: http://dupe:7031/bea_wls_deployment_internal/DeploymentService
    [04:41:01 PM] See server logs or server console for more details.
    [04:41:01 PM] weblogic.deploy.api.spi.exceptions.ServerConnectionException: [J2EE Deployment SPI:260041]Unable to upload 'C:\JDeveloper\mywork\Simpe_HTML\Project1\deploy\SimpleHTML.war' to 't3://dupe:7031'
    [04:41:01 PM] #### Deployment incomplete. ####
    [04:41:01 PM] Remote deployment failed (oracle.jdevimpl.deploy.common.Jsr88RemoteDeployer)
    - The Application Server connection is accessible within JDev. 'dupe' is my server name and it's running RH 5.4
    - Any help or suggestions appreciated, although I've already asked Mr. Google without success.
    Thanks in advance,
    Neville

    HTTP response code 502 means temporarily overloaded.
    I would say that we have to check the deployment error on the weblogic server logs located at <Domain_Home>\servers\dupe\logs\dupe.log
    Check for any errors like OutOfMemory etc OR any deployment failures.
    If possible, try accessing the console at http://dupe:7031/console
    Check if you are able to successfully deploy your application using the console.
    From the error it looks like the "dupe" server might not be healthy. So, the log file would really help here to get clues into the root cause.
    Arun

  • Windows Azure Pack - Server returned HTTP response code: 500 error while accessing the public tenant API

    Hi,
    We are facing the following error while trying to access the given Windows Azure Pack Public tenant API to query the virtual machines list along with network adaper details - 
    java.io.IOException: Server returned HTTP response code: 500 for URL: https://<hostname>:30006/<subscription-id>/services/systemcenter/vmm/VirtualMachines?$expand=VirtualNetworkAdapters&$top=10000&$skip=0
    The response is proper when we access the following URL - 
    https://<hostname>:30006/<subscription-id>/services/systemcenter/vmm/VirtualMachines
    Only on adding the $expand=VirtualNetworkAdapters, url parameter we are getting the above error.
    Where can we check for the error logs on the Azure Pack server ? We checked for the logs using Windows Event Viewer but did not find any for the public tenant API.
    What should be the cause for such an error and how can we fix this to get the proper data?
    Thanks in advance.

    Yes, we tried this, $top=10&$skip=0 works for the following url
    https://<hostname>:30006/<subscription-id>/services/systemcenter/vmm/VirtualMachines?$top=10&$skip=0
    It is only when we add $expand=VirtualNetworkAdapters,
    the server returns the mentioned error response - 
    URL for which the server returns the 500 error -
    https://<hostname>:30006/<subscription-id>/services/systemcenter/vmm/VirtualMachines?$expand=VirtualNetworkAdapters&$top=10&$skip=0
    Can
    you point to the error logs for Windows Azure Pack and SPF ?

  • Unable to deserialize HTTP response content - SharePoint Designer Call Web Service Workflow Activity

    I am creating a workflow using SharePoint Designer 2013 and I'm using the call HTTP web service action.
    The web service call works (it is for a text messaging service, and I get the text message to my phone) however the workflow stops at this point with internal status "suspended" and gives the error message below when clicking on the "i"
    icon.
    I have tried setting the Accept and Content-Type request headers to "application/json; odata=verbose" (minus the quote marks) as other posts suggested but this doesn't make a difference (e.g. here: https://social.msdn.microsoft.com/Forums/windowsapps/en-US/f0b18411-87d1-466b-aab0-1a0093605ed4/workflow-cannot-read-json-after-latest-sp15-patches?forum=sharepointdevelopment).
    I tried adding in the Content-Length header too but that made no difference.
    I tested calling another web service (https://sharepointurl/_api/contextinfo) and this works fine.
    Is there any way to get the workflow to accept this XML as the response? I don't actually really need anything out of the response content, but I do need the workflow to carry on after this step and carry out other activities after this call.
    Error message:
    Details: An unhandled exception occurred during the execution of the workflow instance. Exception details: System.IO.InvalidDataException:
    Unable to deserialize HTTP response content. Expected ContentType : 'application/json', 'text/plain' or 'text/html', Received ContentType : 'text/xml'. Content (truncated) : '<?xml version="1.0" ?><outbound-message-delivery messageId="35d60bd2-a829-4382-8189-7a74de2d1cca"
    isError="false"><recipient msisdn="6427xxxxxxx" isError="false"></recipient></outbound-message-delivery>'. ResponseStatusCode : 'OK' Request Uri : 'https://www.txtserviceurl.co.nz/api/3/sms/out?to=6427xxxxxxx&body=test+from+workflow'
    at Microsoft.Activities.Messaging.SendHttpRequest.OnReceiveResponse(NativeActivityContext context, Bookmark bookmark, Object value) at System.Activities.Runtime.BookmarkCallbackWrapper.Invoke(NativeActivityContext context, Bookmark bookmark, Object value)
    at System.Activities.Runtime.BookmarkWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager) Exception from activity SendHttpRequest HttpPost Switch<String> Sequence Microsoft.SharePoint.WorkflowServices.Activities.CallHTTPWebService
    Stage 1 Sequence Flowchart Sequence Testing 

    Hi,
    Thank you for your post.
    I'm trying to involve someone familiar with this topic to further look at this issue. There might be some time delay. Appreciate your patience.
    Best Regards,
    Lisa Chen
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact 
    [email protected]
    Lisa Chen
    TechNet Community Support

Maybe you are looking for

  • Z10 Touchscreen Not Working

    This started yesterday and progressively became worse. It started when I added a password to my device. I've had the phone for 2 years and never used a password, but recent events persuaded me to do so. I'm not sure if this is just a coincidence, or

  • Tweeting from the Notification Center Error!

    I wonder if you guys have this issue too. I was tweeting about more than 5 tweets in a span of about a few seconds (Typed a short tweet, and sending it repeatedly). Then soon after, it will hang all of the sudden when you click on "Tap to Tweet". It

  • Sorting images by pixel size?

    is there a way to sort images by pixel size (ie, all pis over 640x480)? i can't see any way in finder, vitaminSEE or iphoto to sort images this way. am i missing something? or could someone recommend a grogram that can do this (preferably freeware)?

  • Need a new Gateway

    What is the current gateway brand and or model(s) available for Uverse Internet  only. I have an ancient 2Wire gateway that just died - and before that it would lose wireless every few days and constantly needs to be reset. I would also like a Gatewa

  • Material Groups of specific Doc types

    Hi, is it possible to default certain material groups in a specific document type? Thanks so much.. Appreciate your help. Thanks, Paula