database access

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • drsmooth
    New Member
    • Oct 2007
    • 112

    #16
    because the output doesnt seem to be working correctly...als o a new exception comes up before the closing DB exception:

    Code:
    java.sql.SQLSyntaxErrorException: Lexical error at line 1, column 33.  Encounter
    ed: "\u2019" (8217), after : "".
            at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknow
    n Source)
            at org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsForTransport
    AcrossDRDA(Unknown Source)
            at org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(Unkn
    own Source)
            at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Unknown Source
    )
            at org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException
    (Unknown Source)
            at org.apache.derby.impl.jdbc.TransactionResourceImpl.handleException(Un
    known Source)
            at org.apache.derby.impl.jdbc.EmbedConnection.handleException(Unknown So
    urce)
            at org.apache.derby.impl.jdbc.ConnectionChild.handleException(Unknown So
    urce)
            at org.apache.derby.impl.jdbc.EmbedStatement.execute(Unknown Source)
            at org.apache.derby.impl.jdbc.EmbedStatement.execute(Unknown Source)
            at DataBaseReader.main(DataBaseReader.java:25)
    Caused by: java.sql.SQLException: Lexical error at line 1, column 33.  Encounter
    ed: "\u2019" (8217), after : "".
            ... 11 more
    Press any key to continue...

    Comment

    • drsmooth
      New Member
      • Oct 2007
      • 112

      #17
      actually it seems the tutorial i copied it from used a wierd form of single quote...i fixed the problem thanks for all youre help...im gonna try and help out the begginer-ish questions on this forum if i can...im quite a noob myself though :(

      im off to work on writing objects to the DB, hopefully i wont be starting any threads soon lol

      Comment

      Working...