CachedRowSet.getDate(int i) throws a ClassCastException

HI,
We are using using the CachedRowSet.getDate(int i) to get a DATE field, but this throws a ClassCastException - java.sql.Timestamp
The app server is Weblogic on RedHatLinux 7.1. and we are using the thin driver - classes12.zip
Can you give us any pointers as to what could be happening??

Hi Cyril,
Can you give us any pointers as to what could be
happening?? Yes I can. But in order to do that (accurately), I need to know what version of "classes12.zip" and Oracle database you are using.
(I'm sorry but I couldn't find those details in your post.)
I'll assume you are using the latest version(s).
Basically, it all comes down to how Oracle's JDBC driver (and database) map database data-types (like NUMBER, VARCHAR2 and DATE) to java classes. Fortunately these mappings are documented in the Oracle <insert version here> JDBC Developer's Guide and Reference
(Note that this link goes to the guide for the latest version of Oracle.)
Good Luck,
Avi.

Similar Messages

  • Help: ResulSet.getDate(int col) rounds time to 12:00AM

    Using Microsoft SQL Server 7, I execute the following code:
    CREATE TABLE Test (RegDate DATETIME, SmallDate SMALLDATETIME)
    INSERT INTO Test (RegDate, SmallDate) VALUES ('1/1/2000 5:37 AM', '1/1/2000 5:37 AM')
    SELECT * FROM TestThis is the output that I get back:RegDate                     SmallDate                  
    2000-01-01 05:37:00.000     2000-01-01 05:37:00Ok, it looks good so far... now let me query this table with JDBC://just a snippet... I already have a connection, and a statement (stmt)
    SimpleDateFormat format = new SimpleDateFormat("M/dd/yyyy h:mm:ss a");
    ResultSet rs = stmt.executeQuery("SELECT * FROM Test");
    while(rs.next()) {
        System.out.println("RegDate is " + format.format(rs.getDate(1)));
        System.out.println("SmallDate is " + format.format(rs.getDate(2)));
    }The output from the java code is:RegDate is 1/1/2000 12:00 AM
    SmallDate is 1/1/2000 12:00 AMThe month, day and year are correct but the hours and minutes are 12:00 AM. How can I get the hours and minutes?
    Thanks,
    jay

    Okay, I did some reading and I learned that java.sql.Date will always show 12:00 AM (aka zero). There is a class called java.sql.Time which should take care of the time.
    I still don't know how to get the Date and time from a ResultSet though. I can call ResultSet.getDate(int col) or ResultSet.getTime(int col) but not both (after getting a column's value, subsequent calls return null). I even tried getting raw data and parsing it via ResultSet.getBytes() and ResutSet.getBinaryStream()... common sense tells me that there's got to be a cleaner, simpler way to do this. Surely I'm not the first person who wanted to read the date and time from a SQLServer DATETIME column!
    thanks again

  • BC4J ServerModul in JBoss 3.2.3 throws a ClassCastException in SwingClient

    Hi Everyone,
    in the last days i start crying very often, because i think i make a simple mistake with a hugh result -> nothing works ;(
    Whats going wrong?
    I deployed my BC4J ApplicationModule in JBoss, without any problems.
    But when i try to access my ApplicationModule from a SwingClient i get headache. I did it like the HowTos explained. okay they are a bit out of date but it seems
    that there are no points, where i could do something really wrong.
    So i copied all libs and created a sample client explained in: http://otn.oracle.com/products/jdev/howtos/appservers/deploy_bc4j_to_jboss.html
    And here is the problem:
    The first problem i found is, that i can not lookup the
    ApplicationModul via: ctx.lookup("de.orb.server.ServerModule")
    This always results in a exception saying that this JNDI Name is not bound... okay.. i changed it to the EJB Name provided by JBoss: ctx.lookup("ServerModuleBMBean") and the Bean is found. Everything is fine.
    When i try to access a ViewObject i got a reference which is looking fine, BUT doing operations on this reference always result in a very strange ClassCastException;
    oracle.jbo.common.JboExMsgCarrier: java.lang.ClassCastException: org.jboss.resource.adapter.jdbc.WrappedPreparedStatement
         void oracle.jbo.common.PiggybackExceptionEntry.readObject(java.io.ObjectInputStream)
              PiggybackExceptionEntry.java:135
         java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[])
              native code
         boolean java.io.ObjectInputStream.invokeObjectReader(java.lang.Object)
              ObjectInputStream.java:2214
         int java.io.ObjectInputStream.inputObject(boolean)
              ObjectInputStream.java:1411
         java.lang.Object java.io.ObjectInputStream.readObject(boolean)
              ObjectInputStream.java:386
         java.lang.Object java.io.ObjectInputStream.readObject()
              ObjectInputStream.java:236
         void oracle.jbo.common.PiggybackInput.<init>(oracle.jbo.common.ObjectMarshaller, byte[])
              PiggybackInput.java:63
         void oracle.jbo.common.PiggybackInput.<init>(byte[])
              PiggybackInput.java:38
         void oracle.jbo.client.remote.ejb.RootApplicationModuleImpl.processRemoteJboException(oracle.jbo.common.remote.ejb.RemoteJboException)
              RootApplicationModuleImpl.java:2925
         oracle.svcmsg.ServiceMessage oracle.jbo.client.remote.ejb.RootApplicationModuleImpl.riExecuteQuery(int, boolean, oracle.svcmsg.ServiceMessage)
              RootApplicationModuleImpl.java:735
         oracle.svcmsg.ServiceMessage oracle.jbo.client.remote.ejb.EJBApplicationModuleImpl.riExecuteQuery(int, boolean, oracle.svcmsg.ServiceMessage)
              EJBApplicationModuleImpl.java:314
         void oracle.jbo.client.remote.ApplicationModuleImpl.executeQuery(int, boolean)
              ApplicationModuleImpl.java:5982
         void oracle.jbo.client.remote.RowSetImpl.executeQuery()
              RowSetImpl.java:950
         void oracle.jbo.client.remote.ViewUsageImpl.executeQuery()
              ViewUsageImpl.java:556
    other Operations like:
    System.err.println( vo.getApplicationModule().getName() );
    System.err.println( vo.getName() );
    System.err.println( vo.getFullName() );
    System.err.println( vo.getQuery() );
    System.err.println( ""+vo );
    are working fine....
    Please can anyone help me to solve this very strange problem. I need some advice, because i do not know what
    happen et al.
    I do not need to know how BC4J works with JSP Pages, i need to know how i can get it working with my SwingApplication and JBoss.
    Regards Mirko
    PS: Happy Easter!
    i am using:
    Jboss 3.2.3
    Oracle 8i Database
    JDeveloper 9.0.3.1035

    I passed through this problem by adding the following property to the hashtable used to create InitialContext
    env.put
    (oracle.jbo.common.PropertyConstants.PN_SQLBUILDERIMPL,
    oracle.jbo.common.PropertyConstants.SQL92);
    Context ctx = new InitialContext(env);
    Best regards,
    Eduardo.

  • Beginner running RMI example problem

    I am trying to test this RMI code from Thinking in java and it is giving this error
    Exception in thread "main" java.lang.NoClassDefFoundError: DispatchPerfectTime (
    wrong name: project3/rmi/DispatchPerfectTime)
    at java.lang.ClassLoader.defineClass0(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:488)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:10
    6)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:243)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:51)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:190)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:183)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:294)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:281)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:250)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:310)
    I compiled the 3 files below and also called rmic and created a stub and skeleton..... Only it doesnt run..
    Any ideas why ?
    INTERFACE
    package project3.rmi;
    import java.rmi.*;
    interface PerfectTimeI extends Remote
         long getPerfectTime() throws RemoteException;
    }Implementation of Remote interface
    package project3.rmi;
    import java.rmi.*;
    import java.rmi.server.*;
    import java.rmi.registry.*;
    import java.net.*;
    public class PerfectTime extends UnicastRemoteObject implements PerfectTimeI
         public long getPerfectTime() throws RemoteException
              return System.currentTimeMillis();
         //constructor to throw remote exceptions
         public PerfectTime() throws RemoteException
              //super(); called automatically
         //register for rmi server
         public static void main(String args[]) throws Exception
              LocateRegistry.createRegistry(2005);
              System.setSecurityManager(new RMISecurityManager());
              PerfectTime pt = new PerfectTime();
         Naming.rebind("//200.23.23.2:2005/PerfectTime",pt); //I put dummy IP instead of my real IP
              System.out.println("Ready to do time");
    }USING REMOTE OBJECT
    /**Using the remote object**/
    package project3.rmi;
    import java.rmi.*;
    public class DispatchPerfectTime
         public static void main(String args[]) throws Exception
              System.setSecurityManager(new RMISecurityManager());
              PerfectTimeI t = (PerfectTime)Naming.lookup("//200.23.23.2:2005/PerfectTime");
              for(int i =0;i<10;i++)
              System.out.println("Perfect Time is "+t.getPerfectTime());
    }

    I am just using another RMI example from class now...
    All files are compiling but this is error.....
    C:\>java -classpath c:\ RMIServer
    Starting Server
    Started Server...
    Binding to RMI Registry
    Error RemoteException occurred in server thread; nested exception is:
    java.rmi.UnmarshalException: error unmarshalling arguments; nested excep
    tion is:
    java.lang.ClassNotFoundException: RMIServer_Stub
    I doono if my host is correct...... I donno what to write in place of test... its some service??
    import java.rmi.*;
    import java.rmi.server.*;
    import java.rmi.registry.*;
    public class RMIServer extends UnicastRemoteObject implements RMIInterface
      static String host = "rmi://IPAddress/test";
      static String data[] = {"c","c++","java"};
      public RMIServer() throws RemoteException
                super();
      //implement methods
      public int getNumData() throws RemoteException
                return data.length;
      public String getData(int index) throws RemoteException
              if(index>=0 && index<data.length)
                   return data[index];
              else
                   return "N/A";
      public static void main(String args[])
           RMIServer server;
           try{
                System.out.println("Starting Server");
                server = new RMIServer();
                System.out.println("Started Server...");
                  System.out.println("Binding to RMI Registry");
                Naming.rebind(host,server);
                System.out.println("Remote methods registered successfully");
           catch(Exception e){
                System.out.println("Error "+e.getMessage());
      }//main
    } //class

  • LOB locater from Java?

    I seem to be having a problem with getting a CLOB from a Java stored procedure. I have
    public class TheJava {
    public static CLOB getData(int arg){. . .
    which is specified by
    FUNCTION getClobData(a IN NUMBER)RETURN CLOB
    AS LANGUAGE JAVA
    NAME 'TheJava.getData(int) return oracle.sql.CLOB'
    I also have the utility procedure to write it out
    PROCEDURE printClobOut(result IN OUT NOCOPY CLOB) is
    xmlstr varchar2(32767);
    line varchar2(2000);
    begin
    xmlstr := dbms_lob.SUBSTR(result,32767);
    loop
    exit when xmlstr is null;
    line := substr(xmlstr,1,instr(xmlstr,chr(10))-1);
    dbms_output.put_line('| '||line);
    xmlstr := substr(xmlstr,instr(xmlstr,chr(10))+1);
    end loop;
    end;
    So if I try
    declare
    c CLOB;
    begin
    dbms_lob.createtemporary(c,true);
    c:=getlegendasxml(1);
    printclobout(c);
    dbms_lob.freetemporary(c);
    end;
    I get
    ORA-22275: invalid LOB locator specified
    ORA-06512: at "SYS.DBMS_LOB", line 739
    ORA-06512: at "PRINTCLOBOUT", line 5
    ORA-06512: at line 6
    Really, I have no idea what I have to do to get the right locater. Any suggestions are much appreciated.

    Yes, I suspect it is the Java that is causing the problem. The code is below. I can't see that there is anything unusual here so why should there be a locater problem?
    import java.io.IOException;
    import java.io.Writer;
    import java.sql.*;
    import oracle.sql.CLOB;
    public class TheJava {
    public static CLOB getData(int arg) throws SQLException{
    Connection conx = null;
    String message = new String();
    CLOB tempClob = null;
    Writer tempClobWriter = null;
    try{
    conx = DriverManager.getConnection("jdbc:default:connection:");
    tempClob = oracle.sql.CLOB.createTemporary(conx, true, oracle.sql.CLOB.DURATION_SESSION);
    tempClob.open(oracle.sql.CLOB.MODE_READWRITE);
    tempClobWriter = tempClob.getCharacterOutputStream();
    }catch(SQLException sqlexp){
    message = "! CLOB problem.\n ";
    message += sqlexp.getMessage();
    if(tempClob!=null){
    //line A is next line
    tempClob.putString(1,message);
    return tempClob;
    }//end if tempclob
    }catch(Exception exp){
    message = "! Some other exception.\n ";
    message += exp.getMessage();
    if(tempClob!=null){
    tempClob.putString(1,message);
    return tempClob;
    }//end if tempclob
    }finally{
    if(tempClob!=null){ tempClob.freeTemporary(); }
    if(conx != null){ conx.close(); }
    }//end try catch
    In an earlier test I was getting an error reported at line A (I had tried to start from position 0).

  • Initializing Vector with ResultSet(TO SLOW!)

    Hi
    Im creating a JTable from two Vectors. I need to initialize
    the one vector from a resultset. This is way to slow for large result sets. Heres my loop:
    private Vector getData(int columns[]) throws Exception
         rows = new Vector(queue.count);
         while (res.next())     
             Vector newRow = new Vector(columns.length);
             for (int i = 0; i < columns.length;i++)  
               newRow.addElement(res.getString(columns));
    rows.addElement(newRow);
    return rows;
    Any Ideas to speed this up a bit.
    Thanks!

    private Vector getData(int columns[]) throws
    Exception
    rows = new Vector(queue.count);
    while (res.next())
    Vector newRow = new Vector(columns.length);
    for (int i = 0; i < columns.length;i++)
    newRow.addElement(res.getString(columns));
    rows.addElement(newRow);
    return rows;
    Any Ideas to speed this up a bit.
    Thanks!
    I tested your code using String[][] rows (instead of Vector rows) hoping using arrays will make it faster. But it did not. What really did improve the performance was declaring and alocating memory for String[][] rows before calling the function. That is to say, the most time is spent on rows = new String[ROWS][COLS]. If you your conditions allow you to use String[][] rows instead of Vector rows and allocate memory for String[][] rows before calling your method getData(), then, in my opinion, it will improve the performance.
    Cheers!

  • Initializing Vector with ResultSet(too Slow!)

    Hi
    I'm createing a JTable with two Vectors. Im am initializing the Vectors in a while loop, but it is way to slow with large ResultSets.
    Does anyone know how I can speed this process up?
    Thanks!

    Heres the full method Ive removed some of hte code in the for loop. But that makes no difference to the speed
    private Vector getData(int columns[]) throws Exception
         rows = new Vector(queue.count);
         while (res.next())
                 Vector newRow = new Vector(columns.length);
              for (int i = 0; i < columns.length; i++)
                 newRow.addElement(res.getString(columns));     
    rows.addElement(newRow);
    return rows;

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

  • ArrayList to ResultSet

    Hi All,
    I am in unique problem which google could not give me a solution. I hope somebody here has do some stuff like this.
    I have a DEPARTMENT Table:
    CREATE TABLE DEPARTMENT
    (dept_id int,
    dept_name varchar(50),
    ext_code varchar(10) )
    I have a POJO class "Department" which represents DEPARTMENT table:
    public class Department implements Serializable {
    private Integer departmentId;
    private String departmentName;
    private String externalCode;
    public Integer getDepartmentId() {
         return departmentId;
    private void setDepartmentId(Integer departmentId) {
         this.departmentId = departmentId;
    public String getDepartmentName() {
         return departmentName;
    public void setDepartmentName(String departmentName) {
         this.departmentName = departmentName;
    public String getExternalCode() {
         return externalCode;
    public void setExternalCode(String externalCode) {
         this.externalCode = externalCode;
    Now I am communicating with 2 different programs. First program is sending me Departments as an ArrayList.
    List departmentsList = new ArrayList();
    departmentsList = aDepartmentDAO.getAllDepartments();
    The second program requires those Departments in a ResultSet format.
    I have to write code to translate an ArrayList to a ResultSet.
    Is it doable? Please explain the steps involved.
    Thanks
    Uryl

    To give you some idea of what you may have to do...
    You need to fill in these methods to create your own ResultSet
    Most of these you can leave blank as long as you can determine which methods are actually used.
    I woudl create an Iterator from the ArrayList which would allow you to set through the values in the same way a ResultSet steps through the rows.
    I would expect you can leave the update* methdos blank.
    public class MyResultSet implements ResultSet {
        private final List list;
        public MyResultSet(List list) {
            this.list = list;
        public boolean absolute(int row) throws SQLException {
            return false;
        public void afterLast() throws SQLException {
        public void beforeFirst() throws SQLException {
        public void cancelRowUpdates() throws SQLException {
        public void clearWarnings() throws SQLException {
        public void close() throws SQLException {
        public void deleteRow() throws SQLException {
        public int findColumn(String columnName) throws SQLException {
            return 0;
        public boolean first() throws SQLException {
            return false;
        public Array getArray(String colName) throws SQLException {
            return null;
        public Array getArray(int i) throws SQLException {
            return null;
        public InputStream getAsciiStream(int columnIndex) throws SQLException {
            return null;
        public InputStream getAsciiStream(String columnName) throws SQLException {
            return null;
        public BigDecimal getBigDecimal(int columnIndex) throws SQLException {
            return null;
        @Deprecated public BigDecimal getBigDecimal(int columnIndex, int scale) throws SQLException {
            return null;
        public BigDecimal getBigDecimal(String columnName) throws SQLException {
            return null;
        @Deprecated public BigDecimal getBigDecimal(String columnName, int scale) throws SQLException {
            return null;
        public InputStream getBinaryStream(int columnIndex) throws SQLException {
            return null;
        public InputStream getBinaryStream(String columnName) throws SQLException {
            return null;
        public Blob getBlob(String colName) throws SQLException {
            return null;
        public Blob getBlob(int i) throws SQLException {
            return null;
        public boolean getBoolean(int columnIndex) throws SQLException {
            return false;
        public boolean getBoolean(String columnName) throws SQLException {
            return false;
        public byte getByte(int columnIndex) throws SQLException {
            return 0;
        public byte getByte(String columnName) throws SQLException {
            return 0;
        public byte[] getBytes(int columnIndex) throws SQLException {
            return new byte[0];
        public byte[] getBytes(String columnName) throws SQLException {
            return new byte[0];
        public Reader getCharacterStream(int columnIndex) throws SQLException {
            return null;
        public Reader getCharacterStream(String columnName) throws SQLException {
            return null;
        public Clob getClob(String colName) throws SQLException {
            return null;
        public Clob getClob(int i) throws SQLException {
            return null;
        public int getConcurrency() throws SQLException {
            return 0;
        public String getCursorName() throws SQLException {
            return null;
        public Date getDate(int columnIndex) throws SQLException {
            return null;
        public Date getDate(int columnIndex, Calendar cal) throws SQLException {
            return null;
        public Date getDate(String columnName) throws SQLException {
            return null;
        public Date getDate(String columnName, Calendar cal) throws SQLException {
            return null;
        public double getDouble(int columnIndex) throws SQLException {
            return 0;
        public double getDouble(String columnName) throws SQLException {
            return 0;
        public int getFetchDirection() throws SQLException {
            return 0;
        public int getFetchSize() throws SQLException {
            return 0;
        public float getFloat(int columnIndex) throws SQLException {
            return 0;
        public float getFloat(String columnName) throws SQLException {
            return 0;
        public int getInt(int columnIndex) throws SQLException {
            return 0;
        public int getInt(String columnName) throws SQLException {
            return 0;
        public long getLong(int columnIndex) throws SQLException {
            return 0;
        public long getLong(String columnName) throws SQLException {
            return 0;
        public ResultSetMetaData getMetaData() throws SQLException {
            return null;
        public Object getObject(String colName, Map<String, Class<?>> map) throws SQLException {
            return null;
        public Object getObject(int columnIndex) throws SQLException {
            return null;
        public Object getObject(String columnName) throws SQLException {
            return null;
        public Object getObject(int i, Map<String, Class<?>> map) throws SQLException {
            return null;
        public Ref getRef(String colName) throws SQLException {
            return null;
        public Ref getRef(int i) throws SQLException {
            return null;
        public int getRow() throws SQLException {
            return 0;
        public short getShort(int columnIndex) throws SQLException {
            return 0;
        public short getShort(String columnName) throws SQLException {
            return 0;
        public Statement getStatement() throws SQLException {
            return null;
        public String getString(int columnIndex) throws SQLException {
            return null;
        public String getString(String columnName) throws SQLException {
            return null;
        public Time getTime(int columnIndex) throws SQLException {
            return null;
        public Time getTime(int columnIndex, Calendar cal) throws SQLException {
            return null;
        public Time getTime(String columnName) throws SQLException {
            return null;
        public Time getTime(String columnName, Calendar cal) throws SQLException {
            return null;
        public Timestamp getTimestamp(int columnIndex) throws SQLException {
            return null;
        public Timestamp getTimestamp(int columnIndex, Calendar cal) throws SQLException {
            return null;
        public Timestamp getTimestamp(String columnName) throws SQLException {
            return null;
        public Timestamp getTimestamp(String columnName, Calendar cal) throws SQLException {
            return null;
        public int getType() throws SQLException {
            return 0;
        @Deprecated public InputStream getUnicodeStream(int columnIndex) throws SQLException {
            return null;
        @Deprecated public InputStream getUnicodeStream(String columnName) throws SQLException {
            return null;
        public URL getURL(int columnIndex) throws SQLException {
            return null;
        public URL getURL(String columnName) throws SQLException {
            return null;
        public SQLWarning getWarnings() throws SQLException {
            return null;
        public void insertRow() throws SQLException {
        public boolean isAfterLast() throws SQLException {
            return false;
        public boolean isBeforeFirst() throws SQLException {
            return false;
        public boolean isFirst() throws SQLException {
            return false;
        public boolean isLast() throws SQLException {
            return false;
        public boolean last() throws SQLException {
            return false;
        public void moveToCurrentRow() throws SQLException {
        public void moveToInsertRow() throws SQLException {
        public boolean next() throws SQLException {
            return false;
        public boolean previous() throws SQLException {
            return false;
        public void refreshRow() throws SQLException {
        public boolean relative(int rows) throws SQLException {
            return false;
        public boolean rowDeleted() throws SQLException {
            return false;
        public boolean rowInserted() throws SQLException {
            return false;
        public boolean rowUpdated() throws SQLException {
            return false;
        public void setFetchDirection(int direction) throws SQLException {
        public void setFetchSize(int rows) throws SQLException {
        public void updateArray(int columnIndex, Array x) throws SQLException {
        public void updateArray(String columnName, Array x) throws SQLException {
        public void updateAsciiStream(int columnIndex, InputStream x, int length) throws SQLException {
        public void updateAsciiStream(String columnName, InputStream x, int length) throws SQLException {
        public void updateBigDecimal(int columnIndex, BigDecimal x) throws SQLException {
        public void updateBigDecimal(String columnName, BigDecimal x) throws SQLException {
        public void updateBinaryStream(int columnIndex, InputStream x, int length) throws SQLException {
        public void updateBinaryStream(String columnName, InputStream x, int length) throws SQLException {
        public void updateBlob(int columnIndex, Blob x) throws SQLException {
        public void updateBlob(String columnName, Blob x) throws SQLException {
        public void updateBoolean(int columnIndex, boolean x) throws SQLException {
        public void updateBoolean(String columnName, boolean x) throws SQLException {
        public void updateByte(int columnIndex, byte x) throws SQLException {
        public void updateByte(String columnName, byte x) throws SQLException {
        public void updateBytes(int columnIndex, byte x[]) throws SQLException {
        public void updateBytes(String columnName, byte x[]) throws SQLException {
        public void updateCharacterStream(int columnIndex, Reader x, int length) throws SQLException {
        public void updateCharacterStream(String columnName, Reader reader, int length) throws SQLException {
        public void updateClob(int columnIndex, Clob x) throws SQLException {
        public void updateClob(String columnName, Clob x) throws SQLException {
        public void updateDate(int columnIndex, Date x) throws SQLException {
        public void updateDate(String columnName, Date x) throws SQLException {
        public void updateDouble(int columnIndex, double x) throws SQLException {
        public void updateDouble(String columnName, double x) throws SQLException {
        public void updateFloat(int columnIndex, float x) throws SQLException {
        public void updateFloat(String columnName, float x) throws SQLException {
        public void updateInt(int columnIndex, int x) throws SQLException {
        public void updateInt(String columnName, int x) throws SQLException {
        public void updateLong(int columnIndex, long x) throws SQLException {
        public void updateLong(String columnName, long x) throws SQLException {
        public void updateNull(int columnIndex) throws SQLException {
        public void updateNull(String columnName) throws SQLException {
        public void updateObject(int columnIndex, Object x) throws SQLException {
        public void updateObject(int columnIndex, Object x, int scale) throws SQLException {
        public void updateObject(String columnName, Object x) throws SQLException {
        public void updateObject(String columnName, Object x, int scale) throws SQLException {
        public void updateRef(int columnIndex, Ref x) throws SQLException {
        public void updateRef(String columnName, Ref x) throws SQLException {
        public void updateRow() throws SQLException {
        public void updateShort(int columnIndex, short x) throws SQLException {
        public void updateShort(String columnName, short x) throws SQLException {
        public void updateString(int columnIndex, String x) throws SQLException {
        public void updateString(String columnName, String x) throws SQLException {
        public void updateTime(int columnIndex, Time x) throws SQLException {
        public void updateTime(String columnName, Time x) throws SQLException {
        public void updateTimestamp(int columnIndex, Timestamp x) throws SQLException {
        public void updateTimestamp(String columnName, Timestamp x) throws SQLException {
        public boolean wasNull() throws SQLException {
            return false;
    }

  • Extracting frames from videos files

    Hi!
    I'm looking for a Object that can help me to extract video component such as I-Frame, P-frame.
    As a matter of fact, I would like to modify the DCT of I-Frame of a MPEG4 video file.
    Thanks

    if your file hold byte[] data you can use the following code to get the byte[] data as RGB
    public byte[][] getData(int frameNum) throws Exception {
    FramePositioningControl fpc = getPositionControl();
    FrameGrabbingControl      fgc = getGrabControl();
    Buffer           buf;
    RGBFormat     format;
    int          width, height, pixelStride, lineStride, idx;
    byte[][]     rgbData;
    byte[]          data;
    Object          dataObj;
    // skip to the requested frame
    fpc.seek(frameNum);
    // get the data
    buf = fgc.grabFrame();
    // support RGB Format
    format = (RGBFormat)buf.getFormat();
    width = format.getSize().width;
    height = format.getSize().height;
    pixelStride = format.getPixelStride();
    lineStride = format.getLineStride();
    dataObj = buf.getData();
    if (!(dataObj instanceof byte[]))
    return null;
    data = (byte[])dataObj;
    // create the data;
    rgbData = new byte[3][width*height];
    idx = 0;
    for (int i = 0; i < data.length; i += pixelStride) {
    // bgr order
    rgbData[2][idx] = data;
    rgbData[1][idx] = data[i+1];
    rgbData[0][idx] = data[i+2];
    idx++;
    if (format.getFlipped() == 1) {
    rgbData[0] = flipImageTopBottom(rgbData[0], width, height);
    rgbData[1] = flipImageTopBottom(rgbData[1], width, height);
    rgbData[2] = flipImageTopBottom(rgbData[2], width, height);
    return rgbData;

  • How to resolve java.security.AccessControlException

    I wrote a component for serverside(Remote interface,Remote Interface implementation class,stub,skel.. e.t.c) under RMI APIs,but when I m running the class in which i have implemented remote interface throw
    a security exception java.security.AccessControlException:access denied<java.net.SocketPermission localhostDistributed resolved>.
    can someone suggest me whether it is problem of My computer's security settings or there is some problem in java.policy file.Is there any other way to get rid of this problem.
    I also need help to configure my policy file...
    Thankyou....
    Here below I m giving soure code of class (which is throwing exception and implements remote interface "DistributedEx")
    import java.rmi.*;
    import java.rmi.server.*;
    public class DistributedExmpl extends UnicastRemoteObject implements
    DistributedEx
         static String hostname="localhost";
         static String data[]={"First String"
                               "Second String"
                               "Third String"};
         public DistributedExmpl()throws RemoteException
              super();
         public int getDataNum()throws RemoteException
              return data.length;
         public String getData(int n)throws RemoteException
              return data[n%data.length];
         public static void main(String args[])
              System.setSecurityManager(new RMISecurityManager());
              try{
                   DistributedExmpl instance =new DistributedExmpl();
                   Naming.rebind("//"+hostname+"Distributed",instance);
                   System.out.println("Regiterd Now");
              catch(Exception ex)
                   System.out.println(ex);
         }

    The program tried to resolve your "hostname" to an IP address using your machine's naming service. However it needs the "resolve" socket permission.
    You can change your default socket permssion from
    permission java.net.SocketPermission "localhost:1024-", "listen";to
    permission java.net.SocketPermission "localhost:1024-", "listen,resolve";or you can just remove the following line if your RMI server doesn't download classes:
    System.setSecurityManager(new RMISecurityManager());

  • Remote object trying to return another remote object and a ClassCastExcepti

    I have a server running with a TreeModel (the tree model implements Remote). I also have the the TreeNodes all linked together on the server. Now, I can get to the TreeModel on the server and the root node of the remote tree model.
    treeModelStub = (treeModelIface)Naming.lookup(url+"remoteTM"); //works
    rootStub = (remoteTreeNodeIface)treeModelStub.getRoot(); //works. The call to getRoot returns Object
    But when I call
    remoteTreeNodeIface aChild = (remoteTreeNodeIface)rootStub.getChildAt(index) //Does not work. "Exception in thread "main" java.lang.ClassCastException
    at remoteTreeNode_Stub.getChildAt(Unknown Source)
    The remote tree node method getChildAt returns TreeNode because the class implements TreeNode:
    public class remoteTreeNode extends UnicastRemoteObject implements rdcaDataIface, Comparable, TreeNode {
    public TreeNode getChildAt(int idx) {
    System.out.println("DEBUG: class is "+this.getClass()); // class is remoteTreeNode
    return (remoteTreeNode)children.get(idx);
    The remote interface is defined as:
    public interface rdcaDataIface extends java.rmi.Remote {
    public TreeNode getChildAt(int idx) throws RemoteException;
    Any ideas why this does not work. Why can a remote object of type Object be returned just fine, but a TreeNode not be returned?
    Thank you for your help,
    Brent

    I have a server running with a TreeModel (the tree
    model implements Remote). I also have the the
    TreeNodes all linked together on the server. Now, I
    can get to the TreeModel on the server and the root
    node of the remote tree model.
    treeModelStub =
    (treeModelIface)Naming.lookup(url+"remoteTM");
    //works
    rootStub =
    (remoteTreeNodeIface)treeModelStub.getRoot();
    //works. The call to getRoot returns Object
    But when I call
    remoteTreeNodeIface aChild =
    (remoteTreeNodeIface)rootStub.getChildAt(index)******************************************
    can only be casted to rdcaDataIface. The returned object is an instanceof the rdcaDataIface_stub, which have nothing to do with TreeNode.
    //Does not work. "Exception in thread "main"
    java.lang.ClassCastException
    at remoteTreeNode_Stub.getChildAt(Unknown
    t(Unknown Source)
    The remote tree node method getChildAt returns
    TreeNode because the class implements TreeNode:
    public class remoteTreeNode extends
    UnicastRemoteObject implements rdcaDataIface,
    Comparable, TreeNode {
    public TreeNode getChildAt(int idx) {
    System.out.println("DEBUG: class is
    lass is "+this.getClass()); // class is
    remoteTreeNode
    return (remoteTreeNode)children.get(idx);
    The remote interface is defined as:
    public interface rdcaDataIface extends java.rmi.Remote
    public TreeNode getChildAt(int idx) throws
    ows RemoteException;
    Any ideas why this does not work. Why can a remote
    object of type Object be returned just fine, but a
    TreeNode not be returned?
    Thank you for your help,
    Brent

  • Reading text file(array of 2d) and putting in a int array , help required.

    import java.io.*;
    import java.util.*;
    public class lastphase
         public static int[][] getData(File f) throws IOException {
              ArrayList line = new ArrayList();
              BufferedReader br = new BufferedReader(new FileReader(f));
              String s = null;
              while ((s = br.readLine()) != null)
                   line.add(s);
              int[][] map = new int[line.size()][];
              for (int i = 0; i < map.length; i++) {
                   s = (String) line.get(i);
                   StringTokenizer st = new StringTokenizer(s, " ");
                   int[] arr = new int[st.countTokens()];
                   for (int j = 0; j < arr.length; j++)
                        arr[j] = Integer.parseInt(st.nextToken());
                   map[i] = arr;
              return map;
         public static void main(String[] args) throws Throwable {
              int[][] map = getData(new File(args[0]));
              for (int i = 0; i < map.length; i++) {
                   for (int j = 0; j < map.length; j++)
                        System.out.print(map[i][j] + " ");
                   System.out.println();
    here is code but when i run java lastphase it gives error stating
    Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0
    at lastphase.main(lastphase.java:37)
    can anybody tell whys dat case and where i need to change the code

    In my endevor to complete my work i got my answer
    thanks people for sharing ur knowldeg with usCare to share your solution to the mentioned problem?
    kind regards,
    Jos
    ps. I just browsed through your code, but couldn't find an obvious 'blooper' ;-)

  • Weblogic throws NullPointerException when using ServiceControl.setTimeout

    We are invoking a SOAP service via a com.bea.control.ServiceControl that was generated from a WSDL (right click WSDL, Generate Service Control) using Weblogic 8.1.6.
    SOAP service execution is successful using an http and https endpoint. However, when setting a timeout via ServiceControl.setTimeout(int millisecods) method, the Weblogic API is throwing a NullPointerException when using an https endpoint. When using an http endpoint with the setTimeout method execution is successful.
    DEBUG com.bea.wlw.runtime.jws.call.SoapHttpCall [ExecuteThread: '10' for queue: 'weblogic.kernel.Default']: opening connection to https://[... edit removed ...]
    DEBUG com.bea.wlw.runtime.jws.call.SoapHttpCall [ExecuteThread: '10' for queue: 'weblogic.kernel.Default']: Response generation exception
    Throwable: java.lang.NullPointerException
    Stack Trace:
    java.lang.NullPointerException
         at weblogic.net.http.HttpsClient.openWrappedSSLSocket(HttpsClient.java:455)
         at weblogic.net.http.HttpsClient.openServer(HttpsClient.java:235)
         at weblogic.net.http.HttpsClient.openServer(HttpsClient.java:389)
         at weblogic.net.http.HttpsClient.<init>(HttpsClient.java:209)
         at weblogic.net.http.HttpClient.New(HttpClient.java:228)
         at weblogic.net.http.HttpsURLConnection.getHttpClient(HttpsURLConnection.java:246)
         at weblogic.net.http.HttpsURLConnection.connect(HttpsURLConnection.java:217)
         at weblogic.net.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:189)
         at com.bea.wlw.runtime.jws.call.SoapHttpCall.invoke(SoapHttpCall.java:179)
         at com.bea.wlw.runtime.jws.call.SoapHttpCall.invoke(SoapHttpCall.java:80)
         at com.bea.wlw.runtime.core.control.ServiceControlImpl.invoke(ServiceControlImpl.jcs:1288)
         at com.bea.wlw.runtime.core.control.ServiceControlImpl.invoke(ServiceControlImpl.jcs:1155)
         at com.bea.wlw.runtime.core.dispatcher.DispMethod.invoke(DispMethod.java:377)
         at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:433)
         at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:406)
         at com.bea.wlw.runtime.jcs.container.JcsProxy.invoke(JcsProxy.java:388)
    DEBUG com.bea.wlw.runtime.jws.call.SoapFault [ExecuteThread: '10' for queue: 'weblogic.kernel.Default']: SoapFault exception throwable e
    DEBUG com.bea.wlw.runtime.jws.call.SoapHttpCall [ExecuteThread: '10' for queue: 'weblogic.kernel.Default']: response code=0, responseMsg=null
    DEBUG com.bea.wlw.runtime.jws.call.SoapHttpCall [ExecuteThread: '10' for queue: 'weblogic.kernel.Default']: closed connection to https://[... edit removed ...]
    WARN WLW.INVOKE.[... edit removed ...] [ExecuteThread: '10' for queue: 'weblogic.kernel.Default']: Id=[... edit removed id ...] Method=[... edit removed method ...]; Failure=com.bea.control.ServiceControlException: SERVICE FAULT:
    Code:java.lang.NullPointerException
    String:null
    Detail:
    END SERVICE FAULT
    ERROR [... edit removed ...]
    [ExecuteThread: '10' for queue: 'weblogic.kernel.Default']: ServiceControlException
    com.bea.control.ServiceControlException: SERVICE FAULT:
    Code:java.lang.NullPointerException
    String:null
    Detail:
    END SERVICE FAULT
         at com.bea.wlw.runtime.core.control.ServiceControlImpl.invoke(ServiceControlImpl.jcs:1268)
         at com.bea.wlw.runtime.core.dispatcher.DispMethod.invoke(DispMethod.java:377)
         at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:433)
         at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:406)
         at com.bea.wlw.runtime.jcs.container.JcsProxy.invoke(JcsProxy.java:388)

    Thanks for the suggestion. But with -DUseSunHttpHandler=true the Weblogic API is throwing a ClassCastException with or without the timeout value set.
    Failure=com.bea.control.ServiceControlException: SERVICE FAULT:
    Code:java.lang.ClassCastException
    String:null
    Detail:
    END SERVICE FAULT
    ERROR: ServiceControlException
    com.bea.control.ServiceControlException: SERVICE FAULT:
    Code:java.lang.ClassCastException
    String:null
    Detail:
    END SERVICE FAULT
         at com.bea.wlw.runtime.core.control.ServiceControlImpl.invoke(ServiceControlImpl.jcs:1268)
         at com.bea.wlw.runtime.core.dispatcher.DispMethod.invoke(DispMethod.java:377)
         at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:433)
         at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:406)
         at com.bea.wlw.runtime.jcs.container.JcsProxy.invoke(JcsProxy.java:388)

  • ClassCastException in oracle.sql.TRANSDUMP with parameterbinding

    We are facing with the following problem when we use Toplink DirectToFieldMapping on a field of java-type java.util.Calendar where the database-type is DATE.
    This exception ONLY occures if we use parameter-binding set to true in sessions.xml
    <should-bind-all-parameters>true</should-bind-all-parameters>
    trace:
    [java] java.lang.ClassCastException
    [java] at oracle.sql.TRANSDUMP.getTransitions(TRANSDUMP.java:41)
    [java] at oracle.sql.TIMEZONETAB.updateTable(TIMEZONETAB.java:456)
    [java] at oracle.sql.TIMESTAMPTZ.toBytes(TIMESTAMPTZ.java:1424)
    [java] at oracle.sql.TIMESTAMPTZ.toBytes(TIMESTAMPTZ.java:1614)
    [java] at oracle.sql.TIMESTAMPTZ.<init>(TIMESTAMPTZ.java:256)
    [java] at oracle.toplink.internal.platform.database.oracle.TIMESTAMPHelper.buildTIMESTAMPTZ(TIMESTAMPHelper.jav
    a:21)
    [java] at oracle.toplink.oraclespecific.Oracle9Platform.setParameterValueInDatabaseCall(Oracle9Platform.java:34
    5)
    [java] at oracle.toplink.internal.databaseaccess.ParameterizedSQLBatchWritingMechanism.prepareBatchStatements(P
    arameterizedSQLBatchWritingMechanism.java:171)
    [java] at oracle.toplink.internal.databaseaccess.ParameterizedSQLBatchWritingMechanism.executeBatchedStatements
    (ParameterizedSQLBatchWritingMechanism.java:135)
    [java] at oracle.toplink.internal.databaseaccess.ParameterizedSQLBatchWritingMechanism.appendCall(Parameterized
    SQLBatchWritingMechanism.java:78)
    [java] at oracle.toplink.internal.databaseaccess.DatabaseAccessor.executeCall(DatabaseAccessor.java:621)
    [java] at oracle.toplink.publicinterface.UnitOfWork.executeCall(UnitOfWork.java:1400)
    [java] at oracle.toplink.internal.queryframework.CallQueryMechanism.executeCall(CallQueryMechanism.java:131)
    [java] at oracle.toplink.internal.queryframework.CallQueryMechanism.executeCall(CallQueryMechanism.java:115)
    [java] at oracle.toplink.internal.queryframework.CallQueryMechanism.insertObject(CallQueryMechanism.java:264)
    [java] at oracle.toplink.internal.queryframework.StatementQueryMechanism.insertObject(StatementQueryMechanism.j
    ava:171)
    [java] at oracle.toplink.internal.queryframework.StatementQueryMechanism.insertObject(StatementQueryMechanism.j
    ava:188)
    [java] at oracle.toplink.internal.queryframework.DatabaseQueryMechanism.insertObjectForWrite(DatabaseQueryMecha
    nism.java:433)
    [java] at oracle.toplink.queryframework.InsertObjectQuery.executeCommit(InsertObjectQuery.java:45)
    [java] at oracle.toplink.internal.queryframework.DatabaseQueryMechanism.performUserDefinedWrite(DatabaseQueryMe
    chanism.java:596)
    [java] at oracle.toplink.internal.queryframework.DatabaseQueryMechanism.performUserDefinedInsert(DatabaseQueryM
    echanism.java:563)
    [java] at oracle.toplink.internal.queryframework.DatabaseQueryMechanism.insertObjectForWriteWithChangeSet(Datab
    aseQueryMechanism.java:465)
    [java] at oracle.toplink.queryframework.WriteObjectQuery.executeCommitWithChangeSet(WriteObjectQuery.java:119)
    [java] at oracle.toplink.internal.queryframework.DatabaseQueryMechanism.executeWriteWithChangeSet(DatabaseQuery
    Mechanism.java:258)
    [java] at oracle.toplink.queryframework.WriteObjectQuery.execute(WriteObjectQuery.java:51)
    [java] at oracle.toplink.queryframework.DatabaseQuery.execute(DatabaseQuery.java:493)
    [java] at oracle.toplink.publicinterface.Session.internalExecuteQuery(Session.java:1958)
    [java] at oracle.toplink.publicinterface.UnitOfWork.internalExecuteQuery(UnitOfWork.java:2255)
    [java] at oracle.toplink.publicinterface.Session.executeQuery(Session.java:1086)
    [java] at oracle.toplink.publicinterface.Session.executeQuery(Session.java:1038)
    [java] at oracle.toplink.internal.sessions.CommitManager.commitAllObjectsWithChangeSet(CommitManager.java:177)
    [java] at oracle.toplink.publicinterface.Session.writeAllObjectsWithChangeSet(Session.java:3223)
    [java] at oracle.toplink.publicinterface.UnitOfWork.commitToDatabase(UnitOfWork.java:1092)
    [java] at oracle.toplink.publicinterface.UnitOfWork.commitToDatabaseWithChangeSet(UnitOfWork.java:1137)
    [java] at oracle.toplink.publicinterface.UnitOfWork.issueSQLbeforeCompletion(UnitOfWork.java:2492)
    [java] at oracle.toplink.jts.oracle9i.Oracle9iJTSSynchronizationListener.beforeCompletion(Oracle9iJTSSynchroniz
    ationListener.java:75)
    [java] at com.evermind.server.ApplicationServerTransaction.callSynchronizationBeforeCompletion(ApplicationServe
    rTransaction.java:1404)
    [java] at com.evermind.server.ApplicationServerTransaction.beforeCompletion(ApplicationServerTransaction.java:1
    256)
    [java] at com.evermind.server.ApplicationServerTransaction.commit(ApplicationServerTransaction.java:680)
    [java] at com.evermind.server.ApplicationServerTransaction.end(ApplicationServerTransaction.java:1035)
    [java] at StandortFacade_StatelessSessionBeanWrapper28.create(StandortFacade_StatelessSessionBeanWrapper28.java
    :478)
    [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [java] at java.lang.reflect.Method.invoke(Method.java:324)
    [java] at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:124)
    [java] at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:48)
    [java] at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java
    :192)
    [java] at java.lang.Thread.run(Thread.java:534)
    [java] at connection to localhost/127.0.0.1
    [java] at com.evermind.server.rmi.OrionRemoteException.receive(OrionRemoteException.java:130)
    [java] at com.evermind.server.rmi.RMIConnection.handleMethodInvocationResponse(RMIConnection.java:1738)
    [java] at com.evermind.server.rmi.RMIConnection.run(RMIConnection.java:453)
    [java] at com.evermind.server.rmi.RMIConnection.run(RMIConnection.java:333)
    [java] at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java
    :186)
    [java] at java.lang.Thread.run(Thread.java:534)
    [java] 2005-06-28 19:33:03,452 WARN de.dpag.move.stammdaten.cs.StandortDelegate - resetHome
    [java] 2005-06-28 19:33:03,452 ERROR de.dpag.move.client.stammdaten.model.standort.StandortEditDialogModel - Intern
    er Fehler auf dem Server!
    [java] de.dpag.move.infrastructure.exception.InternalException: com.evermind.server.rmi.OrionRemoteException: Trans
    action was rolled back: Error in transaction: java.lang.ClassCastException; nested exception is:
    [java] java.lang.ClassCastException
    [java] at de.dpag.move.stammdaten.cs.StandortDelegate.create(StandortDelegate.java:184)
    [java] at de.dpag.move.client.stammdaten.model.standort.StandortEditDialogModel.createDataAtServer(StandortEdit
    DialogModel.java:235)
    [java] at de.dpag.move.client.stammdaten.model.AbstractEditDialogModel.storeTO(AbstractEditDialogModel.java:124
    [java] at de.dpag.move.client.stammdaten.control.AbstractEditDialogController.okay(AbstractEditDialogController
    .java:127)
    [java] at de.dpag.move.client.common.AbstractDialogController.doApply(AbstractDialogController.java:714)
    [java] at de.dpag.move.client.common.AbstractDialogController$2.apply(AbstractDialogController.java:230)
    [java] at de.dpag.move.client.common.AbstractMDIDialog$4.actionPerformed(AbstractMDIDialog.java:326)
    [java] at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)
    [java] at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839)
    [java] at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
    [java] at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
    [java] at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:245)
    [java] at java.awt.Component.processMouseEvent(Component.java:5100)
    [java] at java.awt.Component.processEvent(Component.java:4897)
    [java] at java.awt.Container.processEvent(Container.java:1569)
    [java] at java.awt.Component.dispatchEventImpl(Component.java:3615)
    [java] at java.awt.Container.dispatchEventImpl(Container.java:1627)
    [java] at java.awt.Component.dispatchEvent(Component.java:3477)
    [java] at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
    [java] at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
    [java] at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
    [java] at java.awt.Container.dispatchEventImpl(Container.java:1613)
    [java] at java.awt.Window.dispatchEventImpl(Window.java:1606)
    [java] at java.awt.Component.dispatchEvent(Component.java:3477)
    [java] at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
    [java] at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
    [java] at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
    [java] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
    [java] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
    [java] at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
    [java] Caused by: com.evermind.server.rmi.OrionRemoteException: Transaction was rolled back: Error in transaction:
    java.lang.ClassCastException; nested exception is:
    [java] java.lang.ClassCastException
    [java] at com.evermind.server.rmi.RMIConnection.EXCEPTION_ORIGINATES_FROM_THE_REMOTE_SERVER(RMIConnection.java:
    1602)
    [java] at com.evermind.server.rmi.RMIConnection.invokeMethod(RMIConnection.java:1553)
    [java] at com.evermind.server.rmi.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:55)
    [java] at com.evermind.server.rmi.RecoverableRemoteInvocationHandler.invoke(RecoverableRemoteInvocationHandler.
    java:22)
    [java] at com.evermind.server.ejb.StatelessSessionRemoteInvocationHandler.invoke(StatelessSessionRemoteInvocati
    onHandler.java:50)
    [java] at __Proxy5.create(Unknown Source)
    [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [java] at java.lang.reflect.Method.invoke(Method.java:324)
    [java] at de.dpag.move.infrastructure.interceptor.MethodCallInterceptor.invoke(MethodCallInterceptor.java:31)
    [java] at de.dpag.move.infrastructure.interceptor.MoveMethodInvocation.proceed(MoveMethodInvocation.java:58)
    [java] at de.dpag.move.infrastructure.interceptor.DelegateAuthentifizierungInterceptor.invoke(DelegateAuthentif
    izierungInterceptor.java:70)
    [java] at de.dpag.move.infrastructure.interceptor.MoveMethodInvocation.proceed(MoveMethodInvocation.java:58)
    [java] at de.dpag.move.infrastructure.interceptor.DelegateExceptionHandlingInterceptor.invoke(DelegateException
    HandlingInterceptor.java:34)
    [java] at de.dpag.move.infrastructure.interceptor.MoveMethodInvocation.proceed(MoveMethodInvocation.java:58)
    [java] at de.dpag.move.infrastructure.interceptor.BadThreadInterceptor.invoke(BadThreadInterceptor.java:27)
    [java] at de.dpag.move.infrastructure.interceptor.MoveMethodInvocation.proceed(MoveMethodInvocation.java:58)
    [java] at de.dpag.move.infrastructure.interceptor.TraceInterceptor.invoke(TraceInterceptor.java:39)
    [java] at de.dpag.move.infrastructure.interceptor.MoveMethodInvocation.proceed(MoveMethodInvocation.java:58)
    [java] at de.dpag.move.stammdaten.cs.StandortDelegate.create(StandortDelegate.java:178)
    [java] ... 29 more
    [java] Caused by: java.lang.ClassCastException
    [java] at com.evermind.server.rmi.OrionRemoteException.receive(OrionRemoteException.java:130)
    [java] at com.evermind.server.rmi.RMIConnection.handleMethodInvocationResponse(RMIConnection.java:1738)
    [java] at com.evermind.server.rmi.RMIConnection.run(RMIConnection.java:453)
    [java] at com.evermind.server.rmi.RMIConnection.run(RMIConnection.java:333)
    [java] at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java
    :186)
    [java] at java.lang.Thread.run(Thread.java:534)
    we have made a debugging and can see that connection.prepareCall(...) answers an instance of com.evermind.sql.CallableStatementBCELProxy,
    which of course results in the ClassCastException showed above.
    the exception occurs at the class TRANSDUMP in the line where the explicit cast to OracleCallableStatement is done
    oracle.sql.TRANSDUMP is taken from ojdbc14.jar, the recommended one from http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/htdocs/jdbc9201.html
    public class TRANSDUMP
    public TRANSDUMP()
    public static byte[] getTransitions(Connection connection, int i)
    throws SQLException
    OracleCallableStatement oraclecallablestatement = (OracleCallableStatement)connection.prepareCall("begin dbms_utility.get_tz_transitions(?,?); end;");
    NUMBER number = new NUMBER(i);
    oraclecallablestatement.setNUMBER(1, number);
    oraclecallablestatement.registerOutParameter(2, -2);
    oraclecallablestatement.execute();
    byte abyte0[] = oraclecallablestatement.getBytes(2);
    oraclecallablestatement.close();
    return abyte0;
    we use the following settings in our data-sources.xml
    <data-source
              name="FOODS"
              username="scott"
              password="tiger"
              location="jdbc/FOODS"          
              connection-driver="oracle.jdbc.driver.OracleDriver"
              class="com.evermind.sql.OrionCMTDataSource"
              url="jdbc:oracle:thin:@foo-db-1:1545:db1"
              inactivity-timeout="30"/>
    the used sessions.xml
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <!DOCTYPE toplink-configuration PUBLIC "-//Oracle Corp.//DTD TopLink Sessions 9.0.4//EN" "sessions_9_0_4.dtd">
    <toplink-configuration>
    <session>
    <name>datenpool</name>
    <project-xml>datenpool.xml</project-xml>
    <session-type>
    <server-session/>
    </session-type>
    <login>
    <datasource>jdbc/FOODS</datasource>
    <platform-class>oracle.toplink.oraclespecific.Oracle9Platform</platform-class>
    <uses-native-sequencing>true</uses-native-sequencing>
    <should-bind-all-parameters>true</should-bind-all-parameters>
    <uses-streams-for-binding>true</uses-streams-for-binding>
    <should-force-field-names-to-uppercase>true</should-force-field-names-to-uppercase>
    <uses-batch-writing>true</uses-batch-writing>
    <uses-external-connection-pool>true</uses-external-connection-pool>
    <uses-native-sql>true</uses-native-sql>
    <uses-external-transaction-controller>true</uses-external-transaction-controller>
    </login>
    <external-transaction-controller-class>oracle.toplink.jts.oracle9i.Oracle9iJTSExternalTransactionController</external-transaction-controller-class>
    <enable-logging>true</enable-logging>
    <logging-options/>
    </session>
    </toplink-configuration>
    environment:
    OC4J: 10.1.2
    Toplink: 9.0.4.5
    JDBC-Driver: ojdbc14.jar for Oracle9i (9.2.0.5) and the needed classes12dms.jar carried with the oc4j10.1.2.0 installation (jdbc\lib\classes12dms.jar.jar)
    Oracle9i: 9.2.0.5
    Is this a problem in our oc4j with toplink and datasource configuration or perhaps a real BUG ?
    Regards,
    Dirk

    Hi everyone, i'm developing an application based on Spring - TopLink combination, in a test enviroment using JDeveloper embedded OC4J, everything works fine, but when i try to deploy the application on OAS 10.1.3.1 (SOA suite), i get the next Exception
    07/12/13 18:13:39 org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ToplinkSessionFactory' defined in class path resource [cu-generarprocesoseleccion-app-context.xml]: Initialization of bean failed; nested exception is java.lang.ClassCastException: oracle.toplink.jts.oracle9i.Oracle9iJTSExternalTransactionController
    07/12/13 18:13:39 java.lang.ClassCastException: oracle.toplink.jts.oracle9i.Oracle9iJTSExternalTransactionController
    07/12/13 18:13:39      at oracle.toplink.platform.server.ServerPlatformBase.initializeExternalTransactionController(ServerPlatformBase.java:194)
    07/12/13 18:13:39      at oracle.toplink.publicinterface.DatabaseSession.login(DatabaseSession.java:498)
    07/12/13 18:13:39      at org.springframework.orm.toplink.LocalSessionFactory.createSessionFactory(LocalSessionFactory.java:292)
    07/12/13 18:13:39      at org.springframework.orm.toplink.LocalSessionFactoryBean.afterPropertiesSet(LocalSessionFactoryBean.java:52)
    07/12/13 18:13:39      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1058)
    07/12/13 18:13:39      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:363)
    07/12/13 18:13:39      at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:226)
    07/12/13 18:13:39      at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:147)
    07/12/13 18:13:39      at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:269)
    07/12/13 18:13:39      at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:318)
    07/12/13 18:13:39      at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:81)
    07/12/13 18:13:39      at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:66)
    07/12/13 18:13:39      at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:57)
    07/12/13 18:13:39      at com.iqsoft.rrhh.cu_generarprocesoseleccion.business.ejb.GenerarProcesoSeleccionBean.ejbCreate(GenerarProcesoSeleccionBean.java:25)
    07/12/13 18:13:39      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    07/12/13 18:13:39      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    07/12/13 18:13:39      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    07/12/13 18:13:39      at java.lang.reflect.Method.invoke(Method.java:585)
    07/12/13 18:13:39      at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
    07/12/13 18:13:39      at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
    07/12/13 18:13:39      at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
    07/12/13 18:13:39      at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
    07/12/13 18:13:39      at com.evermind.server.ejb.interceptor.system.SetContextActionInterceptor.invoke(SetContextActionInterceptor.java:44)
    07/12/13 18:13:39      at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
    07/12/13 18:13:39      at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
    07/12/13 18:13:39      at com.evermind.server.ejb.LifecycleManager.invokeLifecycleMethod(LifecycleManager.java:262)
    07/12/13 18:13:39      at com.evermind.server.ejb.LifecycleManager.invokeLifecycleMethod(LifecycleManager.java:252)
    07/12/13 18:13:39      at com.evermind.server.ejb.LifecycleManager.postConstruct(LifecycleManager.java:113)
    07/12/13 18:13:39      at com.evermind.server.ejb.StatelessSessionBeanPool.createContextImpl(StatelessSessionBeanPool.java:40)
    07/12/13 18:13:39      at com.evermind.server.ejb.BeanPool.createContext(BeanPool.java:418)
    07/12/13 18:13:39      at com.evermind.server.ejb.BeanPool.allocateContext(BeanPool.java:244)
    07/12/13 18:13:39      at com.evermind.server.ejb.StatelessSessionEJBHome.getContextInstance(StatelessSessionEJBHome.java:25)
    07/12/13 18:13:39      at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:86)
    07/12/13 18:13:39      at GenerarProcesoSeleccionEJB_LocalProxy_1heg7kp.registrarProcesoSeleccion(Unknown Source)
    07/12/13 18:13:39      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    07/12/13 18:13:39      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    07/12/13 18:13:39      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    07/12/13 18:13:39      at java.lang.reflect.Method.invoke(Method.java:585)
    07/12/13 18:13:39      at org.springframework.ejb.access.LocalSlsbInvokerInterceptor.invoke(LocalSlsbInvokerInterceptor.java:66)
    07/12/13 18:13:39      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144)
    07/12/13 18:13:39      at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:174)
    07/12/13 18:13:39      at $Proxy0.registrarProcesoSeleccion(Unknown Source)
    07/12/13 18:13:39      at com.iqsoft.rrhh.cu_generarprocesoseleccion.web.bean.RegistrarProcesoJSFBean.registrarProcesoSeleccion(RegistrarProcesoJSFBean.java:129)
    07/12/13 18:13:39      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    07/12/13 18:13:39      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    07/12/13 18:13:39      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    07/12/13 18:13:39      at java.lang.reflect.Method.invoke(Method.java:585)
    07/12/13 18:13:39      at org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:132)
    07/12/13 18:13:39      at org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:61)
    07/12/13 18:13:39      at javax.faces.component.UICommand.broadcast(UICommand.java:109)
    07/12/13 18:13:39      at org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:184)
    07/12/13 18:13:39      at org.ajax4jsf.component.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:162)
    07/12/13 18:13:39      at org.ajax4jsf.component.AjaxViewRoot.processApplication(AjaxViewRoot.java:350)
    07/12/13 18:13:39      at org.apache.myfaces.lifecycle.InvokeApplicationExecutor.execute(InvokeApplicationExecutor.java:32)
    07/12/13 18:13:39      at org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:95)
    07/12/13 18:13:39      at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:70)
    07/12/13 18:13:39      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:139)
    07/12/13 18:13:39      at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
    07/12/13 18:13:39      at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
    07/12/13 18:13:39      at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
    07/12/13 18:13:39      at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
    07/12/13 18:13:39      at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
    07/12/13 18:13:39      at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
    07/12/13 18:13:39      at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
    07/12/13 18:13:39      at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216)
    07/12/13 18:13:39      at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
    07/12/13 18:13:39      at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
    07/12/13 18:13:39      at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    07/12/13 18:13:39      at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    07/12/13 18:13:39      at java.lang.Thread.run(Thread.java:595)
    As you can see, the problem seems to be the Oracle9iJTSExternalTransactionController class.
    hte sessions.xml, i'm using, is the next:
    <toplink-configuration>
    <session>
    <name>RRHHadmin</name>
    <project-xml>META-INF/IQSOFTDomain/rrhh-deployment-descriptor.xml</project-xml>
    <session-type>
    <server-session/>
    </session-type>
    <login>
    <datasource>jdbc/HrDS</datasource>
    <sequence-preallocation-size>50</sequence-preallocation-size>
    <sequence-table>SEQUENCE</sequence-table>
    <sequence-name-field>SEQ_NAME</sequence-name-field>
    <sequence-counter-field>SEQ_COUNT</sequence-counter-field>
    <uses-external-connection-pool>true</uses-external-connection-pool>
    <uses-external-transaction-controller>true</uses-external-transaction-controller>
    </login>
    <external-transaction-controller-class>oracle.toplink.jts.oracle9i.Oracle9iJTSExternalTransactionController</external-transaction-controller-class>
    </session>
    </toplink-configuration>
    I'm using TopLink 10, any help would be appreciated

Maybe you are looking for

  • Looking for an email discussion lists script.

    HI! I am looking for a email discussion lists script that works on a windows platform. I have looked on Google but only found Mailman which is good but only works on UNIX/Linux. The other I found has to be installed via a setup.exe which is only good

  • Status of Last Action is "Failed"  when StartScriptEnabled is set to true

    Hi, I have set StartScriptEnabled to true in nodemanager.properties file and restarted managed server through console. After restart, eventhough the managed server state is "Running", the status of last action is "FAILED". When I stop the server thro

  • Can't get rid of the black

    http://dealeradbrowser.com/newsletters/august2013.html I can't get rid of the black under the guy. I can't find it in the code. No borders. No padding. Any suggestions? Thank you.

  • Are there any templates for Wills in Pages?

    I am looking to write a Will or Living Will. Are there any legal document templates available through the Pages application?

  • Multi thread D/B access design.

    Hi, I'm trying to performance test a 3 tiered design from client > TCP/IP to Server > ODBC to MSQL. I have a multi thread requesting client which connects via sockets to the server. The server kicks off multithread servelets which create a connection