Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8096022

DataApp sample will not run

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 8
    • 7u21
    • javafx
    • JDK7u21

        First, I got the following error when trying to run DataAppLoader:

        Failed to execute: INSERT INTO user VALUES ('localhost','dataapp','*B974A83D18BB105D0C9186756F485406E6E6039B','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','','','','',0,0,0,0,'',NULL)
        /Users/Steven/Documents/javafx-samples-2.2.21/src/DataApp/DataAppLoader/build.xml:84:
        java.sql.SQLException: Column count doesn't match value count at row 1

        The following one-line patch for build.xml fixes this:

        --- <html>build.xml (<b>Today 12:33:42 PM</b>)</html>
        +++ <html><b>Current File</b></html>
        @@ -84,7 +84,7 @@
                         >
                     DELETE FROM user WHERE User = 'dataapp';
                     DELETE FROM db WHERE User = 'dataapp';
        - INSERT INTO user VALUES ('localhost','dataapp','*B974A83D18BB105D0C9186756F485406E6E6039B','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','','','','',0,0,0,0,'',NULL);
        + INSERT INTO user VALUES ('localhost','dataapp','*B974A83D18BB105D0C9186756F485406E6E6039B','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','','','','',0,0,0,0,'',NULL,'N');
                     INSERT INTO db VALUES ('localhost','APP','dataapp','Y','Y','Y','Y','Y','Y','N','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','N','Y');
                     DROP DATABASE IF EXISTS APP;
                     CREATE DATABASE APP;

        Then, I could not deploy DataAppServer because the EJB Timer Service wasn't available. The steps described here fixed this: http://stackoverflow.com/questions/13292473/set-configure-the-ejb-timer-services-datasource. In my case, "your JDBC Resource" was jdbc/dataapp

              dmasada Debra Masada (Inactive)
              simpejfx Steven Van Impe (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported: