Field Guide 8 - Configuring the Database but problems with user id

Iam just running into problem after problem with Chapter 8 dataproviders when I'am about 2/3 of the way through.
I'am now trying to configure the "Login Data Structure" Page 363. After adding the derbyclient.jar file. Then opening DerbyLogin.java and thereafter clicking "Run" as instructed in the book I get this error.
Error on url jdbc:derby://localhost:21527/sample
ERROR: SQLException: Connection authorization failure occurred. Reason: userid invalid.
org.apache.derby.client.am.SqlException: Connection authorization failure occurred. Reason: userid invalid.
at org.apache.derby.client.net.NetConnection.mapSecchkcd(Unknown Source)
at org.apache.derby.client.net.NetConnection.securityCheckComplete(Unknown Source)
at org.apache.derby.client.net.NetConnectionReply.parseSECCHKRM(Unknown Source)
at org.apache.derby.client.net.NetConnectionReply.parseSECCHKreply(Unknown Source)
at org.apache.derby.client.net.NetConnectionReply.readSecurityCheck(Unknown Source)
at org.apache.derby.client.net.NetConnection.readSecurityCheckAndAccessRdb(Unknown Source)
at org.apache.derby.client.net.NetConnection.flowSecurityCheckAndAccessRdb(Unknown Source)
at org.apache.derby.client.net.NetConnection.flowUSRIDONLconnect(Unknown Source)
at org.apache.derby.client.net.NetConnection.flowConnect(Unknown Source)
at org.apache.derby.client.net.NetConnection.<init>(Unknown Source)
at org.apache.derby.jdbc.ClientDriver.connect(Unknown Source)
at java.sql.DriverManager.getConnection(DriverManager.java:525)
at java.sql.DriverManager.getConnection(DriverManager.java:193)
at asg.databuild.DerbyLoginDB.createLoginDatabase(DerbyLoginDB.java:52)
at asg.databuild.DerbyLoginDB.<init>(DerbyLoginDB.java:38)
at asg.databuild.DerbyLoginDB.main(DerbyLoginDB.java:25)
BUILD SUCCESSFUL (total time: 5 seconds)
It's telling me that user ID is invalid. I have no idea what my db user id is or how I can check it with the bundled database as there is no documentation I have found about that. Nor do I even know what I have to do to properly configure this app to properly work with the bundled database as the field guide says absolutely nothing about this!Message was edited by:
tutorials

Found a solution to this problem for anyone else having the same problem please go to thread: http://forum.sun.com/jive/thread.jspa?forumID=123&threadID=99634

