I am getting the following error when accessing a database, where the OJB
tables have not been defined.
Is there a way to run OJB in memory for a specific database and at the same
time on the database for anoter one ?
(I.E. I need to access two databases at the same time, but only one has OBJ
installed and I cannot install it on the other).
Platform dependent initialization of connection failed: Incorrect syntax
near the keyword 'temporary.
at
org.apache.ojb.broker.accesslayer.ConnectionFactoryPooledImpl.getConnectionFromPool(Unknown
Source)
at
org.apache.ojb.broker.accesslayer.ConnectionFactoryAbstractImpl.lookupConnection(Unknown
Source)
at
org.apache.ojb.broker.accesslayer.ConnectionManagerImpl.getConnection(Unknown
Source)
... 11 more
Caused by: org.apache.ojb.broker.accesslayer.LookupException: Platform
dependent initialization of connection failed: Incorrect syntax near the
keyword 'temporary'.
at
org.apache.ojb.broker.accesslayer.ConnectionFactoryAbstractImpl.initializeJdbcConnection(Unknown
Source)
at
org.apache.ojb.broker.accesslayer.ConnectionFactoryAbstractImpl.newConnectionFromDriverManager(Unknown
Source)
at
org.apache.ojb.broker.accesslayer.ConnectionFactoryPooledImpl$ConPoolFactory.makeObject(Unknown
Source)
at
org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:710)
... 14 more
Caused by: org.apache.ojb.broker.platforms.PlatformException: Incorrect
syntax near the keyword 'temporary'.
at
org.apache.ojb.broker.platforms.PlatformSybaseImpl.initializeJdbcConnection(Unknown
Source)
... 18 more
Caused by: com.sybase.jdbc2.jdbc.SybSQLException: Incorrect syntax near the
keyword 'temporary'.
at com.sybase.jdbc2.tds.Tds.processEed(Tds.java:2538)
at com.sybase.jdbc2.tds.Tds.nextResult(Tds.java:1922)
at
com.sybase.jdbc2.jdbc.ResultGetter.nextResult(ResultGetter.java:69)
at
com.sybase.jdbc2.jdbc.SybStatement.nextResult(SybStatement.java:201)
at
com.sybase.jdbc2.jdbc.SybStatement.nextResult(SybStatement.java:182)
at
com.sybase.jdbc2.jdbc.SybStatement.updateLoop(SybStatement.java:1611)
at
com.sybase.jdbc2.jdbc.SybStatement.executeUpdate(SybStatement.java:1594)
at
com.sybase.jdbc2.jdbc.SybStatement.executeUpdate(SybStatement.java:411)
Regards,
Patrick Reyes
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]