Problem inserting Text

Hi,
Flex beginner, I have managed to connect my app to a database
which stores various newspaper articles. It's all working fine, I
can edit and save the articles. Except for one item where I get a
2032 error! It seems that the length of this article is causing the
error, as it's all working again when I reduce the size of the
item.
Apparently, the problem is not with Flex , which stores the
data in a custom event, the error seems to be returned by the
server...
As mentioned above, I'm still a beginner both with Flex and
Mysql :) Any help would be very much appreciated.
Best,
SB

Problem solved! I hadn't specify the method in the
HTTPService which resulted in a very long string being passed with
the GET method, after the change to POST, everything worked fine.

Similar Messages

  • Problem inserting text with special Hungarian characters into MySQL database

    When I insert text into my MySQL db the special Hungarian
    characters (ő,ű) they change into "?".
    When I check the
    <cfoutput>#FORM.special_character#</cfoutput> it gives
    me the correct text, things go wrong just when writing it into the
    db. My hosting provider said the following: "please try to
    evidently specify "latin2" charset with "latin2_hungarian_ci"
    collation when performing any operations with tables. It is
    supported by the server but not used by default." At my former
    hosting provider I had no such problem. Anyway how could I do what
    my hosting provider has suggested. I read a PHP related article
    that said use "SET NAMES latin2". How could I do such thing in
    ColdFusion? Any suggestion? Besides I've tried to use UTF8 and
    Latin2 character encoding both on my pages and in the db but with
    not much success.
    I've also read a French language message here in this forum
    that suggested to use:
    <cfscript>
    setEncoding("form", "utf-8");
    setEncoding("url", "utf-8");
    </cfscript>
    <cfcontent type="text/html; charset=utf-8">
    I' ve changed the utf-8 to latin2 and even to iso-8859-2 but
    didn't help.
    Thanks, Aron

    I read that it would be the most straightforward way to do
    everything in UTF-8 because it handles well special characters so
    I've tried to set up a simple testing environment. Besides I use CF
    MX7 and my hosting provider creates the dsn for me so I think the
    db driver is JDBC but not sure.
    1.) In Dreamweaver I created a page with UTF-8 encoding set
    the Unicode Normalization Form to "C" and checked the include
    unicode signature (BOM) checkbox. This created a page with the meta
    tag: <meta http-equiv="Content-Type" content="text/html;
    charset=utf-8" />. I've checked the HTTP header with an online
    utility at delorie.com and it gave me the following info:
    HTTP/1.1, Content-Type: text/html; charset=utf-8, Server:
    Microsoft-IIS/6.0
    2.) Then I put the following codes into the top of my page
    before everything:
    <cfprocessingdirective pageEncoding = "utf-8">
    <cfset setEncoding("URL", "utf-8")>
    <cfset setEncoding("FORM", "utf-8")>
    <cfcontent type="text/html; charset=utf-8">
    3.) I wrote some special Hungarian chars
    (<p>őű</p>) into the page and they displayed
    well all the time.
    4.) I've created a simple MySQL db (MySQL Community Edition
    5.0.27-community-nt) on my shared hosting server with phpMyAdmin
    with default charset of UTF-8 and choosing utf8_hungarian_ci as
    default collation. Then I creted a MyISAM table and the collation
    was automatically applied to my varchar field into wich I stored
    data with special chars. I've checked the properties of the MySQL
    server in MySQL-Front prog and found the following settings under
    the Variables tab: character_set_client: utf8,
    character_set_connection: utf8, character_set_database: latin1,
    character_set_results: utf8, character_set_server: latin1,
    character_set_system: utf8, collation_connection: utf8_general_ci,
    collation_database: latin1_swedish_ci, collation_server:
    latin1_swedish_ci.
    5.) I wrote a simple insert form into my page and tried it
    using both the content of the form field and a hardcoded string
    value and even tried to read back the value of the
    #FORM.special_char# variable. In each cases the special Hungarian
    chars changed to "q" or "p" letters.
    Can anybody see something wrong in the above mentioned or
    have an idea to test something else?
    I am thinking about to try this same page against a db on my
    other hosting providers MySQL server.
    Here is the to the form:
    http://209.85.117.174/pages/proba/chartest/utf8_1/form.cfm
    Thanks, Aron

  • Problem on inserting text from file to a clob column

    Hi! I'm having problem in inserting text read from a text file to a clob column in my table.
    Here's my code
    public void addSyllabusOutline(int syllid)
              CLOB objclob1 = null;
              CLOB objclob2 = null;
              String query = "SELECT outline, projoutline FROM Syllabus WHERE syllabusid = '"+ syllid +"' FOR UPDATE";
              try
                   System.out.print("Getting syllabus outline and projoutline clob locator...");
                   DBConnection dbconnbean = new DBConnection();
                   dbconnbean.openConnection();
                   ResultSet rst = dbconnbean.executeQuery(query);
                   if(rst.next())
                        objclob1 = (oracle.sql.CLOB)rst.getClob("outline");
                        objclob2 = (oracle.sql.CLOB)rst.getClob("projoutline");
                        Writer clobwriter1 = ((oracle.sql.CLOB)objclob1).getCharacterOutputStream();
                        String filename1 = "c:\\o1u2t3l4i5n6e7.txt";
                        File outlinefile1 = new File(filename1);
                        FileReader outlineFileReader1 = new FileReader(outlinefile1);
                        char[] cbuffer1 = new char[10 * 1024];
                        int nread1 = 0;
                        while((nread1 = outlineFileReader1.read(cbuffer1)) != -1)
                             clobwriter1.write(cbuffer1, 0, nread1);
                        //clobwriter1.flush();
                        clobwriter1.close();
                        Writer clobwriter2 = ((oracle.sql.CLOB)objclob2).getCharacterOutputStream();
                        String filename2 = "c:\\p1r2o3j4o5u6t7l8i9n0e.txt";
                        File outlinefile2 = new File(filename2);
                        FileReader outlineFileReader2 = new FileReader(outlinefile2);
                        char[] cbuffer2 = new char[10 * 1024];
                        int nread2 = 0;
                        while((nread2 = outlineFileReader2.read(cbuffer2)) != -1)
                             clobwriter2.write(cbuffer2, 0, nread2);
                        //clobwriter2.flush();
                        clobwriter2.close();
                   System.out.println("done");
                   dbconnbean.closeConnection();
              catch(Exception e)
                   System.out.println("Error: " + e);
    My error is java.sql.SQLException fetch out of sequence. I don't have an Idea on what seems to be the problem. Please help.. Thank you very much. ^_^

    Hi,
    Print the whole stack trace. It will tell you the line which causes the error. How you use clob and blob in oracle is also version dependent. Try to google for
    oracle "your version" java clob example.
    /Kaj

  • Cant insert Text into a TextBox. (Confusing Problem, CS6)

    Hello forum members!
    Just got the trial today and I am trying to insert text into a document. I press "T" and drag a box for a textbox. I then double-click inside that box to type something, and whatever I type absolutely NOTHING appears. It just blinks and nothing is actually typed inside the box.
    This is really frustrating. I have only just started and have one document that is fresh, so my question is what is the problem here?
    Thanks in advance,
    Shane Stocks

    Could you elaborate on that a little? I have taken a screenshot of my screen to show you how everything is. I have not touched any settings and have literally downloaded the trial about an hour ago.
    I do this. Click on the T, drag a box, then start typing. When I type, the icon does not move, and for some reason it seems what I am typing renames the layer tab. Please view the image, everything is there.
    Thanks again,
    P.S. The text-box does dissapear when the icon changes into a text icon, and the image above is me typing random things. Nothing appears.

  • Problem with text formatting

    I am new to RoboHelp and I am trying to write some more text in an existing project in design view. I use Track Changes and have set the text to be Times New Roman 12pt. When I made a line italic it turned into Arial. I tried to change it to Times once again by selecting the text to format and then choose Format/ Font/ Times New Roman but it won´t change, it is still Arial. Earlier in the text I managed to make a line italic and Times New Roman.
    Anyone who knows what to do?
    (I use RoboHelp 10 with Windows 7 Professional.)

    Thanks for input!
    Yes, I think it was an inline style I made.
    I managed to get the text as I wanted to by deleting it, then I choose a style from the ‘Styles and Formatting’ pod that matched and retyped the text. (To me it seems strange to have to do this. I thought that I could change an inline style by highlighting the text and choose the font I want it to bee from the ‘Formatting’ toolbar.)
    Now I have another (but similar) text formatting problem:
    I copy a text that has style set to Normal. When I insert the text (on a line with style Normal) the font changes from Times New Roman to Arial. The inserted text still has the style Normal. I have in the ‘Styles and Formatting’ pod checked that Normal still has Times New Roman by opening the ‘Styles’ window. (I still have ‘Track Changes’ turned on.)

  • Script to find a specific section in file & insert text below - how?

    I am dealing with kind of a problem here - I am using pekwm as my window manager and I use menumaker to automatically update the menu on every startup. My problem is that the original pekwm, the first two sections called 'terminal' and 'Run' and the last two sections called 'Go To' and 'pekwm' are overwritten/modified by mmaker so that there's only the applications submenues and  'pekwm' with the 'Themes' section erased and I want to somehow preserve all that. I was thinking of creating a bash script that does the mmaker thing and then use 'sed' or 'echo' to insert the code back into the appropiate areas of ~/.pekwm/menu.
    All I really need to know is how to find a particular string of code in the menu file and insert a block of text below that line using sed or echo.
    Any ideas?
    Last edited by lostinpurdy (2010-07-10 02:32:38)

    Looks interesting. But I'd like to keep it as simple as possible and avoid the part with the extra textfiles and just insert the code text straight into the menu file, kind of like this:
    mmaker --no-desktop -vf pekwm
    sed {
            find-and-goto-line-below-'root menu'-declaration, insert-text {
                                                                                                           entry for 'terminal'
                                                                                                           entry for 'run"
           ~/.pekwm/menu
    sed {
             find-line-below-'pekwm'-submenu-declaration, insert-text {
                                                                                                       entry for 'themes'
           ~/.pekwm/menu
    Obviously it's not real code but it's just to outline how I'd like to have it. Just need to know the correct syntax to make it work. I don't care much for 'Go To' and the rest.
    Last edited by lostinpurdy (2010-07-10 03:48:10)

  • Problems Aligning Text in Headers and Footers

    I have tried to add headers and footers to documents and the  alignment is wrong.  The center footer/header should be center-aligned  and the right header/footer should be right-aligned.  Unfortunately,  they are both left-aligned.
    The preview shows the headers and footers aligned correctly, but when  the headers/footers are inserted in the document, the alignment reverts  to left aligned, although it is centered and on the right side of the  page, as appropriate.
    This is not a problem in Acrobat 7.
    Please advise if this is a bug and is awaiting an update, or if there is  something that I need to do to fix this problem.
    This is a screen shot of the preview windowindicating the proper alignment as indicated in the ovals:
    Here is the actual document once the header and footer are added.  Notice how the alignment switches to flush left:
    Any guidance is appreciated.
    Thanks.
    - James

    Nope.  The good folks at Adobe have neither addressed this issue (and I have
    heard from others that it is a problem for them as well) nor have they been
    very good about maintaining my account to be able to log in and follow up on
    it.
    The truth of the matter is that it appears to be a glitch in some, but not
    all, versions of this product and clearly it is not a big enough problem for
    them to want to fix it.
    I wind up using Acrobat 7 when I need properly formatted headers and footers
    or ‹ and this ought to get the attention of the folks at Adobe and maybe
    prompt someone (anyone!) to take a look and fix this glitch ‹ you should
    check out PDFPen.  It does much of what Adobe can do including headers and
    footers.
    If I didn't already have Acrobat 7 (and 8 and now 9), I would ditch Acrobat
    and just use Preview or PDFPen.
    - James
    From:  superfluities1 <[email protected]>
    Reply-To:  <[email protected]>
    Date:  Tue, 04 Jan 2011 12:11:19 -0700
    To:  "James A. Sarna, Esq." <[email protected]>
    Subject:  Problems Aligning Text in Headers and Footers
    Anybody ever solve this problem? I just started using(trying too, that is)
    Acrobat Pro for writing letters and starting at the top I ran right into
    this problem. Seems like a deal killer.

  • JDBC + SERVLET: inserting text data  to access file from Html form

    Hi everybody !
    I'm trying to insert text data from my html form to access database using servlet and jdbc technologies.
    The problem that I'm that the data is TEXT, but not the English language !!!
    So my access db file gets - ???????? symbols instead the real text.
    This is the form line that sending data to my servlet:
    <form
    method="POST"
    ACTION=http://localhost:8080/servlet/myServlet enctype="text/html">
    And this is servlet line that defines response content:
    res.setContentType( "text/html" );
    What can I do to get in access db file the right text format and not a ???????? symbols.
    Maybe I must to ad some <meta ...> , but where ?

    You're dealing with Unicode, I'd guess, and not ASCII.
    I guess I'd have two questions:
    (1) Is the character encoding on your pages set properly for the language you're trying to use?
    (2) Does Access handle Unicode characters?
    Access isn't exacly a world-class database. (If it was, there'd be no reason for M$ to develop SQL Server.) I'd find out if it supports other character sets. If not, you'll have to switch to a more capable database that does. - MOD

  • Inserting text in iphoto

    As a windows switcher, I'm just starting to use the ilife suite. I made a slideshow using iphoto and inserted text. The problem is that the text is in a very small font and in the upper left hand corner of the slide. I can't figure out how to move the text to the bottom of the screen, increase the size and change the color to yellow. Is this possible in iphoto? Other than this, I am thrilled to have a new apple computer.

    Don,
    If you had an album that you made into a slideshow, find the album in the photo media browser in iMovie and drag the photos into the timeline.
    Now highlight each image and click on the title tab. Find the right title that is static and places the title where you want. I am not sure if there are any included titles that fit your need, but there are plenty of plugins that will have the title the way you want.
    The only problem is, iPhoto titles are not autofilled in the title field so you will have to input the text. It will take longer I know.
    After you add the titles, then you can add the Ken Burns, then transitions.
    You will really have to experiment to get it the way you want.
    good luck!
    Lori

  • JEditorPane insert text at caret?

    Does anyone know how to insert text at the current position of the caret in a JEditorPane?
    Additionally, is there a way to insert text before and after a specific selection within a JEditorPane?
    Am I using the right object for these types of purposes, or is there another Swing component that would be better suited?

    I found my answer in: [http://forums.sun.com/thread.jspa?forumID=57&threadID=5264416]
                   public boolean insertHTML(InEditorPane textAreaPane, String text, int offset) {
              HTMLDocument doc = (HTMLDocument) textAreaPane.getDocument();
              HTMLEditorKit kit = (HTMLEditorKit) textAreaPane.getEditorKit();
              boolean res = true;
              try {
                   // kit.insertHTML(doc, offset, text, 0, 0, null);
                   System.out.println("reading from string reader");
                   kit.read(new StringReader(text), doc, offset);
                   System.out.println(textAreaPane.getText());
              } catch (Exception e) {
                   System.out.println("error inserting html: " + e);
                   res = false;
              return res;
         }           But now I have kind of the oposite problem: when I type text in the panel, new lines are saved as '\n' instead of "<br>", so when I save the text and show it again I get one long line...

  • ORA-01461 when trying to insert text 4000 characters into a CLOB column

    I work on a Windows application that connects to databases using ODBC. I'm currently working on adding Oracle support to the application, but I'm running into a lot of problems inserting strings of more than 4000 characters into CLOB columns. First, I tried to do that directly using code similar to the following (setup, cleanup, and error checking snipped for clarity).
    SQLHDBC hDbc;
    SQLHSTMT hStmt;
    unsigned char query[200];
    SQLAllocStmt(hDbc, &hStmt);
    strcpy(query,"INSERT INTO test_table (col_clob, col_int) ('long string', 1)");
    SQLExecDirect(hStmt,query,strlen(query));
    Of course, "long string" was really a string of more than 4000 characters. When I did that, I got an error indicating that I needed to use bind parameters for strings that long. However, bind parameters don't seem to work either. I changed my code to something like the following:
    SQLHDBC hDbc;
    SQLHSTMT hStmt;
    unsigned char query[200];
    +unsigned char *str=NULL;+
    int str_size;
    SQLAllocStmt(hDbc, &hStmt);
    strcpy(query,"INSERT INTO test_table (col_clob, col_int) (:strvar, 1)");
    SQLPrepare(hStmt,query,SQL_NTS);
    str = (unsigned char*)malloc(6000 * sizeof(unsigned char));
    SQLBindParameter(hStmt, 1, SQL_PARAM_INPUT, SQL_C_CHAR, SQL_VARBINARY, 0, 0, str, sizeof(str), &str_size);
    strcpy(str,'long_string');
    str_size = SQL_NTS;
    SQLExecute(hStmt);
    This code works fine when 'long_string' is less than 4000 characters. When it's greater than that, I get the following error:
    +[Oracle][ODBC][Ora]ORA-01461: can bind a LONG value only for insert into a LONG column+
    I'm using Visual Studio.NET 2003 on Windows XP, and Oracle client 11.1.0.6.0. My server version is as follows:
    SQL> select * from v$version;
    BANNER
    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Product
    PL/SQL Release 10.2.0.1.0 - Production
    CORE    10.2.0.1.0      Production
    TNS for Linux: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production
    I thought I read somewhere that this is a known bug with Oracle 10.2.0.1.0, but I can't seem to find the reference now. Can anyone confirm this or provide some assistance with this problem? Frankly, it seems kind of ridiculous that I can't do something as simple as inserting a reasonably sized amount of text into a CLOB column. I'm considering using BFILEs instead, but that would be kind of a pain to fit into our application, so I'd prefer not to do this if at all possible.
    Thanks in advance for any help.

    I found this link referring to a similar problem that was apparently fixed in version 10.2.0.4 of the server: ORA-01461: can bind a LONG value only for insert into a LONG column Should I try to upgrade the server and see if that fixes things?

  • Can't insert text into web page plus script error message

    I'm using CS3 and, on a fairly regular basis, when I am either pasting or inserting content (usually a newsletter of 500-1000 words), I get a message saying something like I can't insert text in this area. I definitely can insert text in the area as I have done it tons of times before. I sometimes have to cut and past a doc line by line to get it to insert. Very frustrating!
    Also, just recently, I've been getting a script error message, "An error has occurred in the script of this page" followed by Line: 992, Char: 106, Error: Unterminated String Constant, followed by the question: Do you want to continue running scripts on this page? I click Yes and everything seems to work fine.
    Help on either would be appreciated.
    Thanks in advance.

    You might want to make sure you are trying to copy plain text. It's possible that if you are copying from a Word document or another Web site that you are bringing along extra unseen code it doesn't like.  Try copying into Notepad first and then copying from Notepad into Contribute.  Not sure if that's the problem or not, but that's what came to my head first.
    I used to get an error that sounds similar (however it's not reproducing the error for me right now) to your error.  It was because some of my users had javascript menus on their page that Contribute didn't like.  However, if worked fine when you clicked yes and it was fine once it was published.   So if you are running a script that's probably why and I wouldn't worry too much about it as long as you can continue working and the page displays to your users correctly once published.  It's just annoying.
    Hope that helps.  Good luck.

  • Can't use all annotate actions in Preview-it's a PDF of a web screen shot. No highlight, underline, etc; can insert text, boxes, notes.

    I can't use all the annotate actions in Preview. It's web screen shot saved as a PDF. No highlight, underline, or strikethough text but I can insert text, boxes, notes. On other forums this problem was solved by saving as a PDF which I have done. Any other solutions?

    I don't think PDF is the way to do it, but if it was you'd need something like Adobe Acrobat Professional.
    >I'm updating the content and copy for a website and thought the easiest way would be marking up a PDF of the webpages including highlighting text to be removed, etc.
    As far as Text changes, I thing the actual Source would maybe be the way to go, but you could always turn the PDF into a jpg or such, then use a Graphics program to poit out things...

  • Inserting text - final cut express

    New user. sorry. how do i insert text????? i went to apple support site, and it tells me how to CHANGE text, but not how to insert it.
    Also, having trouble getting audio to play on my timeline. On line support talks about changing firewire but cannot find how to do this.

    To add a text clip, whether by itself, or on top of other clips, you have just to generate a new clip using the generators Text/Text or Boris/Text 3D. To add a generator you may use the small popup menu with a small "A" at the bottom right of the Video tab in the viewer. After the generator is ready in the viewer you have to drag it to your movie in the timeline.
    About the audio problem you must provide more info about your sequence setup, what kind of capture you made (from what camera, with which format) etc. The firewire suggestion from Apple support might refer to the fact that if you use an external disk drive for video media, you should use firewire drives in place of USB drives. And that's correct.
    But without further info it's difficult to give hints.
    Piero

  • Problem with text determination procedure

    here we r finding text determinations procedures for purchase order in spro - img conflagration as follows materialmanagement-purchasing-messages-text for messages-define text for po.by going here i had a view where both header and item text for different po is maintained.
    now i want this text to be printed in my purchase order every time with different item selected there should be different item text should be selected.
    1. the major problem when inserting into medruck form as  insert-text-standard text, here it selecting the text object as TEXT BUT FOR DIFFERENT MATERIALS IT SHOULD SELECT MATERIAL as text object then only i can retrieve the material text's.
    if any one can forward a document r help to solve this problem and solution suggestions.
    this is a very important requirement.pls forward it as early as possible,
    thanx with regards...
    hareesh tadepalli

    Raj,
    Thanks for your suggestion.  This would be a possiblity going forward, but we have existing tickets that would still be missing the interaction text.  This apparently worked before we upgraded to SP 14, so I don't think there is a problem with our configuration.
    I created some new test tickets, and found that the interaction text is still being copied and saved in the ticket log, even after text is added to the ticket.  The problem is that the interaction text is not visible from IC Web.  It is visible when looking at the ticket in the SAP GUI (transaction CRMD_ORDER).
    For example, here is the contents of the Log text as seen in SAP GUI (I use "TICKET" or "INTERACTION" in the text to indicate where the text originated):
    General Note
    06/03/2009          11:14:36            M305755
    TICKET - general note
    General Note
    06/03/2009          11:13:59            M305755
    INTERACTION - general note
    Technical Problem
    06/03/2009          11:13:59            M305755
    INTERACTION - technical problem
    Here is the contents of the Log text as seen in IC Web:
    General Note
    06/03/2009          11:14:36            M305755
    TICKET - general note
    Martin

Maybe you are looking for

  • DID YOU KNOW?: Debugging with BC4J Tester

    Did you know that in JDeveloper 3.2, you can run the BC4J tester in debug mode to exercise your business components and hit breakpoints at the same time? Just do the following: [list] [*]Expand the navigator node for your Application Module, revealin

  • Can you tell me how to measure audio signal frequency in measurement studio with visual basic 6.0?

    I'd like to measure two differential input signal(I.e. A+ and A-),below is two test projects, 1.connect A+/A- to PCI 6052E card's ACH0/ACH8 ,and refer to GND for testing 2.connect respectively A+/A- to PCI 6052E card's ACH0/ACH8 for testing Could you

  • Can't delete songs from playlists

    While transferring my library to a new computer, songs were put into the wrong playlists. In trying to correct this, I find that itunes won't allow me to delete any songs from existing playlists. Nothing happens when you hit the delete button and del

  • Moving iTunes media files to external drive broke connection

    I recently moved my iTunes media files to an external drive.  All other iTunes related files were left in my home folder.  Everything worked great for about a month.  Then, mysteriously, I went to access a movie and it said that it could not be found

  • Regd - Spool request

    Dear all, I have a requirement, to download the list output in PDF format. I am using the following code. This program converts the list output into spool request. But the problem is it is having number of pages is 0(We can see in SP01). Could you pl