Useing toplink jpa in jdev11 and mysql4,but meet the DatabaseException

Hello everyone,I'm useing toplink jpa in jdev11 and mysql4.I create a class from database success.Then I use "Java Service Facade" to create a class called JavaServiceFacade sucess.Then I add some code:
System.out.println(javaServiceFacade.queryCnationalityFindAll().size())
in main
then I run the program,but I got this error:
xception in thread "main" Local Exception Stack:
Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2.0 (Build b41-beta2 (03/30/2007))): oracle.toplink.essentials.exceptions.DatabaseException
Internal Exception: java.sql.SQLException: [Microsoft][ODBC 驱动程序管理器] 未发现数据源名称并且未指定默认驱动程序
Error Code: 0
     at oracle.toplink.essentials.exceptions.DatabaseException.sqlException(DatabaseException.java:290)
     at oracle.toplink.essentials.sessions.DefaultConnector.connect(DefaultConnector.java:87)
     at oracle.toplink.essentials.sessions.DatasourceLogin.connectToDatasource(DatasourceLogin.java:170)
     at oracle.toplink.essentials.internal.databaseaccess.DatasourceAccessor.connect(DatasourceAccessor.java:218)
     at oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.connect(DatabaseAccessor.java:227)
     at oracle.toplink.essentials.internal.databaseaccess.DatasourceAccessor.connect(DatasourceAccessor.java:294)
     at oracle.toplink.essentials.threetier.ConnectionPool.buildConnection(ConnectionPool.java:102)
     at oracle.toplink.essentials.threetier.ConnectionPool.startUp(ConnectionPool.java:324)
     at oracle.toplink.essentials.threetier.ServerSession.connect(ServerSession.java:443)
     at oracle.toplink.essentials.internal.sessions.DatabaseSessionImpl.login(DatabaseSessionImpl.java:571)
     at oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider.login(EntityManagerFactoryProvider.java:208)
     at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:212)
     at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.getServerSession(EntityManagerFactoryImpl.java:78)
     at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:111)
     at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:105)
     at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:76)
     at project6.JavaServiceFacade.getEntityManager(JavaServiceFacade.java:23)
     at project6.JavaServiceFacade.queryCnationalityFindAll(JavaServiceFacade.java:72)
     at project6.JavaServiceFacade.main(JavaServiceFacade.java:18)
Caused by: java.sql.SQLException: [Microsoft][ODBC 驱动程序管理器] 未发现数据源名称并且未指定默认驱动程序
     at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6958)
     at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:7115)
     at sun.jdbc.odbc.JdbcOdbc.SQLDriverConnect(JdbcOdbc.java:3074)
     at sun.jdbc.odbc.JdbcOdbcConnection.initialize(JdbcOdbcConnection.java:323)
     at sun.jdbc.odbc.JdbcOdbcDriver.connect(JdbcOdbcDriver.java:174)
     at java.sql.DriverManager.getConnection(DriverManager.java:525)
     at java.sql.DriverManager.getConnection(DriverManager.java:140)
     at oracle.toplink.essentials.sessions.DefaultConnector.connect(DefaultConnector.java:85)
     ... 17 more
there's some chinese you may not know,that means there's something wrong with
Microsoft odbc.I'm puzzle of that:I'm useing java+mysql,why there's wrong with odbc???
thank you very much
(maybe it's jdev11 technical preview edition so it can't work?)

HI
can you reply the feedback of metalink? because I'm having similar problem.
I debug in junit and embebbed at the jdev and it works well, but when I deploy in a standalone oc4j it gives me the same error of Excepção de E/S: The Network Adapter could not establish the connection
And I'm not using 11g, I'm still in 10g but the problem might be the same.
cumps
DnlCY
null