Similar Messages

  • Problem configuring TassieDB database to work with JBoss Servlets + EJB app

    Hi everybody
    I have been unable to get Budi Kurniawan's Tassie Onine Bookstore example (
    http://benmira.free.fr/en/j2ee/sessionEJB.htm#ch29lev1sec4) application to read anything from the database TassieDB . I am not sure what is wrong. I downloaded the database from the CD. Then since this was an older version of Access, I had to let my Access convert it to the newer form.
    I then configured the Database the way I thought I should in order for it to work. I created a Data Source Name called TassieDB, by following the procedure to create a System DSN on Windows. I selected the Microsoft Access Driver and associated my Database which I named TassieDB1, which I deposited under C:\budibookstore which also contains the package com.brainysoftware.tassie.servlet.ejb
    When I access the SearchServlet page and type in "Computer" in the search box nothing turns up. I wonder what is going on?
    The following errors are spewed out by Apache in this process:
    May 18, 2005 8:27:24 PM org.apache.coyote.http11.Http11Protocol init
    INFO: Initializing Coyote HTTP/1.1 on http-8080
    Starting service Tomcat-Standalone
    Apache Tomcat/4.1.31
    May 18, 2005 8:27:28 PM org.apache.struts.util.PropertyMessageResources
    INFO: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=tru
    e
    May 18, 2005 8:27:28 PM org.apache.struts.util.PropertyMessageResources
    INFO: Initializing, config='org.apache.struts.action.ActionResources', returnNul
    l=true
    May 18, 2005 8:27:29 PM org.apache.struts.util.PropertyMessageResources
    INFO: Initializing, config='org.apache.webapp.admin.ApplicationResources', retur
    nNull=true
    May 18, 2005 8:27:33 PM org.apache.coyote.http11.Http11Protocol start
    INFO: Starting Coyote HTTP/1.1 on http-8080
    May 18, 2005 8:27:33 PM org.apache.jk.common.ChannelSocket init
    INFO: JK2: ajp13 listening on /0.0.0.0:8009
    May 18, 2005 8:27:33 PM org.apache.jk.server.JkMain start
    INFO: Jk running ID=0 time=10/150 config=C:\tomcatj\conf\jk2.properties
    javax.naming.NoInitialContextException: Cannot instantiate class: org.jnp.interf
    aces.NamingContextFactory [Root exception is java.lang.ClassNotFoundException: o
    rg.jnp.interfaces.NamingContextFactory]
    javax.naming.NoInitialContextException: Cannot instantiate class: org.jnp.interf
    aces.NamingContextFactory [Root exception is java.lang.ClassNotFoundException: o
    rg.jnp.interfaces.NamingContextFactory]
    All help is gratefully acknowledged and accepted. Thanks in advance

    Hi
    Did you notyfy the Exception ?
    class not found Exception "org.jnp.interfaces.NamingContextFactory"
    add these packages to your class path.
    Vinoth

  • Verify that the database is created with the correct path  specification

    Dear All
    When I installed DB2 9.1 with SP4 on windows 2003 64 bit,I use Configuration Assistant tool which is problem
    SQL1031N  The database directory cannot be found on the indicated file system.  SQLSTATE=58031
    Explanation:
    The system database directory or local database directory could
    not be found.  A database has not been created or it was not
    cataloged correctly. 
    The command cannot be processed. 
    User Response:
    Verify that the database is created with the correct path
    specification.  The Catalog Database command has a path parameter
    which specifies the directory where the database resides. 
    sqlcode :  -1031
    sqlstate :  58031
    Thanks

    Hi Phuc,
    Could you please validate, that the database TST is located in driver H: ?
    If the database is there, you find a directory with the name of your instance under the H: drive, inside this directory, you must find a NODE0000 directory and finally inside the NODE0000 directory there must be a SQL0000? directory, where ? is a number.
    You get your instance name from the environment variable DB2INSTANCE or simply by the execution of:
    db2 get instance
    If there is no SQL0000? directory at all, this means the database is located somewhere else.
    If there is SQL0000? directory in that drive, you can perform the following:
    db2 CATALOG DB TST AS TST ON H:
    And provide the error message, if any.
    Hope this helps
    Best regards, Edgardo

  • I moved from an old macbook to a new one.  I copied all my files onto a hard drive.  On trying to setup my mail, i went into documents, microsoft user identities, office 2011 and it shows the database but wont let me select it.  Urgent help pls

    I moved from an old macbook to a new one.  I have installed Office for Mac 2011. I copied all my files from my old notebook onto a hard drive.  On trying to setup my mail, i went into my hard drive and accessed microsoft user identities, office 2011 and it shows the database but wont let me select it.  Its almost as if the file is there but not accessable.  I desperately need to access my old mail.  How do I do this?  I am fairly confident that I copied all files off my old notebook.  Is there a way for me to search for the Database file?  Maybe I copied it to a different location?  Urgent help please.

    Hello mafrerichs and welcome to Apple Support Communities,
    Simplest way is to use Target Disk mode:
    How to use and troubleshoot FireWire target disk mode - Apple Support
    and hook to another Mac and use CCC or SuperDuper and clone your HD to another drive.
    You could also pull the drive out of your MBP and use an external USB case or SATA - USB dongle to hook it to another Mac.
    "MacBook Pro (15-inch Late 2011),... have a 15" 2012 Macbook pro with 2gb of ram, i7 processor"
    That's a little confusing?

  • I have an account in Adobe, but every time I work out on any product from Adobe products The program tells me I Trail You remove and re-install the program, but problem persists

    I have an account in Adobe, but every time I work out on any product from Adobe products
    The program tells me I Trail You remove and re-install the program, but problem persists

    Hi mahmod alsousi,
    Try this:
    Sign out from the Creative Cloud app and Quit it (Quit option will be available after a few seconds).
    Now move the following folders to desktop:
    1) SLCache
    Windows: OS Drive\Program Files (x86)\Common Files\Adobe
    Mac: Library/Application Support/Adobe
    2) SLStore
    Windows: OS drive\ProgramData\Adobe
    Mac: Library/Application Support/Adobe
    3) OOBE
    Windows: OS Drive\Users\<username>\AppData\Local\Adobe
    Mac: /User/Library/Application Support/Adobe
    Now launch Premiere Pro and sign in with your Adobe ID.
    NOTE: Make sure your Anti Virus/Firewall is not blocking any Adobe activation servers. Alternately, you can also check your 'hosts' file for any changes.
    Thanks,
    Rameez

  • How to configure the database monitoring (DBA Cockpit) after Support pack

    Hi,
    I did the Support Pack Upgrade for BW system and i ran SGEN as well, now i need to configure the database , could you please suggest how to configure the database monitoring (DBA Cockpit) after Support Pack Upgrade.
    Server is MSSQL , Component is SAP NetWeaver 2004s and OS is Windows NT.
    Plesae suggest.
    Chandu.

    Hi,
    You are right. SAP delivers this functionality from SP-12. So when you have applied the SP-12, you must have done these config steps to enable the DBA Cockpit.
    If you have done these steps earlier, So you must have DBA Cockpit enable right now and putting extra SPs like 13, 14 and so on, should not be a matter.
    Now if you have not performed those config steps before, Please do them now and you will be able to use DBA cockpit.
    Please understand that SP12 is the base to run DBA Cockpit.
    With Regards,
    Saurabh

  • Knwoing the database was started with which pfile/spfile

    hello to everyone,
    Actually, a question that crossed my mind and I wondered if it's possible in Oracle.
    For an already started database, is there a way to know the database was started with which pfile/spfile? Is there a view that tells this for example.
    Many thnx.
    H Hiruya

    If spfile parameter is null, then you can look for a
    pfile with the name convention of
    init<ORACLE_SID>.ora.Yes, you can, but that won't tell you anything about which pfile was used to start the instance. I can just as easily type:
    startup pfile=/my/pfile/that/does/not/conform/to/any/naming/standard
    There's no way to definitively determine which pfile was used to start an instance.
    -Mark

  • Solution to the "Disappearing Comments" problem with shared reviews

    I've been having repeated problems with users losing their comments on shared reviews, hosted on my webDAV server. After tearing my hair out for days, I wanted to share the simple fix to this issue, plus another tip:
    DON'T USE PERIODS OR SPACES IN FILE NAMES. Use hyphens and underscores instead.
    Illegal characters seem to gradually corrupt the file to the point where potentially every comment can get overwritten with a blank .xml file, permanently losing all your comments.
    My wish to Adobe is that they would put a pop-up warning at the time of saving a file for shared reviews, something to the effect of:
    "WARNING! saving a shared file with a space or a period could result in data corruption when shared over network drives or webDAV. Do you want to replace illegal characters with underscores?"
    My other tip is this:
    If using a webDAV server as I am, be sure to use the IP address rather than the domain name when specifying the location of the server.

    With all the issues you describe, I would search for something conflicting with Mountain Lion.
    Have you booted into Safe Mode and checked to see if it works correctly there? It will take a while to boot, and it will run a bit slow, so just look for the issues you described above. If they don't appear, you've got something installed that is causing the issues.

  • How to get the field type from the database dictionary in screen painter

    hi,
    I wanted to create a new input field that input field should have the data element from the structure that i have created. How to get the data field type from the database dictionary in the screen painter

    hi
    good
    there is two kinds of evernt
    PROCESS ON HELP-REQUEST
    PROCESS ON VALUE-REQUEST.
    which ll help you to give two types of help one is f1 help and another one is f4 help
    go through this link
    http://help.sap.com/saphelp_nw2004s/helpdata/en/47/e07f622b9911d2954f0000e8353423/content.htm
    thanks
    mrutyun

  • HT1766 The screen shows problems with iCloud only choices are ignore or settings, however nothing I do will unlock it from this screen, cannot power off keeps that bubble on the screen. What do I do?

    The screen shows problems with iCloud only choices are ignore or settings, however nothing I do will unlock it from this screen, cannot power off keeps that bubble on the screen. What do I do?

    Try this now.
    Reboot the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons.

  • Assign access for the database to None with maxl?

    I need to assign access to the database to none with maxl. Any help will be appreciated. <img src="i/expressions/beer.gif" border="0">

    Do you mean setting the minimum access permission on the database?<BR>For that the command is 'alter database 'Sample'.'Basic' set minimum permission no_access;'<BR><BR>If you want to prevent users from logging on to the database then use something like<BR>'alter application 'Sample' disable connects;'<BR><BR>HTH<BR>

  • Is there a fix yet for the no sound problem with lion on the iMac without having to restart every time I switch the computer on?

    Is there a fix yet for the no sound problem with lion on the iMac without having to restart every time I switch the computer on?

    Try booting in Safe Mode by holding the the shift key immediately after powering on your system. Safe boot mode will for a directory check of your startup volume, then load only the required kernal extensions (kext files), and deletes some cache files. Once the system boots into Safe Mode you can simply restart the system to see whether the issue has been resolved.
    If you still have the issue try resetting the SMC by shutting down the system and disconnecting the power cord for ~15 seconds, then reconnecting the power cord. Next, reset the parameter RAM (PRAM) by holding down the option-option-P-R keys after powering ON the system. Wait until the iMac restarts twice, then let the system boot normally.

  • [ACTION] Please configure the following virtual path with your web listener: /jinitia

    Hi Guys,
    Would kindly suggest me. How to solve this following setting? From the documentation, I could not understand, which file or where should I do the following configuration.
    [ACTION] Please configure the following virtual path with your web listener: /dev60temp for
    physical directory C:\ORACLE\iSuites\tools\web60\temp.
    [ACTION] Please configure the following virtual path with your web listener: /forms60java for
    physical directory C:\ORACLE\iSuites\FORMS60\java.
    [ACTION] Please configure the following virtual path with your web listener: /dev60html for
    physical directory C:\ORACLE\iSuites\tools\web60\html.
    [ACTION] Please configure the following virtual path with your web listener: /dev60cgi for
    physical directory C:\ORACLE\iSuites\tools\web60\cgi.
    [ACTION] Please configure the following virtual path with your web listener: /jinitiator for
    physical directory C:\ORACLE\iSuites\JINIT
    I appreciate your information and help.
    Thanks,
    Amit

    Hi,
    while applying developer 6i patch ( 61954129 ) i got following error which says configure the following virtual path for your web listener
    following is the output of forms6iconfig.txt file which oracale suggest to check
    Do you mean (Patch 6194129)? How do you get this error? Is it at the beginning or the end of the installation?
    Configuration Steps for Oracle Forms installation of 06:21:33 2010/12/01
    This file gives details of the configuration steps done for you by the installation process
    (marked '[INFO]') and of any actions you need to do manually (marked '[ACTION]'). Please read
    this file and perform the requested actions.
    [ACTION] If you are installing in a new Oracle Home, please reboot the machine after the installation.
    [ACTION] Please configure the following virtual path with your web listener: /dev60temp for
    physical directory D:\CLONE\cloneora\8.0.6\tools\web60\temp.
    [INFO] NT service Oracle Forms Server [Forms60Server] has been created and started for
    the Forms Server.
    [ACTION] Please configure the following virtual path with your web listener: /forms60java for
    physical directory D:\CLONE\cloneora\8.0.6\FORMS60\java.
    [ACTION] Please configure the following virtual path with your web listener: /dev60html for
    physical directory D:\CLONE\cloneora\8.0.6\tools\web60\html.
    [ACTION] Please configure the following virtual path with your web listener: /dev60cgi for
    physical directory D:\CLONE\cloneora\8.0.6\tools\web60\cgi.
    [INFO] An internet shortcut to run a standard test form, or any form of your choice, has been
    created for you in the Oracle Forms program group.
    [ACTION] Please configure the following virtual path with your web listener: /jinitiator for
    physical directory D:\CLONE\cloneora\8.0.6\JINIT.Please make sure you source the application env file before applying this patch, and select 8.0.6 ORACLE_HOME.
    Thanks,
    Hussein

  • Is there a way to have the Reply To field appear on the Addresses page along with To., CC, and Bcc?

    Using Mail with Mavericks, is there a way to have the Reply To field appear on the Addresses page along with the To, CC and BCC fields?

    Click the little popup menu button next to from and select it:

  • Update the database table inside an user exit.

    Hi Experts,
    I have a issue where i have to update a custom table in an User exit.
    I am using Lock object for ENQUE/DEQUE.
    I have tried to use statements like UPDATE/MODIFY inside the user exit.
    But the problem is that it's not updating the database table at the same time.
    I know if i use COMMIT WORK it can update at the same time but it's not advisable to use COMMIT inside a work.and also it gives a short dump.
    The real issue is that this custom table is read for batch creation at the same time for different users.
    Now if it the program does not update the database table at the same time then other users also read the same data and create the same Batch number..
    While requirement is to create a different/unique batch numbers.
    Program is updating the table but it's taking time..so in between other users are creating the same batch number.
    Please guide me what would be the best solution for this.
    Regards,
    Amit Kumar Singh

    Thanks for your quick reply.
    My actually requirement is like that.
    I have to create a Process Order using tcode COR1.
    After passing some input value it goes inside an User Exit.
    There one Custom table is maintained which stores some fields like month,year,numeric key field,etc.
    The new batch number is created using the combination of these table fields.
    Once a new batch number is created it increment the numeric key field number by one.
    Issue is we have to update this new numeric field value into the database field so that other users can read a diffrent numeric field value.hence it will create a new/different batch number.
    Here i am not able to update the database table inside this User Exit.
    Table is geeting updated but after some time and out of this User Exit.
    Please suggest what's required in that case?
    Regards,
    Amit Kumar Singh
    Edited by: Amit  Singh on Feb 3, 2009 11:33 AM

