Problem with the HTML Preview

Hello,
when i try to run the HTML Preview, i get this error message:
" Failed to connect to "localhost".Error returned from windows sockets API:0.Please check the name of the RAS server"
If i logged on the BOE, I get the HTML Preview, but without a login I get this error message.
Does somebody know what kind of configuration we can do to solve this and use in this case the RAS-Server?
This is my config:
Web Server Name: [servername]:8080
Plattform: Java
URL: http://[servername]:8080/CrystalReports/crystalreportviewers/preview.jsp
RAS Server Name: [servername] ???
Thanks in advance!
Regards
David

Hello Henry,
Thanks for your answer!
BUT in the options from Crystal Reports I can configure to "Enable the HTML preview when not logged on the BusinessObjects Enterprise" (original text from CR).
In this tab you can do some configuration like Web Server Name, Plattform, URL and the main reason the RAS Server Name.
My questions is, what kind of configuration I need to do, when I'm NOT LOGGED on the BOE to view the HTML Preview?
Regards,
David

Similar Messages

  • Problems with the photo preview

    Z10 is a great mobile.
    1 - Since I had it I never had problems with it. However now my mobile is not doing the preview of the photos taken by the camera.
    I open the camera app, take a picture... then close the app. If I go to images the picture does not appear. However if I turn the mobile off and then on the picture will appear in the preview on images.
    Could this be a result of any app that I did install?
    How can I solve this?
    2 - All my paid apps from BB World are always available there with my BB id even if for some reason I had to format the mobile?
    Thank you.
    lb

    Not sure what the problem could be. Could be an app. Could be something else.
    When it happens again, do a soft reset. http://www.blackberry.com/btsc/KB02141 Afterward, see how long it takes for the problem to reappear, and whether there is anything consistent about it happening again.
    You could try deleting apps one at a time and testing. If it were me and the problem is frequent and irritating, I would go straight to doing a backup and then a security wipe.
    - Ira

  • Problems with the html custon page

    Hi, i add the parameter connectionDisallowedURL ( connectionDisallowedURL = /custom_page/custom_page.htm) to my formsweb.cfg. This one, have the name of the folder where i put the html custom page and all the images (.gif). This folder is located in /ORACLE_HOME/Apache/Apache/htdocs. When i disabled the new user connections (     allowNewConnections=false) the Application Server redirect to my custom page, but not display the images.
    Anyone can help me?

    Ok!!!... I resolved the problem. I moved the images to /Apache/Apache/hdocs/ohs_images
    thx,

  • I am having problems with the Preview application.  When I try to use it to open a pdf document it gets hung-up and I have to select force quit to close it.   Any ideas on how to resolve this problem?  Thanks for any help

    I am having problems with the Preview application.  When I try to use it to open a pdf document it gets hung-up and I have to select force quit to close it.   Any ideas on how to resolve this problem?  Thanks for any help

    Can you open the Preview program without loading a file, like by itself?
    If it doesn't load then I suspect a corrupt Preview preference file.
    Deleting the System Preference or other .plist file
    Can you open other files with Preview, like jpg's and images?
    How about other PDFs? or is it just that one you have downloaded?
    Run through this list of fixes
    Step by Step to fix your Mac

  • My gmail doesnt load on my macbook pro anymore, only able to fully load with the html version. Anyone share the same problem?, My gmail doesnt load on my macbook pro anymore, only able to fully load with the html version. Anyone share the same problem?

    My gmail doesnt load on my macbook pro anymore, only able to fully load with the html version. Anyone share the same problem?, My gmail doesnt load on my macbook pro anymore, only able to fully load with the html version. Anyone share the same problem?
    It loads till the almost the end of the bar and just stops there.

    I'm having the same problem. It just freezes and wont load the rest of the way.

  • Problem with the SDN in Sneak Preview

    Hello everybody!
    I use the Sneak Preview of SAP NetWeaver.
    I want to create my own database.
    When I want to deploy it, it asks me a password. Then an error message appears saying that I've got a problem with the SDN!
    When I look to the console, I read Exitcode -2 in front of the SDN part!
    Does anyone know what happens?
    Thank you!

    Hi Arunkumar,
    I gave "admin" as password!
    Regards,
    Adrien

  • Hi, I have a macbook air os x 10.9.5 and I have problems with the app store. It doesn't open anyway. so, how can I install it again or update. I have problems with preview too, the same, doesn't open the application

    Hi, I have a macbook air os x 10.9.5 and I have problems with the app store. It doesn't open anyway. so, how can I install it again or update. I have problems with preview too, the same, doesn't open the application

    Reinstalling OS X Without Erasing the Drive
    Boot to the Recovery HD: Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
    Reinstalling OS X Without Erasing the Drive
    Repair the Hard Drive and Permissions: Upon startup select Disk Utility from the main menu. Repair the Hard Drive and Permissions as follows.
    When the recovery menu appears select Disk Utility and press the Continue button. After Disk Utility loads select the Macintosh HD entry from the the left side list.  Click on the First Aid tab, then click on the Repair Disk button. If Disk Utility reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit Disk Utility and return to the main menu.
    Reinstall OS X: Select Reinstall OS X and click on the Continue button.
    Note: You will need an active Internet connection. I suggest using Ethernet if possible because it is three times faster than wireless.
    Alternatively, see:
    Reinstall OS X Without Erasing the Drive
    Choose the version you have installed now:
    OS X Yosemite- Reinstall OS X
    OS X Mavericks- Reinstall OS X
    OS X Mountain Lion- Reinstall OS X
    OS X Lion- Reinstall Mac OS X
         Note: You will need an active Internet connection. I suggest using Ethernet
                     if possible because it is three times faster than wireless.

  • Hi  i am trying to open a pdf  but " preview " is saying that the file cannot be opened or that there is a problem with the file  - what do i do? :-)

    hi  i am trying to open a pdf  but " preview " is saying that the file cannot be opened or that there is a problem with the file  - what do i do? :-)

    Try opening the file using Adobe Reader.
    Clinton

  • Problem with the browse sequence back and browse sequence next widget placed in the screen layout

    Hi,
    Some basics: We are using Robohelp 10 to  generate multiscreen  html5 output. We used the pharmaceutical  screen layout downloaded from:  http://helpx.adobe.com/robohelp/robohelp-screen-profiles-layouts.html but modified it to match our GUI.
    We are having a problem with the browse sequence back and browse sequence next buttons placed in the screen layout from the widgets tool bar. We are in no way experts at this part of Robohelp...and the css portion of all this is a bit of mystery but we have managed to get mostly what we need. Now we just need these buttons to work. In the past we used Airhelp and things worked great. Can anyone help us understand why the sequence buttons are not showing up in the output even though it does in the topic preview?
    Also
    This shows up in the  layout.css file:
    a.wBSBackButton {
                    margin: 0 8pt 0 0;
                    padding: 0;
                    background-color: transparent;
    img.wBSBackButton {
                    border: none;
    a.wBSNextButton {
                    margin: 0 8pt 0 0;
                    padding: 0;
                    background-color: transparent;
    img.wBSNextButton {
                    border: none;
    Also btw, I forgot to mention that we are linking our FrameMaker files.
    Appreciate the help.
    Thanks!

    hi pradeep
    It does not happen but if you Wait for a while that may be solved

  • Problem with inserting html code.

    Hello,
    I have a problem with the inclusion of this code html connected to the CSS style sheets:
    <head>
    <link href='http://fonts.googleapis.com/css?family=Raleway:320,320,300' rel='stylesheet' type='text/css'>
    <link rel="stylesheet" type="text/css" href="assets/normalize.css" />
    <link rel="stylesheet" type="text/css" href="assets/demo.css" />
    <link rel="stylesheet" type="text/css" href="assets/component.css" />
      </header>
        <div class="grid">
        <figure class="effect-lily">
        <img src="assets/1.jpg" alt="img01" class="effect-honey"/></figure>
      </a>
    </section>
    </div><!-- /container -->
    </body>
    </html>
    1) Does not appear in the preview thumbnail adobe muse.
    2) The pull-down menu or previously entered disappears from display problems once exported the site in html.
    Removing the html code menu work correctly.
    Where is the problem ??

    Most likely there is a critical code error somewhere. Use the W3C validation tools to check your CSS and HTML code.
    CODE VALIDATION TOOLS
    CSS - http://jigsaw.w3.org/css-validator/
    HTML - http://validator.w3.org/
    Nancy O.

  • Problems with display of preview - and Adobe's tech support.

    Hello, all.
    After quite a bit of struggle I am still experiencing problems with the way Bridge CS5 displays previews. Previews are displayed with rather low quality. By that I mean low resolution that causes images to appear pixelated and out of focus. I've tried every possible setting in Bridge (or at least I think I have) but nothing seems to work. The setting that forces Previews to be built to the specific monitor size of the computer used doesn't work for me as I spend equal amounts of time working between my Macbook Pro 17" and my Apple 30" cinema display that have different resolutions. I've tried this setting and the preview images created on the notebook would not display at all on the 30" display.
    I have contacted support only to find it is nearly non-existent. A voice obviously from someone located in India answered and kept asking what I considered to be basic questions and must have used the word "apologize" at least 20 to 30 times (no exageration) during the 1 hour and 43 minutes we were on the phone to accomplish nothing other than to "register" my complaint.
    What is happening to Adobe ? This is not a joke, a rumor or an angry comment but rather a serious question from a user who has built a professional workflow based on the use of Adobe's products. I have been an user of the Adobe Creative Suite since its very first version and of the individual applications even before then. Bridge is one of the applications I use the most in my workflow that involves the organization of my large database of medical images I keep from my treatments and research. So this is very serious to me. I am now on the phone with Adobe waiting again to speak with someone in technical support. I was told the average waiting time would take between 35 and 50 minutes and I didn't think it would be possible but so far I have been on hold waiting for 1 hour and 7 minutes and someone has yet to answer the phone. What is happening with Adobe ? Is the company about to go out of business ? The last time I remember experiencing such a lack of support from a company I did so when contacting Polaroid and we all know what happened to it.
    To make matters worse I have twice contacted Adobe and asked their technical support agent to remove a phone number that they seem to have mistakenly written as a contact number in my files. More than one month after I registered my support request I finally received an e-mail stating that had tried to contact me at the phone that isn't mine and shouldn't be a part of my records despite the fact I have instructed them twice to remove. There are serious legal implications here as I am bound to confidentiality when it comes to the medical information I manage with my Adobe applications and the idea that someone in technical support may accidentally share this information with a stranger while calling the wrong number is a serious problem.
    What is going on ?
    Outside of this forum I have no idea who to contact and if it is even worthwhile doing so as it may prove to be a huge waste of time.
    Bridge has been a problem application since its inception. In fact the only version of Bridge that seemed to have worked (somewhat) right out of the box was the first one. I have experienced problems with Bridge with every single new version. Previews that don't display properly, crashes, folder hierarchy indicators not displaying properly, and others. The same images display fine if I open them in Apple's OS X Preview or Photoshop CS5. The problem is restricted to Bridge. All images are RAW high-quality images from a professional Canon EOS 1Ds MK II camera with a 17 megapixel full size sensor, and they always look stunning on everything else.
    What is one to do ???
    Sorry about the long post but I am one frustrated user who doesn't know what else to do.
    Thanks,
    Joe

    Hi again, Steve.
    In answer to your questions:
    > What view are you using for the Slideshow (centered, fit screen, fill screen, 100%)?
    Centered.
    > What is the slide duration set to in Slide Show Options, does changing it to manual help?
    I have it always set to manual.
    > What are you're Preferences> Advanced> settings for 'Software Rendering' and 'Monitor Previews' (checked or unchecked)?
    I've tried both choices for both options. My usual default options are 'Software Rendering' unchecked as I have a new Macbook Pro (only a few months old) and the graphics card is powerful enough to handle the previews and 'Monitor Previews'  also unchecked.
    > What are you're Preferences> Cache settings for Options (Keep 100%..., Automatically Export...)?
    ' Keep 100% Previews in Cache ' option - checked
    ' Automatically Export Cache to Folders When Possible ' option - unchecked
    > What resolutions do you have set for both the 17" MBP and 30" ACD?
    Their native resolutions: 1920 x 1200 for the MBP 17" built-in display and 2560 x 1600 for the 30" cinema display.
    > In the Mac System Prefs.> Energy Saver... do you have the Automatic graphics switching checked off ?
    No. I have this option checked for both Battery and Power Adapter.
    On Bridge's interface upper right hand corner I have also selected using one of its pull down menus the following options:
    ' Always High Quality ' and ' Generate 100% Previews '
    Any ideas ???
    Thanks,
    Joe

  • Problem with the FOR statement.....again!

    Hi everyone,
    Well I'm still trying to do a car slideshow using external
    files and can't seem to see the end. The current movie is here:
    http://www.virtuallglab.com/projects.html
    I also attach the code. My problem is I had originally set up
    an animation with 2 pictures sliding in with some text, and then
    wait 4 seconds before sliding out, and then next pictures and text
    would slide in and so on, using a setInterval.
    The problem is the FOR loop seems to skip the setInterval and
    the function "wait", so it just loops quickly and jumps to last
    picture, so on the example above, it just slides the last picture
    (i=9) and that's it!
    Can you not include another function within a FOR statement.
    Or is there a way to tell the FOR loop to wait until all motion is
    finished?
    Any help greatly appreciated
    import mx.transitions.*;
    import mx.transitions.easing.*;
    for (i=0; i<10 ; i++) {
    var picLeft = "pics/"+i+".jpg";
    var picRight = "pics/"+i+"b.jpg";
    var txtToLoad = "text/"+i+".txt";
    this.createEmptyMovieClip("leftHolder",1);
    leftHolder.loadMovie(picLeft,i,leftHolder.getNextHighestDepth());
    leftHolder._x = -200;
    leftHolder._y = 15;
    var leftTween:Tween = new Tween(leftHolder, "_x",
    Strong.easeOut, leftHolder._x, 10, 2, true);
    this.createEmptyMovieClip("centerHolder",2);
    centerHolder.loadMovie(picRight,i+"b",centerHolder.getNextHighestDepth());
    centerHolder._x = 180;
    centerHolder._y = 250;
    var centerTween:Tween = new Tween(centerHolder, "_y",
    Strong.easeOut, centerHolder._y, 15, 2, true);
    text._x = 600;
    myData = new LoadVars();
    myData.onLoad = function(){
    text.carText.text = this.content;
    myData.load(txtToLoad);
    var textTween:Tween = new Tween(text, "_x", Strong.easeOut,
    text._x, 420, 2, true);
    myInterval = setInterval(wait, 4000);
    function wait() {
    var leftTweenFinished:Tween = new Tween(leftHolder, "_x",
    Strong.easeOut, leftHolder._x, -200, 1, true);
    var centerTween:Tween = new Tween(centerHolder, "_y",
    Strong.easeOut, centerHolder._y, 250, 1, true);
    var textTween2:Tween = new Tween(text, "_x", Strong.easeOut,
    text._x, 600, 1, true);
    clearInterval(myInterval);
    ***************************************************************************************** ***

    There is no way to tell a for loop to wait. That is not what
    they do.
    The entire for loop will execute (if possible, and it doesn't
    enter some kind of continuous infinite loop) completely before each
    time the frame is rendered.
    If you want to spread things out over time you need to use
    the setInterval -- but not inside a for loop! If you do that you
    immediately set however many intervals as your loop has. In this
    case you will also assign the ids for those intervals to the same
    variable, effectively overwriting the value so you will never be
    able to clear most of those intervals.
    So you need to rethink you whole structure. Set up some kind
    of counter and limit like this:
    var slidesToShow:Number=10;
    var curSlide:Number=0;
    Then have your setInterval increment the curSlide each time
    it is called and check to see if it has shown all of them. That is
    where your "loop" comes in.
    As for the other part of your question -- yes you actually
    have two different issues going on -- again you cannot make a for
    loop wait for anything. So no there is no way to pause it while you
    wait for your tween to end. But you can be notified when a tween
    ends.
    Check out the documentation about the tween class in the help
    files. There you will find the onMotionFinished event. So you can
    set up one of those to start whatever needs to be started when the
    tween has finished.
    You should also use the MovieClipLoader class to load your
    images, because you have no idea how long it will take to load
    them. Using that class you get a nice event (onLoadInit) that tells
    you when the asset is ready to be used.
    Finally I'm thinking you might want to use setTimeout instead
    of setInterval. It only goes once, while setInterval repeats
    forever. So I would think your algorithm would be something like
    this.
    1. load external asset
    2. when ready animate in and set onMotionFinished handler
    3. when motion is finished start loading next asset and
    setTimeout for 4 seconds.
    4. when 4 seconds is up or the clip is loaded (which ever
    takes longer) go to 2 and repeat.
    If this is going to be run locally on a hard drive or CD you
    won't have any problem with the length of time it takes to load the
    external assets, but if it is over the web it will take time.

  • 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...

  • Two new problems with the Quicktime Plug-in

    I recently discovered two new problems with the current Quicktime Plug-in for Mac OS X.
    First, the Quicktime Plug-in is unable to stream Quicktime media in any internet browsers other than Safari.
    There is just nothing on the spot where the embedded Quicktime player should be.
    Second, the Quicktime Plug-in only shows the message "The operation couldn't be completed. This file is not a movie file (-2048)"
    everytime it should work together with the Flip4Mac Plug-in. The thing is, when facing a webpage where a wmv or wma file is
    embedded, there only shows that error message on the spot where the player should exist. I first thought that it would be a
    problem with Flip4Mac. So I uploaded about this problem on telestream.net, only to hear that the error message above belongs
    to the Quicktime Plug-in.
    Both of these problems did not happen at all only three weeks ago. The embedded Quicktime player showed up without any problem
    in my Firefox and Opera, and wmv or wma files were streamed successfully through the Flip4Mac and Quicktime Plug-ins.
    Then, suddenly, after some point, these two problems began to occur, and there is no information on how to solve them on the web.
    I obviously tried uninstalling and reinstalling Quicktime. I even completely erased the hard disk of my Macbook, and reinstalled the
    whole Mac OS X. But the problems still remained. I borrowed another Macbook from my friend to check whether these problems
    occur in other computers, and they did occur in my friend's Macbook as well. So they are definitely not the matter of my own Macbook only.
    I think these might be the problems with the new Quicktime Plug-in 7.7.1.
    Please check about these problems and solve them on the next version of the Quicktime Plug-in.
    I will give you a couple of hyperlinks so that you can check about the problems directly.
    http://blog.naver.com/dbswhddlf1?Redirect=Log&logNo=130025903581
    ↑ This link is for the first problem (the embedded Quicktime player not showing up in any browsers other than Safari)
    http://blog.daum.net/wellabc/15434322
    ↑ This link is for the second problem (the error message showing up on the spot where a wmv or wma file should be streamed)
    p.s: I am sorry that I am Korean.

    I recommend that you repeat all this via
    http://www.apple.com/feedback/quicktime.html
    to make sure that Apple will see it.

  • Problem with index.html.  Help!

    I am having a problem with the index.html. In iWeb my site looks perfect. When I publish it to a folder and then open the index certain media is missing but just on one page.
    I have tried deleting the published site from the folder and re-publishing but nothing seems to work. Same result...
    Even more interesting, I uploaded the site almost a month ago and everything was fine until I noticed last week that my pics on one page had been completely erased. What could cause the change? I didn't upload a new version of the site.

    Even more interesting, I uploaded the site almost a month ago and everything was fine until I noticed last week that my pics on one page had been completely erased.
    Please provide your url so we can see what is happening.
    The index.html file plays no role in what you are describing.

Maybe you are looking for

  • Acrobat Plug-In Problem

    When opening a pdf file in Acrobat 8 it says Invalid plug in and crashes makes the computer unusable too nothing opens until I restart help

  • Preset DVCPRO HD 720P to DVD SD

    I just want to know the preset to burn sd dvd pal wtih dvcpro hd 720 FinalCut Source. did you think that i need to use filters. thanks

  • Slow booting mac mini..

    Hi. I have a mac mini (early 2009, 2ghz, 4gb ddr3 memory). For some reason it seems to boot slower than my girlfriends mac mini (late 2006, 1.6ghz 2gb ddr2memory). Both are running 10.6.7 fully updated, connecting to the same network with only a keyb

  • Missing title templates in Premiere Pro CS 5.5

    I have not been using Premiere Pro very much, but now I have a lot of video clips I want to put together, and I have started digging into Premiere Pro CS 5.5, which I installed in november 2011. I observe that the title templates are missing, (I don'

  • Telnet through Java and JSP

    Hi friends, Now, there is a certain server that one can telnet into using old conventional way, that is from a shell. However, I would like to do the same from form on a webpage which, on submitting, does the logging in, querying the command and retu