MYSQL and Flex problems

Hello,
I have an application that has to get a group of database entries.
My first problem is with the "configure return type" utility. If I return the result from the mysql query, I am told it is a "generic object", and can not configure it as a new type.
In another case, where I use a service that I manually ported from beta 1, and can use the return type I created at the time, I get a list of objects, all of which include a date field. I know the PHP gets the full date-time string from mysql(via file_put_contents logging), but Flex only recieves the year(2009) as an intiger. I need to display the date itself in the a datagrid, but I have no idea how to make it work, since I don't know where I lose the month, day, or time.
Any help will be appreciated!
Thanks Alot!
Lee-Orr

Hi,
The php returns the date as a string, firstly you should look at what the field in the mysql DB as date/datetime/timestamp all return different date strings. in your result function trace the date info to see what string is being returned. The date issue has be discussed at length in a previous post read this it may help you
http://forums.adobe.com/message/2335927#2335927
David.

Similar Messages

  • Issue in bringing up CRS on ATG 10.1.1 with MySQL and Weblogic 10.3

    Hello,
    I am trying to bring up Commerce Reference Store as part of my evaluation using MySQL (bundled with ATG) and WebLogic 10.3.
    I followed the ATG Documentation on CRS with WebLogic and MySQL and I could not proceed because of the below error log. I keep getting error in OnlineCreateServerInstanceTask of CIM. I believe it should be some configuration problem, but could not think of any.
    As part of the installation, I use C:\jdk1.6.0_25. I verified my weblogic server is up through the admin console. I started MySQL before running the eval batch. Apart from starting MySQL server, I did not make any datasource/database configuration changes for ATG. I have not run any other scripts to configure MySQL too.
    Please guide me to resolve the problem.
    C:\ATG\ATG10.1.1\CommerceReferenceStore\Store\eval>configureEval.bat
    Do you wish to run the CRS evaluation installation? [Y/N]: y
    Do you wish to use an existing database for the CRS evaluation? [Y/N]: n
    The CRS evaluation install will attempt to create the database. Press [Return] t
    o continue or any other key to quit:
    Enter mysql database connection details
    Enter user name: admin
    Enter user password: admin
    Enter database name: crsprod
    Enter 'root' user password:
    Creating database...
    Finished database creation
    Enter weblogic admin server URL: http://localhost:7001
    Enter weblogic admin server username: weblogic
    Enter weblogic admin server password: weblogic123
    Buildfile: C:\ATG\ATG10.1.1\CommerceReferenceStore\Store\eval\evalbuild.xml
    all:
    [copy] Copying 1 file to C:\ATG\ATG10.1.1\CommerceReferenceStore\Store\eval
    [delete] Deleting: C:\ATG\ATG10.1.1\CommerceReferenceStore\Store\eval\cimOut.
    cim.tmp
    BUILD SUCCESSFUL
    Total time: 0 seconds
    Application Server: weblogic
    The following installed ATG components are being used to launch:
    ATGPlatform version 10.1.1 installed at C:\ATG\ATG10.1.1
    Created "C:\ATG\ATG10.1.1\home\CIM\startDynamo.jar" in 15,273ms.
    Nucleus running
    atg.cim.productconfig.productselector.ProductSelectionContextTask starting...
    (Searching for products... done.)
    atg.cim.productconfig.productselector.ProductSelectionContextTask finished.
    atg.cim.productconfig.appserver.AppServerSelectTask starting...
    atg.cim.productconfig.appserver.AppServerSelectTask finished.
    atg.cim.productconfig.appserver.AppServerPathTask starting...
    atg.cim.productconfig.appserver.AppServerPathTask finished.
    atg.cim.productconfig.appserver.DomainPathTask starting...
    atg.cim.productconfig.appserver.DomainPathTask finished.
    atg.cim.productconfig.appserver.UrlTask starting...
    atg.cim.productconfig.appserver.UrlTask finished.
    atg.cim.productconfig.appserver.UsernameTask starting...
    atg.cim.productconfig.appserver.UsernameTask finished.
    atg.cim.productconfig.appserver.PasswordTask starting...
    atg.cim.productconfig.appserver.PasswordTask finished.
    atg.cim.productconfig.appserver.AppServerSelectionPersistenceTask starting...
    atg.cim.productconfig.appserver.AppServerSelectionPersistenceTask finished.
    atg.cim.database.CreateSchemaTask starting...
    atg.cim.database.CreateSchemaTask finished.
    atg.cim.database.ImportDataTask starting...
    Combining template tasks...Success
    Importing (1 of 1) /CIM/tmp/import/nonswitchingCore-import1.xml:
    /CommerceReferenceStore/Store/Storefront/data/pricelists.xml to /atg/commerce/pr
    icing/priceLists/PriceLists
    /CommerceReferenceStore/Store/Storefront/data/stores.xml to /atg/store/stores/St
    oreRepository
    /CommerceReferenceStore/Store/Storefront/data/catalog-i18n.xml to /atg/commerce/
    catalog/ProductCatalog
    /CommerceReferenceStore/Store/Storefront/data/pricelists-i18n.xml to /atg/commer
    ce/pricing/priceLists/PriceLists
    /CommerceReferenceStore/Store/Storefront/data/sites.xml to /atg/multisite/SiteRe
    pository
    /CommerceReferenceStore/Store/Storefront/data/sites-i18n.xml to /atg/multisite/S
    iteRepository
    /CommerceReferenceStore/Store/Storefront/data/promos-i18n.xml to /atg/commerce/c
    atalog/ProductCatalog
    /CommerceReferenceStore/Store/Storefront/data/seotags-i18n.xml to /atg/seo/SEORe
    pository
    /CommerceReferenceStore/Store/Storefront/data/wishlists.xml to /atg/commerce/gif
    ts/Giftlists
    /CommerceReferenceStore/Store/Storefront/data/inventory.xml to /atg/commerce/inv
    entory/InventoryRepository
    /CommerceReferenceStore/Store/Storefront/data/users.xml to /atg/userprofiling/Pr
    ofileAdapterRepository
    /CommerceReferenceStore/Store/Storefront/data/orders.xml to /atg/commerce/order/
    OrderRepository
    /CommerceReferenceStore/Store/Storefront/data/orders-i18n.xml to /atg/commerce/o
    rder/OrderRepository
    /CommerceReferenceStore/Store/Storefront/data/storetext-i18n.xml to /atg/store/s
    tores/StoreRepository
    /CommerceReferenceStore/Store/Storefront/data/claimable-i18n.xml to /atg/commerc
    e/claimable/ClaimableRepository
    ... > Success
    All Imports Completed Successfully
    atg.cim.database.ImportDataTask finished.
    atg.cim.worker.common.PropertyFileClearPersistanceTask starting...
    atg.cim.worker.common.PropertyFileClearPersistanceTask finished.
    atg.cim.productconfig.serverinstance.ServerInstanceNameTask starting...
    atg.cim.productconfig.serverinstance.ServerInstanceNameTask finished.
    atg.cim.productconfig.serverinstance.PortBindingsSelectTask starting...
    atg.cim.productconfig.serverinstance.PortBindingsSelectTask finished.
    atg.cim.worker.common.MapPropertyFileCreatorTask starting...
    atg.cim.worker.common.MapPropertyFileCreatorTask finished.
    atg.cim.worker.common.MapPropertyFileCreatorTask starting...
    atg.cim.worker.common.MapPropertyFileCreatorTask finished.
    atg.cim.worker.common.MapPropertyFileCreatorTask starting...
    atg.cim.worker.common.MapPropertyFileCreatorTask finished.
    atg.cim.worker.common.MapPropertyFileCreatorTask starting...
    atg.cim.worker.common.MapPropertyFileCreatorTask finished.
    atg.cim.worker.common.MapPropertyFileCreatorTask starting...
    atg.cim.worker.common.MapPropertyFileCreatorTask finished.
    atg.cim.worker.common.MapPropertyFileCreatorTask starting...
    atg.cim.worker.common.MapPropertyFileCreatorTask finished.
    atg.cim.worker.common.MapPropertyFileCreatorTask starting...
    atg.cim.worker.common.MapPropertyFileCreatorTask finished.
    atg.cim.worker.common.MapPropertyFileCreatorTask starting...
    atg.cim.worker.common.MapPropertyFileCreatorTask finished.
    atg.cim.worker.common.MapPropertyFileCreatorTask starting...
    atg.cim.worker.common.MapPropertyFileCreatorTask finished.
    atg.cim.worker.common.MapPropertyFileCreatorTask starting...
    atg.cim.worker.common.MapPropertyFileCreatorTask finished.
    atg.cim.worker.common.MapPropertyFileCreatorTask starting...
    atg.cim.worker.common.MapPropertyFileCreatorTask finished.
    atg.cim.worker.common.MapPropertyFileCreatorTask starting...
    atg.cim.worker.common.MapPropertyFileCreatorTask finished.
    atg.cim.worker.common.MapPropertyFileCreatorTask starting...
    atg.cim.worker.common.MapPropertyFileCreatorTask finished.
    atg.cim.worker.common.MapPropertyFileCreatorTask starting...
    atg.cim.worker.common.MapPropertyFileCreatorTask finished.
    atg.cim.productconfig.serverinstance.MakeServerInstanceFromPatternTask starting.
    atg.cim.productconfig.serverinstance.MakeServerInstanceFromPatternTask finished.
    atg.cim.productconfig.appassembly.EarFileNameTask starting...
    atg.cim.productconfig.appassembly.EarFileNameTask finished.
    atg.cim.productconfig.deploy.weblogic.OnlineCreateServerInstanceTask starting...
    Error Executing Batch File
    atg.cim.worker.TaskException: Error deploying to weblogic
    atg.cim.worker.TaskException: Error exececuting batch file
    at atg.cim.flow.CimFlowCreator.startHeadlessCimFlow(CimFlowCreator.java:
    130)
    at atg.cim.Launcher.startCimFlow(Launcher.java:278)
    at atg.cim.Launcher.main(Launcher.java:99)
    Caused by: atg.cim.worker.TaskException: Error deploying to weblogic
    at atg.cim.worker.Task.handleException(Task.java:72)
    at atg.cim.productconfig.deploy.weblogic.OnlineCreateServerInstanceTask.
    execute(OnlineCreateServerInstanceTask.java:159)
    at atg.cim.headless.HeadlessExecutorImpl.executeTasks(HeadlessExecutorIm
    pl.java:150)
    at atg.cim.headless.HeadlessExecutorImpl.populateAndExecuteHeadlessTasks
    (HeadlessExecutorImpl.java:140)
    at atg.cim.batch.BatchChooserExecutor.populateAndExecuteHeadlessTasks(Ba
    tchChooserExecutor.java:169)
    at atg.cim.flow.CimFlow.headlessFlow(CimFlow.java:116)
    at atg.cim.flow.CimFlowCreator.startHeadlessCimFlow(CimFlowCreator.java:
    120)
    ... 2 more
    Caused by: C:\ATG\ATG10.1.1\CIM\plugins\Base\ant\cim-ant.xml:348: The following
    error occurred while executing this line:
    C:\ATG\ATG10.1.1\CIM\plugins\Base\ant\cim-ant.xml:254: The following error occur
    red while executing this line:
    C:\ATG\ATG10.1.1\CIM\plugins\Base\ant\cim-ant.xml:214: exec returned: 1
    at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(Projec
    tHelper.java:541)
    at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.jav
    a:394)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    at sun.reflect.GeneratedMethodAccessor132.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.jav
    a:105)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.Target.execute(Target.java:357)
    at org.apache.tools.ant.Target.performTasks(Target.java:385)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
    at atg.cim.task.ant.utility.AntExecutionWrapper.executeAntTarget(AntExec
    utionWrapper.java:167)
    at atg.cim.worker.AntTask.executeAntTarget(AntTask.java:115)
    at atg.cim.productconfig.deploy.weblogic.OnlineCreateServerInstanceTask.
    execute(OnlineCreateServerInstanceTask.java:155)
    ... 7 more
    Caused by: C:\ATG\ATG10.1.1\CIM\plugins\Base\ant\cim-ant.xml:254: The following
    error occurred while executing this line:
    C:\ATG\ATG10.1.1\CIM\plugins\Base\ant\cim-ant.xml:214: exec returned: 1
    at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(Projec
    tHelper.java:541)
    at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.jav
    a:394)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    at sun.reflect.GeneratedMethodAccessor132.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.jav
    a:105)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:62)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    at sun.reflect.GeneratedMethodAccessor132.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.jav
    a:105)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.jav
    a:391)
    ... 20 more
    Caused by: C:\ATG\ATG10.1.1\CIM\plugins\Base\ant\cim-ant.xml:214: exec returned:
    1
    at org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:636)
    at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:662)
    at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:487)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    at sun.reflect.GeneratedMethodAccessor132.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.jav
    a:105)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:62)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    at sun.reflect.GeneratedMethodAccessor132.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.jav
    a:105)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.jav
    a:391)
    ... 34 more
    Nucleus shutting down
    Nucleus shutdown complete
    Thanks.

    This error is resolved after following the logs in C:\ATG\ATG10.1.1\CIM\log\cim.log. The root cause is I used http as protocol instead of t3 while specifying weblogic admin url.
    http://localhost:7001 instead of t3://localhost:7001
    Thanks.

  • Performance with MySQL and Database connectivity toolbox

    Hi!
    I'm having quite some problems with the performance of MySQL and Database connectivity toolbox. However, I'm very happy with the ease of using database connectivity toolbox. The background is:
    I have 61 variables (ints and floats) which I would like to save in the MySQL-database. This is no problem, however, the loop time increases from 8ms to 50ms when using the database. I have concluded that it has to do with the DB Tools Insert Data.vi and I think that I have some kind of performance issue with this VI. The CPU never reach more the 15% of its maximum performance. I use a default setup and connect through ODBC.
    My questions are:
    1. I would like to save 61 variables each 8-10ms, is this impossible using this solution?
    2. Is there any way of increasing the performance of the DB Tools Insert Data.vi or use any other VI?
    3. Is there any way of adjusting the MySQL setup to achieve better performance?
    Thank you very much for your time.
    Regards,
    Mattias

    First of all, thank you very much for your time. All of you have been really good support to me.
    >> Is your database on a different computer?  Does your loop execute 61 times? 
    Database is on the same computer as the MySQL server.
    The loop saves 61 values at once to the database, in one SQL-statement.
    I have now added the front panel and block diagram for my test-VI. I have implemented the queue system and separate loops for producer and consumer. However, since the queue is building up faster then the consumer loop consumes values, the queue is building up quite fast and the disc starts working.
    The test database table that I add data to is created by a simple:
    create table test(aa int, bb char(15));
    ...I'm sure that this can be improved in some way.
    I always open and close the connection to the database "outside the loop". However, it still takes some 40-50 ms to save the data to the database table - so, unfortunatly no progress to far. I currently just want to save the data.
    Any more advise will be gratefully accepted.
    Regards,
    Mattias
    Message Edited by mattias@hv on 10-23-2007 07:50 AM
    Attachments:
    front panel 2.JPG ‏101 KB
    block diagram.JPG ‏135 KB

  • Glassfish + mysql + jsc2 table problems

    I'm trying to deploy my app to a glassfish server and having some problems with tables and rowsets.
    Situation:
    Everything works fine under the development settings on my winxp machine with mysql and the 5.0 beta jdbc driver.
    I managed to get jdk1.5 + glassfish + mysql + 5.0jdbc driver installed on my debian system with 2.6.16 kernel. Non-DB test apps deployed by exporting to a j2ee1.4 war file and then importing through the glassfish admin page work fine. DB apps that I've manually added the db access code to in the prerender() section of the page work fine. I can even get tables to work IF I put the code in the prerender section:
    public void prerender() {       
            try{
                usersRowSet.setDataSourceName("java:comp/env/jdbc/testcgcbt");
                usersRowSet.setCommand("SELECT * FROM users");
                usersRowSet.setTableName("users");
                usersDataProvider1.setCachedRowSet((javax.sql.rowset.CachedRowSet)getValue("#{Page1.usersRowSet}"));          
            }catch(Exception e){
                error("Error "+e.getMessage());
        } But the table displays 'No items found.' with the default db access code in the _init() section:
    private void _init() throws Exception {
            usersRowSet.setDataSourceName("java:comp/env/jdbc/testcgcbt");
            usersRowSet.setCommand("SELECT * FROM users");
            usersRowSet.setTableName("users");
            usersDataProvider1.setCachedRowSet((javax.sql.rowset.CachedRowSet)getValue("#{Page1.usersRowSet}"));
        }Has anyone run into this before? I don't know if there are some settings in the .xml files to change to make the exported war work properly. I would love to have my app work without having to cut and paste the code into the prerender() sections, I haven't looked through all my pages and I'm not sure that would work for each one.
    Thanks in advance.

    Well, it looks like I've found the problem...
    The init() section is not being run when the page is loaded. Once I copied the
    try{
          _init();
    }catch...section into the start of prerender(), everything worked on both the winxp and debian boxes. Put log code at both the beginning and end of the init() method, neither is being run. I am a little concerned as super.init() is not being called, it doesn't seem to affect the test table app I threw together to check this out but I don't know the long-term effects on my main project. Has anyone else had this problem?
    I noticed the jsf-impl.jar lib is put into the war archive, jsf-impl.jar also exists in the glassfish lib directory. Unpacking and reading the manifests of both versions reads: spec 1.1 implementation 2.4.1 for the jsc2 version and spec 1.2 implementation 1.2-b19-FCS for the glassfish version. Could this be part of the problem?
    This has been tested on glassfish builds milestone 6(b42) and b44 with the same results.

  • Which part of the machine is related to the keyboard flex problem ?

    Mine is T420s
    And I got a keyboard flex problem.
    Actually which part is related to this problem ?
    Isn't it inclusive to fix this problem in the warranty ?
    thx

    Mine doesn't exhibit any keyboard flex and I don't think it's a common issue with T420s; anyway:
    http://forums.lenovo.com/t5/T400-T500-and-newer-T-series/T420s-Keyboard-Flex/td-p/454851/highlight/t...
    http://forums.lenovo.com/t5/T400-T500-and-newer-T-series/t420s-keyboard-flex/m-p/755255/highlight/tr...
    T420s i5-2520M HD3000 480GB Crucial M500 SSD 8GB RAM Ericsson F5521gw
    T430 i5-3210M HD4000/NVIDIA 5400M 512GB Crucial MX100 SSD 12GB RAM Ericsson H5321gw

  • How to handle blob data with java and mysql and hibernate

    Dear all,
    I am using java 1.6 and mysql 5.5 and hibernate 3.0 . Some time i use blob data type . Earlier my project's data base was oracle 10g but now i am converting it to Mysql and now i am facing problem to save and fetch blob data to mysql database . Can anybody give me the source code for blob handling with java+Mysql+Hibernate
    now my code is :--
    ==================================================
    *.hbm.xml :--
    <property name="image" column="IMAGE" type="com.shrisure.server.usertype.BinaryBlobType" insert="true" update="true" lazy="false"/>
    ===================================================
    *.java :--
    package com.shrisure.server.usertype;
    import java.io.OutputStream;
    import java.io.Serializable;
    import java.sql.Blob;
    import java.sql.Connection;
    import java.sql.PreparedStatement;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.sql.Types;
    import javax.naming.InitialContext;
    import javax.sql.DataSource;
    import oracle.sql.BLOB;
    import org.hibernate.HibernateException;
    import org.hibernate.usertype.UserType;
    import org.jboss.resource.adapter.jdbc.WrappedConnection;
    import com.google.gwt.user.client.rpc.IsSerializable;
    public class BinaryBlobType implements UserType, java.io.Serializable, IsSerializable {
    private static final long serialVersionUID = 1111222233331231L;
    public int[] sqlTypes() {
    return new int[] { Types.BLOB };
    public Class returnedClass() {
    return byte[].class;
    public boolean equals(Object x, Object y) {
    return (x == y) || (x != null && y != null && java.util.Arrays.equals((byte[]) x, (byte[]) y));
    public void nullSafeSet(PreparedStatement st, Object value, int index) throws HibernateException, SQLException {
    BLOB tempBlob = null;
    WrappedConnection wc = null;
    try {
    if (value != null) {
    Connection oracleConnection = st.getConnection();
    if (oracleConnection instanceof oracle.jdbc.driver.OracleConnection) {
    tempBlob = BLOB.createTemporary(oracleConnection, true, BLOB.DURATION_SESSION);
    if (oracleConnection instanceof org.jboss.resource.adapter.jdbc.WrappedConnection) {
    InitialContext ctx = new InitialContext();
    DataSource dataSource = (DataSource) ctx.lookup("java:/DefaultDS");
    Connection dsConn = dataSource.getConnection();
    wc = (WrappedConnection) dsConn;
    // with getUnderlying connection method , cast it to Oracle
    // Connection
    oracleConnection = wc.getUnderlyingConnection();
    tempBlob = BLOB.createTemporary(oracleConnection, true, BLOB.DURATION_SESSION);
    tempBlob.open(BLOB.MODE_READWRITE);
    OutputStream tempBlobWriter = tempBlob.getBinaryOutputStream();// setBinaryStream(1);
    tempBlobWriter.write((byte[]) value);
    tempBlobWriter.flush();
    tempBlobWriter.close();
    tempBlob.close();
    st.setBlob(index, tempBlob);
    } else {
    st.setBlob(index, BLOB.empty_lob());
    } catch (Exception exp) {
    if (tempBlob != null) {
    tempBlob.freeTemporary();
    exp.printStackTrace();
    st.setBlob(index, BLOB.empty_lob());
    // throw new RuntimeException();
    } finally {
    if (wc != null) {
    wc.close();
    public Object nullSafeGet(ResultSet rs, String[] names, Object owner) throws HibernateException, SQLException {
    final Blob blob = rs.getBlob(names[0]);
    return blob != null ? blob.getBytes(1, (int) blob.length()) : null;
    public Object deepCopy(Object value) {
    if (value == null)
    return null;
    byte[] bytes = (byte[]) value;
    byte[] result = new byte[bytes.length];
    System.arraycopy(bytes, 0, result, 0, bytes.length);
    return result;
    public boolean isMutable() {
    return true;
    public Object assemble(Serializable arg0, Object arg1) throws HibernateException {
    return assemble(arg0, arg1);
    public Serializable disassemble(Object arg0) throws HibernateException {
    return disassemble(arg0);
    public int hashCode(Object arg0) throws HibernateException {
    return hashCode();
    public Object replace(Object arg0, Object arg1, Object arg2) throws HibernateException {
    return replace(arg0, arg1, arg2);
    =================================================================
    can anyone give me the source code for this BinaryBlobType.java according to mysql blob handling ..

    Moderator action: crosspost deleted.

  • Flex Builder 3.1 Standard and Flex SDK 4.1 build 16076

    Hi I have a problem I have downloaded Flex SDK 4.1 16076 and added to my sdk list in Flex Builder. I can compile my program fine except when I change files the flash imports are removed and the code hints don't have any knowledge of flash.display and other base classes such as Movieclip and Sprite. As soon as a manually paste the imports into my class files it compiles again but can't be doing with copying imports back in every time I change a class file.
    It didn't do this on version 4.0.0 - I have added   -static-link-runtime-shared-libraries=true to compiler arguments as I did have a problem with it firstly compiling about FontAsset.
    Does anyone know why? Do I have to add another swc in?

    You should always have separate workspaces for separate versions of Flash Builder.
    Flex 3 and Flex 4 have some large differences.  You will probably want to spend some time reading about migrating by searching on Google.  Here is a good place to start: http://www.adobe.com/devnet/flex/articles/flex3and4_differences.html

  • LCCS and Flex 4.5

    Hello,
    I'm about to start a new project, that will make use of LCCS, and I'm deciding which SDK should I use between Flex 4.1 and Flex 4.5. Provided I pick the LCCS for Flash Player 10.1 library (the lastest stable), is there any know problem or incompatibilty if I use the newer Flex 4.5, or is it better to use the older but more stable Flex 4.1?
    Thank you very much for you help!

    well, that is good news!
    Im really glad to hear the spark component set is in dev.
    If you need any testers, I'd totally love to help out.
    we have a large flex 45 project with lccs under development
    is there any kind of prerelease for this or anything?
    cheers
    glenn
    tinylion uk

  • [svn:cairngorm3:] 14674: Migration to Parsley 2.2 and Flex SDK 3.5.

    Revision: 14674
    Revision: 14674
    Author:   [email protected]
    Date:     2010-03-10 10:47:07 -0800 (Wed, 10 Mar 2010)
    Log Message:
    Migration to Parsley 2.2 and Flex SDK 3.5. Removed Command implementation of Integration library in favor of Asynchronous Commands of Parsley 2.2.
    Modified Paths:
        cairngorm3/trunk/samples/insync/insync-basic/src/insync/presentation/ContactsNavigator.mx ml
        cairngorm3/trunk/samples/insync/insync-modularExtended-contacts/src/ContactsModule.mxml
        cairngorm3/trunk/samples/insync/insync-modularExtended-contacts/src/ContactsModuleRig.mxm l
        cairngorm3/trunk/samples/insync/insync-modularExtended-contacts/src/insync/contacts/Conta ctsContext.mxml
        cairngorm3/trunk/samples/insync/insync-modularExtended-contacts/src/insync/contacts/appli cation/RefreshSearchAfterSaveController.as
        cairngorm3/trunk/samples/insync/insync-modularExtended-contacts/src/insync/contacts/appli cation/RemoveContactCommand.as
        cairngorm3/trunk/samples/insync/insync-modularExtended-contacts/src/insync/contacts/appli cation/SaveContactCommand.as
        cairngorm3/trunk/samples/insync/insync-modularExtended-contacts/src/insync/contacts/appli cation/SearchContactsCommand.as
        cairngorm3/trunk/samples/insync/insync-modularExtended-contacts/src/insync/contacts/prese ntation/ContactFormPM.as
        cairngorm3/trunk/samples/insync/insync-modularExtended-contacts/src/insync/contacts/prese ntation/ContactList.mxml
        cairngorm3/trunk/samples/insync/insync-modularExtended-contacts/src/insync/contacts/prese ntation/ContactsNavigator.mxml
        cairngorm3/trunk/samples/insync/insync-modularExtended-contacts/test/insync/contacts/appl ication/RefreshSearchAfterSaveControllerTest.as
        cairngorm3/trunk/samples/insync/insync-modularExtended-contacts/test/insync/contacts/appl ication/RemoveContactCommandTest.as
        cairngorm3/trunk/samples/insync/insync-modularExtended-contacts/test/insync/contacts/appl ication/SaveContactCommandTest.as
        cairngorm3/trunk/samples/insync/insync-modularExtended-contacts/test/insync/contacts/appl ication/SearchContactsCommandTest.as
        cairngorm3/trunk/samples/insync/insync-modularExtended-expenses/src/ExpensesModule.mxml
        cairngorm3/trunk/samples/insync/insync-modularExtended-expenses/src/ExpensesModuleRig.mxm l
        cairngorm3/trunk/samples/insync/insync-modularExtended-messaging/src/ComposeMessageModule .mxml
        cairngorm3/trunk/samples/insync/insync-modularExtended-messaging/src/ComposeMessageModule Rig.mxml
        cairngorm3/trunk/samples/insync/insync-modularExtended-shell/src/InsyncModularExtendedShe ll.mxml
        cairngorm3/trunk/samples/insync/insync-modularExtended-shell/src/insync/presentation/Cont entViewStack.mxml

    I can't help you with your problem, but maybe this is a good start:
    http://kb2.adobe.com/cps/905/cpsid_90508.html#main_Flash_Builder
    ..... About that... have you encountered any other issue when using FB 4.5.1 with OS X 10.7.0?

  • [svn:cairngorm3:] 14658: Migration to Parsley 2.2 and Flex SDK 3.5.

    Revision: 14658
    Revision: 14658
    Author:   [email protected]
    Date:     2010-03-10 02:08:29 -0800 (Wed, 10 Mar 2010)
    Log Message:
    Migration to Parsley 2.2 and Flex SDK 3.5. Removed Command implementation of Integration library in favor of Asynchronous Commands of Parsley 2.2.
    Modified Paths:
        cairngorm3/trunk/libraries/Integration/.actionScriptProperties
        cairngorm3/trunk/libraries/Integration/.flexLibProperties
        cairngorm3/trunk/libraries/IntegrationDMS/.actionScriptProperties
        cairngorm3/trunk/libraries/IntegrationDMS/src/com/adobe/cairngorm/CairngormIntegrationDMS Lib.as
        cairngorm3/trunk/libraries/IntegrationRPC/.actionScriptProperties
        cairngorm3/trunk/libraries/IntegrationRPC/src/com/adobe/cairngorm/CairngormIntegrationRPC Lib.as
        cairngorm3/trunk/libraries/IntegrationTest/.actionScriptProperties
        cairngorm3/trunk/libraries/IntegrationTest/html-template/history/history.js
        cairngorm3/trunk/libraries/IntegrationTest/html-template/index.template.html
        cairngorm3/trunk/libraries/IntegrationTest/src/IntegrationTests.mxml
        cairngorm3/trunk/libraries/IntegrationTest/src/LocalConnectionConsumer.mxml
        cairngorm3/trunk/libraries/IntegrationTest/src/LocalConnectionProducer.mxml
        cairngorm3/trunk/libraries/Module/.actionScriptProperties
        cairngorm3/trunk/libraries/Module/pom.xml
        cairngorm3/trunk/libraries/Module/src/com/adobe/cairngorm/module/ParsleyFlexModuleFactory .as
        cairngorm3/trunk/libraries/ModuleTest/.actionScriptProperties
        cairngorm3/trunk/libraries/ModuleTest/html-template/AC_OETags.js
        cairngorm3/trunk/libraries/ModuleTest/html-template/history/history.css
        cairngorm3/trunk/libraries/ModuleTest/html-template/history/history.js
        cairngorm3/trunk/libraries/ModuleTest/html-template/history/historyFrame.html
        cairngorm3/trunk/libraries/Navigation/.actionScriptProperties
        cairngorm3/trunk/libraries/Navigation/pom.xml
        cairngorm3/trunk/libraries/Observer/.actionScriptProperties
        cairngorm3/trunk/libraries/ObserverParsley/.actionScriptProperties
        cairngorm3/trunk/libraries/ObserverParsley/pom.xml
        cairngorm3/trunk/libraries/ObserverTest/.actionScriptProperties
        cairngorm3/trunk/libraries/ObserverTest/html-template/AC_OETags.js
        cairngorm3/trunk/libraries/Popup/.actionScriptProperties
        cairngorm3/trunk/libraries/PopupParsley/.actionScriptProperties
        cairngorm3/trunk/libraries/PopupTest/.actionScriptProperties
        cairngorm3/trunk/libraries/PopupTest/html-template/AC_OETags.js
        cairngorm3/trunk/libraries/Task/.actionScriptProperties
        cairngorm3/trunk/libraries/Validation/.actionScriptProperties
        cairngorm3/trunk/libraries/Validation/.flexLibProperties
        cairngorm3/trunk/libraries/Validation/.settings/org.eclipse.core.resources.prefs
        cairngorm3/trunk/libraries/ValidationTest/.actionScriptProperties
        cairngorm3/trunk/libraries/ValidationTest/html-template/AC_OETags.js
        cairngorm3/trunk/samples/insync/insync-basic/.actionScriptProperties
        cairngorm3/trunk/samples/insync/insync-basic/html-template/AC_OETags.js
        cairngorm3/trunk/samples/insync/insync-basic/html-template/history/history.css
        cairngorm3/trunk/samples/insync/insync-basic/html-template/history/history.js
        cairngorm3/trunk/samples/insync/insync-basic/html-template/history/historyFrame.html
        cairngorm3/trunk/samples/insync/insync-basic/src/InsyncBasic.mxml
        cairngorm3/trunk/samples/insync/insync-basic/src/InsyncContext.mxml
        cairngorm3/trunk/samples/insync/insync-basic/src/insync/application/RefreshSearchAfterSav eController.as
        cairngorm3/trunk/samples/insync/insync-basic/src/insync/application/RemoveContactCommand. as
        cairngorm3/trunk/samples/insync/insync-basic/src/insync/application/SaveContactCommand.as
        cairngorm3/trunk/samples/insync/insync-basic/src/insync/application/SearchContactsCommand .as
        cairngorm3/trunk/samples/insync/insync-basic/src/insync/infrastructure/AlertHandler.as
        cairngorm3/trunk/samples/insync/insync-basic/src/insync/presentation/ContactFormPM.as
        cairngorm3/trunk/samples/insync/insync-basic/src/insync/presentation/ContactsNavigatorPM. as
        cairngorm3/trunk/samples/insync/insync-basic/test/insync/application/RefreshSearchAfterSa veControllerTest.as
        cairngorm3/trunk/samples/insync/insync-basic/test/insync/application/RemoveContactCommand Test.as
        cairngorm3/trunk/samples/insync/insync-basic/test/insync/application/SaveContactCommandTe st.as
        cairngorm3/trunk/samples/insync/insync-basic/test/insync/application/SearchContactsComman dTest.as
        cairngorm3/trunk/samples/insync/insync-modularExtended-api/.actionScriptProperties
        cairngorm3/trunk/samples/insync/insync-modularExtended-contacts/.actionScriptProperties
        cairngorm3/trunk/samples/insync/insync-modularExtended-contacts/html-template/AC_OETags.j s
        cairngorm3/trunk/samples/insync/insync-modularExtended-expenses/.actionScriptProperties
        cairngorm3/trunk/samples/insync/insync-modularExtended-expenses/html-template/AC_OETags.j s
        cairngorm3/trunk/samples/insync/insync-modularExtended-messaging/.actionScriptProperties
        cairngorm3/trunk/samples/insync/insync-modularExtended-messaging/html-template/AC_OETags. js
        cairngorm3/trunk/samples/insync/insync-modularExtended-shell/.actionScriptProperties
        cairngorm3/trunk/samples/insync/insync-modularExtended-shell/html-template/AC_OETags.js
    Added Paths:
        cairngorm3/trunk/libraries/Integration/libs/parsley-flex3-2.2.0.swc
        cairngorm3/trunk/libraries/Integration/libs/spicelib-flex-2.2.0.swc
        cairngorm3/trunk/libraries/IntegrationDMS/libs/parsley-flex3-2.2.0.swc
        cairngorm3/trunk/libraries/IntegrationDMS/libs/spicelib-flex-2.2.0.swc
        cairngorm3/trunk/libraries/IntegrationRPC/libs/parsley-flex3-2.2.0.swc
        cairngorm3/trunk/libraries/IntegrationRPC/libs/spicelib-flex-2.2.0.swc
        cairngorm3/trunk/libraries/IntegrationTest/libs/parsley-flex3-2.2.0.swc
        cairngorm3/trunk/libraries/IntegrationTest/libs/spicelib-flex-2.2.0.swc
        cairngorm3/trunk/libraries/Module/libs/parsley-flex3-2.2.0.swc
        cairngorm3/trunk/libraries/Module/libs/spicelib-flex-2.2.0.swc
        cairngorm3/trunk/libraries/ModuleTest/libs/parsley-flex3-2.2.0.swc
        cairngorm3/trunk/libraries/ModuleTest/libs/spicelib-flex-2.2.0.swc
        cairngorm3/trunk/libraries/ObserverParsley/libs/parsley-flex3-2.2.0.swc
        cairngorm3/trunk/libraries/ObserverParsley/libs/spicelib-flex-2.2.0.swc
        cairngorm3/trunk/libraries/ObserverTest/html-template/history/
        cairngorm3/trunk/libraries/ObserverTest/html-template/history/history.css
        cairngorm3/trunk/libraries/ObserverTest/html-template/history/history.js
        cairngorm3/trunk/libraries/ObserverTest/html-template/history/historyFrame.html
        cairngorm3/trunk/libraries/ObserverTest/html-template/index.template.html
        cairngorm3/trunk/libraries/ObserverTest/html-template/playerProductInstall.swf
        cairngorm3/trunk/libraries/PopupParsley/libs/parsley-flex3-2.2.0.swc
        cairngorm3/trunk/libraries/PopupParsley/libs/spicelib-flex-2.2.0.swc
        cairngorm3/trunk/libraries/PopupTest/html-template/history/
        cairngorm3/trunk/libraries/PopupTest/html-template/history/history.css
        cairngorm3/trunk/libraries/PopupTest/html-template/history/history.js
        cairngorm3/trunk/libraries/PopupTest/html-template/history/historyFrame.html
        cairngorm3/trunk/libraries/PopupTest/html-template/index.template.html
        cairngorm3/trunk/libraries/PopupTest/html-template/playerProductInstall.swf
        cairngorm3/trunk/libraries/ValidationTest/html-template/history/
        cairngorm3/trunk/libraries/ValidationTest/html-template/history/history.css
        cairngorm3/trunk/libraries/ValidationTest/html-template/history/history.js
        cairngorm3/trunk/libraries/ValidationTest/html-template/history/historyFrame.html
        cairngorm3/trunk/libraries/ValidationTest/html-template/index.template.html
        cairngorm3/trunk/libraries/ValidationTest/html-template/playerProductInstall.swf
        cairngorm3/trunk/samples/insync/insync-basic/libs/parsley-flex3-2.2.0.swc
        cairngorm3/trunk/samples/insync/insync-basic/libs/spicelib-flex-2.2.0.swc
        cairngorm3/trunk/samples/insync/insync-modularExtended-contacts/html-template/history/
        cairngorm3/trunk/samples/insync/insync-modularExtended-contacts/html-template/history/his tory.css
        cairngorm3/trunk/samples/insync/insync-modularExtended-contacts/html-template/history/his tory.js
        cairngorm3/trunk/samples/insync/insync-modularExtended-contacts/html-template/history/his toryFrame.html
        cairngorm3/trunk/samples/insync/insync-modularExtended-contacts/html-template/index.templ ate.html
        cairngorm3/trunk/samples/insync/insync-modularExtended-contacts/html-template/playerProdu ctInstall.swf
        cairngorm3/trunk/samples/insync/insync-modularExtended-contacts/libs/parsley-flex3-2.2.0. swc
        cairngorm3/trunk/samples/insync/insync-modularExtended-contacts/libs/spicelib-flex-2.2.0. swc
        cairngorm3/trunk/samples/insync/insync-modularExtended-expenses/html-template/history/
        cairngorm3/trunk/samples/insync/insync-modularExtended-expenses/html-template/history/his tory.css
        cairngorm3/trunk/samples/insync/insync-modularExtended-expenses/html-template/history/his tory.js
        cairngorm3/trunk/samples/insync/insync-modularExtended-expenses/html-template/history/his toryFrame.html
        cairngorm3/trunk/samples/insync/insync-modularExtended-expenses/html-template/index.templ ate.html
        cairngorm3/trunk/samples/insync/insync-modularExtended-expenses/html-template/playerProdu ctInstall.swf
        cairngorm3/trunk/samples/insync/insync-modularExtended-expenses/libs/parsley-flex3-2.2.0. swc
        cairngorm3/trunk/samples/insync/insync-modularExtended-expenses/libs/spicelib-flex-2.2.0. swc
        cairngorm3/trunk/samples/insync/insync-modularExtended-messaging/html-template/history/
        cairngorm3/trunk/samples/insync/insync-modularExtended-messaging/html-template/history/hi story.css
        cairngorm3/trunk/samples/insync/insync-modularExtended-messaging/html-template/history/hi story.js
        cairngorm3/trunk/samples/insync/insync-modularExtended-messaging/html-template/history/hi storyFrame.html
        cairngorm3/trunk/samples/insync/insync-modularExtended-messaging/html-template/index.temp late.html
        cairngorm3/trunk/samples/insync/insync-modularExtended-messaging/html-template/playerProd uctInstall.swf
        cairngorm3/trunk/samples/insync/insync-modularExtended-messaging/libs/parsley-flex3-2.2.0 .swc
        cairngorm3/trunk/samples/insync/insync-modularExtended-messaging/libs/spicelib-flex-2.2.0 .swc
        cairngorm3/trunk/samples/insync/insync-modularExtended-shell/html-template/history/
        cairngorm3/trunk/samples/insync/insync-modularExtended-shell/html-template/history/histor y.css
        cairngorm3/trunk/samples/insync/insync-modularExtended-shell/html-template/history/histor y.js
        cairngorm3/trunk/samples/insync/insync-modularExtended-shell/html-template/history/histor yFrame.html
        cairngorm3/trunk/samples/insync/insync-modularExtended-shell/html-template/index.template .html
        cairngorm3/trunk/samples/insync/insync-modularExtended-shell/html-template/playerProductI nstall.swf
        cairngorm3/trunk/samples/insync/insync-modularExtended-shell/libs/parsley-flex3-2.2.0.swc
        cairngorm3/trunk/samples/insync/insync-modularExtended-shell/libs/spicelib-flex-2.2.0.swc
    Removed Paths:
        cairngorm3/trunk/libraries/Integration/libs/parsley-complete-flex3-2.1.0.swc
        cairngorm3/trunk/libraries/Integration/libs/spicelib-complete-flex-2.1.0.swc
        cairngorm3/trunk/libraries/Integration/src/com/adobe/cairngorm/CairngormIntegrationLib.as
        cairngorm3/trunk/libraries/Integration/src/com/adobe/cairngorm/integration/command/
        cairngorm3/trunk/libraries/Integration/test/com/
        cairngorm3/trunk/libraries/IntegrationDMS/libs/parsley-complete-flex3-2.1.0.swc
        cairngorm3/trunk/libraries/IntegrationDMS/libs/spicelib-complete-flex-2.1.0.swc
        cairngorm3/trunk/libraries/IntegrationRPC/libs/parsley-complete-flex3-2.1.0.swc
        cairngorm3/trunk/libraries/IntegrationRPC/libs/spicelib-complete-flex-2.1.0.swc
        cairngorm3/trunk/libraries/IntegrationTest/libs/parsley-complete-flex3-2.1.0.swc
        cairngorm3/trunk/libraries/IntegrationTest/libs/spicelib-complete-flex-2.1.0.swc
        cairngorm3/trunk/libraries/Module/libs/parsley-complete-flex3-2.1.0.swc
        cairngorm3/trunk/libraries/Module/libs/spicelib-complete-flex-2.1.0.swc
        cairngorm3/trunk/libraries/ModuleTest/html-template/playerProductInstall.swf
        cairngorm3/trunk/libraries/ModuleTest/libs/parsley-complete-flex3-2.1.0.swc
        cairngorm3/trunk/libraries/ModuleTest/libs/spicelib-complete-flex-2.1.0.swc
        cairngorm3/trunk/libraries/ObserverParsley/libs/parsley-complete-flex3-2.1.0.swc
        cairngorm3/trunk/libraries/ObserverParsley/libs/spicelib-complete-flex-2.1.0.swc
        cairngorm3/trunk/libraries/PopupParsley/libs/parsley-complete-flex3-2.1.0.swc
        cairngorm3/trunk/libraries/PopupParsley/libs/spicelib-complete-flex-2.1.0.swc
        cairngorm3/trunk/libraries/TaskTest/html-template/history/
        cairngorm3/trunk/libraries/TaskTest/html-template/index.template.html
        cairngorm3/trunk/libraries/TaskTest/html-template/playerProductInstall.swf
        cairngorm3/trunk/samples/insync/insync-basic/libs/parsley-complete-flex3-2.1.0.swc
        cairngorm3/trunk/samples/insync/insync-basic/libs/spicelib-complete-flex-2.1.0.swc
        cairngorm3/trunk/samples/insync/insync-modularExtended-contacts/libs/parsley-complete-fle x3-2.1.0.swc
        cairngorm3/trunk/samples/insync/insync-modularExtended-contacts/libs/spicelib-complete-fl ex-2.1.0.swc
        cairngorm3/trunk/samples/insync/insync-modularExtended-expenses/libs/parsley-complete-fle x3-2.1.0.swc
        cairngorm3/trunk/samples/insync/insync-modularExtended-expenses/libs/spicelib-complete-fl ex-2.1.0.swc
        cairngorm3/trunk/samples/insync/insync-modularExtended-messaging/libs/parsley-complete-fl ex3-2.1.0.swc
        cairngorm3/trunk/samples/insync/insync-modularExtended-messaging/libs/spicelib-complete-f lex-2.1.0.swc
        cairngorm3/trunk/samples/insync/insync-modularExtended-shell/libs/parsley-complete-flex3- 2.1.0.swc
        cairngorm3/trunk/samples/insync/insync-modularExtended-shell/libs/spicelib-complete-flex- 2.1.0.swc

    I can't help you with your problem, but maybe this is a good start:
    http://kb2.adobe.com/cps/905/cpsid_90508.html#main_Flash_Builder
    ..... About that... have you encountered any other issue when using FB 4.5.1 with OS X 10.7.0?

  • Mediawiki, mysql, php? problems [SOLVED]

    On Sunday my Arch install that is hosted by Slicehost became unresponsive to them so they had to do an emergency reboot. After it came back up my install of mediawiki was (and still is) only returning a blank page (at least in Firefox). After some digging I found out that part of the problem was that mysqld wasn't starting so I managed to get that fixed by commenting out the lines relating to innodb and putting in skip-innodb into my.cnf. But I'm still getting a blank page.
    According to Mediawiki's manual, "A blank white page indicates a PHP error which isn't being printed to the screen." They give two lines to put into LocalSettings.php to force error messages but after doing that I'm still getting a blank page. Changing display_errors in php.ini to ON didn't have any effect.  When I load the wiki in Safari I get the following error: "Got java.io.EOFException (Server closed connection while sending the HTTP header.): http://some_url.com/mediawiki/index.php/Main_Page". I have no idea what this error means and googling java.io.EOFException doesn't bring up anything very helpful. My PHP Test Page indicates that PHP is up and running.
    Any ideas on fixes or where I can find more clues?
    [EDIT]
    Mysql was definitely the root of the problems with Mediawiki. I tried nearly every suggestion listed in the forums for fixing a mysql install that wouldn't start but nothing worked. I even completely uninstalled mysql and reinstalled it but it still refused to start. I switched over to postgresql and switched mediawiki to run with that. Problem solved.
    Last edited by k_odoma (2009-05-23 01:48:35)

    There are some other things that must be done to connect to
    the database
    (such as passing the usernamee, password, and host info to
    mysql_connect()
    and storing the connection resource), and those might be in
    the include
    files. I generally place all of the connection parameters in
    a separate file
    that is located in a folder that can't be accessed by a
    browser, for
    security purposes.
    Paul Swanson
    Portland, Oregon, USA
    "Amy Blankenship *AdobeCommunityExpert*"
    <[email protected]>
    wrote in message news:edk6ui$69c$[email protected]..
    > What's in the include(s)?
    >
    > "83Dons" <[email protected]> wrote in
    message
    > news:edk5s5$4uk$[email protected]..
    > > Here is the php code for the 'read' and 'write'
    parts:
    > >
    > >
    > >
    > > <?php
    > > include '......';
    > > mysql_select_db('clinskills') or die("UNABLE TO
    CONNECT TO
    DATABASE");
    > > $sql = "select A1Answer from authorware where id =
    '13'";
    > > $result = mysql_query($sql);
    > > $answer1 = mysql_result($result,0,"A1Answer");
    > > print $answer1;
    > > ?>
    > >
    > > <?php
    > > include '............';
    > > mysql_select_db('clinskills') or die("UNABLE TO
    CONNECT TO
    DATABASE");
    > > $newdata = $_GET['data'];
    > > mysql_query("insert into authorware (A1Answer)
    values('$newdata')")
    or
    > > die(mysql_error());
    > > mysql_close(); ?>
    > >
    >
    >

  • Using MySql and PHP with Dreamweaver on a Mac

    Hello all,
    As always if the answers to these questions are obscenely
    obvious please humour me.
    I use XHTML and CSS in my websites and realise that it is
    time that I dabbled with SSI. So I've started using PHP.
    However, I have been following the installation directions of
    MySql and am running into problems. I am installing the relavent
    software and am then unable to find it on my Mac, the startup files
    are there but the actual MySql data appears to not be installed
    despite my computer telling me it is...... I am using a G3 running
    OSX 10.4 is this good enough? I noticed talk of needing a PowerPC
    or Intel mac. Is this the case?
    Also, would I need MySql installed on my actual computer if
    the my servers have it already? And does Dreamweaver 8 have both of
    these programs installed as standard?
    If you could help out I would be very appreciative as I would
    like to learn this stuff and I appear to be struggling at the
    outset....
    Cheers
    M.A

    M.A.Wilson wrote:
    > However, I have been following the installation
    directions of MySql and am
    > running into problems. I am installing the relavent
    software and am then unable
    > to find it on my Mac, the startup files are there but
    the actual MySql data
    > appears to not be installed despite my computer telling
    me it is...... I am
    > using a G3 running OSX 10.4 is this good enough? I
    noticed talk of needing a
    > PowerPC or Intel mac. Is this the case?
    MySQL is a relational database management system that
    comprises a
    database server and several utility programs. Although you
    install it
    like any other program on a Mac, the similarity stops there.
    First, the point about PowerPC and Intel Macs is that there
    are
    different versions of the MySQL installer for each type of
    processor.
    I'm pretty sure that a G3 is OK, but you must choose the
    PowerPC version
    of MySQL, not the 64-bit or x86 (Intel Mac) version.
    Once you have installed MySQL, you need to drag the
    MySQL.PrefPane icon
    from the disk image onto your System Preferences. This
    installs a
    Preference Pane that enables you to start and stop MySQL. The
    Preference
    Pane has an option to start up MySQL automatically, but in my
    experience, it doesn't work on Tiger. You need to open the
    Preference
    Pane, and click Start MySQL Server each time you start your
    computer.
    The best way to work with MySQL is to use a graphical
    interface, such as
    phpMyAdmin. As Osgood has mentioned, I have written a book
    about PHP and
    Dreamweaver, which goes into all the necessary details. It's
    also very
    Mac-friendly with separate instructions where necessary for
    PC and Mac.
    More details here:
    http://foundationphp.com/dreamweaver8/
    David Powers
    Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
    Author, "Foundation PHP 5 for Flash" (friends of ED)
    http://foundationphp.com/

  • Database setup with MySQL and PHP question

    Hello all,
    I recently had a problem getting a report to work for a site I was updating.  This site is written in PHP with a MySQL database.  The application is to track customer calls to auto repair stores.  The database has a lot of foreign keys because they wanted to update information in only one spot and have multiple records be updated all at once.  So, I've got all the information from individual calls saved in the call_log table, and have foreign keys to reference information in other tables (for example this table lists what store received the call referencing the store table).  If a store changes locations, they want to have reports automatically update with the new address, connection to conversation number, etc.
    In one of the responses to my question on how to get this report to work, I was told that this could be done without using foreign keys (by Normalizing the database using mapping tables).  I am still a newbie to MySQL, and after looking though a lot of manuals, tutorials, and forum posts, I am more confused now than ever.
    I got the report to work using the foreign keys, but I would like to learn what I should have done with the database (and how to get the information displayed).
    So for example one report would be displaying the following:
               Store                                                      Reason for the Customer Call
                                               breaks             oil change            shocks              tune up         total calls
    5636 - Bloomington                  2                       4                        0                       2                   8
    8875 - Duluth                           1                       6                       4                        8                  19
    with links on the store name to pull up the information on that specific store.  How would I change the database (listed below) to do this without foreign keys?  Any help would be greatly appreciated.
    call_log             (table that contains the following:)
    call_id
    conv_number
    date
    camp_type         (foreign key to the campaign table so it displays the campaign_id)
    reason               (foreign key to the call_reason table so it displays the reason_id)
    location              (foreign key to the store table so it displays the store_id)
    associate
    call_summary
    trainig_issue      (foreign key to the training_points table so it displays the training_key_id)
    visit_closed
    example            (foreign key to the example_type table so it displays the example_id)
    campaign          (table that contains the following:)
    campaign_id
    campaign_name
    campaign_promotion
    campaign_coupon
    campaign_startdate
    campaign_enddate
    call_reason       (table that contains the following:)
    reason_id
    reason
    store               (table that contains the following:)
    store_id
    store_number
    store_address
    store_city
    store_state
    store_postalcode
    store_name
    store_phone
    store_email
    store_mgr
    training_points  (table that contains the following:)
    training_key_id
    key_issue
    policy
    example_type  (table that contains the following:)
    example_id
    example_name
    example_image
    Thank you very much.

    Frankly, that is way to much of a question to be answered in detail on a forum... There's a lot involved and a lot of general database understanding required. I would highly recommend:
    Database Design for Mere Mortals:                       A Hands-On Guide to Relational Database Design, Second                       Edition -- by Michael                     J. Hernandez
    This is an invaluable book to get you going in the right direction and on a firm foundation.
    Lawrence   *Adobe Community Expert*
    www.Cartweaver.com
    Complete Shopping Cart Application for
    Dreamweaver, available in ASP, PHP and CF
    www.twitter.com/LawrenceCramer

  • How to bulk import data into CQ5 from MySQL and file system

    Is there an easy way to bulk import data into CQ5 from MySQL and file system?  Some of the files are ~50MB each (instrument files).  There are a total of ~1,500 records spread over about 5 tables.
    Thanks

    What problem are you having writing it to a file?
    You can't use FORALL to write the data out to a file, you can only loop through the entries in the collection 1 by 1 and write them out to the file like that.
    FORALL can only be used for SQL statements.

  • PHP MySQL data display problem

    I am having trouble getting data to display on my web page.In Dreamweaver CS3, I created a new page.
    Selected PHP as the type.
    Saved it.
    Connected a database and created a recordset (all using Dreamweavers menus. I did not write any code).
    NOTE: The database is on a remote server.
    The TEST button displayed the records from the recordset with no problem.
    On the new page, I then typed some text.
    Then dragged some fields from the Bindings tab to the page.
    I saved it and then went to preview it in my browser.
    The page comes up completely blank. Not even the text shows.
    I then saved the page as an HTML page.
    When I preview this in my browser, the text shows, but the fields and data do not.
    I then tried creating a dynamic table (again, using the Dreamweaver menus.).
    A similar thing happens, ie. If I save it as an HTML, the text shows and the column labels and border shows, but no data.
    Nothing shows if I save it as a PHP file.
    I can view the data online using files created by PHPMagic, so I know the data is there and retrievable.
    It is just in pages created in Dreamweaver that don’t work.
    What am I doing wrong?

    My web server supports PHP. I can disply PHP pages created by other software packages, just not the Dreamweaver ones.
    Frank
    Date: Thu, 4 Jun 2009 19:04:03 -0600
    From: [email protected]
    To: [email protected]
    Subject: PHP MySQL data display problem
    To view php pages - or pages with PHP code in them - in a browser, the page must be served up by a Web server that supports PHP. You can set up a testing server on your local machine for this purpose. Look for WAMP (Windows), MAMP (Mac), or XXAMP for some easily installed packages.
    Mark A. Boyd
    Keep-On-Learnin'
    This message was processed and edited by Jive.
    It shall not be considered an accurate representation of my words.
    It might not even have been intended as a reply to your message.
    >

Maybe you are looking for

  • RRMX/SSO not working with Win7/GUI 7.2

    Dear all, I'm testing the useability of our BW system with new Windows 7 and SAP GUI version 7.2. The only way of launching BEx analyzer is via RRMX or portal (using single sign-on) but this is not working. Once i trigger RRMX, Excel 2007 is opened (

  • Itunes launches by itself in OS 10.6.8. Any fixes?

    itunes launches by itself in OS 10.6.8. Anyone know of any fixes?

  • ACR and Canon DPP

    Another question about ACR from the same greenhorn: Is there a way to get ACR to recognize changes made to a CR2 file in Canon's Digital Photo Professional? I have a bunch of CR2s with retouching and color/etc. corrections made in DPP that I would li

  • Correct Flash CS6 iOS publish settings for iPhone?

    My programmer and I are trying to publish an iOS app for iPhone from Flash cs6 and are being rejected because "Your app did not run at iPhone resolution and/or 2x iPhone 3GS resolution when reviewed on iPad. The contents of your app are not displayed

  • Spanish spell checker in Keynote

    If I change my operating system to Spanish, I can access a Spanish spell checker within Keynote. I cannot, however, specify the language I want to use for a particular Keynote file--as I can in PowerPoint. Is there a way to access the Spanish spellin