Jtds driver creating deadlocks

hi
I have a strange problem i am using jtds driver and have SPs in database i am using SQL server.
i.e.
storeprocedureOne[ select the rows from database]
storeprocedureTne[ delete the rows from database]
both SPs are called using different connection object and different statement object i mean to say both are called by different function but sometimes they are creating deadlocks and i don't understand why.
if anyone have an idea plz let me know
thanks in advance

Here's the problem I'm having. Every time I try to use DriverManager.getConnection, I get the message "No suitable driver". This is some basic code I wrote just to check the driver...
Class.forName("com.internetcds.jdbc.tds.Driver");
String url = "jdbc:freetds:sqlserver://scartin:1433"; 
Connection conn = DriverManager.getConnection(url,"admin","admin");   I have the .jar file in my classpath, and i'm pretty sure the URL is right, but like i said previously, I can't find any documentation on it at all.
Thanks
Simon

Similar Messages

  • JTDS driver

    I want to connect Netweaver DataBase Server (sqlserver 2000 in my case)using jTDS driver. can anybody help me in creating a datasource  in visual administrator for sql server using jTDS driver. I tried to create a datasource using jTDS in visual admin for sql server, I got the following error:
    java.rmi.RemoteException: Error occurred while starting application in whole cluster and wait.; nested exception is:
         com.sap.engine.services.deploy.exceptions.ServerDeploymentException: Clusterwide execption: server ID 3584050:Cannot create DataSource "testdb".
         at com.sap.engine.services.deploy.server.DeployCommunicatorImpl.startApplicationAndWait(DeployCommunicatorImpl.java:679)
         at com.sap.engine.services.deploy.server.DeployCommunicatorImpl.startApplicationAndWait(DeployCommunicatorImpl.java:661)
         at com.sap.engine.services.dbpool.deploy.DataSourceManagerImpl.startApplication(DataSourceManagerImpl.java:562)
         at com.sap.engine.services.dbpool.deploy.DataSourceManagerImpl.deploy(DataSourceManagerImpl.java:261)
         at com.sap.engine.services.dbpool.deploy.DataSourceManagerImpl.createDataSource(DataSourceManagerImpl.java:317)
         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:324)
         at com.sap.pj.jmx.introspect.DefaultMBeanInvoker.invoke(DefaultMBeanInvoker.java:58)
         at com.sap.pj.jmx.mbeaninfo.AdditionalInfoProviderMBean.invoke(AdditionalInfoProviderMBean.java:289)
         at com.sap.pj.jmx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:944)
         at com.sap.pj.jmx.server.interceptor.MBeanServerWrapperInterceptor.invoke(MBeanServerWrapperInterceptor.java:288)
         at com.sap.engine.services.jmx.CompletionInterceptor.invoke(CompletionInterceptor.java:400)
         at com.sap.engine.services.jmx.RedirectInterceptor.invoke(RedirectInterceptor.java:340)
         at com.sap.pj.jmx.server.interceptor.MBeanServerInterceptorChain.invoke(MBeanServerInterceptorChain.java:330)
         at com.sap.engine.services.jmx.MBeanServerSecurityWrapper.invoke(MBeanServerSecurityWrapper.java:287)
         at com.sap.engine.services.jmx.MBeanServerInvoker.invokeMbs(MBeanServerInvoker.java:157)
         at com.sap.engine.services.jmx.ClusterInterceptor.invokeMbs(ClusterInterceptor.java:220)
         at com.sap.engine.services.jmx.ClusterInterceptor.invoke(ClusterInterceptor.java:803)
         at com.sap.engine.services.jmx.MBeanServerInterceptorInvoker.invokeMbs(MBeanServerInterceptorInvoker.java:102)
         at com.sap.engine.services.jmx.connector.p4.P4ConnectorServerImpl.invokeMbs(P4ConnectorServerImpl.java:61)
         at com.sap.engine.services.jmx.connector.p4.P4ConnectorServerImplp4_Skel.dispatch(P4ConnectorServerImplp4_Skel.java:64)
         at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:291)
         at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:183)
         at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:119)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)
         at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:162)
    Caused by: com.sap.engine.services.deploy.exceptions.ServerDeploymentException: Clusterwide execption: server ID 3584050:Cannot create DataSource "testdb".
         at com.sap.engine.services.deploy.server.application.ParallelAdapter.sleepClientThread(ParallelAdapter.java:232)
         at com.sap.engine.services.deploy.server.application.ParallelAdapter.runInTheSameThread(ParallelAdapter.java:113)
         at com.sap.engine.services.deploy.server.application.ParallelAdapter.makeAllPhasesAndWait(ParallelAdapter.java:214)
         at com.sap.engine.services.deploy.server.DeployServiceImpl.startApplicationAndWait(DeployServiceImpl.java:4601)
         at com.sap.engine.services.deploy.server.DeployCommunicatorImpl.startApplicationAndWait(DeployCommunicatorImpl.java:677)
    Thanks in advance,
    Saikrishna.

    Here's the problem I'm having. Every time I try to use DriverManager.getConnection, I get the message "No suitable driver". This is some basic code I wrote just to check the driver...
    Class.forName("com.internetcds.jdbc.tds.Driver");
    String url = "jdbc:freetds:sqlserver://scartin:1433"; 
    Connection conn = DriverManager.getConnection(url,"admin","admin");   I have the .jar file in my classpath, and i'm pretty sure the URL is right, but like i said previously, I can't find any documentation on it at all.
    Thanks
    Simon

  • NoSuitableDriver exception running against a jtds driver.

    I developed my BC using SQL Flavour and now I try to run against SqlServer using Jtds Driver.
    I created my connection and tested it : it works fine.
    I create a configuration using that connection but when I try to run the tester against the DB I get a NoSuitableDriver error. (No suitable driver found for jdbc:jtds:sqlserver://faac/MSSQLSERVER;domain=faac;)
    Shoud register the driver somewhere in my classes ?
    What I Missed ?
    Tks
    Tullio

    I'm guessing that the embedded WLS server can't find the JDBC library you are using - you can try adding it to the lib directory of the embedded WLS
    Somewhere like: C:\Users\youruser\AppData\Roaming\JDeveloper\system11.1.1.5.37.60.13\DefaultDomain\lib
    or directly to the classpath in the startup script:
    C:\Users\sshmeltz\AppData\Roaming\JDeveloper\system11.1.1.5.37.60.13\DefaultDomain\bin
    or try and mark the library with the JDBC jar to be deployed by default in JDeveloper.

  • Anybody use jtds driver with creator?

    Hello,
    I have a creator app that talks to our SQLServer via the jtds driver.
    I cannot update any records, I get a "result set is read only" message.
    I tried changing the concurrency to CONCUR_UPDATABLE and TYPE_SCROLL_SENSITIVE.
    Is there a better Driver to use?
    Thanks
    Frank

    I'm not completely sure I understand what you are saying, especially the part with the updateable and read-only tables (ResultSets are updateable/read-only, not tables). Could you provide an example (Java code or at least the SQL) illustrating your point?
    The problem with "this driver" is that in its last public release (1.0.2) it did not implement client side cursors (in fact it did, but only for Sybase). This support has now been extended to SQL Server in cases when the server isn't able to create a server side cursor, so jTDS will cache the whole result on the client and create a client side one. This behavior will be available in the next release (or you can get it from the CVS tree before that).
    The problem with transparently creating client side cursors is that this introduces a huge (memory and performance) overhead of which the user is unaware. This may lead to OutOfMemoryErrors simply because the table didn't have a primary key or the SELECT didn't include it.
    And now that we're here, let me point out that the DataDirect driver is not the most efficient, by far. There's even a test in their performance test suite (which they use only to point out that their driver is and will be the only one that doesn't fail that particular test), which creates a forward only ResultSet and then calls last() and beforeFirst() on it. This test only works because they cache the entire ResultSet, which may seem like a good thing, but it's totally unnecessary and if you compare the time it takes for that test to run with the time to do a simple next() through the exact same ResultSet it's orders of magnitude larger.
    And one final thing: the JDBC spec rightfully states that a JDBC driver implementation does not have to implement features that the underlying DBMS does not support. Creating a scrollable and/or updateable ResultSet from God knows what falls under this category in my oppinion. The SQL Server spec clearly states what conditions must be met by a SELECT query for a server side cursor to be created on it. You can't reasonably expect not to meet those conditions and still get what you want.
    Alin,
    The jTDS Project.

  • I want to Connect my Mac Mini as a Slave to a Mac pro Server while at the same time using the Mac mini's thunderbolt ports peripherals ( ie monitor, Sound Card, Hard drives) Creating a poor man's new mac Pro. Can this be Done?

    I want to Connect my Mac Mini as a Slave to a Mac pro Server while at the same time using the Mac mini's thunderbolt ports peripherals ( ie monitor, Sound Card, Hard drives) Creating a poor man's new mac Pro. Can this be Done?

    Well, I really would love the new unreleased mac pro however , I'm not sure of the expected cost , Everyone speculates from $3,000 to $8,000, in which I may have to wait a while to purchase.
    To the point .... I want fully functional thunderbolt ports to be on the current mac pro's .... wonder if anyone had workarounds yet?...  or could I chain the the current mac pro to a mac mini to make that happen?

  • How to creat deadlock for the purchase order in SAP Workflow

    How to creat deadlock for the purchase order in SAP Workflow

    Hi Ben,
    Are you using FM "CONVERT_DATE_TO_EXTERNAL" before passing delivery date?  If not, use FM like this, before passing the date to BAPI_PO_CREATE1 and it might work
      DATA: vf_doc_date(10),
                 internal_date TYPE d.
         vf_doc_date = sy-datum.              "Document date.
         internal_date = vf_doc_date.
      CALL FUNCTION 'CONVERT_DATE_TO_EXTERNAL'
        EXPORTING
          date_internal            = internal_date
        IMPORTING
          date_external            = vf_doc_date
        EXCEPTIONS
          date_internal_is_invalid = 1
          OTHERS                   = 2.
    Regards,
    Vivek

  • Jdbc driver creates new thread for each statement with a query timeout set

    I am profiling a web application that is using the Microsoft JDBC driver, version 1.1 to connect to a sql server 2005 database. Each java.sql.Statement that is created, within the application, gets a query timeout value set on it ( statement.setQueryTimeout(...) ).
    I have discovered that the JDBC driver creates a new thread to monitor each Statement and the query timeout value. When the application is under load these threads are getting created faster then they are being destroyed and I am concerned that this will cause a performance problem in production.
    One option I have is to remove the query timeout value and the monitor threads will not be created, another is to change JDBC drivers.
    I'm curious is there any way to control this behavior so that these threads are not created or are managed more efficiently.  Is there a workaround that anyone is aware of?   Is this considered a bug?
    I have found a similar bug here for the 2000 driver:
    http://support.microsoft.com/default.aspx/kb/894552
    Cheers

    Hi,
    Thank you for using the Microsoft SQL Server JDBC driver.  You are correct that a new thread is started to monitor the query timeout when a statement is executed.  This is a potential performance issue that we may look at addressing in the upcoming v1.2 release.  The current behavior is not configurable.  The only workaround with the v1.1 driver is to limit your use of query timeouts to only those statements which you reasonably might expect to actually time out.
    We do take customer feedback very seriously, so if anyone else is concerned about this particular issue, please chime in and we will be able to give it appropriate weight.
    --David Olix [MSFT]

  • Jtds driver and NT

    Hi,
    I have been doing some testing of the jtds driver on XP and NT and it seems that the driver runs great on XP but is very slow on an NT 4.0 machine.
    Does anybody know of any know problems with this driver and OS?
    Is there a better driver I could try out for windows NT 4.0?
    Regards.
    Alan

    I'd guess some would say there is no "better" driver for most definitions of the word...
    Perhaps not better but different: http://www.microsoft.com/sql/downloads/2005/jdbc.mspx
    Or googling should find several commercial drivers, some come with no-cost trial versions. E.g. http://www.datadirect.com/downloads/registration/connect_jdbc/index.ssp
    My first guess is that it isn't a driver issue. I'd start by checking network configuration, seeing how much packet loss "ping" reports, how fast "ftp" can move data from db server to client, ... And checking if the NT machine is low on memory and simply swapping itself to death.
    How slow is "very slow"? A simple select takes 10ms, 1sec, 1min, 1h, ...? Compared to what on the faster machine?

  • Trying to play from an external drive created unexpected results

    I have a Firelight drive that was full of music from another computer so I plugged it into my iMac then held down the option key while opening itunes.\
    Choose Library didn't work so I clicked on Create a new Library in itunes.
    I wanted to just play and burn the songs from the drive but they instead were imported to iTunes.
    This was okay though, I saved the songs to dvd and deleted them.
    What is troubling is this;
    When I click on my hard drive on the desktop it lists all the music that was imported so I guess I really didn't delete anything when I deleted everything in iTunes.
    Question 1 ) why did this happen.
    I suppose I can go ahead and delete everything but....
    Question 2) all that will be left on my iMac's drive after deleting the music is a Users file and a file with a curved arrow on the bottom left corner that says "Users Guide and Information"
    I am sure that there were a lot more things listed on the iMac drive before.
    Everything seems to be working fine and the Home,Applications,Documents,Music and Pictures icons are all unchanged.
    One more thing.
    The Firelight would not turn off or go to sleep even when I turned off the computer. Before it always went to sleep when the computer went to sleep.

    As a test, try removing all USB devices except a standard keyboard and mouse, including any USB hub. Connect the hard drive and iPod directly to the computer. See if that works.
    If it works, try to figure out which USB device makes it NOT work, treating any USB hub as a device.
    If it still does not work, try using the Restore button in iTunes to see of that helps. This will erase the iPod and restore it to original settings.

  • How to upgrade a Library on an external drive created in a previous version of aperture so I can re-import it from the external drive into Aperture 3.5.1 on my MBP ?

    I have exported earlier Projects [which were created in Aperture 3.4.5] to an external hard drive. Now I wish to reimport them into Aperture 3.5.1 - which I use after having upgraded to Mavericks - but am given an error message saying I can’t reimport because the external drive is storing a Library created by an earlier version of Aperture than I’m using now. It tells me to upgrade that externally stored Library.
    The Question - one can only upgrade a Library on one’s computer, not on the external drive. How can I upgrade it if I can’t get it back into Aperture [3.5.1] on my MacBookPro in the first place ?
    Thank  you
    Bob

    The Question - one can only upgrade a Library on one’s computer, not on the external drive. How can I upgrade it if I can’t get it back into Aperture [3.5.1] on my MacBookPro in the first place ?
    You can upgrade the library on the external drive. Connect your external drive to your computer.
    Then select the library with the exported projects on the external drive and double-click it to open it in Aperture. This will upgrade the library to Aperture 3.5.1.  Since upgrading can sometimes be problematic, I recommend to make a backup copy of the library before you try to upgrade the library.
    After that you should be able to merge the library into your main library using File > Import.

  • External drive creates "phantom" drives inside built in HD.

    Has this happened to anyone else? My External storage drive (Maxtor 250GB One-touch) has somehow created 3-4 other "phantom" drives in my build in HD. Basically when I download something directly into my External, it sometimes will create a separate HD and store it into my internal HD, eating away my free space on the internal. This wouldn't be a problem, however, I can't seem to locate the "fake" drives ANYWHERE! I can access them when attempting to open a file, but there's no way I can delete the drives themselves. I know this sounds really stupid, but somehow it's happened and about 5-10 GBs of my internal HD is being taken up by these "phantom" drives that I can't seem to locate. Any help would be greatly appreciated! Thanks in advance!

    Hi, Adam, and welcome to Apple Discussions. Your post sure does sound strange, but that may only be a product of the way you're describing what you see. Can you identify a particular downloadable file that has behaved this way for you, so I can have a look and download it for myself?
    My suspicion is that you're downloading .dmg files, which are disk images. [Read about disk image file formats here.] When you double-click a .dmg file's icon, the file is decompressed into a "virtual disk" that is mounted on your desktop. Double-clicking the icon of that "disk" shows you its contents, just as if it were a floppy disk, CD, hard drive or flash drive. What is really throwing you, however, is the fact that the real disk space occupied by those files on the virtual disk is always on your startup volume, not some other volume such as your external drive. This is true even if the original .dmg file resides on another volume. As the .dmg is expanded, its decompressed contents are written to the startup volume, not to the volume where the .dmg is located.
    You can free up that space on your internal drive by "ejecting" the virtual disks that appear on your desktop. And you can then free it up on the external drive by trashing the .dmg files and emptying the Trash. If you try to trash the .dmgs while the virtual disks are still mounted on the desktop, you'll be told they are in use and can't be trashed. You must "eject" the virtual disks first.

  • "There was an error opening this document" Adobe PostScript Driver creates corrupt PDF's.

    Hello,
    Just looking for a point in the right direction or some answers to a problem that has been plaguing a few of our users.
    We use Adobe reader X and Adobe Post Script driver as a means to print a document as a PDF.
    However, a few of our users are experiencing the problem where as the every so often a PDF created comes up with the "There was an error opening this document.  The file is damaged and could not be repaired." Message. these documents always vary in size but average around 20 - 30 kb, These seem to be complete anomolies and are corrupted from the off. The only solution we have found for this is a complete rebuild. But we have no idea what is causing this, as we are using the latest version of Adobe Reader. Also, a document that will print corrupted on one go, will print fine on the next.
    Thanks.

    Hi Lori,
    Thanks for your reply currently all users access these PDF's through the standalone reader and users on the most up to date version of Adobe Reader X are not using protected mode as we have had it turned off for a while to fix other problems.
    Thanks

  • Can't boot from windows 7 install usb drive created in bootcamp

    So, my real problem is that my Windows 7 install won't boot after I installed some windows updates. I'm using OSX Lion and the latest version of Bootcamp. I've had Windows installed on my mid 2011 mac mini for only about a day. It had been working flawlessly so far.
    Windows automatically downloaded and installed some updates and now it is broken.
    When I attempt to boot windows I get a black screen that just hangs forever. No windows logo, no blinking cursor, no nothing.
    I thought I could use my Windows 7 Install usb drive to maybe try and do a recovery or repair install but now my USB drive wont boot either. I get the same black screen.
    Any ideas on why I can't boot even the install usb drive?
    Note: this is the same USB drive I used to install windows the first time so it's definately capable. I've even used my install iso to re-create the usb drive installer and still nothing.

    Install ISO means you burned DVD installer and did you reduce burn speed? otherwise it is a bad install.
    3rd party updates? for security suite? stick to MS Security Essentials instead.

  • Flash drive creates a burn folder

    Whenever I insert my Sandisk Cruzer flash drive into a USB port my MacBook Pro creates a burn folder the same time it mounts the drive. Why? I have already reformatted the drive but to no avail.
    MacBook Pro   Mac OS X (10.4.7)  

    Does this page contain anything useful?
    (16302)

  • Can't move/delete/create files on external drive created with windows xp

    A friend of mine bought a brand new Maxtor External Hard drive. I connected it to my Windows XP machine and formatted it with NTFS and dumped 80Gig folder of data onto it.
    When he took it home and plugged it into his Mac G5 running Tiger, it see's the firewire drive and accesses the folder, but he can't delete/move/rename/create files and folders on that drive.

    I came across the same problem as well recently. I have thought about it for a long time but did not put it into practice. Yesterday I did it.
    1) Copying my data in XP disk out into my Powerbook which cost me a lot of time to wait
    2) In Windows XP, using Partition Magic (7.0) to delete the partition format of that disk (using the other tools should work as well)
    3) Plug this empty disk into my Powerbook, then it prompted that I need to format it or something like that
    4) Using Disk Utilities to format the disk as MS-DOS File Systems (FAT 32)
    5) Moving the original data into the new formatted disk which could be read and written by both Powerbook and PC.
    Everything is done! This is only my personal experience, not a general solution plan for this problem. Cheers all!
    Powerbook G4 17"   Mac OS X (10.4.8)   1.67GHz, 2GB DDR2, 120GB, SuperDrive, 128MB ATI Mobility Radeon 9700
    Powerbook G4 17"   Mac OS X (10.4.7)   1.67GHz, 2GB DDR2, 120GB, SuperDrive, 128MB ATI Mobility Radeon 9700

Maybe you are looking for

  • ODBC configuration on Windows 7 Enterprise N

    Dear Friends I will be deploying Windows 7 client Enterprise N across the company. I have to test ODBC connection on the machine with connection to an Access 2003 database or Access 2010 database (32-bit). I am not able to connect..Any idea... Regard

  • 10.9.3 buggy?

    It is me but the recent update seems a little buggy. example: My users account is hidden in finder on my macbook air but not on my mac mini. Safari: I have the setting showing 'Top sites' set to 24 yet only showing 12? Mac mini taking longer to boot

  • A BAPI for MEK32

    Good afternoon We receive FOB price data from Japan which is used to update the gross price (PR00 Condition Type) in our ECC 6.0 system, but the process is manual. The user opens one session in SAP and copy/pastes the FOB through a tedious entry proc

  • In OSX 10.9, Quicktime movies won't play

    Plug-in not "visible" in list even though Quicktime is installed. In this OS, we cannot "reinstall" Quicktime because it's built into the OS. How can I get the QT videos to run inside Firefox?

  • Is it possible use Acrobat 9 with windows7 64 bit and notes ?

    When I print from notes to pdf printer the work run normaly but appear to installa Flash Player evenif it is already installed ? Any suggestion ?