A problem with the way

Hi,
http://tompeez.wordpress.com/2011/12/16/jdev11-1-2-1-0-handling-imagesfiles-in-adf-part-3/
For the app that is from the above download, if I am to do the same thing to handle with the image like what the app did within doGet that reside in ImageServlet, how can I simplify the steps? For instance, within doGet, it refers to one other class “ULDLAppModuleImpl” which will refer to one other “ImageAccessViewImpl”, which will refer to one other “ImageAccessView” ….
Edited by: HuaMin on Apr 16, 2012 3:25 PM

Hua,
the reason I did not answer on the other thread is that I don't think you get it better then a working solution on a sliver tablet.
As usual you are posting question out of the blue. No Context. No Jdev version. No substantial information of your own.
You are copying my code which can be loaded from by blog http://tompeez.wordpress.com/2011/12/16/jdev11-1-2-1-0-handling-imagesfiles-in-adf-part-3/ without referencing the blog.
I personally find this rude behavior!
Timo

Similar Messages

  • Problem with the way fonts display in Internet Explorer

    Howdy. I built a site about a week ago (first crack at this). It has quite a bit of content but seemed to be fine on Safari, Netscape and Firefox. I checked it out at work on a PC with Internet Explorer 6 and there were typography problems. I intentionally used simple web fonts (all Arial) to hopefully minimize this sort of thing. I used a 70% tint of Black for the font color on all the fonts. On Explorer the fonts display fine on pages 1, 2, 3, and 4. On page 5 the type appears blurry, really greyed and spread. I can't figure out why (same fonts and styles).
    As an experiment I tried posting just a couple of pages with the type at 100% black. The really bad pages weren't so bad (but not nearly as good as on the other browsers.) The site is rballister.com. If you click on any of the links (picture boxes) on the "print & mail index" pages you will see the problem with the type. Thanks in advance for any help anyone can provide.

    Because I thought it would be a nice effect, I decided to use the slider in the color pallette and change to color of the type from 100% black to 70% black (which is to to say a shade of gray). I'm referring to text that I keyboarded into iWeb. As previously mentioned, the gray type worked just fine on most browsers but caused problems in Internet Explorer (in a seemingly random way. Still can't figure out the reason). When I changed the type to black on a white background (black and white), the problem wasn't as bad as it was in Explorer, but still not nearly as good as in the other browsers.

  • Problem with the way text is selected.

    Hoping someone might have answer...
    The way text is being selected in some pdf's i have been using has suddenly changed. I am not sure if there is a setting that changed or what but i am totally mystefied. The text from the pdf was selecting by line, by line, and now its kind of doing it by "column" in a way, where the text on the clipboard now has extra carriage returns. One day it was this way, the next it was a different way.
    To illustrate the format of the pdf, its layed out like:
    "The seating arranements will be as follows"                     "Jack1     Jill1"
                                                                                        "Jack2     Jill2"
                                                                                        "Jack3     Jill3"
    The pasted text into notepad used to look like this:
    "The seating arranements will be as follows Jack1 Jill1"
    "Jack2 Jill2"
    "Jack3 Jill3"
    Now for whatever reason it looks like this all of the sudden:
    "The seating arranements will be as follows Jack1 Jill1"
    "Jack2"
    "Jack3"
    "Jill2"
    "Jill3"
    The pdf doesnt contain any tags as far as i know but i just dont understand why it changed. I have tried it on three different computers with different versions of Reader. Any ideas? I dont know much about pdf, i wrote some code that parses copied text from  pdfs and now this is throwing it off

    Hello June,
    In the computers System preferences/Personal/ Appearance do you have
    Font smoothing style set to "Automatic-Best for main display"
    In Safari preferences what do you have Text encoding set to?
    Is it Western (ISO Latin 1) that is what we have our set to on the
    macbookpro, if not try it.
    See if this article will help Kurt Lang's ~ Font Management in Mac OS X
    Please report back.
    Eme: )

  • Problem with the way text is displayed.

    Recently I noticed that almost all of the text in my display is bold. This is preventing me from seeing new messages in my email and it's preventing me from viewing some websites properly. I've tried looking in the preferences for safari, but I can't find anything about things being bold.
    Help?
    MacBook Pro   Mac OS X (10.4.7)  

    Hello June,
    In the computers System preferences/Personal/ Appearance do you have
    Font smoothing style set to "Automatic-Best for main display"
    In Safari preferences what do you have Text encoding set to?
    Is it Western (ISO Latin 1) that is what we have our set to on the
    macbookpro, if not try it.
    See if this article will help Kurt Lang's ~ Font Management in Mac OS X
    Please report back.
    Eme: )

  • I am having a problem with the FireFox browser. I have attached two files that best describe the problem. I have labeled them A & B. A is the way it should lo

    I am having a problem with the FireFox browser. I have attached two files that best describe the problem. I have labeled them A & B. A is the way it should look and B is what happens after I have I opened several tabs. I can get it back to normal if I click on VIEW than click on customize. When the customize window appears FireFox returns to its normal state. I than click on the done box and go back to what I have been doing. I tried resetting FireFox back to default settings, but that did not correct the problem.
    This began happening about a month ago. Is there a way I can fix this problem? Thanks for your help.I don't know how to attach my 2 attachments that shows the problem I am having.
    [email address removed to protect your privacy and security]
    <! [email protected] -->

    I found the images here: https://support.mozilla.org/en-US/questions/977542#answer-501598

  • Hi every time I go to write a tx on my iPhone it asks for my apple I'd sign in like when I buy an app or something and you have to enter your password is there a way to stop it doing this or is there some kind of problem with the phone

    Hi every time I go to write a tx my phone asked for my sign in details like I have just bought something like an app of song ect I just press cancel and it goes away but still pretty annoying is there a way to stop this or is there a problem with the phone  ? Thanks

    If the login box keeps popping up either your acct is disabled or you are mistyping your pw.  
    Go here and try out your pw and reset if necessary:
    http://appleid.apple.com/
    Click on Manage ID and go from there.

  • I am having problems with the InDesign it won't download it keeps saying extract when its about 30% then it says failed. How can i get it to download all the way?

    I am having problems with the InDesign it won't download it keeps saying extract when its about 30% then it says failed. How can i get it to download all the way?

    Basic troubleshooting from the User's Guide is reset, restart, restore (first from backup then as new).  Try each of these in order until the issue is resolved.

  • Problems with the O2 blackberry data package on my Curve 3G.

    I have already informed O2 about this but they claim that I should be used the blackberry support services, but nothing there helps me!
    I got my Blackberry Curve 3G on September 9th this year and I put on the Blackberry Data Package bolt-on onto my phone on September 16th. I then received a text to say they've taken £5 from my credit and it will be up and running in the next 24 hours. Its now September 19th and my BBM is not working at all and I am extremely upset with the services and behaviour I have received from both O2 and Blackberry.
    Is there any way you can help? If this fails, I shall be forced to go back to the shop from where I got my Blackberry from and ask for their help.
    Many thanks, Jade.

    Can a bubble whistle Problems with the O2 blackberry data package on my Curve 3G.? The seat matures in your oar. The lad ices the pursuing method inside a resident. A judge spins against the vendor! The rose wows the hello. 
    filipina heart

  • I just upgraded my iMac to Lion, and a few seconds ago, I upgraded the iWork package and now I'm having some problems with the new version of Pages (4.1) When I try to change something in a document, a message says "the program is not responding"

    I just upgraded my iMac to Lion, and a few seconds ago, I upgraded the iWork package and now I'm having some problems with the new version of Pages (4.1) When I try to change something in a document, a message says "the program is not responding", so I have to force it to close. By the way, the SAVE botton stays the same even I change erverything in my document. Please, a have a work to finish, **** me. What I can do abou it?

    I just upgraded my iMac to Lion, and a few seconds ago, I upgraded the iWork package and now I'm having some problems with the new version of Pages (4.1) When I try to change something in a document, a message says "the program is not responding", so I have to force it to close. By the way, the SAVE botton stays the same even I change erverything in my document. Please, a have a work to finish, **** me. What I can do abou it?

  • Problem with the volume keys on my keyboard.

    Hey everybody,
    I have a problem with the volume keys on my keyboard. This started a couple days ago and I can't seem to figure out how to fix it. When I press the volume up or down buttons, the graphic appears on the screen as it normally would, but has no effect on the volume of the sound coming out of my speakers.  Therefore, the only way to change the volume of music or whatever I am listening to is to use the volume control within the program/website itself (itunes, youtube, etc.) Even changing the volume on the volume icon at the menu bar on top of the screen does nothing.  If anyone has an idea of how to go about solving this issue, I would greatly appreciate it. Thanks!

    First look into the Preference > Sound > Outpur whether internal Speakers are choosen.
    The only Preference to delete I can discover is com.apple.systempreferences.plist in your home Library folder. You can try to move it out to the desktop for example, not to loose all your settings. Restart and see whether the problem still persists. If you don't know how to do this here some Terminal (Applications > Utilities) commands. Enter them by copy and paste followed by <enter>
    mv ~/Library/Preferences/com.apple.systempreferences.plist ~/Desktop/
    restart
    to get it back:
    mv ~/Desktop/com.apple.systempreferences.plist  ~/Library/Preferences/
    confirm with "y" if you are asked to replace this file.
    marek

  • Problem with the MenuBar and how can i delete a own component out of the storage

    Hello,
    I opened this thread in the category "Flex Builder 2", but
    under this category my questions fit better.
    I have a problem with the MenuBar and a question to delete a
    component out of storage.
    1. We have implemented the MenuBar, which was filled
    dynamically with XML data.
    Sporadically it will appear following fault, if we "mousover"
    the root layer.
    RangeError: Error #2006: Der angegebene Index liegt
    außerhalb des zulässigen Bereichs.
    at flash.display::DisplayObjectContainer/addChildAt()
    at mx.managers::SystemManager/
    http://www.adobe.com/2006/flex/mx/internal::rawChildren_addChildAt()
    at mx.managers::SystemManager/addChild()
    at mx.managers::PopUpManager$/addPopUp()
    at mx.controls::Menu/show()
    at mx.controls::MenuBar/::showMenu()
    at mx.controls::MenuBar/::mouseOverHandler()
    Here a abrid ged version of our XML to create the MenuBar:
    <Menuebar>
    <menu label="Artikel">
    <menu label="Artikel anlegen" data="new_article" />
    <menu label="Artikel bearbeiten" data="edit_article" />
    <menu label="Verpackung">
    <menu label="Verpackung anlegen" data="new_package" />
    <menu label="Verpackung bearbeiten" data="edit_package"
    />
    </menu>
    <menu label="Materialgruppe">
    <menu label="Materialgruppe anlegen"
    data="new_materialgroup" />
    <menu label="Materialgruppe bearbeiten"
    data="edit_materialgroup" />
    </menu>
    </menu>
    </Menuebar>
    It is a well-formed XML.
    2. Delete a component out of storage
    We have some own components (basically forms), which will be
    created and shown by an construct e.g.
    var myComponent : T_Component = new T_Component ;
    this.addChild(myComponent)
    Some of our forms will be created in an popup. On every call
    of the popup, we lost 5 mb or more, all childs on the windows will
    be removed by formname.removeAllChild();
    What cann we do, that the garbage collector will dispose this
    objects.
    Is there a way to show all objects with references (NOT
    NULL)?
    I have read in the Flex Help, that
    this.removeChild(myComponent) not delete the form and/or object out
    of the storage.
    Rather the object must be destroyed.
    It is sufficient to call delete(myComponent) about remove
    this object out of the storage as the case may be that the
    garbage-collector remove this object at any time?
    Or how can I destroy a component correctly. What happens with
    the widgets on this component e.g. input fields or datagrids?
    Are they also being deleted?
    Thanks for your help.
    Matze

    If you mena the "photo Library" then you cannot delete it.
    This is how iphone handles photos.  There are not two copies.  There a re simply two places from which to access the same photos.  ALL photos synced to iphone can be accessed via Photo Library.  Those same pics can be accessed via their individual folder.

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

  • Problem with the AF of my new 18-135mm EFS IS STM lens

    Hello,
    The lens came with the EOS Rebel T5i bundle.
    The auto focus is working incorrectly, focusing closer than the detected area. This is happening when I use the viewfinder. When a picture is taken using the “direct view” (LCD display) it focus correctly.
     I didn’t use the camera a lot since I bought it, now looking the first pictures I see that this problem is happening since I bought it.
    I changed the zoom lens with another Canon camera and then my new Rebel T5i works fine and the same problem happens with the other camera, therefore I’m sure that the problem is in the lens and not in the camera body.
    The out of focus is more noticeable when I'm taking pictures in 18mm position to an object farther than 2 meters but it is happening in any zoom position. It is clear when I compare the same picture taken with the viewfinder with one taken with the LCD Display.
    I updated the body firmware and the problem continues.
    Is it possible to update the lens firmaware? I couldn’t find them in the canon webpage.
    I will go into an important trip next week, therefore I will not have time to send the camera to repair.
    Any idea?
    Thanks!

    You may want to rent a lens for your trip and get this lens to service.
    You'll want to be sure it really is a problem with the lens (it sounds like it is from your description).  Test the lens against a "flat" target (such as a wall).  You can hang something on the wall with high-contrast (newspaper works great) and put the camera on a tripod.  The idea is that (a) the camera is definitely not moving, (b) the focus target is definitely not moving, and (c) the target is flat and there are no distracting objects in the field of view so it's not possible for the focus system to decide to lock focus on anything OTHER than your intended target.
    Next... deliberately turn the focus ring to put the camera out of focus (so that the camera HAS to move the focus).  This is mildly tricky with an STM lens since there's no mechanical link from the focus ring to the lens -- it's electronic.  The lens only accepts focus input when focus is active (e.g. half-press the shutter button, etc. to wake it up.)  I run focus all the way in and test several times, then run focus all the way out and test several times (that way it has to move focus in both directions.)
    If the lens is consistently focusing closer, then it will need service.  
    Tim Campbell
    5D II, 5D III, 60Da

  • Problems with the Fios 20/5 connection speed in my area dropping down to less than 3mbs.

    I have written out a flyer that I plan to go door to door with. Since I am under contract with Verizon, I am forced to honor my side of the contract. Even if they are allowed to make me pay for a service that I am not completely getting. I am very displeased and as soon as my contract is up, I will change back to My local cable companies all in one that does not require a contract and has no issue such as the one I am having.
    Do you have Verizon Fios Internet?
    Are you on the 20/5 connection?
    If so, you may not be getting the speed you are paying for. I am on a 20/5 connection and when my computer is on for longer than an hour the internet download speed with Verizon Fios starts to slow down until it is below 3mbs. It takes about 24 hours to get down to 3mbs but only about an hour or two to get down to about 6-7mbs when I am paying for 20mbs…
    I have 3 computers in my home that have Windows Vista, Windows XP home edition and Windows Media Edition 2005. All of the computers run into this same exact issue, I have tried every setting I could think of with my 24 years of computer technical experience. I finally took one machine with Windows XP and ran a full format on the hard drive and reinstalled a fresh Windows Xp Operating system onto the hard drive so it is a bare bones OS. This way there is no other software on the machine that could possibly be causing the problem and found that when I connected online through Verizon Fios the machine still ran into the same exact issue. This proves to me that the issue is not on any of my machines.
    Now all of this time my buddy that lives 1.2 miles away from my house has been having the same issue with three computers at his home also. He has Windows Vista on two machines and Windows XP Pro on one.
    When I concluded that it was a Verizon Fios issue, after a few months of trying to get by, researching, diagnosing and losing much information in order to verify it was on Verizon’s side, I contacted technical support at Verizon’s online website. The agent and I went through the regular procedure that anyone would have to go through and I patiently explained what I had done to try to diagnose the issue. The agent came to the conclusion that he could not figure out the problem so he guessed that the Verizon router/modem may be the issue and told me he would send me a new one by mail.
    I received the new Verizon router/modem, installed it and had to call to have it activated. Afterward it still had the same exact issue as the prior router/modem. So now we know it’s not my computers, it’s not the router/modem. My Verizon router/modem is connected right at the Optical Network Terminal (ONT), which is the box that connects the fiber-optics to your home, usually just inside or outside your garage wall. Mine is just outside…
    From here my buddy, who has been having this problem also the entire time, called the local office of Verizon Fios and an installer was setup to come over to his home and trouble shoot the issue. My buddy called me and told me when the installer was headed to his home and I met him at his home to see what the installer found and in hope that my issue would be fixed at the same time. The installer went through the system at his house and was frustrated about not finding the reason for the issue and ready to leave without fixing anything. I simply asked that he stay long enough to see the issue present itself within an hour-hour and a half.
    His laptop itself already showed the speed drop from 20mbs to between 16-17mbs, it was on its way down. He basically told us something that online tech support already stated to me, it is extremely difficult to prove it is on Verizon’s side. In other words it is extremely difficult to prove it, in a way that will convince Verizon to check its own servers, routers and software updates to their own systems. The installer, good guy, couldn’t/wouldn’t stay but we did convince him not to simply drop the issue. He called shop and they sent another installer out to take over the issue.
    The new installer, great guy, got up to speed on what was already done at my buddies home. The first installer, checked and replaced the Verizon router/modem, checked the wiring and splitters. Basically went through the entire system up to the Optical Network Terminal (ONT), the box that connects the fiber-optics to your home. He pulled and replaced the Optical Network Terminal (ONT), thinking that perhaps the unit was compromised. While he was doing this job a tech was called and asked to stop by for assistance with the issue. The tech checked the computers inside and tried to do some settings that the main office informed him to try. I explained to the tech that the same issue was happening at my house, that I went through every setting I could think of and find online to help alleviate the issue. After some shop talk about what I had tried, including the full format and reinstall of the operating system on one of my machines, he just as I came to the conclusion that it couldn’t be with the computers and since everything that had to do with the Verizon Fios system from the street to the end-user computer had been checked, verified and/or replaced, the issue had to be coming from Verizon’s main office.
    The installer had already checked the main at the road that has the 3x2 green service cover on it by the side walk. Everything was in good working order. The tech called the main office to see if my buddy and I were on the same hub, basically a big splitter that continues the service from the main office to the homes, we were not. So that was ruled out…
    My understanding of the system ends there. The only other components I know of are the Main branch’s routers, servers and software.
    Verizon had a new connection speed added to their system, 25/15 about the same time our issue began. So I am guessing that when they updated the system to include this new connection speed they corrupted the software for the 20/5 connection.
    We have been waiting to hear from the tech that was at my buddy’s house, to see if the issue will be dealt with. My buddy has called him a couple of times and he has mentioned that he is trying to get it addressed and to call back if we hadn’t heard from him. He remembered who he and I were and what the issue was, so I believe he is taking it seriously. How far he can move the issue is beyond me…
    I want to add that my buddy and I have been customers with the all in one package from Verizon Fios since their services have moved into our area, about a year and a half… It has only been since about June that this issue has presented itself, before then we were on 7th heaven with the speeds. We couldn’t have been more than happy with the services.
    This issue has caused that to all go afoul, not only do the speeds get down to less than 3mbs but the speed is not smooth at all. Rather the 3mbs speed is stop and go, freezing in between at times, very choppy. Barely usable at times, unless you restart the computers and start over.
    We are hoping that anyone with Verizon Fios Internet Services will keep an eye on their speeds by going to http://speedtest.net and doing tests to verify they are getting the speeds they are paying Verizon for.
    This is what it will take for Verizon to take this issue seriously is to gather everyone on the system that may be having the same issue. I believe it is everyone that is within the 1.2 miles from my house to my buddy’s and will distribute flyers to each and every house in between.
    If you find that your speed is not as fast as it should be please contact me and I will add you to the list, this way we can see exactly how far this problem covers and perhaps it will also help to show a pattern and understanding as to why the issue is present in the first place.
    My contact information,
    I have left this out here, you can contact me on these forums...

    Actually what this came down to was an issue between Windows Vista and an Ethernet Card on one of the machines in each of our local networks.
    Even though our two machines are 6 years apart, we both have the same ethernet adapter on our main desktops. A RealTek RTL8139/810x Family Fast Ethernet Nic. It seems that the adapter does not work at the 20mbs download speeds with Vista. For some reason the adapter does not shut down when the computer does? I don't understand why but it doesn't, it keeps the connection alive. I removed the ethernet cable and pulled the power cable and had my two other computers still connected to the network and found that the issue was resolved. The way I found out was that I used the connections on my main computer to hook up one I had laying around and through further testing found the problem no longer existed...
    Then I realized that my buddy and I installed Windows Vista at about the same time, a couple of months ago. Funny how you can forget an important detail like that. Then I remembered that he had the same identical ethernet adapter as I did, I had noticed that while trouble shooting his computer at his home but didn't think it was important at the time. Until the issue was narrowed down to the adapter, then it all seemed to all fall into line.
    Quite humbling... In the end, anyone who has Windows Vista and this NIC probably will have problems with the 20mbs download speed of the computers on their own networks. I tried the latest Vista driver from RealTek and also tried to roll back the driver, with no success....
    Back at the beginning when we first had fios installed in our homes there wasn't an issue when we had the 10/2 speeds and had Vista. Then we decided to change from Vista to XP because we both were having issues as to what programs you could use and which you could not, shortly after having fios installed. Then when verizon upgraded us to 20/5 we were amazed at the speed and still had no issue because we had XP on our main computers with the RealTek adapters...
    We reinstalled Vista because it seemed like we were having more issues with XP by getting hit with Antivirus2008 and its variants and thought it time for a change back...
    It didn't really hit us that Vista could be the culprit because we both have a laptop in our networks that have had Vista on them from the get go when there were no issues... We also didn't notice just how bad it was right away and over time kind of left the Vista install out of the equation.
    Just strange that one computer can effect all the other computers on the network, even when it is shut down...
    I allowed the other two computers to run 24hours and the issue did not present itself, when I added the main computer with the RealTek adapter back to the mix it reappeared. The Realtek adapter is the only real common denominator between his machine and mine.
    So now we have three choices,
    We can go back to Windows XP.
    We can buy a new NIC or a wireless card to replace the RealTek...
    Hopefully this post will help anyone else who runs into this problem, it has been very frustrating to say the least...
    Thanks to everyone for their help and I apologize for complaining about verizon when it was not a verizon issue. I came to the conclusion that the only part verizon really played was upgrading us to a 20/5 tier which I am thankful for...
    Would be nice if this card was on a list that Verizon support could use to troubleshoot , diagnose or eliminate for future support issues.
    Message Edited by keiser0619 on 08-06-2009 03:58 PM

