[CDO] Exception when using ' in Strings [message #619105] |
Fri, 30 May 2008 13:27 |
Marc Moser Messages: 66 Registered: July 2009 |
Member |
|
|
Hi,
I get an exception when trying to save a sesource that contains ' in a
string. I noticed this behavior because I tried to import an existing
resource into the CDO repository. The resource works fine in EMF, and
it correctly imports to CDO, but I get an SQL exception (see below)
when trying to save the resource in CDO.
Am I missing a configuration feature of CDO (or Derby) or is this a
bug? I'm currently using CDO with embedded-derby.
Best,
Marc
[ERROR] java.sql.SQLSyntaxErrorException: Syntax error: Encountered
"s" at line 1, column 76.
org.eclipse.net4j.db.DBException: java.sql.SQLSyntaxErrorException:
Syntax error: Encountered "s" at line 1, column 76.
at
org.eclipse.emf.cdo.server.internal.db.ClassMapping.sqlUpdat e(ClassMapping.java:178)
at
org.eclipse.emf.cdo.server.internal.db.ClassMapping.writeAtt ributes(ClassMapping.java:494)
at
org.eclipse.emf.cdo.server.internal.db.ClassMapping.writeRev ision(ClassMapping.java:450)
at
org.eclipse.emf.cdo.server.internal.db.HorizontalClassMappin g.writeRevision(HorizontalClassMapping.java:37)
at
org.eclipse.emf.cdo.server.internal.db.DBStoreWriter.writeRe vision(DBStoreWriter.java:200)
at
org.eclipse.emf.cdo.internal.server.StoreAccessor.writeRevis ions(StoreAccessor.java:197)
at
org.eclipse.emf.cdo.internal.server.StoreAccessor.commit(Sto reAccessor.java:116)
at
org.eclipse.emf.cdo.server.internal.db.DBStoreWriter.commit( DBStoreWriter.java:51)
at
org.eclipse.emf.cdo.internal.server.Transaction.commit(Trans action.java:179)
at
org.eclipse.emf.cdo.internal.server.protocol.CommitTransacti onIndication.indicating(CommitTransactionIndication.java:109 )
at
org.eclipse.net4j.signal.IndicationWithResponse.execute(Indi cationWithResponse.java:46)
at org.eclipse.net4j.signal.Signal.runSync(Signal.java:143)
at org.eclipse.net4j.signal.Signal.run(Signal.java:124)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unkno wn Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown
Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.sql.SQLSyntaxErrorException: Syntax error: Encountered
"s" at line 1, column 76.
at
org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLExcep tion(Unknown
Source)
at
org.apache.derby.impl.jdbc.Util.generateCsSQLException(Unkno wn Source)
at
org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQL Exception(Unknown
Source)
at
org.apache.derby.impl.jdbc.TransactionResourceImpl.handleExc eption(Unknown
Source)
at
org.apache.derby.impl.jdbc.EmbedConnection.handleException(U nknown
Source)
at
org.apache.derby.impl.jdbc.ConnectionChild.handleException(U nknown
Source)
at org.apache.derby.impl.jdbc.EmbedStatement.execute(Unknown
Source)
at
org.apache.derby.impl.jdbc.EmbedStatement.executeUpdate(Unkn own
Source)
at
org.eclipse.emf.cdo.server.internal.db.ClassMapping.sqlUpdat e(ClassMapping.java:174)
... 15 more
Caused by: java.sql.SQLException: Syntax error: Encountered "s" at
line 1, column 76.
at
org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLExcepti on(Unknown
Source)
at
org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsFor TransportAcrossDRDA(Unknown
Source)
... 24 more
Caused by: ERROR 42X01: Syntax error: Encountered "s" at line 1,
column 76.
at
org.apache.derby.iapi.error.StandardException.newException(U nknown
Source)
at
org.apache.derby.impl.sql.compile.ParserImpl.parseStatement( Unknown
Source)
at
org.apache.derby.impl.sql.GenericStatement.prepMinion(Unknow n Source)
at org.apache.derby.impl.sql.GenericStatement.prepare(Unknown
Source)
at
org.apache.derby.impl.sql.conn.GenericLanguageConnectionCont ext.prepareInternalStatement(Unknown
Source)
... 18 more
|
|
|
Powered by
FUDForum. Page generated in 0.04030 seconds