Maybe you are looking for

  • HP Smart Web Printing interfering with Internet Explorer

    Hello - I have a new dv7-4183cl notebook and I just added a new Photosmart C310 wireless printer. When I added the printer, I installed all of the programs included on the installation disc. Since then, I'm having a very annoying problem with the mou

  • How do I re install the OS from scratch?

    I have a MacBook Pro Retina with OS X 10.8.3 and I'm curious how does it work if my OS crashes and I need to reinstall?  Or if the hard drive goes bad?  As we all know there is no CD or DVD drive on this machine.  I read this article http://www.macwo

  • Video downloaded directly to iPhone stops during playback

    I downloaded a video from the iTunes store directly to my iPhone 3Gs. Now during playback, it stops at a particular point and will not continue playing. Of I try to drag the scrubber forward in the video, it snaps back to the point where it stopped.

  • Upgrading PowerMac G4 to the MAX for video production?????

    I need to know if I can just upgrade my Power Mac G4 (AGP graphics) to the max for video production? I'll be using 4 main programs. 1. Final Cut Studio 2 2. After Affects 3. Protools 4. Photoshop CS 3 Final Cut recommends this for all applications: *

  • Patch 125202-01 wrongly recommended for Sparc4u architectures

    Patch 125202-01 will not apply to a V480 host running Solaris 10 (08/2007). I ran it manually and it complained that it was for the sparc.v4 architectures. It should not have been recommended.