Maybe you are looking for

  • Function module to get the chars and key figures of an infocube

    Hi Everyone, Can anyone please let me know is there any function module where if I pass the infocube name as the input parameter, it has to give me the output parameters its characteristics and key figures. I require this to display the report in dri

  • APEX 4.2 chart error

    I'm getting error: "This XML file does not appear to have any style information associated with it. The document tree is shown below." I have function returning sql query that works on other page normally, don't know what does this error means. I don

  • Using media controls to control itunes

    so im using Windows xp and a Hp keyboard and i would like the media controls to be usable for itunes. I talked to Hp and they said its not their problem =/

  • Msft ent desktop 7000 works with Macbook Pro 10.5.8 but not mini 10.6.1

    I just purchased a Mac Mini with 10.6.1. I'm using it as an entertainment system hooked up to my 60 inch plasma. I bought a Microsoft Bluetooth Entertainment Desktop 7000 keyboard and mouse. i like the keyboard and it all works except for the integra

  • 2010 Mac Pro not waking with Mavericks

    Processor  2 x 2.4 GHz Quad-Core Intel Xeon Memory  6 GB 1066 MHz DDR3 ECC Graphics  ATI Radeon HD 5770 1024 MB Software  OS X 10.9.4 (13E28) Internal drives: Mac HD 1TB. Disk 2: 750MB. Disk 3: 2 TB. Disk 4: 1 TB My mid-2010 Mac Pro is sometimes not