Problem persisting after finding

Hi everybody sorry about my english i have an issue that if driving me mad
I'm making an GUI to manage cities i got a jtable that shows all the cities that the user may update and a jbutton that initialize all field to insert a new one
If i click on a city (use find of tha jpacontroller) and then click on the button ( make a persist), insert the new one and update the previous with the data of the new!!!
Here is the code:
//NEW button reset fields
private void botonNuevoActionPerformed(java.awt.event.ActionEvent evt) {                                          
tfCodigoPostal.setText("");
tfNombre.setText("");
tfCodigoPostal.requestFocus();
ciudadActual=null; //Object that manage the actual city to update or insert is of class Ciudad (city in spanish)
//Mouse releade method of the table
private void jTableCiudadesMouseReleased(java.awt.event.MouseEvent evt) {                                     
controladorCiudad= new CiudadJpaController(); //JPA controller
Integer fila=jTableCiudades.getSelectedRow();
Integer valorCelda = Integer.parseInt(jTableCiudades.getValueAt(fila,0).toString());
controladorCiudad=null;
jLabel3.setText(fila.toString());
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {                                        
if (ciudadActual==null) {ciudadActual=new Ciudad();                                                     //if is null is a new city, make a new one and load the data if not only load data
                ciudadActual.setCodPostal(Integer.parseInt(tfCodigoPostal.getText().toString()));
                ciudadActual.setNombre(tfNombre.getText().toString());
try{
entityManager1.getTransaction().begin();
if (ciudadActual.getIdCiudad()==null) //if there is no id then is a new one use persis else use merge
entityManager1.persist(ciudadActual);
else entityManager1.merge(ciudadActual);
entityManager1.flush();
entityManager1.getTransaction().commit();
listaCiudades.clear();
listaCiudades.addAll(queryCiudades.getResultList());
} catch(Exception e) {
System.out.print(e.toString());
JOptionPane.showMessageDialog(null,
"No se pudo ingresar el registro:" + e.getMessage(),
"Error de ingreso",
JOptionPane.ERROR_MESSAGE);
entityManager1.getTransaction().rollback();
return;
JOptionPane.showMessageDialog(null,
"Valores ingresados con exito",
"Actualizacion exitosa",JOptionPane.INFORMATION_MESSAGE);
If i click in a exiting city of the table then insert a new one 2 modifications to the database is made (insert the new city and update the one that clicked with the new data)
and help will be apreciated
thanks in advance

It sounds like you are modifying an existing city object, instead of a new one. Ensure that you create a new city object and do not modify an existing one from the UI.
If still stuck, perhaps include the full source to this class, where is ciudadActual used and where is it being modified. Sounds like the UI is directly modifying this object.
James : http://www.eclipse.org/eclipselink/

Similar Messages

  • Disk problem persists after hard drive replaced

    I've recently inherited a Macbook Pro which proceeded to die almost immediately. It showed all the signs of hard disk failure - erratic crashing, sometimes failing to boot, hanging/going slow. Eventually it completely refused to boot, sometimes showing the ? in a directory symbol - other times just going nowhere.
    Starting the laptop target mode allowed the recover of files, but not reformatting the disk.
    So I replaced the hard disk, only to find the same problem. When I go to install OSX I cannot format the disk to start the installation.
    I also (accidentally!) installed OSX on another computer's hard drive using the other computer in target mode. This worked fine, until, obviously, I unplugged the other computer.
    Is this a hard disk controller problem or something?
    Any help much appreciated!

    I actually just had this same issue when I put a new hd in my mbp. I found this info on seagate, which enabled me to initialize the drive. The link is below. After that everything was ok. Hope it helps.
    http://www.seagate.com/ww/v/index.jsp?locale=en-US&name=sata-mac-install&vgnexto id=050ae579ea085110VgnVCM100000f5ee0a0aRCRD

  • Flash problem persists after 6 months...does this new information help?

    Hi All!
    I posted my problem almost 6 months ago, (I'll paste some of the info below to bring you up to date), but I STILL can't access only FOUR sites because I get a "Plugin file is missing" error, (after my previous post I found 2 other sites).  I've been trying to solve this problem off & on, but I got more dedicated the other day because I'll be needing access to these sites very soon.  I found some new information today that I hope will solve this awful problem; however, since I'm not very technically inclined I know I have to ask a "Flash Expert", so here goes....
    I run Windows 8 & I use Mozilla exclusively.  I updated Flash the other day to version 15.0.0.152 & I wanted to make sure the plugins had been updated, so I opened the "Flash Player Settings Manager" & under the "Advanced" tab it lists:
                                            NPAPI Plugin Version 15.0.0.152
                                            PPAPI Plugin Version Not installed
    Is it significant that the PPAPI Plugin is "Not installed", or does Mozilla only require the NPAPI plugin? 
    My second question regards the installation of Flash.  I know that when a program is problematic, it sometimes helps to uninstall & reinstall it...I recently had a game that went nuts & that's the procedure I had to do.  Also, someone on Mozilla's forum said they were having a Flash issue & they went to your site & downloaded the .exe AND the .msi Installers from the Distribution Page, then manually installed them & their problem was resolved.  Would this help me resolve MY Flash problem?  If you think it's worth a try, do I have to uninstall Flash first?
    Well, that's all the new info I have.  I have to figure this out before December because that's when the nest-cam comes back on...I really have to get this problem fixed!  I'll paste my previous post below, but I hope the uninstall/reinstall method will be the answer!
    Thanks in advance for your help!
    Best Regards,
    DogPal
    Here's my previous post:
    Flash 13.0.0.214 does NOT work on some sites, but works fine on all others in Using Flash Player
    Hi!
    I watch several wildlife nest-cams every day running Windows 8 using Firefox 29.0.1, but yesterday morning, (after I'd already watched the 6 cams I view every day), I started getting a solid, black screen with, "Error loading plugin: Plugin file not found", on TWO of these sites.
    My attempts to resolve the problem were:
    1.  Checked all the other web-cam sites I view daily, and there's only a problem on 2 of them.
    2.  Went to You Tube, Facebook & other similar sites and I can view streaming media.
    3.  Refreshed pages-when that didn't help, I closed & reopened Firefox & still 2 sites with "plugin loading error"
    4.  Completely shut-down my laptop & rebooted.
    5.  Did "System Restore" to earlier in the day when ALL web-cam sites were working.
    6.  Went to Adobe Flash site & verified that I had the most current version...I do, & I saw the animations on Flash site.
    7.  Verified my Flash Plugins in Firefox...AGAIN...they're all activated & up-to-date
    8.  Checked & re-checked ALL the web-cam sites I view every day, (for, at least the 10th time), and the
         same 2 sites are still showing the "Error loading plugin: Plugin file not found" on a black screen.  Even
         though the video isn't seen the "chat" area is functioning, (I don't know if that's important, but I
         thought I should mention it).
    9.  I posted the issue on Firefox's Forum but no one has an answer since Flash works everywhere except
         for 2 sites.
    I've tried everything I can think of to troubleshoot this, but as you can see, I've had no success in solving this "mystery".
    As for the 2 sites I can't view, they are: 
                                        http://www.pixcontroller.com/eagles/    And
                                        http://www.westmorelandconservancy.org/BlueBirdWebcam-1.htm
    I've been watching these sites for MONTHS, so why I can't view them all of a sudden, well, I'm clueless, (I guess you already figured that out...ha ha ha).  I was watching the 2 sites listed above early yesterday morning, then when I looked at one of the other cams I view and came back to these 2 sites, I got the "error message".
    I hope you have a solution for me, as I'm desperate!  I'm WAY behind in my documentation for these 2 sites, so hopefully you'll have an easy answer.  If it's a technical thing, please use LOTS of details, as I'm not very technically inclined.
    Thanks in advance for your help!
    Best Regards,
    DogPal 
    P.S.  I just checked on another site that offers many different wildlife cams, & I CAN view the "Pittsburgh Bald Eagles" if I go through: http://www.ustream.tv/channel/pittsburgh-bald-eagles    I'm sure this means something, but since I don't understand this technical stuff I don't know what that is!  (I told you I'm clueless!) 

    I definitely see a problem with the pixcontroller/eagles site on Windows 8.1.  It works fine for me in the same version of Firefox on Windows 7.  It's unclear to me whether it's a Firefox or a Flash Player issue, but I'm happy to look into it further and get some bugs filed.
    As a temporary workaround, both sites work fine with Google Chrome and Internet Explorer.

  • Windows 7 bluescreens on shutdown, problem persists after Windows reinstall

    PAGE_FAULT_IN_NONPAGED_AREA.  The video shuts down too quickly for me to read anything else.
    Sure, it sounds like a hardware problem.  However,
    1) It doesn't happen when I shutdown from safe mode  (before nor after reinstalling Windows)
    2) I ran the Windows memory diagnostics and they come up clean
    I live in Brazil so I'm running the Brazilian Portuguese version.
    Any clues?

    Hi,
    As ZigZag3143x says, detail information is very important for analyzing.
    Before we could get your Minidump files, I would like to suggest you try the following:
    1. Update your display card and chipset drivers.
    2. check disk.
    Run Check Disk from a Command Line to Check for and fix Disk Errors
    http://technet.microsoft.com/en-us/magazine/ee872425.aspx
    3. Also refer to the article below which explains about this error.
    Bug Check 0x50: PAGE_FAULT_IN_NONPAGED_AREA
    http://msdn.microsoft.com/en-us/library/windows/hardware/ff559023(v=vs.85).aspx
    In addition, you may refer to the following link to check the issue:
    "Resolving stop (blue screen) errors in Windows 7
    http://windows.microsoft.com/en-US/windows7/Resolving-stop-blue-screen-errors-in-Windows-7
    Hope it helps.
    Regards,
    Blair Deng
    Blair Deng
    TechNet Community Support

  • Font looking too small on certain sites (problem persists after a bit of basic troubleshooting)

    FF started handling fonts awry just out of the blue. I don't recall installing anything or fiddling with settings (be it Win7 or Firefox itself) the day before I started having this problem.
    I've tried by now:
    * Resetting zoom
    * Clearing history (didn't, however, clear site preferences)
    * JS, Basic Page Style are obviously enabled
    * Fiddling with minimum font size settings (to no avail)
    * Running FF in safe mode (thus, not an issue with my add-ons)
    Want to make it clear, that google isn't the only site affected.
    Print screen: [http://imageftw.com/uploads/20110830/firefox.jpg google search]
    EDIT: at the time I still had FF 5, updated it to 6 but the issue remained.

    Since Chrome is working, then there's something going wrong with your IE and Firefox installs of Flash Player.  Could you tell me what files you have in the C:\Windows\System32\Macromed\Flash folder?
    You might want to give a clean install a shot:
    How do I do a clean install of Flash Player?
    Then for IE issues, follow it up with the steps in:
    Enabling Flash Player in Internet Explorer 9

  • TS4088 What happens if problems persist after I install the patch?

    I've installed the software patch a few times and find that for a few days to a few weeks the intermittent loss of video seems fixed, and then it will come back with several blackouts in a short span of time, which prompts me to install the patch again...
    Anyway, I'm wondering if there's a chance that upgrading my OS will fix it? Or is it just time to go to Genius bar and be w/o my machine for a while?

    The information is here:
    http://support.apple.com/kb/ts4088
    Changing OS will not solve the issue.  A genius bar appointment is the best option.
    Ciao.

  • Firefox (file version8.0.0.4325 suddenly became very slow and slowed down my whole computer; problem persisted after rebooting and setting the plugin things to "false" as recommended on a website. Please help me !!!!

    It happened when I was browsing the RMS Titanic website (this site has some animation, so i guess the problem originates from the plugins that allow this animation). Now Firefox is awfully slow.

    It happened when I was browsing the RMS Titanic website (this site has some animation, so i guess the problem originates from the plugins that allow this animation). Now Firefox is awfully slow.

  • Uverse Internet Constant Intermittent Connectivity, and problem persists after multiple modem-replacement, plus field technicians cannot resolve problem

    P.S. And all this new technology is biggybacking on very old technology. the bottleneck my be in the old technology. 

    Elementalfascination wrote:
    ...Wired connection with SPEEDTEST at 43-47 mbps using 10g ethernet direct from modem. (Full package service BTW) via NVG589... Okay, I took this to mean that you were getting satisfactory preformance.  I misread and I apologize.  Your issues are with buffering of video streams and actual website performance, not raw download speed.Elementalfascination wrote:
    Is it possible that the U-Verse service just isn't reliable? ...Reliable means different things to different people.  One of the first components of reliablity would be "Do you remain in contact with the Internet at all times," versus "Does my modem lose connectivity all the time."  Via this metric, it would seem to be reliable.  Is this not so? A second metric would be "Is the measured download speed consistantly near what I pay for?"  Apparently it's reliable in this as well. A third metric would be "Does it consistantly work with all network applications."  Here is where you're experiencing an issue. To be fair to the Premise tech, he knows about the first issue and can do somethings about the second issue, but he doesn't have a clue about the third.  Similarly, a line tech can't help you with this, either.  And don't get me started about first level phone support. This deals with network traffic, peering, routing, buffering, etc.  You need a network tech.   Strangely enough, no consumer ISP makes access to this sort of tech readily available to the end user.  It's a 80/20 rule (more like 90/10 rule), most customers don't experience these sorts of issues and it doesn't make sense to staff to handle them as a matter of course. If you wish to work with an AT&T team that does have some knowledge of these sorts of issues and has access to more back end resources, then please click this U-verse Customer Service link to send a Private Message (PM) to the AT&T customer service team to help you resolve your situation. You can expect a reply via return PM (the blue envelope in the upper right hand corner of this site) in a business day or three.
    This is a group of U-verse service specialists who are knowledgeable about U-verse and will stay with your problem until the end (instead of forgetting about it when the phone hits the cradle). Speed things up by including your Billing Account Number, and the best time and way to reach you. Regarding your comment about Googling to see that this is a common problem... just for fun, repeat your search and substitute any other consumer ISP for AT&T and see what you get.  If you see a big difference, I'd be amazed.  Unless, of course, that ISP doesn't provide a forum like this for users to report such issues.  All ISP's have issues of some sort of another that some customers will experience. One more thing before I go.  Are your PC's connecting directly to the RG, or are you using some other intervening router?  

  • Strange visual corruption of Firefox 7.0.1, persists after complete removal and reinstall

    I noticed this a couple of days ago but my firefox appears 'distorted' almost like everything is scribbled. The text isn't smooth or distinct, all borders don't appear even and it persists through all menus, sub-menus, every website, etc.
    No other software on my system is experiencing this, and my laptop install of Firefox is just fine. I have a screenshot to compare between FF7.0.1 and the most recent build of Chrome.
    While this only started a few days ago I did recently install a new video card, ATI HD 6750, however no other software is affected in the same way.
    I've attempted to run a full removal of Firefox and reinstall but the problem persists after reinstallation.
    Any help would be greatly appreciated

    Additional:
    I ran FF in safe mode and that corrected the visual corruption but there were no differences in add-ons etc so still no idea what the fundamental cause of the issue is. Please see attached screenshot for clarity

  • Opening files with Illustrator and photoshop doesn't work, i have to drag the files from finder in to the program. This problem appears after opening 4 a 5 files.

    Opening files with Illustrator and photoshop doesn't work, i have to drag the files from finder in to the program.
    This problem appears after opening 4 a 5 files, rebooting helps another 4 a 5 times and appears again.

    I'd recommend reposting in the Boot Camp forum, that is where the Boot Camp and Windows gurus hang out.
    Good luck.

  • A few selection of websites after fully loading become blank and start an infinite loop of loading. I reinstalled firefox once already and the problem persists. What can I do?

    A few selection of websites after fully loading become blank and start an infinite loop of loading. I reinstalled firefox once already and the problem persists. What can I do?

    Sorry I do not know what the problem may be. <br />
    If no-one comes up with better ideas of what causes this then my questions and suggestions:
    What do you mean by an infinite loop ? <br />
    The page loads and then goes blank. What exactly happens next, does the page fully load and fully display again before going blank, and repeat this cycle endlessly in the same tab.
    You do say the problem persisted in safe-mode and you had looked at the basic troubleshooting article. Buy that you can stop the problem by disabling javascript.
    * did you disable all plugins - and did you still get the problem then ?
    As you mention disabling javascript stops the problem, have you tried with<br /> Java script enabled but
    * block popups ON
    * load images automatically OFF
    * advanced options - ALL OFF<br /> What happens do you get the problem then or not.
    While on this firefox site if I look at the error console Ctrl+Sift+J or Tools -> Error console If I clear the console content and reload the webpage the error console shows only a couple of messages. YouTube home page give a lot of yellow triangle warnings about 200, but no red warnings, do you get red warnings.
    You could also try on the problem sites eg YouTube changing the permissions with tools -> Page Info | Permissions
    Did you try the Basic Troubeshooting suggestion of making a new profile. (Heeding the warning not to delete settings, otherwise you loose all bookmarks etc) did that help ?

  • Mail gave error message, failure to move e-mail to trash can.  Mail has frozen and will not quit and is stopping a machine shutdown.  Problem persisted even after power was trend off for a minute.

    Mail gave error message, failure to move e-mail to trash can.  Mail has frozen and will not quit and is stopping a machine shutdown.  Problem persisted even after power was trend off for a minute.Iideas please

    OS X: How to quit an unresponsive application using Force Quit
    Back up all data. Rebuild the mailbox. Try to delete the message again.

  • Even after setting system preferences to Never accept cookies and having deleted all cookies, Safari continues to add cookies.  I've tried to reset safari but the problem persists.  How can make safari Never accept cookies.

    I'm having a problem with cookies on Safari.
    Even after setting system preferences to Never accept cookies and having deleted all cookies, Safari continues to add cookies.  I've tried to Reseting Safari several time but the problem persists.  This is occurring under two different user logins one of whom is an administrator the other a standard user.  How can I get safari to Never accept cookies?  This is a recent problem because in the past it used to work properly. Any idea what might be going on here?

    Hi David:
    I did read (yesterday in another thread) about a similar problem.  I cannot test it myself as I accept cookies (from sites I visit) and do not want to delete all of mine for a test.
    I do not know whether it meets your requirements, but you could turn on private browsing.  I use that (or Microsoft's variant on IE) when I use public computers.
    Barry

  • How do I fix my ipod classic that says very low batter after I have charged it and the problem persists?

    I have an Ipod video 30g that says Please wait very low battery. I charged it for about a day and the problem persists. I've tried using some solutions on the internet and none of them worked including: holding the menu and select, holding select and play to put it in disk mode with no avail. Is there anyone who can help me!!!

    Have you read this post written by another forum member?
    The Sad iPod icon.
    However, as your iPod was purchased on Boxing Day, why not get it serviced under the warranty?
    You can arrange online service here.
    Service request.
    Or if an Apple store is near you, take it there and have them check your iPod.
    You can make an appointment by using this link.
    Genius Bar Appointments.

  • Hi, I am prompted to download the latest  Tunes software (10.7) but after starting the process is stopped and the massage says "Errors occured while installing, if the problem persists choose Tools download only) This process also stops part way through

    Hi, I am prompted to download the latest I Tunes software (10.7) (I have done this sucessfully for other versions many times before)
    The process starts but stops quite quickly.A message pops up "Errors have occured while installing updates, if the problem persists choose Tools>Download Only and install manually" When I try this it still fails but another message pops up "Invalid signature, the download has been removed"
    Not very sharp on computers so any help would be appreciated.
    Regards

    Try updating your iTunes using an iTunesSetup.exe (or iTunes64Setup.exe) installer file downloaded from the Apple website:
    http://www.apple.com/itunes/download/

Maybe you are looking for

  • Nokia 6280 Time Display problem

    The problem I am facing is that whenever I set time..it gets back to 00:00 again. I don't know what's wrong with this set.The time display always remains at 00:00. After setting time when I press return to main menu it gain turns to 00:00 . and that

  • Download remaining message not working.

    I have numerous emails that are not fully downloaded with the above mentioned message and the entire email will not download when tapped. It appears to try to download and then stops. The full email is viewable on my PC via Outlook. I was told it mig

  • Opening a word file from oaf page

    Hello all, we have a word file which we need to open from OAF page. Is it possible to achieve this using personalization? If yes, please give me the steps. If not, we we need to go for customization to achieve this, whichis the approach on that? Than

  • How to give rebate according to ship to party

    how to give rebate according to ship to party.

  • Wiring hardware for pulse width measurement

    I am in difficulty.even with so simple pulse width measurement. I am using labview 7.1, DAQmx, MAX, PCI - 6220. I cannot find help document as to how to measure PW measurement and I find no connection diagram in MAX for using pulse width measurement.