JSP unique key exception error

hi guys,
plz help me, i have small pblm in my jsp page,
I made 2 columns as unique key and 1 column as primary key in my database(mySQL)....
Unique Keys are Username and email...Wen I enter same username the db throws error...but I have to show this same error in the alert box on my insertion jsp page,
How do I go about it????

In java code:
You catch the exception.
You get the message from the exception.
You save the message somewhere - eg in a request attribute.
Forward to a JSP page to render the response
The JSP page should check for the existence of the "error" request attribute, and produce javascript code on the page that will alert it when the page is loaded.

Similar Messages

  • Unique Key Violation error while updating table

    Hi All,
    I am having problem with UNIQUE CONSTRAINT. I am trying to update a table and getting the violation error. Here is the over view. We have a table called ActivityAttendee. ActivityAttendee has the following columns. The problem to debug is this table has
    over 23 million records. How can I catch where my query is going wrong?
    ActivityAttendeeID INT PRIMARY KEY IDENTITY(1,1)
    ,ActivityID INT NOT NULL (Foreign key to parent table Activity)
    ,AtendeeTypeCodeID INT NOT NULL
    ,ObjectID INT NOT NULL
    ,EmailAddress VARCHAR(255) NULL
    UNIQUE KEY is on ActivityID,AtendeeTypeCodeID,ObjectID,EmailAddress
    We have a requirement where we need to update the ObjectID. There is a new mapping where I dump that into a temp table #tempActivityMapping (intObjectID INT NOT NULL, intNewObjectID INT NULL)
    The problem is ActivityAttendee table might already have the new ObjectID and the unique combination.
    For example: ActivityAttendee Table have the following rows
    1,1,1,1,NULL
    2,1,1,2,NULL
    3,1,1,4,'abc'
    AND the temp table has 2,1
    So essentially when I update in this scenario, It should ignore the second row because, if I try updating that there will be a violation of key as the first record has the exact value. When I ran my query on test data it worked fine. But for 23 million records,
    its going wrong some where and I am unable to debug that. Here is my query
    UPDATE AA
    SET AA.ObjectID = TMP.NewObjectID
    FROM dbo.ActivityAttendee AA
    INNER JOIN #tmpActivityMapping TMP ON AA.ObjectID = TMP.ObjectID
    WHERE TMP.NewObjectID IS NOT NULL
    AND NOT EXISTS(SELECT 1
    FROM dbo.ActivityAttendee AA1
    WHERE AA1.ActivityID = AA.ActivityID
    AND AA1.AttendeeTypeCodeID = AA.AttendeeTypeCodeID
    AND AA1.ObjectID = TMP.NewObjectID
    AND ISNULL(AA1.EmailAddress,'') = ISNULL(AA.EmailAddress,'')

    >> I am having problem with UNIQUE CONSTRAINT. I am trying to update a table and getting the violation error. Here is the over view. We have a table called Activity_Attendee. <<
    Your problem is schema design. Singular table names tell us there is only one of them the set. Activities are one kind of entity; Attendees are a totally different kind of entity; Attendees are a totally different kind of entity. Where are those tables? Then
    they can have a relationship which will be a third table with REFERENCES to the other two. 
    Your table is total garbage. Think about how absurd “attendee_type_code_id” is. You have never read a single thing about data modeling. An attribute can be “attendee_type”, “attendee_code” or “attendee_id”but not that horrible mess. I have used something like
    this in one of my busk to demonstrate the wrong way to do RDBMS as a joke, but you did it for real. The postfix is called an attribute property in ISO-11179 standards. 
    You also do not know that RDBMS is not OO. We have keys and not OIDs; but bad programmers use the IDENTITY table property (NOT a column!), By definition, it cannot be a key; let me say that again, by definition. 
    >> ActivityAttendee has the following columns. The problem to debug is this table has over 23 million records [sic: rows are not records]<<
    Where did you get “UNIQUE KEY” as syntax in SQL?? What math are you doing the attendee_id? That is the only reason to make it INTEGER. I will guess that you meant attendee_type and have not taken the time to create an abbreviation encoding it.
    The term “patent/child” table is wrong! That was network databases, not RDBMS. We have referenced and referencing table. Totally different concept! 
    CREATE TABLE Attendees
    (attendee_id CHAR(10) NOT NULL PRIMARY KEY, 
     attendee_type INTEGER NOT NULL  --- bad design. 
        CHECK (attendee_type BETWEEN ?? AND ??), 
     email_address VARCHAR(255), 
    CREATE TABLE Activities
    (activity_id CHAR(10) NOT NULL PRIMARY KEY, 
    Now the relationship table. I have to make a guess about the cardinally be 1:1, 1:m or n:m. 
    CREATE TABLE Attendance_Roster
    (attendee_id CHAR(10) NOT NULL --- UNIQUE??
       REFERENCES Attendees (attendee_id), 
     activity_id Activities CHAR(10) NOT NULL ---UNIQUE?? 
      REFERENCES Activities (activity_id)
     PRIMARY KEY (attendee_id, activity_id), --- wild guess! 
    >> UNIQUE KEY is on activity_id, attendee_type_code_id_value_category, object_id, email_address <<
    Aside from the incorrect “UNIQUE KEY” syntax, think about having things like an email_address in a key. This is what we SQL people call a non-key attribute. 
    >> We have a requirement where we need to update the ObjectID. There is a new mapping where I dump that into a temp table #tempActivityMapping (intObjectID INTEGER NOT NULL, intNewObjectID INTEGER NULL) <<
    Mapping?? We do not have that concept in RDBMS. Also putting meta data prefixes like “int_” is called a “tibble” and we SQL people laugh (or cry) when we see it. 
    Then you have old proprietary Sybase UODATE .. FROM .. syntax. Google it; it is flawed and will fail. 
    Please stop programming until you have a basic understanding of RDBMS versus OO and traditional file systems. Look at my credits; when I tell you, I think I have some authority. 
    --CELKO-- Books in Celko Series for Morgan-Kaufmann Publishing: Analytics and OLAP in SQL / Data and Databases: Concepts in Practice Data / Measurements and Standards in SQL SQL for Smarties / SQL Programming Style / SQL Puzzles and Answers / Thinking
    in Sets / Trees and Hierarchies in SQL

  • JSP giving an exception error

    I am trying to run my JSP but its giving a null pointer exception. Following is the part of my JSP page:
    String subject = (String) session.getValue("mess_subject");
    Vector senderS = db.getSendS(subject); //calling the getSendS method from the bean
    getSendS method (in the bean) returns a Vector which contains the stuff returned from the query. THe method is as follows:
    public Vector getSendS(String message_subject)
    {ResultSet rs;
       Statement stmt;
      // String Mess_subject;
       int i=0;
       String queryText2= "select Send_Name from MainTable2 where Mess_Subject=message_subject AND Reply='no'";
       Vector get_Sender=null; 
    try
          stmt=con.createStatement();
          rs=stmt.executeQuery(queryText2);
          get_Sender= new Vector();
    while(rs.next())
    get_Sender.addElement(rs.getString(1));          
    }//while loop          
    return get_Sender;     
    }//try     
    catch(SQLException e)
    {          e.printStackTrace();          
    return null;     
    }//catch
    }//getText
    Please help me understand whats going wrong. Thanks!

    Rambee.. i'm not really sure what you were trying to accomplish by your changes, but it's entirely possible you see something I don't. However, if nothing was returned from the db, then the resultset would be empty, and the while loop would terminate before the first run. Which is essentially exactly what you did with your if-do-while construction, which just seems a bit contrived.
    What could be happening, however, is that the rs.getString(1) is returning null. If so, then you are trying to assign a null value as an element into a Vector. Try running some tests there and see what you can come up with.

  • REQUEST HELP ON  JSP ODBC EXCEPTION ERROR

    hello.
    1)currently im using the tomcat server 4.1.31 and am using jsp technology along with the microsoft access database as the backend. i havd placed the jsp files and the microsoft access database in a dir under the webapps/root/ on the tomcat server
    2) i get the following error below and am unable to determine the root cause
    3) im using the win xp professional .. please help
    when i login i get the following exception error
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: [Microsoft][ODBC Microsoft Access Driver] Could not find file '(unknown)'.
         at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:498)
         at org.apache.jsp.loginHandler_jsp._jspService(loginHandler_jsp.java:82)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:92)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:162)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:240)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:187)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:200)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:146)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:209)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:144)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2358)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:133)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:118)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:116)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:127)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
         at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:152)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
         at java.lang.Thread.run(Thread.java:534)
    root cause
    java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Could not find file '(unknown)'.
         at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6958)
         at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:7115)
         at sun.jdbc.odbc.JdbcOdbc.SQLDriverConnect(JdbcOdbc.java:3074)
         at sun.jdbc.odbc.JdbcOdbcConnection.initialize(JdbcOdbcConnection.java:323)
         at sun.jdbc.odbc.JdbcOdbcDriver.connect(JdbcOdbcDriver.java:174)
         at java.sql.DriverManager.getConnection(DriverManager.java:512)
         at java.sql.DriverManager.getConnection(DriverManager.java:193)
         at org.apache.jsp.loginHandler_jsp._jspService(loginHandler_jsp.java:54)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:92)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:162)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:240)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:187)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:200)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:146)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:209)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:144)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2358)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:133)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:118)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:116)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:127)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
         at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:152)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
         at java.lang.Thread.run(Thread.java:534)
    Apache Tomcat/4.1.31

    hello.
    1)currently im using the tomcat server 4.1.31 and am
    using jsp technology along with the microsoft access
    database as the backend. i havd placed the jsp files
    and the microsoft access database in a dir under the
    webapps/root/ on the tomcat server
    2) i get the following error below and am unable to
    determine the root cause
    3) im using the win xp professional .. please help
    when i login i get the following exception error
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error
    () that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: [Microsoft][ODBC
    Microsoft Access Driver] Could not find file
    '(unknown)'.
    at
    t
    org.apache.jasper.runtime.PageContextImpl.handlePageEx
    ception(PageContextImpl.java:498)
    at
    t
    org.apache.jsp.loginHandler_jsp._jspService(loginHandl
    er_jsp.java:82)
    at
    t
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspB
    ase.java:92)
    at
    t
    javax.servlet.http.HttpServlet.service(HttpServlet.jav
    a:809)
    at
    t
    org.apache.jasper.servlet.JspServletWrapper.service(Js
    pServletWrapper.java:162)
    at
    t
    org.apache.jasper.servlet.JspServlet.serviceJspFile(Js
    pServlet.java:240)
    at
    t
    org.apache.jasper.servlet.JspServlet.service(JspServle
    t.java:187)
    at
    t
    javax.servlet.http.HttpServlet.service(HttpServlet.jav
    a:809)
    at
    t
    org.apache.catalina.core.ApplicationFilterChain.intern
    alDoFilter(ApplicationFilterChain.java:200)
    at
    t
    org.apache.catalina.core.ApplicationFilterChain.doFilt
    er(ApplicationFilterChain.java:146)
    at
    t
    org.apache.catalina.core.StandardWrapperValve.invoke(S
    tandardWrapperValve.java:209)
    at
    t
    org.apache.catalina.core.StandardPipeline$StandardPipe
    lineValveContext.invokeNext(StandardPipeline.java:596)
    at
    t
    org.apache.catalina.core.StandardPipeline.invoke(Stand
    ardPipeline.java:433)
    at
    t
    org.apache.catalina.core.ContainerBase.invoke(Containe
    rBase.java:948)
    at
    t
    org.apache.catalina.core.StandardContextValve.invoke(S
    tandardContextValve.java:144)
    at
    t
    org.apache.catalina.core.StandardPipeline$StandardPipe
    lineValveContext.invokeNext(StandardPipeline.java:596)
    at
    t
    org.apache.catalina.core.StandardPipeline.invoke(Stand
    ardPipeline.java:433)
    at
    t
    org.apache.catalina.core.ContainerBase.invoke(Containe
    rBase.java:948)
    at
    t
    org.apache.catalina.core.StandardContext.invoke(Standa
    rdContext.java:2358)
    at
    t
    org.apache.catalina.core.StandardHostValve.invoke(Stan
    dardHostValve.java:133)
    at
    t
    org.apache.catalina.core.StandardPipeline$StandardPipe
    lineValveContext.invokeNext(StandardPipeline.java:596)
    at
    t
    org.apache.catalina.valves.ErrorDispatcherValve.invoke
    (ErrorDispatcherValve.java:118)
    at
    t
    org.apache.catalina.core.StandardPipeline$StandardPipe
    lineValveContext.invokeNext(StandardPipeline.java:594)
    at
    t
    org.apache.catalina.valves.ErrorReportValve.invoke(Err
    orReportValve.java:116)
    at
    t
    org.apache.catalina.core.StandardPipeline$StandardPipe
    lineValveContext.invokeNext(StandardPipeline.java:594)
    at
    t
    org.apache.catalina.core.StandardPipeline.invoke(Stand
    ardPipeline.java:433)
    at
    t
    org.apache.catalina.core.ContainerBase.invoke(Containe
    rBase.java:948)
    at
    t
    org.apache.catalina.core.StandardEngineValve.invoke(St
    andardEngineValve.java:127)
    at
    t
    org.apache.catalina.core.StandardPipeline$StandardPipe
    lineValveContext.invokeNext(StandardPipeline.java:596)
    at
    t
    org.apache.catalina.core.StandardPipeline.invoke(Stand
    ardPipeline.java:433)
    at
    t
    org.apache.catalina.core.ContainerBase.invoke(Containe
    rBase.java:948)
    at
    t
    org.apache.coyote.tomcat4.CoyoteAdapter.service(Coyote
    Adapter.java:152)
    at
    t
    org.apache.coyote.http11.Http11Processor.process(Http1
    1Processor.java:799)
    at
    t
    org.apache.coyote.http11.Http11Protocol$Http11Connecti
    onHandler.processConnection(Http11Protocol.java:705)
    at
    t
    org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolT
    cpEndpoint.java:577)
    at
    t
    org.apache.tomcat.util.threads.ThreadPool$ControlRunna
    ble.run(ThreadPool.java:683)
         at java.lang.Thread.run(Thread.java:534)
    root cause
    java.sql.SQLException: [Microsoft][ODBC Microsoft
    Access Driver] Could not find file '(unknown)'.
    at
    t
    sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.jav
    a:6958)
    at
    t
    sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:711
    5)
    at
    t
    sun.jdbc.odbc.JdbcOdbc.SQLDriverConnect(JdbcOdbc.java:
    3074)
    at
    t
    sun.jdbc.odbc.JdbcOdbcConnection.initialize(JdbcOdbcCo
    nnection.java:323)
    at
    t
    sun.jdbc.odbc.JdbcOdbcDriver.connect(JdbcOdbcDriver.ja
    va:174)
    at
    t
    java.sql.DriverManager.getConnection(DriverManager.jav
    a:512)
    at
    t
    java.sql.DriverManager.getConnection(DriverManager.jav
    a:193)
    at
    t
    org.apache.jsp.loginHandler_jsp._jspService(loginHandl
    er_jsp.java:54)
    at
    t
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspB
    ase.java:92)
    at
    t
    javax.servlet.http.HttpServlet.service(HttpServlet.jav
    a:809)
    at
    t
    org.apache.jasper.servlet.JspServletWrapper.service(Js
    pServletWrapper.java:162)
    at
    t
    org.apache.jasper.servlet.JspServlet.serviceJspFile(Js
    pServlet.java:240)
    at
    t
    org.apache.jasper.servlet.JspServlet.service(JspServle
    t.java:187)
    at
    t
    javax.servlet.http.HttpServlet.service(HttpServlet.jav
    a:809)
    at
    t
    org.apache.catalina.core.ApplicationFilterChain.intern
    alDoFilter(ApplicationFilterChain.java:200)
    at
    t
    org.apache.catalina.core.ApplicationFilterChain.doFilt
    er(ApplicationFilterChain.java:146)
    at
    t
    org.apache.catalina.core.StandardWrapperValve.invoke(S
    tandardWrapperValve.java:209)
    at
    t
    org.apache.catalina.core.StandardPipeline$StandardPipe
    lineValveContext.invokeNext(StandardPipeline.java:596)
    at
    t
    org.apache.catalina.core.StandardPipeline.invoke(Stand
    ardPipeline.java:433)
    at
    t
    org.apache.catalina.core.ContainerBase.invoke(Containe
    rBase.java:948)
    at
    t
    org.apache.catalina.core.StandardContextValve.invoke(S
    tandardContextValve.java:144)
    at
    t
    org.apache.catalina.core.StandardPipeline$StandardPipe
    lineValveContext.invokeNext(StandardPipeline.java:596)
    at
    t
    org.apache.catalina.core.StandardPipeline.invoke(Stand
    ardPipeline.java:433)
    at
    t
    org.apache.catalina.core.ContainerBase.invoke(Containe
    rBase.java:948)
    at
    t
    org.apache.catalina.core.StandardContext.invoke(Standa
    rdContext.java:2358)
    at
    t
    org.apache.catalina.core.StandardHostValve.invoke(Stan
    dardHostValve.java:133)
    at
    t
    org.apache.catalina.core.StandardPipeline$StandardPipe
    lineValveContext.invokeNext(StandardPipeline.java:596)
    at
    t
    org.apache.catalina.valves.ErrorDispatcherValve.invoke
    (ErrorDispatcherValve.java:118)
    at
    t
    org.apache.catalina.core.StandardPipeline$StandardPipe
    lineValveContext.invokeNext(StandardPipeline.java:594)
    at
    t
    org.apache.catalina.valves.ErrorReportValve.invoke(Err
    orReportValve.java:116)
    at
    t
    org.apache.catalina.core.StandardPipeline$StandardPipe
    lineValveContext.invokeNext(StandardPipeline.java:594)
    at
    t
    org.apache.catalina.core.StandardPipeline.invoke(Stand
    ardPipeline.java:433)
    at
    t
    org.apache.catalina.core.ContainerBase.invoke(Containe
    rBase.java:948)
    at
    t
    org.apache.catalina.core.StandardEngineValve.invoke(St
    andardEngineValve.java:127)
    at
    t
    org.apache.catalina.core.StandardPipeline$StandardPipe
    lineValveContext.invokeNext(StandardPipeline.java:596)
    at
    t
    org.apache.catalina.core.StandardPipeline.invoke(Stand
    ardPipeline.java:433)
    at
    t
    org.apache.catalina.core.ContainerBase.invoke(Containe
    rBase.java:948)
    at
    t
    org.apache.coyote.tomcat4.CoyoteAdapter.service(Coyote
    Adapter.java:152)
    at
    t
    org.apache.coyote.http11.Http11Processor.process(Http1
    1Processor.java:799)
    at
    t
    org.apache.coyote.http11.Http11Protocol$Http11Connecti
    onHandler.processConnection(Http11Protocol.java:705)
    at
    t
    org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolT
    cpEndpoint.java:577)
    at
    t
    org.apache.tomcat.util.threads.ThreadPool$ControlRunna
    ble.run(ThreadPool.java:683)
         at java.lang.Thread.run(Thread.java:534)
    Apache Tomcat/4.1.31*************************************************************************
    Hi,
    I think u didn't create the DSN for ur Microsoft Access database.
    First create the DSN name by giving the location of ur .mdb file. U can browse and select the file by clicking the "select " button in the DSN creation window. U should give the DSN name in ur connection URL. If u need any further assistance let me know.
    Regards
    null

  • Fine Grained Access ERROR on INSERT when generating unique keys

    I'm using VPD/Fine Grained Access Control (FGAC) to implement security on my 9i backend. I created a security policy function that returns the predicate 'owner = USER'; - each of the tables has an additional column titled OWNER which contains the name of the logged-in user. Every time a user inserts a record, a BEFORE INSERT trigger fires (for every row) and inserts the USER name into the OWNER column. This is fairly straightforward and ensures that users can see only their rows. Using the DBMS_RLS.add_policy procedure, I attached the security policy to several tables and made it effective upon SELECT, UPDATE, INSERT, and DELETE statements.
    However, the frontend Java application (custom-made) generates unique IDs (sequences are not used) by selecting max(ID)+1 from the primary key columns of the tables. The problem is that the predicate is appended to the SELECT max(ID)+1 query to limit the max(ID) to only those rows where 'owner = USER'. Therefore, the max(ID) generated is not the largest ID for the entire table, but only the largest among the USER rows.
    So unless that USER happens to have the the largest ID in the whole table (and it has worked then), a primary-key violation error will be returned and the INSERT operation will be aborted.
    How can I allow every USER to select from AND get the absolute largest ID from the PK column without allowing that user to select records that don't belong to him? If I had developed the application, I would have made use of sequences on the back-end to generate unique primary key IDs. Unfortunately, I don't have this option and must work with the application as is.
    NOTE: the front-end Java application understands only the base table names, NOT Views created by me on the server. If the answer to this problem involves views, how can I make use of them on the backend when the front-end code does not recognize them?
    Any help is greatly appreciated!
    Michael

    first you could use default column values, not a trigger, which is more expensive.
    if your apps already assumes full access to table to get max id ( another RT ), this is bad. Current RLS can not really help if you can not change the apps because of this flaw logic ( you can store the maxid anywhere, why scanning the whole table to find it )

  • Strange Unique Key Error When Copying Cube

    I have an empty cube (cube2) I checked it many times. I am copying data from cube1 using an info package. In Info Package I set delete option, i.e., delete existing data in cube2 before loading.
    As soon as loading starts, I get a short dump with error message:
    An entry was to be entered into the table                                                     |
    "\FUNCTION=RSAR_ODS_GET\DATA=L_TH_ISOSMAP" (which should have
    had a unique table key (UNIQUE KEY)).
    However, there already existed a line with an identical key.
    The insert-operation could have occurred as a result of an INSERT- or
    MOVE command, or in conjunction with a SELECT ... INTO.
    The statement "INSERT INITIAL LINE ..." cannot be used to insert several
    |     initial lines into a table with a unique key.     
    I tried other cubes, same error occurs. I checked on SN, people have encountered this error but solution is not posted. Any idea, how can I get rid of the error.
    Thanks a lot.

    Hi
    Try to load from Cube1 to cube2 without using that option and see if it loads. If that works then add an extra step on the
    process chain ' Delete overlapping requests from the target ' after the infopackage load .
    Thanks
    Jay.

  • Error in Duplicate record validation in EntityObject using unique key contraint

    I have implemented Unique key validation in Entity Object by creating Alternate key in Entity object.
    So the problem is that whenever the duplicate record is found,the duplicate record error is shown, but the page becomes blank, and no error is shown in the log.
    I wanted to know what may be the possible cause of it.
    I am using Jdev 11.1.2.4.

    After duplication, clear the PK item, then populate from the sequence in a PRE-INSERT block-level trigger.
    Francois

  • Violation of unique key constraint 'IX_User_LoginName' error

    I get the following error while doing a sync:
    violation of unique key constraint 'IX_User_LoginName'
    I have already updated the web user ids on all my users, as well as those on my BPs. After I do the sync all my data is being deleted.

    I get the following error while doing a sync:
    violation of unique key constraint 'IX_User_LoginName'
    I have already updated the web user ids on all my users, as well as those on my BPs. After I do the sync all my data is being deleted.

  • AMT enrollment error - Violation of UNIQUE KEY constraint 'EN_EnrollmentRecords_AK'.

    Hello,
    I've trouble enrolling AMT computer with SCCM 2012
    I've foud the following error in Amtproxymgr.log
    15/05/2014 14:54:50     
    Found instruction file: D:\Apps\Microsoft Configuration Manager\inboxes\amtproxymgr.box\{C6B0AAB5-BB02-4673-B44A-118917419389}.OTP
    15/05/2014 14:54:50     
    It's client provisioning request to be processed.
    15/05/2014 14:54:50     
    Stored provisioning request into database. SMSID: Machine_GUID
    15/05/2014 14:54:50     
    Target machine SMSID:Machine_GUID is a AMT capable machine.
    15/05/2014 14:54:50     
    Passed SanityCheckBeforeProvision(). FQDN is MYCOMPUTERNAME.domain.
    15/05/2014 14:54:50     
    BASE64 string OTP is : OTP_STRING
    15/05/2014 14:54:58      *** EN_EnrollmentAdminInsert @ProfileId = '16777217', @AssignedSiteCode = N'SITE_CODE', @DeviceName = N'MYCOMPUTERNAME', @ResourceID = '16816953', @OwnerIdentity = N'', @ClientType
    = '1', @OrganizationUnit = N'LDAP://OU=OU_NAME
    15/05/2014 14:54:58     
    *** [23000][2627][Microsoft][SQL Server Native Client 11.0][SQL Server]Violation of UNIQUE KEY constraint 'EN_EnrollmentRecords_AK'. Cannot insert duplicate key in object 'dbo.EN_EnrollmentRecords'. The duplicate key value is (MYCOMPUTERNAME). : EN_EnrollmentAdminInsert
    15/05/2014 14:54:58     
    Fail to insert Enrollment Record!
    15/05/2014 14:54:58     
    Error: Failed to create enrollment record.
    If I do a query on V_R_SYSTEM the resource ID for MYCOMPUTERNAME is 16816953.
    If I do a query on EN_EnrollmentRecords the Ressource Id associated  to
    MYCOMPUTERNAME is 16777351
    So there is already a record for MYCOMPUTERNAME in
    EN_EnrollmentRecords.
    I think the reason is that the computer resource has been removed from SCCM and then readded. The computer has now a new Ressource ID. But the deletion of the previous computer ID did not removed the record from
    EN_EnrollmentRecords.
    How can I solve this ?

    Open Sql Server Management Studio, and do the query below.
    select * from dbo.en_EnrollmentRecords where ResourceID ='16777351'
    delete from dbo.EN_EnrollmentRecords where ResourceID = '16777351'
    Delete the Device from console and AD and try provisioning again.
    Note: Please backup your Database before doing this modification. Modifying database will be at your own risk.
    Juke Chou
    TechNet Community Support

  • GG Error of unique key,

    Hi,
    While setting up goldengate i have come accross the following error in the error log. This error occurs when extract in started.
    2010-08-06 18:53:58 INFO OGG-00476 Oracle GoldenGate Capture for Oracle, ext-a.prm: Gathering metadata for [SEND.SOURCE] not successful even though object was resolved, retrying [3] times with 1 second interval.
    2010-08-06 18:53:59 WARNING OGG-00455 Oracle GoldenGate Capture for Oracle, ext-a.prm: Problem in resolving [SEND.SOURCE]: OCI error (904-ORA-00904: "VISIBILITY": invalid identifier) building query to fetch unique key, SQL < SELECT key.key_name, key.column_name, key.descend FROM (SELECT c.constraint_name key_name, c.column_name column_name, c.position position, >, try to fix this issue in order to avoid possible fatal error.
    2010-08-06 18:53:59 INFO OGG-00476 Oracle GoldenGate Capture for Oracle, ext-a.prm: Gathering metadata for [SEND.SOURCE] not successful even though object was resolved, retrying [2] times with 1 second interval.
    2010-08-06 18:54:00 WARNING OGG-00455 Oracle GoldenGate Capture for Oracle, ext-a.prm: Problem in resolving [SEND.SOURCE]: OCI error (904-ORA-00904: "VISIBILITY": invalid identifier) building query to fetch unique key, SQL < SELECT key.key_name, key.column_name, key.descend FROM (SELECT c.constraint_name key_name, c.column_name column_name, c.position position, >, try to fix this issue in order to avoid possible fatal error.
    2010-08-06 19:07:13 ERROR OGG-00521 Oracle GoldenGate Capture for Oracle, ext-a.prm: Object was resolved, however in the same resolution call both DDL history and database metadata resolution failed, cannot recover, SCN [489507], object id [51514].
    note that my table does contain unique key
    Any ideas? Stuck at this stage :(
    thanks
    Salman

    Hi Dominik
    I managed to correct that one. It was actually the name of my trails are different on primary node and remote node.
    Now i am attempting to configure bidirectional traffic but during this phase the repilcat 1 dies (abending).
    Log shows up as follows
    2010-08-06 21:42:21 INFO OGG-00996 Oracle GoldenGate Delivery for Oracle, rep-a.prm: REPLICAT REP-A started.
    2010-08-06 21:42:21 WARNING OGG-01004 Oracle GoldenGate Delivery for Oracle, rep-a.prm: Aborted grouped transaction on 'RECV.DEST', Database error 100 (retrieving bind info for query).
    2010-08-06 21:42:21 WARNING OGG-01003 Oracle GoldenGate Delivery for Oracle, rep-a.prm: Repositioning to rba 1653 in seqno 1.
    2010-08-06 21:42:21 WARNING OGG-01154 Oracle GoldenGate Delivery for Oracle, rep-a.prm: SQL error 1403 mapping SEND.SOURCE to RECV.DEST.
    2010-08-06 21:42:21 WARNING OGG-01003 Oracle GoldenGate Delivery for Oracle, rep-a.prm: Repositioning to rba 1653 in seqno 1.
    2010-08-06 21:42:21 ERROR OGG-01296 Oracle GoldenGate Delivery for Oracle, rep-a.prm: Error mapping from SEND.SOURCE to RECV.DEST.
    2010-08-06 21:42:21 ERROR OGG-01668 Oracle GoldenGate Delivery for Oracle, rep-a.prm: PROCESS ABENDING.

  • PleaseHelp on jsp and Mysql connectivity and a lot of exception errors

    Hi,
    I am Trying to connect a JSP page with Mysql database. I am having a lot of probelms. After having a lot of problems in connecting the JSp with Mysql. Intilally it was giving me the exception error that " NO appropriate driver was found. After modifying the URl it was fine. Now It is giving the Following errors.
    servlet.ServletException: Communication link failure: java.io.IOException, underlying cause: Unexpected end of input stream ** BEGIN NESTED EXCEPTION ** java.io.IOException MESSAGE: Unexpected end of input stream
    In a window before loading the Explorer page it is giving the following error that The port 8081 is already in use and i should expand to other ports. Noraml JSP Files which used to work before are also not working .
    Internal Tomcat JWSDP is alos not working. If i try to start the server it says that port 8081 is already in USe . A java.net.connection exception is also occuring. The normal JSP files are also not working. What is Happening. I am also giving the code i have writted. PLease tellme why so many exception errors are occuring.
    Connection con = DriverManager.getConnection("jdbc:mysql://localhost:8081/mis_project", "root", " ");
    Statement stmt = con.createStatement();
    ResultSet rs = stmt.executeQuery("Select study_semester FROM Semester");
    while(rs.next()) {
    %>
    <option value="<%= rs.getString("Study_Semester") %>">
    </option>
    <% }
    if(rs!=null) rs.close();
    if(stmt!=null) stmt.close();
    if(con!=null) con.close();
    I am trying to connect to Mysql and automatocally populate a field in a Form in later JSp pages i intend to record the data entered in these fields into other tables.

    <%
    Class.forName("com.mysql.jdbc.Driver").newInstance();
    Connection conn = DriverManager.getConnection("jdbc:mysql://localhost/myDB?user=username&password=mypass");
    Statement stmt = conn.createStatement(java.sql.ResultSet.TYPE_FORWARD_ONLY, java.sql.ResultSet.CONCUR_READ_ONLY);
    String cat = "";
              try{
              cat = request.getParameter("category");
              }catch(NullPointerException npe){}
              ResultSet rs = stmt.executeQuery("SELECT id,fullname FROM users WHERE category LIKE '%motor%' AND subcategory like '%"+cat+"%'");
         %>
    This piece gets a category parameter from a form post and uses it to search for a specific category in a database table. I think maybe u need to download JConnector from mysql site and unzip it to the classes folder of your WEB-INF in Tomcat server...... i hope this helps a bit

  • Getting duplicate key Exception in java server faces

    I am getting duplicate key exception at some places in my JSF page .I have done the debugging of the java code but I didn�t find any error in the code. Problem is occurring at the time of rendering the JSF page. I have done R&D on that but I am unable to find the solution. When JSF is rendering �qualPersonResultTable� in the page at that time I am getting Exception. I have visited the number of firm those were suggesting to assign the �ID� to all the component in the JSF which I have done but still I am getting the same error. In the database all the value are unique are there is primary key so there is only problem in rendering the JSF page.Exception is as follows :
    "EXCEPTION "
    [8/28/07 16:54:52:475 IST] 31fa31fa WebGroup E SRVE0026E: [Servlet Error]-[Duplicate component ID &#39;qualificationsInc:qualificationsForm:qualPersonResultTable:_id22&#39; found in view.]: javax.servlet.jsp.JspException: Duplicate component ID 'qualificationsInc:qualificationsForm:qualPersonResultTable:_id22' found in view.
         at com.sun.faces.taglib.jsf_core.ViewTag.doAfterBody(ViewTag.java:173)
         at org.apache.jsp._PersonQualifications._jspService(PersonQualifications.jsp :16)
         at com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase.service(HttpJspBase.java:89)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.ibm.ws.webcontainer.jsp.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:351)
         at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.serviceJspFile(JspServlet.java:705)
         at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.service(JspServlet.java:803)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
         at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
         at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
         at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
         at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
         at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
         at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
         at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:1166)
         at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:676)
         at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:203)
         at com.ibm.faces.context.MultipartExternalContextImpl.dispatch(MultipartExternalContextImpl.java:411)
         at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:295)
         at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:217)
         at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
         at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
         at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
         at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
         at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
         at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
         at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
         at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
         at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:76)
         at com.minnesotamutual.individual.common.security.auth.IndAuthorizationFilter.doFilter(IndAuthorizationFilter.java:179)
         at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:132)
         at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:71)
         at com.minnesotamutual.individual.common.security.auth.IndAuthorizationFilter.doFilter(IndAuthorizationFilter.java:179)
         at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:132)
         at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:71)
         at com.minnesotamutual.common.security.auth.AuthenticationFilter$DoFilterAction.run(AuthenticationFilter.java:111)
         at java.security.AccessController.doPrivileged(AccessController.java:260)
         at javax.security.auth.Subject.doAs(Subject.java:555)
         at com.minnesotamutual.common.security.auth.AuthenticationFilter.doFilter(AuthenticationFilter.java:283)
         at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:132)
         at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:71)
         at com.minnesotamutual.common.security.auth.AuthTicketValidationFilter.doFilter(AuthTicketValidationFilter.java:285)
         at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:132)
         at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:71)
         at com.minnesotamutual.common.security.auth.AuthTicketTimestampFilter.doFilter(AuthTicketTimestampFilter.java:193)
         at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:132)
         at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:71)
         at com.minnesotamutual.common.web.SSLFilter.doFilter(SSLFilter.java:117)
         at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:132)
         at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:71)
         at com.minnesotamutual.common.logging.http.HttpLogFilter.doFilter(HttpLogFilter.java:92)
         at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:132)
         at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:71)
         at com.minnesotamutual.individual.common.logging.LoggingBaseFilter.doFilter(LoggingBaseFilter.java:58)
         at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:132)
         at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:71)
         at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:1162)
         at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:676)
         at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:203)
         at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:125)
         at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:300)
         at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
         at com.ibm.ws.webcontainer.cache.invocation.CacheableInvocationContext.invoke(CacheableInvocationContext.java:120)
         at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:250)
         at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
         at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
         at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:652)
         at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:458)
         at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:936)
    ---- Begin backtrace for Nested Throwables
    java.lang.IllegalStateException: Duplicate component ID 'qualificationsInc:qualificationsForm:qualPersonResultTable:_id22' found in view.
         at com.sun.faces.application.StateManagerImpl.removeTransientChildrenAndFacets(StateManagerImpl.java:134)
         at com.sun.faces.application.StateManagerImpl.removeTransientChildrenAndFacets(StateManagerImpl.java:143)
         at com.sun.faces.application.StateManagerImpl.removeTransientChildrenAndFacets(StateManagerImpl.java:143)
         at com.sun.faces.application.StateManagerImpl.removeTransientChildrenAndFacets(StateManagerImpl.java:143)
         at com.sun.faces.application.StateManagerImpl.removeTransientChildrenAndFacets(StateManagerImpl.java:143)
         at com.sun.faces.application.StateManagerImpl.removeTransientChildrenAndFacets(StateManagerImpl.java:143)
         at com.sun.faces.application.StateManagerImpl.removeTransientChildrenAndFacets(StateManagerImpl.java:143)
         at com.sun.faces.application.StateManagerImpl.removeTransientChildrenAndFacets(StateManagerImpl.java:143)
         at com.sun.faces.application.StateManagerImpl.removeTransientChildrenAndFacets(StateManagerImpl.java:143)
         at com.sun.faces.application.StateManagerImpl.saveSerializedView(StateManagerImpl.java:72)
         at com.sun.faces.taglib.jsf_core.ViewTag.doAfterBody(ViewTag.java:171)
         at org.apache.jsp._PersonQualifications._jspService(PersonQualifications.jsp :16)
         at com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase.service(HttpJspBase.java:89)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.ibm.ws.webcontainer.jsp.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:351)
         at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.serviceJspFile(JspServlet.java:705)
         at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.service(JspServlet.java:803)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
         at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
         at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
         at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
         at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
         at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
         at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
         at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:1166)
         at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:676)
         at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:203)
         at com.ibm.faces.context.MultipartExternalContextImpl.dispatch(MultipartExternalContextImpl.java:411)
         at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:295)
         at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:217)
         at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
         at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
         at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
         at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
         at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
         at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
         at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
         at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
         at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:76)
         at com.minnesotamutual.individual.common.security.auth.IndAuthorizationFilter.doFilter(IndAuthorizationFilter.java:179)
         at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:132)
         at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:71)
         at com.minnesotamutual.individual.common.security.auth.IndAuthorizationFilter.doFilter(IndAuthorizationFilter.java:179)
         at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:132)
         at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:71)
         at com.minnesotamutual.common.security.auth.AuthenticationFilter$DoFilterAction.run(AuthenticationFilter.java:111)
         at java.security.AccessController.doPrivileged(AccessController.java:260)
         at javax.security.auth.Subject.doAs(Subject.java:555)
         at com.minnesotamutual.common.security.auth.AuthenticationFilter.doFilter(AuthenticationFilter.java:283)
         at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:132)
         at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:71)
         at com.minnesotamutual.common.security.auth.AuthTicketValidationFilter.doFilter(AuthTicketValidationFilter.java:285)
         at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:132)
         at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:71)
         at com.minnesotamutual.common.security.auth.AuthTicketTimestampFilter.doFilter(AuthTicketTimestampFilter.java:193)
         at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:132)
         at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:71)
         at com.minnesotamutual.common.web.SSLFilter.doFilter(SSLFilter.java:117)
         at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:132)
         at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:71)
         at com.minnesotamutual.common.logging.http.HttpLogFilter.doFilter(HttpLogFilter.java:92)
         at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:132)
         at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:71)
         at com.minnesotamutual.individual.common.logging.LoggingBaseFilter.doFilter(LoggingBaseFilter.java:58)
         at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:132)
         at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:71)
         at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:1162)
         at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:676)
         at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:203)
         at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:125)
         at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:300)
         at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
         at com.ibm.ws.webcontainer.cache.invocation.CacheableInvocationContext.invoke(CacheableInvocationContext.java:120)
         at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:250)
         at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
         at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
         at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:652)
         at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:458)
         at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:936)
    Code :
    <h:dataTable border="0" cellpadding="2" cellspacing="0"
    columnClasses="qual_prs_col_prs_name,qual_prs_col_prs_code,qual_prs_col_status,qual_prs_col_blocked,qual_prs_col_exception,qual_prs_col_frm_name,qual_prs_col_rlt"
                                       headerClass="rt_panelgrid_dtsmallhdg"
                                       rowClasses="rt_list_row_odd,rt_list_row_even"
                                       styleClass="dataTable" id="qualPersonResultTable" width="750"
                                       value="#{qualificationsSearchDataBean.searchResults}" var="personList"
                                       binding="#{qualificationsSearchDataBean.personQualTable}"
                                       rendered="#{qualificationsSearchDataBean.personQualifications}">
                             <h:column id="prsTablePrsName">
                                  <f:facet name="header">
                                       <h:outputText id="prsTablePrsNameHeading" value="Name" styleClass="rt_table_heading_left"/>
                                  </f:facet>
                                  <h:outputText id="prsTablePrsNameValue" value="#{personList.sle_per_rcg_fmt_n}" styleClass="rt_standard_data_text"/>
                             </h:column>
                             <h:column id="prsTablePrsCode">
                                  <f:facet name="header">
                                       <h:outputText id="prsTablePrsCodeHeading" value="Code" styleClass="rt_table_heading_left"/>
                                  </f:facet>
                                  <h:outputText id="prsTablePrsCodeValue" value="#{personList.agt_c}" styleClass="rt_standard_data_text"
                                                 converter="AdvisorCodeConverter"/>
                             </h:column>
                             <h:column id="prsTableQualification">
                                  <f:facet name="header">
                                       <h:outputText id="prsTableQualificationHeading" value="Qualification Status" styleClass="rt_table_heading_left"/>
                                  </f:facet>
                                  <h:selectOneMenu id="prsTableQualificationValue" value="#{personList.rcg_evt_ptc_sta_c}"
                                                      onchange="javascript: updateQualStat(#{qualificationsSearchDataBean.personQualTable.rowIndex},#{qualificationsSearchDataBean.personQualifications},#{qualificationsSearchDataBean.firmQualifications},#{personList.sle_per_unq_i},'#{personList.sle_per_rcg_fmt_n}',#{personList.rcg_evt_ptc_sta_c},this.value,'#{personList.rcg_evt_blk_f}','#{personList.rcg_evt_exc_f}');">
                                       <f:selectItem itemValue="1" itemLabel="Not Qualified"/>
                                       <f:selectItem itemValue="2" itemLabel="On Schedule"/>
                                       <f:selectItem itemValue="3" itemLabel="Qualified"/>
                                  </h:selectOneMenu>
                             </h:column>
                             <h:column id="prsTableBlocked">
                                  <f:facet name="header">
                                       <h:outputText id="prsTableBlockedHeading" value="Blocked" styleClass="rt_table_heading_left"/>
                                  </f:facet>
                                  <h:selectOneMenu id="prsTableBlockedValue" value="#{personList.rcg_evt_blk_f}"
                                                      onchange="javascript: updateBlockFlag(#{qualificationsSearchDataBean.personQualTable.rowIndex},#{qualificationsSearchDataBean.personQualifications},#{qualificationsSearchDataBean.firmQualifications},#{personList.sle_per_unq_i},'#{personList.sle_per_rcg_fmt_n}',#{personList.rcg_evt_ptc_sta_c},'#{personList.rcg_evt_blk_f}',this.value,'#{personList.rcg_evt_exc_f}');">
                                       <f:selectItem itemValue="Y" itemLabel="Yes"/>
                                       <f:selectItem itemValue="N" itemLabel="No"/>
                                  </h:selectOneMenu>                    
                             </h:column>
                             <h:column id="prsTableException">
                                  <f:facet name="header">
                                       <h:outputText id="prsTableExceptionHeading" value="Exception" styleClass="rt_table_heading_left"/>
                                  </f:facet>
                                  <h:selectOneMenu id="prsTableExceptionValue" value="#{personList.rcg_evt_exc_f}"
                                                 onchange="javascript: updateExceptionFlag(#{qualificationsSearchDataBean.personQualTable.rowIndex},#{qualificationsSearchDataBean.personQualifications},#{qualificationsSearchDataBean.firmQualifications},#{personList.sle_per_unq_i},'#{personList.sle_per_rcg_fmt_n}',#{personList.rcg_evt_ptc_sta_c},'#{personList.rcg_evt_blk_f}','#{personList.rcg_evt_exc_f}',this.value);">
                                       <f:selectItem itemValue="Y" itemLabel="Yes"/>
                                       <f:selectItem itemValue="N" itemLabel="No"/>
                                  </h:selectOneMenu>     
                             </h:column>
                             <h:column id="prsTableFirmName">
                                  <f:facet name="header">
                                       <h:outputText id="prsTableFirmNameHeading" value="Firm Name" styleClass="rt_table_heading_left"/>
                                  </f:facet>
                                  <h:outputText id="prsTableFirmNameValue" styleClass="rt_standard_data_text" value="#{personList.pri_agy_rcg_fmt_n}"/>
                             </h:column>
                             <h:column id="prsTableRelationship">
                                  <f:facet name="header">
                                       <h:outputText id="prsTableRelationshipHeading" value="Relationship" styleClass="rt_table_heading_left"/>
                                  </f:facet>
                                  <h:outputText id="prsTableRelationshipValue" value="#{personList.asc_rlt_typ_des_x}" styleClass="rt_standard_data_text"/>
                             </h:column>
                        </h:dataTable>
    If any one help me in resolving this i will be thankful to him.

    Thanks for reply so fast . See the complete code below
    Complete Code :
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <%@ page language="java"
              contentType="text/html; charset=ISO-8859-1"
              pageEncoding="ISO-8859-1"
    %>
    <%@taglib uri="http://java.sun.com/jstl/core" prefix="c"%>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@ taglib uri="http://www.ibm.com/jsf/html_extended" prefix="hx"%>
    <%@ taglib
         uri="http://www.minnesotamutual.com/individual/common/navigation"
         prefix="nav"%>
    <HEAD>
    <LINK rel="stylesheet" type="text/css" href="../../css/rt_qual.css"
         title="QUAL">
    <LINK rel="stylesheet" type="text/css" href="../../css/rt_error.css"
         title="ERROR">
    </HEAD>
    <f:subview id="qualificationsInc">
         <c:if test="${siteAvailabilityActionBean.siteMsg != null}">
              <c:import url="../Error/RTSiteWarningInc.jsp" />
              <hx:outputSeparator id="siteWarnHR" width="550" align="LEFT" />
         </c:if>
         <h:form id="qualificationsForm" style="margin: 0px;">
              <h:inputHidden id="uniqueID" value="#{qualificationsSearchDataBean.uniqueID}" />
              <h:inputHidden id="selectedQualStatus" value="#{qualificationsSearchDataBean.selectedQualStatus}" />          
              <h:inputHidden id="selectedBlockFlag" value="#{qualificationsSearchDataBean.selectedBlockFlag}" />          
              <h:inputHidden id="selectedExceptionFlag" value="#{qualificationsSearchDataBean.selectedExceptionFlag}" />     
              <h:inputHidden id ="pageSelected" value="#{qualificationsSearchDataBean.pageSelected}" />
              <h:commandButton id="searchEngineOptimization" style="width:0px;" value=""
    action="#{qualificationsSearchActionBean.gatherSearchResults}"/>
              <h:panelGrid id="persValidationErrorGrid" styleClass="panelGrid" width="550"
                        columns="2" columnClasses="vld_err_pic_col,vld_err_msg_col"
                        rendered="#{qualificationsSearchDataBean.qualificationErrorList != null}">
              <h:graphicImage value="../../Images/alert_red_icon.gif"/>
              <h:panelGroup id="persErrorMsgGroup">
                   <h:dataTable id="persErrTable" width="500" value="#{qualificationsSearchDataBean.qualificationErrorList}" var="persErr">
                        <h:column id="persMsgCol">
                             <h:outputText value="<LI>#{persErr}" escape="false" styleClass="err_attention_text"/>
                        </h:column>
                   </h:dataTable>
              </h:panelGroup>
              </h:panelGrid>
         <h:panelGrid id="selectEventTypeGrid" styleClass="panelGrid" width="550"
                        columnClasses="qual_crit_col1,qual_crit_col2,qual_crit_col3" columns="3">
              <h:outputText id="eventTypeLabel" value="Event Type:"/>
              <h:selectOneMenu id="selectPersonEvent" value="#{qualificationsSearchDataBean.eventType}"
                                  rendered="#{qualificationsSearchDataBean.personQualifications}">
                   <f:selectItems value="#{recognitionListBean.personEventTypeList}"/>
              </h:selectOneMenu>
              <h:selectOneMenu id="selectFirmEvent" value="#{qualificationsSearchDataBean.eventType}"
                                  rendered="#{qualificationsSearchDataBean.firmQualifications}">
                   <f:selectItems value="#{recognitionListBean.firmEventTypeList}"/>
              </h:selectOneMenu>
              <h:commandButton id="chooseEvent" value="Select Event Type" style="width: 125px;"
                                  action="#{qualificationsSearchActionBean.selectEvent}"/>
         </h:panelGrid>
         <h:panelGroup id="specificEventGroup" rendered="#{qualificationsSearchDataBean.eventTypeSelected}">
              <hx:outputSeparator width="750" align="left"/>
              <h:panelGrid id="selectSpecificEventGrid" styleClass="panelGrid" width="550"
                             columnClasses="qual_crit_col1,qual_crit_col2,qual_crit_col3" columns="3">
                   <h:outputText id="specificEventLabel" value="Specific Event:"/>
                   <h:selectOneMenu id="selectSpecificEvent" value="#{qualificationsSearchDataBean.specificEvent}">
                        <f:selectItems value="#{qualificationsSearchDataBean.recognitionEvents}"/>
                   </h:selectOneMenu>
                   <h:commandButton type="submit" id="chooseSpecificEvent" value="Select Event" style="width: 85px;"
                                       action="#{qualificationsSearchActionBean.selectSpecificEvent}"/>
              </h:panelGrid>
         </h:panelGroup>
         <h:panelGroup id="specificEventSelectedGroup" rendered="#{qualificationsSearchDataBean.specificEventSelected}">
              <hx:outputSeparator width="750" align="left"/>
              <h:panelGrid id="eventNameGrid" columns="3" width="550"
                             columnClasses="qual_crit_col1,qual_crit_col2,qual_crit_col3">
                   <h:outputText id="eventNameHeading" value="Event:" styleClass="rt_standard_label_text" style="font-weight: bold;"/>
                   <h:outputText id="eventName" value="#{qualificationsSearchDataBean.specificEventName}" styleClass="rt_standard_data_text"/>
                   <h:outputText id="blank1" value="<BR>" escape="false"/>
                   <h:outputText id="lastUpdatedHeading" value="Last Updated:" styleClass="rt_standard_label_text" style="font-weight: bold;"/>
                   <h:outputText id="lastUpdated" value="#{qualificationsSearchDataBean.specificEventAsOfDate}" styleClass="rt_standard_data_text"/>
                   <h:outputText id="blank2" value="<BR>" escape="false"/>
                   <h:outputText id="lastPublishedHeading" value="Last Published:" styleClass="rt_standard_label_text" style="font-weight: bold;"/>
                   <h:outputText id="lastPublishedDate" value="#{qualificationsSearchDataBean.specificEventPublishedDate}" styleClass="rt_standard_data_text"
                                  rendered="#{qualificationsSearchDataBean.specificEventPublishedDate != null}"/>
                   <h:outputText id="lastPublishedNA" value="(Never)" styleClass="rt_standard_data_text"
                                  rendered="#{qualificationsSearchDataBean.specificEventPublishedDate == null}"/>
                   <h:commandButton id="publishButton" type="submit" value="Publish" style="width: 55px;"
                                       action="#{qualificationsSearchActionBean.publishData}"/>
              </h:panelGrid>
              <h:outputText id="break1" value="<BR>" escape="false"/>
              <h:panelGrid id="searchGrid" columns="3" width="550" columnClasses="qual_crit_col1,qual_crit_col2,qual_crit_col3">
                   <h:outputText id="searchByText" value="Search By:*" />
                   <h:selectOneMenu id="personSearchByMenu" value="#{qualificationsSearchDataBean.searchBy}"
                                       onchange="javascript: updateSearchBy(this.value);"
                                       rendered="#{qualificationsSearchDataBean.personQualifications}">
                        <f:selectItem itemLabel="Person Name" itemValue="Name"/>
                        <f:selectItem itemLabel="Advisor Code" itemValue="CODE"/>
                        <f:selectItem itemLabel="Qualification Status" itemValue="QualStat"/>
                        <f:selectItem itemLabel="Firm Name" itemValue="FrmName"/>
                   </h:selectOneMenu>
                   <h:selectOneMenu id="firmSearchByMenu" value="#{qualificationsSearchDataBean.searchBy}"
                                       onchange="javascript: updateSearchBy(this.value);"
                                       rendered="#{qualificationsSearchDataBean.firmQualifications}">
                        <f:selectItem itemLabel="Firm Name" itemValue="Name"/>
                        <f:selectItem itemLabel="Firm Code" itemValue="FrmCode"/>
                        <f:selectItem itemLabel="Qualification Status" itemValue="QualStat"/>
                   </h:selectOneMenu>
                   <h:outputText id="blankCol1" value=" " escape="false" />
                   <h:outputText id="searchForText" value="Search For:" />
                   <h:panelGroup id="searchForGroup">
                        <h:outputText id="dispSearchForDIV" value="<DIV id='searchForDIV' style='display:block'>" rendered="#{qualificationsSearchDataBean.searchBy != 'QualStat'}" escape="false" />
                        <h:outputText id="noDispSearchForDIV" value="<DIV id='searchForDIV' style='display:none'>" rendered="#{qualificationsSearchDataBean.searchBy == 'QualStat'}" escape="false" />
                        <h:inputText id="searchForValue" value="#{qualificationsSearchDataBean.searchFor}" size="20" />
                        <h:outputText id="endSearchForDIV" value="</DIV>" escape="false" />
                        <h:outputText id="dispSearchQualValDIV" value="<DIV id='searchQualValDIV' style='display:block'>" rendered="#{qualificationsSearchDataBean.searchBy == 'QualStat'}" escape="false" />
                        <h:outputText id="noDispSearchQualValDIV" value="<DIV id='searchQualValDIV' style='display:none'>" rendered="#{qualificationsSearchDataBean.searchBy != 'QualStat'}" escape="false" />
                        <h:selectOneMenu id="searchQualValMenu" value="#{qualificationsSearchDataBean.searchQualVal}">
                             <f:selectItem itemLabel="All" itemValue="0"/>
                             <f:selectItem itemLabel="Qualified" itemValue="3"/>
                             <f:selectItem itemLabel="Not Qualified" itemValue="1"/>
                             <f:selectItem itemLabel="On Schedule" itemValue="2"/>
                        </h:selectOneMenu>
                        <h:outputText id="endSearchQualValDIV" value="</DIV>" escape="false" />
                   </h:panelGroup>
                   <h:commandButton type="submit" id="performSearchButton" value="Search" style="width: 55px;" onclick="javascript: setFlag();"
                                       action="#{qualificationsSearchActionBean.gatherSearchResults}"/>
              </h:panelGrid>
              <h:panelGrid id="personSearchNoteGrid" width="750" rendered="#{qualificationsSearchDataBean.personQualifications}">
                   <h:outputText id="personSearchNote" value="* When searching by Person Name, Advisor Code, or Firm Name, a blank search value will return all people." />
              </h:panelGrid>
              <h:panelGrid id="firmSearchNoteGrid" width="750" rendered="#{qualificationsSearchDataBean.firmQualifications}">
                   <h:outputText id="firmSearchNote" value="* When searching by Firm Name or Firm Code, a blank search value will return all firms." />
              </h:panelGrid>
              <h:outputText id="break2" value="<BR>" escape="false"/>
              <h:panelGroup id="searchPerformedGroup" rendered="#{qualificationsSearchDataBean.searchPerformed}">
                   <h:panelGroup id="resultsReturnedGroup" rendered="#{qualificationsSearchDataBean.searchResults != null}">
                        <h:panelGrid styleClass="rt_section_heading" id="resultCountGrid" width="750" cellpadding="0">
                             <h:outputText styleClass="outputText" id="resultsText1"
                                            value="Results #{qualificationsSearchDataBean.currRecBegin} to #{qualificationsSearchDataBean.currRecEnd} of #{qualificationsSearchDataBean.totalRecords}" style="font-weight: bold"/>
                        </h:panelGrid>
                        <h:panelGrid styleClass="rt_section_heading" id="resultPagesGrid" width="750" columns="2"
                                       columnClasses="qual_page_lst_col1,qual_page_lst_col2" cellpadding="0">
                             <h:outputText id="pageCntLabel" value="Page |" style="font-weight: bold"/>
                             <h:panelGroup id="pageGroup">
                                  <c:forEach var="pageCnt" begin="1" end="${qualificationsSearchDataBean.totalPages}">
                                       <c:choose>
                                            <c:when test="${pageCnt != qualificationsSearchDataBean.pageSelected}">
                                                 <f:verbatim>');"><c:out value="${pageCnt}"/></a> </f:verbatim>
                                            </c:when>
                                            <c:otherwise>
                                                 <f:verbatim><B><c:out value="${pageCnt}"/></B> </f:verbatim>
                                            </c:otherwise>
                                       </c:choose>
                                            <c:set var="rowCount" scope="page" value="${rowCount + 1}" />
                                            <c:if test ="${pageCnt == 33 || (pageCnt > 33 && rowCount == 31)}">
                                            <f:verbatim><c:out escapeXml="false" value="<BR>"/></f:verbatim>
                                            <c:set scope="page" var="rowCount" value="0" />
                                            </c:if>
                                  </c:forEach>
                             </h:panelGroup>
                        </h:panelGrid>
                        <h:dataTable border="0" cellpadding="2" cellspacing="0"
                                       columnClasses="qual_prs_col_prs_name,qual_prs_col_prs_code,qual_prs_col_status,qual_prs_col_blocked,qual_prs_col_exception,qual_prs_col_frm_name,qual_prs_col_rlt"
                                       headerClass="rt_panelgrid_dtsmallhdg"
                                       rowClasses="rt_list_row_odd,rt_list_row_even"
                                       styleClass="dataTable" id="qualPersonResultTable" width="750"
                                       value="#{qualificationsSearchDataBean.searchResults}" var="personList"
                                       rendered="#{qualificationsSearchDataBean.personQualifications}">
                             <h:column id="prsTablePrsName">
                                  <f:facet name="header">
                                       <h:outputText id="prsTablePrsNameHeading" value="Name" styleClass="rt_table_heading_left"/>
                                  </f:facet>
                                  <h:outputText id="prsTablePrsNameValue" value="#{personList.sle_per_rcg_fmt_n}" styleClass="rt_standard_data_text"/>
                             </h:column>
                             <h:column id="prsTablePrsCode">
                                  <f:facet name="header">
                                       <h:outputText id="prsTablePrsCodeHeading" value="Code" styleClass="rt_table_heading_left"/>
                                  </f:facet>
                                  <h:outputText id="prsTablePrsCodeValue" value="#{personList.agt_c}" styleClass="rt_standard_data_text"
                                                 converter="AdvisorCodeConverter"/>
                             </h:column>
                             <h:column id="prsTableQualification">
                                  <f:facet name="header">
                                       <h:outputText id="prsTableQualificationHeading" value="Qualification Status" styleClass="rt_table_heading_left"/>
                                  </f:facet>
                                  <h:selectOneMenu id="prsTableQualificationValue" value="#{personList.rcg_evt_ptc_sta_c}"
                                                      onchange="javascript: updateQualStat(#{qualificationsSearchDataBean.personQualTable.rowIndex},#{qualificationsSearchDataBean.personQualifications},#{qualificationsSearchDataBean.firmQualifications},#{personList.sle_per_unq_i},'#{personList.sle_per_rcg_fmt_n}',#{personList.rcg_evt_ptc_sta_c},this.value,'#{personList.rcg_evt_blk_f}','#{personList.rcg_evt_exc_f}');">
                                       <f:selectItem itemValue="1" itemLabel="Not Qualified"/>
                                       <f:selectItem itemValue="2" itemLabel="On Schedule"/>
                                       <f:selectItem itemValue="3" itemLabel="Qualified"/>
                                  </h:selectOneMenu>
                             </h:column>
                             <h:column id="prsTableBlocked">
                                  <f:facet name="header">
                                       <h:outputText id="prsTableBlockedHeading" value="Blocked" styleClass="rt_table_heading_left"/>
                                  </f:facet>
                                  <h:selectOneMenu id="prsTableBlockedValue" value="#{personList.rcg_evt_blk_f}"
                                                      onchange="javascript: updateBlockFlag(#{qualificationsSearchDataBean.personQualTable.rowIndex},#{qualificationsSearchDataBean.personQualifications},#{qualificationsSearchDataBean.firmQualifications},#{personList.sle_per_unq_i},'#{personList.sle_per_rcg_fmt_n}',#{personList.rcg_evt_ptc_sta_c},'#{personList.rcg_evt_blk_f}',this.value,'#{personList.rcg_evt_exc_f}');">
                                       <f:selectItem itemValue="Y" itemLabel="Yes"/>
                                       <f:selectItem itemValue="N" itemLabel="No"/>
                                  </h:selectOneMenu>                    
                             </h:column>
                             <h:column id="prsTableException">
                                  <f:facet name="header">
                                       <h:outputText id="prsTableExceptionHeading" value="Exception" styleClass="rt_table_heading_left"/>
                                  </f:facet>
                                  <h:selectOneMenu id="prsTableExceptionValue" value="#{personList.rcg_evt_exc_f}"
                                                 onchange="javascript: updateExceptionFlag(#{qualificationsSearchDataBean.personQualTable.rowIndex},#{qualificationsSearchDataBean.personQualifications},#{qualificationsSearchDataBean.firmQualifications},#{personList.sle_per_unq_i},'#{personList.sle_per_rcg_fmt_n}',#{personList.rcg_evt_ptc_sta_c},'#{personList.rcg_evt_blk_f}','#{personList.rcg_evt_exc_f}',this.value);">
                                       <f:selectItem itemValue="Y" itemLabel="Yes"/>
                                       <f:selectItem itemValue="N" itemLabel="No"/>
                                  </h:selectOneMenu>     
                             </h:column>
                             <h:column id="prsTableFirmName">
                                  <f:facet name="header">
                                       <h:outputText id="prsTableFirmNameHeading" value="Firm Name" styleClass="rt_table_heading_left"/>
                                  </f:facet>
                                  <h:outputText id="prsTableFirmNameValue" styleClass="rt_standard_data_text" value="#{personList.pri_agy_rcg_fmt_n}"/>
                             </h:column>
                             <h:column id="prsTableRelationship">
                                  <f:facet name="header">
                                       <h:outputText id="prsTableRelationshipHeading" value="Relationship" styleClass="rt_table_heading_left"/>
                                  </f:facet>
                                  <h:outputText id="prsTableRelationshipValue" value="#{personList.asc_rlt_typ_des_x}" styleClass="rt_standard_data_text"/>
                             </h:column>
                        </h:dataTable>
                        <h:dataTable border="0" cellpadding="2" cellspacing="0"
                                       columnClasses="qual_frm_col_frm_name,qual_frm_col_frm_code,qual_frm_col_status,qual_frm_col_blocked,qual_frm_col_exception"
                                       headerClass="rt_panelgrid_dtsmallhdg"
                                       rowClasses="rt_list_row_odd,rt_list_row_even"
                                       styleClass="dataTable" id="qualFirmResultTable" width="750"
                                       value="#{qualificationsSearchDataBean.searchResults}" var="firmList"
                                       rendered="#{qualificationsSearchDataBean.firmQualifications}">
                             <h:column id="frmTableFrmName">
                                  <f:facet name="header">
                                       <h:outputText id="frmTableFrmNameHeading" value="Firm Recognition Name" styleClass="rt_table_heading_left"/>
                                  </f:facet>
                                  <h:outputText id="frmTableFrmNameValue" value="#{firmList.pri_agy_rcg_fmt_n}" styleClass="rt_standard_data_text"/>
                             </h:column>
                             <h:column id="frmTableFrmCode">
                                  <f:facet name="header">
                                       <h:outputText id="frmTableFrmCodeHeading" value="Code" styleClass="rt_table_heading_left"/>
                                  </f:facet>
                                  <h:outputText id="frmTableFrmCodeValue" value="#{firmList.pri_agy_c}" styleClass="rt_standard_data_text"/>
                             </h:column>
                             <h:column id="frmTableQualification">
                                  <f:facet name="header">
                                       <h:outputText id="frmTableQualificationHeading" value="Qualification Status" styleClass="rt_table_heading_left"/>
                                  </f:facet>
                                  <h:selectOneMenu id="frmTableQualificationValue" value="#{firmList.pri_agy_qual_sta_c}"
                                                      onchange="javascript: updateQualStat(#{qualificationsSearchDataBean.firmQualTable.rowIndex},#{qualificationsSearchDataBean.personQualifications},#{qualificationsSearchDataBean.firmQualifications},#{firmList.pri_agy_unq_i},'#{firmList.pri_agy_rcg_fmt_n}',#{firmList.pri_agy_qual_sta_c},this.value,'#{firmList.pri_agy_blk_f}','#{firmList.pri_agy_exc_f}');">
                                       <f:selectItem itemValue="1" itemLabel="Not Qualified"/>
                                       <f:selectItem itemValue="2" itemLabel="On Schedule"/>
                                       <f:selectItem itemValue="3" itemLabel="Qualified"/>
                                  </h:selectOneMenu>
                             </h:column>
                             <h:column id="frmTableBlocked">
                                  <f:facet name="header">
                                       <h:outputText id="frmTableBlockedHeading" value="Blocked" styleClass="rt_table_heading_left"/>
                                  </f:facet>
                                  <h:selectOneMenu id="frmTableBlockedValue" value="#{firmList.pri_agy_blk_f}"
                                                      onchange="javascript: updateBlockFlag(#{qualificationsSearchDataBean.firmQualTable.rowIndex},#{qualificationsSearchDataBean.personQualifications},#{qualificationsSearchDataBean.firmQualifications},#{firmList.pri_agy_unq_i},'#{firmList.pri_agy_rcg_fmt_n}',#{firmList.pri_agy_qual_sta_c},'#{firmList.pri_agy_blk_f}',this.value,'#{firmList.pri_agy_exc_f}');">
                                       <f:selectItem itemValue="Y" itemLabel="Yes"/>
                                       <f:selectItem itemValue="N" itemLabel="No"/>
                                  </h:selectOneMenu>                    
                             </h:column>
                             <h:column id="frmTableException">
                                  <f:facet name="header">
                                       <h:outputText id="frmTableExceptionHeading" value="Exception" styleClass="rt_table_heading_left"/>
                                  </f:facet>
                                  <h:selectOneMenu id="frmTableExceptionValue" value="#{firmList.pri_agy_exc_f}"
                                                      onchange="javascript: updateExceptionFlag(#{qualificationsSearchDataBean.firmQualTable.rowIndex},#{qualificationsSearchDataBean.personQualifications},#{qualificationsSearchDataBean.firmQualifications},#{firmList.pri_agy_unq_i},'#{firmList.pri_agy_rcg_fmt_n}',#{firmList.pri_agy_qual_sta_c},'#{firmList.pri_agy_blk_f}','#{firmList.pri_agy_exc_f}',this.value);">
                                       <f:selectItem itemValue="Y" itemLabel="Yes"/>
                                       <f:selectItem itemValue="N" itemLabel="No"/>
                                  </h:selectOneMenu>     
                             </h:column>
                        </h:dataTable>
                   </h:panelGroup>
                   <h:panelGrid id="noPersonResultsGrid" columns="1" width="550" cellpadding="0" rendered="#{qualificationsSearchDataBean.searchResults == null}">
                        <h:outputText id="noPersonResultsMessage" styleClass="rt_standard_data_text" value="No results found." />
                   </h:panelGrid>
              </h:panelGroup>
              <h:commandButton id="updateQualButton" type="submit" value="" style="width: 0px;"
                                  action="#{qualificationsSearchActionBean.updateQualData}"/>
         </h:panelGroup>
         </h:form>
    </f:subview>

  • Handling unique constraint exception

    Hi,
    I have a problem with handling constraint exception. I'm wondering is there a way to get the value that violates unique constraint. Use case is following, user creates document and then adds 50 records and manually enters inventory and serial numbers that should be unique he tries to commit but since he entered let's say inventory number that already exists in database I get exception and I can only show him error message "you've entered non unique inventory or serial numbers" so then he has to go record by record and try to figure where is the mistake. it would be much easier if I could tell him that there's a duplicate inventory and serial number in record number 34. is this possible?
    thanks in advance,
    Tomislav.

    Tomislav,
    May be a good case to use a custom DBTransactionImpl, as detailed [url http://forums.oracle.com/forums/thread.jspa?threadID=700740&tstart=0]here. Something like this, perhaps (just off the top of my head):
      public void postChanges(TransactionEvent te)
        try
          super.postChanges(te);
        catch (DMLConstraintException ex)
          Row r = ex.getEntityRow();
          AttributeDef attrs[] = r.getStructureDef().getAttributeDefs();
          int numAttrs = attrs.length;
          String msg = "Duplicate key found. Primary key values: ";
          for (int i = 0; i < numAttrs; i++)
            if (attrs.isPrimaryKey())
    msg = msg + attrs[i].getName() + ":" + r.getAttribute(i).toString() + " ";
    throw new JboException(msg);
    Note that this code would catch all DML exceptions, not just unique key violations. That would be left as an exercise for the reader ;)
    John

  • How to avoid primary key insert error and pipe those would-be error rows to a separate table?

    Hi All,
    Question: How can I ID duplicate values in a particular column before generating a "Violation of PRIMARY KEY constraint" error?
    Background: this SSIS package pulls rows from a remote server table for an insert to a local table.  The local table is truncated in step 1 of this package.  One of the source columns, "ProductName," is a varchar(50) NOT NULL, with no
    constraints at all.  In the destination table, that column has a primary key constraint.  Even so, we don't expect duplicate primary key inserts due to the source data query.  Nevertheless, I've been
    tasked with identifying any duplicate ProductName values that may try to get inserted, piping them all to a "DuplicateInsertAttempt_ProductName" table, and sending an email to the interested parties.  Since I have no way of knowing which row
    should be imported and which should not, I assume the best method is to pipe all rows with a duplicate ProductName out so somebody else can determine which is right and which is wrong, at which point we'll need to improve the query of the source table.
    What's the proper way to do this?  I assume the "DuplicateInsertAttempt_ProductName" table needs identical schema to the import target table, but without any constraints.  I also assume I must ID the duplicate values before attempting
    the import so that no error is generated, but I'm not sure how to do this.
    Any help would be greatly appreciated.
    Thanks,
    Eric

    agree about preventing a dupe or other error on some inconsequential dimension from killing a data mart load that takes a few hrs to run and is an important reporting system.
    I looked into using the error output before, but i think it came up a bit short...
    This is going from memory from a few years ago, but the columnid that comes out of the error data flow is an internal id for the column in the buffer that can't be easily used to get the column name.
    No 'in flight'/in-process way exists to get the column name via something like thisbuffer.column[columnid].name unfortunately
    In theory, the only way to get the column name was to initialise another version of the package (via loading the .dtsx xml) using the SMO .net libraries. I say in theory because I stopped considering it an option at that point
    And the error code is fairly generic as well if i remember correctly. It's not the error that comes out of the db (Violation of UNIQUE KEY constraint 'x'. Cannot insert duplicate key in object 'dbo.y'. The duplicate key value is (y).)  It's a generic
    'insert failed'/'a constraint failed' type msg.
    I usually leave the default ssis logging to handle all errors (and log them in the sysssislog table), and then I explicitly handle specific exceptions like dupes that I don't want to fail package/parent on error
    Jakub @ Adelaide, Australia Blog

  • Duplicate Unique Key declaration in DDL export

    Using v1.1.2.25 of the product, I performed a DDL export of selected tables and noted in the resulting file that my two Unique Keys were duplicated (created twice). This caused no real problem except a couple of error message that will confuse customers, so I have to manually extract the second declarations. Did I miss something, or is this a bug?

    Define key_element as a key (or unique)! Check the schema specification at http://www.w3.org/TR/xmlschema-1/#cIdentity-constraint_Definitions. If you're up to a challenge translate the specification from W3-ese to a meaningfult language, or take a short cut and read the example in section 3.11.2.
    Support for keys in validation is sometimes spotty, but it's pretty easy to code up your own checks if needed.

Maybe you are looking for