MySQL autonumber feature

I have a site that is using an access database. one feature
is the product ID (PID) which is the autonumber created by access.
ALl images taht are loaded for products are named with this PID.
SO now i want to switch this to mySQL and i have the mySQL
table ready to import. However, i cant import the PID column - i
get an error everytime. mySQL keeps creating its own PID #.
I have tried to change the mySQL PID field to NOT be
autonumber - and then change it to autonumber AFTER i import. but
that doesnt work either.
What i need to do is import this data from access, keeping
the PID # access assigned. But at the same time i need any new
records added to continue this PID autonumbering.
Anyone know HOW i do this?
Thanks in advance.
sam

What error is mySQL generating on the insert
operation?

Similar Messages

  • How can you add autonumber feature in an entity class?

    Hi guys!
    Can you pls help me with this problem, I'm new to java EE. I've got an entity class and I want to implement an auto number feature using the following code:
    { *{color:#ff0000}private static final long serialVersionUID = 1L;*
    *{color}* *{color:#ff0000}@Id*
    * @GeneratedValue(strategy=GenerationType.AUTO)*
    *{color}* @Basic(optional = false)
    @Column(name = "CUST_ID")
    private Long custId;
    But this doesn't work, it gives me the following error: "java.sql.SQLSyntaxErrorException: Table/View 'SEQUENCE' does not exist.". Can you also briefly explain to me how the database will accept this with configuration(if it will accept).

    GenerationType.AUTO:
    Indicates that the persistence provider should pick an appropriate strategy for the particular database. The AUTO generation strategy may expect a database resource to exist, or it may attempt to create one. A vendor may provide documentation on how to create such resources in the event that it does not support schema generation or cannot create the schema resource at runtime.
    http://java.sun.com/javaee/5/docs/api/
    I use Hibernate as a provider and Oracle as ad DB and had to create a seuence called HIBERNATE_SEQUENCE
    m

  • Mysql Autonumber

    Question,
    I have a form that I have created, it inserts data into a
    mysql database. After the insert form is submitted it goes to a
    process.php form that shoots off an email and displays the data
    that was entered on the form by <?php echo $CallDate; ?> But
    I cannot seem to get the auto incremented id to show on this page.
    So the question is How do you get the auto number created in the
    database to show after the process? It has to show after because
    two people may be entering data at the same time. Any help would be
    so appreciated THANKS

    .oO(eaw500)
    > I have a form that I have created, it inserts data into
    a mysql database.
    >After the insert form is submitted it goes to a
    process.php form that shoots
    >off an email and displays the data that was entered on
    the form by <?php echo
    >$CallDate; ?> But I cannot seem to get the auto
    incremented id to show on this
    >page. So the question is How do you get the auto number
    created in the database
    >to show after the process? It has to show after because
    two people may be
    >entering data at the same time. Any help would be so
    appreciated THANKS
    http://php.net/mysql_insert_id
    Micha

  • Using java with mysql JDBC

    Hello
    I'm trying to write a program which reads in tab-delimeted text files and then stores the results in a mysql database. The files are roughly 20,000 lines long and can have up to 10 columns, so for the biggest files I have 200,000 pieces of data to be stored seperately in the database.
    I'm currently using the readLine() method of bufferedreader, then using the split function to seperate the string into tokens. The problem is that it seems to be very slow. It is a lot of information, and im not running it on a very fast machine, but even so im sure there must be a more efficient way of acheiving this.
    Here's some of my code:
    BufferedReader in = new BufferedReader(new FileReader("test.res"));
    while((result = in.readLine()) != null) {
    result = in.readLine();
    aLine = result.split("\t");
    stmt.executeUpdate("INSERT INTO test(words)" + "values('" + aLine[0] +"')");
    stmt.executeUpdate("INSERT INTO test(words)" + "values('" + aLine[1] +"')");
    stmt.executeUpdate("INSERT INTO test(words)" + "values('" + aLine[2] +"')");
    stmt.executeUpdate("INSERT INTO test(words)" + "values('" + aLine[3] +"')");
    stmt.executeUpdate("INSERT INTO test(words)" + "values('" + aLine[4] +"')");
    stmt.executeUpdate("INSERT INTO test(words)" + "values('" + aLine[5] +"')");
    stmt.executeUpdate("INSERT INTO test(words)" + "values('" + aLine[6] +"')");
    stmt.executeUpdate("INSERT INTO test(words)" + "values('" + aLine[7] +"')");
    stmt.executeUpdate("INSERT INTO test(words)" + "values('" + aLine[8] +"')");
    stmt.executeUpdate("INSERT INTO test(words)" + "values('" + aLine[9] +"')");
    I would appreciate any advice thanks.
    PS this is the first time ive tried anything like this so im probably missing something obvious.

    Form the example you have chosen it seems to me, that your table only has one column (words) and that you have multiple value entries for that column in one line of your text file ?!
    That is strange. Normaly I would assume (like the other answers indicate) that you have several columns and that each line in your text file has n values each for a different column.
    Have look at PreparedStatement.
    // the name of your connection is con, you have six columns named col1 to col6 and six entries per line, All six are strings...
    PreparedStatement pstmt = con.prepareStatement("insert into test (col1 , col2 , col3,col4,col5,col6) values( ? , ? , ? , ? , ? , ?)") ;
    BufferedReader in = new BufferedReader(new FileReader("test.res"));
    while((result = in.readLine()) != null) {
       result = in.readLine();
       aLine = result.split("\t");
       for (int i = 0 ; i < 6 ; i++) {
           pstmt.setString((i+1),aLine) ;
    pstmt.executeUpdate() ;
    But this is still not the fastest approach. MySQL supports bulk imports
    Have look at this feature. Maybe the fastest way is to 'convert' the textfile into something like a MySQL dump an than process it using it the MySQL import features.

  • How do I remove the autonumbering within Visio?

    I have inherited a file of Visio maps from a previous contractor who loved to use the Autonumbering feature.  Unfortunately, I now have to figure out how to get rid of a gazillion little numbers in the shapes. I know how to turn ON the autonumber
    feature and how to Hide the numbers. But, what I really need to know is how to eliminate them entirely. My only option right now is to enter each shape individually and backspace the number out. I don't have the time or patience to do that through the whole
    stack of maps, so please help!

    Hiding the numbers will also eliminate the numbers from shape completely.
    Steps to Hide/eliminate Numbers
    On the View menu, point to Add-Ons, point to
    Visio Extras, and then click Number Shapes.
    Click the Advanced tab. select "Hide Shape numbers" checkbox.

  • New install of mariadb and mysql-workbench - some questions

    So I've installed mariadb along with mysql-workbench.  These were fresh installs on a system which has never had mariadb/mysql installed previously.  Per the Wiki, I installed mariadb and mysql-workbench, started and enabled the service, and ran the mysql_secure_installation script.  I then added a non-root user and even imported a database into it.  Everything seems fine, though I have never used either MySQL, mariadb, or mysql-workbench before.
    I have a  couple of questions:
    Question 1:
    When I run mysql-workbench, I have to run it with the command “gksudo mysql-workbench” or it comes up in a locked form that doesn't give me (user) access.  I am presuming that this is simply because my user account is not a member of the mysql group and that if I changed that, I'd be able to run it with a simple “mysql-workbench” command.
    The question is: Should I do that, or is there a good security reason to not have the user be a member of the mysql group?  (Would the current setup (having to run “gksudo” be a problem if I installed the mariadb on my server (rather than locally) and mysql-workbench locally?)
    The Wiki doesn't say anything about adding the user to the mysql group, so I don't know if that's just an implied standard practice, or if there is good reason not to do so.
    Question 2:
    When I try to connect to the database with mysql-workbench, it presents me with a password prompt, as expected, then I get a message box that says:
    Incompatible/nonstandard server version or connection protocol detected (10.0.17).
    A connection to this database can be established but some MySQL Workbench
    features may not work properly since the database is not fully compatible
    with the supported versions of MySQL.
    MySQL Workbench is developed and tested for MySQL Server versions 5.1, 5.5, 5.6 and 5.7
    Clicking “Continue Anyway” lets me in and connects everything up and seems to work fine.  However, the tab at the top says “Local Instance 33061 - Warning - not supported”.
    I presume this has something to do with the fact that I am running mysql-workbench as the front end not to MySQL, but mariadb - and functionality that I've tried seems to work fine. 
    So my question is: Is there more to this warning (should I be changing some default setting to make everything play nice), or is this just one of those warnings that mean nothing really, and everything IS playing nice already?
    Thanks,
    Andre

    presume this has something to do with the fact that I am running mysql-workbench as the front end not to MySQL, but mariadb - and functionality that I've tried seems to work fine. 
    I think its probably as you say.
    If everything is working fine don't worry.
    I'm using php admin to control mariadb but i think there is not much difference between maradb and MySQL.
    If problems appear you can always change to MySQL.

  • Are the oracle DBa's seeing an end to their career

    It's been 2-3 years i am working as an oracle dba in a mid range shop and i was pretty happy with it. After having the satisfaction , I was always worried about the future of an oracle dba. I always heard sql server and db2 are much much better than oracle as they are less complex to administration and their cost is less. Though the oracle people would talk about performance and scalability but with the recent releases , those db have overcome those problems. The problems for oracle dba are coming from several ways:
    1.Companies are shifting for sql server or db2 as for low cost and low required of man power.
    2.Oracle itself becoming automated.
    3. Company like IBM offering main frame solution with free db2 database for the entire data center.
    4.With the concept of Cloud computing storage would be third party location , where few employee can take the responsibility.
    And..many moreeee...
    It gives me a COLD feelings what would i be doing in 3-5 years from now and how could a dba would evolve himself with the change??? I hope this time i am not right.. all the points that i showed is wrong...
    Regards,

    user11181920 wrote:
    In next N years ultimately everything in RDBMS will be automated.
    This is a common trend and Oracle is leading flagship in it.
    Ultimate goal, as I see, is to eliminate DBA, minimizing cost of ownership.
    This will attract business to such products - self-managed software.
    I do not see it to happen tomorrow, though. But it is going there.
    Yeah, well 30 years ago the experts were predicting the end of the need for programmers (the old term for 'developers'). "End User Computing" would put the power in the hands of the business users and eliminate the entire IT department. No I'm not exaggerating. That was the prediction. And people like you were insisting it would come to pass.
    You don't even have to go that far. Look at the predictions for the 'paperless office' . . .
    Many here will argue with me, but look of the definition of DBA
    http://sqldbpool.com/2008/12/22/dba-roles-and-responsibilities/
    >
    DBA Responsibilities
    Installation, configuration and upgrading of Microsoft SQL Server/MySQL/Oracle server software and related products.
    Evaluate MSSQL/MySQL/Oracle features and MSSQL/MySQL/Oracle related products.
    Establish and maintain sound backup and recovery policies and procedures.
    Take care of the Database design and implementation.
    Implement and maintain database security (create and maintain users and roles, assign privileges).
    Database tuning and performance monitoring.
    Application tuning and performance monitoring.
    Setup and maintain documentation and standards.
    Plan growth and changes (capacity planning).
    Work as part of a team and provide 7×24 supports when required.
    Do general technical trouble shooting and give consultation to development teams.
    Interface with MSSQL/MySQL/Oracle for technical support.
    ITIL Skill set requirement (Problem Management/Incident Management/Chain Management etc)
    >
    Well, that's ONE "definition" of a DBA. It's far from "the" definition.
    I'll tell you what. I've actually sat on committees that drew up lists like that. I can tell you first hand that while a lot of things on the list may look legit, there is also a lot of pressure just to fill up the list with as many things as possible in order to justify head count to the bean counters. You could just as well add 'weekly cleaning of the left-hand smoke shifter.'
    Then lets look at them one by one:
    Installation, configuration and upgrading of Microsoft SQL Server/MySQL/Oracle server software and related products.How often Installation happens? Once for one new app. Usually app vendors have recommendations that DBA should follow. So, what is DBA's role here? Start installer and to follow.
    Configuration and upgrading will be more and more automated.
    Except the app vendor left out critical details they didn't think were critical because they don't understand the database. Or have bogus 'requirements' because they don't understand the database. Or their recommendations were based on how they did it in their pristine development lab and they never even knew about critical dependencies that might not exist outside of their lab.
    Week before last I spent 50 hours working on installing a new database based on the app vendor's specifications ....
    Evaluate MSSQL/MySQL/Oracle features and MSSQL/MySQL/Oracle related products.Again, how often? When new App is about to be created and designers need to choose which DB they will need.
    And then they proceed to develop on rdbms-A using best practices they learned from rdbms-B -- which turn out to be worst practices on rdbms-A. And only when they go live do they discover that their design doesn't scale because they tried to re-invent (poorly) functionality built into the database.
    Establish and maintain sound backup and recovery policies and procedures.Again, how often yo need to establish policies and procedures? Every time you put in a new app with a different SLA.
    Backup itself is 100% automated already today. Only if you buy off on the lowest common denominator.
    Recovery is close to 100%.Oh? Go spend some time in the RMAN forum ...
    And even if it were close to 100%, 'close' only counts "when playing horseshoes or hand grenades."
    Most of enterprise backup software support backup and recovery of major RDBMSs.
    Just specify a date "from" and click Go.
    A little bit complex with RMAN. You have to type(!) RESTORE DATABASE; RECOVER...
    Until the cause of failure was something the automation didn't anticipate. Or you then discover that your 100% automated-out-of-the-box backup didn't work the way thought it did. Oh, it 'worked' all right. Just not the way you thought it did.
    Take care of the Database design and implementation.Where? Only in development shops.
    Depends on what you mean by 'database design and implementation'. And most companies have some sort of development, even if they don't recognize it or call it that.
    Implement and maintain database security (create and maintain users and roles, assign privileges).Centralized enterprise security (Domain etc) are in use. Many apps have their security and use basic RDMS security to login App running user.
    Until such time as "nothing changed" but "I can't connect to my database".
    Database tuning and performance monitoring.Greatly automated. Ultimately will be 100% automated.
    Until it's not. See my comment above about developers.
    Application tuning and performance monitoring.There are enterprise solutions for monitoring. Also Oracle has Grid Control.
    Application tuning can be done by app vendors.I've NEVER met an app vendor that knew **** about how their app impacted performance. 100% of them throw it back on the DBA. I had an app vendor tell me that Oracle was incapable of sustaining more than five concurrent connections.
    DBA cannot tune App itself. It may only modify some things in DB that will perform better. And this will be automated.
    No, because the database cannot anticipate what stupid things the vendor may do. And it can only work with what it is given.
    Setup and maintain documentation and standards.How often?
    As often as anything that is documented, changes. As often as it is discovered that something that should be documented, isnt'
    Plan growth and changes (capacity planning).Well, DBA should do it. But, again, how often?Should be almost constantly. Given budget cycles, you can't wait until your disk is 98% full before asking to buy more.
    >
    Work as part of a team and provide 7×24 supports when required.Where such 7×24 support policy exists.Look at my comments above about how these lists get created in the first place.
    I can tell you from experience that such 24x7 policies are more common than you seem to think. Just about any financial processing business, logistics and transportation business, telecom business ...
    And what from above should be supported during a night by a human?
    I see just a restore/recover DB, because a human should make a decision "From which Date".
    Do general technical trouble shooting and give consultation to development teams.Yes, in Dev shops. Most of shops are not development shops, though may do custom and ad-hoc reporting and small app development. Do they need a dedicated DBA for this? I doubt. Either a developer will be (self)trained to do some DBA's tasks or DBA will become a SQL developer in that team.
    Interface with MSSQL/MySQL/Oracle for technical support.Oh yeah... :)
    ITIL Skill set requirement (Problem Management/Incident Management/Chain Sure, two days of training to know basics of ITIL to understand what manager of Helpdesk (Support and Incident Management Team) is talking about.
    So, I see DBA should go in of 3 directions:
    1. Very deep technical expert that can help in some rear and difficult cases. How many of them will be needed?
    2. SQL/ETL/etc Developer. There is not much automation in software development yet.
    3. DB Design and Architecture. How many of them will be needed? May be more that #1.You seem to think that automation will solve everything. Take that to it's logical conclusion and it will put all of IT out of work. See my comment above regarding "End User Computing'. What you forget is the human element. Not the human DBA trying to do things you think are or soon will be automated. No I'm talking about the humans that create the kinds of problems that automation is *always* trying to catch up with. Pointy Hair Bosses dreaming up new requirements. Bean counters refusing to by an additional 10 gb of disk. Developers that refuse to learn and/or follow best practice. Developers that can't think beyond clicking an icon to create a table. Developers that treat an rdbms as a data dump and try to use Java to re-invent every bit of functionality the db already provides. Systems administrators that delete all of your online redo logs because he needed disk space and 'log files are expendable'. End users that forget their password *EVERY F****** DAY!*
    No, I don't spend my time managing extent distribution like I had to do with 8i. Yes, a lot of things I had to do manually in 8i are now successfully automated to the point I don't have to do them .. or have simply been engineered out of the system. But no amount of automation will overcome the ways humans (Executives, managers, supervisors, other IT team members, and users) figure out how to bring a system to its knees.
    This whole discussion reminds me of Dippin' Dots. "The Ice Cream of the Future". Well, it's been "The Ice Cream of the Future" for almost 30 years ....
    Edited by: EdStevens on Oct 1, 2012 8:55 PM

  • Delivering RH9 Output in MS-Word format with auto numbering

    I am creating an RH 9 project that must be delivered to the customer in MS Word (2007 or higher) with paragraphs defined in a strict numbering format.
    The RH9 project will make extensive use of the RH9 autonumbering feature at both the paragraph and topic levels.
    Will this autonumbering translate into the generated MS Word document? Can I count on the numbering to appear in Word as it does in my RH9 project?
    Thanks for any help or insight you can provide.

    Multilevel lists should work fine for your paragraphs in a topic but be aware the numbering works only within a single topic, it starts over again in the next topic. You can force the start of the numbering so you could use that to make topic one have 1.1 and topic two 2.1 etc if that is what you want.
    I don't think numbering is designed to work with heading styles so you will have to experiment a bit there.
    As to your original question, what I was trying to convey was that you are trying to use that for a purpose it wasn't designed for I cannot give you a categoric confirmation. In any case, if you are going to take on a contract, you really need to test this will work to your satisfaction. I'm not intending to be unhelpful, it's just that's the way it is. Also bear in mind the output in Word may have the numbering applied but if changes are made direct in Word, may not autonumber.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • New table format in FM 8?

    Why can't I define a new table format that includes static text and a static graphic in structured Frame 8? I can create a new table format, but it doesn't capture the static text that I defined. I need to create a NOTE table and a WARNING table format.

    Thank you, Russ.
    The autonumbering feature works well to set up the start of a note; for example, "CAUTION!" or "WARNING!," but I'd like to define several static notes that we use all the time. For example, "CAUTION!" Electrostatic Discharge (ESD) can damage sensitive components. Use ESD-protective devices and procedures," and autonumbering isn't designed to place long text like that. It doesn't wrap it.
    I tried to set up new table format by setting up a new icon paragraph style and a new text paragraph style (I drew a graphic frame on the reference page and placed a text box inside it and typed my long note. Then I set up a paragraph style based on that graphic frame ("frame above feature"). I then drew a two-column table, placed the icon paragraph in the first column and the graphic frame (with text) paragraph in the second column and saved it as a new table format. But when I insert that table format, I icon displays in both columns and the text is nowhere to be found.
    At your suggestion, in the EDD, I did set up some new note types in the Note element and defined prefixes for each. In my FrameMaker topic file, I then added the note element and chose the esd attribute type, for example, and got my full note text to display. However, I also would like to display an icon to the left of my notes (warning, ESD, or radiation), and I don't know if I can set up something in my prefix in the EDD to help me do that?
    graymatter

  • Migration of content from Subversion repository

    Hi.  I'm trying to migrate some content from some subversion (svn) repositories into SharePoint document libraries.  Since I don't currently have .NET-based svn-reading capabilities, I've got my content in another application that was then calling into the SharePoint copy web service.  With this I can get almost everything I need, but not quite everything.  I want to be able to retain the check-in author, check-in date, and check-in comment from my svn metadata, but I don't see how to force that information into my document library at the time that I upload my document.
    So, how can I create a document in a versioned document library that will allow me to supply my own specific author, modified-by user, and check-in comment?  I am also not opposed to just buying a standalone product that does this, but I can't seem to find anything like it.
    thanks,
    Chris

    Interesting topic..
    We use Tortoise/SVN heavily for our team development.
    We use it for maintaining all kinds of code stuff. VBS, C#, PowerShell, IPF, AU3 etc....
    It's sooo easy to work with, but the backend is either a file share or an  Apache web server.
    Currently there does not seem to exist an IIS backend or even a Sharepoint solution.
    We have been toying with embedding SVN in IIS/MOSS 2007 since versioning is build in there.
    The problem is IMHO the SVN protocol must be implemented in a special MOSS feature and you also need to access the backend trough a web part in order to upload/download subscribe to a repository.
    Supplying the mandatory comment attributes can be done in MOSS in the document library settings by adding columns and making them required.
    We do that kind of stuff in combination with a special autonumbering feature in order to create unique ID numbers for each document.
    I've googled a while about this subject, but there is no real solution in IIS/Sharepoint as far as I know.
    Marcel

  • Deadlock found...

    Hi --
    I'm running Kodo 2.3.4 with javax.jdo.Optimistic=false using a mysql
    backend and the INNODB table type.
    I find that sometimes under load, the following error will be reported:
         General error: Deadlock found when trying to get lock;
         Try restarting transaction [code=1213;state=S1000]
    As another point of information, I find that sometimes this other error
    occurs:
         Communication link failure:
         java.io.IOException [code=0;state=08S01]
    Other than these intermittant errors, the application is quite happy.
    My question is: what should I do to resolve these? I saw a posting
    elsewhere that we should examine the return code. And on a deadlock, we
    should resubmit the transaction, but does kodo allow that? I'm not
    clear if these are bugs in my system, if you can give me some pointers,
    they would be most helpful.
    Thanks in advance,
    Dan

    Dan Finkelstein wrote:
    Thanks Patrick and Abe,
    This might be a dumb clarification, when you say to do the query outside
    of a transaction, do you simply mean this: that with the PM object, I
    retrieve my objects, that I don't actually call something like this:
    Transaction transaction = persistenceManager.currentTransaction();
    if(!transaction.isActive())
    transaction.begin();Yes. To do this, you must set the NontransactionalRead option to true.
    If I read you right, what you're saying is that should I ever call
    transaction.begin() in the "middle" of some queries, all subsequent
    reads will be treated as though they were potential modifications to the
    database.Correct. JDO does not have a concept of enlisting objects into a
    transaction. We plan on adding APIs to selectively enlist / delist
    objects from a pessimistic transaction, but have not yet gotten to work
    on that project.
    -Patrick
    >
    Dan
    Patrick Linskey wrote:
    Dan,
    I'm assuming that you're using pessimistic transactions.
    Whenever you read data inside a pessimistic transaction, we obtain a
    lock on that data (SELECT ... FOR UPDATE). In a future version of
    Kodo, we will probably include a mechanism to selectively enlist
    objects in the transaction in progress.
    If you're just reading data, you should consider the value of doing
    the reads inside a transaction. Unless data reads are extremely
    sensitive, it is likely that you can get away with doing fully
    nontransactional reads, and only using transactions when you want to
    write data.
    What type of database are you using? You mentioned that it seemed like
    modification of a User in one thread and reading a User in a different
    thread is causing problems. Are the users in question the same user
    object, or different users? Bear in mind that there are different
    types of pessimistic locking levels. Some databases use row-level
    locking, which means that if row A is locked, you can access row B in
    a different transaction. Some databases use table-level locking, which
    means that if row A is locked, you cannot access row B in a different
    transaction. And some use page-level locking, which means that if rows
    A and B are in the same database table page, then you cannot access
    the two rows concurrently from different transactions, but if rows A
    and B are in different table pages, then you can.
    Hope this helps,
    -Patrick
    Dan Finkelstein wrote:
    Hi --
    From the errors that are output, and from my analysis of our source
    code, I have a thread which "just reads" from the database -- it
    does no
    modifications. (I've gone line-by-line through it and don't see
    anything but reads.) In Kudo, the select (that fails) has a "for
    update" clause. It appears that Kudo is insisting on making it an
    update operation! My understanding of databases and transactions is
    that I should be able to do a read only in one thread and I'll see the
    last consistent state of the database. I'm pasting in an example of my
    output below as well as my kodo/jdo properties to let you see. Why is
    Kodo doing the read "for update" when there will be no modifications to
    the objects?
    Also, note in my properties file that I have the mysql autoReconnect
    feature turned on. It didn't seem to have any effect.
    Question: I have Multithreaded set to false -- I think this is right --
    in my app, I create a new PM object for each web request, and useit for
    the duration of the request. Is that right?
    And... if I want to loop through my code again( -- which would be a
    pain!), how do I check that a deadlock occurred in my code. Can Icheck
    against the error number that sql returns? (code=1213)
    And... If I sprinkle commit()'s throughout my code, so to speak, should
    that release locks associated with that PM and make it more likely that
    a tranaction will go through?
    And ... Or if I break up one longer PM transaction into two shorter
    ones, is that more likely to succeed?
    And ... As I read my code my guess of that is happening is this: a user
    object is being modified by one thread. Before it is committed,another
    thread does a getUser()-type of read operation. That shouldn't cause a
    problem, but it appears that is more or less what is happening..
    Thanks again ... this one is really stumping me (and keeping us from
    going live!)
    Dan
    Abe White wrote:
    I can't say much about the communication link failure; that's a MySQL
    driver
    thing. I do think there's an option in MySQL to automatically try to
    reconnect, though (if you aren't using that already).
    As to the deadlocking: that's just a fact of life whenever you use
    resource
    locking. Consider:
    Thread 1 locks resource A
    Thread 2 locks resource B
    Thread 1 tries to get lock on B, and blocks waiting for Thread 2 to
    release...
    Thread 2 tries to get lock on A, and blocks waiting for Thread 1 to
    release...
    Now you're deadlocked. So deadlock avoidance is a classic CS
    problem,
    and two of the most common solutions are:
    * Synchronize on some global resource (not very good for performance)
    * Order your operations so that each consumer tries to lockeverything
    in the
    same order (not very good for ease-of-use).
    You could of course also switch to optimistic transactions, whichdon't do
    any locking at all and are thus more performant. But you'll seeeven more
    exceptions due to concurrent modifications.
    And note there is no way in JDO to automatically "re-play" all the
    operatinos
    in a transaction. You can just put a loop around your code, though.#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    # J D O ( J a v a D a t a O b j e c t s )
    #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    # standard JDO properties...
    javax.jdo.PersistenceManagerFactoryClass=com.solarmetric.kodo.impl.jdbc.JDBCPersistenceManagerFactory
    javax.jdo.option.ConnectionURL=jdbc:mysql://localhost/pgl?autoReconnect=true
    javax.jdo.option.ConnectionDriverName=org.gjt.mm.mysql.Driver
    javax.jdo.option.ConnectionUserName=root
    javax.jdo.option.ConnectionPassword=
    javax.jdo.option.MinPool=5
    javax.jdo.option.MaxPool=20
    javax.jdo.option.Optimistic=false
    javax.jdo.option.RetainValues=true
    javax.jdo.option.NontransactionalRead=true
    javax.jdo.option.Multithreaded=false
    javax.jdo.option.IgnoreCache=false
    javax.jdo.option.RestoreValues=true
    javax.jdo.option.NontransactionalWrite=false
    # Kodo JDO-specified properties...
    com.solarmetric.kodo.LicenseKey=
    com.solarmetric.kodo.Logger=sql.txt
    com.solarmetric.kodo.ee.ManagedRuntimeProperties=TransactionManagerName=java:/TransactionManager
    # custom dictionary over mysql to add uniqueness to columns
    com.solarmetric.kodo.impl.jdbc.DictionaryClass =
    net.nearlythere.db.NTExtendedMySQLDictionary
    # use transactional tables...
    com.solarmetric.kodo.impl.jdbc.DictionaryProperties = TableType=INNODB
    # use kodo data caching layer...
    com.solarmetric.kodo.DataCacheClass=com.solarmetric.kodo.runtime.datacache.plugins.LocalCache
    VelocityViewer: An exception has been thrown!
    Thrown exception:
    org.apache.velocity.exception.MethodInvocationException: Invocation of
    method 'getRandomLiveShow' in class
    net.nearlythere.frontend.utils.CoreTool threw exception class
    javax.jdo.JDODataStoreException :
    com.solarmetric.kodo.impl.jdbc.sql.SQLExceptionWrapper: [SQL=SELECT
    t0.JDOIDX, t0.JDOCLASSX, t0.JDOLOCKX, t0.ACCEPTCHARSETX,
    t0.ACCEPTLANGUAGEX, t0.ACCESSCOUNTERX, t0.BROWSERUSERAGENTX,
    t0.CREATEDX, t0.EMAILX, t0.EXPIRESX, t0.IPADDRESSX, t0.LASTACCESSEDX,
    t0.LOGINNAMEX, t0.LOGINNAMEUCX, t0.PASSWORDX, t0.REVOKEDX,
    t0.VALIDATEDX, t0.ADDRESS1X, t0.ADDRESS2X, t0.CITYX, t0.COUNTRYX,
    t0.FIRSTNAMEX, t0.LASTNAMEX, t0.SCREENNAMEX, t0.STATEX, t0.ZIPX,
    t0.CARDHOLDERSNAMEX, t0.CREDITCARDTYPEX, t0.CREDITCARDNUMBERX,
    t0.CVV2CODEX, t0.EXPIRATIONDATEX, t0.STATUSX, t0.ABOUTX, t0.APPROVEDX,
    t0.AVAILABLEX, t0.AVAILABLEBANDWIDTHX, t0.BCUSTOM1X, t0.BCUSTOM2X,
    t0.BCUSTOM3X, t0.BCUSTOM4X, t0.BCUSTOM5X, t0.CATEGORYX, t0.CUSTOM1X,
    t0.CUSTOM2X, t0.CUSTOM3X, t0.DESCX, t0.DISLIKESX, t0.LANGUAGESX,
    t0.LIKESX, t0.PERFORMERBLOCKINGX, t0.PERFORMERSITEX,
    t0.PRICINGPRERECORDEDX, t0.PRICINGPRIVATEX, t0.PRICINGPUBLICX,
    t0.PRICINGTHEATERX, t0.SERVICEPRERECORDEDX, t0.SERVICEPRIVATEX,
    t0.SERVICEPUBLICX, t0.SERVICETHEATERX, t0.SSNX FROM SITE_USERX t1,USERX
    t0 WHERE (t1.JDOIDX = 5100 AND t0.JDOIDX = t1.USERX) FOR UPDATE]
    [SQL=SELECT t0.JDOIDX, t0.JDOCLASSX, t0.JDOLOCKX, t0.ACCEPTCHARSETX,
    t0.ACCEPTLANGUAGEX, t0.ACCESSCOUNTERX, t0.BROWSERUSERAGENTX,
    t0.CREATEDX, t0.EMAILX, t0.EXPIRESX, t0.IPADDRESSX, t0.LASTACCESSEDX,
    t0.LOGINNAMEX, t0.LOGINNAMEUCX, t0.PASSWORDX, t0.REVOKEDX,
    t0.VALIDATEDX, t0.ADDRESS1X, t0.ADDRESS2X, t0.CITYX, t0.COUNTRYX,
    t0.FIRSTNAMEX, t0.LASTNAMEX, t0.SCREENNAMEX, t0.STATEX, t0.ZIPX,
    t0.CARDHOLDERSNAMEX, t0.CREDITCARDTYPEX, t0.CREDITCARDNUMBERX,
    t0.CVV2CODEX, t0.EXPIRATIONDATEX, t0.STATUSX, t0.ABOUTX, t0.APPROVEDX,
    t0.AVAILABLEX, t0.AVAILABLEBANDWIDTHX, t0.BCUSTOM1X, t0.BCUSTOM2X,
    t0.BCUSTOM3X, t0.BCUSTOM4X, t0.BCUSTOM5X, t0.CATEGORYX, t0.CUSTOM1X,
    t0.CUSTOM2X, t0.CUSTOM3X, t0.DESCX, t0.DISLIKESX, t0.LANGUAGESX,
    t0.LIKESX, t0.PERFORMERBLOCKINGX, t0.PERFORMERSITEX,
    t0.PRICINGPRERECORDEDX, t0.PRICINGPRIVATEX, t0.PRICINGPUBLICX,
    t0.PRICINGTHEATERX, t0.SERVICEPRERECORDEDX, t0.SERVICEPRIVATEX,
    t0.SERVICEPUBLICX, t0.SERVICETHEATERX, t0.SSNX FROM SITE_USERX t1,USERX> >> t0 WHERE (t1.JDOIDX = 5100 AND t0.JDOIDX = t1.USERX) FOR UPDATE null:
    Deadlock found when trying to get lock; Try restarting transaction
    [code=1213;state=S1000]
    Actual expcetion: javax.jdo.JDODataStoreException:
    com.solarmetric.kodo.impl.jdbc.sql.SQLExceptionWrapper: [SQL=SELECT
    t0.JDOIDX, t0.JDOCLASSX, t0.JDOLOCKX, t0.ACCEPTCHARSETX,
    t0.ACCEPTLANGUAGEX, t0.ACCESSCOUNTERX, t0.BROWSERUSERAGENTX,
    t0.CREATEDX, t0.EMAILX, t0.EXPIRESX, t0.IPADDRESSX, t0.LASTACCESSEDX,
    t0.LOGINNAMEX, t0.LOGINNAMEUCX, t0.PASSWORDX, t0.REVOKEDX,
    t0.VALIDATEDX, t0.ADDRESS1X, t0.ADDRESS2X, t0.CITYX, t0.COUNTRYX,
    t0.FIRSTNAMEX, t0.LASTNAMEX, t0.SCREENNAMEX, t0.STATEX, t0.ZIPX,
    t0.CARDHOLDERSNAMEX, t0.CREDITCARDTYPEX, t0.CREDITCARDNUMBERX,
    t0.CVV2CODEX, t0.EXPIRATIONDATEX, t0.STATUSX, t0.ABOUTX, t0.APPROVEDX,
    t0.AVAILABLEX, t0.AVAILABLEBANDWIDTHX, t0.BCUSTOM1X, t0.BCUSTOM2X,
    t0.BCUSTOM3X, t0.BCUSTOM4X, t0.BCUSTOM5X, t0.CATEGORYX, t0.CUSTOM1X,
    t0.CUSTOM2X, t0.CUSTOM3X, t0.DESCX, t0.DISLIKESX, t0.LANGUAGESX,
    t0.LIKESX, t0.PERFORMERBLOCKINGX, t0.PERFORMERSITEX,
    t0.PRICINGPRERECORDEDX, t0.PRICINGPRIVATEX, t0.PRICINGPUBLICX,
    t0.PRICINGTHEATERX, t0.SERVICEPRERECORDEDX, t0.SERVICEPRIVATEX,
    t0.SERVICEPUBLICX, t0.SERVICETHEATERX, t0.SSNX FROM SITE_USERX t1,
    USERX
    t0 WHERE (t1.JDOIDX = 5100 AND t0.JDOIDX = t1.USERX) FOR UPDATE]
    [SQL=SELECT t0.JDOIDX, t0.JDOCLASSX, t0.JDOLOCKX, t0.ACCEPTCHARSETX,
    t0.ACCEPTLANGUAGEX, t0.ACCESSCOUNTERX, t0.BROWSERUSERAGENTX,
    t0.CREATEDX, t0.EMAILX, t0.EXPIRESX, t0.IPADDRESSX, t0.LASTACCESSEDX,
    t0.LOGINNAMEX, t0.LOGINNAMEUCX, t0.PASSWORDX, t0.REVOKEDX,
    t0.VALIDATEDX, t0.ADDRESS1X, t0.ADDRESS2X, t0.CITYX, t0.COUNTRYX,
    t0.FIRSTNAMEX, t0.LASTNAMEX, t0.SCREENNAMEX, t0.STATEX, t0.ZIPX,
    t0.CARDHOLDERSNAMEX, t0.CREDITCARDTYPEX, t0.CREDITCARDNUMBERX,
    t0.CVV2CODEX, t0.EXPIRATIONDATEX, t0.STATUSX, t0.ABOUTX, t0.APPROVEDX,
    t0.AVAILABLEX, t0.AVAILABLEBANDWIDTHX, t0.BCUSTOM1X, t0.BCUSTOM2X,
    t0.BCUSTOM3X, t0.BCUSTOM4X, t0.BCUSTOM5X, t0.CATEGORYX, t0.CUSTOM1X,
    t0.CUSTOM2X, t0.CUSTOM3X, t0.DESCX, t0.DISLIKESX, t0.LANGUAGESX,
    t0.LIKESX, t0.PERFORMERBLOCKINGX, t0.PERFORMERSITEX,
    t0.PRICINGPRERECORDEDX, t0.PRICINGPRIVATEX, t0.PRICINGPUBLICX,
    t0.PRICINGTHEATERX, t0.SERVICEPRERECORDEDX, t0.SERVICEPRIVATEX,
    t0.SERVICEPUBLICX, t0.SERVICETHEATERX, t0.SSNX FROM SITE_USERX t1,USERX> >> t0 WHERE (t1.JDOIDX = 5100 AND t0.JDOIDX = t1.USERX) FOR UPDATE null:
    Deadlock found when trying to get lock; Try restarting transaction
    [code=1213;state=S1000] NestedThrowables:
    com.solarmetric.kodo.impl.jdbc.sql.SQLExceptionWrapper: [SQL=SELECT
    t0.JDOIDX, t0.JDOCLASSX, t0.JDOLOCKX, t0.ACCEPTCHARSETX,
    t0.ACCEPTLANGUAGEX, t0.ACCESSCOUNTERX, t0.BROWSERUSERAGENTX,
    t0.CREATEDX, t0.EMAILX, t0.EXPIRESX, t0.IPADDRESSX, t0.LASTACCESSEDX,
    t0.LOGINNAMEX, t0.LOGINNAMEUCX, t0.PASSWORDX, t0.REVOKEDX,
    t0.VALIDATEDX, t0.ADDRESS1X, t0.ADDRESS2X, t0.CITYX, t0.COUNTRYX,
    t0.FIRSTNAMEX, t0.LASTNAMEX, t0.SCREENNAMEX, t0.STATEX, t0.ZIPX,
    t0.CARDHOLDERSNAMEX, t0.CREDITCARDTYPEX, t0.CREDITCARDNUMBERX,
    t0.CVV2CODEX, t0.EXPIRATIONDATEX, t0.STATUSX, t0.ABOUTX, t0.APPROVEDX,
    t0.AVAILABLEX, t0.AVAILABLEBANDWIDTHX, t0.BCUSTOM1X, t0.BCUSTOM2X,
    t0.BCUSTOM3X, t0.BCUSTOM4X, t0.BCUSTOM5X, t0.CATEGORYX, t0.CUSTOM1X,
    t0.CUSTOM2X, t0.CUSTOM3X, t0.DESCX, t0.DISLIKESX, t0.LANGUAGESX,
    t0.LIKESX, t0.PERFORMERBLOCKINGX, t0.PERFORMERSITEX,
    t0.PRICINGPRERECORDEDX, t0.PRICINGPRIVATEX, t0.PRICINGPUBLICX,
    t0.PRICINGTHEATERX, t0.SERVICEPRERECORDEDX, t0.SERVICEPRIVATEX,
    t0.SERVICEPUBLICX, t0.SERVICETHEATERX, t0.SSNX FROM SITE_USERX t1,
    USERX
    t0 WHERE (t1.JDOIDX = 5100 AND t0.JDOIDX = t1.USERX) FOR UPDATE]
    [SQL=SELECT t0.JDOIDX, t0.JDOCLASSX, t0.JDOLOCKX, t0.ACCEPTCHARSETX,
    t0.ACCEPTLANGUAGEX, t0.ACCESSCOUNTERX, t0.BROWSERUSERAGENTX,
    t0.CREATEDX, t0.EMAILX, t0.EXPIRESX, t0.IPADDRESSX, t0.LASTACCESSEDX,
    t0.LOGINNAMEX, t0.LOGINNAMEUCX, t0.PASSWORDX, t0.REVOKEDX,
    t0.VALIDATEDX, t0.ADDRESS1X, t0.ADDRESS2X, t0.CITYX, t0.COUNTRYX,
    t0.FIRSTNAMEX, t0.LASTNAMEX, t0.SCREENNAMEX, t0.STATEX, t0.ZIPX,
    t0.CARDHOLDERSNAMEX, t0.CREDITCARDTYPEX, t0.CREDITCARDNUMBERX,
    t0.CVV2CODEX, t0.EXPIRATIONDATEX, t0.STATUSX, t0.ABOUTX, t0.APPROVEDX,
    t0.AVAILABLEX, t0.AVAILABLEBANDWIDTHX, t0.BCUSTOM1X, t0.BCUSTOM2X,
    t0.BCUSTOM3X, t0.BCUSTOM4X, t0.BCUSTOM5X, t0.CATEGORYX, t0.CUSTOM1X,
    t0.CUSTOM2X, t0.CUSTOM3X, t0.DESCX, t0.DISLIKESX, t0.LANGUAGESX,
    t0.LIKESX, t0.PERFORMERBLOCKINGX, t0.PERFORMERSITEX,
    t0.PRICINGPRERECORDEDX, t0.PRICINGPRIVATEX, t0.PRICINGPUBLICX,
    t0.PRICINGTHEATERX, t0.SERVICEPRERECORDEDX, t0.SERVICEPRIVATEX,
    t0.SERVICEPUBLICX, t0.SERVICETHEATERX, t0.SSNX FROM SITE_USERX t1,USERX> >> t0 WHERE (t1.JDOIDX = 5100 AND t0.JDOIDX = t1.USERX) FOR UPDATE null:
    Deadlock found when trying to get lock; Try restarting transaction
    Stacktrace:javax.jdo.JDODataStoreException:
    com.solarmetric.kodo.impl.jdbc.sql.SQLExceptionWrapper: [SQL=SELECT
    t0.JDOIDX, t0.JDOCLASSX, t0.JDOLOCKX, t0.ACCEPTCHARSETX,
    t0.ACCEPTLANGUAGEX, t0.ACCESSCOUNTERX, t0.BROWSERUSERAGENTX,
    t0.CREATEDX, t0.EMAILX, t0.EXPIRESX, t0.IPADDRESSX, t0.LASTACCESSEDX,
    t0.LOGINNAMEX, t0.LOGINNAMEUCX, t0.PASSWORDX, t0.REVOKEDX,
    t0.VALIDATEDX, t0.ADDRESS1X, t0.ADDRESS2X, t0.CITYX, t0.COUNTRYX,
    t0.FIRSTNAMEX, t0.LASTNAMEX, t0.SCREENNAMEX, t0.STATEX, t0.ZIPX,
    t0.CARDHOLDERSNAMEX, t0.CREDITCARDTYPEX, t0.CREDITCARDNUMBERX,
    t0.CVV2CODEX, t0.EXPIRATIONDATEX, t0.STATUSX, t0.ABOUTX, t0.APPROVEDX,
    t0.AVAILABLEX, t0.AVAILABLEBANDWIDTHX, t0.BCUSTOM1X, t0.BCUSTOM2X,
    t0.BCUSTOM3X, t0.BCUSTOM4X, t0.BCUSTOM5X, t0.CATEGORYX, t0.CUSTOM1X,
    t0.CUSTOM2X, t0.CUSTOM3X, t0.DESCX, t0.DISLIKESX, t0.LANGUAGESX,
    t0.LIKESX, t0.PERFORMERBLOCKINGX, t0.PERFORMERSITEX,
    t0.PRICINGPRERECORDEDX, t0.PRICINGPRIVATEX, t0.PRICINGPUBLICX,
    t0.PRICINGTHEATERX, t0.SERVICEPRERECORDEDX, t0.SERVICEPRIVATEX,
    t0.SERVICEPUBLICX, t0.SERVICETHEATERX, t0.SSNX FROM SITE_USERX t1,
    USERX
    t0 WHERE (t1.JDOIDX = 5100 AND t0.JDOIDX = t1.USERX) FOR UPDATE]
    [SQL=SELECT t0.JDOIDX, t0.JDOCLASSX, t0.JDOLOCKX, t0.ACCEPTCHARSETX,
    t0.ACCEPTLANGUAGEX, t0.ACCESSCOUNTERX, t0.BROWSERUSERAGENTX,
    t0.CREATEDX, t0.EMAILX, t0.EXPIRESX, t0.IPADDRESSX, t0.LASTACCESSEDX,
    t0.LOGINNAMEX, t0.LOGINNAMEUCX, t0.PASSWORDX, t0.REVOKEDX,
    t0.VALIDATEDX, t0.ADDRESS1X, t0.ADDRESS2X, t0.CITYX, t0.COUNTRYX,
    t0.FIRSTNAMEX, t0.LASTNAMEX, t0.SCREENNAMEX, t0.STATEX, t0.ZIPX,
    t0.CARDHOLDERSNAMEX, t0.CREDITCARDTYPEX, t0.CREDITCARDNUMBERX,
    t0.CVV2CODEX, t0.EXPIRATIONDATEX, t0.STATUSX, t0.ABOUTX, t0.APPROVEDX,
    t0.AVAILABLEX, t0.AVAILABLEBANDWIDTHX, t0.BCUSTOM1X, t0.BCUSTOM2X,
    t0.BCUSTOM3X, t0.BCUSTOM4X, t0.BCUSTOM5X, t0.CATEGORYX, t0.CUSTOM1X,
    t0.CUSTOM2X, t0.CUSTOM3X, t0.DESCX, t0.DISLIKESX, t0.LANGUAGESX,
    t0.LIKESX, t0.PERFORMERBLOCKINGX, t0.PERFORMERSITEX,
    t0.PRICINGPRERECORDEDX, t0.PRICINGPRIVATEX, t0.PRICINGPUBLICX,
    t0.PRICINGTHEATERX, t0.SERVICEPRERECORDEDX, t0.SERVICEPRIVATEX,
    t0.SERVICEPUBLICX, t0.SERVICETHEATERX, t0.SSNX FROM SITE_USERX t1,USERX> >> t0 WHERE (t1.JDOIDX = 5100 AND t0.JDOIDX = t1.USERX) FOR UPDATE null:
    Deadlock found when trying to get lock; Try restarting transaction
    [code=1213;state=S1000]
    NestedThrowables:
    com.solarmetric.kodo.impl.jdbc.sql.SQLExceptionWrapper: [SQL=SELECT
    t0.JDOIDX, t0.JDOCLASSX, t0.JDOLOCKX, t0.ACCEPTCHARSETX,
    t0.ACCEPTLANGUAGEX, t0.ACCESSCOUNTERX, t0.BROWSERUSERAGENTX,
    t0.CREATEDX, t0.EMAILX, t0.EXPIRESX, t0.IPADDRESSX, t0.LASTACCESSEDX,
    t0.LOGINNAMEX, t0.LOGINNAMEUCX, t0.PASSWORDX, t0.REVOKEDX,
    t0.VALIDATEDX, t0.ADDRESS1X, t0.ADDRESS2X, t0.CITYX, t0.COUNTRYX,
    t0.FIRSTNAMEX, t0.LASTNAMEX, t0.SCREENNAMEX, t0.STATEX, t0.ZIPX,
    t0.CARDHOLDERSNAMEX, t0.CREDITCARDTYPEX, t0.CREDITCARDNUMBERX,
    t0.CVV2CODEX, t0.EXPIRATIONDATEX, t0.STATUSX, t0.ABOUTX, t0.APPROVEDX,
    t0.AVAILABLEX, t0.AVAILABLEBANDWIDTHX, t0.BCUSTOM1X, t0.BCUSTOM2X,
    t0.BCUSTOM3X, t0.BCUSTOM4X, t0.BCUSTOM5X, t0.CATEGORYX, t0.CUSTOM1X,
    t0.CUSTOM2X, t0.CUSTOM3X, t0.DESCX, t0.DISLIKESX, t0.LANGUAGESX,
    t0.LIKESX, t0.PERFORMERBLOCKINGX, t0.PERFORMERSITEX,
    t0.PRICINGPRERECORDEDX, t0.PRICINGPRIVATEX, t0.PRICINGPUBLICX,
    t0.PRICINGTHEATERX, t0.SERVICEPRERECORDEDX, t0.SERVICEPRIVATEX,
    t0.SERVICEPUBLICX, t0.SERVICETHEATERX, t0.SSNX FROM SITE_USERX t1,
    USERX
    t0 WHERE (t1.JDOIDX = 5100 AND t0.JDOIDX = t1.USERX) FOR UPDATE]
    [SQL=SELECT t0.JDOIDX, t0.JDOCLASSX, t0.JDOLOCKX, t0.ACCEPTCHARSETX,
    t0.ACCEPTLANGUAGEX, t0.ACCESSCOUNTERX, t0.BROWSERUSERAGENTX,
    t0.CREATEDX, t0.EMAILX, t0.EXPIRESX, t0.IPADDRESSX, t0.LASTACCESSEDX,
    t0.LOGINNAMEX, t0.LOGINNAMEUCX, t0.PASSWORDX, t0.REVOKEDX,
    t0.VALIDATEDX, t0.ADDRESS1X, t0.ADDRESS2X, t0.CITYX, t0.COUNTRYX,
    t0.FIRSTNAMEX, t0.LASTNAMEX, t0.SCREENNAMEX, t0.STATEX, t0.ZIPX,
    t0.CARDHOLDERSNAMEX, t0.CREDITCARDTYPEX, t0.CREDITCARDNUMBERX,
    t0.CVV2CODEX, t0.EXPIRATIONDATEX, t0.STATUSX, t0.ABOUTX, t0.APPROVEDX,
    t0.AVAILABLEX, t0.AVAILABLEBANDWIDTHX, t0.BCUSTOM1X, t0.BCUSTOM2X,
    t0.BCUSTOM3X, t0.BCUSTOM4X, t0.BCUSTOM5X, t0.CATEGORYX, t0.CUSTOM1X,
    t0.CUSTOM2X, t0.CUSTOM3X, t0.DESCX, t0.DISLIKESX, t0.LANGUAGESX,
    t0.LIKESX, t0.PERFORMERBLOCKINGX, t0.PERFORMERSITEX,
    t0.PRICINGPRERECORDEDX, t0.PRICINGPRIVATEX, t0.PRICINGPUBLICX,
    t0.PRICINGTHEATERX, t0.SERVICEPRERECORDEDX, t0.SERVICEPRIVATEX,
    t0.SERVICEPUBLICX, t0.SERVICETHEATERX, t0.SSNX FROM SITE_USERX t1,USERX> >> t0 WHERE (t1.JDOIDX = 5100 AND t0.JDOIDX = t1.USERX) FOR UPDATE null:
    Deadlock found when trying to get lock; Try restarting transaction
    at
    com.solarmetric.kodo.impl.jdbc.runtime.SQLExceptions.throwDataStore(SQLExceptions.java:23)
    at
    com.solarmetric.kodo.impl.jdbc.runtime.JDBCStoreManager.load(JDBCStoreManager.java:348)
    at
    com.solarmetric.kodo.runtime.datacache.DataCacheStoreManager.load(DataCacheStoreManager.java:253)
    at
    com.solarmetric.kodo.runtime.StateManagerImpl.loadField(StateManagerImpl.java:1890)
    at
    com.solarmetric.kodo.runtime.StateManagerImpl.isLoaded(StateManagerImpl.java:663)
    at net.nearlythere.business.data.Site.jdoGetuser(Site.java)
    at net.nearlythere.business.data.Site.getUsers(Site.java:168)
    at
    net.nearlythere.business.CoreSiteBuilder.getPerformers(CoreSiteBuilder.java:883)
    at
    net.nearlythere.business.CoreSiteBuilder.getShows(CoreSiteBuilder.java:1041)
    at
    net.nearlythere.business.CoreSiteBuilder.getLiveShows(CoreSiteBuilder.java:3101)
    at
    net.nearlythere.business.CoreSiteBuilder.getLiveShows(CoreSiteBuilder.java:3077)
    at
    net.nearlythere.frontend.utils.CoreTool.getLiveShows(CoreTool.java:157)
    at
    net.nearlythere.frontend.utils.CoreTool.getRandomLiveShow(CoreTool.java:102)
    at sun.reflect.GeneratedMethodAccessor52.invoke(Unknown Source)
    at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at
    org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:259)
    at
    org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:207)
    at
    org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:357)
    at
    org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:135)
    at
    org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:271)
    at
    org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:215)
    at
    org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:153)
    at
    org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:271)
    atorg.apache.velocity.runtime.directive.Parse.render(Parse.java:232)
    at
    org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:153)
    at
    org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:271)
    at org.apache.velocity.Template.merge(Template.java:296)
    at
    org.apache.velocity.servlet.VelocityServlet.mergeTemplate(VelocityServlet.java:448)
    at
    org.apache.velocity.servlet.VelocityServlet.doRequest(VelocityServlet.java:387)
    at
    org.apache.velocity.servlet.VelocityServlet.doGet(VelocityServlet.java:333)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at
    org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:683)
    at
    org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:431)
    at
    org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:355)
    at
    org.infohazard.maverick.transform.DocumentTransform$Step.go(DocumentTransform.java:90)
    at
    org.infohazard.maverick.transform.StringTransformStep.done(StringTransformStep.java:70)
    at
    org.infohazard.maverick.view.DispatchedViewFactory$DispatchedView.go(DispatchedViewFactory.java:106)
    atorg.infohazard.maverick.view.DocumentView.go(DocumentView.java:52)
    at
    org.infohazard.maverick.flow.ViewWithTransforms.go(ViewWithTransforms.java:39)
    at org.infohazard.maverick.flow.CommandBase.go(CommandBase.java:51)
    at org.infohazard.maverick.Dispatcher.service(Dispatcher.java:179)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
    at
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
    at
    org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
    at
    org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
    at
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
    at
    org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    at
    org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
    at
    org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
    at
    org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
    at
    org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
    at
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
    at
    org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    at
    org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
    at
    org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
    at
    org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
    at
    org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
    at
    org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
    at
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
    at
    org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
    at
    org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
    at
    org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
    at
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
    at
    org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    at
    org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
    at
    org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
    at
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
    at
    org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    at
    org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:458)
    atorg.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551)
    at java.lang.Thread.run(Thread.java:536)
    NestedThrowablesStackTrace:
    java.sql.SQLException: null: Deadlock found when trying to getlock; Try
    restarting transaction
    at org.gjt.mm.mysql.MysqlIO.nextRow(Unknown Source)
    at org.gjt.mm.mysql.MysqlIO.getResultSet(Unknown Source)
    at org.gjt.mm.mysql.MysqlIO.sqlQueryDirect(Unknown Source)
    at org.gjt.mm.mysql.MysqlIO.sqlQuery(Unknown Source)
    at org.gjt.mm.mysql.Connection.execSQL(Unknown Source)
    at org.gjt.mm.mysql.Connection.execSQL(Unknown Source)
    at org.gjt.mm.mysql.Statement.executeQuery(Unknown Source)
    at org.gjt.mm.mysql.jdbc2.Statement.executeQuery(Unknown Source)
    at
    com.solarmetric.kodo.impl.jdbc.datasource.StatementImpl.executeQuery(StatementImpl.java:38)
    atcom.solarmetric.kodo.impl.jdbc.sql.Select.execute(Select.java:242)
    at
    com.solarmetric.kodo.impl.jdbc.ormapping.ClassMapping.selectPrimaryMappings(ClassMapping.java:860)
    at
    com.solarmetric.kodo.impl.jdbc.ormapping.ManyToManyMapping.load(ManyToManyMapping.java:126)
    at
    com.solarmetric.kodo.impl.jdbc.runtime.JDBCStoreManager.load(JDBCStoreManager.java:343)
    at
    com.solarmetric.kodo.runtime.datacache.DataCacheStoreManager.load(DataCacheStoreManager.java:253)
    at
    com.solarmetric.kodo.runtime.StateManagerImpl.loadField(StateManagerImpl.java:1890)
    at
    com.solarmetric.kodo.runtime.StateManagerImpl.isLoaded(StateManagerImpl.java:663)
    at net.nearlythere.business.data.Site.jdoGetuser(Site.java)
    at net.nearlythere.business.data.Site.getUsers(Site.java:168)
    at
    net.nearlythere.business.CoreSiteBuilder.getPerformers(CoreSiteBuilder.java:883)
    at
    net.nearlythere.business.CoreSiteBuilder.getShows(CoreSiteBuilder.java:1041)
    at
    net.nearlythere.business.CoreSiteBuilder.getLiveShows(CoreSiteBuilder.java:3101)
    at
    net.nearlythere.business.CoreSiteBuilder.getLiveShows(CoreSiteBuilder.java:3077)
    at
    net.nearlythere.frontend.utils.CoreTool.getLiveShows(CoreTool.java:157)
    at
    net.nearly

  • RH8 Numbering problems

    Hi All,
    I've recently upgraded to RH8 from RH6. Previously I did our stepped instructions like so
    Example:
    "1. Perform the task" using a numbered para style
    Then, if say a screen is displayed I used an indented "step follow on" style which wasn't numbered
    The xx screen is now displayed.
    This typically might be followed by another numbered step. To obtain the correct numbering in RH6 I'd have to format bullets and numbering for the paragraph and set the numbering to the correct value giving me..
    2. Perform the next step etc.
    When I tried this in RH8 the main menu option of bullets and numbering had gone and the right click menu resulted in the default numbe of 1 vanishing leaving an unumbered paragraph.
    What I want to do is:
    a. Not screw up my previous files
    b. Be able to use separate step and stp follow on paragraphs when documenting stepped procedures.
    Please can anyone advise how to solve this problem in RH8?

    Many Thanks Peter.
    For anyone else's benefit, what I decided to do was to create new styles to use from now on. These use the new list for autonumbering features available in RH8. See Peters website detailed above...
    Much to my delight, using this I can now have some stepped instructions with some screens or consequences text in between with out losing the numbering sequence. This is now much more in the style of Framemaker and is a very, very welcome improvement.
    By happy coincidence I'm creating a new help system and so will be able to utilise this going forward.  I'm not however going to change our legacy help systems as they're too large and by creating new para styles I should eliminate corrupting material formatted using the previous system. Should I have to update a legacy topic I could then apply the new styles without adverse effect.

  • Mysql show result-- com.mysql.jdbc.NotImplemented: Feature not implemented

    Hello,
    I have set a database and I am trying to show a simple select.I have this code for example:
    String SQL = "SELECT * FROM DatabaseName.tableName";
                         stmt = (Statement) conn.createStatement();
                         rs = (ResultSet) stmt.executeQuery(SQL);
                         while (rs.next()) {
                            System.out.println(rs.getArray(3));
                         }And all I get is an exception:
    com.mysql.jdbc.NotImplemented: Feature not implemented
    at com.mysql.jdbc.ResultSet.getArray(ResultSet.java:1043)
    Is this right?I have tried other methods but I get the above.How to show the result.
    It is in 3rd column double value.

    Are you guys always this cranky? Who's cranky? It's important for the integrity of these forums that misinformation isn't left lying around uncorrected. If that makes you cranky, try elsewhere where the standards may not be so high.
    I posted something that works, now is it exactly as whatever getArray does?No.
    Probably not.Just a minute. You said here that 'the work around code' is something like this, and here that 'it actually is the same result'. You were mistaken. Twice. You are now in the process of changing your mind. Let me help you. It is definitely not exactly what getArray() does. Not even close. Completely different. getArray() gets an array directly from the database from a single column in the current row in the result set. Your code constructs an array from a single column across all rows in the result set. There is no comparison.
    What's wrong with helping outWhat's wrong with getting it right? What's wrong with pointing out an error? What's wrong with admitting when you're mistaken? What's wrong with alerting the OP not to mention all future readers of this thread that it contains misinformation? What's wrong with you finding out that you were wrong?
    and posting what you think it should say
    rather than just being negative?As a matter of fact nobody was 'just negative'. I pointed out exactly what the difference between your code and getArray() is. But by 'negative' do you mean pointing out that you were wrong? Nothing wrong with that.

  • Can you include feature like LIMIT in Mysql next release

    Hi,
    It brings me trouble in code design when using query:
    SELECT col FROM (SELECT col, ROWNUM r FROM table ORDER BY ord) WHERE r BETWEEN 10 AND 20.
    In most of other databases, such query can be done much easier, eg:
    SELECT col FROM table WHERE cond ORDER BY ord LIMIT 10, 20
    I think this is a "nice to have" feature in Oracle.
    Sean

    I need to specify the results are from row 10 to row 20As I said above, without any order by clause, there is no sens to get the rows from 10 to 20 (10th to 20th on which criteria ?).
    So, when you will choose a criteria, you will able to get the rows from 10 to 20, for example :
    SQL> select username, created, row_number() over (order by created) rn from all_users order by 2;
    USERNAME                       CREATED          RN
    SYS                            14/11/05          1
    SYSTEM                         14/11/05          2
    OUTLN                          14/11/05          3
    DBSNMP                         14/11/05          4
    PS                             14/11/05          5
    H89UCBAC                       14/11/05          6
    PEOPLE                         14/11/05          7
    ONE                            06/07/06          8
    TITI                           11/07/06          9
    TOTO                           31/08/06         10
    TATA                           21/09/06         11
    11 rows selected.
    SQL> select username, created
      2  from (select username, created, row_number() over (order by created) rn from all_users)
      3  where rn between 5 and 8;
    USERNAME                       CREATED
    PS                             14/11/05
    H89UCBAC                       14/11/05
    PEOPLE                         14/11/05
    ONE                            06/07/06
    SQL> Wheck the doc for row_number, rank and dense_rank to see the differences between these ones. Depend of what exactly you want.
    Nicolas.

  • Difference between RAC and MySQL Cluster !

    Difference between RAC and MySQL Cluster
    Please write me in well explanation , with examples , needed useful link and all other stuffs.
    (1)Italian dealers/distributors for MySQL
    (2)Difference between RAC and MySQL Cluster
    (3)Pricing about MySQL and PostgreSQL
    (4)How and which type / Way to deliver support by MySQL
    (5)Security features about MySQL Vs Oracle
    (6)Management Console
    MySQL Vs Oracle
    Thanks in advance !
    MySQL Cluster

    Ha ha, most amusing.
    I suggest you try googling for answers to these things. This is a site dedicated to the Oracle database, the questions are answered by volunteers (not Oracle employees) and we are primarily geeks rather than marketing droids. If you have a specific Oracle question please feel free to post anytime.
    Thank you for your interest.
    Arrivederci, APC

