Character # is converted to carriage return in proxy call. Please help!

Hi Experts,
   I have a variable of type string with value: #VSSOO01. In my ABAP code I am sending this value to XI via Proxy. When I check the value that XI has received, it shows as Carriage Return and VSSOO01. In other words # is replaced by carriage return.
I also checked the message payload sent my proxy in the source system and also it has replaced # by carrige return.
I have checked the variable value via ABAP debugger before and after assigning to Proxy parameter and it shows correctly.
I want it should send as it is #VSSOO01.
How to fix this issue?
Please help
Thanks & Regards
Gopal

Please use the attribute CR_LF from class CL_ABAP_CHAR_UTILITIES in your program. For eg.
REPLACE all occurences of CL_ABAP_CHAR_UTILITIES=> CR_LF in lv_string with '#'  in character mode.
Regards
Ranganath

Similar Messages

  • My software is STUCK on "Retrieving current session status" What is this and how do I fix it? i am not able to convert any files at all!! Please help!

    My software is STUCK on "Retrieving current session status" What is this and how do I fix it? i am not able to convert any files at all!! Please help!

    Hi JulietaQ,
    In order to help you better.
    Please let me know which application or Service of Adobe you are using. If this is subscription i would request you to log-out and log-in back and let me know if that helps.
    ~Ajlan Huda

  • Strange character in place of carriage return.

    The carriage returns look fine when viewing the file on my local drive (publish to folder). Then I upload the folder to an ftp site, and see ?? where the carriage returns are. Any ideas?
    www.nebodyandpaint.com
    I'm viewing with Safari v2.0.3.
      Mac OS X (10.4.5)  

    You have the wrong settings on your ftp program. See this note:
    http://homepage.mac.com/thgewecke/iwebchars.html

  • How to convert localization strings returned from RIDC calls?

    I'm using the RIDC API to extract some data from UCM, but I'm running into issues where some values returned from service calls are the actual localization strings ("wwDocTypeDesc_Application" for example), not their translated values.
    Is there a service or method I can use to translate the strings? Something that evaluates IdocScript perhaps?

    Hey Mike,
    Please refer the following link.
    http://www.corecontentonly.com/index.php/2008/09/16/executing-idocscript-from-java-page-merger/
    looks like customization is the way forward from here. Just create a custom service, call your default ucm service from withing and before you pass on results fetch the required variable and send back.
    I know this is something that should have been taken care be them.
    cheers,
    swapnil

  • Making a SOAP call through a proxy! Please help!!!

    I'm behind a firewall. I've checked most of the posting in the forum and on the Internet. Most get by using the java.net.Authenticator class, and setting default properties such as https.proxyHost, https.proxyUserName, https.proxyPassword etc. I've tried all that!!! Still doesn't work.
    Here's the error msg I get:
    Required
    at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.post(Unknown
    Source)
    at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection$PriviledgedP
    ost.run(Unknown Source)
    ... 4 more
    javax.xml.soap.SOAPException: java.security.PrivilegedActionException: javax.xml
    .soap.SOAPException: Bad response: (407Proxy Authentication Required
    at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.call(Unknown
    Source)
    at GoogleJPClient.sendGoogJMsg(GoogleJPClient.java:103)
    at GoogleJPClient.main(GoogleJPClient.java:149)
    Caused by: java.security.PrivilegedActionException: javax.xml.soap.SOAPException
    : Bad response: (407Proxy Authentication Required
    at java.security.AccessController.doPrivileged(Native Method)
    ... 3 more
    Caused by: javax.xml.soap.SOAPException: Bad response: (407Proxy Authentication
    Required
    at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.post(Unknown
    Source)
    at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection$PriviledgedP
    ost.run(Unknown Source)
    ... 4 more
    Attached is my code snippet:
    ========================================================================
    public class GoogleJPClient
    private static final String DEFAULT_HOST_URL =
    "http://api.google.com/search/beta2";
    private static final String URI = "urn:doGoogleSearch";
    //Member variables
    private String m_hostURL;
    public GoogleJPClient(String hostURL) throws Exception
    m_hostURL = hostURL;
    public class pAuth extends Authenticator
    protected PasswordAuthentication getPasswordAuthentication()
    String uname = "apnt\\soolu01";
    String pw = "boromir";
    return new PasswordAuthentication(uname, pw.toCharArray());
    public void sendGoogJMsg()
    try
    Properties props = new Properties();
    props.setProperty("com.sun.xml.registry.https.proxyHost", "proxy_server");
    props.setProperty("com.sun.xml.registry.https.proxyPort", "80");
    props.setProperty("com.sun.xml.registry.https.proxyUserName", "a-user");
    props.setProperty("com.sun.xml.registry.https.proxyPassword", "a-passwd");
    javax.xml.soap.SOAPConnectionFactory scf =
    javax.xml.soap.SOAPConnectionFactory.newInstance();
    javax.xml.soap.SOAPConnection conn = scf.createConnection();
    //conn.setProperties(props);
    //Get instance of MessageFactory class
    javax.xml.soap.MessageFactory mf =
    javax.xml.soap.MessageFactory.newInstance();
    //Create message from the message factory, already containing
    //SOAP part
    javax.xml.soap.SOAPMessage message = mf.createMessage();
    //.Get the message's SOAP part
    javax.xml.soap.SOAPPart soapPart = message.getSOAPPart();
    //Populate msg with Google template
    StreamSource prepMsg = new StreamSource(new FileInputStream("doGoogleSearchmod.xml"));
    soapPart.setContent(prepMsg);
    message.saveChanges(); //save changes
    //fingers crossed
    java.net.Authenticator.setDefault(new pAuth());
    //Properties props = System.getProperties();
    System.setProperty("https.proxyHost", "a-proxyserver");
    System.setProperty("https.proxyPort", "80");
    System.setProperty("https.proxyUserName", "a-username");
    System.setProperty("https.proxyPassword", "a-passwd");
    System.setProperty("https.proxySet", "true");
    System.setProperty("http.proxyHost", "proxy_server");
    System.setProperty("http.proxyPort", "80");
    System.setProperty("http.proxyUserName", "a-username");
    System.setProperty("http.proxyPassword", "a-passwd");
    System.setProperty("http.proxySet", "true");
    //System.setProperties(props);
    URLEndpoint dest =
    new URLEndpoint("http://api.google.com/search/beta2");
    javax.xml.soap.SOAPMessage reply = conn.call(message, dest);
    TransformerFactory tFact = TransformerFactory.newInstance();
    Transformer t = tFact.newTransformer();
    Source srcContent = reply.getSOAPPart().getContent();
    StreamResult res = new StreamResult("doGoogleSearchresp.xml");
    t.transform(srcContent, res);
    System.out.println("Received reply from: " + m_hostURL);
    //Display reply from endpoint
    boolean dispRes = true;
    if(dispRes)
    //Dump onto screen
    System.out.println("Result:");
    reply.writeTo(System.out);
    conn.close();
    }catch(Throwable e){
    e.printStackTrace();
    public static void main(String args[])
    //String hostURL = DEFAULT_HOST_NAME;
    Properties sysprop= System.getProperties();
    //sysprop.put("firewallHost", "proxy_server");
    //sysprop.put("firewallPort", "80");
    //sysprop.put("firewallSet", "true");
    //sysprop.put("proxyHost", "proxy_server");
    //sysprop.put("proxyPort", "80");
    //sysprop.put("proxySet", "true");
    try
    GoogleJPClient gjc = new GoogleJPClient("http://api.google.com/search/beta2");
    gjc.sendGoogJMsg();
    }catch(Exception e){
    e.printStackTrace();
    ========================================================================
    As you can see it's pretty messy, and I've tried getting around the HTTPS proxy in a variety of methods, but with no results.
    Please help.
    Rgds,
    frustrated.

    Hi,
    I've just experienced trouble with the same thing and I found that setting the following System properties works fine when I use the Apache Axis 1.0 libraries. Note that it's "proxyUser" and not "proxyUserName".
    System.setProperty("http.proxySet", "true");
    System.setProperty("http.proxyHost", "10.1.1.1");
    System.setProperty("http.proxyPort", "80");
    System.setProperty("http.proxyUser", "mydomain\\myusername");
    System.setProperty("http.proxyPassword", "mypassword");
    I can then make HTTP and HTTPS connections and send SOAP messages with no worries.
    I'm in an NT environment and hence had to specify the domain as well as the username (and escape the backslash between them) for the proxy to let me through otherwise I got a "407 proxy authentication required" error.
    I'm certain this works fine as I've tested it myself.
    Hope this helps you out.
    Shane.

  • Not able to convert string attribute to number and date please help me out

    not able to convert string attribute to number and date attribute. While using string to date conversion it shows result as failure.As I am reading from a text file. please help me out

    Hi,
    You need to provide an example value that's failing and the date formats in the reference data you're using. It's more than likely you don't have the correct format in your ref data.
    regards,
    Nick

  • I install all ADD-ONS and i want to remove it from my browses to be back as standard firefox browses i try to delete the program and re download it but it's return with all ONS please help

    i install all ADD-ONS and i want to remove it from my browses to be back as standard firefox browses i try to delete the program and re download it but it's return with all ONS please help

    http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes

  • Converting application to applet.... please Help

    This program shown works fine in appletveiwer however will not work with I.E. nor Netscape. I do have the java plugins for both and using a netscape version over 6.0. I made the program usint jdk1.3. Can anyone please help me out?
    java code
    // TabbedPaneFlags.java: Use tabbed pane to select figures
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class TabbedPaneFlags extends javax.swing.JApplet
    // Create a tabbed pane to hold figure panels
    private JTabbedPane jtpFigures = new JTabbedPane();
    // Load Images
    private JLabel lblUSA = new JLabel(new ImageIcon("USA.gif"));
    private JLabel lblUK = new JLabel(new ImageIcon("uk.gif"));
    private JLabel lblGER = new JLabel(new ImageIcon("germany.gif"));
    private JLabel lblCAN = new JLabel(new ImageIcon("canada.gif"));
    private JLabel lblCHI = new JLabel(new ImageIcon("china.gif"));
    private JLabel lblIND = new JLabel(new ImageIcon("india.gif"));
    // Main method
    //public static void main(String[] args)
    // TabbedPaneFlags frame = new TabbedPaneFlags();
    // frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    // frame.setSize(450, 350);
    // frame.setVisible(true);
    // Constructor
    // public TabbedPaneFlags()
    public void init()
    // setTitle("Tabbed Pane Demo");
    jtpFigures.add(lblUSA,"USA");
    jtpFigures.add(lblUK,"UK");
    jtpFigures.add(lblGER,"Germany");
    jtpFigures.add(lblCAN,"Canada");
    jtpFigures.add(lblCHI,"China");
    jtpFigures.add(lblIND,"India");
    // Place tabbed pane
    this.getContentPane().add(jtpFigures, BorderLayout.CENTER);
    html code
    <html>
    <head>
    <title>AppletMenuDemo</title>
    </head>
    <body>
    <applet
    code = "TabbedPaneFlags.class"
    width = 450
    height = 350
    alt="You must have a JDK 1.2-enabled browser to view the applet">
    </applet>
    </body>
    </html>

    You should try the html converter so that the browsers are forced to invoke their plugin... or prompt the user to download one.
    To turn an applet into an application is easy. You act like the browser. You make a frame, construct the applet, and put the applet in the frame, (They are components) ... Then just call the init() method. Then add a window listener to call the stop() method when the frame gets closed.
    Application to an applet is a bit harder. You need to figure out what needs to be in the init method. Depending on what the application does you can also run into security issues.

  • Convert Air Desktop Application to Android apk Please help!

    I developed an Air Desktop Application by using Flash Builder 4, it's a pure ActionScript 3 application. I used a few PNG image files and mp3 audio files in the application. After I build it, I got the swf file, xml file and all the image mp3 files in the bin-debug folder. If I run the swf file with all other files (png and mp3 files) in the bin-debug folder, it works great. If I run the swf standalone, the application will miss the images and sounds.
    Now I'm converting the swf to apk, and run it on android device, it will NOT show the images or Doesn't play the sounds. I was wondering if there is a way to merge the png and mp3 files into the swf when I build/compile it? Or is there some other way to convert to apk which includes all the image and audio files? Please help.

    Please see adt -package command here
    http://help.adobe.com/en_US/air/build/WSfffb011ac560372f-5d0f4f25128cc9cd0cb-7ffb.html
    in this example icons folder is packaged along with swf and app xml.
    What you can do is that specify each of the mp3 and image files one by one separated by space at the place where icons is used in examples.
    In this case you will find all mp3 and image files in same directory as your swf when you run on android.
    Make sure you use app:// urls for accessing those files

  • No Audio When MPG files converted in Quicktime???? Please Help!

    When I convert a video file to Mpeg4 in Quicktime Pro, and then exported to iTunes, the video content is there but no audio. I tried this witha few different video files and happens on all of them. What am I doing wrong???
    Please help!

    Firstly, do a search before posting, since this is like the fiftieth posting about this very topic. try the thread/tutorial that has "read this before posting" as part of the topic, and you'll have one answer, at least.
    "quicktime will not export audio with any video converted to MPEG4"
    This is not entirely true: QT will not trash audio from all formats when converting for iPod, only from muxed MPEG formats.
    MPEG clips (especially .vob files found on DVDs) comprise 'muxed' audio and video channels. basically it means that both are combined as one stream. QT can only extract the video channel from this, leaving the audio floating somewhere in binary limbo. with MPEGs, you WILL first have to use a 3rd party app to convert to a codec that shows A&V channels seperately in QT. handbrake or mpeg-streamclip are great on mac, and vidora is the pc option of choice it seems in this forum.
    other QT formats (settings/codecs) work FINE with QTPRO. just ensure you use the correct export settings...

  • Problems with the Proxy Programme--Please help

    Hi All,
    I have written a simple proxy server in the form of a servlet. I changed the proxy config of my browser to connect to this servlet hosted on the default context(http://localhost:8080) of the Tomcat 5.0.25 . Well , this servlet internally connects to the proxy of the corporate LAN . The logic that I have applied is as follows. The servlet gets the request from the client (ie the browser in this case) , extracts the headers and contents from the request, sets them to a new request that it forms and finally send this new request to the proxy. When the proxy responds, the servlet collects the response headers and contents adn writes them in its response. To sum up , this servlet transparently carries the requests and responses between the client(browser) and the corporate LAN proxy. Now the problem is this. Let's say , now I am accessing http://www.google.com.The browser sends a request to my servlet with the following headers as they are extracted by my servlet.
    ProxyServer:::>posting request
    ProxyServer:::>headerValue::> headerName = accept : headerValue=*/*
    ProxyServer:::>headerValue::> headerName = referer : headerValue=http://www.google.com/
    ProxyServer:::>headerValue::> headerName = accept-language : headerValue=en-us
    ProxyServer:::>headerValue::> headerName = proxy-connection : headerValue=Keep-Alive
    ProxyServer:::>headerValue::> headerName = user-agent : headerValue=Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; UB1.4_IE6.0_SP1; .NET CLR 1.0.3705; .NET CLR 1.1.4322)
    ProxyServer:::>headerValue::> headerName = host : headerValue=www.google.com
    ProxyServer:::>headerValue::> headerName = cookie : headerValue=PREF=ID=1be27c0a74f198ca:TM=1082058853:LM=1082058853:S=bu6ORrygzm8AUkm8
    ProxyServer:::>postRequest
    I set these headers into a new connection opened to the proxy and post a fresh request to the proxy,which, in turn responds with the following headers.
    ProxyServer:::>posted request successfully
    ProxyServer:::>writing response
    ProxyServer:::>writeResponse-->headerName = Proxy-Connection : headerValue = [close]
    ProxyServer:::>writeResponse-->headerName = Content-Length : headerValue = [257]
    ProxyServer:::>writeResponse-->headerName = Date : headerValue = [Tue, 13 Jul 2004 14:01:40 GMT]
    ProxyServer:::>writeResponse-->headerName = Content-Type : headerValue = [text/html]
    ProxyServer:::>writeResponse-->headerName = Server : headerValue = [NetCache appliance (NetApp/5.5R2)]
    ProxyServer:::>writeResponse-->headerName = Proxy-Authenticate : headerValue = [Basic realm="Charlotte - napxyclt2"]
    ProxyServer:::>writeResponse-->headerName = null : headerValue = [HTTP/1.1 407 Proxy Authentication Required]
    ProxyServer:::>writeResponse exiting
    ProxyServer:::>wrote response successfully
    I write these headers back to the client. According to what I was thinking, the client ie the browser would open a new dialog box asking for username/password owing to the presence of the "Proxy-Authenticate " header. But it does not happen that way. Rather the browser stops responsding and displays a blank page. Does anyone know why it happens this way? I am pasting the server prog below for everybody's reference.
    package server.proxy;
    //import all servlet related classes
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.util.*;
    import java.io.*;
    import java.net.*;
    import server.resources.*;
    //My Proxy server --->Currently it is very simplea and relies on
    //other proxy servers of an already connected network.
    public class ProxyServer extends HttpServlet
    //stores the resource bundle
    private ServerResBundle resBundle = null;
    //checks for the mode of operation
    private boolean proxySet = false;
    private String proxy = null;
    //storing the original System out/err etc
    private PrintStream sysOutOrig = null;
    private PrintStream sysErrOrig = null;
    private InputStream sysInOrig = null;
    //initialise certain features that are required later
    public void init() throws ServletException
    try
    //initialise the resource bundle
    this.initResBundle();
    System.out.println("ProxyServer:::>res bundle init");
    //set the mode of operation
    this.setMode();
    System.out.println("ProxyServer:::>mode set");
    //set the system out and err --System.setOut etc
    this.setSystemOutErr();
    System.out.println("ProxyServer:::>in/out/err set");
    }//End try
    catch(Exception e)
    System.out.println("Exception in init..."+(e.getMessage()));
    throw new ServletException(e);
    }//Edn
    catch(Throwable e)
    System.out.println("Irrecoverable Error...");
    throw new ServletException(e);
    }//End
    }//End init
    //method to init the resource bundle;
    private void initResBundle()
    this.resBundle = ServerResBundle.getBundle();
    }//End
    //method to set the mode of the server--proxy or direct
    private void setMode()
    //read the target proxy property from the bundle and
    //if it is set,take that URL
    String temp = (String)(this.resBundle.getResource(ResKeys.PROXY_SERVER));
    if ( (temp != null) && (temp.length() > 0) )
    this.proxySet = true;
    this.proxy = temp;
    temp = null;
    }//End
    }//End
    //method to set the system out and err etc
    private void setSystemOutErr() throws Exception
    //keep a copy of the original system out and error
    this.sysOutOrig = System.out;
    this.sysErrOrig = System.err;
    try
    //read the options adn if they are set, take the values directly
    String newOutStr = (String)(this.resBundle.getResource(ResKeys.SYSTEM_OUT));
    String newErrStr = (String)(this.resBundle.getResource(ResKeys.SYSTEM_ERR));
    if ((newOutStr != null) && (newOutStr.length() > 0))
    System.setOut(new PrintStream(new FileOutputStream(new File(newOutStr),true),true));
    }//End if
    if ((newErrStr != null) && (newErrStr.length() > 0))
    System.setErr(new PrintStream(new FileOutputStream(new File(newErrStr),true),true));
    }//End if
    }//End
    catch(Exception e)
    //restore the stuff
    System.setOut(this.sysOutOrig);
    System.setErr(this.sysErrOrig);
    }//End
    }//End
    //this is where the proxy functionalities will be embedded
    public void service(HttpServletRequest req,HttpServletResponse resp)
    throws ServletException,java.io.IOException
    //conenction URL
    URL target = null;
    //conenction to the remote object
    URLConnection targetConn = null;
    //stores the OOS and the OIS
    ObjectOutputStream oos = null;
    ObjectInputStream ois = null;
    try
    //check for the mode of operation
    if (proxySet)
    URLConnection objects go through two phases: first they are created, then they are connected.
    After being created, and before being connected, various options can be specified
    (e.g., doInput and UseCaches). After connecting, it is an error to try to set them.
    Operations that depend on being connected, like getContentLength, will implicitly perform the connection,
    if necessary.
    //for the URL to the proxy
    target=new URL(this.proxy);
    //conenct to the proxy
    targetConn = target.openConnection();
    //set the details of the connectuon
    targetConn.setDoInput(true);
    targetConn.setDoOutput(true);
    targetConn.setUseCaches(false);
    // If true, this URL is being examined in a context in which it makes sense to allow user interactions such as popping up an authentication dialog. If false, then no user interaction is allowed
    targetConn.setAllowUserInteraction(true);
    //connect to the remote object
    // targetConn.connect();//call this only when all the request properties are set
    System.out.println("ProxyServer:::>posting request");
    //post the received request to the URL
    this.postRequest(targetConn,req);
    System.out.println("ProxyServer:::>posted request successfully");
    System.out.println("ProxyServer:::>writing response");
    //receive the response
    //write the received response to the client
    this.writeResponse(targetConn,resp);
    System.out.println("ProxyServer:::>wrote response successfully");
    }//End if
    else
    //currently this functionality is not supported
    throw new ServletException(
    (String)(this.resBundle.getResource(ResKeys.ERR_FUNC_NOTSUPPORTED)));
    }//End
    }//End try
    catch(Exception e)
    if(e instanceof ServletException)
    throw (ServletException)e;
    }//End
    if (e instanceof IOException)
    throw (IOException)e;
    }//End
    //wrap it up in ServletException
    throw new ServletException(e);
    }//End
    }//End
    //method to write the response back to the client
    private void writeResponse(URLConnection targetConn,HttpServletResponse resp)
    throws ServletException
    //get all the header fields from the response connection and set them to the
    //response of the servlet
    Map headerFields = null;
    Iterator headerFieldEntries = null;
    Map.Entry header = null;
    //stores the input stream to the conn
    BufferedReader brConn = null;
    //stores the writer to the response
    PrintWriter prResp = null;
    //checks if the proxy authentication needed or not
    boolean proxyAuthReqd = false;
    try
    //juste ensuring that the proxy authentication is reset
    proxyAuthReqd = false;
    if( (targetConn != null) && (resp != null) )
    //Returns an unmodifiable Map of the header fields.
    //The Map keys are Strings that represent the response-header field names.
    //Each Map value is an unmodifiable List of Strings that represents the corresponding
    //field values
    headerFields = targetConn.getHeaderFields();
    //Returns a set view of the mappings contained in this map
    Set temp = headerFields.entrySet();
    //Returns an iterator over the elements in this set
    headerFieldEntries = temp.iterator();
    if (headerFieldEntries != null)
    while (headerFieldEntries.hasNext())
    Object tempHeader = headerFieldEntries.next();
    if (tempHeader instanceof Map.Entry)
    header = (Map.Entry)tempHeader;
    Object headerName = header.getKey();
    Object headerValue=header.getValue();
    System.out.println("ProxyServer:::>writeResponse-->headerName = "+headerName+" : headerValue = "+headerValue);
    //do not select the key-value pair if both the key adn the value are null
    if ( ( headerName == null) && (headerValue == null) )
    continue;
    }//Enmd
    if (headerValue != null)
    List headerValList = null;
    if (headerValue instanceof List)
    headerValList = (List)headerValue;
    }//End
    if(headerValList != null)
    for (int i=0;i<headerValList.size();i++)
    Object headerValueStr = headerValList.get(i);
    if (headerValueStr instanceof String)
    //note that the header-key can not be null for addHeader
    //I have made this temporary provision to make the programme work.
    resp.addHeader(( (headerName==null)? ("null_header"+i) :(String)headerName),
    (String)headerValueStr);
    //check if the proxy authentication required or not
    if (((String)headerValueStr).
    indexOf(resp.SC_PROXY_AUTHENTICATION_REQUIRED+"") != -1)
    System.out.println("ProxyServer:::>writeResponse-->proxy auth needed");
    //proxy authentication is needed
    proxyAuthReqd = true;
    }//End
    }//Ednd of
    else if (headerValueStr == null)
    resp.addHeader(( (headerName==null)? null :(String)headerName),
    null);
    }//End
    }//End for
    }//End if
    }//End if
    }//End
    }//End while
    }//End if
    //get the writer to the client
    prResp = resp.getWriter();
    System.out.println("ProxyServer:::>writeResponse-->proxyAuthReqd="+proxyAuthReqd);
    //juste test a simple header
    System.out.println("Proxy-Authenticate = "+(resp.containsHeader("Proxy-Authenticate")));
    //if the proxy asks you for authentication,pass on the same to the client
    //from whom you have received the request.When this flag is true,the connection
    //is closed by the remotehost adn hence any attempt to open in input steram
    //results in an error ie IOException
    if (!proxyAuthReqd)
    //now get the content adn write it to the response too
    brConn = new BufferedReader(new InputStreamReader(
    targetConn.getInputStream()));
    String tempStr = null;
    while ((tempStr = brConn.readLine())!=null)
    prResp.println(tempStr);
    }//End while
    //close the connections
    brConn.close();
    }//End if
    else
    prResp.println("Proxy Authentication needed...");
    }//End
    //close the streams
    prResp.flush();
    prResp.close();
    }//End if
    System.out.println("ProxyServer:::>writeResponse exiting\n");
    }//End try
    catch(Exception e)
    throw new ServletException(e);
    }//End
    }//End
    //method to post request to the internet
    private void postRequest(URLConnection targetConn,HttpServletRequest req)
    throws ServletException
    //extract the header parameters and the body content from the incoming request
    //and set them to the new connection
    Enumeration reqHeaders = null;
    //reads the incoming request's content
    BufferedReader brReqRd = null;
    PrintWriter prResWt = null;
    //stores temp header names and values
    String headerName = null;
    String headerValue = null;
    try
    if( (targetConn != null) && (req != null) )
    reqHeaders = req.getHeaderNames();
    //extract a header adn set it to the new connection
    while (reqHeaders.hasMoreElements())
    headerName = (String)(reqHeaders.nextElement());
    headerValue = req.getHeader(headerName);
    targetConn.setRequestProperty(headerName,headerValue);
    System.out.println("ProxyServer:::>headerValue::> headerName = "+headerName+" : headerValue="+headerValue);
    }//End
    System.out.println("ProxyServer:::>postRequest\n");
    //establis the actual connection
    //calling this method bfore the above loop results in IllegalStateException
    targetConn.connect();
    //NOTE : try reading from and writing into OIS and OOS respectively
    //now read the contents and write them to the connection
    // brReqRd = req.getReader(); //this hangs for some reason
    brReqRd = new BufferedReader(new InputStreamReader(req.getInputStream()));
    System.out.println("Got the reader..brReqRd = "+brReqRd);
    if (brReqRd != null)
    String temp = null;
    //establish the printwriter
    // prResWt = new PrintWriter(targetConn.getOutputStream(),true);
    prResWt = new PrintWriter(targetConn.getOutputStream());
    System.out.println("trying to read in a loop from brReqRd.. ready="+(brReqRd.ready()));
    while( (brReqRd.ready()) && ((temp=brReqRd.readLine()) != null) )
    System.out.println("In while::>temp = "+temp);
    prResWt.println(temp);
    }//Emd while
    //close the streams adn go back
    brReqRd.close();
    prResWt.flush();
    prResWt.close();
    }//End
    }//End outer if
    System.out.println("ProxyServer:::>postRequest exiting\n");
    }//End try
    catch(Exception e)
    throw new ServletException(e);
    }//End
    }//End
    }//End

    Hi serlank ,
    Thanks for your reply. Well , I initially I thought of not pasting the code,as it was too long. But I could not help it,as I thought I must show in code what I exactly meant. That's why I followed a description of my problem with the code. You could probably have copied the code and pasted it in one of your favourite editors to take a look at it. Did you,by any chance, try to read it on the browser? And as regards reposting the same message, I can say that I did it as I felt the subject was not quite appropriate in the first posting and I was not sure as to how I could delete/alter the posting. I am not asking for a code-fix,but some suggestions from some one who might ever have come across such a thing.Anyway, lemme know if you have any idea on it. Thanks...

  • SQL query with parameter returns empty result set, please help !!!

    Hi there,
    When I use the following query :
    <sql:query var="beroepsthemas" >
    select *
    from beroepsthemas
    where beroepsthemaid = ?
    <sql:param value="12"/>
    </sql:query>
    When I want to browse the result set with :
    <c:forEach items="${beroepsthemas.rows}" var="rij">
    it shows no records. But it must return at least one.
    All my jsp pages with sql queries and parameters have the same problem.
    This is all on my test environment. I'm using Ubuntu 5.10, Netbeans5.0, JDK 1.5_06, application runs in Bundeled Tomcat 5.5.9, MySQL 4.1.12, mysql-connector3.1.6
    When the same code is run on the live environment, it works just fine.
    The difference is :
    Mysql 4.1.10a, tomcat5.5.9, mysql-connector3.1.6
    What can there be wrong !!

    When the same code is run on the live environment, it
    works just fine.
    The difference is :
    Mysql 4.1.10a, tomcat5.5.9, mysql-connector3.1.6
    I didn't catch this. I think you may need to update the database driver.

  • Plain HTTP adapter error: Bad Gateway, Proxy Error, please help !

    hello all,
    i have the following scenario:
    filesystem->file adapter->XI->plain http adapter-> receiver system.
    the following error occurred while calling plain http adapter:
    <SAP:Category>XIAdapter</SAP:Category>
    <SAP:Code area="PLAINHTTP_ADAPTER">ATTRIBUTE_Server</SAP:Code>
    <SAP:P1>502</SAP:P1>
    <SAP:P2>Bad Gateway</SAP:P2>
    <SAP:P3> Proxy Error</SAP:P3>
    <SAP:P4 />
    <SAP:AdditionalText />
    <SAP:ApplicationFaultMessage namespace="" />
    <SAP:Stack>HTTP-Server Code 502 Reason Bad Gateway Explanation Proxy Error</SAP:Stack>
    A RFC-Destination with SSL is used in this scenario. Connection test to the destination machine is also succeeded. some files have been transported to the receiver system, yet without payload. data is lost.
    anyone has encountered such problem or anybody can tell me please how to solve this problem.
    thanks for your help
    regards

    Hi,
    I´ve found a SAP-Note concerning this error-message 692057
    There is the note 450226 gives an overview over error codes
    Probably below solution may help you.........
    As an administrator on your portal go to:
    System Configuration > Service Configuration >applications
    Under: com.sap.portal.ivs.httpservice > Services > Proxy
    If any proxy settings are configured you may end up with the problem, so you need to set the "nonProxyHosts" to include the trex host.
    After a restart the search was working normally again.
    Thanks
    Swarup

  • Converting an MPG video for ipod.. please HELP

    Hello... i'm sorry about my bad english...
    I tried many times converting videos for ipod, it allways convert them and than they become without the sound... someone can help me with that?
    Thanks
    Leo

    Quicktime or Quicktime Pro (which iTunes uses) don't convert "muxed" ( muxed means multiplexed where the audio and video are stored on the same track) video files properly. It only plays the video and not the audio.
    See:iPod plays video but not audio.
    You need a 3rd party converter to convert the file with both audio and video.
    See this for help: Guide to converting video for iPod (Mac/Windows).

  • GetFetchedRowCount() in CO returns always 1 .. please help !!!!!

    Hi ,
    I am trying get the number of rows fetched in my CO.But it always returns value 1 .But in the oaf page i am getting 4 rows.but in the controller it is always returing 1 for the first time i click on go button but when i click the second time it is giving me correct number of rows. please find the code below.... let me know how to resolve this.
    Code in my Controller PFR :
    if (pageContext.getParameter("Go") != null) {
    partyId =(String)pageContext.getParameter("partyId");
    acctNum=(String)pageContext.getParameter("AccountNumber");
    Serializable[] parameters = {partyId,acctNum};
    am.invokeMethod("initAccount", parameters);
    OAViewObject vo = (OAViewObject)am.findViewObject("AccountMappingVO1");
    vo.executeQuery();
    System.out.println("vo.getQuery()"+vo.getQuery());
    int fetchedRowCount = vo.getFetchedRowCount();
    System.out.println(" fetchedRowCount -- >"+ fetchedRowCount);
    code in AM:
    public void initAccount(String partyId) {
    AccountMappingVOImpl vo = getAccountMappingVO1();
    vo.initActVal(partyId,acctNum);
    code in VO:
    public void initActVal(String partyId,String actNum){
    Number partyIdNo = null;
    try{
    partyIdNo = new Number(partyId);
    acctIdNo = new Number(actNum);
    catch(Exception e){
    String error= e.toString();
    throw new OAException(error,OAException.ERROR);
    setWhereClauseParams(null); // Always reset
    setWhereClauseParam(0, partyIdNo);
    setWhereClauseParam(1, acctIdNo);
    executeQuery();
    thanks
    ramya

    Y are u re-executing the VO query in CO after you are already doing it in AM? Instead of fect row count try to print, rowcount and see.
    --Mukul                                                                                                                                                                                                                                                                                                                           

Maybe you are looking for

  • How do I download Camera Raw?

    I just downloaded LR5 and wanted download Camera Raw. When I went to the directed page in the Product site I got a go description of the Camera Raw but no instructions on how to download.

  • Accessing a gui component directly via getSource()

    Hi, to access a gui component I can access it by getting its object variable and casting it to its class type, e.g.: public class Tab02 extends JFrame {      JTable tab = new JTable (rows, head);      JTextField txt = new JTextField ("dimensions");  

  • What package do I need to setup call forwarding to...

    Hi I want to forward calls to my mobile when I cant answer them. I only want to call landlines in the UK and forward calls onto my mobile. What package would suit my needs? Thanks

  • Workstations not Joining the Domain after OSD

    I have a sporadic problem happening in my Environment.   OSD Deployments for the most part finish successful , workstation joins the domain with no issues.   At certain locations  occasionally the workstation does not join the domain.     Have you se

  • Methodaology to use a commom JSF/JSP page for both PDA and PC Browser

    hello, I am planing to write an application that should work on both PDA(Windows CE 4.2 Client) and PC(Desktop).I choosed JSF as it supports Rendering.Is there any methodology so that i can use a common JSF/JSP for both the client. As the PDA browser