Results 1 to 2 of 2

Thread: Why Is my connection to DB breacking?

  1. #1
    PAUL12 is offline Registered User
    Name: paul muntean
    Organization: Personal
    Project: Android testing
    Join Date
    Nov 2011
    Posts
    12

    Why Is my connection to DB breacking?

    Hy,

    I connect from my Android App to a server and then I trye to insert data in a Oracle 10g DB.
    Server console output.
    Code:
    -- 12/11/11 14:09:18:759 demo.Database.library.Server: SQLRequestContext: commit context: library.SQLRequestContext@27a36a2
    Request connection for env 1
    -- 12/11/11 14:09:18:884 demo.Database.library.Server: ConnectionPool: returning connection: oracle.jdbc.driver.T4CConnection@2598c6f3 3/5 remaining
    -- 12/11/11 14:09:18:884 demo.Database.library.Server: SQLRequestContext: create new context: library.SQLRequestContext@512d8ecd thread: Thread[Ice.ThreadPool.Server-4,5,main]: connection: oracle.jdbc.driver.T4CConnection@2598c6f3
    Ok.
    0 connections are available in cache MYCACHE
    8 connections are active
    Request connection for env 2
    -! 12/11/11 14:09:18:970 demo.Database.library.Server: warning: Ice.ThreadPool.Server-2: ConnectionPool: lost connection to database:
       java.sql.SQLSyntaxErrorException: ORA-00923: FROM keyword not found where expected
       
       	at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:445)
       	at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:396)
       	at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:879)
       	at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:450)
       	at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:192)
       	at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:531)
       	at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:207)
       	at oracle.jdbc.driver.T4CPreparedStatement.executeForDescribe(T4CPreparedStatement.java:884)
       	at oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStatement.java:1167)
       	at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1289)
       	at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3584)
       	at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3628)
       	at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeQuery(OraclePreparedStatementWrapper.java:1493)
       	at library.ConnectionPool.acquire(ConnectionPool.java:72)
       	at library.SQLRequestContext.<init>(SQLRequestContext.java:77)
       	at library.DispatchInterceptorI.dispatch(DispatchInterceptorI.java:21)
       	at Ice.DispatchInterceptor.__dispatch(DispatchInterceptor.java:43)
       	at IceInternal.Incoming.invoke(Incoming.java:159)
       	at Ice.ConnectionI.invokeAll(ConnectionI.java:2357)
       	at Ice.ConnectionI.dispatch(ConnectionI.java:1208)
       	at Ice.ConnectionI.message(ConnectionI.java:1163)
       	at IceInternal.ThreadPool.run(ThreadPool.java:302)
       	at IceInternal.ThreadPool.access$300(ThreadPool.java:12)
       	at IceInternal.ThreadPool$EventHandlerThread.run(ThreadPool.java:643)
       	at java.lang.Thread.run(Unknown Source)
       
    -- 12/11/11 14:09:18:971 demo.Database.library.Server: ConnectionPool: establishing new database connection
    Ok.
    0 connections are available in cache MYCACHE
    8 connections are active
    Request connection for env 3
    Ok.
    0 connections are available in cache MYCACHE
    8 connections are active
    Request connection for env 4
    Ok.
    0 connections are available in cache MYCACHE
    8 connections are active
    Request connection for env 5
    Ok.
    0 connections are available in cache MYCACHE
    8 connections are active
    -- 12/11/11 14:09:19:341 demo.Database.library.Server: SQLRequestContext: commit context: library.SQLRequestContext@512d8ecd
    -- 12/11/11 14:09:19:439 demo.Database.library.Server: ConnectionPool: returning connection: oracle.jdbc.driver.T4CConnection@5fa5e5e 2/5 remaining
    -- 12/11/11 14:09:19:439 demo.Database.library.Server: SQLRequestContext: create new context: library.SQLRequestContext@78497062 thread: Thread[Ice.ThreadPool.Server-2,5,main]: connection: oracle.jdbc.driver.T4CConnection@5fa5e5e
    Request connection for env 1
    -! 12/11/11 14:09:19:524 demo.Database.library.Server: warning: Ice.ThreadPool.Server-3: ConnectionPool: lost connection to database:
       java.sql.SQLSyntaxErrorException: ORA-00923: FROM keyword not found where expected
       
       	at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:445)
       	at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:396)
       	at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:879)
       	at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:450)
       	at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:192)
       	at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:531)
       	at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:207)
       	at oracle.jdbc.driver.T4CPreparedStatement.executeForDescribe(T4CPreparedStatement.java:884)
       	at oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStatement.java:1167)
       	at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1289)
       	at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3584)
       	at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3628)
       	at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeQuery(OraclePreparedStatementWrapper.java:1493)
       	at library.ConnectionPool.acquire(ConnectionPool.java:72)
       	at library.SQLRequestContext.<init>(SQLRequestContext.java:77)
       	at library.DispatchInterceptorI.dispatch(DispatchInterceptorI.java:21)
       	at Ice.DispatchInterceptor.__dispatch(DispatchInterceptor.java:43)
       	at IceInternal.Incoming.invoke(Incoming.java:159)
       	at Ice.ConnectionI.invokeAll(ConnectionI.java:2357)
       	at Ice.ConnectionI.dispatch(ConnectionI.java:1208)
       	at Ice.ConnectionI.message(ConnectionI.java:1163)
       	at IceInternal.ThreadPool.run(ThreadPool.java:302)
       	at IceInternal.ThreadPool.access$300(ThreadPool.java:12)
       	at IceInternal.ThreadPool$EventHandlerThread.run(ThreadPool.java:643)
       	at java.lang.Thread.run(Unknown Source)
       
    -- 12/11/11 14:09:19:524 demo.Database.library.Server: ConnectionPool: establishing new database connection
    Ok.
    After some 800 records writen the connection breacks. Every time after 800 +/- 50 entryes the connection is lost.
    I use a connection pool manager. What am I doing wrong?
    Connection pool manager code is here.
    Code:
    http://www.rgagnon.com/javadetails/java-0545.html
    Please help

  2. #2
    xdm's Avatar
    xdm
    xdm is offline ZeroC Staff
    Name: Jose Gutierrez de la Concha
    Organization: ZeroC, Inc.
    Project: Ice Developer
    Join Date
    Sep 2003
    Location
    La Coruņa, Spain
    Posts
    588
    From the stack trace you posted is clear that this is an SQL syntax error in the query.

    Code:
       java.sql.SQLSyntaxErrorException: ORA-00923: FROM keyword not found where expected
    But that isn't an Ice related problem, probably your code doesn't correctly handle exceptions and the error propagates to other parts of your code.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 4
    Last Post: 12-17-2009, 10:12 AM
  2. Replies: 4
    Last Post: 03-01-2008, 10:24 PM
  3. icegridnode DB
    By mwilson in forum Help Center
    Replies: 1
    Last Post: 05-09-2007, 09:26 AM
  4. How can I get all Objects in evictor db?
    By Yunqiao Yin in forum Help Center
    Replies: 2
    Last Post: 02-10-2006, 03:21 AM
  5. Replies: 5
    Last Post: 03-25-2004, 05:58 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •