Now a problem with MySQL

They told me that i might find a solution for my problem here.
here is the problem:-
http://discussions.apple.com/thread.jspa?threadID=2507781&tstart=0
Thank u

The path to the mysqlsecureinstallation script is probably hidden away in /usr/local/mysql/bin. Still, you shouldn't be running any kind of public MySQL server from your Mac. You don't need to bother with that script.

Similar Messages

  • I installed Mavericks yesterday and have now got problems with QuarkXpress 9. Every time I click on an image and try to move it the application crashes. Anyone had similar problems or got any suggestions?

    I installed Mavericks yesterday and have now got problems with QuarkXpress 9. Every time I click on an image and try to move it the application crashes. Anyone had similar problems or got any suggestions?

    Hi Guys
    Updated my 2 imacs to Maverick yesterday. Schoolboy error on my part not checking if there were problems with any programmes before I did.
    Quark is now a nightmare with no short term answer on the way. As a Quark user for over 20 years this is just another reason to hold your hands up and say OK Indesign you win I will have to learn how to use you and Quark will be a distant memory.
    I am told there will probably be no solution to getting quak 9 running on Maverick and that you will need to update to 10 in about 2-3 weeks to get back to normal. Having spent a few bob on 2 versions of 9.5 only in Feb this year i didn't really want to upgrade yet.
    So its cough up to carry on using Quark or learn Indesign.
    I have lost faith in Quark as they are quick to send me e-mails asking me to upgrade to this and that version, why didn't they send one out saying do not upgrade to Maverick. Perhaps they know there loyal follwing will uograde to 10 and will generate a nice little bonus before Xmas.
    Lots to do today and will now take 10 times longer to do it. Is this 2013 or 1974!!!!!
    If anyone hears of a solution please post ASAP

  • Problems with MySQL in JSC 2

    i have problem with MySQL i have a driver i added it in to servers list and i made tests with data source everythink is ok, i see tables but when i drop a table from data source on table componenet(or other) i have errors nullPointerExpection at: (here is very long list of java classes. when i click "view data" of table in data source everythink works, only in components it doesn't. Can sombody help me please. I hope you understood my problem if not i will try to explain it once again.

    i get his Exception:
    A java.lang.NullPointerException exception has occurred.
    Please report this at http://www.netbeans.org/issues.html,
    including a copy of your messages.log file as an attachment.
    The messages.log file is located in your C:\Documents and Settings\Leszczyński\.Creator\2_0\var\log folder.
    here are details:
    java.lang.NullPointerException
         at com.mysql.jdbc.PreparedStatement.asSql(PreparedStatement.java:565)
         at com.mysql.jdbc.PreparedStatement.asSql(PreparedStatement.java:507)
         at com.mysql.jdbc.PreparedStatement.toString(PreparedStatement.java:3290)
         at java.lang.String.valueOf(String.java:2577)
         at java.lang.StringBuffer.append(StringBuffer.java:220)
         at com.mysql.jdbc.trace.Tracer.printParameters(Tracer.aj:240)
         at com.mysql.jdbc.trace.Tracer.printEntering(Tracer.aj:167)
         at com.mysql.jdbc.trace.Tracer.entry(Tracer.aj:126)
         at com.mysql.jdbc.trace.Tracer.ajc$before$com_mysql_jdbc_trace_Tracer$1$f51c62b8(Tracer.aj:45)
         at com.mysql.jdbc.Connection.registerStatement(Connection.java)
         at com.mysql.jdbc.Statement.<init>(Statement.java:190)
         at com.mysql.jdbc.PreparedStatement.<init>(PreparedStatement.java:432)
         at com.mysql.jdbc.ServerPreparedStatement.asSql(ServerPreparedStatement.java:343)
         at com.mysql.jdbc.PreparedStatement.asSql(PreparedStatement.java:507)
         at com.mysql.jdbc.ServerPreparedStatement.toString(ServerPreparedStatement.java:2306)
         at java.lang.String.valueOf(String.java:2577)
         at java.lang.StringBuffer.append(StringBuffer.java:220)
         at com.mysql.jdbc.trace.Tracer.printParameters(Tracer.aj:240)
         at com.mysql.jdbc.trace.Tracer.printEntering(Tracer.aj:167)
         at com.mysql.jdbc.trace.Tracer.entry(Tracer.aj:126)
         at com.mysql.jdbc.trace.Tracer.ajc$before$com_mysql_jdbc_trace_Tracer$1$f51c62b8(Tracer.aj:45)
         at com.mysql.jdbc.Connection.registerStatement(Connection.java)
         at com.mysql.jdbc.Statement.<init>(Statement.java:190)
         at com.mysql.jdbc.PreparedStatement.<init>(PreparedStatement.java:414)
         at com.mysql.jdbc.ServerPreparedStatement.<init>(ServerPreparedStatement.java:280)
         at com.mysql.jdbc.Connection.prepareStatement(Connection.java:4288)
         at com.mysql.jdbc.Connection.prepareStatement(Connection.java:4226)
         at com.sun.rave.sql.DesignTimeConnection.prepareStatement(DesignTimeConnection.java:187)
         at com.sun.sql.rowset.CachedRowSetXImpl.getMetaData(CachedRowSetXImpl.java:2334)
         at com.sun.data.provider.impl.CachedRowSetDataProvider.getMetaData(CachedRowSetDataProvider.java:1317)
         at com.sun.data.provider.impl.CachedRowSetDataProvider.getFieldKeys(CachedRowSetDataProvider.java:489)
         at com.sun.rave.web.ui.component.table.TableRowGroupDesignState.resetTableColumns(TableRowGroupDesignState.java:261)
         at com.sun.rave.web.ui.component.table.TableRowGroupDesignState.setDataProviderBean(TableRowGroupDesignState.java:163)
         at com.sun.rave.web.ui.component.table.TableDesignState.setDataProviderBean(TableDesignState.java:250)
         at com.sun.rave.web.ui.component.TableDesignInfo.linkBeans(TableDesignInfo.java:162)
         at com.sun.rave.insync.models.FacesModel.linkBeans(FacesModel.java:1042)
         at com.sun.rave.designer.DndHandler.processLinks(DndHandler.java:2126)
         at com.sun.rave.designer.DndHandler.importBean(DndHandler.java:880)
         at com.sun.rave.designer.DndHandler.importItem(DndHandler.java:702)
         at com.sun.rave.designer.DndHandler.importDataDelayed(DndHandler.java:376)
         at com.sun.rave.designer.DndHandler.access$000(DndHandler.java:114)
    [catch] at com.sun.rave.designer.DndHandler$1.run(DndHandler.java:298)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
    yes i use JSC 2
    Is it posible that my MySQL is not working properly??
    Micz.

  • Hi  I have Iphone 4 which the 2yrs warranty is over and now having problem with the phone LCD is flickering wat should i do.

    Hi  I have Iphone 4 which the 2yrs warranty is over and now having problem with the phone LCD is flickering wat should i do.

    Service Answer Center - iPhone - http://support.apple.com/kb/index?page=servicefaq&geo=US&product=iphone  <-- enter correct country in drag-down menu once on page.
    Repair Pricing section - http://www.apple.com/support/iphone/service/faq/
    iPhone model     Out-of-Warranty Service
    iPhone 4, iPhone 3GS, iPhone 3G, Original iPhone     $149
    If out of warranty and you don't ever want Apple to repair it again ("Certain damage is ineligible for out-of-warranty service ...  unauthorized modifications."- http://www.apple.com/support/iphone/service/faq/, http://support.apple.com/kb/index?), search for third party repair services, e.g., http://www.iresq.com

  • I have upgraded to OS X mavericks and there is now a problem with my email. I have discovered several emails no longer contain the original message instead another completely different message is appearing but under the name of original sender. Any ideas?

    I have upgraded to OS X mavericks and there is now a problem with my email. I have discovered several emails no longer contain the original message instead another completely different message is appearing but under the name of original sender. Any ideas?

    With the account mailbox selected, Mailbox menu, Rebuild.

  • Downloaded latest update ios 5.1.1.last night - now have problem with my email some being sent others not - any ideas?

    Downloaded latest update for iphone 4 ios 5.1.1. last night - now having problems with my emails - all show being sent - but not being received also no b.c.c. to myself coming up on iphone.  Any ideas?? 

    The passcode settings simply give you the option of having the passcode lock immediately you lock the screen, or after a delay period.  If you set a delay the passcode lock will not activate for the period of the delay.  I have mine set to one minute.  It is a "convenience" measure to save me having to re-enter the passcode if I lock the screen then immediately remember that there was something else I wanted to do.  Obviously this entails a small compromise on security and if you are at all concerned then you should set the passcode to "Immediately".  It really has nothing to do with the camera short-cut (though loads of users seem to have run away with this notion).  It would be the same if you just did "slide to unlock" during the delay period.

  • Macbook Pro - Finish flaking off...  and now a problem with AppleCare

    Hello,
    So basically I am here due to that a year into having my 15" Macbook Pro the finish started flaking off to the left of the trackpad. It has progressively gotten worse and I figured being more of a cosmetic thing there was nothing that I could do about it. So I started researching it last month to find that a lot of people have this problem with the finish coming off the 06/07 Macbook Pro's. Some said that Apple have replaced the bezel around the keyboard or the entire top part of it that the flaking is happening.
    So On October 2nd I called AppleCare and spoke to someone and described my problem to them. They said that it would be covered under the AppleCare Warranty and I was extremely happy to hear that. He then explained to me that the Apple Store who replaced a bad hard drive for me once only does things like hard drive replacements and ram replacements. Something as in depth as replacing the cover in question would need someone with more specialized training. With that being said I asked if there are any local places that could take care of it so the shipping in of my laptop and shipping back to me wouldn't be needed (hoping to speed things up a bit) and they said yes and gave me a name, address and phone number of a local computer repair place that is certified to service Apple products under AppleCare.
    I think dropped off my Macbook and a week later get a call saying that Apple requested pictures of the flaking finish and then denied the service saying that it was normal wear and tear (even though other people I know with Macbooks that use them far more than I have no problem like I do). I did call and speak to a supervisor at Apple and got nowhere with him, insisting it was just normal wear and tear on the laptop and that his does the same thing.
    Now when I dropped off the Macbook I did explain I had contacted Apple who assured me that this would be covered. When they called me saying the service was denied by AppleCare they did state my computer was already apart anticipating parts and the repair would be carried out. Now they are holding me liable for a charge of at least $45 since they normally charge $90/hr.
    Basically I am writing this to find out a couple things. First off is the finish on the Macbooks a common problem, and if so have you had it fixed under AppleCare?
    Who should pay the money to get my Macbook back? Since Apple first assured me it would be covered (on a recorded line) and then they change their mind.

    This is a user forum and for everyone that responds you will only be getting an opinion. Try calling AppleCare and speak to a customer representative about the issue. Be nice but firm. I'm afraid they will have the last word.

  • Problems with MySQL in Slave mode

    Hi erverybody!!!
    I have a problem with my IDM and mysql.
    This is my envioroment:
    I have installed one IDM and has a Database on Mysql. I have a DRP and i have other server of IDM an his database.
    The databases of mysql are replicated and are configurated like "Master-Slave"
    My problem:
    When the production server is down i try to work with the DRP enviorement but the IDM can't access to the database.
    My question
    When the instance is on "slave mode" the IDM can access to the database??
    Thanks 4 your answers

    This happens to be an Oracle forum.
    Oracle is not akin to MySQL in any fashion.
    Please use Google to find a MySQL forum.
    Sybrand Bakker
    Senior Oracle DBA

  • Problem with MySQL (SOLVED)

    Hello everybody. I have a problem with my MySQL server. Just installed it, ant when i try to start it:
    [root@localhost html]# /etc/rc.d/mysqld start
    :: Adding mysql group [DONE]
    :: Adding mysql user [DONE]
    Installing MySQL system tables...
    ERROR: 1062 Duplicate entry 'localhost-' for key 1
    071223 22:35:05 [ERROR] Aborting
    071223 22:35:05 [Note] /usr/sbin/mysqld: Shutdown complete
    Installation of system tables failed!
    I tryed to search some info in google, havent found anything.
    Does anybody has some ideas?
    Last edited by neXTPeer (2007-12-23 08:38:09)

    I have a huge problem, it seems I can't login to my own mysql server
    mysql -u root -p
    Enter password:
    ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
    The first time I started mysqld I got the same error as above. The script that should create an account stopped. Because of this I didn't set a root password. I think I never set a root password, but somehow mysqld expects one.
    Could someone help?
    btw: my host in rc.conf is not localhost and it's corresponding with the hostname in /etc/hosts
    -edit--
    I just tried these steps: http://dev.mysql.com/doc/refman/5.0/en/ … sions-unix
    But this also didn't work
    --edit2--
    Seems that there isn't a root account at all!
    Last edited by Vrieskist (2008-02-07 02:21:24)

  • Replacement iPhone 5 now have problem with carrier unlock

    I purchased a new iPhone 5 on release day about year and a half ago from Rogers Wireless. A week later Apple replaced the phone because of a problem with the microphone.
    Now I'm trying to buy out my contract with Rogers and pay to have the phone unlocked but they're telling me that the imei of the phone doesn't match the one they have on record.
    Rogers can't help unless I can prove that Apple replaced the phone.
    Apple won't help over the phone unless I purchase a 1 time service contract for $35.
    I can't get into the genius bar at the store that did the swap until next week but I really need this done before the weekend.
    I'm really at my wits end with this. Hoping there is someone on here that can help me out.

    Call AppleCare back and ask to be transferred to Customer Service then explain the problem to them.

  • Hibernate problems with Mysql

    Hi, we are using Hibernate with MySQL and c3p0 in our Struts Web application. Hibernate appers to give us errors in a random fashion when we're accesing our web pages. usually after 1 reload everything works fine
    any idea on what could be wrong?
    javax.servlet.ServletException: could not execute query
         org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:523)
         org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
         org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)
         org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
         org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    root cause
    org.hibernate.exception.JDBCConnectionException: could not execute query
         org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:74)
         org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
         org.hibernate.loader.Loader.doList(Loader.java:2148)
         org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2029)
         org.hibernate.loader.Loader.list(Loader.java:2024)
         org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:375)
         org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:308)
         org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:153)
         org.hibernate.impl.SessionImpl.list(SessionImpl.java:1106)
         org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)
         cz.roster.business.destinations.hotels.DestinationsHotelsListRead.perform(DestinationsHotelsListRead.java:22)
         cz.roster.actions.destinations.hotels.HotelsListAction.execute(HotelsListAction.java:41)
         org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419)
         org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)
         org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
         org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    Message was edited by:
    snoopy_cz

    Huh? DAOs abstract your data access layer away from the specific underlying implementation.
    Unless you fancy writing an HQL implementation that can liaise with flat files (or whatever you're swapping it for) there's no way you can just swap Hibernate out for something else otherwise.
    Whereas if you put Hibernate behind a decent set of DAOs you can easily do this. So they don't have much in common. It's true that you can generate DAOs using Hibernate, but that's (a) not the same thing and (b) not a great idea.

  • Forced to buy PE6 - now have Problems with it.

    I just bought a new iMac w Panther so I was forced to purchase PE6 (because my old Photoshop won't run on it and I didnt want to pay $700 to upgrade) and am having major problems with it. Specifically, no matter what I do, my Epson scanner driver (or twain) will not show up as an option to import. I've downloaded nice fresh Epson drivers from the internet too - so they're on my computer ready to be read and imported. But they just dont show up!! I know my scanner is compatible because I've used with Photoshop 7 for years. Any advice how to get it to import?!

    Also, Epson has been a sluggard for years writing proper drivers for the Mac, both for their printers and their scanners, which is why I switched to Canon. Evidently the Epson drivers are problematic for Elements 6 running on Leopard on an Intel machine. See Barbara Brundage's comments here:
    http://www.adobeforums.com/webx?128@@.59b59d0b
    I believe that in your comments in another thread you said you got Image Capture to work with the scanner. If that is the case, just use Image Capture to do you scans, save each one and then open the files with Elements to edit.
    Francine
    Francine
    Schwieder

  • Strange problem with MySQL database

    Hello,
    I'm totally puzzled by a strange error occurring with PHP/MySQL on my website... I hope someone has got an idea of what's going on and can let me know.
    In short, I have a MySQL database set up on the remote server where the website is hosted. Some pages of my website access this database with PHP.
    If the website is viewed with a browser in Windows (Firefox), it works well, the database data appear on the pages.
    If the website is viewed with a browser on Mac OS (Firefox, Safari), it doesn't work: the database isn't accessed, I get no error, just everything on the page below my PHP code is missing.
    I've attached two screenshots to show this. The website URL is: http://www.cerc.co.uk/CERC/v02/
    The pages were this occurs are: the home page (index.php and alternative index2.php), the Abous us/News page and the About us/News/Archives page.
    I really don't get where my mistake is. I would like to keep the remote server connexion details outside the root folder, but I guess that if there is no solution to this problem, then I'll have to move it back (I think it might have worked like that).
    Thanks in advance for any comment,
    Emilie
    More details
    I'm using DW CS4 on Windows XP emulated via VMware on Mac OS 10.5 (don't ask why, I wasn't given any choice). I've set up a localhost server on XP via XAMP and the news database is also there.
    Because I'm currently flipping often between the testing server and the remote server, I quickly got fed up to change all the time the connexion mode to the database (localhost or remote server) and have to resynchronise the files each time. Hence I decided to automate a bit the way the database is connected to.
    1. These 4 HTML pages with PHP code have got the below two lines when the PHP code starts:
    $pathpfx = "../.."; // see mysqlconnexion.php
    include('assets_design/php/mysqlconnexion.php');
    2. mysqlconnexion.php (see code below) calls a "connexion" file (in PHP) depending on the value of one parameter ($conxchoice). If $conxchoice = 1, the "connexion" file on the localhost is called. If $conxchoice = 2, the "connexion" file on the remote server is called. I've stored the appropriate version of mysqlconnexion.php on the localhost and the remote server (and I have checked it a million of times, they're in the right place).
    <?php
    // This code is called by and therefore included in the code of some PHP pages,
    // independently of where the pages are located within the website folder.
    // - Connexion to local server: I couldn't get the function include_once to work
    //   with a relative path, hence the use of an absolute path.
    // - Connexion to host server: I couldn't get the function include_once to work
    //   with an absolute path, hence the use of a relative path. This leads to the
    //   following problem: the path of conxsrv.php needs to be adapted to the
    //   position of the calling PHP page within the website, in order for
    //   conxsrv.php to be found on the server (it is located outside the website
    //   root folder). The variable $pathpfx is used for this purpose.
    $conxchoice = 2; // connect to 1 = testing server, 2 = host server
    // Connexion to database
    if ( $conxchoice == 1 )
    { include_once('C:\xampp\htdocs\CERC\assets_testing_server_only\conxloc.php'); }
    if ( $conxchoice == 2 )
    { include_once("$pathpfx/cgi-bin/sqlconx/conxsrv.php"); }
    ?>
    I would guess that a first hint of solution lies in the comment block, but I've really tried everything I could think of to work with relative path/absolute path respectively, unsuccessfully.
    3. The "connexion" file looks like:
    <?php
    # FileName="Connection_php_mysql.htm"
    # Type="MYSQL"
    # HTTP="true"
    $hostname_conx = "aaa";
    $database_conx = "bbb";
    $username_conx = "ccc";
    $password_conx = "ddd";
    $conx = mysql_pconnect($hostname_conx, $username_conx, $password_conx) or trigger_error(mysql_error(),E_USER_ERROR);
    ?>
    With aaa, bbb, ccc and ddd the appropriate value depending on the file. The # lines were introduced by DW when these files were created (I've then changed the variable names and moved the files to another place).
    Screenshots

    Well, my question has actually not been answered yet but the problem, as strangely as it appeared, has now disappeared. Best but scariest of all, I didn't do anything. Weird.
    Hope it never comes back,
    Emilie

  • Jdbc connectivity problem with mySql

    Hello,
    Could anyone plz help me in solving this problem-
    there are total 3 databases on our site. 2 are old and the 3rd one we created after we installed the new version of mysql(4.1) . Now, we can connect thru over jsp pages to the old databases but when we connect it to the new (3rd ) one it throws the following exception-
    �Java.sql.SQLException: Due to underlying Exception : ArrayIndexOutOfBoundsException.44 Server connection failure during transaction. Attempted reconnect 3 times. Giving up �
    Though the data in the new database is same as in the first database becoz it was just created for testing purpose.
    Is this issue anything to do with the privleges in mysql .plz help........
    Regards

    is this problem related to privleges as i just checked my phpAdmin and there i found this warning-
    �Warning: Your privilege table structure seem to be older than this MySQL version!
    Please run the script mysql_fix_privilege_tables that should be included in your MySQL server distribution to solve this problem! �
    plz HELP

  • Weird problem with mysql query and data table buttons !!!!

    Hi,
    I'm using jsc 2 update 1 on windows and mysql 4.1 . I have a page with a data table. One column of the data table contains "Details" buttons.
    Source query for the table is :
    SELECT tbl_tesserati.idtbl_tesserati idTesserato,
    tbl_tesserati.num_tessera,
    tbl_tesserati.nome,
    tbl_societa.codice_meccanografico
    FROM tbl_tesserati
    INNER JOIN tbl_rel_tesserato_discipline_societa ON tbl_tesserati.idtbl_tesserati = tbl_rel_tesserato_discipline_societa.id_tesserato
    INNER JOIN tbl_cariche ON      tbl_rel_tesserato_discipline_societa.id_carica = tbl_cariche.idtbl_cariche
    INNER JOIN tbl_qualifiche ON      tbl_rel_tesserato_discipline_societa.id_qualifica = tbl_qualifiche.idtbl_qualifiche
    INNER JOIN tbl_discipline ON      tbl_rel_tesserato_discipline_societa.id_disciplina = tbl_discipline.idtbl_discipline
    INNER JOIN tbl_societa ON      tbl_rel_tesserato_discipline_societa.id_societa = tbl_societa.idtbl_societa
    LEFT JOIN tbl_province ON tbl_societa.provincia_sede_sociale = tbl_province.idtbl_province
    LEFT JOIN tbl_comuni ON tbl_societa.comune_sede_sociale = tbl_comuni.idtbl_comuni
    LEFT JOIN tbl_rel_tesserato_discipline_praticate ON tbl_rel_tesserato_discipline_praticate.tessera_id=
    tbl_rel_tesserato_discipline_societa.idtbl_rel_tesserato_discipline
    LEFT JOIN tbl_discipline_praticate ON tbl_discipline_praticate.idtbl_disciplina_praticate=tbl_rel_tesserato_discipline_praticate.disciplina_praticata_id
    WHERE
    tbl_tesserati.cognome LIKE ?
    AND tbl_tesserati.nome LIKE ?
    AND tbl_rel_tesserato_discipline_societa.id_societa LIKE ?
    AND tbl_tesserati.idtbl_tesserati LIKE ?
    AND tbl_cariche.idtbl_cariche LIKE ?
    AND tbl_qualifiche.idtbl_qualifiche LIKE ?
    AND tbl_tesserati.data_nascita >= ?
    AND tbl_tesserati.data_nascita<= ?
    AND tbl_discipline.idtbl_discipline LIKE ?
    AND codice_affiliazione LIKE ?
    AND tbl_societa.denominazione LIKE ?
    AND YEAR(tbl_rel_tesserato_discipline_societa.data_scadenza) LIKE ?
    AND (tbl_province.nome LIKE ? OR tbl_province.nome IS NULL)
    AND ( tbl_comuni.nome LIKE ? OR tbl_comuni.nome IS NULL)
    The tbl_tesserati.data_nascita is a mysql date field.
    The click event handler code for the "Details" Button is:
    public String btnModificaTesserato_action() {
            try{
                TableRowDataProvider rowData= (TableRowDataProvider)getBean("currentRowTesserati");
                getRequestBean1().setId_tesserato((Long)rowData.getValue("idTesserato"));          
            } catch(Exception ex) {
                log("errore nella query",ex);
            return "dettaglioTesseratoSocieta";
        }When i run the project and open the page the table is correctly rendered and populated with some rows. But when i click on details button nothing happens, the page is simply reloaded.
    If i set a breakpoint in the code line   TableRowDataProvider rowData= (TableRowDataProvider)getBean("currentRowTesserati");the debbuger does not stop the code execution ! As if the button was never clicked!
    I tried to modify the source query to :
    SELECT tbl_tesserati.idtbl_tesserati idTesserato,
    tbl_tesserati.num_tessera,
    tbl_tesserati.nome,
    tbl_societa.codice_meccanografico
    FROM tbl_tesserati
    INNER JOIN tbl_rel_tesserato_discipline_societa ON tbl_tesserati.idtbl_tesserati = tbl_rel_tesserato_discipline_societa.id_tesserato
    INNER JOIN tbl_cariche ON      tbl_rel_tesserato_discipline_societa.id_carica = tbl_cariche.idtbl_cariche
    INNER JOIN tbl_qualifiche ON      tbl_rel_tesserato_discipline_societa.id_qualifica = tbl_qualifiche.idtbl_qualifiche
    INNER JOIN tbl_discipline ON      tbl_rel_tesserato_discipline_societa.id_disciplina = tbl_discipline.idtbl_discipline
    INNER JOIN tbl_societa ON      tbl_rel_tesserato_discipline_societa.id_societa = tbl_societa.idtbl_societa
    LEFT JOIN tbl_province ON tbl_societa.provincia_sede_sociale = tbl_province.idtbl_province
    LEFT JOIN tbl_comuni ON tbl_societa.comune_sede_sociale = tbl_comuni.idtbl_comuni
    LEFT JOIN tbl_rel_tesserato_discipline_praticate ON tbl_rel_tesserato_discipline_praticate.tessera_id=
    tbl_rel_tesserato_discipline_societa.idtbl_rel_tesserato_discipline
    LEFT JOIN tbl_discipline_praticate ON tbl_discipline_praticate.idtbl_disciplina_praticate=tbl_rel_tesserato_discipline_praticate.disciplina_praticata_id
    WHERE
    tbl_tesserati.cognome LIKE ?
    AND tbl_tesserati.nome LIKE ?
    AND tbl_rel_tesserato_discipline_societa.id_societa LIKE ?
    AND tbl_tesserati.idtbl_tesserati LIKE ?
    AND tbl_cariche.idtbl_cariche LIKE ?
    AND tbl_qualifiche.idtbl_qualifiche LIKE ?
    AND tbl_tesserati.data_nascita >= ?
    OR tbl_tesserati.data_nascita<= ?
    AND tbl_discipline.idtbl_discipline LIKE ?
    AND codice_affiliazione LIKE ?
    AND tbl_societa.denominazione LIKE ?
    AND YEAR(tbl_rel_tesserato_discipline_societa.data_scadenza) LIKE ?
    AND (tbl_province.nome LIKE ? OR tbl_province.nome IS NULL)
    AND ( tbl_comuni.nome LIKE ? OR tbl_comuni.nome IS NULL)
    Using this query everything works well !! The click handler works and the debugger too !!
    I changed only the AND in OR !!!
    I also tried to change mysql-x-x-connector driver but without solving my problem.
    Can someone help me ?
    Thanks
    Giorgio

    You'll find that it is more to do with the way MySql deals with dates than anything else! Depending on how your date field is setup, then try using a BETWEEN statement for those 2 lines in your first query e.g.
    AND ( tbl_tesserati.data_nascita BETWEEN ? AND ?)
    The date column needs to be in the ISO format to work. If you examine your second query output, you might discover that the output is only going to refer to one parameter (probably the OR one). Did you manage to view the output logs from the application server? You would have got an idea from there with a message like stating a conversion error'.
    Alternatively, you could try using the to_days() function and convert it directly to a number which would be a lot easier to deal with. For example:
    AND to_days(tbl_tesserati.data_nascita >= ? )
    AND to_days( tbl_tesserati.data_nascita<= ? )
    Or try the BETWEEN version with to_days() and see what you get.
    More info about date formatting (v5) here:
    http://dev.mysql.com/doc/refman/5.0/en/date-and-time-functions.html#function_to-days
    Before I forget, sometimes you may need to treat dates as Strings rather 'Long' as you did.
    As a matter of interest, did you try your query in a different piece of software?
    If my queries are a little more complicated, I tend to try MySql queries out in the free MySql query browser and also double check in another to verify certain issues. I found it easier to develop SQL in a seperate program then import the final version to JSC making the required modifications for parameters.
    Message was edited by:
    aerostra

Maybe you are looking for

  • ITunes/iPod song order problem

    i have an original 512 shuffle that i load with podcasts and a few songs to listen to while i commute. i drag the podcasts from the library to the ipod in itunes and them arrange them in the order that i want them played. when i disconnect the ipod a

  • Can a pop list have a dynamic value assigned to it?

    Can a pop list have a dynamic value assigned to it? like Select actualValue, fullname from category; and assigning fullname to the list of values of the pop list and actualValue to each of the values returned...

  • Help with syncing iphone to itunes

    When I try and sync my iphone 3Gs to itunes a message comes up saying "This iphone can not be used because the Apple Mobile Device service is not started" but my iphone is on and my service is started... what do i do?

  • Camera compatibilty with Mac and Iphoto 04

    I have been search the Apple site for a list of compatible cameras for iPhoto, and keep getting back to the main iPhoto page which tells me that the link is missing, or I typed the wrong URL... We have a Fuji A700 which is not Apple Mac compatible. I

  • Got new router, now I can't find my HP LJ5000 on my wireless network

    I recently had FIOS internet installed at my house, it came with a new wireless router which replaced my old one. Since then I have not been able to find my HP Laserjet 5000 over the wireless network. The "add printer" function does not even see it.