Uploaded image for project: 'Cayenne'
  1. Cayenne
  2. CAY-2574

FronBase integration issues

Agile BoardRank to TopRank to BottomAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsAdd voteVotersWatch issueWatchersCreate sub-taskConvert to sub-taskLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 4.0.1, 4.1.B1
    • None
    • Database integration
    • None
    • FronBase

    Description

      Here are known problems with FronBase DB integration in Cayenne:

      • FronBase jdbc driver incorrectly returns null instead of statement (or throwing SQLException at least) when connection.prepareStatement(sql, Statement.NO_GENERATED_KEYS) is called.
        We have simple workaround for this: just call connection.prepareStatement(sql). But it would be better if driver could do this for us, and there could be other places that do not follow JDBC specification as we can't run all tests, see second issue.
      • Driver randomly hangs on socket read operation, see attached image for stack trace.
        This happens on every run of Cayenne tests (see short instructions below)

      Short instructions for running Cayenne tests against FrontBase DB:

      • install FB JDBC driver to local maven repo
        $ mvn install:install-file -Dfile=frontbasejdbc.jar -DgroupId=com.frontbase \
               -DartifactId=frontbase-driver -Dversion=4.1 -Dpackaging=jar -DgeneratePom=true
        
      • clone Cayenne repo
        $ git clone https://github.com/apache/cayenne.git
        $ cd cayenne
        
      • run tests
        $ mvn verify -DcayenneTestConnection=frontbase \
           -DcayenneAdapter=org.apache.cayenne.dba.frontbase.FrontBaseAdapter \
           -DcayenneJdbcUsername=_system \
           -DcayenneJdbcUrl=jdbc:frontbase://localhost/test \
           -DcayenneJdbcDriver=com.frontbase.jdbc.FBJDriver
        

      See additional details here
       

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            ntimofeev Nikita Timofeev

            Dates

              Created:
              Updated:

              Slack

                Issue deployment