DoPost can't display the result page

After I deploy j2ee application.I excute servlet page.
it show the page that code from doGet,but when I click submit page it doesn't show anything.So,I guess it cause from doPost.
and I receive CONN-003 error from kas.
UTIL-013 NSAPICLI-009 NSAPICLI-012and PROT-001 from kxs.
and the kjs show catchException
How can I resolve this error?
Thanks
Sung

What are you doing in your doPost method?
What ever you are doing that is throwing an exception is probably the key to the problem.
The KAS process is a watchdog, so its unlike that its message is relevant. (Unless it is reporting that you have crashed your JVM.)

Similar Messages

  • How can I display the HTML page from servlet which is called by an applet

    How can I display the HTML page from servlet which is called by an
    applet using the doPost method. If I print the response i can able to see the html document. How I can display it in the browser.
    I am calling my struts action class from the applet. I want to show the response in the same browser.
    Code samples will be appreciated.

    hi
    I got one way for this .
    call a javascript in showDocument() to submit the form

  • How can i display the result of java class in InputText ?

    Hi all,
    How can i get the result of java class to InputText Or OutputText ???
    also can every one in the forum give me road map for dealing with java in oracle adf because i'm beginner in oracle adf
    i saw some samples in oracle adf corner but it's difficult for me.

    User,
    Always mention your JDev version, technologies used and clear usecase description (read through this announcement : https://forums.oracle.com/forums/ann.jspa?annID=56)
    How can i get the result of java class to InputText Or OutputText ???Can you elaborate on your requirement? Do you mean the return value of a method in a class as output text? Or an attribute in your class (bean?) as text field?
    -Arun

  • How can I display the same page when I'll press

    i have a jsp page. It contains user name & password.
    and a link like SIGNOUT COMPLETELY. when i press the back button it should show only this page.
    You have noticed one thing that when u sign out from YHAOO MAIL then a page is displayed
    USERNAME : [email protected]
    PASSWORD :XXXXXXXXXX
    SIGNOUT COMPLETELY
    when this page is dispalyed and u press the back button of the browser
    it displays the same page. How it happens?

    Kindly neglect the previous post.....
    Okay check something like this
    1).maintain either a HttpSessionListener or a session flag try to checkout whether the user is active or else close the PrintWriter.
    2).Prevent caching of the webpage by using customary meta tag or by response,setHeader("Cache-Control","no-cache");
    way...
    Guess tht shud work.....

  • Servlet could nt able to Display the Result Page By Page ( Paging Problem)

    Hi, I want to display my result set Page by page... i wrote the code but it is not working properly... just it is showing intial record page(i.e 0 to 5) and page number links, But when i click on those number hyper links, just it is coming empty pages...
    plz help me out Thanks a lot in advance..... and my code is
    package tauvex;
    import java.io.*;
    import java.net.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.sql.*;
    import java.sql.DriverManager.*;
    public class TauvexDataServlet extends HttpServlet {
    Connection con=null;
    Statement statement=null;
    ResultSet resultset=null;
    public void init(ServletConfig config) throws ServletException {
    try {
    Class.forName("com.mysql.jdbc.Driver").newInstance();
    con = DriverManager.getConnection("jdbc:mysql://localhost/fitstestdb","root","");
    } catch (ClassNotFoundException ex) {
    System.err.println("ClassNotFoundException: " + ex.getMessage());
    throw new ServletException("Class not found Error");
    } catch(java.lang.InstantiationException ie) {
    System.out.println("instantiation exp:"+ie);
    } catch(java.lang.IllegalAccessException ia) {
    System.out.println("illegalaccess exp:"+ia);
    } catch (SQLException ex) {
    System.err.println("SQLException: " + ex.getMessage());
    protected void processRequest(HttpServletRequest request,
    HttpServletResponse response)
    throws ServletException, IOException {
    response.setContentType("text/html;charset=UTF-8");
    PrintWriter out = response.getWriter();
    +*// From Here My problem Starts*_+ 
    // Code For Paging starts
    int pages=0;
    try{
    Connection ocon = null;
    Class.forName("com.mysql.jdbc.Driver");
    ocon = DriverManager.getConnection("jdbc:mysql://localhost/fitstestdb","root","");
    Statement stmtt = ocon.createStatement();
    ResultSet rc = stmtt.executeQuery("Select count(*) from FitsData ");
    rc.next();
    pages = rc.getInt(1);
    out.println("Count of Records : " + pages + "<br>");
    catch (ClassNotFoundException ex) {
    System.err.println("ClassNotFoundException: " + ex.getMessage());
    throw new ServletException("Class not found Error");
    } catch (SQLException ex) {
    System.err.println("SQLException: " + ex.getMessage());
    int cPage;
    cPage = (pages / 5) + 1;
    if ((cPage * 5) + 1 >= pages)
    cPage++;
    out.println("Count of Pages : " + (cPage - 1) + "<br><p><p>");
    int p;
    for(p = 1; p < cPage ; p++)
    out.println("<a href=TauvexDataServlet?mv=" + p + ">"+ p +"</a> | ");
    out.println("<hr>");
    // paging
    int cpage;
    int currentRs;
    String pt;
    pt = request.getParameter("mv");
    if (pt == null)
    currentRs = 0;
    else
    cpage = Integer.parseInt((String)pt);
    currentRs = 5 * (cpage - 1);
    out.println(cpage + "<br>");
    //Paging Code End here
    *// My problem ends here ...!!!*
    String RA=new String();
    String DEC=new String();
    String DATE=new String();
    String DATE1=new String();
    String FILTER=new String();
    String Radious=new String();
    String ShowRA=null;
    String ShowDEC=null;
    String ShowFile=null;
    String ShowQuery=null;
    String ObservationDates=null;
    String Telescope=null;
    String Filter=null;
    RA=request.getParameter("RA");
    DEC=request.getParameter("DEC");
    DATE=request.getParameter("DATE");
    DATE1=request.getParameter("DATE1");
    FILTER=request.getParameter("FILTER");
    Radious=request.getParameter("Radious");
    ShowRA=request.getParameter("ShowRA");
    ShowDEC=request.getParameter("ShowDEC");
    ShowFile=request.getParameter("ShowFile");
    ShowQuery=request.getParameter("ShowQuery");
    ObservationDates=request.getParameter("ObservationDates");
    Telescope=request.getParameter("Telescope");
    Filter=request.getParameter("Filter");
    String query = "SELECT * " +
    " FROM FitsData limit "+currentRs+",5;";
    try {
    Statement statement=con.createStatement();
    ResultSet resultset=statement.executeQuery(query);
    if(ShowQuery != null && "on".equals(ShowQuery))
    out.println("<font size=4 color=black>The Selected Query is :</font><br/>");
    out.println("<font>");
    out.println(query);
    out.println("</font>");
    out.println("<hr>");
    if(resultset.next()!=false) {
    out.println("<html><head>");
    out.println("</head><body>");
    out.println("<table cellspacing=1 cellpadding=1 border=1>");
    out.println("<tr>");
    if(ShowFile != null && "on".equals(ShowFile))
    out.println("<td> Filename </td>");
    if(ShowRA != null && "on".equals(ShowRA))
    out.println("<td> RA_START </td>");
    if(ShowRA != null && "on".equals(ShowRA))
    out.println("<td> RA_END </td>");
    if(ShowDEC != null && "on".equals(ShowDEC))
    out.println("<td> DEC_START </td>");
    if(ShowDEC != null && "on".equals(ShowDEC))
    out.println("<td> DEC_END </td>");
    if(Telescope!=null && "on".equals(Telescope))
    out.println("<td> TELESCOPE </td>");
    if(ObservationDates !=null && "on".equals(ObservationDates))
    out.println("<td> STARTOBS </td>");
    if(ObservationDates !=null && "on".equals(ObservationDates))
    out.println("<td> ENDOBS </td>");
    if(Filter!=null && "on".equals(Filter))
    out.println("<td> FILTER </td>");
    out.println("</tr>");
    while(resultset.next())
    Object o1 = resultset.getObject(1);
    Object o2 = resultset.getObject(2);
    Object o3 = resultset.getObject(3);
    Object o4 = resultset.getObject(4);
    Object o5 = resultset.getObject(5);
    Object o6 = resultset.getObject(6);
    Object o7 = resultset.getObject(7);
    Object o8 = resultset.getObject(8);
    Object o9 = resultset.getObject(9);
    out.println("<tr>");
    if(ShowFile != null && "on".equals(ShowFile) && o1 != null)
    out.println("<td>"+o1+"</td>");
    if(ShowRA != null && "on".equals(ShowRA) && o2 != null)
    out.println("<td>"+o2+"</td>");
    if(ShowRA != null && "on".equals(ShowRA) && o3 != null)
    out.println("<td>"+o3+"</td>");
    if(ShowDEC != null && "on".equals(ShowDEC) && o4 != null)
    out.println("<td>"+o4+"</td>");
    if(ShowDEC != null && "on".equals(ShowDEC) && o5 != null)
    out.println("<td>"+o5+"</td>");
    if(Telescope!=null && "on".equals(Telescope) && o6!=null)
    out.println("<td>"+o6+"</td>");
    if(ObservationDates !=null && "on".equals(ObservationDates) && o7!=null)
    out.println("<td>"+o7+"</td>");
    if(ObservationDates !=null && "on".equals(ObservationDates) && o8!=null)
    out.println("<td>"+o8+"</td>");
    if(Filter!=null && "on".equals(Filter) && o9!=null)
    out.println("<td>"+o9+"</td>");
    out.println("</tr>");
    out.println("</table>");
    out.println("<br>");
    out.println("</body>");
    out.println("</html>");
    else {
    out.println("NO MATCHING RECORDS FOUND");
    } catch(java.sql.SQLException sqle) {
    System.out.println("sql exception:"+sqle);
    out.close();
    protected void doGet(HttpServletRequest request,
    HttpServletResponse response)
    throws ServletException, IOException {
    processRequest(request, response);
    protected void doPost(HttpServletRequest request,
    HttpServletResponse response)
    throws ServletException, IOException {
    processRequest(request, response);
    public String getServletInfo() {
    return "Short description";
    }

    I also did a Servlet Paging but I later found a Paging example that used MVC architecture which I found to be more efficient.
    This post has a good example in this link: http://forums.devshed.com/java-help-9/paging-in-jsp-85968.html?p=382695#post382695
    After I downloaded the example I made alot of changes and got rid of the scriptlets in the JSP and brought it more up to date using JSTL.
    Also check out a pre-built tag: http://displaytag.sourceforge.net/

  • I can not display the results of Signing onto this web site.

    WHen I correctly fill this web page
    connect.elanfinancialservices.com
    I get directed to the following page, but screen is blank.
    https://connect.elanfinancialservices.com/access/oblix/apps/webgate/bin/webgate.dll?/portal/loginSuccess.aspx.
    I am apparently loged in. I spoke with Elan and they said that they thought that only IE would work.
    Thanks.

    You purchased a phone that was most likely reported stolen or was replaced and then illegally re-sold.
    If you purchased it directly from Apple, contact the Apple Store you purchased it at. Otherwise, go back to whoever you purchased it from.

  • Can't Display The Result

    Dear Friends,
    Can you help me to fix this query please:
    select
    ( Case a.mty_date when like '%Jan%' then count(*)
    Case a.mty_date when like '%Feb%' then count(*)
    Case a.mty_date when like '%Mar%' then count(*)
    Case a.mty_date when like '%Apr%' then count(*)
    Case a.mty_date when like '%May%' then count(*)
    Case a.mty_date when like '%Jun%' then count(*)
    Case a.mty_date when like '%Jul%' then count(*)
    Case a.mty_date when like '%Aug%' then count(*)
    Case a.mty_date when like '%Sep%' then count(*)
    Case a.mty_date when like '%Oct%' then count(*)
    Case a.mty_date when like '%Nov%' then count(*)
    Case a.mty_date when like '%Dec%' then count(*)
    Case a.mty_date when like '%Jan%' then count(*)
    end ) Total_Account, Substr(to_date(a.mty_date,'DD-MMM-YYYY'),4,3) Month_FC
    from acc_master a
    where a.acc_status = 'A'
    and a.user_def not IN ('DOUB', 'SUBS', 'LOSS', 'WOFF');
    Message Error is " ORA-00936: missing expression "
    Could you please help me? and Correct my query
    Thank and Regards,
    Rang

    user13333117 wrote:
    Dear Friends,
    Can you help me to fix this query please:
    select
    ( Case a.mty_date when like '%Jan%' then count(*)
    Case a.mty_date when like '%Feb%' then count(*)
    Case a.mty_date when like '%Mar%' then count(*)
    Case a.mty_date when like '%Apr%' then count(*)
    Case a.mty_date when like '%May%' then count(*)
    Case a.mty_date when like '%Jun%' then count(*)
    Case a.mty_date when like '%Jul%' then count(*)
    Case a.mty_date when like '%Aug%' then count(*)
    Case a.mty_date when like '%Sep%' then count(*)
    Case a.mty_date when like '%Oct%' then count(*)
    Case a.mty_date when like '%Nov%' then count(*)
    Case a.mty_date when like '%Dec%' then count(*)
    Case a.mty_date when like '%Jan%' then count(*)
    end ) Total_Account, Substr(to_date(a.mty_date,'DD-MMM-YYYY'),4,3) Month_FC
    from acc_master a
    where a.acc_status = 'A'
    and a.user_def not IN ('DOUB', 'SUBS', 'LOSS', 'WOFF');
    Message Error is " ORA-00936: missing expression "
    Could you please help me? and Correct my query
    Thank and Regards,
    Rangwhat is the datatype of mty_date?
    it seems like you want to do a count(*) regardless of what month it is, so why all the case statements?
    If mty_date is a DATE datatype then:
    Substr(to_date(a.mty_date,'DD-MMM-YYYY'),4,3)is bad code.
    If you want the month name from a date you would use something like...
    SQL> select to_char(sysdate,'MON') from dual;
    TO_
    SEP

  • Passing a request to another page and displaying the new pages URL

    I've got a number of pages on my site that communicate with a database. Everything is working well but I am now trying protect myself from Stupid User Errors.
    Specifically when a user performs a database operation and then hits the refresh button repeatedly on the page that did the operation. (SQL Inserts are particularly ugly in this situation)
    My problem is that both the data handling and the resulting page rely on information in the request object from the original form.
    I've tried processing the information on one page and then sending a redirect but this loses the request object. I've also tried using the forward method but it only displays the result page, it doesn't actually send the user there so refreshes will still mess me up.
    What I really want is to do all my SQL operations on one page and then send them to a results page that can be refreshed as many times as they like without corrupting my database.
    Any ideas?
    Pete

    The thought occurs to me that if you call an INSERT operation on your database, the database itself will employ deadlocks to prevent someone else (such as a refreshed session) from inserting into the database until the first query is completed.
    So one thing you could do is modify your class object to first do a one-tuple SELECT and compare it with your INSERT statement. If the line exists, then abort the INSERT. This is more compute-intensive, but it is about the only way you can guarantee that regardless of the session-tracking technique you use, the desired value will never be inserted twice.
    You should double check with your local DBA though - some databases actually do ignore multiple inserts if all of the field values are the same as an existing record, and other databases are tweaked such that updating a record over and over incurs a very minor performance hit such that it's not worth guarding against such a situation.
    The only time I would be worried is if you somehow record a timestamp of when the information was actually submitted. And that's fairly easy to fix with Javascript - once the fields are filled in, mark a hidden field. If the fields change subsequently, change the hidden field. If the fields don't change (i.e., person submits over and over), then you keep the original timestamp, the tuple is exactly the same and the database ignores the duplicate INSERT.

  • Display the result of a query in descending order.

    Hello Experts,
    How can I display the result of a query in descending order?
    Thanks much in anticipation.
    Regards.

    Hi Kumar,
    If you want to display char in descending order, in the query designer set the sorting setting as desceing for that particular characteristics, or if you want to see the KF in descending order, create a condition on that KF and set as TOP N and set N as 999999, that would display your KF in descending order.
    - Danny.

  • How can I display the vendor associated with result of my running total sum

    I have a report that lists vendors with their most vecent order dates.  I need to set up a rotation so that the vendor with the latest order date is next to be selected.  I used the running total summary to pick the latest date.  How can I display the vendor associated with result of my running total summary?

    If your "latest" order date means the "oldest" order date, why don't you try this:
    Go to Report tab -> Record Sort Expert -> Choose your order date in ascending order
    This will make your oldest order your first record shown. 
    You can then create a running total count for each record.
    Lastly, in your section expert under conditional suppress X+2 formula, write this:
    {#CountRecords}>1
    The result will only show the oldest record in your report.
    I hope that helps,
    Zack H.

  • When at the "results" page of a search, clicking on "blue" link does not display webpage. Copying "green" urldoes.

    When at the "results" page of a search, clicking on "blue" link does not display webpage although url is shown in address bar. Copying "green" url, shown at bottom of a result, into address bar and hitting "enter" goes to the address and displays the page. Have tried different selections at tools/options with no change. Is there some other setting that needs to be changed?

    Sorry, this is bad reply. I wanted to write this reply to another question.

  • While Installing this error is coming This Program can not display the pag

    When I Try to Install SAP B1 8.8 on Win server 2008.
    I am receiving this message.
    This Program can not display the page
    The website is encountering Problem
    There might be a typing error in the address
    At the time of Installation which site we need to access.
    My Internet is working.
    Still i am facing this Problem please suggest me what should I do.

    HI Ram ,
    Internet is not required while Installation .
    Go through :
    Re: SAP Business Installation
    Thanks
    Ashish

  • Every time I start Firefox, the upgrade/signup page is displayed in one tabe while google, my start;up page s displayed in another. How can I stop the firefox page from loading every time?

    Every time I start Firefox, the upgrade/signup page is displayed in one tab while google, my start-up page is displayed in another. How can I stop the firefox page from loading every time?

    See these articles for some suggestions:
    * https://support.mozilla.com/kb/Firefox+has+just+updated+tab+shows+each+time+you+start+Firefox
    * https://support.mozilla.com/kb/How+to+set+the+home+page - Firefox supports multiple home pages separated by '|' symbols
    * http://kb.mozillazine.org/Preferences_not_saved

  • Strange scenario,Oracle can not display the data in mysql correctly

    I use Heterogeneous Service+ODBC to achieve "oracle access mysql"(any other method?),and now i find Oracle can not display the data in mysql correctly:
    -------mysql------------
    mysql> create table tst(id int,name varchar(10));
    Query OK, 0 rows affected (0.00 sec)
    mysql> insert into tst values(1,'a');
    Query OK, 1 row affected (0.00 sec)
    mysql> select * from tst;
    ------------+
    | id | name |
    ------------+
    | 1 | a |
    ------------+
    1 row in set (0.00 sec)
    mysql> show create table tst\G
    *************************** 1. row ***************************
    Table: tst
    Create Table: CREATE TABLE `tst` (
    `id` int(11) DEFAULT NULL,
    `name` varchar(10) DEFAULT NULL
    ) ENGINE=MyISAM DEFAULT CHARSET=utf8
    1 row in set (0.00 sec)
    -------------oracle ------------------
    SQL> select count(*) from "tst"@mysql;
    COUNT(*)
    49
    SQL> select * from "tst"@mysql;
    id
    1
    SQL> desc "tst"@mysql;
    Name Null? Type
    id NUMBER(10)

    You can make the following query on the result page:
    "select * from the_table where movietitle = ? and cinema = ?"
    then you set movietitle and cinema to those which the user selected. If the resultset contains more than 0 rows, that means the movie is available.
    Below is the sample code, it assumes you have a connection to the database:
    PreparedStatement stat = myConnection.prepareStatement("select * from the_table where movietitle = ? and cinema = ?");
    stat.setString(1, usersMovieTitleSelection);
    stat.setString(2, usersCinemaSelection);
    ResultSet res = stat.executeQuery();
    if (res.next()) {
    out.print("The movie is available");
    } else {
    out.print("The movie is not available");
    }Now just add that to your JSP page. Enjoy ! =)

  • How to access oracle in javabeans and display the result in jsp

    In my project ,i use the javabean to access the database and do the calculations and i display the result in the jsp page,,,
    any body can help me with your precious codes
    kodi...

    any body can help me with your precious codesStepped in the wrong place, try reading something on JDBC.

Maybe you are looking for