Actionscript + SQlite error.... help!  (flex builder)

Ok, I have narrowed down my error to have been coming in some way from the following code:
[CODE]
for (var i:int = 0; i < size; i++)
try
   createStmt = new SQLStatement();               
   createStmt.sqlConnection = conn;
   var sqlInsert:String = "insert into FilesMaster (\"f_ID\", \"f_Name\", \"f_PreferredName\") values(" + model.getDataResult[i]["f_ID"] + ",'" + model.getDataResult[i]["f_Name"] + "','" + model.getDataResult[i]["f_PreferredName"] + "')";
   createStmt.text = sqlInsert;                       
   createStmt.execute();
catch(error:SQLError)
   trace("Error message:", error.message);
   trace("Details:", error.details); 
[/CODE]
This code executes just fine, and the processing continues on to allow me to then add this table to a datagrid.  But once its done, I get the following error:
[CODE]Error #2044: Unhandled SQLErrorEvent:. errorID=3115, operation=execute , message=Error #3115: SQL Error. , details=near 'index': syntax error
Error #2044: Unhandled SQLErrorEvent:. errorID=3115, operation=execute , message=Error #3115: SQL Error. , details=near 's': syntax error[/CODE]
The datagrid populates fine and the code executes as expected...
but what does this error mean?
I tried switching the above INSERT code with the following and i no longer got the SQL error...
[CODE]
createStmt = new SQLStatement();
createStmt.sqlConnection = conn;               
var sql:String = "INSERT INTO FilesMaster (f_ID, f_Name, f_PreferredName) VALUES(" + i.toString() + ",'moo','cat');";
createStmt.text = sql;
createStmt.addEventListener(SQLEvent.RESULT, insertResult);
createStmt.execute();    [/CODE]

I would try this:
continentArray = new ArrayCollection(event.result as Array);
And if that does not work then ensure event.result is not just a string.
If this post answers your question or helps, please mark it as such.
Greg Lafrance - Flex 2 and 3 ACE certified
www.ChikaraDev.com
Flex Training and Support Services

