GetColumnCount fails on ResultSetMetaData of PreparedStatement

Help! I am trying to get metadata information of a
PreparedStatement and the getColumnCount keeps failing with
a "ORA-01003 no statement parsed" error. I am using the Oracle
8.1.7 thin driver with Oracle 8.1.6. Sample code is below...
Class.forName("oracle.jdbc.driver.OracleDriver");
String URL = "jdbc:oracle:thin:@Machine:1521:Database";
String UID = "someID";
String Pwd = UID;
Connection conn = DriverManager.getConnection(URL,UID,Pwd);
String sSQL = "Select CompanyName, Phone from shippers where
CompanyName = ?";
PreparedStatement stmt = conn.prepareStatement(sSQL);
ResultSetMetaData rsmd = stmt.getMetaData();
int nCount = rsmd.getColumnCount();
System.out.println("Count = " + Integer.toString(nCount));
I can't fix this since it seems the internal coding of their
drive is wrong! Any ideas or known bugs?

Help! I am trying to get metadata information of a
PreparedStatement and the getColumnCount keeps failing with
a "ORA-01003 no statement parsed" error. I am using the Oracle
8.1.7 thin driver with Oracle 8.1.6. Sample code is below...
Class.forName("oracle.jdbc.driver.OracleDriver");
String URL = "jdbc:oracle:thin:@Machine:1521:Database";
String UID = "someID";
String Pwd = UID;
Connection conn = DriverManager.getConnection(URL,UID,Pwd);
String sSQL = "Select CompanyName, Phone from shippers where
CompanyName = ?";
PreparedStatement stmt = conn.prepareStatement(sSQL);
ResultSetMetaData rsmd = stmt.getMetaData();
int nCount = rsmd.getColumnCount();
System.out.println("Count = " + Integer.toString(nCount));
I can't fix this since it seems the internal coding of their
drive is wrong! Any ideas or known bugs?