Similar Messages

  • Why it is so slow using toplink JPA in applet or webstart

    I use jpa in the applet,but it is too slow to initialize the toplink jpa.
    It takes about 80 seconds to execute this method:
    EntityManagerFactory factory=Persistence.createEntityManagerFactory("unit");
    The applet/webstart has the security authorization.
    I even modify the java.policy file to give the applet AllPermission.
    How could I fix this?
    thx for u help.
    with regards

    To test if it is jpa's problem.
    I create a new desktop project and didn't use toplink JPA.
    It performace good. But if I use JPA in this project.It became so slow.
    as I said before. I have give the programme authorization to run.
    Can anyone help.
    Even when I change to openJPA.It just performace a little faster.
    cause the project is nearly finished,I can't replace JPA in the project.It cost too much time that I can't afford.
    I don't know what is the problem.
    Please help.
    thank you.

  • I recently moved and I got a new sim but I still use my old sim. I want to use both numbers for iMessage and FaceTime but i have absolutely no idea how to do it! please help me!

    I recently moved and I got a new sim but I still use my old sim. I want to use both numbers for iMessage and FaceTime but i have absolutely no idea how to do it! please help me! I have a macbook pro and iphone 5

    lewbobber wrote:
    Basically i need to either take it to a shop that can unlock i.e. £40.00
    Be aware, you go that route & every time you try to update or restore, it will error out, leaving your phone unusable. Not to mention, you void all warranty/support.
    Sell it & use the proceeds towards an officially unlocked iPhone bought directly from Apple.
    Good luck.

  • What's a good video app to use? I have iPhoto and iMovie, but they won't let me email a video. I also want to be able to make a dvd of my home movies. Any suggestions?

    What's a good video app to use? I have iPhoto and iMovie, but it these wont let me do certain things, such as email a video. I also want to be able to make a dvd of my home movies. Any suggestions?

    Unless you want a new computer, forget about AVCHD. It requires too much muscle to edit comfortably on anything but the fastest computer.
    What camera is nice, depends on your budget. Formats that are easy to edit are HDV, DVCProHD (P2) and XDCAM. In the consumer range you could look at the Canon HV40 or XH-A1s, in the prosumer range look at the Panasonic AG-HPX170, Canon XH-H1s, JVC GY-ND250 or Sony HVR Z5 or Z7 and all Sony XDCAM cameras, especially the EX1 and EX3. In the professional range look at the Sony PDW-F355 or upward.

  • I tried updating iphone 6 to 8.1.3 But the phone went dead. I have tried using restore options - both update and erase, but the process stops when it tries to update Iphone firmware.

    I tried updating iphone 6 to 8.1.3 But the phone went dead. I have tried using restore options - both update and erase, but the process stops when it tries to update Iphone firmware.

    Put your phone in DFU mode,
    Hold the Power Button (3 secs)
    Continue holding the power button and also hold the home button (15 secs)
    Release the power button while continuing to hold the home button (10 secs)
    Your device should prompt with the "Connect to iTunes Screen"
    Restore.

  • Why did the new update for my macbook air hinder my ability to use my camera for google  and skype but not photobooth or facetime??? This is messed up it was working yesterday and now neither google  or facetime can find a camera on from my mac?

    Why did the new update for my macbook air hinder my ability to use my camera for google  and skype but not photobooth or facetime??? This is messed up it was working yesterday and now neither google  or skype can find a camera on from my mac? what do I do??

    An update for same is coming.
    Theres a patch for same, see here:
    https://discussions.apple.com/thread/5306216?tstart=30

  • How do I continue to use Mail on my MacBook2? i use iCloud on my iPhone and iPad but cannot receive my Mail account on my older MacBook.

    how do I continue to use Mail on my MacBook2? i use iCloud on my iPhone and iPad but cannot receive my Mail account on my older MacBook. I have followed the iCloud/move link as suggested but it doesn't give me the continue to use Mail option. Any help gratefully received.

    Welcome to the Apple Community.
    Delete your mail account from Mail preferences and set it up again using the Mail Server Information.
    Some users have apparently encountered issues using this information in pre-Lion set ups (I haven't), Roger Wilmut has kindly provided instructions for those who find themselves with this problem.
    Entering iCloud email settings manually in Snow Leopard or Leopard

  • HT204053 How does my spouse get the benefits of using my iCloud for contacts and calanders but not messages, etc?

    How does my spouse get the benefits of using my iCloud for contacts and calanders but not messages, etc?

    iCloud is designed for personal use and not for managing multiple access.  If you gives your password to someone else, this person can benefit everything including access to purchase with your account, email, etc.
    You should rather consider having each one an iCloud account and then, create and share a calendar.  As for contact, you can send them to your spouse to be save in her account but they cannot be shared nor synced.

  • How do I make a photo black and white but leave the color of her dress and flowers?

    I am trying to make one of my granddaughters prom pictures black and white but leave the color of her dress and flowers. Can someone tell me how this is done?

    evam1012
    What program are you using - Photoshop Elements or Premiere Elements, what version, and on what computer operating system is it running?
    If you are using Photoshop Elements and not Premiere Elements, you have posted in the wrong forum. In that case, you want to post in the Adobe Photoshop Elements Forum. Somehow your thread got posted in the Adobe Premiere Elements Forum (video editing).
    Photoshop Elements
    If your program is Premiere Elements, I will give you a how to for what you want to do using Premiere Elements for your video project.
    We will be watching for more information from you.
    Thanks.
    ATR

  • How to use an external hard drive and copy files to the disk for mac and windows??

    please tell me how to copy files to external hard disk and use it for both mac and windows. there is the fat32 formatting bt i dont wanna use formatting because i already have a lot of content on the exteral hard disk. thank you.

    It is simplest to have the HDD formatted to noe common to both Mac an PC.  ExFAT is one.  But to do that will erase all data on the HDD.
    If the HDD id formatted NTFS, Mac can read but not write to it.  The solution then is to use a third party application such as Paragon or Tuxera which will overcome that obstacle.  These applications do have mixed reviews.
    Ciao.

  • I forgot my Firefox Sync username and password but have the sync code. Will that allow me to recover my bookmarks? I don't have access to the original computer in sync.

    I forgot my Firefox Sync username and password but have the sync code. Will that allow me to recover my bookmarks? I don't have access to the original computer in sync.

    You need at least the email address that you used to create that account to reset the password.
    *https://services.mozilla.com/

  • Can I use my dad's computer and library to sync the new ringtone to my phone or no?

    I am on vacation and am trying to download a different ringtone to my iPhone but since my home computer is a desktop and at home I am on my dad's computer and want to know if it is possible to sync a ringtone to my iPhone through my dad's computer.  When I open up iTunes it is his library and I know there is no way to access my library but i downloaded the ringtone to his library and don't know what will happen if I try to sync.  I don't want to because I don't know if it will put his information and music and apps on my phone and put all of my iPhone stuff on his computer.  Essentially, can I use my dad's computer and library to sync the new ringtone to my phone or no? If so then how?

    If you sync with his it will erase everything you put on your iPhone from your desktop computer and replace it with everything from your dad's computer.
    I'd recommend waiting until you get home.

  • I uninstalled and reinstalled but at the end of installation there were erros.  See attached screen shot.  I now cannot open the application.  error code 10810 comes up when I try to open.

    I could not update photoshop CS6 and Jeff from forum advised unistalling and reinstalling (Tk93580659). Mac OSX. In real trouble, as suggested I uninstalled and reinstalled but at the end of installation there were errors.  See attached screen shot.  Now I cannot open the application.  Error code 10810 comes up when I try to open (see 2nd screenshot).  Please help.  I have now lost photoshop altogether whereas previous at least I still could use it but could not update.  Thank you for any help to instal successfully.  Dr Koh

    Still looking for a solution to specific installation errors (see screeshot) referring to "Language Pack installation failure":
    ERROR: DW050: The following payload errors were found during install:
    ERROR: DW050: - Adobe Photoshop CS6 Core: Failed due to Language Pack installation failure
    ERROR: DW050: - Adobe Photoshop CS6 International English Language Pack_AdobePhotoshop13-en_GB: Install failed
    Unfortunately previous advice of using CCS cleaner tool, and suggestions from links for 1) "exit code 6 and 7" and 2) "Troubleshoot instal logs" did not work at all. So I am desparate to fix this because I have spent a lot of money purchasing Photoshop CS6 but have no functioning program. Surely Adobe can help solve this problem with installing, or else it means a lot of money spent on Photoshop CS6 for nothing. I am appealing directly to Adobe to help because I have come to the end of my options. I thank the forum for their suggestions but so far the solution for this specific "Language Pack installation failure" problem is missing. Thank you.
    Dr Koh

  • Using Sansung S3, not yet possible to share all the open tabs (using NFC) with another NFC phone. But only the one main tab I am currently browsing is possible.

    Using Sansung S3, Android 4.1.2, Firefox 24.0; not yet possible to share all the open tabs (using NFC) with another NFC phone. But only the one main tab I am currently browsing is possible to share. Is this the feature of current NFC feature of Firefox?
    If so, when will there be feature to share all the tabs?
    Thanks.

    I'm not sure if we will implement this. Sharing all the tabs you have open have many more security and privacy issues. Someone forgets that they had a tab open they did not want to share or miss-clicks on the share all option.
    We are looking into better ways to share tabs with devices that are nearby. Especially if they are on the same WiFi network.

  • Can I use an iPad, iPad mini and iPod touch on the same apple account?

    Can I use an iPad, iPad Mini and iPod touch on the same account?  Is there a limit to how many devices I can use?

    When you turn on your iDevice for the first time just sign in with the same Apple ID and you can download any apps you have purchased in the past! There shouldn't be a limit to how many devices you can use.

Maybe you are looking for

  • I need copies of in app purchase receipts

    Can someone please tell me how I can get copies of past in app purchases from iTunes? I can't seem to figure it out and I really need them. Thanks in advance for you help! Valorie

  • Connectivity - Oracle 8i with Developer 6.0 - Urgent

    How do i Connect Developer 6.0 with Oracle8i ? When i am installing Developer 6.0 it takes a different Oracle Home Directory not the Oracle Database Home Directory. Please reply. Very Urgent Thank u Vaskar

  • CQ41-207UA upgrade im a newbie

    Hi To All, I just bought my CQ41-207UA with a 250GB drive, I was wondering if it is possible for me to upgrade and place a 500GB Sata drive? Thank you very much

  • How to tell which version boot camp?

    It's such a simple question - *How can I tell which version of Boot Camp my machine is running right now?* - but the answer is oh so elusive... Get Info on the partition doesn't tell me, About This Mac More Info neither (unless I don't know where to

  • Can anyone help me with my 7370?

    Hello My screen has broken on my phone (7370) and they are replacing the phone tommorrow but I have a problem in that I have all my contacts stored on the phone and I need them on the SIM. The phone still works fine, so what I'm asking is: Can anyone