Similar Messages

  • Error installing flex builder 2 plugin

    I'm getting an error when I try to install the flex builder 2
    into my copy of eclipse version 3.2.1.
    Here is the log:
    !SESSION 2007-03-13 14:10:12.087
    eclipse.buildId=M20060629-1905
    java.version=1.4.2_12
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
    Framework arguments: -application
    org.eclipse.update.core.standaloneUpdate -command install -from
    file:\C:\Program Files\Adobe\Flex Builder 2
    Plug-in\com.adobe.flexbuilder.update.site/ -featureId
    com.adobe.flexbuilder.feature.core -version 2.0.155577
    Command-line arguments: -application
    org.eclipse.update.core.standaloneUpdate -command install -from
    file:\C:\Program Files\Adobe\Flex Builder 2
    Plug-in\com.adobe.flexbuilder.update.site/ -featureId
    com.adobe.flexbuilder.feature.core -version 2.0.155577
    !ENTRY org.eclipse.update.core 4 0 2007-03-13 14:10:17.197
    !MESSAGE Duplicate conflicts

    Yes I tried that to work around my problem Flex Builder
    crashing. My Eclipse 3.3 install works fine, Flex Builder will not
    even start. The plug-in installer would not get past that same
    screen, I downloaded 3.2 and it installed fine, I assume it checks
    the version and 3.3 is not supported.

  • Stuck on Compiler Error in Flex Builder

    Greetings all.
    I have my first Flex app calling a Java backend, and the connection works fine.  I have a method "getContinents()" in Java, which returns a List of Continent objects.  Each Continent object has two variables, "name" and "description".  "Name" is a two-letter abbreviation (NA for North America, SA for South America, etc; you get the idea) and "Description" is the spelled-out description (like "North America").  I have an ActionScript class which mimics the Java class.
    In Flex, I have a DataGrid which has, as its dataProvider, a Bindable ArrayCollection.  When the data comes back into Flex, I put it in the aforementioned Bindable ArrayCollection.  That works great.  The list of Continents appears in the DataGrid, as expected.
    The issue is the DropDownList.  I want to see the same thing happen in the DropDownList.  I want to see the Description in the DropDownList, and when one is chosen, based on the selection, I want to go back to the server to get the list of Countries in that selected Continent.  But I can't get this to happen because I can't get past a compiler error on the DropDownList:
    -1067: Implicit coercion of a value of type String to an unrelated type mx.collections:IList.
    DropDownList is defined like this:
        <s:DropDownList x="270" y="220" id="continentDropdown" width="112">
                                        dataProvider="{continentArray}"
                                        labelField="description"
                                        valueField="name"
                                        change="continentChanged(event)">
        </s:DropDownList>
    Data is returned to Flex in this result handler:
                protected function continentsRO_resultHandler(event:ResultEvent):void
                {    log.info("Returned in result handler") ;
                    continentArray=event.result as ArrayCollection ;
    When I create a ComboBox instead of a DropDownList, I get the same compiler error.  When I change the ComboBox from a Spark ComboBox to an MX ComboBox, I don't get the compiler error, but the ComboBox never has any data in it.
    Would anyone be able to tell me what it is that I am doing wrong here?
    Thanks very much in advance!!!

    I would try this:
    continentArray = new ArrayCollection(event.result as Array);
    And if that does not work then ensure event.result is not just a string.
    If this post answers your question or helps, please mark it as such.
    Greg Lafrance - Flex 2 and 3 ACE certified
    www.ChikaraDev.com
    Flex Training and Support Services

  • Error In flex builder

    When i try to run a project i get this error:
    there is no disk in the drive please insert a disk into drive
    \device\harddisk1\DR3
    It has JavaW.exe as the application name.
    How do i fix this?

    I would try this:
    continentArray = new ArrayCollection(event.result as Array);
    And if that does not work then ensure event.result is not just a string.
    If this post answers your question or helps, please mark it as such.
    Greg Lafrance - Flex 2 and 3 ACE certified
    www.ChikaraDev.com
    Flex Training and Support Services

  • SQLite error in Flex/Air App:

    I am trying to do a simple SQLite query from inside and Air application:
    Statement.text = 'SELECT Ingredient' +
               'FROM Ingredients'+
               'WHERE FoodCatagory_FK = 6'
    It works just fine in when I exicute the query in SQLite Manger, however in Air I get the follwoing error:
    SQLError: 'Error #3115: SQL Error.', details:'near 'FoodCatagory_FK': syntax error', operation:'execute', detailID:'2003'
    Not sure why it does not work, it seems pretty strait forward.
    Thanks,

    Hi,
    You have to leave a space either after
    Ingredients
    or before
    WHERE FoodCatagory_FK
    Thanks,
    Tamil

  • Understanding Flex/Flex Builder

    I'm very new to the Flex environment and I have a few broad questions I am hoping to get help understanding:
    1) How does Flex work with ActionScript? Is there an ActionScript editor inside the Flex Builder app?
    2) I want to import projects I developed from Flash into Flex Builder but they have timeline and ActionScript components - is this even possible?
    3) Will objects I have layed out in Flash also be editable in Flex Builder?
    4) Finally, should I just re-do the entire app in Flex?
    The reason I am even considering using Flex is because of the ability to import text/xml data once and then compile a swf that doesn't call on the text/xml data at runtime.
    -sage

    1) How does Flex work with ActionScript? Is there an ActionScript editor inside the Flex Builder app?
    When working with Flex, you use MXML and ActionScript, but after compilation it all gets compiled into ActionScript.
    Flex Builder has an ActionScript editor, but it really just a text editor. Open an .as file and edit it.
    2) I want to import projects I developed from Flash into Flex Builder but they have timeline and ActionScript components - is this even possible?
    You cannot just import stuff you've done in Flash into Flex, and certainly not as a Flex project. But you can work in Flash and use what you have created in Flex. The Flex SWFLoader component allows you to load a SWF created in Flash and click its buttons, etc. access its data etc. Watch out though as there can be issues with versioning and security.
    And then there is always Flex Component Kit for Flash.
    3) Will objects I have layed out in Flash also be editable in Flex Builder?
    No, you can access them and their data, but you can't edit them. You might be able to add components to containers in a Flash generated SWF, but it is not seamless by any means.
    4) Finally, should I just re-do the entire app in Flex?
    Hard to say. It is probably just a good idea to rebuild it in Flex, because if you are using snippets of ActionScript throughout the timeline, well that's why Flex came to be, Flash creates timeline based application nightmares, Flex is event based, which is what you want when creating real applications.
    Useful links:
    http://livedocs.adobe.com/flex/3/html/help.html?content=controls_15.html
    http://livedocs.adobe.com/flex/3/langref/mx/controls/SWFLoader.html
    http://stackoverflow.com/questions/tagged/swfloader
    http://livedocs.adobe.com/flex/3/flash_component_kit_flex3.pdf
    http://www.adobe.com/products/flex/flexdownloads/
    If this post answered your question or helped, please mark it as such.

  • Source Not Found in Flex Builder Debug

    Flex Builder 2 with CF App Wizard error.
    I'm getting a souce not found message and this error in Flex
    Builder 2. Anyone else see this? Says to Edit Source Lookup Path???
    Thanks,
    Don
    [SWF] /DA8/Constellation/CxI/bin/CxI-debug.swf - 1,087,677
    bytes after decompression
    [RPC Fault faultString="Send failed"
    faultCode="Client.Error.MessageSend"
    faultDetail="Channel.Connect.Failed error
    NetConnection.Call.Failed: HTTP: Status 404"]
    at mx.rpc::AbstractInvoker/
    http://www.adobe.com/2006/flex/mx/internal::faultHandler()[C:\dev\enterprise_gmc\framework s\mx\rpc\AbstractInvoker.as:192
    at
    mx.rpc::Responder/fault()[C:\dev\enterprise_gmc\frameworks\mx\rpc\Responder.as:56]
    at
    mx.rpc::AsyncRequest/fault()[C:\dev\enterprise_gmc\frameworks\mx\rpc\AsyncRequest.as:107]
    at
    mx.messaging::ChannelSet/mx.messaging:ChannelSet::faultPendingSends()[C:\dev\enterprise_g mc\frameworks\mx\messaging\ChannelSet.as:962]
    at
    mx.messaging::ChannelSet/channelFaultHandler()[C:\dev\enterprise_gmc\frameworks\mx\messag ing\ChannelSet.as:710]
    at
    flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at
    mx.messaging::Channel/mx.messaging:Channel::connectFailed()[C:\dev\enterprise_gmc\framewo rks\mx\messaging\Channel.as:736]
    at
    mx.messaging.channels::PollingChannel/mx.messaging.channels:PollingChannel::connectFailed ()[C:\dev\enterprise_gmc\frameworks\mx\messaging\channels\PollingChannel.as:203]
    at
    mx.messaging.channels::AMFChannel/mx.messaging.channels:AMFChannel::statusHandler()[C:\de v\enterprise_gmc\frameworks\mx\messaging\channels\AMFChannel.as:294]

    Can you post sample code that shows this issue?
    BaBo,

  • Flex builder error

    Im using Flex builder 2.0.1 (since I didnt find a forum for
    flex builder 2 Ill post here...)
    I've opened an existing project, but I cant run the mxml
    file. When I try to open the mxml file to edit it, in the Flex
    development perspective, I've got the following error message (and
    the file was not oppenet for editing):
    Unable to create this part due to an internal error. Reason for
    the failure: An unexpected exception was thrown.
    If I press Details, it shows:
    java.lang.NullPointerException
    at
    com.adobe.flexbuilder.project.actionscript.internal.ActionScriptProjectSettings.computeDy namicReferences(Unknown
    Source)
    at
    com.adobe.flexbuilder.project.actionscript.internal.ActionScriptProject.updateDynamicProj ectReferences(Unknown
    Source)
    at
    com.adobe.flexbuilder.project.actionscript.internal.ActionScriptProject.updateToolCompile Settings(Unknown
    Source)
    at
    com.adobe.flexbuilder.project.actionscript.internal.ActionScriptProject.doSetProjectDescr iption(Unknown
    Source)
    at
    com.adobe.flexbuilder.project.internal.FlexProject.doSetProjectDescription(Unknown
    Source)
    at
    com.adobe.flexbuilder.project.actionscript.internal.ActionScriptProject.loadDescription(U nknown
    Source)
    at
    com.adobe.flexbuilder.project.actionscript.internal.ActionScriptProject.<init>(Unknown
    Source)
    at
    com.adobe.flexbuilder.project.internal.FlexBasedProject.<init>(Unknown
    Source)
    at
    com.adobe.flexbuilder.project.internal.FlexProject.<init>(Unknown
    Source)
    at
    com.adobe.flexbuilder.project.actionscript.ActionScriptCore$2.doCreate(Unknown
    Source)
    at
    com.adobe.flexbuilder.project.actionscript.ActionScriptCore$ProjectCreator.run(Unknown
    Source)
    at
    org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1721)
    at
    com.adobe.flexbuilder.project.FlexWorkspaceRunner.run(Unknown
    Source)
    at
    com.adobe.flexbuilder.project.actionscript.ActionScriptCore$ProjectCreator.safeGetOrCreat e(Unknown
    Source)
    at
    com.adobe.flexbuilder.project.actionscript.ActionScriptCore.getProject(Unknown
    Source)
    at
    com.adobe.flexbuilder.project.FlexProjectManager.getActionScriptOrFlexProject(Unknown
    Source)
    at
    com.adobe.flexbuilder.codemodel.internal.project.EclipseProjectListener.registerProject(E clipseProjectListener.java:691)
    at
    com.adobe.flexbuilder.codemodel.internal.project.EclipseProjectListener.registerFile(Ecli pseProjectListener.java:740)
    at
    com.adobe.flexbuilder.editors.common.editor.AbstractFlexDocumentProvider.connect(Abstract FlexDocumentProvider.java:90)
    at
    com.adobe.flexbuilder.editors.mxml.code.MXMLDocumentProvider.connect(MXMLDocumentProvider .java:59)
    can you help me?? I dont know what to do...

    What was the project created with, the same version of Flex
    Builder or a newer or older one than what you have now? Did you try
    creating a new project and bringing in the same files?

  • Flex builder 3 build release version error

    Hi am a developer in flex for not too long. I am in a project that we use Flex 3 as our development tool in which we use external Actionscript classes and flash CS5 components (.swc) as well. Just recently the graphic team upgraded from CS5.0 to CS 5.5 and for some reason after they export the swc file from the flash source, I was not able to compile the flex project anymore throwing this error:
    "  Encountered errors or warnings while building project gTechLearning.as.
        gTechLearning.as: unable to load SWC C:\Documents and Settings\rhampton\My Documents\Flex Builder 3\learning\libs\_assets.swc ".
    So my question is simple, can anyone help me understand what is the cause of this error? Does it have anything to do with the version upgrade of the Adobe Creative Suite?
    Thanks,
    Ray H

    Ok, solved the problem. Found answer from here:
    http://forum.fluorinefx.com/viewtopic.php?f=9&t=3
    I installed LCDS Express and then added fds.swc to my project
    from LCDS-folder.

  • Flex Builder stops compile new ActionScript classes

    Hello,
    Does anyone knows what could cause Flex Builder 3.4 stops compiling NEW ActionScript classes? I have been working on Flex project for a while, we have some MXML and .as files (less than 200). This morning Flex Builder suddenly stopped detecting errors in new as classes, but not so for older classes. Thanks and appreciate your help.
    - Weiping

    Are your new classes referenced from the old code? Mxmlc employs a questionable form of "as-needed" linking, so classes that are not referenced from the main application are not even compiled. This referencing requirement is recursive; that is, any classes that are to be included have to be referenced from the main application, or from classes referenced by the main application, or from classes referenced by classes referenced by the main application, and so on. But if your new classes are not referenced at all from the old code, they will be ignored.

  • Flex Builder 3 Error: Unable to load SWC

    Hi,
    I am trying to use the YahooMaps component (YahooMaps.swc) in
    my application. I have included it in the build path of my
    application.
    Steps followed:
    1. Right-click on the project and choose Properties or open
    the Project menu and choose Properties.
    2. In the project properties dialog, choose Flex Build Path.
    3. Select the Library path tab, and press the Add SWC...
    button.
    4. Selected the YahooMap.swc
    I still get "Unable to load SWC: YahooMap.swc". It is an AS
    3.0 component. Any help will be appreciated.
    Thanks
    Sumit

    Hi Peter,
    Thank you for your reply.
    I have followed the documentation on the site you provided.
    All I have done so far is:
    1. Create a new flex project in Flex Builder 3
    2. Once the project is created, I try to add the YahooMap.swc
    to my Flex build path.
    3. Once I add the YahooMap.swc, it fails with the error
    "Unable to load YahooMap.swc" in Flex Builder 3.
    4. FB3 does not recognize YahooMap when I try to import it in
    AS3.
    import com.yahoo.maps.api.YahooMap;
    I am not sure what I am doing wrong. Does it have to do
    something with the version Y! has used to build the YahooMap.swc
    and Flex Builder 3?
    Thanks
    Sumit

  • Error while running C:\Program Files\Adobe\Flex Builder 3\sdks\3.0.0\samples\explorer\build.bat

    Hello
    I am a flex beginner, when i run the  C:\Program Files\Adobe\Flex Builder 3\sdks\3.0.0\samples\explorer\build.bat file the following error is displayed
    Loading Configuration file C:\Program Files\Adobe\Flex Builder 3\sdks\3.0.0\frameworks\flex-config.xml
    C:\Program Files\Adobe\Flex Builder 3\sdks\3.0.0\samples\explorer\loaderPanel.mxml
    Error :-1
    Please help me to run the bat file, as it will help me to learn flex independently.
    error message is attached as bmp.
    Thanks in advance.

    Hi,
    Take a look at this report: https://bugs.adobe.com/jira/browse/FB-11626 It might be of help.
    With best regards,
    Barna Biro
    Blog: http://blog.wisebisoft.com

  • Error: The folder does not contain a valid Flex Builder Project.

    HI All,
    My first Post here. I am new to Flex Hardly 10 days old. I
    want to open the flexstore project in flex builder 3 and could not
    able to do so.
    What I did: file->import->.... got the error msg as
    "The folder does not contain a valid Flex Builder Project".
    also tried file->import->general->..... same error
    msg.
    I need your Help guys
    I downloaded the sample project from
    http://examples.adobe.com/flex2/inproduct/sdk/flexstore/srcview/index.html
    Thanks in Advance
    SAS
    Text

    "shakeb66" <[email protected]> wrote in
    message
    news:gknbn8$av9$[email protected]..
    > HI All,
    > My first Post here. I am new to Flex Hardly 10 days old.
    I want to open
    > the
    > flexstore project in flex builder 3 and could not able
    to do so.
    > What I did: file->import->.... got the error msg
    as "The folder does not
    > contain a valid Flex Builder Project".
    > also tried file->import->general->..... same
    error msg.
    > I need your Help guys
    > I downloaded the sample project from
    >
    >
    http://examples.adobe.com/flex2/inproduct/sdk/flexstore/srcview/index.html
    Try creating a new Flex project and dragging the files from
    the zip into the
    src folder. You may find that you need to rearrange things a
    bit, depending
    on how they set up the project, but this should get you
    started.
    HTH;
    Amy

  • Error when launching Flex Builder 3

    Hello,
    I'm new to flex and just downloaded the trial version of Flex
    Builder 3. When launching the builder, I get the following error in
    the log. What am I missing?
    !SESSION 2008-12-07 21:08:26.880
    eclipse.buildId=unknown
    java.version=1.5.0_11
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
    Command-line arguments: -os win32 -ws win32 -arch x86
    !ENTRY org.eclipse.equinox.app 2008-12-07 21:08:35.292
    !MESSAGE Product com.adobe.flexbuilder.standalone.product
    could not be found.
    !ENTRY org.eclipse.osgi 4 0 2008-12-07 21:08:35.472
    !MESSAGE Application error
    !STACK 1
    java.lang.RuntimeException: No application id has been found.
    at
    org.eclipse.equinox.internal.app.EclipseAppContainer.startDefaultApp(EclipseAppContainer. java:236)
    at
    org.eclipse.equinox.internal.app.EclipseAppContainer.start(EclipseAppContainer.java:98)
    at
    org.eclipse.equinox.internal.app.Activator.addingService(Activator.java:112)
    at
    org.osgi.util.tracker.ServiceTracker$Tracked.trackAdding(ServiceTracker.java:1064)
    at
    org.osgi.util.tracker.ServiceTracker$Tracked.trackInitialServices(ServiceTracker.java:926 )
    at
    org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:330)
    Any help is appreciated.
    Thanks

    no line, it just gives me that error every once in a while
    when the application is originally launched, but not every
    time.

  • ActionScript syntax errors are not detection with Flash Builder 4

    I encountered a serious bug with Flash Builder 4, it is not showing ActionScript syntax error within an ActionScript class. How shall I fix this.
    Best Regards,

    Hi Mayank,
    Please find the further details below:
    Steps to Reproduce the bug:
    1. Create a Flex Project (say Test for example)
    2. Created a new ActionScript Class ABC.as within the Flex Project.
    on typing the following code (and even after saving it)
    package123 {
      public1234 class ABC {
      }blahblah123...
    Expeteded Behavior:
    ActionScript Editor should report an syntax errors with the following code.
    Present Beharvior
    no syntax error is detected. This is a regression in Flash Builder 4 as Flex Builder 3 detects ActionScript syntax error instantly (while typing).
    Best Regards

Maybe you are looking for

  • Subcontract goods receipt without components withdrawal.

    Hi, we're noticing many occurrences of this problem since we've upgrade to ECC 6.0. Too often we encounter GR of subcontracting PO's that doesn't consumed all components existing at the "Components Overview". Besides the common reasons for this (unti

  • Export markers from Final Cut Pro X to DVD Studio Pro

    Hello, After finding out how to create chapters via markers in Final Cut Pro we wonder how to export these markers to DVD Studio Pro without having to create ourselves a .txt file and writing the names and the times of the markers in it to export it

  • Timescale at the bottom of Gantt Chart

    Hi, In the old P3 application, we were able to put timescale at the bottom of Bars area, how can we do it with new P6.

  • Apex in an iframe - only allow access from specific parent page

    Hi, I have a simple, unauthenticated Apex 4 application which lets users enter search terms and return records using a classic report. I wish to publish the application within an iframe, so that my organisation's communications department can maintai

  • Unable to start UCM Idc server in linux 64-bit

    hi, we are faceing error's to start the UCM Idc server in linux 64-bit 1) error *WARNING:        Unable to start server at /oracle/ucm/server/.** **WARNING:          /usr/bin/env LDLIBRARY_PATH= /oracle/ucm/server/shared/os/linux64/bin/UnixProcCtrl e