What should i do the derby database can't be connected?

i downloaded the j2eetutorial of Sun ,and i practice the bank examples of J2EE platform, the other steps finished successfully according the pdf tutorial ,and formed the BankApp.ear ,but when i run the web client and the application client ,when accessed the database ,it can't show the data in the database.i try many times, but it still doesn't work ,what should i do ?please help me deal the problem,thank you very much.

the exception stack traces:
[#|2007-06-22T10:50:45.500+0800|WARNING|sun-appserver-pe8.2|javax.enterprise.system.container.ejb.entity.finder|_ThreadID=16;|JDO74004: Bean 'CustomerBean' method ejbFindByPrimaryKey:
com.sun.jdo.api.persistence.support.JDODataStoreException: JDO76400: Got a JDBC SQLException while executing the SQL statement:
SQL statement<select t0."CUSTOMERID", t0."PHONE", t0."STREET", t0."STATE", t0."EMAIL", t0."ZIP", t0."MIDDLEINITIAL", t0."FIRSTNAME", t0."CITY", t0."LASTNAME" from "CUSTOMERBEAN" t0 where t0."CUSTOMERID" = CAST (? AS VARCHAR(32672))> with input values:java.lang.String:200.
Please examine the SQLException for more information.
NestedException: org.apache.derby.client.am.SqlException: Table 'CUSTOMERBEAN' does not exist.
     at com.sun.jdo.spi.persistence.support.sqlstore.SQLStoreManager.throwJDOSqlException(SQLStoreManager.java:614)
     at com.sun.jdo.spi.persistence.support.sqlstore.SQLStoreManager.executeQuery(SQLStoreManager.java:448)
     at com.sun.jdo.spi.persistence.support.sqlstore.SQLStoreManager.retrieve(SQLStoreManager.java:345)
     at com.sun.jdo.spi.persistence.support.sqlstore.SQLStateManager.retrieve(SQLStateManager.java:2024)
     at com.sun.jdo.spi.persistence.support.sqlstore.SQLStateManager.reload(SQLStateManager.java:1162)
     at com.sun.jdo.spi.persistence.support.sqlstore.SQLStateManager.reload(SQLStateManager.java:1118)
     at com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerImpl.getObjectById(PersistenceManagerImpl.java:633)
     at com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerWrapper.getObjectById(PersistenceManagerWrapper.java:245)
     at com.sun.ebank.ejb.customer.CustomerBean1668466742_ConcreteImpl.ejbFindByPrimaryKey(CustomerBean1668466742_ConcreteImpl.java:538)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     at java.lang.reflect.Method.invoke(Method.java:585)
     at com.sun.enterprise.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:983)
     at com.sun.enterprise.security.SecurityUtil.invoke(SecurityUtil.java:147)
     at com.sun.ejb.containers.EntityContainer.invokeFindByPrimaryKey(EntityContainer.java:738)
     at com.sun.ejb.containers.EJBLocalHomeInvocationHandler.invoke(EJBLocalHomeInvocationHandler.java:181)
     at $Proxy27.findByPrimaryKey(Unknown Source)
     at com.sun.ebank.ejb.customer.CustomerControllerBean.getDetails(Unknown Source)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     at java.lang.reflect.Method.invoke(Method.java:585)
     at com.sun.enterprise.security.SecurityUtil$2.run(SecurityUtil.java:153)
     at java.security.AccessController.doPrivileged(Native Method)
     at com.sun.enterprise.security.application.EJBSecurityManager.doAsPrivileged(EJBSecurityManager.java:957)
     at com.sun.enterprise.security.SecurityUtil.invoke(SecurityUtil.java:158)
     at com.sun.ejb.containers.EJBObjectInvocationHandler.invoke(EJBObjectInvocationHandler.java:151)
     at $Proxy18.getDetails(Unknown Source)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     at java.lang.reflect.Method.invoke(Method.java:585)
     at com.sun.corba.ee.impl.presentation.rmi.ReflectiveTie._invoke(ReflectiveTie.java:123)
     at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatchToServant(CorbaServerRequestDispatcherImpl.java:648)
     at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatch(CorbaServerRequestDispatcherImpl.java:192)
     at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequestRequest(CorbaMessageMediatorImpl.java:1709)
     at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:1569)
     at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleInput(CorbaMessageMediatorImpl.java:951)
     at com.sun.corba.ee.impl.protocol.giopmsgheaders.RequestMessage_1_2.callback(RequestMessage_1_2.java:181)
     at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:721)
     at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.dispatch(SocketOrChannelConnectionImpl.java:469)
     at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.doWork(SocketOrChannelConnectionImpl.java:1258)
     at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:409)
