kodo.util.UserException: com.solarmetric.jdbc.ReportingSQLException: Syntax error or access violation, message from server: "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1" {prepstmnt 3338151 SELECT COUNT(?) FROM [reused=0]} [code=1064, state=42000]

Oracle Community | 3004 | 1 decade ago
  1. 0

    count(1) problem

    Oracle Community | 1 decade ago | 3004
    kodo.util.UserException: com.solarmetric.jdbc.ReportingSQLException: Syntax error or access violation, message from server: "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1" {prepstmnt 3338151 SELECT COUNT(?) FROM [reused=0]} [code=1064, state=42000]
  2. 0

    Group by clause corresponding to a reference field

    Oracle Community | 1 decade ago | 3004
    java.lang.reflect.InvocationTargetException
  3. 0

    Webstart Issue

    Oracle Community | 1 decade ago | 3004
    com.solarmetric.jdbc.ReportingSQLException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]The column prefix 't3' does not match with a table name or alias name used in the query. {prepstmnt 1710895 SELECT DISTINCT t0.id_i, t0.classtype_id_vc, t0.rowversion_i, t0.active_b, t0.imagemimetype_vc, t0.lastupdated_dt, t0.newsdate_dt, t0.relatedurl_vc, t0.title_vc, t0.lastupdatedby_person_id_i, t0.postedby_person_id_i, t4.id_i, t4.rowversion_i, t4.active_b, t4.birthday_dt, t4.cellphone_vc, t4.created_dt, t4.createdby_person_id_i, t4.encryptedpassword_vc, t4.fax_vc, t4.firstname_vc, t4.hired_dt, t4.homephone_vc, t4.im_vc, t4.lastmodified_dt, t4.lastmodifiedby_person_id_i, t4.lastname_vc, t4.maincorrelat_organization_id_i, t4.middlename_vc, t4.nickname_vc, t4.officephone_vc, t4.primaryEmail_vc, t4.secondaryEmail_vc, t4.title_vc, t4.username_vc, t4.website_vc FROM cor.t_news t0 INNER JOIN cor.t_map_newsitem_organization t1 ON t0.id_i = t1.newsitem_id_i LEFT OUTER JOIN cor.t_person t2 ON t0.postedby_person_id_i = t2.id_i LEFT OUTER JOIN cor.t_person t4 ON t3.postedby_person_id_i = t4.id_i WHERE (t0.active_b = ? AND t0.newsdate_dt >= ? AND t1.organization_id_i = ?) AND t0.classtype_id_vc = ?} [code=107, state=HY000]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Kodo v4.0.0EA2 Bugs List

    Oracle Community | 1 decade ago | 3004
    com.solarmetric.jdbc.ReportingSQLException: ERROR: relation "kodo_sequence_table" does not exist {prepstmnt 31538514 SELECT SEQUENCE_VALUE FROM KODO_SEQUENCE_TABLE WHERE ID = ? FOR UPDATE [reused=0]} [code=0, state=42P01]
  6. 0

    Query under Transaction Exception....

    Oracle Community | 1 decade ago | 3004
    com.solarmetric.jdbc.ReportingSQLException: DB2 SQL error: SQLCODE: -511, SQLSTATE: 42829, SQLERRMC: null {prepstmnt 107840951 SELECT t0.GROUPSETTINGID, t0.ALLOWDRAW, t0.ALLOWSTRIKE, t0.ALLOWTRANSFER, t0.ASCENDONLY, t0.AUTOAPPROVE, t0.BARVISIBLE, t0.DEFAULTLEVELNAME, t0.LASTMODIFY, t0.MAXDRAW, t0.MAXRECHARGE, t0.MAXROWS, t0.MAXSTRIKE, t0.MAXTRANSFER, t0.MINDRAW, t0.MINRECHARGE, t0.MINSTRIKE, t0.MINTRANSFER, t0.GROUPID, t0.RECHARGEABLE, t0.USERTYPEMODIFICATION FROM OLTP.GROUPSETTING t0 INNER JOIN OLTP.ORGANGROUP t1 ON t0.GROUPID = t1.GROUPID WHERE (t1.GROUPID = ?) FOR UPDATE [reused=0]} [code=-511, state=42829]

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. com.solarmetric.jdbc.ReportingSQLException

      Syntax error or access violation, message from server: "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1" {prepstmnt 3338151 SELECT COUNT(?) FROM [reused=0]} [code=1064, state=42000]

      at com.solarmetric.jdbc.LoggingConnectionDecorator.wrap()
    2. com.solarmetric.jdbc
      DelegatingPreparedStatement.executeQuery
      1. com.solarmetric.jdbc.LoggingConnectionDecorator.wrap(LoggingConnectionDecorator.java:124)
      2. com.solarmetric.jdbc.LoggingConnectionDecorator.access$600(LoggingConnectionDecorator.java:19)
      3. com.solarmetric.jdbc.LoggingConnectionDecorator$LoggingConnection$LoggingPreparedStatement.executeQuery(LoggingConnectionDecorator.java:708)
      4. com.solarmetric.jdbc.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:352)
      4 frames
    3. kodo.jdbc.runtime
      JDBCStoreManager$CancelPreparedStatement.executeQuery
      1. kodo.jdbc.runtime.JDBCStoreManager$CancelPreparedStatement.executeQuery(JDBCStoreManager.java:1707)
      1 frame
    4. com.solarmetric.jdbc
      DelegatingPreparedStatement.executeQuery
      1. com.solarmetric.jdbc.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:339)
      1 frame
    5. kodo.jdbc.sql
      Select.execute
      1. kodo.jdbc.sql.Select.execute(Select.java:1568)
      2. kodo.jdbc.sql.Select.execute(Select.java:1520)
      2 frames
    6. kodo.jdbc.runtime
      SelectResultObjectProvider.open
      1. kodo.jdbc.runtime.SelectResultObjectProvider.open(SelectResultObjectProvider.java:102)
      1 frame
    7. kodo.query
      AbstractQuery.execute
      1. kodo.query.AbstractQuery$PackingResultObjectProvider.open(AbstractQuery.java:2968)
      2. kodo.query.AbstractQuery.getSingleResult(AbstractQuery.java:1111)
      3. kodo.query.AbstractQuery.execute(AbstractQuery.java:1050)
      4. kodo.query.AbstractQuery.executeWithArray(AbstractQuery.java:836)
      5. kodo.query.AbstractQuery.execute(AbstractQuery.java:793)
      5 frames
    8. de.adtech.helios
      WebsiteAdminTest.testEntityListSize
      1. de.adtech.helios.test.WebsiteAdminTest.testEntityListSize(WebsiteAdminTest.java:1097)
      1 frame
    9. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:324)
      4 frames
    10. JUnit
      TestSuite.run
      1. junit.framework.TestCase.runTest(TestCase.java:154)
      2. junit.framework.TestCase.runBare(TestCase.java:127)
      3. junit.framework.TestResult$1.protect(TestResult.java:106)
      4. junit.framework.TestResult.runProtected(TestResult.java:124)
      5. junit.framework.TestResult.run(TestResult.java:109)
      6. junit.framework.TestCase.run(TestCase.java:118)
      7. junit.framework.TestSuite.runTest(TestSuite.java:208)
      8. junit.framework.TestSuite.run(TestSuite.java:203)
      8 frames
    11. JUnit3 Runner
      RemoteTestRunner.main
      1. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:421)
      2. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:305)
      3. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:186)
      3 frames