Similar Messages

  • Need expert jdbc advice

    I am attempting to create a generic utiltity class for database connection management which will be used in all java applications.
    The requirements are:
    1. The utility class should be able to connect to various types of database (ie. Oracle, DB2, etc).
    2. The utility class will be used in web applications and stand alone java applications.
    3. The utility class should be able to utilize a basic connection or database connection pooling.
    I have created a class that reads properties files to load the type of connection and connection parameters.
    Our team is stuck on one major point. Should the utiltity class create the connection objects in the constructor or within the methods that query the database.
    Any feedback as to improvements to the existing code would be greatly appreciated.
    Are there any good examples for deisgn patterns to be used when creating a database connection manager?
    Here is a sample properties file for connection pooling:
    connection.type=1
    datasource.name=TestDS
    context=com.ibm.websphere.naming.WsnInitialContextFactory
    Here is a sample properties file for a basic connection:
    connection.type=2
    source=jdbc:db2:TESTDB
    user=userID
    password=pw
    driver=COM.ibm.db2.jdbc.app.DB2Driver
    Here is the code for my class:
    package org.vns.util.db;
    import java.sql.*;
    import javax.sql.DataSource;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.naming.NamingException;
    import java.util.*;
    import java.io.*;
    * A generic database connection manager for use in java applications
    * @version 1.0 February 25,2004
    public class DBConnectionManager {
         private Connection conn = null;
    private boolean debuggingOn = false;
         // variables used to instantiate a datasource
         private String dataSourceName = null;
         private String context = null;
         private DataSource dataSource = null;
         // variables used to instantiate a connection object
         private String user = null;
         private String password = null;
         private String driver = null;
         private String source = null;
    // variables used to specify type of connection to be used
    private int connectionType;
    private static final int DATASOURCE = 1;
    private static final int BASIC_CONNECTION = 2;
    * Default constructor
    public DBConnectionManager() {
    * Load the data source, context, source, user, password, and driver
    * from the specified properties file
    * @param String filePath the full path name of the property file
    public void loadProperties(String propertyFile) throws Exception {
    try{
         Properties p = new Properties();
              ResourceBundle resources = null;
         FileInputStream in = new FileInputStream(propertyFile);
              resources = new PropertyResourceBundle(in);
              this.connectionType = Integer.parseInt(resources.getString("connection.type"));
         if (debuggingOn) {
              System.out.println("[INFO] DBConnectionManager loadProperties() Connection type: " + this.connectionType);
         if (this.connectionType == DATASOURCE) {
              this.dataSourceName = resources.getString("datasource.name");     
              this.context = resources.getString("context");
              initDataSource(this.dataSourceName, this.context);
         } else if (this.connectionType == BASIC_CONNECTION) {
              this.source = resources.getString("source");
              this.user = resources.getString("user");
              this.password = resources.getString("password");
              this.driver = resources.getString("driver");
         } else {
              if (debuggingOn) {
                   System.out.println("[ERROR] DBConnectionManager loadProperties() Invalid connection type: " + this.connectionType);
              throw new Exception("Invalid connection type");
    } catch(FileNotFoundException fnfe) {
         if (debuggingOn) {
              System.out.println("[ERROR] DBConnectionManager loadProperties() FileNotFoundException: " + fnfe.getMessage());
         throw new Exception("Can't find the resource file " + propertyFile);
    } catch(IOException ioe) {
         if (debuggingOn) {
              System.out.println("[ERROR] DBConnectionManager loadProperties() IOException: " + ioe.getMessage());
         throw new Exception("Can't find the resource file " + propertyFile);     
    } catch (NamingException ne) {
         if (debuggingOn) {
              System.out.println("[ERROR] DBConnectionManager loadProperties() NamingException: " + ne.getMessage());
         throw new Exception("Can't find the resource file " + propertyFile);     
    * Initialize the datasource
    * @param String source the name of the datasource
    * @param String context the InitialContext to be used for JNDI lookup
    * @throws NamingException if the datasource cannot be looked up in the InitialContext
    private void initDataSource(String source, String context) throws NamingException {
    this.source = source;
    this.context = context;
         try {
              Hashtable ctxHash = new Hashtable();
              ctxHash.put(Context.INITIAL_CONTEXT_FACTORY, this.context);
              InitialContext ic = new InitialContext(ctxHash);
              this.dataSource = (DataSource) ic.lookup(source);
         } catch (NamingException ne) {
              if (debuggingOn) {
              System.out.println("[ERROR] DBConnectionManager initDataSource() NamingException: " + ne.getMessage());
              throw ne;
    * Create a database connection object
    * @throws SQLException if the connection object cannot be created
    private void getConnection() throws SQLException {
    // Load the database driver
    try {
    Class.forName(this.driver);
    } catch (ClassNotFoundException cnfe) {
         if (debuggingOn) {
              System.out.println("[ERROR] DBConnectionManager getConnection() ClassNotFoundException: " + cnfe.getMessage());
         throw new SQLException("ClassNotFoundException occurred while getting connection object");
    // Create a connection
    try {
    this.conn = DriverManager.getConnection(this.source, this.user, this.password);
    } catch(SQLException sqle) {
         if (debuggingOn) {
              System.out.println("[ERROR] DBConnectionManager getConnection() :" + sqle.getMessage());
         throw sqle;
    * Retrieve a connection object from the datasource
    * @return Connection
    * @throws SQLException if the connection cannot be retrieved from the datasource
    private void getDataSourceConnection() throws SQLException {
         try {
              this.conn = this.dataSource.getConnection();
         } catch (SQLException sqle) {
              if (debuggingOn) {
              System.out.println("[ERROR] DBConnectionManager getDataSourceConnection() : " + sqle.getMessage());
              throw sqle;
    * Release the resources associated with the connection object
    * @throws SQLException if connection can not be closed
    public void releaseConnection() throws SQLException {
         try {
    if(this.conn != null && !this.conn.isClosed()) {
    this.conn.close();
    this.conn = null;
    } catch (SQLException sqle) {
         if (debuggingOn) {
              System.out.println("[ERROR] DBConnectionManager releaseConnection() : " + sqle.getMessage());
         throw sqle;
    * Create a prepared statement object
    * @param String sql
    * @throws SQLException if the prepared statement cannot be created
    public PreparedStatement getPreparedStatement(String sql) throws SQLException {
         PreparedStatement pstmt = null;
         try {
              checkConnection();
              pstmt = this.conn.prepareStatement(sql);
         } catch (SQLException sqle) {
              if (debuggingOn) {
              System.out.println("[ERROR] DBConnectionManager getPreparedStatement() : " + sqle.getMessage());
              throw sqle;
         return pstmt;
    * Create a callable statment object
    * @param String sql
    * @throws SQLException if the callable statement cannot be created
    public CallableStatement getCallableStatement(String sql) throws SQLException {
         CallableStatement cstmt = null;
         try {
              checkConnection();
              cstmt = this.conn.prepareCall(sql);
         } catch (SQLException sqle) {
              if (debuggingOn) {
              System.out.println("[ERROR] DBConnectionManager getCallableStatement() : " +sqle.getMessage());
              throw sqle;
         return cstmt;
    * Execute a prepared statement query
    * @param PreparedStatement ps
    * @return ResultSet rs
    * @throws SQLException if the query fails
    public ResultSet executeQuery(PreparedStatement ps) throws SQLException {
         ResultSet rs = null;
         PreparedStatement pstmt = ps;
         if (debuggingOn) {
              System.out.println("Executing prepared statement query");
              System.out.println(pstmt);
         try {
         rs = pstmt.executeQuery();
         } catch (SQLException sqle) {
              if (debuggingOn) {
              System.out.println("[ERROR] DBConnectionManager executeQuery(ps) : " + sqle.getMessage());
              throw sqle;
         return rs;
    * Execute a prepared statement update
    * @param PreparedStatement ps
    * @return boolean result
    * @throws SQLException if the update fails
    public boolean executeUpdate(PreparedStatement ps) throws SQLException {
         PreparedStatement pstmt = ps;
         int result = -1;
         if (debuggingOn) {
              System.out.println("Executing prepared statement update");
              System.out.println(pstmt);
         try {
              result = pstmt.executeUpdate();     
         } catch (SQLException sqle) {
              if (debuggingOn) {
              System.out.println("[ERROR] DBConnectionManager executeUpdate(ps) : " + sqle.getMessage());
              throw sqle;
         if (result == 0) {
              return true;
         } else {
              return false;
    * Execute a callable statement query
    * @param CallableStatement cs
    * @return ResultSet rs
    * @throws SQLException if the query fails
    public ResultSet executeQuery(CallableStatement cs) throws SQLException {
         ResultSet rs = null;
         CallableStatement cstmt = cs;
         if (debuggingOn) {
              System.out.println("Executing callable statement query");
              System.out.println(cstmt);
         try {
         rs = cstmt.executeQuery();
         } catch (SQLException sqle) {
              if (debuggingOn) {
              System.out.println("[ERROR] DBConnectionManager executeQuery(cs) : " + sqle.getMessage());
              throw sqle;
         return rs;
    * Execute a statement query
    * @param String sql
    * @return ResultSet rs
    * @throws SQLException if the query fails
    public ResultSet executeQuery(String sql) throws SQLException {
         ResultSet rs = null;
         Statement stmt = null;
         String queryString = sql + " with ur";
         if (debuggingOn) {
              System.out.println("Executing statement query");
              System.out.println(sql);
         try {
              checkConnection();
              stmt = this.conn.createStatement();
              rs = stmt.executeQuery(queryString);
         } catch (SQLException sqle) {
              if (debuggingOn) {
              System.out.println("[ERROR] DBConnectionManager executeQuery(sql) : " + sqle.getMessage());
              throw sqle;
         return rs;
    * Execute a statement update
    * @param String sql
    * @return boolean
    * @throws SQLException if the update fails
    public boolean executeUpdate(String sql) throws SQLException {
         Statement stmt = null;
         int result = -1;
         if (debuggingOn) {
              System.out.println("Executing statement update");
              System.out.println(sql);
         try {
              checkConnection();
              stmt = this.conn.createStatement();
              result = stmt.executeUpdate(sql);     
         } catch (SQLException sqle) {
              if (debuggingOn) {
              System.out.println("[ERROR] DBConnectionManager executeUpdate(sql) " + sqle.getMessage());
              throw sqle;
         if (result == 0) {
              return true;
         } else {
              return false;
    * Begin a transaction
    * @throws SQLException
    public void beginTrans() throws SQLException {
         if (this.conn != null) {
              this.conn.setAutoCommit(false);
    * Commit a transaction
    * @throws SQLException
    public void commitTrans() throws SQLException {
         if (this.conn != null) {
              this.conn.commit();
    * Rollback a transaction
    * @throws SQLException
    public void rollbackTrans() throws SQLException {
         if (this.conn != null) {
              this.conn.rollback();
    * Set the debugging flag
    * @param debug if true debugging is on otherwise debugging is off
    public void setDebugging(boolean debug) {
         if (debug) {
              debuggingOn = true;
         } else {
              debuggingOn = false;
    private void checkConnection() throws SQLException {
         if (this.conn == null) {
              if (this.connectionType == DATASOURCE) {
                   getDataSourceConnection();
              } else if (this.connectionType == BASIC_CONNECTION) {
                   getConnection();
              } else {
                   if (debuggingOn) {
                   System.out.println("[ERROR] DBConnectionManager getPreparedStatement() Invalid connection type: " + this.connectionType);
                   throw new SQLException("Invalid connection type");
    }

    I must apologize if I have not been clear. Let me re-state this in another way that will hopefully clarify things.
    We have many web based applications and stand alone applications being developed by different teams. Each application needs to connect to a database to retrieve data. This database could be DB2, Oracle, etc.
    rather than having each team develop its own code to access the database for every application being developed, the intention is to create a single utility class that handles database connectivity. Each application could then utilize this common class for accessing a database. An application may utilize connection pooling by using the aplication server's built in connection pool class by defining a datasource in the application server. Another application may just need open a jdbc connection and not make use of connection pooling. In my design, I utilize properties files to specify the type of connection to be used (connection pool or simple jbc) and the parameters needed to create a connection. (i.e the datasource name, context, user id, password, url, etc) If you look at the code I posted in my original message you will see that the executeQuery methods check for an existing connection object. If none exists one is created using the properties read in from the specified properties file. Then a statement object is created, a result set is created and the query is executed. The client is responsible for closing the connection when it is finished with the result set. Some members of the team feel that the connection should be created in the constructor of the utility class NOT in the executeQuery methods. This is the basic point of disagreement. I feel this is not a good practice since the connection object should be created when it is needed and destroyed as soon as possible. Does this explanation make more sense????

  • SOS...about my forum error  code, can u help me?

    I m writing a forum, a difficulty happen to me,
    the code is underside ,
    the "test.Jsp " shows the content of forum,
    the other JAVA files connect Mysql DB, execute the SQL,
    ============the test.jsp==========
    <%@ page
    info= "ABOUT JSP���������������� JSP"
    contentType = "text/html;charset=GB2312"
    import="bbs.BoardlistBean"
    %>
    <jsp:useBean id="bean" scope="request" class="bbs.BoardlistBean" />
    <jsp:useBean id="viewbean" scope="request" class="bbs.viewQueryBean" />
    <jsp:setProperty name="bean" property="*" />
    <%!
    final static String dbTable = "test";
    final static String orderKey = "id DESC";
    final static String[] dbColumn = {"id", "topic", "name", "reply","wwho", "wdate" };
    %>
    <%
    bean.setTable(dbTable);
    bean.setColumns(dbColumn);
    bean.setOrder(orderKey);
    String search_item = request.getParameter("sItem");
    String search_word = request.getParameter("sWord");
    if(search_word != null) search_word = new String(search_word.getBytes("ISO-8859-1"), "GB2312");
    bean.setSearch(search_item, search_word);
    int ipage = 1;
    String pageNo = request.getParameter("pageNo");
    if(pageNo!=null) ipage = Integer.parseInt(pageNo);
    bean.setpage(ipage);
    bean.init();
    %>
    <html>
    <head>
    <title>������������</title>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <link rel="stylesheet" href="../../style.css" type="text/css">
    </head>
    <body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
    <table width="100%" border="0" bordercolor="#000000" cellpadding="1" cellspacing="0" bgcolor="#000000">
    <tr>
    <td>
    <table width="100%" border="0" cellpadding="2" cellspacing="1" bgcolor="#FF9900">
    <tr>
    <td>
    <% if (bean.isEmpty()) { %>
    ***** ����������. *****
    <% } %>
    </td>
    </tr>
    </table>
    </td>
    </tr>
    <tr>
    <td>
    <table width="100%" border="0" cellpadding="1" cellspacing="1" bgcolor="#336633">
    <tr bgcolor="#000000">
    <td width="4%">
    <div align="center"></div>
    </td>
    <td width="3%">
    <div align="center"><font color="#FFFFFF">ID</font></div>
    </td>
    <td width="41%">
    <div align="center"><font color="#FFFFFF">����</font></div>
    </td>
    <td width="13%">
    <div align="center"><font color="#FFFFFF">������</font></div>
    </td>
    <td width="8%">
    <div align="center"><font color="#FFFFFF">���� </font></div>
    </td>
    <td width="8%">
    <div align="center"><font color="#FFFFFF">����</font></div>
    </td>
    <td width="23%">
    <div align="center"><font color="#FFFFFF">����</font></div>
    </td>
    </tr>
    <% while(bean.isAvailable()) { %>
    <% String selContent = bean.getShowedCount()%2==0?"content1":"content2";
    // ������(contents)������������ %>
    <tr bgcolor="#ffffee">
    <td width="4%" height="26">
    <div align="center"><img src="images/folder.gif" width="16" height="14"></div>
    </td>
    <td width="3%" height="26" class=<%=selContent%>>
    <div align="center"><%=bean.getData("id")%></div>
    </td>
    <td width="41%" height="26" class=<%=selContent%>>
    <div align="left"><%=bean.getData("topic")%></div>
    </td>
    <td width="13%" height="26" class=<%=selContent%>>
    <div align="center"><%=bean.getData("name")%></div>
    </td>
    <td width="8%" height="26">
    <div align="center"><%=bean.getData("reply")%></div>
    </td>
    <td width="8%" height="26">
    <div align="center"><%=bean.getData("wwho")%></div>
    </td>
    <td width="23%" height="26">
    <div align="center"><%=bean.getData("wdate")%></div>
    </td>
    </tr>
    <%}%>
    <tr bgcolor="#ffffee">
    <td height="21" width="4%">
    <div align="center"><img src="images/folder.gif" width="16" height="14"></div>
    </td>
    <td height="21" width="3%">
    <div align="center"></div>
    </td>
    <td height="21" width="41%">
    <div align="center">
    <%=orderKey%></div>
    </td>
    <td height="21" width="13%">
    <div align="center"></div>
    </td>
    <td height="21" width="8%">
    <div align="center"></div>
    </td>
    <td height="21" width="8%">
    <div align="center"></div>
    </td>
    <td height="21" width="23%">
    <div align="center">�� ��</div>
    </td>
    </tr>
    </table>
    </td>
    </tr>
    </table>
    <p> <%=bean.getCurrentPage()%>/<%=bean.getLastPage()%>
    <%=bean.gettotal_count()%>
    <%=bean.getShowedCount()%>
    </body>
    </html>
    ===============test.jsp end=========
    ======Dbconnection .java================
    package bbs;
    * Title: bbs designed
    * Description:
    * Copyright: Copyright (c) 2001
    * Company: netcaching
    * @author flasher
    * @version 1.0
    import java.util.*;
    import java.sql.*;
    import java.io.*;
    public class Dbconnection {
    Connection conn =null;
    Statement stmt =null;
    ResultSet rset =null;
    public Dbconnection() { }
    * ��������������������������boolean������������������db.properties
    public boolean openConnection(){
    // ����db.properties
    Properties pro =new Properties();
    try{
    InputStream is =getClass().getResourceAsStream("/db.properties");
    pro.load(is);
    if(is!=null) is.close() ;
    }catch(IOException e){
    System.out.println("db.properties��������������");
    return false;
    // step 2.��/db.properties ��������
    String jdbc=pro.getProperty("driver");
    //String user=pro.getProperty("user");
    //String password=pro.getProperty("password");
    String url = "jdbc:mysql://localhost/java";
    // step 3.��������������������
    System.out.println("Jdbc=["+jdbc+"]");
    System.out.println("url=["+url+"]");
    // step 4.����jdbc����
    try{
    Class.forName(jdbc);
    }catch(ClassNotFoundException e){
    System.out.println("JDBC������������������"+e.getMessage() );
    return false;
    // ����������������
    try{
    this.conn= DriverManager.getConnection(url);
    // ������������������
    //Connection conn= DriverManager.getConnection(url,user,password);
    }catch(SQLException e){
    System.out.println("����������������������"+e.getMessage() );
    return false;
    return true;
    public ResultSet executeQuery(String query) throws SQLException
    stmt =conn.createStatement();
    rset = stmt.executeQuery(query);
    return rset;
    * executeUpdate��������
    *update,delete ,insert
    public void executeUpdate(String query) throws SQLException
    this.stmt =conn.createStatement();
    stmt.executeUpdate(query);
    if (stmt!=null) stmt.close();
    *close������
    public void close() throws SQLException
    if(conn!=null) conn.close();
    if(rset!=null) rset.close();
    if (stmt!=null) stmt.close();
    // ����������������
    protected void finalize () throws Throwable
    this.close();
    =================end==================
    =================viewQueryBean.java========
    * Title: bbs designed
    * Description:
    * Copyright: Copyright (c) 2001
    * Company: netcaching
    * @author flasher
    * @version 1.0
    package bbs;
    import java.sql.*;
    import java.io.*;
    public class viewQueryBean
    {// the viewQueryBean.java code begin
    bbs.Dbconnection dc = null;
    ResultSet rset = null;
    * ������
    public viewQueryBean()
    {dc=new bbs.Dbconnection();
    //����connection
    public boolean openConnection()
    {return dc.openConnection();
    * ����SQL����Select
    public void executeQuery(String query) throws SQLException
    this.rset =dc.executeQuery(query);
    *����insert ,update, delete����
    public void executeUpdate(String query) throws SQLException
    dc.executeUpdate(query);
    /*******************************************************8
    *��������Column�� ����
    public int getColumnCount() throws SQLException
    ResultSetMetaData rsmd = rset.getMetaData();
    return rsmd.getColumnCount() ;
    * ����������������Column������
    public String getColumnName(int index) throws SQLException
    ResultSetMetaData rsmd = rset.getMetaData();
    return rsmd.getColumnName(index);
    *����Column index��������
    public String getData(int index) throws SQLException
    return rset.getString(index).trim() ;
    * ����column ��������������
    public String getData(String columnName) throws SQLException
    return rset.getString(columnName).trim();
    *��resultset������������������������
    public boolean next() throws SQLException
    return rset.next();
    * ��������
    public void close() throws SQLException
    {if (rset!=null) rset.close();
    if (dc!=null) dc.close() ;
    /*****************************8
    * ����������������������
    public void finalize() throws Throwable
    close();
    // the all viewQueryBean.java code is end
    =========viewQueryBean.java==============
    package bbs;
    * Title: bbs designed
    * Description:
    * Copyright: Copyright (c) 2001
    * Company: netcaching
    * @author flasher
    * @version 1.0
    import java.sql.*;
    import java.util.*;
    import bbs.viewQueryBean;
    * ��������������������
    * ����������������������������������������������������������
    public class BoardlistBean
    // ����������
    // ������wrapper class ����
    private viewQueryBean viewquery = null;
    // ��
    private String table;
    // column
    private String [] columns;
    //������
    private String search_word;
    // ��������
    private String search_item;
    // order-key
    private String order_key;
    //������������ current_page_num0
    private int current_page_num;
    // ����������������������
    private int no_row =15;
    //������������������true
    private boolean isEmpty;
    // ����������
    private int total_count;
    // ��������
    private int total_page;
    //������������������
    private int showed_count =0;
    ��������
    public BoardlistBean()
    viewquery =new bbs.viewQueryBean ();
    viewquery.openConnection();
    /****************************************************************************8
    *********************** ������������������************************************
    ***********************************************************************8****/
    public void setTable (String dbTable)
    this.table= dbTable;
    // ����������������������
    public void setColumns(String[] columns)
    this.columns =columns ;
    // ����������������������
    public void setOrder(String order_key)
    this.order_key=order_key;
    // ����������������������������
    public void setpage(int page)
    this.current_page_num = page;
    *��������������������������������������DB��������
    public void setSearch(String search_item,String search_word)
    this.search_item =search_item ;
    this.search_word =search_word ;
    *����bean������
    public void init()
    try {
    // ��������������������������������������������
    initCount();
    // ��������SQL����Query����
    String query =makeQuery();
    //3. ������������sql query����������������������
    initData(query);
    // 4.��ResultSet ����������������������
    getPoint_of_ResultSet();
    }catch(Exception e)
    System.out.println("����bean������������������"+e);
    * ������������������������
    private void initCount()
    StringBuffer query =new StringBuffer();
    query.append("SELECT COUNT(*) FROM " + this.table);
    if (this.search_item != null&& !this.search_item .equals(""))
    query.append("WHERE" + this.search_item + "like '%" + this.search_word + "%'" );}
    // ��������������������
    try{
    // ����������������
    viewquery.executeQuery(query.toString());
    if (viewquery.next() ){
    //��������������
    this.total_count =Integer.parseInt(viewquery.getData(1) );
    // ����������������isEmpty������true
    if(total_count == 0) isEmpty=true;
    // ��������������������������1����
    this.total_page =total_count / no_row + 1;
    if ((this.total_count % this.no_row )== 0 ) {
    this.total_page =this.total_page -1;
    } catch(SQLException e)
    {System.out.println("����������������������"+e);
    // ����������������������������������������������
    private String makeQuery()
    StringBuffer query = new StringBuffer();
    query.append("select");
    // ����������������field��������������������
    for (int i=0;i < this.columns.length ; i++){
    query.append(columns);
    if (i!=this.columns.length -1){
    query.append(",");
    // ��������������������������
    query.append("from"+ this.table);
    // ��������������������
    if (this.search_item != null && !this.search_item.equals("") ){
    query.append("where");
    query.append(this.search_item + "like'%" + this.search_word + "%'") ;
    // ����������������������
    if (this.order_key !=null && !this.order_key .equals(""));
    {query.append("order by " + this.order_key ) ;
    //������������sql����
    return query.toString() ;
    *��sql������������������
    private void initData (String query) throws SQLException
    try
    {viewquery.executeQuery(query);
    }catch (SQLException e){
    System.out.println("����:" + e);
    *��������������������������������ResultSet������������������
    private void getPoint_of_ResultSet() throws SQLException
    for(int i=1; i < current_page_num; i++){
    for (int j=0;j < no_row; j++){
    viewquery.next() ;
    *����������������������Result Set��������������������������������������������������������
    public String getData(String columnName) throws SQLException
    return viewquery.getData(columnName) != null? viewquery.getData(columnName):" ";
    *����������������Record set��������������������������
    *����������������������������
    public String getData(int index) throws SQLException
    return viewquery.getData(index) != null? viewquery.getData(index): " " ;
    *1.����������������������������������������true
    *2.��ResultSet��������������������������
    public boolean isAvailable() throws SQLException
    if ( viewquery != null && viewquery.next() && showed_count++ < no_row)
    return true;
    return false;
    * ������������������true������
    public boolean isEmpty()
    { return isEmpty;
    * ����������������������
    public int getCurrentPage()
    return this.current_page_num ;
    * ��������������������
    public int getLastPage()
    return this.total_page ;
    *��������������
    public int gettotal_count()
    return this.total_count;
    *��������������������������
    public int getShowedCount()
    return this.showed_count ;
    * ������������
    public String getSearchItem()
    return this.search_item;
    * ����������������
    public String getSearchword()
    return this.search_word ;
    * ��������
    protected void finalize() throws Throwable
    if (viewquery != null)
    { viewquery.close();
    //����������

    the difficulty is :
    the "test.jsp" does not show the content in Mysql db
    but,I can see that : There are the tab of "seven row" in the mysql db, but current page is none,
    why,
    can u help me to check the Code error?
    Thanks very mach!!!!
    my email is [email protected]

  • Failed to Load Oracle.jdbc.PreparedStatement

    Hi all,
    My application says
    "Failed to Load either oracle.jdbc.PreparedStatement or oracle.jdbc.driver.PreparedStatement .
    I have oracle driver in <server-instance>/lib directory.
    Anybody has an idea about this ?
    Thanks

    Hi,
    Here is the server.log meassage at fine Level
    11/Mar/2003:09:06:17] FINE (20766): Status to be set : 0
    [11/Mar/2003:09:06:17] FINE (20766): Invoked receivedReply()
    [11/Mar/2003:09:06:17] FINE (20766): ---SQLPersistenceManagerFactory: dbname = Oracle.[11/Mar/2003:09:06:17] FINE (20766): <-> DBVendorType(), vendorName = [ Oracle] propertyName: oracle short name: ORACLE.
    [11/Mar/2003:09:06:17] FINE (20766): --> DBVendorType.initialize().
    [11/Mar/2003:09:06:17] FINE (20766): --> DBVendorType.load() - resourceName: com/sun/jdo/spi/persistence/support/sqlstore/database/SQL92.properties , override: false.
    [11/Mar/2003:09:06:17] FINE (20766): --> DBVendorType.load() - resourceName: com/sun/jdo/spi/persistence/support/sqlstore/database/ORACLE.properties , override: false.
    [11/Mar/2003:09:06:17] FINE (20766): --> DBVendorType.load() - resourceName: .tpersistence.properties , override: true.
    [11/Mar/2003:09:06:17] FINE (20766): <-> DBVendorType.overrideProperties() - NONE.
    [11/Mar/2003:09:06:17] INFO (20766): Failed to load either oracle.jdbc.OraclePreparedStatement or oracle.jdbc.driver.OraclePreparedStatement. Oracle specific optimization will be disabled.
    [11/Mar/2003:09:06:17] FINE (20766): <-- DBVendorType.initialize().
    [11/Mar/2003:09:06:17] FINE (20766): ---SQLStoreManager: vendor type = ORACLE.
    [11/Mar/2003:09:06:18] FINE (20766): initializeServerLogger: javax.enterprise.resource.jdo.transaction com.sun.jdo.spi.persistence.support.sqlstore.Bundle null
    [11/Mar/2003:09:06:18] FINE (20766): initializeServerLogger: javax.enterprise.resource.jdo.transaction com.sun.jdo.spi.persistence.support.sqlstore.Bundle FINE

  • Code using PreparedStatement.executeUpdate failing in stress test

    Hello,
    I've just recently learned how to use J-Meter and have been performing tests on my programs. One of which performs the following:
    1. Read user data using a simple SELECT password FROM users where userid = 'xxx'
    2. When authenticated, runs an immediate update using value binding via PreparedStatement.executeUpdate() which is really just updating the lastlogin column of the same table with the current date.
    My application servlet is running on Glassfish and uses a jdbc connection pool defined on it. The problem is that at about 200 concurrent executions per second of the process described above, PreparedStatement.executeUpdate() returns 0 instead of 1 at around 20% of the time. The Glassfish server is on a Sunfire X2100 platform running solaris 10 and has 2 gb ram, while the database on the other end is a Oracle 10G R2 on a PC clone Pentium 4 with 512mb ram also running on Solaris 10.
    This failure rate is too high so what can I do to reduce it?
    Thanks in advance,
    - Owen

    Owen_Ilagan wrote:
    Hello,
    200 per second? That's a pretty decent load. Well, I was told that that was the acceptable load for the same app running on a standard pentium 4 machine I don't see how you can talk about "acceptable load" for a given piece of hardware without taking into consideration what the application is doing. A read-mostly web app will be very different from one that's transaction and/or computation intensive.
    so I would like to get better performance from this Sunfire X2100. Unless of course that figure is wrong... I've just recently started learning to scale my java applications and figuring out how to fine-tune the servers my programs would be running on. I think this is a good article:
    http://www.javaworld.com/javaworld/jw-06-2006/jw-0619-tuning.html?page=1
    I don't know where that setting is on Glassfish so its on default. Is there an optimal setting for it? I run JMeter on a different machine. Good - your clients aren't competing for memory with the server that way.
    Again, I dont seem to recall seeing a setting like that on Glassfish. The current pool setting is at Initial size 8, maximimum size of 32. I already tried increasing it to 200+ but there was no noticeable improvement so I set it back to 32. That's sufficient. You don't need 1 connection per user because of the pool. I use 5:1 as a rule of thumb.
    Threads in my worker pool? Hmmm, let me just clarify that I'm running a rather simple web servlet application using the 1.5 SDK and its not a full-blown EE application. Doesn't matter. There is one thread per incoming request. If the worker thread pool is exhausted the requests are queued up. There's an optimal setting for that, too.
    Well, I dont run into any SQL errors so there is no stack trace to log. Huh? You mean your PreparedStatement can return 0 and not have an exception?
    What happens if you try to UPDATE a user record that isn't in the database? Is that possible?
    When PreparedStatement.executeUpdate() is called, it returns 0 instead of 1. I did put the call inside a try-catch to handle java.sql.SQLExceptions but its not throwing one.Interesting. See question above.
    I hope so.Difficult, but you sound like you're doing a rigorous job.
    %

  • Failing to delete, edit from resultset

    Please help me gurus, I am failing to insert and delete resultset data from ms access database. Invalid cursor state is given when I try to run delete button.
    class Application
    { public static void main(String argv[])
      { Application dummy = new Application();
    //Instance variables
      private GUI gui;
    import javax.swing.table.*;
    import java.sql.*;
    import java.util.*;
    import java.lang.Exception;
    import javax.swing.*;
    class Model extends AbstractTableModel
      //Variables/constants for model
      private Application application;
      Connection con;
      Statement stmt;
      //PreparedStatement pstmt;
      ResultSet rs;
      ResultSetMetaData rmd;
      List rows = new ArrayList();
      List columnNames = new ArrayList();
      List dummy;
      //Constructor
      public Model(Application a)
        { application = a;
      //public Model()
      { try
        { Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
        catch(ClassNotFoundException e){System.out.println(e.getMessage());}
        try
        { con = DriverManager.getConnection("jdbc:odbc:jdbcExample");
          stmt = con.createStatement();
          rs = stmt.executeQuery("SELECT * FROM birthdays ");
          rmd = rs.getMetaData();
          for (int i = 1; i <= rmd.getColumnCount();i++)
          { columnNames.add((String)rmd.getColumnName(i));
          while(rs.next())
          { List cols = new ArrayList();
            for(int col = 1; col <= columnNames.size(); col++)
            { cols.add(rs.getString(col));
            rows.add(cols);
        catch(SQLException e){System.out.println(e);}
      //public instance methods for AbstractTableModel
      public int getRowCount()
      { return rows.size();
      public int getColumnCount()
      { dummy = (List)rows.get(0);
        return dummy.size();
      public Object getValueAt(int row, int col)
      { dummy = (List)rows.get(row);
        return dummy.get(col);
      public String getColumnName(int col)
      { return (String)columnNames.get(col);
      public void newPerson() {
         //Connection con = DriverManager.getConnection
         try {
                   ResultSet rs = stmt.executeQuery
                   ("SELECT * FROM birthdays WHERE familyName LIKE '%ro%' ");
               while (rs.next())
               { String entry = rs.getString("givenName") +
                 rs.getString("familyName") +
            rs.getString("birthday");
         } catch( SQLException se ) { System.out.println( se ); }
         public void deletePerson()
         try{
         rs.deleteRow() ;//throws SQLException;
              catch( SQLException se ) { System.out.println( se ); }
              Application dummy= new Application();
         public void addText(int column,int row){
         public void givenNameSort(){
              try {
              ResultSet rs = stmt.executeQuery
                             ("SELECT givenName FROM birthdays");
         catch( SQLException se ) { System.out.println( se ); }
         public void lastNameSort(){
         try {
         ResultSet rs = stmt.executeQuery
                                       ("SELECT * FROM birthdays order by givenName");
         catch( SQLException se ) { System.out.println( se ); }
         public void dateOfBirthSort(){
              try {
         ResultSet rs = stmt.executeQuery
                                  ("SELECT * FROM birthdays WHERE familyName order by to_date(givenname,'MMYY' ");
         catch( SQLException se ) { System.out.println( se ); }
         public void saveChanges(){
      private Model model;
    // Constructor
      public Application()
        model = new Model(this);
         gui = new GUI(this);
    //Interface methods
      public void newPerson()
      { model.newPerson();
      public void deletePerson()
      { model.deletePerson();
      public void editPerson(int column,int row)
      { model.addText(column,row);
      public void givenNameSort()
      { model.givenNameSort();
      public void lastNameSort()
      { model.lastNameSort();
      public Model getModel() {
           return model;
      public void dateOfBirthSort()
      { model.dateOfBirthSort();
      public void saveChanges()
      { model.saveChanges();
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    class GUI
    //Instance variables
      private Application application;
      private Model model;
    //GUI components
      private JButton helpButton = new JButton("Help");
      private JButton newPersonButton = new JButton("New Person");
      private JButton deletePersonButton = new JButton("Delete Person");
      private JButton editPersonButton = new JButton("Edit Person");
      private JButton givenNameSortButton = new JButton("Sort Givename");
      private JButton lastNameSortButton = new JButton("Sort Lastname");
      private JButton dateOfBirthSortButton = new JButton("Sort MoB");
      private JButton saveChangesButton = new JButton("Save Changes");
      private JTextField givenNameTF   = new JTextField(12);
      private JTextField lastNameTF    = new JTextField(6);
      private JTextField addressTF        = new JTextField(20);
      private JLabel wordCountLabel = new JLabel("Word count: 0");
      //private JTextArea wordList = new JTextArea(
      //private JTable dbTable = new JTable(Model());
         private JTable dbTable;
    //Panels, Panes and Boxes
      private Box mainBox    = new Box(BoxLayout.X_AXIS);
      private Box controlBox = new Box(BoxLayout.Y_AXIS);
      //private Panel inputBox = new Panel();
      //private JScrollPane scrollingWordList; // to make wordList scroll
      private JScrollPane scrollTable;
    //Window.
      private JFrame frame = new JFrame("JTable and TableModel");
      private Container pane = frame.getContentPane();
    //Constructor
      public GUI( Application a)
      { this.application = a;
         dbTable = new JTable( application.getModel() );
           scrollTable = new JScrollPane(dbTable,
          JScrollPane.VERTICAL_SCROLLBAR_ALWAYS,
          JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
        pane.add(scrollTable);
    //   pane.add(inputBox);
        controlBox.add(new JLabel(" "));
        //inputBox.setLayout(new GridLayout(4, 2));
             controlBox.add(helpButton);
             controlBox.add(new JLabel(" "));
             controlBox.add(newPersonButton);
             controlBox.add(deletePersonButton);
             controlBox.add(new JLabel(" "));
             controlBox.add(editPersonButton);
             controlBox.add(new JLabel(" "));
          //   controlBox.add(wordCountLabel);
             controlBox.add(new JLabel(" "));
             controlBox.add(givenNameSortButton);
             controlBox.add(lastNameSortButton);
             controlBox.add(dateOfBirthSortButton);
             controlBox.add(new JLabel(" "));
             controlBox.add(saveChangesButton);
             controlBox.add(new JLabel(" "));
    //         inputBox.add(givenNameTF);
    //         inputBox.add(lastNameTF);
    //         inputBox.add(addressTF);
             newPersonButton.addActionListener(new NewPersonButtonListener());
          frame.addWindowListener(new WindowClose());
             helpButton.addActionListener(new HelpButtonListener());*/
              deletePersonButton.addActionListener(new DeletePersonButtonListener());
              editPersonButton.addActionListener(new EditPersonButtonListener());
              givenNameSortButton.addActionListener(new GivenNameSortButtonListener());
              lastNameSortButton.addActionListener(new LastNameSortButtonListener());
              dateOfBirthSortButton.addActionListener(new DateOfBirthSortButtonListener());
              saveChangesButton.addActionListener(new SaveChangesButtonListener());
        mainBox.add(controlBox);
        mainBox.add(scrollTable);
    //     mainBox.add(inputBox);
        pane.add(mainBox);
        frame.addWindowListener(new FrameListener());
        frame.setLocation(100, 100);
        frame.setSize(300, 150);
        frame.setResizable(true);
        frame.setVisible(true);
        frame.pack();
    //Instance methods
    //Listeners
      class FrameListener extends WindowAdapter
      { public void windowClosing(WindowEvent evt)
        { System.exit(0);
        class NewPersonButtonListener implements ActionListener
        { public void actionPerformed(ActionEvent evt)
          { application.newPerson();
        class DeletePersonButtonListener implements ActionListener
             { public void actionPerformed(ActionEvent evt)
               { application.deletePerson();
        class EditPersonButtonListener implements ActionListener
                  { public void actionPerformed(ActionEvent evt)
                    { application.editPerson(1,1);
        class GivenNameSortButtonListener implements ActionListener
                  { public void actionPerformed(ActionEvent evt)
                    { application.givenNameSort();
        class LastNameSortButtonListener implements ActionListener
                  { public void actionPerformed(ActionEvent evt)
                    { application.lastNameSort();
        class DateOfBirthSortButtonListener implements ActionListener
                  { public void actionPerformed(ActionEvent evt)
                    { application.dateOfBirthSort();
        class SaveChangesButtonListener implements ActionListener
                  { public void actionPerformed(ActionEvent evt)
                    { application.saveChanges();
      }

    My observations:
    * I cannot see your resultset being declared as updatable anywhere.
    * You should print out the stack trace while developing an application. It is usually more informative than just printing the exception message.
    * Your JDBC resources are not being handled properly.
    The first observation pertains to the problem at hand, I suppose.

  • JDBC Update Failed in JTable Interface

    A connection is established to database and the JTable gets the details from database and displays it in the form of a JTable as normal. When i edit just one cell, the update is processed successfully, however when try to update second cell on that particular table, the update would fail. It seems that the second update doesnt actually generate a SQL update statement to execute on database. If anyone has come across such a problem, could you please let me know what i am doing wrong here. I am using an instance of this class to create each JTable on my GUI:
    import javax.swing.JTable;
    import javax.swing.JScrollPane;
    import javax.swing.JFrame;
    import javax.swing.SwingUtilities;
    import javax.swing.JOptionPane;
    import java.awt.*;
    import java.awt.event.*;
    import java.util.Vector;
    import java.sql.*;
    import javax.swing.table.AbstractTableModel;
    import javax.swing.event.TableModelEvent;
    public class TableGen extends JFrame {
    public JTable table1;
    public JScrollPane scrollPane;
    private boolean DEBUG = true;
    public TableGen(String squery) {
    JDBCAdapter tabl = new JDBCAdapter("jdbc:odbc:ereg", "sun.jdbc.odbc.JdbcOdbcDriver",
    null,null);
    tabl.executeQuery(squery);
    table1 = new JTable(tabl);
    table1.setPreferredScrollableViewportSize(new Dimension(500, 70));
    //Create the scroll pane and add the table to it.
    scrollPane = new JScrollPane(table1);
    //Add the scroll pane to this window.
    class JDBCAdapter extends AbstractTableModel {
    Connection connection;
    Statement statement;
    ResultSet resultSet;
    String[] columnNames = {};
    Vector          rows = new Vector();
    ResultSetMetaData metaData;
    public JDBCAdapter(String url, String driverName,
    String user, String passwd) {
    try {
    Class.forName(driverName);
    System.out.println("Opening db connection");
    connection = DriverManager.getConnection(url, user, passwd);
    statement = connection.createStatement();
    catch (ClassNotFoundException ex) {
    System.err.println("Cannot find the database driver classes.");
    System.err.println(ex);
    catch (SQLException ex) {
    System.err.println("Cannot connect to this database.");
    System.err.println(ex);
    public void executeQuery(String query) {
    if (connection == null || statement == null) {
    System.err.println("There is no database to execute the query.");
    return;
    try {
    resultSet = statement.executeQuery(query);
    metaData = resultSet.getMetaData();
    int numberOfColumns = metaData.getColumnCount();
    columnNames = new String[numberOfColumns];
    // Get the column names and cache them.
    // Then we can close the connection.
    for(int column = 0; column < numberOfColumns; column++) {
    columnNames[column] = metaData.getColumnLabel(column+1);
    // Get all rows.
    rows = new Vector();
    while (resultSet.next()) {
    Vector newRow = new Vector();
    for (int i = 1; i <= getColumnCount(); i++) {
         newRow.addElement(resultSet.getObject(i));
    rows.addElement(newRow);
    // close(); Need to copy the metaData, bug in jdbc:odbc driver.
    fireTableChanged(null); // Tell the listeners a new table has arrived.
    catch (SQLException ex) {
    System.err.println(ex);
    public void close() throws SQLException {
    System.out.println("Closing db connection");
    resultSet.close();
    statement.close();
    connection.close();
    protected void finalize() throws Throwable {
    close();
    super.finalize();
    // Implementation of the TableModel Interface
    // MetaData
    public String getColumnName(int column) {
    if (columnNames[column] != null) {
    return columnNames[column];
    } else {
    return "";
    public Class getColumnClass(int column) {
    int type;
    try {
    type = metaData.getColumnType(column+1);
    catch (SQLException e) {
    return super.getColumnClass(column);
    switch(type) {
    case Types.CHAR:
    case Types.VARCHAR:
    case Types.LONGVARCHAR:
    return String.class;
    case Types.BIT:
    return Boolean.class;
    case Types.TINYINT:
    case Types.SMALLINT:
    case Types.INTEGER:
    return Integer.class;
    case Types.BIGINT:
    return Long.class;
    case Types.FLOAT:
    case Types.DOUBLE:
    return Double.class;
    case Types.DATE:
    return java.sql.Date.class;
    default:
    return Object.class;
    public boolean isCellEditable(int row, int column) {
    return true;
    public int getColumnCount() {
    return columnNames.length;
    // Data methods
    public int getRowCount() {
    return rows.size();
    public Object getValueAt(int aRow, int aColumn) {
    Vector row = (Vector)rows.elementAt(aRow);
    return row.elementAt(aColumn);
    public String dbRepresentation(int column, Object value) {
    int type;
    if (value == null) {
    return "null";
    try {
    type = metaData.getColumnType(column+1);
    catch (SQLException e) {
    return value.toString();
    switch(type) {
    case Types.INTEGER:
    case Types.DOUBLE:
    case Types.FLOAT:
    return value.toString();
    case Types.BIT:
    return ((Boolean)value).booleanValue() ? "true" : "false";
    case Types.DATE:
    return value.toString(); // This will need some conversion.
    default:
    return "'"+value.toString()+"'";
    public void setValueAt(Object value, int row, int column) {
    try {
    String tableName = metaData.getTableName(column+1);
    // Some of the drivers seem buggy, tableName should not be null.
    if (tableName == null) {
    System.out.println("Table name returned null.");
    String columnName = getColumnName(column);
    String query =
    "UPDATE "+tableName+
    " SET "+columnName+" = "+dbRepresentation(column, value)+
    " WHERE ";
    // We don't have a model of the schema so we don't know the
    // primary keys or which columns to lock on. To demonstrate
    // that editing is possible, we'll just lock on everything.
    for(int col = 0; col<getColumnCount(); col++) {
    String colName = getColumnName(col);
    if (colName.equals("")) {
    continue;
    if (col != 0) {
    query = query + " AND ";
    query = query + colName +" = "+
    dbRepresentation(col, getValueAt(row, col));
    System.out.println(query);
    statement.executeUpdate(query);
    catch (SQLException e) {
    //e.printStackTrace();
    System.err.println("Update failed");
    Vector dataRow = (Vector)rows.elementAt(row);
    dataRow.setElementAt(value, column);
    JScrollPane returnTabl()
    { return scrollPane;

    the setValueAt() method generate the SQL according to
    the selection on the JTable. The second update doesnt
    even generate any SQL query as it should always print
    it out in DOS even if update fails.there is only two possibilites remaining.
    1) there is a problem with the loop. seems unlikely.
    2) the setValueAt is not being called for some other reason.
    why don't you put some more lines to help you see what is happening.... some suggestions.
    uncomment the e.printStackTrace(); line
    put a System.out line at the start of the setValueAt method and through the iterations of the loop.

  • My CLOB insert with PreparedStatements WORKS but is SLOOOOWWW

    Hi All,
    I am working on an application which copies over a MySQL database
    to an Oracle database.
    I got the code to work including connection pooling, threads and
    PreparedStatements. For tables with CLOBs in them, I go through the
    extra process of inserting the CLOBs according to Oracle norm, i.e.
    getting locator and then writing to that:
    http://www.oracle.com/technology/sample_code/tech/java/sqlj_jdbc/files/advanced/LOBSample/LOBSample.java.html (Good Example for BLOBs, CLOBs)
    However, for tables with such CLOBs, I only get a Record per second insert
    of about 1/sec!!! Tables without CLOBs (and thus, without the round-about-way)
    of inserting CLOBs are approx. 10/sec!!
    How can I improve the speed of my clob inserts / improve the code? At the moment, for
    a table of 30,000 records (with CLOBs) it takes about 30,000 which is 8 hours!!!!
    Here is my working code, which is run when my application notices that the table has
    CLOBs. The record has already been inserted with all non-clob fields and the "EMPTY_BLOB()"
    blank for the CLOB. The code then selects that row (the one just inserted), gets a handle on the
    EMPTY_BLOB location and writes the my CLOB content (over 4000 characters) to that handles
    and then closes the handle. At the very end, I do conn.commit().
    Any tips for improving speed?
    conn.setAutoCommit(false);
    * This first section is Pseudo-Code. The actual code is pretty straight
    * forward. (1) I create the preparedStatement, (2) I go record by record
    * - for each record, I (a) loop through each column and run the corresponding
    * setXXX to set the preparedStatement parameters, (b) run
    * preparedStatement.executeUpdate(), and (c) if CLOB is present, run below
    * actual code.
    * During insertion of the record (executeUpdate), if I notice that
    * a Clob needs to be inserted, I insert a "EMPTY_CLOB()" placeholder and set
    * the flag "clobInTheHouse" to true. Once the record is inserted, if "clobInTheHouse"
    * is actually "true," I go to the below code to insert the Blob into that
    * newly created record's "EMPTY_CLOB()" placeholder
    // clobSelect = "SELECT * FROM tableName WHERE "uniqueRecord" LIKE '1'
    // I create the above for each record I insert and have this special uniqueRecord value to
    // identify what record that is so I can get it below. clobInTheHouse is true when, where I
    // insert the records, I find that there is a CLOB that needs to be inserted.
    if(clobInTheHouse){
         ResultSet lobDetails = stmt.executeQuery(clobSelect);
         ResultSetMetaData rsmd = lobDetails.getMetaData();
         if(lobDetails.next()){
              for(int i = 1; i <= rsmd.getColumnCount(); i++){
                 // if column name matches clob name, then go and do the rest
                   if(clobs.contains(rsmd.getColumnName(i))){
                        Clob theClob = lobDetails.getClob(i);
                        Writer clobWriter = ((oracle.sql.CLOB)theClob).getCharacterOutputStream();
                        StringReader clobReader = new StringReader((String) clobHash.get(rsmd.getColumnName(i)));
                        char[] cbuffer = new char[30* 1024]; // Buffer to hold chunks of data to be written to Clob, the slob
                        int nread = 0;
                        try{
                             while((nread=clobReader.read(cbuffer)) != -1){
                                  clobWriter.write(cbuffer,0,nread);
                        }catch(IOException ioe){
                           System.out.println("E: clobWriter exception - " + ioe.toString());
                        }finally{
                             try{
                                  clobReader.close();
                                  clobWriter.close();
                                  //System.out.println("   Clob-slob entered for " + tableName);
                             }catch(IOException ioe2){
                                  System.out.println("E: clobWriter close exception - " + ioe2.toString());
         try{
              stmt.close();
         }catch(SQLException sqle2){
    conn.commit();

    Can you use insert .. returning .. so you do not have to select the empty_clob back out.
    [I have a similar problem but I do not know the primary key to select on, I am really looking for an atomic insert and fill clob mechanism, somone said you can create a clob fill it and use that in the insert, but I have not seen an example yet.]

  • Failed to initialize the orb--please reply its urgent

    hi im using a stand alone java application to access a jndi data source configured on websphere 6.1
    im getting the following error
    failed to initialize the ORB...
    most of the solutions i got suggest to change from sun jdk to ibm jdk.BUT BUT how do we do that and what are the steps to be followed.
    he code im using is given below:
    //WebsphereJNDI.java
    import java.sql.*;
    import java.util.*;
    import javax.sql.*;
    import javax.naming.*;
    import javax.rmi.*;
    public class WebSphereJNDI
    private String websphere_server;
    private String jndi_datasource;
    private String sql_query;
    WebSphereJNDI(String serverpath, String jndiname, String query)
    websphere_server = serverpath;
    jndi_datasource = jndiname;
    sql_query = query;
    public ResultSet get_data() throws Exception
    Hashtable env = new Hashtable();
    env.put(Context.INITIAL_CONTEXT_FACTORY, "com.ibm.websphere.naming.WsnInitialContextFactory");
    env.put(Context.PROVIDER_URL, websphere_server);
    InitialContext ctx = new InitialContext(env);
    DataSource ds = (DataSource) ctx.lookup(jndi_datasource);
    Connection conn = ds.getConnection();
    Statement stm = conn.createStatement();
    ResultSet res = stm.executeQuery(sql_query);
    // moving cursor to first row
    res.next();
    return res;
    // ResultSetTester.java
    import java.sql.*;
    import java.util.*;
    import javax.sql.*;
    import javax.naming.*;
    import javax.rmi.*;
    public class ResultSetTester {
    public static void main(String[] args) throws Exception {
    WebSphereJNDI test = new WebSphereJNDI(
    "http://hostname:port no.", "jdbc/mydatasource",
    "SELECT * FROM pubs.dbo.authors");
    System.out.println(dump_data(test.get_data()));
    public static String dump_data(java.sql.ResultSet rs)
    throws Exception {
    int rowCount = 0;
    String result = "";
    result += "<P ALIGN='center'><TABLE BORDER=1>";
    ResultSetMetaData rsmd = rs.getMetaData();
    int columnCount = rsmd.getColumnCount();
    // table header
    result += "<TR>";
    for (int i = 0; i < columnCount; i++) {
    result += "<TH>" +
    rsmd.getColumnLabel(i + 1) + "</TH>";
    result += "</TR>";
    // the data
    while (rs.next()) {
    rowCount++;
    result += "<TR>";
    for (int i = 0; i < columnCount; i++) {
    result += "<TD>" +
    rs.getString(i + 1) + "</TD>";
    result += "</TR>";
    result += "</TABLE></P>";
    return result;
    Im an amateur...Please help its urgent

    Thanks Anuj.
    We use OSB apps (exported as jars only).
    We place the jars in domain/lib to be available for all services in this domain.
    Is there another place we can put our jars in it?? and how can we solve the problem of soa infra with using Spring 3.2 ??
    Thanks in advance.

  • Failed to load JDBC driver

    I am trying to run a program and keep getting the error Failed to load JDBC driver. java.lang.ClassNotFoundException
    How can I correct this?

    I was just trying to execute this example from Deitel's Java book.
    import java.awt.*;
    import java.sql.*;
    import java.util.*;
    import javax.swing.*;
    public class DisplayAuthors extends JFrame {
       // JDBC driver name and database URL
       static final String JDBC_DRIVER = "com.ibm.db2j.jdbc.DB2jDriver";
       static final String DATABASE_URL = "jdbc:db2j:books";
       // declare Connection and Statement for accessing
       // and querying database
       private Connection connection;
       private Statement statement;
       // constructor connects to database, queries database, processes
       // results and displays results in window
       public DisplayAuthors()
          super( "Authors Table of Books Database" );
          // connect to database books and query database
          try {
             // specify location of database on filesystem
             System.setProperty( "db2j.system.home", "C:/Cloudscape_5.0" );
             // load database driver class
             Class.forName( JDBC_DRIVER );
             // establish connection to database
             connection = DriverManager.getConnection( DATABASE_URL );
             // create Statement for querying database
             statement = connection.createStatement();
             // query database
             ResultSet resultSet =
                statement.executeQuery( "SELECT * FROM authors" );
             // process query results
             StringBuffer results = new StringBuffer();
             ResultSetMetaData metaData = resultSet.getMetaData();
             int numberOfColumns = metaData.getColumnCount();
             for ( int i = 1; i <= numberOfColumns; i++ )
                results.append( metaData.getColumnName( i ) + "\t" );
             results.append( "\n" );
             while ( resultSet.next() ) {
                for ( int i = 1; i <= numberOfColumns; i++ )
                   results.append( resultSet.getObject( i ) + "\t" );
                results.append( "\n" );
             // set up GUI and display window
             JTextArea textArea = new JTextArea( results.toString() );
             Container container = getContentPane();
             container.add( new JScrollPane( textArea ) );
             setSize( 300, 100 );  // set window size
             setVisible( true );   // display window
          }  // end try
          // detect problems interacting with the database
          catch ( SQLException sqlException ) {
             JOptionPane.showMessageDialog( null, sqlException.getMessage(),
                "Database Error", JOptionPane.ERROR_MESSAGE );
             System.exit( 1 );
          // detect problems loading database driver
          catch ( ClassNotFoundException classNotFound ) {
             JOptionPane.showMessageDialog( null, classNotFound.getMessage(),
                "Driver Not Found", JOptionPane.ERROR_MESSAGE );           
             System.exit( 1 );
          // ensure statement and connection are closed properly
          finally {
             try {
                statement.close();
                connection.close();           
             // handle exceptions closing statement and connection
             catch ( SQLException sqlException ) {
                JOptionPane.showMessageDialog( null,
                   sqlException.getMessage(), "Database Error",
                   JOptionPane.ERROR_MESSAGE );
                System.exit( 1 );
       }  // end DisplayAuthors constructor
       // launch the application
       public static void main( String args[] )
          DisplayAuthors window = new DisplayAuthors();     
          window.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
    }  // end class DisplayAuthors

  • Sql statement causes my JRun server to fail.

    I'm beginning JSP and can't go through this recurrent error: the first request to the JSP page containing sql statement works well, in the second, an error occurs and finally, the third forces my Jrun server to fail with a stack error...
    <CODE>
    <%-- page global declaratiosn --%>
    <%@ page import="java.sql.*,javax.sql.*,allaire.taglib.*" %>
    <%
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver") ;
    String url = "jdbc:odbc:ademeregion" ;
    Connection con = DriverManager.getConnection( url , "" , "" ) ;
    Statement stmt = con.createStatement();
    ResultSet itom = stmt.executeQuery( "SELECT * FROM ITOM" ) ;
    ResultSetMetaData itomMetaData = itom.getMetaData( ) ;
    out.print( getServletContext().getInitParameter( "test" ) + "<br>" ) ;
    %>
    <table border=1 cellspadding=0 cellspacing=0>
    <%
    while( itom.next() ){%>
    <tr>
    <%
    for (int i = 1 ; i <= itomMetaData.getColumnCount() ; i++ ){
    out.print( "<td><font face=Verdana color=#EEEEEE size=1>" + itom.getString( i ) + "</font></td>") ;
    %>
    </tr><%
    %>
    </CODE>
    I assume it could be a typical jdbc problem that beginners encounter...
    Help required...
    Thanks a lot...
    Sylvain

    Thnks but it's allready done:
    I had the following code allready:
    <%
    itom = null ;
    itomMetaData = null ;
    stmt.close( ) ;
    con.close( ) ;
    %>
    But thanks anyway...

  • How to retrieve a SQL query (in String format) from a PreparedStatement

    Hello all,
    I am in the process of unit testing an application accessing a Oracle 9i 9.2 RDBMS server with JDBC.
    My query is:
    As I have access to PreparedStatement and CallableStatement Java objets but not to the source queries which help create those objects?
    Is thtere a simple way by using an API, to retrieve the SQL command (with possible ? as placeholders for parameters).
    I have already looked at the API documentation for those two objets (and for the Statement and ResultSetmetaData objects too) but to no avail.
    Thank you for any help on this issue,
    Best regards,
    Benoît

    Sorry for having wasted your time... and for not understanding what you meant in your first reply.
    But the codlet was only to show the main idea:
    Here is the code which compiles OK for this approach to reach its intended goal:
    main class (file TestSuiteClass.java):
    import java.sql.*;
    import static java.lang.Class.*;
    * Created by IntelliJ IDEA.
    * User: bgilon
    * Date: 15/03/12
    * Time: 10:05
    * To change this template use File | Settings | File Templates.
    public class TestSuiteClass {
    public static void main(final String[] args) throws Exception {
    // Class.forName("oracle.jdbc.OracleDriver");
    final Connection mconn= new mConnection(
    DriverManager.getConnection("jdbc:oracle:thin:scott/tiger@host:port:service"));
    * final Statement lstmt= TestedClass.TestedMethod(mconn, ...);
    * final String SqlSrc= mconn.getSqlSrc(lstmt).toUpperCase(), SqlTypedReq= mconn.getTypReq(lstmt);
    * assertEquals("test 1", "UPDATE IZ_PD SET FIELD1= ? WHERE FIELDPK= ?", SqlSrc);
    Proxy class (file mConnector.java):
    import java.sql.*;
    import java.util.ArrayList;
    import java.util.List;
    import java.util.Map;
    import java.util.Properties;
    * Created by IntelliJ IDEA.
    * User: bgilon
    * Date: 15/03/12
    * Time: 10:05
    * To change this template use File | Settings | File Templates.
    * This file should be compiled with JDK 1.6, but can be used with previous JDK versions.
    * See OKwith1pN booleans usage for not throwing Exceptions as Unknown methods by the conn object...
    public final class mConnection implements Connection {
    private final Connection conn;
    private final List<Statement> Stmts= new ArrayList<Statement>();
    private final List<String> SqlSrcs= new ArrayList<String>();
    private final List<Integer> TypSrcs= new ArrayList<Integer>();
    private final static String jvmv= System.getProperty("java.specification.version");
    private static final boolean OKwith1p2;
    private static final boolean OKwith1p4; /* OKwith1p5, */
    private static final boolean OKwith1p6;
    static {
    /* jvmv= System.getProperty("java.version");
    System.out.println("jvmv = " + jvmv);
    jvmv= System.getProperty("java.vm.version");
    System.out.println("jvmv = " + jvmv); */
    System.out.println("jvmv = " + jvmv);
    OKwith1p2= (jvmv.compareTo("1.2") >= 0);
    OKwith1p4= (jvmv.compareTo("1.4") >= 0);
    // OKwith1p5= (jvmv.compareTo("1.5") >= 0);
    OKwith1p6= (jvmv.compareTo("1.6") >= 0);
    public String getSqlSrc(final Statement pstmt) {
    int ix= 0;
    for(Statement stmt : this.Stmts) {
    if(stmt == pstmt) return SqlSrcs.get(ix);
    ix+= 1;
    return null;
    static private final String[] TypeNames= new String[] { "Statement", "PreparedStatement", "CallableStatement" };
    public String getTypReq(final Statement pstmt) {
    int ix= 0;
    for(Statement stmt : this.Stmts) {
    if(stmt == pstmt) return TypeNames[TypSrcs.get(ix)];
    ix+= 1;
    return null;
    private void storedStatement(
    final Statement stmt,
    final String sqlSrc,
    final Integer typReq
    Stmts.add(stmt);
    SqlSrcs.add(sqlSrc);
    TypSrcs.add(typReq);
    public Connection getDecoratedConn() {
    return conn;
    mConnection(final Connection pconn) {
    this.conn= pconn;
    public boolean isClosed() throws SQLException {
    return conn.isClosed();
    public void rollback(Savepoint savepoint) throws SQLException {
    if(OKwith1p4) conn.rollback(savepoint);
    public boolean isReadOnly() throws SQLException {
    return conn.isReadOnly();
    public int getTransactionIsolation() throws SQLException {
    return conn.getTransactionIsolation();
    public void setTransactionIsolation(int level)throws SQLException {
    conn.setTransactionIsolation(level);
    public Properties getClientInfo() throws SQLException {
    return OKwith1p6 ? conn.getClientInfo() : null;
    public <T> T unwrap(Class<T> iface)
    throws SQLException {
    return conn.unwrap(iface);
    public void setAutoCommit(boolean auto) throws SQLException {
    conn.setAutoCommit(auto);
    public boolean getAutoCommit() throws SQLException {
    return conn.getAutoCommit();
    public Map<String,Class<?>> getTypeMap() throws SQLException {
    if(!OKwith1p2) return null;
    return conn.getTypeMap();
    public void setTypeMap(Map<String,Class<?>> map) throws SQLException {
    if(!OKwith1p2) return;
    conn.setTypeMap(map);
    public void setHoldability(final int holdability) throws SQLException {
    if(OKwith1p4) conn.setHoldability(holdability);
    public Struct createStruct(String typeName, Object[] attributes) throws SQLException {
    return conn.createStruct(typeName, attributes);
    public void commit() throws SQLException {
    conn.commit();
    public void rollback() throws SQLException {
    conn.rollback();
    public boolean isValid(int timeout) throws SQLException {
    return OKwith1p6 && conn.isValid(timeout);
    public void clearWarnings() throws SQLException {
    conn.clearWarnings();
    public int getHoldability() throws SQLException {
    if(!OKwith1p4) return -1;
    return conn.getHoldability();
    public Statement createStatement() throws SQLException {
    return conn.createStatement();
    public PreparedStatement prepareStatement(final String SqlSrc) throws SQLException {
    if(!OKwith1p2) return null;
    final PreparedStatement lstmt= conn.prepareStatement(SqlSrc);
    storedStatement(lstmt, SqlSrc, 1);
    return lstmt;
    public PreparedStatement prepareStatement(String sql, String[] columnNames) throws SQLException {
    if(!OKwith1p4) return null;
    final PreparedStatement lstmt= conn.prepareStatement(sql, columnNames);
    storedStatement(lstmt, sql, 1);
    return lstmt;
    public PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency) throws SQLException {
    final PreparedStatement lstmt= conn.prepareStatement(sql, resultSetType, resultSetConcurrency);
    storedStatement(lstmt, sql, 1);
    return lstmt;
    public PreparedStatement prepareStatement(String sql, int[] columnIndexes) throws SQLException {
    final PreparedStatement lstmt= conn.prepareStatement(sql, columnIndexes);
    storedStatement(lstmt, sql, 1);
    return lstmt;
    public void setClientInfo(String name, String value) throws SQLClientInfoException {
    if(OKwith1p6)
    conn.setClientInfo(name, value);
    public PreparedStatement prepareStatement(final String SqlSrc,
    int resultType,
    int resultSetCurrency,
    int resultSetHoldability) throws SQLException {
    final PreparedStatement lstmt= conn.prepareStatement(SqlSrc, resultType, resultSetCurrency);
    storedStatement(lstmt, SqlSrc, 1);
    return lstmt;
    public PreparedStatement prepareStatement(final String SqlSrc,
    int autogeneratedkeys) throws SQLException {
    if(!OKwith1p4) return null;
    final PreparedStatement lstmt= conn.prepareStatement(SqlSrc, autogeneratedkeys);
    storedStatement(lstmt, SqlSrc, 1);
    return lstmt;
    public CallableStatement prepareCall(final String SqlSrc) throws SQLException {
    final CallableStatement lstmt= conn.prepareCall(SqlSrc);
    storedStatement(lstmt, SqlSrc, 2);
    return lstmt;
    public CallableStatement prepareCall(final String SqlSrc,
    int resultType,
    int resultSetCurrency,
    int resultSetHoldability) throws SQLException {
    if(!OKwith1p4) return null;
    final CallableStatement lstmt= conn.prepareCall(SqlSrc, resultType, resultSetCurrency, resultSetHoldability);
    storedStatement(lstmt, SqlSrc, 2);
    return lstmt;
    public Array createArrayOf(String typeName, Object[] elements) throws SQLException {
    return OKwith1p6 ? conn.createArrayOf(typeName, elements) : null;
    public CallableStatement prepareCall(final String SqlSrc,
    int resultType,
    int resultSetCurrency) throws SQLException {
    if (!OKwith1p2) return null;
    final CallableStatement lstmt= conn.prepareCall(SqlSrc, resultType, resultSetCurrency);
    storedStatement(lstmt, SqlSrc, 2);
    return lstmt;
    public SQLXML createSQLXML() throws SQLException {
    return OKwith1p6 ? conn.createSQLXML() : null;
    public DatabaseMetaData getMetaData() throws SQLException {
    return conn.getMetaData();
    public String getCatalog() throws SQLException {
    return conn.getCatalog();
    public void setCatalog(final String str) throws SQLException {
    conn.setCatalog(str);
    public void setReadOnly(final boolean readonly) throws SQLException {
    conn.setReadOnly(readonly);
    public Statement createStatement(int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException {
    return conn.createStatement(resultSetType, resultSetConcurrency, resultSetHoldability);
    public Statement createStatement(int resultSetType, int resultSetConcurrency) throws SQLException {
    if(!OKwith1p2) return null;
    return conn.createStatement(resultSetType, resultSetConcurrency);
    public String nativeSQL(final String sql) throws SQLException {
    return conn.nativeSQL(sql);
    public void     releaseSavepoint(Savepoint savepoint) throws SQLException {
    if(OKwith1p4) conn.releaseSavepoint(savepoint);
    public Savepoint setSavepoint() throws SQLException {
    return OKwith1p4 ? conn.setSavepoint() : null;
    public Savepoint setSavepoint(final String str) throws SQLException {
    return OKwith1p4 ? conn.setSavepoint(str) : null;
    public boolean isWrapperFor(Class iface) throws SQLException {
    return conn.isWrapperFor(iface);
    public String getClientInfo(final String str) throws SQLException {
    return OKwith1p6 ? conn.getClientInfo(str) : null;
    public void setClientInfo(final Properties pro) throws SQLClientInfoException {
    if (OKwith1p6) conn.setClientInfo(pro);
    public Blob createBlob() throws SQLException {
    return OKwith1p6 ? conn.createBlob() : null;
    public Clob createClob() throws SQLException {
    return OKwith1p6 ? conn.createClob() : null;
    public NClob createNClob() throws SQLException {
    return OKwith1p6 ? conn.createNClob() : null;
    public SQLWarning getWarnings() throws SQLException {
    return conn.getWarnings();
    public void close() throws SQLException {
    conn.close();
    Final word:
    The final word about this is: there is currently three ways to obtain source SQL queries from compiled statement objects.
    a) Use a proxy class the mConnector above;
    b) Use a proxy JDBC driver as Log4JDBC;
    c) Use the trace facility of the driver (however, post analyzing the logs would depend upon the driver selected).
    Thank you for reading,
    Benoît

  • The content of this page failed to load as expected because data transmission was interrupted. Please try again, or contact your system administrator.

    jdeveloper 11.1.2.0
    version 64
    hi
    this message appear when my page appear and wait time to fetch data but no data come
    "The content of this page failed to load as expected because data transmission was interrupted. Please try again, or contact your system administrator. "
    this error some page work fine and some like this give me this message why ?
    and for log
    ####<Sep 19, 2013 10:54:34 AM AST> <Notice> <Security> <ABHO-IT-AHMAD> <DefaultServer> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1379577274094> <BEA-090082> <Security initializing using security realm myrealm.>
    ####<Sep 19, 2013 10:54:40 AM AST> <Notice> <WebLogicServer> <ABHO-IT-AHMAD> <DefaultServer> <main> <<WLS Kernel>> <> <> <1379577280708> <BEA-000365> <Server state changed to STANDBY>
    ####<Sep 19, 2013 10:54:40 AM AST> <Notice> <WebLogicServer> <ABHO-IT-AHMAD> <DefaultServer> <main> <<WLS Kernel>> <> <> <1379577280777> <BEA-000365> <Server state changed to STARTING>
    ####<Sep 19, 2013 10:54:42 AM AST> <Warning> <oracle.as.jmx.framework.MessageLocalizationHelper> <ABHO-IT-AHMAD> <DefaultServer> <JMX FRAMEWORK Domain Runtime MBeanServer pooling thread> <<anonymous>> <> <0000K4pDfiFE8Ty707MaMF1IEeqy000001> <1379577282352> <J2EE JMX-46041> <The resource for bundle "oracle.jrf.i18n.MBeanMessageBundle" with key "oracle.jrf.JRFServiceMBean.checkIfJRFAppliedOnMutipleTargets" cannot be found.>
    ####<Sep 19, 2013 10:55:02 AM AST> <Notice> <Log Management> <ABHO-IT-AHMAD> <DefaultServer> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1379577302172> <BEA-170027> <The Server has established connection with the Domain level Diagnostic Service successfully.>
    ####<Sep 19, 2013 10:55:02 AM AST> <Notice> <WebLogicServer> <ABHO-IT-AHMAD> <DefaultServer> <main> <<WLS Kernel>> <> <e234f3f4721f40cd:1d6f37d9:1413536b1b6:-8000-0000000000000006> <1379577302287> <BEA-000365> <Server state changed to ADMIN>
    ####<Sep 19, 2013 10:55:02 AM AST> <Notice> <WebLogicServer> <ABHO-IT-AHMAD> <DefaultServer> <main> <<WLS Kernel>> <> <e234f3f4721f40cd:1d6f37d9:1413536b1b6:-8000-0000000000000006> <1379577302332> <BEA-000365> <Server state changed to RESUMING>
    ####<Sep 19, 2013 10:55:02 AM AST> <Notice> <Security> <ABHO-IT-AHMAD> <DefaultServer> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <e234f3f4721f40cd:1d6f37d9:1413536b1b6:-8000-000000000000000a> <1379577302454> <BEA-090171> <Loading the identity certificate and private key stored under the alias DemoIdentity from the jks keystore file D:\ORACLE~1\MIDDLE~2\WLSERV~1.3\server\lib\DemoIdentity.jks.>
    ####<Sep 19, 2013 10:55:02 AM AST> <Notice> <Security> <ABHO-IT-AHMAD> <DefaultServer> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <e234f3f4721f40cd:1d6f37d9:1413536b1b6:-8000-000000000000000a> <1379577302528> <BEA-090169> <Loading trusted certificates from the jks keystore file D:\ORACLE~1\MIDDLE~2\WLSERV~1.3\server\lib\DemoTrust.jks.>
    ####<Sep 19, 2013 10:55:02 AM AST> <Notice> <Security> <ABHO-IT-AHMAD> <DefaultServer> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <e234f3f4721f40cd:1d6f37d9:1413536b1b6:-8000-000000000000000a> <1379577302531> <BEA-090169> <Loading trusted certificates from the jks keystore file D:\ORACLE~1\MIDDLE~2\JDK160~1\jre\lib\security\cacerts.>
    ####<Sep 19, 2013 10:55:02 AM AST> <Notice> <Security> <ABHO-IT-AHMAD> <DefaultServer> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <e234f3f4721f40cd:1d6f37d9:1413536b1b6:-8000-000000000000000a> <1379577302580> <BEA-090898> <Ignoring the trusted CA certificate "CN=Entrust Root Certification Authority - G2,OU=(c) 2009 Entrust\, Inc. - for authorized use only,OU=See www.entrust.net/legal-terms,O=Entrust\, Inc.,C=US". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
    ####<Sep 19, 2013 10:55:02 AM AST> <Notice> <Security> <ABHO-IT-AHMAD> <DefaultServer> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <e234f3f4721f40cd:1d6f37d9:1413536b1b6:-8000-000000000000000a> <1379577302584> <BEA-090898> <Ignoring the trusted CA certificate "CN=thawte Primary Root CA - G3,OU=(c) 2008 thawte\, Inc. - For authorized use only,OU=Certification Services Division,O=thawte\, Inc.,C=US". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
    ####<Sep 19, 2013 10:55:02 AM AST> <Notice> <Security> <ABHO-IT-AHMAD> <DefaultServer> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <e234f3f4721f40cd:1d6f37d9:1413536b1b6:-8000-000000000000000a> <1379577302588> <BEA-090898> <Ignoring the trusted CA certificate "CN=T-TeleSec GlobalRoot Class 3,OU=T-Systems Trust Center,O=T-Systems Enterprise Services GmbH,C=DE". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
    ####<Sep 19, 2013 10:55:02 AM AST> <Notice> <Security> <ABHO-IT-AHMAD> <DefaultServer> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <e234f3f4721f40cd:1d6f37d9:1413536b1b6:-8000-000000000000000a> <1379577302589> <BEA-090898> <Ignoring the trusted CA certificate "CN=T-TeleSec GlobalRoot Class 2,OU=T-Systems Trust Center,O=T-Systems Enterprise Services GmbH,C=DE". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
    ####<Sep 19, 2013 10:55:02 AM AST> <Notice> <Security> <ABHO-IT-AHMAD> <DefaultServer> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <e234f3f4721f40cd:1d6f37d9:1413536b1b6:-8000-000000000000000a> <1379577302592> <BEA-090898> <Ignoring the trusted CA certificate "CN=GlobalSign,O=GlobalSign,OU=GlobalSign Root CA - R3". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
    ####<Sep 19, 2013 10:55:02 AM AST> <Notice> <Security> <ABHO-IT-AHMAD> <DefaultServer> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <e234f3f4721f40cd:1d6f37d9:1413536b1b6:-8000-000000000000000a> <1379577302593> <BEA-090898> <Ignoring the trusted CA certificate "OU=Security Communication RootCA2,O=SECOM Trust Systems CO.\,LTD.,C=JP". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
    ####<Sep 19, 2013 10:55:02 AM AST> <Notice> <Security> <ABHO-IT-AHMAD> <DefaultServer> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <e234f3f4721f40cd:1d6f37d9:1413536b1b6:-8000-000000000000000a> <1379577302595> <BEA-090898> <Ignoring the trusted CA certificate "CN=VeriSign Universal Root Certification Authority,OU=(c) 2008 VeriSign\, Inc. - For authorized use only,OU=VeriSign Trust Network,O=VeriSign\, Inc.,C=US". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
    ####<Sep 19, 2013 10:55:02 AM AST> <Notice> <Security> <ABHO-IT-AHMAD> <DefaultServer> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <e234f3f4721f40cd:1d6f37d9:1413536b1b6:-8000-000000000000000a> <1379577302602> <BEA-090898> <Ignoring the trusted CA certificate "CN=KEYNECTIS ROOT CA,OU=ROOT,O=KEYNECTIS,C=FR". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
    ####<Sep 19, 2013 10:55:02 AM AST> <Notice> <Security> <ABHO-IT-AHMAD> <DefaultServer> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <e234f3f4721f40cd:1d6f37d9:1413536b1b6:-8000-000000000000000a> <1379577302605> <BEA-090898> <Ignoring the trusted CA certificate "CN=GeoTrust Primary Certification Authority - G3,OU=(c) 2008 GeoTrust Inc. - For authorized use only,O=GeoTrust Inc.,C=US". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
    ####<Sep 19, 2013 10:55:02 AM AST> <Notice> <Server> <ABHO-IT-AHMAD> <DefaultServer> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <e234f3f4721f40cd:1d6f37d9:1413536b1b6:-8000-000000000000000a> <1379577302628> <BEA-002613> <Channel "DefaultSecure" is now listening on 127.0.0.1:7102 for protocols iiops, t3s, ldaps, https.>
    ####<Sep 19, 2013 10:55:02 AM AST> <Notice> <WebLogicServer> <ABHO-IT-AHMAD> <DefaultServer> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <e234f3f4721f40cd:1d6f37d9:1413536b1b6:-8000-000000000000000a> <1379577302629> <BEA-000331> <Started WebLogic Admin Server "DefaultServer" for domain "DefaultDomain" running in Development Mode>
    ####<Sep 19, 2013 10:55:02 AM AST> <Notice> <Server> <ABHO-IT-AHMAD> <DefaultServer> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <e234f3f4721f40cd:1d6f37d9:1413536b1b6:-8000-000000000000000a> <1379577302628> <BEA-002613> <Channel "Default" is now listening on 127.0.0.1:7101 for protocols iiop, t3, ldap, snmp, http.>
    ####<Sep 19, 2013 10:55:02 AM AST> <Notice> <WebLogicServer> <ABHO-IT-AHMAD> <DefaultServer> <main> <<WLS Kernel>> <> <e234f3f4721f40cd:1d6f37d9:1413536b1b6:-8000-0000000000000006> <1379577302763> <BEA-000360> <Server started in RUNNING mode>
    ####<Sep 19, 2013 10:55:02 AM AST> <Notice> <WebLogicServer> <ABHO-IT-AHMAD> <DefaultServer> <main> <<WLS Kernel>> <> <e234f3f4721f40cd:1d6f37d9:1413536b1b6:-8000-0000000000000006> <1379577302763> <BEA-000365> <Server state changed to RUNNING>
    ####<Sep 19, 2013 10:55:36 AM AST> <Warning> <org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl> <ABHO-IT-AHMAD> <DefaultServer> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <e234f3f4721f40cd:1d6f37d9:1413536b1b6:-8000-000000000000002a> <1379577336590> <BEA-000000> <Apache Trinidad is running with time-stamp checking enabled. This should not be used in a production environment. See the org.apache.myfaces.trinidad.CHECK_FILE_MODIFICATION property in WEB-INF/web.xml>
    ####<Sep 19, 2013 10:55:42 AM AST> <Warning> <org.apache.myfaces.trinidad.component.UIXEditableValue> <ABHO-IT-AHMAD> <DefaultServer> <[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <e234f3f4721f40cd:1d6f37d9:1413536b1b6:-8000-000000000000002d> <1379577342537> <BEA-000000> <A Bean Validation provider is not present, therefore bean validation is disabled>
    ####<Sep 19, 2013 11:00:06 AM AST> <Error> <HTTP> <ABHO-IT-AHMAD> <DefaultServer> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <e234f3f4721f40cd:1d6f37d9:1413536b1b6:-8000-0000000000000049> <1379577606792> <BEA-101017> <[ServletContext@166723[app:pms module:pms-ViewController-context-root path:/pms-ViewController-context-root spec-version:2.5], request: weblogic.servlet.internal.ServletRequestImpl@13038c7[
    GET /pms-ViewController-context-root/faces/Projects?_adf.ctrl-state=1868ecjjey_3&Adf-Rich-Message=true&unique=1379577605234&oracle.adf.view.rich.STREAM=pt1:t2&javax.faces.ViewState=!11i3l2zal9&Adf-Window-Id=w0 HTTP/1.1
    User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:23.0) Gecko/20100101 Firefox/23.0
    Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
    Accept-Language: en-US,en;q=0.5
    Accept-Encoding: gzip, deflate
    Referer: http://localhost:7101/pms-ViewController-context-root/faces/TaskStuts?_adf.ctrl-state=1868ecjjey_3
    Cookie: JSESSIONID=7wJxS6tWTJX1JPKj5Jp4X4Tl4g29drQTyGbRJ701xTxgT5TGvh3w!498953664
    Connection: keep-alive
    ]] Root cause of ServletException.
    java.lang.NoClassDefFoundError: javax/faces/event/ExceptionQueuedEventContext
      at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._publishException(LifecycleImpl.java:816)
      at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._handleException(LifecycleImpl.java:1446)
      at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:208)
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:312)
      at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
      at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
      at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
      at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
      at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
      at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
      at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
      at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
      at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
      at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
      at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
      at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
      at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
      at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    Caused By: java.lang.ClassNotFoundException: javax.faces.event.ExceptionQueuedEventContext
      at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:297)
      at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:270)
      at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:64)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:305)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:246)
      at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:179)
      at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAwareClassLoader.java:43)
      at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._publishException(LifecycleImpl.java:816)
      at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._handleException(LifecycleImpl.java:1446)
      at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:208)
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:312)
      at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
      at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
      at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
      at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
      at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
      at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
      at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
      at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
      at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
      at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
      at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
      at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
      at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
      at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    >
    ####<Sep 19, 2013 11:00:06 AM AST> <Notice> <Diagnostics> <ABHO-IT-AHMAD> <DefaultServer> <[STANDBY] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <e234f3f4721f40cd:1d6f37d9:1413536b1b6:-8000-000000000000004b> <1379577606817> <BEA-320068> <Watch 'UncheckedException' with severity 'Notice' on server 'DefaultServer' has triggered at Sep 19, 2013 11:00:06 AM AST. Notification details:
    WatchRuleType: Log
    WatchRule: (SEVERITY = 'Error') AND ((MSGID = 'WL-101020') OR (MSGID = 'WL-101017') OR (MSGID = 'WL-000802') OR (MSGID = 'BEA-101020') OR (MSGID = 'BEA-101017') OR (MSGID = 'BEA-000802'))
    WatchData: DATE = Sep 19, 2013 11:00:06 AM AST SERVER = DefaultServer MESSAGE = [ServletContext@166723[app:pms module:pms-ViewController-context-root path:/pms-ViewController-context-root spec-version:2.5], request: weblogic.servlet.internal.ServletRequestImpl@13038c7[
    GET /pms-ViewController-context-root/faces/Projects?_adf.ctrl-state=1868ecjjey_3&Adf-Rich-Message=true&unique=1379577605234&oracle.adf.view.rich.STREAM=pt1:t2&javax.faces.ViewState=!11i3l2zal9&Adf-Window-Id=w0 HTTP/1.1
    User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:23.0) Gecko/20100101 Firefox/23.0
    Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
    Accept-Language: en-US,en;q=0.5
    Accept-Encoding: gzip, deflate
    Referer: http://localhost:7101/pms-ViewController-context-root/faces/TaskStuts?_adf.ctrl-state=1868ecjjey_3
    Cookie: JSESSIONID=7wJxS6tWTJX1JPKj5Jp4X4Tl4g29drQTyGbRJ701xTxgT5TGvh3w!498953664
    Connection: keep-alive
    ]] Root cause of ServletException.
    java.lang.NoClassDefFoundError: javax/faces/event/ExceptionQueuedEventContext
      at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._publishException(LifecycleImpl.java:816)
      at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._handleException(LifecycleImpl.java:1446)
      at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:208)
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:312)
      at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
      at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
      at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
      at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
      at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
      at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
      at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
      at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
      at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
      at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
      at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
      at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
      at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
      at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    Caused By: java.lang.ClassNotFoundException: javax.faces.event.ExceptionQueuedEventContext
      at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:297)
      at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:270)
      at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:64)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:305)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:246)
      at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:179)
      at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAwareClassLoader.java:43)
      at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._publishException(LifecycleImpl.java:816)
      at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._handleException(LifecycleImpl.java:1446)
      at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:208)
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:312)
      at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
      at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
      at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
      at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
      at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
      at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
      at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
      at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
      at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
      at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
      at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
      at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
      at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
      at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    SUBSYSTEM = HTTP USERID = <WLS Kernel> SEVERITY = Error THREAD = [ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)' MSGID = BEA-101017 MACHINE = ABHO-IT-AHMAD TXID =  CONTEXTID = e234f3f4721f40cd:1d6f37d9:1413536b1b6:-8000-0000000000000049 TIMESTAMP = 1379577606792
    WatchAlarmType: AutomaticReset
    WatchAlarmResetPeriod: 30000
    >
    ####<Sep 19, 2013 11:00:10 AM AST> <Alert> <Diagnostics> <ABHO-IT-AHMAD> <DefaultServer> <oracle.dfw.impl.incident.DiagnosticsDataExtractorImpl - Incident Dump Executor (created: Thu Sep 19 11:00:08 AST 2013)> <<WLS Kernel>> <> <e234f3f4721f40cd:1d6f37d9:1413536b1b6:-8000-000000000000004f> <1379577610100> <BEA-320016> <Creating diagnostic image in c:\users\ahmed-it\appdata\roaming\jdeveloper\system11.1.2.0.38.60.17\defaultdomain\servers\defaultserver\adr\diag\ofm\defaultdomain\defaultserver\incident\incdir_20 with a lockout minute period of 1.>
    ####<Sep 19, 2013 11:01:07 AM AST> <Warning> <Common> <ABHO-IT-AHMAD> <DefaultServer> <[STANDBY] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <e234f3f4721f40cd:1d6f37d9:1413536b1b6:-8000-0000000000000048> <1379577667721> <BEA-000632> <Resource Pool "pms" shutting down, ignoring 1 resources still in use by applications..>
    ####<Sep 19, 2013 11:01:24 AM AST> <Warning> <org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl> <ABHO-IT-AHMAD> <DefaultServer> <[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <e234f3f4721f40cd:1d6f37d9:1413536b1b6:-8000-000000000000005a> <1379577684728> <BEA-000000> <Apache Trinidad is running with time-stamp checking enabled. This should not be used in a production environment. See the org.apache.myfaces.trinidad.CHECK_FILE_MODIFICATION property in WEB-INF/web.xml>
    ####<Sep 19, 2013 11:01:34 AM AST> <Warning> <org.apache.myfaces.trinidad.component.UIXEditableValue> <ABHO-IT-AHMAD> <DefaultServer> <[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <e234f3f4721f40cd:1d6f37d9:1413536b1b6:-8000-000000000000005f> <1379577694830> <BEA-000000> <A Bean Validation provider is not present, therefore bean validation is disabled>
    ####<Sep 19, 2013 11:02:06 AM AST> <Error> <javax.faces.event> <ABHO-IT-AHMAD> <DefaultServer> <[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <e234f3f4721f40cd:1d6f37d9:1413536b1b6:-8000-0000000000000068> <1379577726178> <BEA-000000> <Received 'javax.faces.event.AbortProcessingException' when invoking action listener '#{bindings.Commit.execute}' for component 'cb7'>
    ####<Sep 19, 2013 11:02:06 AM AST> <Error> <javax.faces.event> <ABHO-IT-AHMAD> <DefaultServer> <[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <e234f3f4721f40cd:1d6f37d9:1413536b1b6:-8000-0000000000000068> <1379577726182> <BEA-000000> <javax.faces.event.AbortProcessingException: ADFv: Abort processing exception.
      at oracle.adfinternal.view.faces.model.binding.FacesCtrlActionBinding.execute(FacesCtrlActionBinding.java:199)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at com.sun.el.parser.AstValue.invoke(Unknown Source)
      at com.sun.el.MethodExpressionImpl.invoke(Unknown Source)
      at com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:105)
      at javax.faces.event.MethodExpressionActionListener.processAction(MethodExpressionActionListener.java:148)
      at javax.faces.event.ActionEvent.processListener(ActionEvent.java:88)
      at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcast(UIXComponentBase.java:814)
      at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:179)
      at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:130)
      at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:461)
      at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:134)
      at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:111)
      at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:130)
      at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:461)
      at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:134)
      at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:105)
      at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:787)
      at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1252)
      at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._invokeApplication(LifecycleImpl.java:965)
      at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:346)
      at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:204)
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:312)
      at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
      at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
      at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
      at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
      at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:173)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
      at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:121)
      at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
      at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
      at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
      at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:293)
      at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:199)
      at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
      at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
      at java.security.AccessController.doPrivileged(Native Method)
      at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
      at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
      at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
      at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
      at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
      at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
      at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
      at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
      at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
      at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
      at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
      at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
      at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
      at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
      at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
      at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    >
    ####<Sep 19, 2013 11:02:06 AM AST> <Warning> <oracle.adf.controller.faces.lifecycle.Utils> <ABHO-IT-AHMAD> <DefaultServer> <[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <e234f3f4721f40cd:1d6f37d9:1413536b1b6:-8000-0000000000000068> <1379577726194> <BEA-000000> <ADF: Adding the following JSF error message: ORA-04098: trigger 'PMS.PROJECT_SEQ' is invalid and failed re-validation
    java.sql.SQLSyntaxErrorException: ORA-04098: trigger 'PMS.PROJECT_SEQ' is invalid and failed re-validation
      at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:457)
      at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:405)
      at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:889)
      at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:476)
      at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:204)
      at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:540)
      at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:217)
      at oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:1079)
      at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1466)
      at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3752)
      at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:3887)
      at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeUpdate(OraclePreparedStatementWrapper.java:1508)
      at weblogic.jdbc.wrapper.PreparedStatement.executeUpdate(PreparedStatement.java:172)
      at oracle.jbo.server.OracleSQLBuilderImpl.doEntityDML(OracleSQLBuilderImpl.java:432)
      at oracle.jbo.server.EntityImpl.doDML(EntityImpl.java:8494)
      at pms.model.eo.ProjectsImpl.doDML(ProjectsImpl.java:245)
      at oracle.jbo.server.EntityImpl.postChanges(EntityImpl.java:6751)
      at oracle.jbo.server.DBTransactionImpl.doPostTransactionListeners(DBTransactionImpl.java:3264)
      at oracle.jbo.server.DBTransactionImpl.postChanges(DBTransactionImpl.java:3067)
      at oracle.jbo.server.DBTransactionImpl.commitInternal(DBTransactionImpl.java:2071)
      at oracle.jbo.server.DBTransactionImpl.commit(DBTransactionImpl.java:2352)
      at oracle.adf.model.bc4j.DCJboDataControl.commitTransaction(DCJboDataControl.java:1590)
      at oracle.adf.model.binding.DCDataControl.callCommitTransaction(DCDataControl.java:1414)
      at oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(JUCtrlActionBinding.java:1428)
      at oracle.adf.model.binding.DCDataControl.invokeOperation(DCDataControl.java:2168)
      at oracle.jbo.uicli.binding.JUCtrlActionBinding.invoke(JUCtrlActionBinding.java:731)
      at oracle.adf.controller.v2.lifecycle.PageLifecycleImpl.executeEvent(PageLifecycleImpl.java:402)
      at oracle.adfinternal.view.faces.model.binding.FacesCtrlActionBinding._execute(FacesCtrlActionBinding.java:252)
      at oracle.adfinternal.view.faces.model.binding.FacesCtrlActionBinding.execute(FacesCtrlActionBinding.java:185)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at com.sun.el.parser.AstValue.invoke(Unknown Source)
      at com.sun.el.MethodExpressionImpl.invoke(Unknown Source)
      at com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:105)
      at javax.faces.event.MethodExpressionActionListener.processAction(MethodExpressionActionListener.java:148)
      at javax.faces.event.ActionEvent.processListener(ActionEvent.java:88)
      at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcast(UIXComponentBase.java:814)
      at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:179)
      at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:130)
      at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:461)
      at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:134)
      at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:111)
      at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:130)
      at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:461)
      at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:134)
      at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:105)
      at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:787)
      at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1252)
      at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._invokeApplication(LifecycleImpl.java:965)
      at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:346)
      at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:204)
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:312)
      at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
      at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
      at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
      at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
      at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:173)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
      at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:121)
      at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
      at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
      at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
      at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:293)
      at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:199)
      at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
      at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
      at java.security.AccessController.doPrivileged(Native Method)
      at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
      at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
      at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
      at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
      at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
      at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
      at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
      at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
      at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
      at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
      at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
      at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
      at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
      at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
      at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
      at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    >
    ####<Sep 19, 2013 11:02:06 AM AST> <Warning> <oracle.adf.controller.faces.lifecycle.Utils> <ABHO-IT-AHMAD> <DefaultServer> <[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <e234f3f4721f40cd:1d6f37d9:1413536b1b6:-8000-0000000000000068> <1379577726297> <BEA-000000> <ADF: Adding the following JSF error message: ORA-04098: trigger 'PMS.PROJECT_SEQ' is invalid and failed re-validation
    java.sql.SQLSyntaxErrorException: ORA-04098: trigger 'PMS.PROJECT_SEQ' is invalid and failed re-validation
      at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:457)
      at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:405)
      at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:889)
      at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:476)
      at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:204)
      at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:540)
      at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:217)
      at oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:1079)
      at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1466)
      at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3752)
      at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:3887)
      at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeUpdate(OraclePreparedStatementWrapper.java:1508)
      at weblogic.jdbc.wrapper.PreparedStatement.executeUpdate(PreparedStatement.java:172)
      at oracle.jbo.server.OracleSQLBuilderImpl.doEntityDML(OracleSQLBuilderImpl.java:432)
      at oracle.jbo.server.EntityImpl.doDML(EntityImpl.java:8494)
      at pms.model.eo.ProjectsImpl.doDML(ProjectsImpl.java:245)
      at oracle.jbo.server.EntityImpl.postChanges(EntityImpl.java:6751)
      at oracle.jbo.server.DBTransactionImpl.doPostTransactionListeners(DBTransactionImpl.java:3264)
      at oracle.jbo.server.DBTransactionImpl.postChanges(DBTransactionImpl.java:3067)
      at oracle.jbo.server.DBTransactionImpl.commitInternal(DBTransactionImpl.java:2071)
      at oracle.jbo.server.DBTransactionImpl.commit(DBTransactionImpl.java:2352)
      at oracle.adf.model.bc4j.DCJboDataControl.commitTransaction(DCJboDataControl.java:1590)
      at oracle.adf.model.binding.DCDataControl.callCommitTransaction(DCDataControl.java:1414)
      at oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(JUCtrlActionBinding.java:1428)
      at oracle.adf.model.binding.DCDataControl.invokeOperation(DCDataControl.java:2168)
      at oracle.jbo.uicli.binding.JUCtrlActionBinding.invoke(JUCtrlActionBinding.java:731)
      at oracle.adf.controller.v2.lifecycle.PageLifecycleImpl.executeEvent(PageLifecycleImpl.java:402)
      at oracle.adfinternal.view.faces.model.binding.FacesCtrlActionBinding._execute(FacesCtrlActionBinding.java:252)
      at oracle.adfinternal.view.faces.model.binding.FacesCtrlActionBinding.execute(FacesCtrlActionBinding.java:185)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at com.sun.el.parser.AstValue.invoke(Unknown Source)
      at com.sun.el.MethodExpressionImpl.invoke(Unknown Source)
      at com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:105)
      at javax.faces.event.MethodExpressionActionListener.processAction(MethodExpressionActionListener.java:148)
      at javax.faces.event.ActionEvent.processListener(ActionEvent.java:88)
      at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcast(UIXComponentBase.java:814)
      at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:179)
      at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:130)
      at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:461)
      at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:134)
      at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:111)
      at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:130)
      at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:461)
      at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:134)
      at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:105)
      at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:787)
      at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1252)
      at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._invokeApplication(LifecycleImpl.java:965)
      at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:346)
      at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:204)
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:312)
      at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
      at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
      at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
      at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
      at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:173)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
      at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:121)
      at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
      at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
      at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
      at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:293)
      at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:199)
      at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
      at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
      at java.security.AccessController.doPrivileged(Native Method)
      at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
      at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
      at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
      at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
      at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
      at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
      at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
      at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
      at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
      at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
      at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
      at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
      at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
      at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
      at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
      at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    >
    ####<Sep 19, 2013 11:06:31 AM AST> <Warning> <Common> <ABHO-IT-AHMAD> <DefaultServer> <[ACTIVE] ExecuteThread: '7' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <e234f3f4721f40cd:1d6f37d9:1413536b1b6:-8000-0000000000000075> <1379577991286> <BEA-000632> <Resource Pool "pms" shutting down, ignoring 1 resources still in use by applications..>
    ####<Sep 19, 2013 11:06:44 AM AST> <Warning> <org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl> <ABHO-IT-AHMAD> <DefaultServer> <[ACTIVE] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <e234f3f4721f40cd:1d6f37d9:1413536b1b6:-8000-000000000000007d> <1379578004059> <BEA-000000> <Apache Trinidad is running with time-stamp checking enabled. This should not be used in a production environment. See the org.apache.myfaces.trinidad.CHECK_FILE_MODIFICATION property in WEB-INF/web.xml>
    ####<Sep 19, 2013 11:06:48 AM AST> <Warning> <org.apache.myfaces.trinidad.component.UIXEditableValue> <ABHO-IT-AHMAD> <DefaultServer> <[ACTIVE] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <e234f3f4721f40cd:1d6f37d9:1413536b1b6:-8000-0000000000000080> <1379578008443> <BEA-000000> <A Bean Validation provider is not present, therefore bean validation is disabled>
    ####<Sep 19, 2013 11:06:48 AM AST> <Error> <javax.enterprise.resource.webcontainer.jsf.application> <ABHO-IT-AHMAD> <DefaultServer> <[ACTIVE] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <e234f3f4721f40cd:1d6f37d9:1413536b1b6:-8000-0000000000000083> <1379578008782> <BEA-000000> <Error Rendering View[/Projects]
    oracle.jbo.AttributeLoadException: JBO-27022: Failed to load value at index 2 with java object of type java.lang.Integer due to java.sql.SQLException.
      at oracle.jbo.server.AttributeDefImpl.loadFromResultSet(AttributeDefImpl.java:2435)
      at oracle.jbo.server.ViewRowImpl.populate(ViewRowImpl.java:3842)
      at oracle.jbo.server.ViewDefImpl.createInstanceFromResultSet(ViewDefImpl.java:2378)
      at oracle.jbo.server.ViewObjectImpl.createRowFromResultSet(ViewObjectImpl.java:6005)
      at oracle.jbo.server.ViewObjectImpl.createInstanceFromResultSet(ViewObjectImpl.java:5834)
      at oracle.jbo.server.QueryCollection.populateRow(QueryCollection.java:3568)
      at oracle.jbo.server.QueryCollection.fetch(QueryCollection.java:3423)
      at oracle.jbo.server.QueryCollection.get(QueryCollection.java:2173)
      at oracle.jbo.server.ViewRowSetImpl.getRow(ViewRowSetImpl.java:5115)
      at oracle.jbo.server.ViewRowSetIteratorImpl.doFetch(ViewRowSetIteratorImpl.java:2935)
      at oracle.jbo.server.ViewRowSetIteratorImpl.ensureRefreshed(ViewRowSetIteratorImpl.java:2804)
      at oracle.jbo.server.ViewRowSetIteratorImpl.ensureRefreshed(ViewRowSetIteratorImpl.java:2751)
      at oracle.jbo.server.ViewRowSetIteratorImpl.setRangeStartWithRefresh(ViewRowSetIteratorImpl.java:2724)
      at oracle.jbo.server.ViewRowSetIteratorImpl.setRangeStart(ViewRowSetIteratorImpl.java:2714)
      at oracle.jbo.server.ViewRowSetImpl.setRangeStart(ViewRowSetImpl.java:3015)
      at oracle.jbo.server.ViewObjectImpl.setRangeStart(ViewObjectImpl.java:10639)
      at oracle.adf.model.binding.DCIteratorBinding.setRangeStart(DCIteratorBinding.java:3552)
      at oracle.adfinternal.view.faces.model.binding.RowDataManager._bringInToRange(RowDataManager.java:101)
      at oracle.adfinternal.view.faces.model.binding.RowDataManager.setRowIndex(RowDataManager.java:55)
      at oracle.adfinternal.view.faces.model.binding.FacesCtrlHierBinding$FacesModel.setRowIndex(FacesCtrlHierBinding.java:800)
      at org.apache.myfaces.trinidad.component.UIXCollection.setRowIndex(UIXCollection.java:530)
      at oracle.adfinternal.view.faces.renderkit.rich.TableRenderer.renderDataBlockRows(TableRenderer.java:2694)
      at oracle.adfinternal.view.faces.renderkit.rich.TableRenderer._renderSingleDataBlock(TableRenderer.java:2431)
      at oracle.adfinternal.view.faces.renderkit.rich.TableRenderer._handleDataFetch(TableRenderer.java:1632)
      at oracle.adfinternal.view.faces.renderkit.rich.TableRenderer.encodeAll(TableRenderer.java:558)
      at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1452)
      at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:493)
      at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:913)
      at org.apache.myfaces.trinidad.component.UIXCollection.encodeEnd(UIXCollection.java:617)
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1659)
      at oracle.adfinternal.view.faces.util.rich.InvokeOnComponentUtils$EncodeChildVisitCallback.visit(InvokeOnComponentUtils.java:116)
      at com.sun.faces.component.visit.PartialVisitContext.invokeVisitCallback(PartialVisitContext.java:183)
      at org.apache.myfaces.trinidad.component.UIXComponent.visitTree(UIXComponent.java:505)
      at org.apache.myfaces.trinidad.component.UIXComponent.visitTree(UIXComponent.java:354)
      at oracle.adfinternal.view.faces.renderkit.rich.PanelStretchLayoutRenderer._visitFacetAsStretched(PanelStretchLayoutRenderer.java:856)
      at oracle.adfinternal.view.faces.renderkit.rich.PanelStretchLayoutRenderer._visitFacet(PanelStretchLayoutRenderer.java:834)
      at oracle.adfinternal.view.faces.renderkit.rich.PanelStretchLayoutRenderer.visitChildrenForEncodingImpl(PanelStretchLayoutRenderer.java:793)
      at oracle.adf.view.rich.render.RichRenderer.visitChildrenForEncoding(RichRenderer.java:2393)
      at org.apache.myfaces.trinidad.component.UIXComponent.visitChildren(UIXComponent.java:387)
      at org.apache.myfaces.trinidad.component.UIXComponent.visitChildren(UIXComponent.java:669)
      at org.apache.myfaces.trinidad.component.UIXComponent.visitTree(UIXComponent.java:532)
      at org.apache.myfaces.trinidad.component.UIXComponent.visitTree(UIXComponent.java:354)
      at org.apache.myfaces.trinidad.component.UIXComponent.visitAllChildren(UIXComponent.java:411)
      at org.apache.myfaces.trinidad.component.UIXComponent.visitChildren(UIXComponent.java:392)
      at org.apache.myfaces.trinidad.component.UIXComponent.visitChildren(UIXComponent.java:669)
      at org.apache.myfaces.trinidad.component.UIXComponent.visitTree(UIXComponent.java:532)
      at org.apache.myfaces.trinidad.component.UIXComponent.visitTree(UIXComponent.java:354)
      at oracle.adfinternal.view.faces.renderkit.rich.PanelSplitterRenderer._visitFacetAsStretched(PanelSplitterRenderer.java:393)
      at oracle.adfinternal.view.faces.renderkit.rich.PanelSplitterRenderer._visitFacet(PanelSplitterRenderer.java:371)
      at oracle.adfinternal.view.faces.renderkit.rich.PanelSplitterRenderer.visitChildrenForEncodingImpl(PanelSplitterRenderer.java:342)
      at oracle.adf.view.rich.render.RichRenderer.visitChildrenForEncoding(RichRenderer.java:2393)
      at org.apache.myfaces.trinidad.component.UIXComponent.visitChildren(UIXComponent.java:387)
      at org.apache.myfaces.trinidad.component.UIXComponent.visitChildren(UIXComponent.java:669)
      at org.apache.myfaces.trinidad.component.UIXComponent.visitTree(UIXComponent.java:532)
      at org.apache.myfaces.trinidad.component.UIXComponent.visitTree(UIXComponent.java:354)
      at oracle.adfinternal.view.faces.renderkit.rich.DecorativeBoxRenderer.visitChildrenForEncodingImpl(DecorativeBoxRenderer.java:214)
      at oracle.adf.view.rich.render.RichRenderer.visitChildrenForEncoding(RichRenderer.java:2393)
      at org.apache.myfaces.trinidad.component.UIXComponent.visitChildren(UIXComponent.java:387)
      at org.apache.myfaces.trinidad.component.UIXComponent.visitChildren(UIXComponent.java:669)
      at org.apache.myfaces.trinidad.component.UIXComponent.visitTree(UIXComponent.java:532)
      at org.apache.myfaces.trinidad.component.UIXComponent.visitTree(UIXComponent.java:354)
      at oracle.adfinternal.view.faces.renderkit.rich.DecorativeBoxRenderer.visitChildrenForEncodingImpl(DecorativeBoxRenderer.java:214)
      at oracle.adf.view.rich.render.RichRenderer.visitChildrenForEncoding(RichRenderer.java:2393)
      at org.apache.myfaces.trinidad.component.UIXComponent.visitChildren(UIXComponent.java:387)
      at org.apache.myfaces.trinidad.component.UIXComponent.visitChildren(UIXComponent.java:669)
      at org.apache.myfaces.trinidad.component.UIXComponent.visitTree(UIXComponent.java:532)
      at org.apache.myfaces.trinidad.component.UIXComponent.visitTree(UIXComponent.java:354)
      at oracle.adfinternal.view.faces.renderkit.rich.DecorativeBoxRenderer.visitChildrenForEncodingImpl(DecorativeBoxRenderer.java:214)
      at oracle.adf.view.rich.render.RichRenderer.visitChildrenForEncoding(RichRenderer.java:2393)
      at org.apache.myfaces.trinidad.component.UIXComponent.visitChildren(UIXComponent.java:387)
      at org.apache.myfaces.trinidad.component.UIXComponent.visitChildren(UIXComponent.java:669)
      at org.apache.myfaces.trinidad.component.UIXComponent.visitTree(UIXComponent.java:532)
      at org.apache.myfaces.trinidad.component.UIXComponent.visitTree(UIXComponent.java:354)
      at oracle.adfinternal.view.faces.renderkit.rich.PanelStretchLayoutRenderer._visitFacetAsStretched(PanelStretchLayoutRenderer.java:856)
      at oracle.adfinternal.view.faces.renderkit.rich.PanelStretchLayoutRenderer._visitFacet(PanelStretchLayoutRenderer.java:834)
      at oracle.adfinternal.view.faces.renderkit.rich.PanelStretchLayoutRenderer.visitChildrenForEncodingImpl(PanelStretchLayoutRenderer.java:793)
      at oracle.adf.view.rich.render.RichRenderer.visitChildrenForEncoding(RichRenderer.java:2404)
      at

    You are kidding?  It took me about 3 minutes to scroll down on my tab to get to the triplex button!
    Habe you read the error message? 
    Quote:
    java.sql.SQLSyntaxErrorException: ORA-04098: trigger 'PMS.PROJECT_SEQ' is invalid and failed re-validation
    Check the trigger and it should work again.
    Timo

  • ResultSetMetaData.getColumnLabel bad bug

    I have a situation where the following occurs:
    I have a prepared statement that I execute returning a result set.
    // Execute the query
    ResultSet results = ps.executeQuery();
    I then pull the meta data from the result set.
    ResultSetMetaData meta = results.getMetaData();
    int cols = meta.getColumnCount();
    I loop through the result set and pull the values, the column type and the column label.
    // Put the result into the hashtable
    while (results.next()) {
    for (int i=1; i<=cols; i++) {
         // if obj type = CHAR strip trailing blanks
         switch (meta.getColumnType(i))
         case java.sql.Types.CHAR:
         obj = results.getObject(i);
         if (obj != null) {
              hReturn.put(meta.getColumnLabel(i).toUpperCase(),
                   obj.toString().trim());
    At some stage the getColumnLabel starts to return nulls instead of strings (actually the only this seems to happen is with numeric types), even while still within the same result set, and even though a previous call has been successful!!!
    This problem does not occur with Informix JDBC against the Informix DB or with the Merant JDBC Drivers against Oracle 8i
    It does occur with HP-UX 11i, JDK 1.3, JDBC drivers for 8i and 9i as loaded from the CDs and downloaded from the OTN site. We have tried against Oracle RDBMS 8.1.7 and 9.0.1
    Using the debug jar and setting tracing on shows nothing obvious.
    Any ideas? otherwise it's $2.5K to Datadirect for every system we ship or shifting back to Informix...
    Regards, Chris

    Repost

  • Inserting XML document into XDB fails with can't convert to OPAQUE

    Hi,
    When I try to insert a document using oracle 9.2.0.5 client software into a 9.2.0.5 database, with the following code:
    void insertDocument(String document) {
    XMLType xt = XMLType.createXML(connection, document);
    PreparedStatement ps = connection.prepareStatement("insert into xmldocuments values(?)");
    ps.setObject(1, xt);
    ps.executeUpdate();
    The setObject function always throws an exception (after a very long time) with:
    java.sql.SQLException: Fail to convert to internal representation: OPAQUE()
    This also fails when we use the InputStream and org.w3c.xml.Document variants.
    We use the OCI driver, otherwise we get errors retrieving the documents from XMLDB.
    What is going wrong here?

    David,
    If you search through the historical data in this list there are previous post regarding opaque.
    These may be useful. Possibly your reaching the size limit.

Maybe you are looking for

  • Re: Phoneline (and Broadband) unusable for 3 weeks...

    My Broadband and phone line have not worked properly since 10th Feb Numerous phone calls and 2 engineer visits later and still unresolved. Helpline useless promise to ring back within certain time then don't just feel I am going round in circles and

  • Win 7 pro 64 bit does not work nice with tv tuners

    my win 7 pro 64 bit will not work with three recommened tv tuners, though not specific to 64 bit . I know one works great withmy old 32 bit xp system. all three different recommended tuners crashed my system three times amd informed me the flash play

  • Mac Pro (2006/7ish) PSU

    Hi all, Quick question - just wondering how much a replacement PSU (+ labour) would be if done through an Apple Service Centre (UK)? I was think probably ballpark £500? Cheers.

  • Changes in master data.

    hello SAP Gurus, Please tell me how can we check the changes donne by user in master data Material Master Record, BOM, Work center & routing. without activating ECM in SAP. In changes can we trace last valu & changed value for master data. Regards, d

  • Error "8008" and "error 9006"

    Hello, Error 8008 while transferring downloaded games from the iTunes Store Error 9006 and other applications where low, what do I do?