Why does RTFEditorKit's Read throw IOException??

Hey all,
I'm getting IOException, "Too many close-groups in RTF Text" maybe 5 out of 100 times when I read an InputStream into a TextPane document using the RTFEditorKit:
myTextPane.getEditorKit().read(in, document, 0);
The rest of time it works fine. I'm not able to reproduce at will, but it does happen often if I'm reading a stream that has a lot of repeatable character sequences (imagine pasting the same odd string 50 times in a row).
Can anyone shed some light--whether this is a known issue or if I'm making a common mistake? Either way, what can I do? :(
Thanks!
Jackie

Well, I was wrong to think the problem was with the Read in isolation. My inputstream is created from a field in Access of binary data type (ole object). If I store the data as a String (using Access' Memo), then I have better luck. Alas, I lose ability to justify text and can't store as much data. But, it suits my purposes for now.

Similar Messages

  • Why does my ipad keep throwing me out of games and apps?

    Why does my ipad keep throwing me out of games and apps?

    Try reset iPad
    Hold down the Sleep/Wake button and the Home button at the same time for at least ten seconds, until the Apple logo appears
    Note: Data will not be affected.

  • Why does my card reader not work on my iPad since upgrade?

    I use my iPad mini to download photos from my camera when I'm on the road. In the summer I bought the "3 in 1 Card Reader Adapter Cable Camera Connection Kit, 3 Port Card Reader for iPad 4 and iPad Mini by Eurekka" and it worked wonderfully. I was able to download photos (jpg and RAW) directly to the iPad and off the camera, and once home it was a flawless upload to my iMac.
    However, once I upgraded to iOS 7 last week I get a message saying the device is not supported. What gives? Will this be fixed or will Apple products only accept Apple accessories from now on?

    No but I was just trying to find a way in to your help desk. I didn't find 
    your web page very helpful in this regard.
    Douglas Whiteley
    In a message dated 10/05/2012 20:43:50 GMT Daylight Time, [email protected] 
    writes:
    Re:  why does my adobe reader not work
    created by Claudio  González
    (http://forums.adobe.com/people/Claudio+González)  in Adobe Reader - View the full  discussion
    (http://forums.adobe.com/message/4395059#4395059)

  • Why does my Adobe Reader DC stop working when I click scroll down options?

    I used to use PDF Suite 2014 Standard to view pdf files.
    However, tonight a message appeared when I attempted to open files saying ..."if the document does not load then the pdf viewer may not be able to display this type of document"
    I went to the website provided to download Adobe Acrobat Reader DC.
    Although I was able to load pdf documents and fill in forms, the program repeatedly would crash whenever I attempted to click on scroll down options on forms.
    Any help is appreciated
    ....and talk/write slowly for I am not super computer literate.
    Regards,
    Luisa

     Dear Aedesh, Thank you for your assistance.  I did all that you instructed below, regarding uninstalling, and using the Adobe Reader and Acrobat Cleaner Tool.  I restarted my computer, then installed Adobe Acrobat Reader DC (for Windows 7, English and version: Reader DC 2015). I continue to have the problems: (1) When I attempt to use a scroll down option within a pdf form, the program stops working. (2) If I send the pdf to my iPhone, and I open the pdf, I receive the message "Please wait...if the message is not eventually replaced by the proper contents of the document, your pdf viewer may not be able to display this type of document..." However, when I send pdf's created earlier than 4-28-15, I am able to open in my iPhone.I am able to open on my laptop the pdf's created after 4-28-15, but have the scroll option issue  (thank you in advance for your patience)Luisa 
     Luisa Montaini-Klovdahl, Ph.D.Licensed Psychologist &
    Captain, US Army Reserves Medical Service Corps4153 Park Blvd
    Palo Alto, CA 94306
    Telephone: 650.384.6559
    Facsimile: 650.384.6547 This e-mail may contain confidential patient information. If you have received this transmission in error, please delete and contact the sender.   
         From: aadeshs76610910 <[email protected]>
    To: Luisa Montaini-Klovdahl <[email protected]>
    Sent: Thursday, April 30, 2015 9:55 AM
    Subject:  Why does my Adobe Reader DC stop working when I click scroll down options?
    Why does my Adobe Reader DC stop working when I click scroll down options?
    created by aadeshs76610910 in Acrobat Reader - View the full discussionHi Luisa,  Please follow the steps below :- 1) Uninstall Adobe Acrobat Reader DC. 2) Run the cleaning tool Download Adobe Reader and Acrobat Cleaner Tool - Adobe Labs3) Restart the computer.4) Install Adobe Acrobat Reader DC using this link Adobe Acrobat Reader DC Install for all versions Let me know if the issue persist.  Regards,Aadesh If the reply above answers your question, please take a moment to mark this answer as correct by visiting: https://forums.adobe.com/message/7499212#7499212 and clicking ‘Correct’ below the answer Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: Please note that the Adobe Forums do not accept email attachments. If you want to embed an image in your message please visit the thread in the forum and click the camera icon: https://forums.adobe.com/message/7499212#7499212 To unsubscribe from this thread, please visit the message page at , click "Following" at the top right, & "Stop Following" 
    Start a new discussion in Acrobat Reader by email or at Adobe Community For more information about maintaining your forum email notifications please go to https://forums.adobe.com/thread/1516624.

  • Why does my Adobe Reader (10.1.3) freeze-up when I down load statements from some websites?

    Why does my Adobe Reader (10.1.3) freeze-up when I down load statements from some websites?
    When I down load statements from some websites, the pdf freezes and I get a message that the website is not responding and that windows is checking for a solution for this problem. I have uninstalled and reinstalled many times. I really like the Adobe Reader, but I need answers on why this is happening and how to fix it. AN AUTOMATIC UPDATE FROM 08/23/11 DOESN’T CUT IT!!

    Acrobat Cleaner Tool
    Mylenium

  • Why does my Adobe Reader installation time out?

    Why does my Adobe Reader installation time out at 64 percent on Windows XP?
    I am currently running version 9.5.2.
    Does anyone have a solution please.

    Hi,
    This "timeout at 64%" issue has been reported more than a few times  here.
    You can try direct download from
    http://get.adobe.com/reader/enterprise/
    If you can dedicate some time and help to investigate the issue, here is what I would ask:
    Before trying the link I have provided, can you please enable verbose MSI logging and try to install Reader the way you did originally - I assume that you used Adobe.com, right?
    If it fails again at 64%, please find the latest MSIxxxxx.log file in the Temp folder and send it to me.
    To enable Windows Installer logging
    http://support.microsoft.com/kb/223300
    ...open the registry with Regedit.exe and create the following path and keys: 
    HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\Installer
    Reg_SZ: Logging
    Value: voicewarmupx
    The Temp folder on Windows XP is
    C:\Documents and Settings\[YourUserName]\Local Settings\Temp

  • Why does Siri not read my text messages to me?

    Why does my Siri not read my text messages to me?

    If your phone is locked with a passcode and you ask siri to read any new text message, Siri tells you to unlock it first, which you do by entering the passcode and the moment you do that Siri says 'OK' and starts reading your message without you doing anything else.
    However if you have not set the passcode in your phone and if your phone is locked (which means you have yet not done 'slide to unlock') and you ask siri to read the message then you will hear nothing..there will be silence ..and then 'siri will ask you to reply or read it again'. If you want to hear the message then first slide to unlock your phone and then ask siri to read for any new text messages and you will start hearing your message.
    Let me know if this does not work.
    Cheers

  • Why Does iTunes Continuously Read From the Hard-drive?

    Hi. I have recently discovered an odd behaviour from iTunes: instead of reading an entire song from the harddrive and storing it in ram during playback, iTunes reads small chunks of data very frequently. For example, when playing a 128Kbps song the HD reads 68KB chunks approximately every 3 seconds, and when playing lossless WAVE files the HD is constantly reading at 200KB/s. I found this out by having iTunes open and playing music while having all other programs closed, and monitoring the disk activity from Activity Monitor (and I'm sure that it's iTunes that was reading from the HD because when the music was paused the HD was idle).
    So, my question is why would iTunes do this? This seems like an extremely inefficient use of the harddrive for several reasons:
    - Constantly reading small chunks from the HD uses much more power than reading large chunks infrequently because idle hard-drives use much less power than active hard-drives
    - This will slow down other applications that need to make heavy use of the HD because iTunes will be constantly interrupting anything else that is using the disk (this is especially true for Photoshop or any other program that uses lots of swapfile space)
    - It puts unnecessary wear on the HD heads
    - It is dangerous for laptops, which can easily get thrown around or bumped. Momentarily reading a large chunk of data and leaving the HD idle for the majority of the time will be much safer for the HD heads
    - Hard-drive-based portable music players read large chunks of data infrequently because it is well-known that this saves power and protects the HD in these devices.
    So... is there any reason that iTunes is exempt from these reasons??
    -Eric

    I too have wondered about this. You'd think with 1.5GB RAM that itunes would take 3MB of it and leave my drive alone for a few minutes. I don't really feel comfortable doing drive intensive activities such as file copying while itunes is running.

  • In my events the key photos no longer show up and the picture amount reads 0, but the pictures are still there when I click on that event. Why does the amount read 0?

    In some of my events in iphoto no pictures show up in the key photos. In others they do. I just upoaded some and no problem. I noticed that in the lower right corner of each event with no key photo the photo amount reads zero. I click on that event and all of the photos do show up. Does anyone know why this is  happening, or have come across this before? Thanks, Daryl

    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Repair Database. If that doesn't help, then try again, this time using Rebuild Database.

  • SocketChannel read() throws IOException

    Hi!
    During private SocketChannel channel;
    private ByteBuffer inBuffer;
    channel.read(inBuffer);an IOException (An established connection was aborted by the software in your host machine) was thrown. Does any one know the reason of this unpleasent event? I believe the channel is ok (just created)... maybe I try to write to fast to just created channel? Maybe I should wait for 3-5 seckonds?
    Please help!!!

    You already know the cause - you posted it.
    "An established connection was aborted by the software in your host machine"
    Basically, software (Winsock on Windows), has aborted the connection due to the lovely use of LSPs (Linked/Layered Service Providers) used by anti-virus (and viruses themselves) to control the network services on a computer.
    McAfee VirusScan 8 and Norton AntiVirus 2004 are known to cause this, however, other firewall/anti-x programs can do this.

  • In current version of OS X, why does Adobe Acrobat Reader open with a small blank dialog box?

    When I open Acrobat Reader, this small blank, white dialog box always opens on my Mac:
    Does anyone know what is going on here?

    Adobe Support
    Adobe Forums

  • When use scan mode and FPGA simultaneously, why does the FIFO Read can not be used?

    Hello, I am using compactRIO-9025 to do a project and trying to use scan mode and FPGA simultaneously ( Hybrid mode). I have already build a project as the following tutorial.
    http://digital.ni.com/public.nsf/allkb/0DB7FEF37C26AF85862575C400531690 and I have NI 9205, NI 9023 in Scan mode and NI 9871 in FPGA mode in the same project.
    In the FPGA Target of the project,  I add a FIFO and tried to use it to log in data from NI 9871. I wired the module I/O node to FIFO Write in the target vi. However, when I  droped the invoke method to the block diagram of the host vi and right clicked it, there is no FIFO Read can be choose. Could you please help me to solve this problem?
    Thank you very much!!

    I am not aware that using the Scan Engine is blocking any access to a transfer FIFO. But please reread this from your quoted KB:
    Secondly, the number of DMA FIFO's that can be used in the FPGA code will be reduced, since the scan engine uses two DMA FIFO's. Most FPGAs have 3 DMA FIFO's, so there will only be one DMA channel left to use in the FPGA code.
    This means, you have only a single DMA FIFO left which is either Target to Host or Host to Target.
    Make sure that you configured the FIFO to be the correct direction for your needs...
    hope this helps,
    Norbert
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

  • Why does MScomctl.o​cx throw a server exception in my LabVIEW executable when trying to set the ImageList?

    I am using the Microsoft Toolbar Control 6.0 (SP4) toolbar to display 32x32 pixel buttons.
    In development, this toolbar works flawlessly. Once the program is compiled, however, the function iToolbar: ImageList(putRef) sometimes gives the error "Error -2147417851 occurred at The server threw an exception. "
    This error does not alway happen, and when it doesn't happen, everything works normally.
    Anyone have an idea why this error is being generated?

    I managed to strip away my entire application and limit the problem to just the toolbar and images. Please see file included.
    If you want to play with it, you will have to make a build script. Your system will need to have activex components installed.
    Mscomctl.ocx is required.
    As I said above, this code fragment works ok in LabVIEW development mode, but occasionally fails when built into an executable. When it fails, it seems to fail many times in a row. It doesn't seem to be a timing problem because there is only one thread.
    Has anyone else out there had this problem and found a solution?
    Message Edited by terminalman90 on 08-10-2005 11:34 AM
    Attachments:
    terminalman90.zip ‏37 KB

  • Why does my iPad keep throwing me out of apps?

    Please can anyone help?
    I've closed all apps (by the correct method) and restarted but it's still doing it more and getting more frequent.
    This is a recent problem so what's been changed ?
    I love my iPad but this is so annoying, especially when I've typed loads and then in a split second lost the lot.....more than once!
      My husband has a samsung galaxy and wants me to ditch my iPad for a galaxy too.
    I've always lauged at what i believed to be a stupid suggestion and point blank refused but if this continues,  probably will!
    Thanks in advance for any assistance.

    Have you tried rebooting your iPad?
    Reboot the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons.
    If you are using the original iPad, have you updated to iOS 5?
    You may also have something corrupt on the iPad - a setting could be corrup perhaps. You could try resetting all settings and see if that helps.
    Settings>General>Reset>Reset All Settings. If you try this .... You will have to enter all of your app preferences and device settings again.
    You can try restoring from a backup as well, but then you do that, you restore everything that was in that backup at that particular date and time. Any app data that you have added since your last backup will be lost.
    How to backup and restore from a backup
    http://support.apple.com/kb/HT1766
    And if nothing else works, you can try restoring the iOS software.
    iTunes: Restoring iOS software
    support.apple.com/kb/ht1414
    Aug 24, 2012 – Learn how to use iTunes to restore your iOS device.

  • Why does my Bridge read RGB or B&W for the Color Mode on a file, when in Illustrator I have set it to CMYK?

    I'm kind of stumped and this has been a question of mine for some time. I did some further digging on it, and did find that what it's reading is the Photoshop Color Mode XMP data, which is odd since the files were never in Photoshop, and were created in Illustrator. Is there a way to remove this info? How do I fix it?

    Probably can be chalked up to one of Illustrators mysterious color issues.
    Therefor it might be best to drop this question in the AI forum itself. I know to less of AI but just tried a bit with a new document, you can't convert to a new color profile like used to in PS, only select CMYK or RGB and assign a profile but that is not the same as converting.
    Also in color settings it says by default to preserve numbers in stead of the profile itself.
    And yes, mysteries are common at Adobe, although being one company one doubts often if they are even aware of the existence of Bridge and even other applications in the suites. Not even all file types of Adobe seem to be fully supported in Bridge…

Maybe you are looking for