wood burning stoves 2.0*
The moose likes JDBC and the fly likes JDO Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "JDO" Watch "JDO" New topic
Author

JDO

Thiru Narayanan
Greenhorn

Joined: Apr 30, 2001
Posts: 23
There is an exception when using Sybase with the JDO engine availabe with Forte4J. Can anybody suggest some solution to this please?
The exception that we get :::
*******************************
NestedException: com.sybase.jdbc.SybSQLException: ASA Error -131: Syntax error near ' '
FailedObjectArray: [com.eq.smile.models.Exercise@1050be] at
com.sun.forte4j.persistence.internal.runtime.core.SqlStore.executeSql (SqlStore.java:741) at
com.sun.forte4j.persistence.internal.runtime.core.SqlStore.update(SqlStore.java:2085)at com.sun.forte4j.persistence.internal.runtime.core.SqlStore.execute(SqlStore.java:424) at com.sun.forte4j.persistence.internal.runtime.core.SqlStateManager.updatePersistent SqlStateManager.java:885) at com.sun.forte4j.persistence.internal.runtime.jdo.PersistenceManagerImpl.beforeCompletion PersistenceManagerImpl.java:805) at com.sun.forte4j.persistence.internal.runtime.jdo.PersistenceManagerImpl.internalFlush (PersistenceManagerImpl.java:1209) at com.sun.forte4j.persistence.internal.query.QueryImpl.flush(QueryImpl.java:459) at com.sun.forte4j.persistence.internal.query.QueryImpl.execute(QueryImpl.java:336)
*******************************
From the Help Documentation of Sybase, the error no. 131(error no. stated in the exception ), states that these type of error occurs only when the field name is a keyword, but we don't use any keywords as field names in the table.
Hi,
What happened to the initial hype of JDO? I thought some 6 months back JavaRanch Saloon would have seperate JDO section.
Still many of the products are in beta and no supports of even the available products!
Anybody has some inside info?
Matt Horton
Ranch Hand

Joined: Feb 06, 2002
Posts: 107
Thiru, I believe I received the same error a few weeks ago, while writing an empty string to a field. When I changed any empty strings to null values, jdo persisted the objects fine.
I hope this helps...
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: JDO
 
Similar Threads
HELP..!! Problem with SybPreparedStatement.addBatch
Lowdown on JDO 2?
Problem with openJPA
Problem in using JDO with Sybase - URGENT!!!
Problem with openJpa