When does this kind of error come in RTF Editors?

Hi All
I am writing an applet based text editor, based on RTF Editorkit, i have got this pecular error when doing executing this statement.
rtf.read(fileInputStream1,ep.getDocument(),0)
Where rtf is my RTFEditorKit instance.
ep is my JTextPane
and fileInputStream1 is the fileInputStream which i am using
The above line of code threw me an IOException saying the below
'Too many close-groups in RTF text'
I am unable to understand what could be the source of this error, or may be what will trigger this particular error.
Please help
Swaraj

This happen if u got more closing braces than opening braces in your rtf.. RTFeditor Kit calculate level base on braces

Similar Messages

  • Automatic page updates causing problems with your screen reader? this kind of message come when i access yahoo mail.yahoo mail page not come properly.

    Automatic page updates causing problems with your screen reader? this kind of message come when i access yahoo mail.yahoo mail page not come properly.i can't chat,compose mail nothing accessing.

    Try Refresh Blocker: https://addons.mozilla.org/firefox/addon/992

  • I have an apple iphone 4 that I want to download audio books from my library onto it.  I cannot figure out how to do that.  The iphone does not show up on my mac laptop as a connected device.  Does this kind of download have to run through itunes?  Thanks

    I have an apple iphone 4 that I want to download audio books from my library onto.  I cannot figure out how to do that.  The iphone does not show up on my mac laptop as a connected device.  Does this kind of download have to run through itunes?  Thanks

    Yes it is done through iTunes. The iPhone will never show up in Finder as a device. The following is general information on iTunes sync: http://support.apple.com/kb/HT1386 and the following is a previous discussion where the post by Andreas Junge helped others that had a problem syncing audiobooks: https://discussions.apple.com/message/20052732#20052732

  • Can someone please help. I have a really old MacBook that is running really slow. I want to wipe everything and reinstall the latest software but don't know how to do this. Also is there a way of keeping Microsoft Office when doing this? Thanks in advance

    Can someone please help. I have a really old MacBook that is running really slow. I want to wipe everything and reinstall the latest software but don't know how to do this. Also is there a way of keeping Microsoft Office when doing this? Thanks in advance

    You do realise that wiping the disk means that everything on the disk is erased. Everything. Photos, music, emails, ...
    So the first piece of advice is to make sure you have a back up of everything.
    You need the OS disk to reintsall the operating system. You will use that disk first to erase the drive, then to reinstall the OS.
    Here's the link for the US.  http://store.apple.com/us/product/MC573/mac-os-x-106-snow-leopard
    As for MS Office, you will need the original disk that it came on to reinstall it.

  • When downloading this update an error occurred. Close the process and try you later again it.

    I have Apple iMac and OS X 10.10.1 - Yosemite and Photoshop CS 5
    Update from Bridge CSS 4.0.5; Photoshop 12.0.4 for Photoshop CS 5; Camera RAW 6.7-Update; Update for Extension Manager CS5 5.0.
    I have this error for one year:
    When downloading this update an error occurred. Close the process and try you later again it.
    And with Mac OS Yosemite the printer menu does not fall. Does not function to printing any longer

    Hi @artem98765,
    Welcome to the HP Forums!
    It is a terrific place to find answers and suggestions.
    For you to have the best experience in the HP forum I would like to direct your attention to the HP Forums Guide Learn How to Post and More
    I grasp that when you tried to do a recovery back to factory you received the error incomplete recovery.
    As you did not state if how you were doing the recovery I will include documentation for the process along with a troubleshooting document.
    HP PCs - Performing an HP system recovery (Windows 8)
    HP PCs - Troubleshooting HP System Recovery Problems (Windows 8)
    If you are still unable to complete the recovery please contact HP support for further assistance.
    Please call our technical support at 800 474 6836. If you live outside the US/Canada Region, please click the link below to get a support number for your region.
    World Wide Phone Support
    Good Luck!
    Sparkles1
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the bottom right to say “Thanks” for helping!

  • I started downloading ios 6 with iTunes. And at the end of the download , some kind of error comes with a pop up box  and a RED cross mark in it saying some error occurred and asking to disconnect and reconnect again and to check the internet is active?

    i started downloading ios 6 with iTunes with latest version of 10.7 for my iphone 4s running ios 5.1.1. And at the end of the download , some kind of error comes with a pop up box  and a RED cross mark in it saying some error occurred and asking to disconnect and reconnect again and to check the internet is active? and then nothing happens and when i disconnect and reconnect again, the same error comes and the same thing happens. what should i do now to install ios 6?

    Are you running any Firewalls or Anti-Virus software? If so, disable all of that stuff & try again.

  • HT4859 does anyone have any idea how one can keep their data on iPad after leaving icloud as it appears that you loose all data when doing this...its killing me!!!

    does anyone have any idea how one can keep their data on iPad after leaving icloud as it appears that you loose all data when doing this...its killing me!!!

    rtilghman wrote:
    telling me to buy a new router is NOT a solution.
    And why not? Apple is selling these things like BigMacs. They can't make enough of them. You've been suffering since May because you refuse to get a decent router.
    Can you imagine if a company that makes a refrigerator told me that I needed to upgrade my electrical system to rectify a problem with their device? What kind of response IS that?!?!
    What if the problem with their device is that it requires a new-fangled "grounded" outlet and your circa 1890 house doesn't have grounded outlets. Would you refuse to purchase a $ 25 adapter on principle?

  • HR triggers in GRC CUP.. How and when does this work

    Dear Experts,
    I would really appreciate if some one could shed some light on how HR triggers work in GRC CUP ?
    When does this get triggered ?
    Is it when the the user master record is saved or when the Info type 105 is linked ? Are there any pre-requisities that should be taken care from the Hr perspective so that I can set the expectations accordignly with HR team ?
    P.S I already went through the article " How to configure HR triggers with GRC CUP ?
    Thanks
    Kumar

    I configured HR trigger rule for infotype 0000 & subtype Z1,field MASSN with value equal to 01 to trigger new hire...i don't see any data being populated into table /VIRSA/INT_TRIG & ?VIRSA/DATA.
    I could see the rule in table /VIRSA/RULEATTR.
    Any help would be appreciated.
    Thanks,
    Srinu

  • Why does this throw an error?

    just trying to modify an element value here...
    declare
    v_xml_new xmltype;
    doc dbms_xmldom.DOMDocument;
    ndoc dbms_xmldom.DOMNode;
    node dbms_xmldom.DOMNode;
    childnode dbms_xmldom.DOMNode;
    nodelist dbms_xmldom.DOMNodelist;
    docelem dbms_xmldom.DOMElement;
    buffer ta_debug_log.message%type;
    begin
    v_xml_return.schemaValidate;
    ta_debug.writeDebug('DEBUG: xml instance validated '||C_PROCEDURE_NAME||'.');
    exception
    when others then
    -- failed validation
    ta_system.writeSystem('ERROR: xml instance message failed schema validation '||C_PROCEDURE_NAME||'.');
    -- return a new wellformed instance
    ta_debug.writeDebug('DEBUG: creating new empty instance '||C_PROCEDURE_NAME||'.');
    v_xml_new := xmltype.createXML(xmldata => rm_xml_survey_maintenance.C_EMPTY_SURVEY_XML_INST,
    schema => rm_xml_survey_maintenance.C_SURVEY_SCHEMA_NAME);
    ta_debug.writeDebug('DEBUG: creating dom reference '||C_PROCEDURE_NAME||'.');
    doc := dbms_xmldom.newDOMDocument(v_xml_new);
    -- attempt to populate return xml instance with source info
    ta_debug.writeDebug('DEBUG: attempting to acquire and populate source info '||C_PROCEDURE_NAME||'.');
    ta_debug.writeDebug('DEBUG: source information requesterID is '||
    ta_xml_utils.xml_extract_no_exception(v_xml_return, '/SurveyRequest/messageSource/requesterID/text()')||' '||C_PROCEDURE_NAME||'.');
    docelem := dbms_xmldom.getDocumentElement(doc);
    nodelist := dbms_xmldom.getElementsByTagName(docelem, 'requesterID');
    node := dbms_xmldom.item(nodelist, 0);
    childnode := dbms_xmldom.getFirstChild(node);
    the last line causes the code the throw:
    ERROR: SQLCODE = -31020 SQLERRM = ORA-31020: The operation is not allowed,
    Reason: Invalid pl/sql DOM Node hdl
    ORA-31154: invalid XML
    (rm_xml_survey_maintenance.create_cad_plan_pair).
    this code is operating after an xmltype fails to validate. would this be the cause?
    are there any simpler methods using pl/sql, the xmltype and xpath to modify contents of an xmltype instance?
    any advice most appreciated.

    I can't answer the better/simpler method part of the question, other than to say there is an UpdateXML function but it works only from within the scope of a SQL statement. Not sure whether you'd want to make a SQL call just to do something to your XMLType that exists only in PL/SQL.
    In regard to your current error, I can only say the following script does not produce an error. If you can develop a test case/script that reproduces the error that would be helpful. You may even uncover the error at that point. Have you confirmed the contents of v_xml_new and if on 10g used DBMS_UTILITY.Format_Error_Backtrace to verify the line that threw the error?
    declare
       v_xml_new xmltype;
       doc       dbms_xmldom.domdocument;
       nodelist  dbms_xmldom.domnodelist;
       node      dbms_xmldom.domnode;
       childnode dbms_xmldom.domnode;
    begin
      v_xml_new := XMLTYPE(
      '<?xml version="1.0" encoding="UTF-8"?>' ||
      '<SurveyRequest>' ||
       '<messageSource>' ||
        '<requesterID>U571</requesterID>' ||
       '</messageSource>' ||
      '</SurveyRequest>'
      doc := dbms_xmldom.newdomdocument(v_xml_new);
      nodelist  := dbms_xmldom.getelementsbytagname(doc, 'requesterID');
      node      := dbms_xmldom.item(nodelist, 0);
      childnode := dbms_xmldom.getfirstchild(node);
    end;

  • When does this gets trigerred CRM_MKTTG_SEG_MEM_EX

    Hi All,
        I want to check when does the BADI gets triggered CRM_MKTTG_SEG_MEM_EX , i have implemented this BADI and put up a break point but didnt actually start when i did Right click on target group -> target group follow up proc. ->  Export in File.
       Any one worked on the similar lines?
    Thanks in Advance
    Regards,
    Kishore Yerra.

    Kishore,
    Perhaps the SAP help is wrong.  The underlying function module to export a target group is:
    CRM_MKTTGGRP_SEND_TO_CHANNEL.  If you see this BADI called in this function module then you can use it, otherwise try using the other BADI that I have mentioned before.
    I don't know know what to tell you at this point.  The cod for this looks pretty simple. the method IF_EX_CRM_MKTTG_SEG_MEMBER_EX~GET_TG_MEMBER_STRUCTURE .
    looks like:
       check flt_val eq '05'.
       ev_members_structure = 'ZSMS_MKT_BUPA'.
       ev_members_field_guid = 'PARTNER'.
    As far as the other method SELECT_TG_MEMBER_DETAILS I just coded routines to fill in the data into the field for the structure.
    Good luck,
    Stephen

  • When does the ASUS Transformer Prime come back in stock?

    I returned my Asus Eee Pad Transformer last night. I went to the tablet section at the store, the assclown who helped me was not only worthless, but rude. He more or less just told me, "No, we don't have it." He had no information regarding when they'd get more in stock, I asked to talk to his manager, and he said he didn't have one. I am happy that my girlfriend got this for me for Christmas, but am annoyed that she bought it at Bestbuy, as you can expect the worst customer service when walking into one of these stores. I tried to get 'cash back' when I returned it, but I had to get a giftcard which means I have to deal with this awful company until I get the product I want. So, when will this be back in stock?
    Thanks,

    I agree that the associates in the store are just as in the dark as we are on these sorts of issues.  One went so far as to just simply show me the screen that they have access to and the paucity of information was a little disturbing.
    Anyway, I guess I'm a little weary of waiting and a little frustrated too.  I cannot begin to imagine the infrastructure of a company as large as BB and how they handle their supply lines.  All I ask for is transparency.  Somewhere, at some level of the chain, there's this information:
    1) How many pre-orders are left to fill
    2) How many do we need to ship to each store
    3) How many we expect to get from the manufacturer 
    A simple statement of "We have X number of orders to fill and Asus has promised us X units by this date" would go a long way to help me gauge and understand where I am in this mess.  The alternative just seems chaotic by comparison: "We don't know how many orders have been placed, we don't know when we're going to get them, and those that we do have are out on trucks headed to stores/customers but we can't track them."
    I'm over simplifying this, but I would feel a lot better if I could just have a little bit more information.  The demand has outstripped the supply and this certainly isn't something that will get fixed overnight; I just want to know if I should hold my breath for a couple of weeks or a couple of months.

  • I Have to post data to Odata webservice. In this post I need to pass token header also. I got token value now I have to try to pass Token Header value and Data also but when i do this I'm getting this kind of ERROR: Stream was not readable

      try
                    byte[] auth = Encoding.UTF8.GetBytes("mobtest" + ":" + "welcome1");
                    HttpWebRequest request = (HttpWebRequest)WebRequest.Create("http://Server:8000/sap/opu/odata/sap/ZCUST_TESTING_SRV/post_cust");
                    //byte[] byteArray = Encoding.UTF8.GetBytes(postXml);
                    byte[] byteArray = Encoding.ASCII.GetBytes(jsonnew);
                    request.Credentials = new NetworkCredential("mobtest","welcome1");
                    request.ContentType = "application/atom+xml";
                    request.Method = "GET";
                    //request.Headers["Authorization"] = "Basic " + System.Convert.ToBase64String(auth);
                    request.Headers["X-CSRF-Token"] = "Fetch";
                    HttpWebResponse responseH = (HttpWebResponse)request.GetResponse();
                    xToken = responseH.Headers["X-CSRF-Token"];
                    Console.WriteLine("xToken : " + xToken.ToString());
                    responseH.Close();
                    try
                        HttpWebRequest request_post = (HttpWebRequest)WebRequest.Create("http://Server:8000/sap/opu/odata/sap/ZCUST_TESTING_SRV/post_cust");
                        request_post.Credentials = new NetworkCredential("mobtest", "welcome1");
                        request_post.Method = "POST";
                        request_post.Headers["X-CSRF-Token"] = xToken;
                        Console.WriteLine("xToken POST : " + xToken.ToString());
                        request_post.ContentType = "application/json";
                        request_post.Accept = "application/json";
                        request_post.ContentLength = byteArray.Length;
                        Stream dataStream1 = request_post.GetRequestStream();
                        dataStream1.Write(byteArray, 0, byteArray.Length);
                        Console.WriteLine("byteArray : "+byteArray);
                        dataStream1.Close();
                        Console.WriteLine("datastream1");
                        HttpWebResponse response1 = (HttpWebResponse)request.GetResponse();
                        Console.WriteLine("Post response : " + response1.ToString());
                        dataStream1 = response1.GetResponseStream();
                        StreamReader reader1 = new StreamReader(dataStream1);
                        Console.WriteLine("  Console.WriteLine(reader1 : " + reader1);
                        string responseFromServer1 = reader1.ReadToEnd();
                        Console.WriteLine("  Console.WriteLine(responseFromServer1 : " + responseFromServer1);
                        Console.Read();
                        reader1.Close();
                        dataStream1.Close();
                        response1.Close();
                    catch(Exception exp)
                        MessageBox.Show("Post Error : "+exp.Message);
                catch(Exception ex)
                    MessageBox.Show("Error : "+ex.Message);

    Hi Ashwin,
                      That is C# windows application below i mention the XML data and Code also.
    string postXml = @"<?xml version='1.0' encoding='UTF-8'?>"+
    "<entry xml:base='http://serverip:8000/sap/opu/odata/sap/ZCUST_TESTING_SRV/'\n"+"xmlns='http://www.w3.org/2005/Atom'"+
    "xmlns:m='http://schemas.microsoft.com/ado/2007/08/dataservices/metadata'"+
    "xmlns:d='http://schemas.microsoft.com/ado/2007/08/dataservices'>"+
    "<content type='application/xml'>"+
    "<m:properties>"+
    "<d:Kunnr>800DUR298</d:Kunnr>" +
    "<d:Land1>avi</d:Land1>" +
    "<d:Name1>dur</d:Name1>" +
    "<d:Name2>ven</d:Name2>" +
    "<d:Ort01>chennai</d:Ort01>" +
    "<d:Pstlz>500060</d:Pstlz>" +
    "<d:EStatus>X</d:EStatus>"+
    "</m:properties>"+
    " </content>"+
    " </entry>";
      try
                    byte[] auth = Encoding.UTF8.GetBytes("mobtest" + ":" + "welcome1");
                    HttpWebRequest request = (HttpWebRequest)WebRequest.Create("http://Server:8000/sap/opu/odata/sap/ZCUST_TESTING_SRV/post_cust");
                    byte[] byteArray = Encoding.UTF8.GetBytes(postXml);
                    request.Credentials = new NetworkCredential("mobtest","welcome1");
                    request.ContentType = "application/xml";
                    request.Method = "GET";
                    request.Headers["X-CSRF-Token"] = "Fetch";
                    HttpWebResponse responseH = (HttpWebResponse)request.GetResponse();
                    xToken = responseH.Headers["X-CSRF-Token"];
                    Console.WriteLine("xToken : " + xToken.ToString());
                    responseH.Close();
                    try
                        HttpWebRequest request_post = (HttpWebRequest)WebRequest.Create("http://Server:8000/sap/opu/odata/sap/ZCUST_TESTING_SRV/post_cust");
                        request_post.Credentials = new NetworkCredential("mobtest", "welcome1");
                        request_post.Method = "POST";
                        request_post.Headers["X-CSRF-Token"] = xToken;
                        Console.WriteLine("xToken POST : " + xToken.ToString());
                        request_post.ContentType = "application/xml";
                        request_post.Accept = "application/xml";
                        request_post.ContentLength = byteArray.Length;
                        Stream dataStream1 = request_post.GetRequestStream();
                        dataStream1.Write(byteArray, 0, byteArray.Length);
                        Console.WriteLine("byteArray : "+byteArray);
                        dataStream1.Close();
                        Console.WriteLine("datastream1");
                        HttpWebResponse response1 = (HttpWebResponse)request.GetResponse();
                        Console.WriteLine("Post response : " + response1.ToString());
                        dataStream1 = response1.GetResponseStream();
                        StreamReader reader1 = new StreamReader(dataStream1);
                        Console.WriteLine("  Console.WriteLine(reader1 : " + reader1);
                        string responseFromServer1 = reader1.ReadToEnd();
                        Console.WriteLine("  Console.WriteLine(responseFromServer1 : " + responseFromServer1);
                        Console.Read();
                        reader1.Close();
                        dataStream1.Close();
                        response1.Close();
                    catch(Exception exp)
                        MessageBox.Show("Post Error : "+exp.Message);
                catch(Exception ex)
                    MessageBox.Show("Error : "+ex.Message);
    Message was edited by: jitendra kansal
    Message was edited by: jitendra kansal

  • I can get to itunes but when I select anything an error comes up 'your request could not be completed.  The item you've requested is not currently available in the US store'  What is this and how to I fix it?

    no comment

    When I open the store in general (from my PC - Windows Vista), I get a message saying "Your request could not be completed. The item you've requested is not currently available in the Canadian Store."
    On my iPad, Apps opens, but I can't browse new apps listings, but not their details.
    Help?

  • WHAT DOES THIS HOT SYNC ERROR MESSAGE MEAN AND HOW CAN I FIX THE PROBLEM??

    "THE HOT SYNC OPERATION WAS INTERRUPTED.  SOME OF YOUR DATA WAS NOT BACKED UP."
    "(ERROR:  EASNotify.dll failed a confirmation query and cancelled the sync operation).
    HotSync Error:  An application cancelled synchronization or failed to respond to a HotSync notification.  Please ensure that you are not currently editing data using applications such as Palm OS Desktop of Install Tool.  (8009)"
    I have spent hours upon hours trying to figure out what is wrong and why I cannot complete a hot sync with my computer.  I have done a hard reset and reinstalled the palm desktop software numerous times with no luck.  I bought a book on the palm.  No mention in the book about this particular problem.
    Can anyone out there help me with this problem???  I would be forever grateful!!
    Post relates to: Palm TX
    Post relates to: Palm TX

    To check which applications are installed on your palm, you can click on the home button on your palm and make sure it says "all" on the top right of your screen. This will show you all the apps installed on your palm. Look through all the applications listed there and see if there is anything extra. You can list them here and I will tell you if there is anything that didnt come with your device when you purchased it.
    You will not need the palm cd to reinstall everything again after you do a hard reset because all the info will be backed up on your computer from your sync. You stated that all the information is on your computer after you sync'd so you dont have to worry about losing it. Once you sync again after performing the hard reset, you will be able to get all the info back again on your palm.
    Post relates to: Tungsten E2

  • What does this Adobe Muse error message mean: MuseJSAssert: Error calling slector function:SecurityError: Failed to read the 'contentDocument' property from 'HTMLIFrameElement': Blocked a frame with orign "null" from accessing a cross-origin frame.

    So what is up with this error message in Muse?
    MuseJSAssert: Error calling slector function:SecurityError: Failed to read the ‘contentDocument’ property from ‘HTMLIFrameElement’: Blocked a frame with orign “null” from accessing a cross-origin frame.

    This is a genuine security error generated by the browser when viewing a page with iFrame content locally.
    Please refer to Zak's reply in the following thread: https://forums.adobe.com/message/6496180#6496180
    Cheers,
    Vikas

Maybe you are looking for