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

Similar Messages

  • 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.

  • Problem with rotation and landscape mode in iOS 8

    From start of iOS 8 I have got problem with rotation in my iPhone 5S 32GB as well as in my iPad mini retina 32GB. Automatical rotation to landscape mode is not working correctly. For example if you take the phone or tablet to landscape mode in base display and tap to Safari, Mail, Messages, the app will start but stay in normal mode, not landscape. Then you have to back the phone to normal portrait mode and back to landscape and only then the phone do the landscape mode. I have never seen this problem in iOS 7 or older.
    Could you help me anyone with this problem? Or is the problem generally in iOS 8.
    Thanks a lot
    Jakub

    Brian, thanks, but it's not a rotation lock issue - at least not relating to the rotation lock setting. It's just a general use setting. Right now i have my iPhone propped in landscape mode. If I now hit the home button, essentially returning to a portrait setting though my phone is still positioned in landscape, then open any other app that supports landscape, that app WILL NOT orient itself to landscape mode. It will stay in portrait mode. The phone has to be physically oriented to portrait, then back to landscape for the app to register landscape mode properly. This is a glitch, and not a rotation lock issue. it ought to be noted that this was not an issue in iOS 7 or any previous iteration.

  • PDF printer has a problem with Safari in "Reader" mode in Windows7

    As shown in the image above. When I try to use the PDF printer to print out a web page in Safari "Reader" mode, the lines near the bottom of each page get squeezed like this. There is no problem with XPS printer. I guess this problem is because of some incorrect settings in Safari or the PDF printer?
    My system is Windows 7 Pro. I am using Acrobat X Pro. The page I am trying to print is http://en.wikipedia.org/wiki/Electronic_band_structure. This problem only happens when the webpage is adjusted into "Reader" mode in Safari.

    Many thanks for your reply!
    I am sorry, I did not make my question clear. I would like to save some web pages only in "Reader" mode, because in this mode all the advertisements are filtered out and the pages look much nicer than the origional layout.
    I first let Safari to active "Reader" by clicking "Reader" button.
    Then I click "Print" button and select Adobe PDF as the printer.
    The problem is the PDF file has something wrong (shown above), and I would like to know how to avoid this problem.

  • Problem with printing in character mode

    Hi
    I got a genuine problem in printing continous payslips using character mode with a TALLY6050 printer.
    I guess there is a problem with the page setup when i try to print via windows. using different sizes of paper (Letter, A4, A3), the printed data is shifting from one page to another but the shift is following a same trend.
    i tried to put one payslip per page using page breaks, but in vain. Three payslips are being printed on one page when viewed in the print perview.
    Can anyone suggest any help or tips so that i can solve this problem?
    Thanks for your help
    Bhavish

    Thanks for your response.  I went ahead and filed a Correction Action Request for your orignal issue, since I was able to reproduce the same behavior when I ran your VI.  The solution of printing the front panel of a subVI displaying the same graph is a workaround for this problem. Please look at the following KnowledgeBase for more details on how to do this.  Hope this helps!
    How Do I Print a Single Control from the Front Panel (for example, a Graph)?

  • ¡URGENT! Problems with OCX in "runtime mode"

    Hello everyboy, I have a problem with OCX. When I am developing, I have no problem inserting the OCX, but when I run the application, the OCX disappears, not exists.
    I am using the Forms Builder [32 bits] Versión 6.0.8.25.2 ...
    Ah, in the previous version Forms [32 bits] Versión 6.0.5.35.3, it worked
    Do I need any patch?
    ¡Thank you very much!

    It's hard without seeing your specific application, but what
    you need to do
    is the following -
    1. Add a recordset to the page
    2. Place fields from this recordset into the cells of a table
    as desired
    3. Wrap the row with these cells in a looper/repeat region,
    so that the
    recordset is incremented from beginning to end as the records
    are being
    placed in the table and the page is built step by step
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Short_T" <[email protected]> wrote in
    message
    news:e8aafs$6gv$[email protected]..
    > Hi everyone!
    >
    > Desparately need help in placing result of search from
    MySQL database into
    > individual cells of the table. If anyone can give me a
    sample code/file,
    > it
    > would be most helpful! I have results from a display all
    of the table, now
    > I
    > need to code so that particular results from fields are
    displayed in
    > assigned
    > columns...
    >
    > Thank you in advance!
    >
    > Short_T
    >

  • Problems with environments and transactional mode in the Python API

    Hello everyone,
    I have been having problems with the Python API, and I wonder if anyone can comment? I am using DB XML version 2.2.13, with python 2.3 (RedHat linux WS 4.0) and python 2.4 (SuSE 10.1) with identical results. I started with a simple example:
    #!/usr/bin/python
    """XPath example from http://www.w3schools.com/xpath/default.asp
    ported to DbXML
    from bsddb3.db import *
    from dbxml import *
    books = """<?xml version="1.0" encoding="ISO-8859-1"?>
    <bookstore>
      [xml data omitted for brevity]
    </bookstore>"""
    if __name__ == "__main__":
        conFlags = DB_CREATE | DB_NOMMAP
        myMgr = XmlManager()
        myMgr.setDefaultContainerFlags(conFlags)
        myMgr.setDefaultContainerType( XmlContainer.NodeContainer)
        uc = myMgr.createUpdateContext()
        container = myMgr.createContainer("books.dbxml")
        container.putDocument("books.xml", books, uc)So far, so good - this works, and creates a container books.dbxml that I can open and query. Next, I try to instantiate the XmlManager using an environment:
    if __name__ == "__main__":
        envFlags = DB_CREATE | DB_PRIVATE
        conFlags = DB_CREATE | DB_EXCL | DB_NOMMAP
        myEnv = DBEnv()
        myEnv.open("/home/pkeller/dbxml_tests", envFlags, 0)
        myMgr = XmlManager(myEnv, DBXML_ADOPT_DBENV)
        myMgr.setDefaultContainerFlags(conFlags)
        myMgr.setDefaultContainerType( XmlContainer.NodeContainer)
        uc = myMgr.createUpdateContext()
        container = myMgr.createContainer("books.dbxml")
        container.putDocument("books.xml", books, uc)This fails with the following output:
    Traceback (most recent call last):
      File "w3school_xpath_c2.py", line 60, in ?
        container = myMgr.createContainer("books.dbxml")
      File "/scratch_bernoulli/pkeller/dbxml/install/lib/python2.3/site-packages/dbxml.py", line 125, in createContainer
        def createContainer(*args): return dbxml.XmlManagercreateContainer(*args)
    RuntimeError: Error: Invalid argument
    Segmentation faultA bit odd - I can't find anything in the docs about the required arguments to XmlManager.createContainer being different if an environment has been used explicitly.
    Anyway, I persevered (my aim being to use transactional mode in Python). Changing the environment and container flags like so:
        envFlags = DB_CREATE  | DB_INIT_LOCK | DB_INIT_LOG | DB_INIT_MPOOL | DB_INIT_TXN | DB_PRIVATE
        conFlags = DB_CREATE  | DB_EXCL | DBXML_TRANSACTIONAL | DB_NOMMAPThis change allowed the script to run, outputting the single classic line:
    Segmentation fault(the C++ API docs at http://www.sleepycat.com/xmldocs/gsg_xml/cxx/transaction.html#initializetransaction are incorrect by the way - there is no flag DB_TRANSACTIONAL).
    In spite of the segfault, the file "books.dbxml" was produced and could be queried by another application. A transaction log file "log.0000000001" was also written (10485760 bytes long).
    Running this last example again with "python -v" showed that the segfault was being produced during the python's cleanup phase:
    # clear __builtin__._
    # clear sys.path
    # clear sys.argv
    # clear sys.ps1
    # clear sys.ps2
    # clear sys.exitfunc
    # clear sys.exc_type
    # clear sys.exc_value
    # clear sys.exc_traceback
    # clear sys.last_type
    # clear sys.last_value
    # clear sys.last_traceback
    # clear sys.path_hooks
    # clear sys.path_importer_cache
    # clear sys.meta_path
    # restore sys.stdin
    # restore sys.stdout
    # restore sys.stderr
    # cleanup __main__
    Segmentation faultCan anyone clarify what is going on? I had been hoping to deploy DB XML as an alternative to something more admin-heavy, but with this behaviour that would be hard to justify. A dirty exit from Python means that no-one will consider trusting their data to this engine (or am I doing something wrong?).
    Regards,
    Peter.

    Peter,
    Your first failure -- invalid argument -- was due to an invalid combination of
    flags to DBEnv.open(). Along with DB_CREATE you need at least DB_INIT_MPOOL.
    As you can see, it worked once you added more flags.
    The second, cleanup problem (segmentation fault) is the result of out of order
    destruction of objects. This is fixed in the next release (later this year), but
    you can work around it by ensuring that your XmlContainer and XmlManager
    objects are deleted/cleaned up before the DBEnv object.
    Python will cleanup in reverse order of creation, unless you perform explicit
    deletions, which is also fine (e.g. del container, del myMgr).
    Explicit deletion is always safe.
    Regards,
    George

  • Problems with Internet in sleeping mode

     Hello,
    I have a such problem. Approximatly in 10 min after starting sleeping mode my phone can not receive incoming calls from Skype and Viber. There is no problem in a few min after sleeping mode or when a screen is on. I have this problem whenever wi-fi or 3 G connection is. When the screen is on after that I receive messages about missing calls. Swithing stamina off, reinstalling of phone's soft doesn't help. Wi-fi is always on in settings, mobile transfer is on too. Help me, please.

    Thanks Alexdon for trying to help me (I've changed my account, because forgot pass and service for changing pass didn't work (so an account "Dietor can be deleted"). Solving my problem was setting up other firmware (D5503 14.2.A.1.114).
    When I set up firmware ...757 through Flashtool, the problem repeated (it was regardless Stamina off or on).
    Will settting up of this firmware per PC Companion help? Does problem with battery drain in last firware exist?

  • 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)

  • Problems with Facebook and theater mode

    When a photo is clicked on Facebook, the theater mode appears normally but the original page scrolls up randomly. Is there a fix for this?

    Hannes.S wrote:
    Hi tjk,
    thank you for your reply.
    I will do that, if there is no other solution. I just thought, it'll be better to know what's the problem with my mac...
    But probably you're right, this will be the best solution.
    The repair techs would be the best person to ask that. 

  • 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.

  • 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

  • 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

  • Problems With Siri Eyes Free Mode Usage In Cars

    I have had the Siri Eyes Free Mode installed in my car since it first became available and am unable to use it because of the inability to enter my passcode by voice command to wake the My iPhone 5S from it's "sleep mode" while I am driving. This would necesstate taking my eyes off the road and hands off the steering wheel to enter the passcode manually or by Touch ID so that I can use the features of the Siri Eyes Free Mode.
    This would cause a driving distraction for a  potential auto accident and appear to defeat the purposes of having the Siri Eyes Free Mode in cars in the first place.
    One (and unacceptable) option is to delete the security passcode and Touch ID capability everytime I use the iPhone in my car and reinstall them everytime I leave my car. This defeats the purpose of having the security features in the first place.
    The promotional material which came from Apple with the Siri Eyes Free Mode software suggests placing the iPhone in either the glove compartment and console since Siri Eyes Free will function by voice commands through the car audio system. Obviously this can't be done if the phone is locked in the "sleep mode," since there is no hands-off way to wake it.
    The other (and equally unacceptable) option would be to disable the "sleep mode" which would cause the phone to be "on" at all times which would cause a very severe battery drain.
    Apple is introducting it's new "Apple Play" software for some new cars this year and this same problem will apply in waking the iPhone from the "sleep mode" while driving.
    Does anyone know how to communicate this problem to Apple's software designers so that they can develop a logical "fix" in a future update to iOS 8?
    The usual methods of submitting feedback  by email to "Apple Cares" or Apple's Technical Support by phone have been ineffective.

    My iPhone5S goes into the "sleep mode" after 2 minutes regardless of whether it is connected to power or running on battery. It requires a passcode or Touch ID to wake it, something which is impractical while driving using Siri Eyes Free.
    The phone use capabilitiy is available through the car audio regardless, but none of the other features of Siri Eyes Free can be used until the phone is unlocked from the "sleep mode."
    Some Siri Eyes Free Mode voice command functions & features include sending & reading text messages & emails; setting up calendar entries, reminders & alarms; checking the weather; posting to social media sites; finding nearby restaurants and points of interest; turn-by-turn iPhone directions via the car's Bluetooth audio; receiving sports scores & stock quotes & more.
    The Siri Eyes Free Mode is extra cost automobile software presently available from the dealer for some Honda and GM cars, which allows many of the iPhone functions to be utilized through the car's Bluetooth audio system for voice recognition and response by using the HandsFree microphone button on the steering wheel.  

  • Problem with mysql dirver loading

    hello friends ,
    iam using Mysql of 4.1 version and the MysqlConnector 3.0..4
    when i execute a program with the command
    java -classpath .;/root/8/20/mysql-connector-java-3.0.14-production/mysql-connector-java-3.0.14-production-bin.jar
    it gives the error as
    bash: /root/8/20/mysql-connector-java-3.0.14-production/mysql-connector-java-3.0.14-production-bin.jar: Permission denied
    so what permisssons should i have iam loged in as root iam using redhat linux 9.0
    so how to execute that one
    with regards
    rama kanth

    $ chmod 755 /root/8/20/mysql-connector-java-3.0.14-production/mysql-connector-java-3.0.14-production-bin.jar
    This is not a java problem though...

Maybe you are looking for