NestedStackTrace:
org.apache.derby.client.am.SqlException: Table 'CUSTOMERBEAN' does not exist.
     at org.apache.derby.client.am.Statement.completeSqlca(Unknown Source)
     at org.apache.derby.client.net.NetStatementReply.parsePrepareError(Unknown Source)
     at org.apache.derby.client.net.NetStatementReply.parsePRPSQLSTTreply(Unknown Source)
     at org.apache.derby.client.net.NetStatementReply.readPrepareDescribeOutput(Unknown Source)
     at org.apache.derby.client.net.StatementReply.readPrepareDescribeOutput(Unknown Source)
     at org.apache.derby.client.net.NetStatement.readPrepareDescribeOutput_(Unknown Source)
     at org.apache.derby.client.am.Statement.readPrepareDescribeOutput(Unknown Source)
     at org.apache.derby.client.am.PreparedStatement.readPrepareDescribeInputOutput(Unknown Source)
     at org.apache.derby.client.am.PreparedStatement.flowPrepareDescribeInputOutput(Unknown Source)
     at org.apache.derby.client.am.PreparedStatement.prepare(Unknown Source)
     at org.apache.derby.client.am.Connection.prepareStatementX(Unknown Source)
     at org.apache.derby.client.am.Connection.prepareStatement(Unknown Source)
     at com.sun.gjc.spi.ConnectionHolder.prepareStatement(ConnectionHolder.java:362)
     at com.sun.jdo.spi.persistence.support.sqlstore.sql.generator.DBStatement.<init>(DBStatement.java:64)
     at com.sun.jdo.spi.persistence.support.sqlstore.SQLStoreManager.executeQuery(SQLStoreManager.java:419)
     at com.sun.jdo.spi.persistence.support.sqlstore.SQLStoreManager.retrieve(SQLStoreManager.java:345)
     at com.sun.jdo.spi.persistence.support.sqlstore.SQLStateManager.retrieve(SQLStateManager.java:2024)
     at com.sun.jdo.spi.persistence.support.sqlstore.SQLStateManager.reload(SQLStateManager.java:1162)
     at com.sun.jdo.spi.persistence.support.sqlstore.SQLStateManager.reload(SQLStateManager.java:1118)
     at com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerImpl.getObjectById(PersistenceManagerImpl.java:633)
     at com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerWrapper.getObjectById(PersistenceManagerWrapper.java:245)
     at com.sun.ebank.ejb.customer.CustomerBean1668466742_ConcreteImpl.ejbFindByPrimaryKey(CustomerBean1668466742_ConcreteImpl.java:538)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     at java.lang.reflect.Method.invoke(Method.java:585)
     at com.sun.enterprise.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:983)
     at com.sun.enterprise.security.SecurityUtil.invoke(SecurityUtil.java:147)
     at com.sun.ejb.containers.EntityContainer.invokeFindByPrimaryKey(EntityContainer.java:738)
     at com.sun.ejb.containers.EJBLocalHomeInvocationHandler.invoke(EJBLocalHomeInvocationHandler.java:181)
     at $Proxy27.findByPrimaryKey(Unknown Source)
     at com.sun.ebank.ejb.customer.CustomerControllerBean.getDetails(Unknown Source)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     at java.lang.reflect.Method.invoke(Method.java:585)
     at com.sun.enterprise.security.SecurityUtil$2.run(SecurityUtil.java:153)
     at java.security.AccessController.doPrivileged(Native Method)
     at com.sun.enterprise.security.application.EJBSecurityManager.doAsPrivileged(EJBSecurityManager.java:957)
     at com.sun.enterprise.security.SecurityUtil.invoke(SecurityUtil.java:158)
     at com.sun.ejb.containers.EJBObjectInvocationHandler.invoke(EJBObjectInvocationHandler.java:151)
     at $Proxy18.getDetails(Unknown Source)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     at java.lang.reflect.Method.invoke(Method.java:585)
     at com.sun.corba.ee.impl.presentation.rmi.ReflectiveTie._invoke(ReflectiveTie.java:123)
     at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatchToServant(CorbaServerRequestDispatcherImpl.java:648)
     at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatch(CorbaServerRequestDispatcherImpl.java:192)
     at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequestRequest(CorbaMessageMediatorImpl.java:1709)
     at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:1569)
     at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleInput(CorbaMessageMediatorImpl.java:951)
     at com.sun.corba.ee.impl.protocol.giopmsgheaders.RequestMessage_1_2.callback(RequestMessage_1_2.java:181)
     at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:721)
     at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.dispatch(SocketOrChannelConnectionImpl.java:469)
     at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.doWork(SocketOrChannelConnectionImpl.java:1258)
     at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:409)