Maybe you are looking for

  • Two Macs, one external boot drive (not at same time)

    I'm in a weird situation where I travel b/t two cities during the week and am looking to have a computer in each. Have been doing the laptop thing, but it's too heavy to drag everyday and too slow for the video editing (I'm a filmmaker) I need to do

  • Regarding SharePoint2013 Hybrid Search

    Hi Folks, i have recently configured SharePoint Hybrid Search but i am getting this error while i am testing query in search result. i have followed this blog step by step to configure Hybrid Search Office 365-Configure Hybrid Search with Directory S

  • Custom EQ on Zen 2

    Hey all owners of Zen 20GB (Zen Micro too)... What settings do you guys set for your Zen 20GB? How about sharing it with us. (I am aware there a a similar thread regarding EQ settings, but that was for the micro and touch...so here i am setting my ow

  • Help of iPhoto refuses to open

    Hi, a previous member has already posted about this : Quote : The Help file opens to show contents but opens no further. Says "Can't Open Content". Unquote and I'm surprised that nobody has answered yet. I'm French and live in France, so my computer

  • Got my Blackberry 8320 Curve wet..... keyboard and answer key not working

    I have a Blackberry 8320 Curve (gold) have not had it to long, but I bought from a friend of a friend...... well my phone recently got soaken wet and now some of the keys on the querty keyboard dont work, by side buttons, like for the camera and voic