Does client get response only when doGet return?

import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class HelloServlet extends HttpServlet {
    public void doGet(HttpServletRequest req, HttpServletResponse res)
            throws ServletException, IOException {
        PrintWriter out = res.getWriter();
        out.println("<html><body>Hello World!</body></html>");
        out.close();
        try {
            Thread.sleep(5 * 1000); //some time-consuming job
        } catch (InterruptedException ie) {}
}hi,
I was wondering if the client will get response from a servlet only when doGet method returns or when the writer is closed. In the code above, the client will get response after five seconds. If I have some time-consuming job and don't want users to wait until the job is finished, what should I do. Thanks in advance.
Joey

import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class HelloServlet extends HttpServlet {
public void doGet(HttpServletRequest req,
req, HttpServletResponse res)
throws ServletException, IOException {
PrintWriter out = res.getWriter();
out.println("<html><body>Hello
dy>Hello World!</body></html>");
out.close();
try {
Thread.sleep(5 * 1000); //some
000); //some time-consuming job
} catch (InterruptedException ie) {}
}hi,
I was wondering if the client will get response from
a servlet only when doGet method returns or when the
writer is closed. In the code above, the client will
get response after five seconds. If I have some
time-consuming job and don't want users to wait until
the job is finished, what should I do. Thanks in
advance.
JoeyThe client will get the response when the response writer is flushed, which occurs automatically when the writer is closed, when a certain amount of data is written to the writer (a buffer is filled), or when you do it manually by calling out.flush().
Note, there are some issues with Internet Explorer, I believe, where it has an internal buffer, so when you flush you writer it may not get written to screen until the request is complete (the output stream is closed). To get around this you need to write a big enough output to fill IE's buffer. Not particularly sure how big it is, but something like 10-12 lines or HTML usually does the job. It may be less...

Similar Messages

  • Does the NavigationController work only when placed in appDelegate?

    I am trying to build application that has a tab bar controller with two view and the first view contains a segmented control.
    Based on the decision of the segmented control, I load the tableview. The table view has an instance of navigation Controller in which I have assigned the tableview controller as a rootview controller. When I click on any row of the table view, a new controller gets pushed on the table view. In my case, the new view does not show up on the screen, once the row is clicked. I used NSlog and checked that the views pushed on the stack are correct.
    I read many threads here and saw that all of them use tabBarController and then it directly uses the navigationController and viewcontroller. Is this the only config that works ?
    What if I want to have a tabBarController->tableViewController->NavigationController, isn't it possible? Can anyone please help?

    WitchKing wrote:
    So, if I understand this fully, I can initialize the navigation controller as soon as the any row is clicked and put the tableView I am on as my rootView for the navController. and also push the next view controller I want to see, on its stack. and present the navigation controller's view.
    The usual way to implement a table view drill-down would be to make the first table view (or the content view which includes it) the root view of the nav controller. I.e. the table view's controller would be the root controller. When you do it that way all the objects will do what they were designed to do, and the code to push and pop subsequent views will almost write itself.
    However there's no reason you can't do what you described, which (if I understood) would be to attach the nav controller's view to the hierarchy only after a row in the table is selected. Note however, that you couldn't then expect the nav controller to make that first transition from the parent table view. You would have to provide your own transition to the nav controller's view.
    You bring up a good point in any case. I never explicitly answered the question in the Subject line of this thread.
    does the NavigationController work only when placed in appDelegate?
    No, there is no requirement to create a nav controller in any particular position of the view hierarchy. Unlike a tab controller, a nav controller need not be the root of the hierarchy (i.e. added directly to the key window). In fact you'll find several examples in the docs which show one or more nav controllers under some other controller.
    there might be some problem with adjusting bar heights and etc though.
    I'm not sure you proposed anything that would make it difficult to configure a table view. One nav controller issue that will impact table view position and size is the attempt to hide the nav bar which would otherwise appear above the table. I walked, unsuspecting, into this problem when I tried to help with another, currently ongoing thread that might interest you: [http://discussions.apple.com/message.jspa?messageID=9606805#9606805].
    While I'm pasting links, this one is also relevant to your post: [http://discussions.apple.com/message.jspa?messageID=9607946#9607946].
    Thank you for the very kind words about my posts. For some reason, this past few weeks I've been spending most of my forum helper time writing about table views and nav controllers. I sure hope I've been dispensing correct information. It's not like I have any knowlege of the internals. These puppies are black boxes to me, so I'm just going by the same docs you have and my own (growing!) collection of test beds.
    \- Ray

  • When i update my computer does everthing get erased ?, when i update my computer does everthing get erased ?

    when i update my computer does everthing get erased ?, when i update my computer does everthing get erased ?

    No, content remains unless you specify something like an erase and install.  It is always a good idea to make a backup before updating just to have more protection.

  • Error when viewing report Only when records returned.

    We have a strange situtation in that when we view a particular report it errors out when viewing ONLY when there are records returned. To make matters worse this report takes several parameters, and only on one parameter does this occur. That is say we have param1, param2, param3, param4. if we fill in parameters and param3 has a value of "value1" and it returns results we are fine. The same happens for our second value ("value2"), however when we make param3's value "Value2" and it returns results the report throws an error 73. The stack trace is below. Any ideas on this one? It is really throwing me since it is only for one value of the parameter that we get the error.
    2009-01-26 07:34:25,892 ERROR [JRCCommunicationAdapter] JRCAgent3 detected an exception: 73
         at com.crystaldecisions.reports.saveddata.c.aj.a(Unknown Source)
         at com.crystaldecisions.reports.saveddata.c.p.if(Unknown Source)
         at com.crystaldecisions.reports.dataengine.r.a(Unknown Source)
         at com.crystaldecisions.reports.dataengine.s.a(Unknown Source)
         at com.crystaldecisions.reports.dataengine.s.if(Unknown Source)
         at com.crystaldecisions.reports.dataengine.bk.if(Unknown Source)
         at com.crystaldecisions.reports.formatter.formatter.objectformatter.be.if(Unknown Source)
         at com.crystaldecisions.reports.formatter.formatter.objectformatter.be.a(Unknown Source)
         at com.crystaldecisions.reports.formatter.formatter.objectformatter.be.h(Unknown Source)
         at com.crystaldecisions.reports.formatter.formatter.objectformatter.be.for(Unknown Source)
         at com.crystaldecisions.reports.formatter.formatter.objectformatter.bt.a(Unknown Source)
         at com.crystaldecisions.reports.formatter.formatter.objectformatter.bv.a(Unknown Source)
         at com.crystaldecisions.reports.formatter.formatter.objectformatter.bv.a(Unknown Source)
         at com.crystaldecisions.reports.formatter.formatter.objectformatter.bf.a(Unknown Source)
         at com.crystaldecisions.reports.formatter.formatter.objectformatter.cd.for(Unknown Source)
         at com.crystaldecisions.reports.formatter.formatter.objectformatter.cd.for(Unknown Source)
         at com.crystaldecisions.reports.formatter.formatter.objectformatter.b3.for(Unknown Source)
         at com.crystaldecisions.reports.formatter.formatter.objectformatter.bt.a(Unknown Source)
         at com.crystaldecisions.reports.formatter.formatter.objectformatter.cd.a(Unknown Source)
         at com.crystaldecisions.reports.formatter.formatter.objectformatter.cd.a(Unknown Source)
         at com.crystaldecisions.reports.formatter.formatter.objectformatter.cd.a(Unknown Source)
         at com.crystaldecisions.reports.formatter.formatter.objectformatter.ca.a(Unknown Source)
         at com.crystaldecisions.reports.formatter.formatter.objectformatter.a9.a(Unknown Source)
         at com.crystaldecisions.reports.formatter.formatter.e.m.a(Unknown Source)
         at com.crystaldecisions.reports.formatter.formatter.objectformatter.cd.for(Unknown Source)
         at com.crystaldecisions.reports.formatter.formatter.objectformatter.cd.for(Unknown Source)
         at com.crystaldecisions.reports.formatter.formatter.objectformatter.b3.for(Unknown Source)
         at com.crystaldecisions.reports.formatter.formatter.e.m.for(Unknown Source)
         at com.crystaldecisions.reports.formatter.formatter.objectformatter.bt.a(Unknown Source)
         at com.crystaldecisions.reports.formatter.formatter.e.p.l(Unknown Source)
         at com.crystaldecisions.reports.formatter.formatter.e.p.void(Unknown Source)
         at com.businessobjects.reports.sdk.b.b.a(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(Unknown Source)
         at com.crystaldecisions.proxy.remoteagent.x.a(Unknown Source)
         at com.crystaldecisions.proxy.remoteagent.q.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.dd.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ReportSource.getLastPageNumber(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.AdvancedReportSource.getLastPageNumber(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.NonDCPAdvancedReportSource.getLastPageNumber(Unknown Source)
         at com.crystaldecisions.reports.reportengineinterface.JPEReportSource.getLastPageNumber(Unknown Source)
         at com.sacs.casi.oasis.action.reporting.ReportingAction.view(ReportingAction.java:117)
         at com.sacs.casi.oasis.action.reporting.ReportingAction.unspecified(ReportingAction.java:46)
         at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:245)
         at org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:170)
         at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:425)
         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
         at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
         at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630)
         at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
         at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
         at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
         at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1078)
         at org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:295)
         at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:396)
         at org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:347)
         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:232)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
         at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
         at com.sacs.casi.oasis.filter.ActionFilter.doFilter(ActionFilter.java:101)
         at com.sacs.casi.oasis.filter.ActionFilter.doFilter(ActionFilter.java:53)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
         at com.planetj.servlet.filter.compression.CompressingFilter.doFilter(CompressingFilter.java:222)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
         at com.sacs.casi.oasis.filter.SecurityFilter.doFilter(SecurityFilter.java:144)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
         at com.sacs.casi.oasis.filter.Log4JRequestInfoFilter.doFilter(Log4JRequestInfoFilter.java:42)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
         at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)
         at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283)
         at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767)
         at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:697)
         at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)
         at java.lang.Thread.run(Unknown Source)

    That's a strange issue.
    Now that you've mentioned stored procs - does the stored proc handle params set to null?
    I've seen issues where on verify Crystal sends null param values to stored proc, and if the stored proc doesn't handle them (or return a consistent schema), errors out.
    Above in case you'd like to revisit the issue or if you encounter the issue again.
    Sincerely,
    Ted Ueda

  • In a group text with two phones that use Imessage and one that does not. The person that does not, does not get my message when its sent in group text. How do i fix this?

    I have a group text with two of my friends. here's each person break down
    person 1 ATT network, using imessage
    person 2 verzion network, using imessage
    person 3 verzion network, using SMS
    All three of us are in a group chat. When person 1 sends a message, person 2 recieves it, but person 3 does not. Then when person 3 sends a message, both person 1 and 2 get it. When person 2 sends an Imessage, person 1 and 3 get it
    so the problem is when person 1 sends an imessage, it doesnt change to sms and person 3 doesnt get it, but person 2's automatilly switches it to green.
    How can person one get their phone to automaticlly switch it to green in group message while keeping on imessage?

    The quote below from http://support.apple.com/kb/HT5760 indicates that it in the situation you describe it should be going as MMS to everyone -- which is not what you are seeing actually happen (and also not what you want to happen if I understand correctly). There may be something else helpful in the link.
    Group messages will be sent using iMessage if all recipients have iMessage enabled. If not, the conversation will be sent as MMS. Group messages use MMS even if the content is text only.

  • Getting audio only when exporting to camera

    Hello. I have exported many times before but when I recently tried to export to camera, I get audio only. I tried deleting the iMovie Preference file (which I had to do at times in the past) and then I got some video with audio at the beginning but then the video stalled while the audio continued.
    The iMovie material (which I have already exported to DVD) that I am trying to export to tape is from a DVD which I had converted to DV through Toast and edited in iMovie if that makes any difference.
    I'm using iMovie 6.04. Any comments will be appreciated.

    Hi, Rich,
    I just select QuickTime from the Share option in the menu bar, not Export from the File.
    It gives the options of Full Quality, CD-ROM, Web streaming and Email and Expert Settings. I always leave it as Full Quality. I just tried it now and when I select 'Expert Settings,' nothing happens until I click on 'Share,' and then I see the options of how to export and what format to use. Selecting Movie to DV Stream, I then have to change from the 'Most Recent Settings' to get the options of either PAL or NTSC settings for 32, 44.1 or 48 kHz...those are sound settings for audio.
    Frankly, I find it much harder to do all these setting changes when Share to QT as Full Quality has always produced a great movie that is equal in quality to the original iMovie.
    I have been doing it this way since the first iMove came out. It has always been known as a loss-less method. Frequently, my iMovies are complicated with many video and audio clips. With earlier versions, whenever iMovies became complicated, the playback would skip, stutter or the audio would freeze or become distorted. I learned from experience that the burned disks and disk image files would be fine, but it was hard to finish the edits. I learned to edit the video clips, add the still photos, transitions and titles, add just some audios if I needed a few seconds of sound under the still photos, and then export the movie as the Full quality quick time movie. Then, take that qt movie into a new iMovie and then add the audio. Worked every time. The new qt movie always played fine......unless I got too many more clips, and then I just made a new qt movie at that point. I also always use the qt version for exporting back to miniDV tape because the stuttering version usually would not export, or if it did, the stuttering would persist and ruin it.
    Good luck with your projects!

  • HT204291 How does one get full screen when using air play on my tv from my iPad,thanks in advance

    How does one get a full screen when using air play on my tv when I'm mirroring,.? Thanks in advance

    The iPad's display is 4:3, so it cannot fill your TV screen, which is 16:9
    The only way is to change your TV settings and stretch the image.

  • Why does Firefox get hung up, when opening new pages? I've tried disabling plugins and extensions to no avail.

    Initially, when I open Firefox everything opens very quickly. However, after several minutes it gets hung up when opening new pages. I have close the browser and reopen it to start over. But each time it does the same thing. Works well at first then poops out. The trouble started yesterday. Before then, I never had any problems.
    I've tried disabling all the plugins and extensions, but it doesn't make any difference.

    Try to repair the disk permissions:
    * http://thexlab.com/faqs/repairprocess.html
    * http://support.apple.com/kb/HT2963 Troubleshooting permissions issues in Mac OS X

  • Sometimes when starting my iMac it shows a folder icon with a Question mark in it. Mac does not start up, only when shutting down and restart again solves it

    Sometimes when starting up my iMac it shows only a folder icon with a question mark in it. Nothing happened. Only when start up again it runs ok.
    What can be the cause of this.
    thanks for your help
    Hans

    That's an indication your Mac can't find a system folder to boot from.
    Open System Preferences > Startup Disk
    Select:  MacintoshHD OS X
    For OS X v10.4, v10.5, and v10.6 >    A flashing question mark appears when you start your Mac
    Helps when you ask for help to tell us which Mac OS X is installed.
    If you aren't certain, click your Apple menu icon top left in your screen. From the drop down menu click About This Mac.
    The version is noted there.

  • HTTPService's send() method gets response only once

    Hi,
    I have used HTTPService object to get the xml file from
    remote place. Following is the mxml file code
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute" viewSourceURL="d:/testfolder/index.html">
    <mx:Script>
    <![CDATA[
    import mx.rpc.events.FaultEvent;
    import mx.rpc.events.ResultEvent;
    // Result handler - gets called after RSS is loaded.
    private function dataResultHandler(event:ResultEvent):void
    // Fault handler - displays the error
    private function dataFaultHandler(event:FaultEvent):void
    ]]>
    </mx:Script>
    <mx:HTTPService
    id="feedRequest"
    url="
    http://www.testing.com:8080/my.xml"
    result="dataResultHandler(event);"
    fault="dataFaultHandler(event);"
    useProxy="false"/>
    <mx:Panel layout="absolute"
    title="External Reference Tag Generation" left="-2"
    right="0" bottom="10" top="10">
    <mx:TextArea height="292" borderStyle="solid" left="63"
    right="62" y="10" toolTip="Generates @ejb.ejb-external-ref tags
    using 'LocalHome' import statements of text"
    text="{feedRequest.lastResult.niraj.description}" />
    <mx:Button label="Submit" id="btnSubmit" left="63"
    y="312" click="feedRequest.send();"/>
    </mx:Panel>
    </mx:Application>
    Here, on click of submit button request is send to the given
    url "
    http://www.testing.com:8080/my.xml"
    which returns the xml file of the following format.
    my.xml
    <?xml version="1.0" encoding="utf-8" ?>
    <niraj>
    <description>good</description>
    </niraj>
    So, text area prints 'good'.
    After this I change the content of my.xml file to following
    <?xml version="1.0" encoding="utf-8" ?>
    <niraj>
    <description>bad</description>
    </niraj>
    Still when I press submit button, no matter how many times,
    text area shows 'good'. I expect it to change to 'bad' on each
    click.
    Even I tried to handle the 'result' event of HTTPService
    using 'datadataResultHandler()', but here still I see old data is
    retrieved.
    PS: I have hosted url using Tomcat
    http://www.testing.com:8080/my.xml
    -Niraj

    I believe you witness this behavior in IE browser.
    To prevent caching of results returned from HTTP calls I
    attach to HTTPService URL's foo variable with random integer value
    like that:
    changeFolderRequest.url = String(ADD_FOLDER_HTTP_DESTINATION
    + "/" + selectedItemNode.@id + "?foo=" +
    Math.round(Math.random()*1000));

  • Does finally get invoked if you use return;

    If I have a method that uses a try block with finally and there's a return in the code, does the finally still get invoked?
    I think the answer is yes but I just want to make sure.
    Example:
    public void writeList() {
    PrintWriter out = null;
    try {
    System.out.println("Entering try statement");
    out = new PrintWriter(
    new FileWriter("OutFile.txt"));
    if (somecondition)
    return;
    for (int i = 0; i < size; i++)
    out.println("Value at: " + i + " = " + victor.elementAt(i));
    } catch (ArrayIndexOutOfBoundsException e) {
    System.err.println("Caught ArrayIndexOutOfBoundsException: " +
                   e.getMessage());
    } catch (IOException e) {
    System.err.println("Caught IOException: " + e.getMessage());
    } finally {
    if (out != null) {
    System.out.println("Closing PrintWriter");
    out.close();
    } else {
    System.out.println("PrintWriter not open");

    class TestFinally
         public static void main(String[] args)
              System.out.println(doSomething());
         static String doSomething()
              try
                   //throwException();
                   return "I am returning.";
              catch (Exception e)
                   System.out.println(e.getMessage());
              finally
                   System.out.println("I am finally...");
              return "NOTHING";
         static void throwException() throws Exception
              throw new Exception("Throw my exception.");
    }

  • Converter Web Client: get compiler error when run URL

    When I try to run the Converter's web client with the the URL:
    http://localhost:8000/converter
    I got a compiler error on the lines:
    import Converter;
    import ConverterHome;
    The J2EE server wants to have a "." after the Converter and ConverterHome.
    Any one has any idea?
    The error messages are:
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: -1 in the jsp file: null
    Generated servlet error:
    [javac] Compiling 1 source file
    C:\app\j2sdkee1.4\web\repository\Standard-Engine\localhost\converter\index_jsp.java:7: '.' expected
    import Converter;
    ^
    C:\app\j2sdkee1.4\web\repository\Standard-Engine\localhost\converter\index_jsp.java:8: '.' expected
    import ConverterHome;
    ^
    C:\app\j2sdkee1.4\web\repository\Standard-Engine\localhost\converter\index_jsp.java:20: cannot resolve symbol
    symbol : class Converter
    location: class org.apache.jsp.index_jsp
    private Converter converter = null;
    ^
    C:\app\j2sdkee1.4\web\repository\Standard-Engine\localhost\converter\index_jsp.java:26: cannot resolve symbol
    symbol : class ConverterHome
    location: class org.apache.jsp.index_jsp
    ConverterHome home = (ConverterHome)PortableRemoteObject.narrow(objRef, ConverterHome.class);
    ^
    C:\app\j2sdkee1.4\web\repository\Standard-Engine\localhost\converter\index_jsp.java:26: cannot resolve symbol
    symbol : class ConverterHome
    location: class org.apache.jsp.index_jsp
    ConverterHome home = (ConverterHome)PortableRemoteObject.narrow(objRef, ConverterHome.class);
    ^
    C:\app\j2sdkee1.4\web\repository\Standard-Engine\localhost\converter\index_jsp.java:26: cannot resolve symbol
    symbol : class ConverterHome
    location: class org.apache.jsp.index_jsp
    ConverterHome home = (ConverterHome)PortableRemoteObject.narrow(objRef, ConverterHome.class);
    ^
    6 errors
         at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:125)
         at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:293)
         at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:387)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:410)
         at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:570)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at org.apache.catalina.util.SecurityUtil$1.run(SecurityUtil.java:200)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAsPrivileged(Subject.java:499)
         at org.apache.catalina.util.SecurityUtil.execute(SecurityUtil.java:210)
         at org.apache.catalina.util.SecurityUtil.doAsPrivilege(SecurityUtil.java:147)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274)
         at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:99)
         at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:177)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:271)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2505)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at com.sun.enterprise.webservice.EjbWebServiceValve.invoke(EjbWebServiceValve.java:133)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:383)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:469)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:223)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:380)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533)
         at java.lang.Thread.run(Thread.java:536)
    Apache Tomcat/5.0

    I have exactly the same error.
    Me too, I'm running on Win XP. And I have had lots of trouble to deploy the converter.
    I cannot install J2EE 1.3 as I am supposed to write a report on how Web Services may help my company. By the moment I can only say it takes me much more time than expected to run the J2EE 1.3 tutorial. As SUN didn't deliver a tutorial one can use.
    So by the moment if anyone can HELP me to finish this converter tutorial I will be thankful.
    Bye
    Manuel Acevedo

  • Does AOL get your password when you set up video chat in Messages?

    When you set up video chat in Messages you can use your iCloud email address/Apple ID if you select AIM as the chat service.  To complete the set up it asks you to enter your iCloud/Apple ID password.  By doing so, does AOL/AIM get to know your iCloud password?

    HI,
    In Messages > Preferences > Accounts you can use the + button lower left under the list of account and Add the same Apple ID as an AIM account as you used for the iMessages account.
    AS part of the workings of iChat 6 and Messages the app also logs in to an Apple Server as well as the AIM Server.
    The dual Login is so AIM cannot 'read' the password unless you have an iCloud Issued @me.com or @iCloud.com  ID logged into the Apple Server as well.
    This is a Pop up from Little Snitch checking if I will allow this Login to Apple.
    @mac.com names from Apple, issued under the .Mac service and Paid for Accounts or as Trial Accounts or later during MobileMe as "iChat Names" are unaffected.
    As you cannot recreate the Dual Login process here  you cannot use iCloud issued IDs on this AIM Page.
    This does mean some Privacy settings are unavailable to you.
    It also means if AIM "Suspend your account" (normally for "Unusual Activity") then changing your Password at Apple has no effect as they can't tell you have changed it.
    9:57 PM      Saturday; February 23, 2013
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
      iMac 2.5Ghz 5i 2011 (Mountain Lion 10.8.2)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • Components getting displayed only when frame size is changed

    import java.awt.*;
    import javax.swing.*;
    public class BorderLayout_another  extends JFrame{
         public BorderLayout_another()
              setLayout(new FlowLayout());
              setSize(500,400);
              setVisible(true);
              add(new JButton("one"));
              add(new JButton("one"));
              add(new JButton("one"));
              add(new JButton("one"));
              add(new JButton("one"));
         public static void main(String[] args)
              new BorderLayout_another();
    }If I run the above code then the component in the frame is not visible unless I click restore button of the frame or I resize the frame itself.
    Even iconifying and then deiconifying does not solve the problem.
    I know I am getting this problem since I have used setVisible(true) before adding the components.
    Is there something more to it.

    import java.awt.*;
    import javax.swing.*;
    public class BorderLayout_another  extends JFrame{
         public BorderLayout_another()
              getContentPane().setLayout(new FlowLayout());
              getContentPane().setPreferredSize(500,400);
              getContentPane().add(new JButton("one"));
              getContentPane().add(new JButton("one"));
              getContentPane().add(new JButton("one"));
              getContentPane().add(new JButton("one"));
              getContentPane().add(new JButton("one"));
                    pack();
              setVisible(true);
         public static void main(String[] args)
              new BorderLayout_another();
    }Later versions of Java will allow you to do without the getContentPane() prefixes but I always use it.

  • Why does ESTK get hung up when setting ListItem.image to a string?

    The following code seems to hang up ESTK whether the target is ESTK or InDesign.
    try{
    var warning_icon = "\x89PNG\r\n\x1A\n\x00\x00\x00\rIHDR\x00\x00\x00\x10\x00\x00\x00\x10\x08\x06\x00\x00\x00\x1F\xF3\xFF\x61\x00\x00\x00\x19\x74\x45\x58\x74\x53\x6F\x66\x74\x77\x61\x72\x65\x00\x41\x64\x6F\x62\x65\x20\x49\x6D\x61\x67\x65\x52\x65\x61\x64\x79\x71\xC9\x65\x3C\x00\x00\x01\x86\x49\x44\x41\x54\x78\xDA\xA4\x52\xBB\x4A\x03\x51\x10\x9D\x48\xC8\x03\x05\x05\x5D\x88\xA8\x85\x8F\x8D\x11\xAC\x4C\x3A\x41\x4C\x95\x0F\x90\x68\xE1\x0F\x58\x58\x5A\xD9\xEC\xDA\xF8\x19\xDA\x18\x11\x82\x1F\x90\x42\xB4\x09\x56\x06\x4B\x41\x62\xAB\x12\xC1\x22\x45\xDE\x59\xE7\x4C\xF6\xDE\xE4\xAE\x16\x42\x06\xCE\xEE\x99\x33\x67\x66\x6F\x32\x77\xC2\xF3\x3C\x1A\x07\x61\xE2\x78\x2B\x86\xE8\x8F\xD8\x65\xDC\xFB\x3C\xCB\x78\x08\x1A\x56\xF2\x1E\xC9\x94\xD7\x1B\xBC\xAB\x06\x58\xE3\x52\x55\xE0\xF3\x60\x5D\x7A\x27\x30\xA9\xDB\xE5\x47\xAF\xAE\xF1\x52\x58\x75\x67\x52\x47\x3A\x07\x87\x36\xEA\x91\x1E\x0E\x19\xD0\xEB\x61\xCA\xB7\x06\xE7\xCE\x5C\xEA\x40\xE7\xE0\xD0\x02\x9E\xE1\x80\x4E\x07\x8F\x2F\xC1\xF3\x55\xD6\x9D\x5D\xDF\x17\x5E\x74\xB2\x94\xD9\x3E\x11\x0E\x0D\x35\xE5\x93\x1E\x35\x40\x8E\xD3\xF9\x14\x30\x77\x12\xC9\x9D\x41\xAE\x82\x39\x34\xD4\x46\x7C\x81\x13\xB4\xDF\xE9\xB1\x70\xEC\x4A\x33\x73\x81\x0A\x3F\x47\x0D\x1E\x70\xE3\x04\x83\x9F\x20\xA2\xB3\x68\xAF\x09\x07\xAC\x85\x79\x4A\x6F\x4E\xE9\x1C\x35\x78\x7C\xAF\x39\xE0\xEE\xFA\xC2\x5D\xB2\xED\xE1\xD7\x19\x56\x62\x92\xD2\x1B\x9E\xA1\xC1\x03\xAF\x1A\x10\xC2\x2E\x4B\xE7\x72\x91\xBC\xDC\xDE\x16\xFD\x27\x4A\xB7\x15\xE9\xCD\x9D\x7A\xFA\x04\xEE\xB2\x3D\xAD\x37\xA1\x50\xBC\xAC\x50\xE6\x30\xF4\x4B\x87\x17\x3D\xA3\xF7\xC0\x49\xDA\x7D\xE3\x2E\x08\x54\x04\x74\x78\xE5\x5E\x70\x84\xD5\x1A\x6B\x1F\x75\xB2\x2C\xF3\xA8\xF9\x3C\xF0\xC4\x5F\x30\xF5\x5A\x8D\xF4\x1A\x65\x40\xBF\x4F\x67\xE5\x32\x39\xB1\x18\x11\x10\x8F\x13\x45\xA3\x44\x91\x88\xBF\xC5\x36\x51\xAB\x45\xD4\x68\x10\x35\x9B\x03\xA0\x47\xFF\x89\xE3\xC4\x8F\x00\x03\x00\x96\x57\x59\x74\xF3\xF4\xB0\x1A\x00\x00\x00\x00\IEND\xAEB`\x82";
    var w = new Window('palette');
    var l = w.add('listbox');
    l.minimumSize = w.minimumSize = [200,-1];
    var item = l.add('item', 'test');
    item.image = warning_icon;
    w.show();
    }catch(e){$.writeln(e);}
    I'm basing this on the fabulously helpful work by Marc Autret: Re: get swatches in dropdown list with color preview...
    The code runs and the dialog shows up with the working icon, but ESTK gets stuck afterwards. I can't edit the code and do anything useful without restarting ESTK.

    Hi Peter & Justin,
    I general if the target is ESTK and not ID the png strings will cause problems like hanging or not being able to use keyboard shortcuts.
    ID has no problems with the strings, although it could be quicker to define the variable as warningIcon = ScriptUI.newImage("\u0089PNG..........")  Ai has some issues so for Ai scripts I include a string and create a resource file from it if the file does not exist. You could try the same for ESTK.
    Trevor

Maybe you are looking for