|#]

Similar Messages

  • My apple wireless keyboard got wet a year ago i sprayed the cleaning spray on it some of the keys are working but some of the keys aren"t working. it got sprayed a year ago What should i do??? Can it be recovered plz tell?

    I sprayed it a year ago i really like the keyboard and i really need it can it be recovered??? My apple wireless keyboard got wet a year ago i sprayed the cleaning spray on it some of the keys are working but some of the keys aren"t working. it got sprayed a year ago What should i do??? Can it be recovered plz tell?

    There is almost no chance it can be recovered, except at a cost far greater than a new keyboard.  Once wet, spraying with a cleaner will not do any good and most likely will make the situation worse.
    Best thing at this point is go to your Apple store, or the on-line store, and buy a new keyboard.  Water damage is not covered by the warranty or AppleCare.

  • HT3275 My backup got interrupted and now when I try to backup I get the following message: The backup disk image "/Volumes/Data/Macintosh.sparsebundle" is already in use.  What should I do so that I can start backing up again?

    My backup got interrupted and now when I try to backup I get the following message: The backup disk image “/Volumes/Data/Macintosh.sparsebundle” is already in use.  What should I do so that I can start backing up again?

    1. Restart your MBP and try the back up again. If this fails try step #2 below
    2. Unplug your Time Capsule from the AC giving it thirty seconds or so to discharge, plug it back in and retry the back up again once you're back online.
    3. if step #1 and #2 fails, go here:
    http://pondini.org/TM/C12.html

  • I want to know what should do if the SPID : 12 Checkpoint is taking time.

    Hi Team,
    I want to know what should do if the SPID : 12 Checkpoint is taking time.
    I can't kill it also.
    Thanks

    It was taking quite long therefore I have pasted here the comments and there was a activity for database restore was pending on that database due to which I have to restart the instance service.
    If next time it will occur what should I do?
    Nothing you cannot do anything reason being it is system process. I guess i said same thing in my comment before. Its just there because system is running checkpoint. I upfront cannot suggest what you should do but I have seen this on many prod databases and
    it is normal. Dont restart SQL Server services if database is in middle of restore
    Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it
    My Technet Wiki Article
    MVP

  • Just got an Ipad and am working on setting it up.  the one issue I am having with it is my screen will not rotate no matter what I do to the settings, I can't figure out if the settings are wrong or if there really is something wrong with my Ipad.

    just got an Ipad and am working on setting it up.  the one issue I am having with it is my screen will not rotate no matter what I do to the settings, I can't figure out if I have a setting wrong or if there really is something wrong with my Ipad.  any help would be greatly appreciated.

    Double click the home button (square)  and all the things you did are there.keep sliding the bar that will come up on the bottom to the left till it cant go anymore there should be a icon looking like this.press that and it should work
    Good luck hope it works.

  • I have no profile on iPad, I'm doing presentation and I can't launch applications.what should I do. How I can have a profile in settings-general-profile

    I have no profile on iPad, I'm doing presentation and I can't launch applications.what should I do. How I can have a profile in settings-general-profile

    Profiles are installed using the Apple IPhone Configuration Utility. See http://manuals.info.apple.com/en_US/Enterprise_Deployment_Guide.pdf
    Also read: http://support.apple.com/kb/ht4213

  • What to do about "The application 'Safari' can't be opened" -1712 ?

    What to do about: "The application 'Safari' can't be opened   -1712"?

    http://www.justanswer.com/mac-computers/6yvn0-cannot-open-safari-i-mac-keeps-say -safari-unexpectly.html

  • The sound of the ringtone is of lower quality than any other. I've tested it, and its happens to more people. What's it's the solution? Can I communicate this problem to apple?

    The sound of the ringtone is of lower quality than any other. I've tested it, and its happens to more people. What's it's the solution? Can I communicate this problem to apple?

    You can let Apple know here - http://www.apple.com/feedback/

  • I have a uk iTunes account but have moved to the Netherlands and can no longer connect to the iStore from my iPad. Do I need to update my iTunes account to a Dutch one?

    I have a uk iTunes account but have moved to the Netherlands and can no longer connect or make purchases. Do I need to change my account to a Dutch one?

    You can't transfer any content from one account to another account (nor can accounts be merged) - all content will remain tied to the account that downloaded it.
    Do you not have copies of all of your downloads e.g. on your computer or backup of your downloads/library ? Whilst you are in Australia you can't redownload your UK purchases (you have to be in a country to use its store), if you have them on your computer's iTunes library then you should be able to stream them from it to your Apple TV

  • I have the iPhone4 and ever since I updated the phone, I can no longer connect it to my iHome (iD8)

    I have the iPhone4 and ever since I updated the phone, I can no longer connect it to my iHome (iD8)

    Yes, they told me I should contact apple, but apple hasn't helped me either! The iHome has worked perfectly all along and it still is working it has power just will not connect anymore to play my music.

  • Should i keep the battery on when it is connected to the AC

    hello
    i have a question:
    my macbook is always vonnected to the ac,, i don't move it around"seldom"
    so i'm owndering,,will this affect my battery,,
    should i keep the battery on when it is connected to the AC?
    or should i remove it?
    thanks in advance

    Hi multiple 1,
    Modern battery technology now prevent battery becoming overcharged or create memory effect, so like First Magus said, it is ok to leave the battery in your macbook all the time.
    But apple also recommend user to use their battery once a while or calibrate to refresh the battery cell.
    Good Luck.

  • My daughter sold me this iPad now when I update instead of it using my appleid and password it always tries to use hers! I can't update or do anything important with my own appleid what should I do! And she can't remember the password she

    MY daughter sold me this iPad! When I go to update it always tries to use her appleid instead of mine!! She has forgot the password to this account what should I do! Because it says it's hooked up to my Id but when I try to update itsail ways says her I'd information

    Is this when updating apps or the iPad's iOS version ? If apps then any apps that your daughter downloaded onto the iPad will be tied to her account, so only her account can download updates to those apps (you would need to delete the apps and buy/download them with your own account to be able to download future updates to them with your account) then she could try getting her password reset via http://iforgot.apple.com
    If you are trying to update the iOS version on it and she's left it tied to her iCloud account then with iOS 7 and activation lock only her account will be able to re-activate the iPad. She can try getting her password reset via the above iforgot link.

  • Limiting the Amount of Memory the WSUS Database Can Use

    Have installed GERMAN WS2012 R2 Essentials and have added plus configered WSUS role. Have "unfortunately" installed ENGLISH SQL Server Management Studio. Have connected Management Studio to
    \\.\pipe\MICROSOFT##WID\tsql\query with  Windows Authentication, can browse Databases ... BUT when right clicking the server's name and selecting Properties to limit the amount of Memory WSUS Database can use after
    a while returns with error stating "cannot show requested dialog because failed to retrieve data for this request as the System could not find the requested file":
    Cannot show requested dialog.
    ADDITIONAL INFORMATION:
    Cannot show requested dialog. (SqlMgmt)
    Failed to retrieve data for this request. (SqlManagerUI)
    For help, click:
    http://go.microsoft.com/fwlink?ProdName=Microsoft%20SQL%20Server&LinkId=20476
    An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)
    A severe error occurred on the current command.  The results, if any, should be discarded.
    'RegQueryValueEx()' hat den Fehler '2', 'Das System kann die angegebene Datei nicht finden.' zurückgegeben. (Microsoft SQL Server, Error: 0)
    For help, click:
    http://go.microsoft.com/fwlink?ProdName=Microsoft%20SQL%20Server&ProdVer=11.00.2100&EvtSrc=MSSQLServer&EvtID=0&LinkId=20476
    ==> The suggested Help links aren't really helping ... What file? Where?
    ==>==> Maybe I'm in troubles because of the language mix?
    ==>==>==>Any Chance to set the memory limitations via PS Script? 

    Hi,
    à
    Any Chance to set the memory limitations via PS Script?
    Please use
    osql command-line to check if can help you. For more details, please refer to following article.
    WSUS-Limit SQL (Windows
    Internal Database) memory
    Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft
    does not guarantee the accuracy of this information.
    à
    when right clicking the server's name and selecting Properties to limit the amount of Memory WSUS Database can use after a while returns with error stating "cannot show
    requested dialog because failed to retrieve data for this request as the System could not find the requested file"
    On current situation, I’m also guess that this issue (above error message) may be caused by different language
    versions (GERMAN Windows Sserver 2012 R2 Essentials and
    ENGLISH SQL Server Management Studio).
    If any update, please feel free to let me know.
    Hope this helps.
    Best regards,
    Justin Gu

  • Am owe and i want to Payment of debt what should i do the gift card

    I bought some app from my iphone via credit card and after a period has been suspended my account and I can not download more because i owe 9$ i tried to change the credit card he told me : please contact itunes support to complete this transaction and i tried to buy a itunes
      giftcard he told me not suitable for your country what should i do to solve this problem and download more app again ???

    Please explain wha typu mean by "locked". Is it locked to another carrier? Did you forget a passcode? Is it asking for an Apple ID that is not yours? The answer to your question depends on what type of lock you are seeing.

  • Help!What should I handle the selectionListenner of my Tree.

    In our project,The gui is divided into two parts by a splitpane.In left part,there is a tree which lists many functions by leaf nodes,the right part will show the data needed.I want to add a new module to the right part when one tree node is clicked.When another node is clicked then another component will be added.
    What should I do with the selectionListener to guarantee adding the correct module into right part associated to the corresponding function node?

    Hi,
    You need to create your own component X (say extending JPanel) and
    add the following to the listener method.
    JRootPane itsParent = y.getRootPane();
    //y is the current instance of X
    itsParent.getContentPane().remove(y);
    x = new X(); //(A new instance of X)
    getContentPane().add(x);
    validate();
    Of course you have to put logic to verify that y exists, before removing it.
    Hope this helps.
    Surath Rath.
    Houston,TX
    04/28/2003

Maybe you are looking for

  • Error when loggong on for external ID "": Error during SAML 2.0 logon

    Hi, I'm getting be below error when trying to use SAML SSO for a ABAP Webdynpro page on a NW 7.4 system. When I access the page, it redirects to the identity provider, comes back to the page and it shows the logon page. I'm looking for any ideas of t

  • After updating to ios 7.0.3 my wifi has been DISABLED and BLUETOOTH. Need help

    I need some help. How can I fix my iPhone4s? Yesterday I updated my ios to the newest version using my handset. And then early morning while using it the wifi suddenly turned off. I restarted my handset but still the same. The wifi still disabled. I'

  • Reports in SAP SRM

    The client I am working with is on SAP SRM 7.01 with a standalone scenario. Only when the invoice is posted and 3-way match is done, the follow-on documents are created in SAP. This is severely limiting the client to run reports in SAP SRM for day to

  • Can a subquery be nested more than 2 levels in oracle 10g

    hi can a subquery be nested more than 2 levels in oracle..10g thank u rajiv Message was edited by: user500763

  • Error in the forum software

    I noticed this before, decided to mention it this time. I can't find the right forum to mention this, but maybe someone knows where to forward it. I just tried to post a followup to my own message by replying to myself. I wanted to clarify my origina