Storing an Array in the EncryptedLocalStore

<!-- Fist of all, excuse my poor English, I'm doing my best. -->
Hi ppl!
I'm trying to store an array plenty of strings in the EncryptedLocalStore but it doesn't work. I think there is some kind of problem when retrieving data from the store and casting it into an array.
There are no runtime/compilation errors but I can't read the strings I used to store.
Here is the code I'm using to store the array:
bytes = new ByteArray();
bytes.writeObject(myArray) as Array;
EncryptedLocalStore.setItem("arrayStored", bytes);
And here, the code to read it:
readArray = EncryptedLocalStore.getItem("arrayStored").readObject() as Array;
Can someone help me? Thanks!

Please, any trails or ideas?

Similar Messages

  • Storing an array into the database using jdbc

    Hi,
    i�ve got a problem storing an array into a database. I want to store objects consisting of several attributes. One of these attributes is an array containing several int values. I don�t know exactly what is the best way to store these objects into a database. I have created two tables connected by a one to many relationship of which one stores the array values and the other table stores the object containing the array. Is that ok or should I use another way. It�s the first time I�m trying to store objects containing arrays into a database so I�m very uncertain in which way this should be done.
    Thanks in advance for any tips

    1. You should use blob or longvarbianry type colum to stor that array.
    2. All object in that array should be Serializable.
    3. Constuct a PreparedStatement object
    4. Convert array to byte[] object
    ByteArrayOutputStream baos=null;
    ObjectOutputStream objectOutputStream=null;
    baos = new ByteArrayOutputStream(bufferSize);
    objectOutputStream = new ObjectOutputStream(baos);
    objectOutputStream.writeObject(array);
    objectOutputStream.flush();
    baos.flush();
    byte[] value=baos.toByteArray();
    5. Now you can use PreparedStatement.setBytes function to insert byte[] value.

  • How to add a 2D result array to the result database?

    I am using Teststand 3.5 and I am about to create a Labview VI that will measure the gain response of a receiver. This VI will output it as an 2D-Array and I would like to save it to my access result database, to be able to use that data for displaying a graph in my excel report.
    I am new to teststand and I already know how to add a 2D-array to a report but don't really know how to add this information to the database. I read the provided manuals and searched the forums but didn't find anything that was really helpful. AFAIK I can add numerics and strings to the database just by adding a string value or numeric limit test but when it comes to arrays (especially 2D), I have no idea how to do that. I only know (or guess) that I have to add a new  table to my database, edit the schema and the Database.seq.
    I appreciate any help!
    Stephan

    Stephan,
    Sometimes forum posts make you research a particular functionality of TestStand and lead you to discover how powerfull TestStand can be.  This is one of these cases.  I thought that in order to save 2D arrays in TestStand we would have to customize many different aspects of the application only to learn that the functionality is fully implemented already!
    First, you will have to create a new step type that contains a 2D array in the Step.Result properties.
    Second, in order to save a 2D array into a database, use the Binary Column Type in your table.  To do this, create a new table with the following properties:
    Type: Recordset
    Command text: "SELECT * from [Table Name]"
    Apply to: Step Result
    Types to Log: [Step type with which you are acquiring your 2D array]
    Lock Type: Optimistic
    The rest of the properties can be left with their default values.  Once you have your table, add an ID column as your primary key, and a second column that will contain the 2D array.  This column should have the following properties:
    Type: Binary
    Size: 1.5 times the size of your array in bytes
    Expected Properties: Logging.StepResult.[Property Containing the Array]
    Expression: Logging.StepResult.[Property Containing the Array]
    The rest of the properties can be left with their default values.  In order to see the values stored in the database, open the Database Viewer to the particular table and right click on the field which will show a value of "Binary Data".  Right click on the value and select Evaluate Data.  The View Binary Data window will let you see all the values stored in the array.
    Regards,
    Santiago D

  • Strange issue with POF: byte array with the value 94

    This is a somewhat strange issue we’ve managed to reduce to this test case. We’ve also seen similar issues with chars and shorts as well. It’s only a problem if the byte value inside the byte array is equal to 94! A value of 93, 95, etc, seems to be ok.
    Given the below class, the byte values both in the array and the single byte value are wrong when deserializing. The value inside the byte array isn’t what we put in (get [75] instead of [94]) and the single byte value is null (not 114).
    Pof object code:
    package com.test;
    import java.io.IOException;
    import java.util.Arrays;
    import com.tangosol.io.pof.PofReader;
    import com.tangosol.io.pof.PofWriter;
    import com.tangosol.io.pof.PortableObject;
    public class PofObject1 implements PortableObject {
         private byte[] byteArray;
         private byte byteValue;
         public void setValues() {
              byteArray = new byte[] {94};
              byteValue = 114;
         @Override
         public void readExternal(PofReader reader) throws IOException {
              Object byteArray = reader.readObjectArray(0, null);
              Object byteValue = reader.readObject(1);
              System.out.println(Arrays.toString((Object[])byteArray));
              System.out.println(byteValue);
              if (byteValue == null) throw new IOException("byteValue is null!");
         @Override
         public void writeExternal(PofWriter writer) throws IOException {
              writer.writeObject(0, byteArray);
              writer.writeObject(1, byteValue);
    Using writer.writeObjectArray(0, byteArray); instead of writer.writeObject(0, byteArray); doesn't help. In this case byteArray would be of type Object[] (as accessed through reflection).
    This is simply put in to a distributed cache and then fetched back. No EPs, listeners or stuff like that involved:
         public static void main(String... args) throws Exception {
              NamedCache cache = CacheFactory.getCache("my-cache");
              PofObject1 o = new PofObject1();
              o.setValues();
              cache.put("key1", o);
              cache.get("key1");
    Only tried it with Coherecne 3.7.1.3.
    Cache config file:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE cache-config SYSTEM "cache-config.dtd">
    <cache-config>
         <caching-scheme-mapping>
              <cache-mapping>
                   <cache-name>my-cache</cache-name>
                   <scheme-name>my-cache</scheme-name>
              </cache-mapping>
         </caching-scheme-mapping>
         <caching-schemes>
              <distributed-scheme>
                   <scheme-name>my-cache</scheme-name>
                   <service-name>my-cache</service-name>
                   <serializer>
                        <class-name>
                             com.tangosol.io.pof.ConfigurablePofContext
                        </class-name>
                        <init-params>
                             <init-param>
                                  <param-type>string</param-type>
                                  <param-value>pof-config.xml</param-value>
                             </init-param>
                        </init-params>
                   </serializer>
                   <lease-granularity>thread</lease-granularity>
                   <thread-count>10</thread-count>
                   <backing-map-scheme>
                        <local-scheme>
                        </local-scheme>
                   </backing-map-scheme>
                   <autostart>true</autostart>
              </distributed-scheme>
         </caching-schemes>
    </cache-config>
    POF config file:
    <?xml version="1.0"?>
    <pof-config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xmlns="http://xmlns.oracle.com/coherence/coherence-pof-config"
         xsi:schemaLocation="http://xmlns.oracle.com/coherence/coherence-pof-config coherence-pof-config.xsd">
         <user-type-list>
              <!-- coherence POF user types -->
              <include>coherence-pof-config.xml</include>
              <user-type>
                   <type-id>1460</type-id>
                   <class-name>com.test.PofObject1</class-name>
              </user-type>
         </user-type-list>
    </pof-config>

    Hi,
    POF uses certain byte values as an optimization to represent well known values of certain Object types - e.g. boolean True and False, some very small numbers, null etc... When you do read/write Object instead of using the correct method I suspect POF gets confused over the type and value that the field should be.
    There are a number of cases where POF does not know what the type is - Numbers would be one of these, for example if I stored a long of value 10 on deserialization POF would not know if that was an int, long double etc... so you have to use the correct method to get it back. Collections are another - If you serialize a Set all POF knows is that you have serialized some sort of Collection so unless you are specific when deserializing you will get back a List.
    JK

  • Storing an array of checkbox booleans into preferences and retrieving them

    Just wondering how to go about storing an array of JCheckBoxes into a preference and retrieving it. There's 32 checkboxes so if they select, say, 6 of these randomly it should store it in a preference file and retrieve it when the application is loaded so that the same 6 checkboxes remain selected. I'm currently getting a stack overflow error, though.
    import java.util.prefs.*;
    public class Prefs {
         Preferences p;
         GUI g = new GUI();
         public Prefs() {
              p = Preferences.userNodeForPackage(getClass());
              g = new GUI();
         public void storePrefs() {
              for (int i = 0; i < g.symptoms.length; i++) {
                   p.putBoolean("symptoms", g.symptoms.isSelected());
         public void retrievePrefs() {
              for (int t = 0; t < g.symptoms.length; t++) {
                   p.getBoolean("symptoms", g.symptoms[t].isSelected());
    symptoms is the array of checkboxes in the GUI class. Not sure where I am going wrong here. I can do it with strings from textfields etc but this is proving to be an annoyance. :(
    Thanks in advance                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Actually, I have a better example, see below
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.*;
    import java.util.prefs.*;
    public class PreferencesTest {
        private Preferences prefs;
        public static final String PREF_OPTION = "SELECTED_MENU_ITEM";
        public void createGui() {
            prefs = Preferences.userNodeForPackage(this.getClass());
            JMenuItem exitAndCloseMenuItem = new JMenuItem("Exit");
            exitAndCloseMenuItem.addActionListener(new ActionListener(){
                public void actionPerformed(ActionEvent e) {
                    System.exit(0);
            JMenu fileMenu = new JMenu("File");
            fileMenu.add(exitAndCloseMenuItem);
            JCheckBoxMenuItem[] preferenceItems = {
                new JCheckBoxMenuItem("pref 1"),
                new JCheckBoxMenuItem("pref 2"),
                new JCheckBoxMenuItem("pref 3"),
                new JCheckBoxMenuItem("pref 4")};
            int selectedMenuItem = prefs.getInt(PREF_OPTION, 0);
            preferenceItems[selectedMenuItem].setSelected(true);
            ButtonGroup preferencesGroup = new ButtonGroup();
            JMenu preferenceMenu = new JMenu("Preferences");
            for(int i = 0;i<preferenceItems.length;i++){
                preferenceItems.setActionCommand(Integer.toString(i));
    preferenceItems[i].addActionListener(new menuItemActionListener());
    preferencesGroup.add(preferenceItems[i]);
    preferenceMenu.add(preferenceItems[i]);
    JMenuBar menuBar = new JMenuBar();
    menuBar.add(fileMenu);
    menuBar.add(preferenceMenu);
    JFrame f = new JFrame("Prefernce Test");
    f.setJMenuBar(menuBar);
    f.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
    f.pack();
    f.setLocationRelativeTo(null);
    f.setVisible(true);
    public static void main(String[] args){
    new PreferencesTest().createGui();
    class menuItemActionListener implements ActionListener{
    public void actionPerformed(ActionEvent e) {
    JCheckBoxMenuItem jcbm = (JCheckBoxMenuItem)e.getSource();
    prefs.put(PREF_OPTION, jcbm.getActionCommand());

  • Storing an array permanently

    Hi,
    Is there a way of storing an array permanently, so that it stays saved somewhere in a file or something? I need to create an application that stores this array and reads the values from it, without having to re-create the array everytime I run the application.
    Thanks for any help.

    Serialization is flakey (can have many problems when JDK or class is updated), wasteful of space, and IMO should be the implementation of last resort.
    Here's a code snippet of what I would do:
    public void saveArray(Object[] array, File f) throws IOException {
      PrintWriter writer = new PrintWriter(new FileWriter(file));
      for (int i = 0; i < array.length; i++)
         writer.println(array.toString);
    writer.close();

  • Handling 2D array in the PL/SQL.

    Hi,
    I have been having a lot of trouble with executing a stored procedure. I'm hoping someone can help me with this:
    The stored proc.One of these parameters coming in is a 2D array from the Java.
    The data type of the 2D array is varchar.
    I am able to create single dimension array in the PL./SQL after creating the below data type:
    CREATE TYPE "TAB_ARR" AS VARRAY (3) OF NVARCHAR2(20);
    Then I used this data type in my Stored Procedure as below :
    CREATE OR REPLACE PROCEDURE "TEST"."ARRAY_TEST" (username varchar2,contractno varchar2,p_arr1 TAB_ARR,p_arr2 TAB_ARR) AS
    BEGIN
    FOR i IN p_arr1.FIRST..p_arr1.LAST
    LOOP
    INSERT INTO temp VALUES(username,contractno,p_arr1(i),p_arr2(i));     END LOOP;
    END ARRAY_TEST;
    can anybody has any clue to solve this problem.
    Thanks a lot for any help!

    Hi,
    Send errors you have recieved.
    Peter D.

  • How reliable is the persistency of the EncryptedLocalStore in the current version of AIR?

    I've seen a lot of posts dating back from 2010 to 2012 where Adobe indicates one should not rely on the EncryptedLocalStore for keeping persistent data. They have indicated they will be making improvements, however I don't see any new information about it. I'm looking to keep persistent data on multiple platforms including Android, Windows, and Mac OS.
    Older post about reliability: http://blogs.adobe.com/flashplayer/2012/09/air3-4els.html
    - Greg

    Hi,
    P1_ITEM will not storing session state,
    because you did create it to page and it not exists in Apex tables where all items information is stored.
    And you can not use that item in e.g. page process.
    Br,Jari

  • I have a VI and an attched .txt data file. Now I want to read the data from the .txt file and display it as an array in the front panel. But the result is not right. Any help?

    I have a VI and an attched .txt data file. Now I want to read the data from the .txt file and display it as an array in the front panel. But the result is not right. Any help?
    Attachments:
    try2.txt ‏2 KB
    read_array.vi ‏21 KB

    The problem is in the delimiters in your text file. By default, Read From Spreadsheet File.vi expects a tab delimited file. You can specify a delimiter (like a space), but Read From Spreadsheet File.vi has a problem with repeated delimiters: if you specify a single space as a delimiter and Read From Spreadsheet File.vi finds two spaces back-to-back, it stops reading that line. Your file (as I got it from your earlier post) is delimited by 4 spaces.
    Here are some of your choices to fix your problem.
    1. Change the source file to a tab delimited file. Your VI will then run as is.
    2. Change the source file to be delimited by a single space (rather than 4), then wire a string constant containing one space to the delimiter input of Read From Spreadsheet File.vi.
    3. Wire a string constant containing 4 spaces to the delimiter input of Read From Spreadsheet File.vi. Then your text file will run as is.
    Depending on where your text file comes from (see more comments below), I'd vote for choice 1: a tab delimited text file. It's the most common text output of spreadsheet programs.
    Comments for choices 1 and 2: Where does the text file come from? Is it automatically generated or manually generated? Will it be generated multiple times or just once? If it's manually generated or generated just once, you can use any text editor to change 4 spaces to a tab or to a single space. Note: if you want to change it to a tab delimited file, you can't enter a tab directly into a box in the search & replace dialog of many programs like notepad, but you can do a cut and paste. Before you start your search and replace (just in the text window of the editor), press tab. A tab character will be entered. Press Shift-LeftArrow (not Backspace) to highlight the tab character. Press Ctrl-X to cut the tab character. Start your search and replace (Ctrl-H in notepad in Windows 2000). Click into the Find What box. Enter four spaces. Click into the Replace With box. Press Ctrl-V to paste the tab character. And another thing: older versions of notepad don't have search and replace. Use any editor or word processor that does.

  • Defining xsd and assiging an array to the output variable in a BPELprocess

    I have created a BPEL application in which a web service has been invoked which returns an array.If the array has a fixed size i am able to define the XSD,but what if the array does not have a fixed size.How should i define the xsd in this case,i mean how should the output node be defined.Also how can i assign the array returned by the webservice to the Output variable using the assign activity.

    Hi,
    What you could do is set the second step to loop.
    Then use as one of the parameters to VI YY the string array using RunState.LoopIndex as the array index.
    eg. Locals.MyStringArray[RunState.LoopIndex]
    Hope this helps
    Regards
    Ray Farmer
    Regards
    Ray Farmer

  • How do I transfer all photos and music from my old iphone 3gs to new iphone 4s? I have a new laptop because the old one broke and so do not have non camera roll photos or music stored anywhere apart from the iphone 3gs and cannot update io5 on the iphone

    How do I transfer all photos and music from my old iphone 3gs to new iphone 4s? I have a new laptop because the old one broke and so do not have non camera roll photos or music stored anywhere apart from the iphone 3gs and cannot update io5 on the iphone 3gs without erasibng everything. i need help!!!

    Syncing to a new iTunes library or computer will erase your phone. Only if you back up manually before syncing, you can restore your device from that backup again. A manual backup does not include the sync process.
    Do this:
    Disable autosync in iTunes, connect your phone to your new computer and right click on it in the device list and choose backup. iTunes will backup your device without syncing.
    Transfer your purchases the same way, choosing "transfer purchases" this time.
    When you connect your phone for the first time, all media content will be erased. But you can restore your settings and app data from your manual backup afterwards.
    Don't forget to set up at least one contact and event on your new computer to be able to merge calendars and contacts when you sync the iPhone for the first time.
    Music is one way only, from the computer to your device, unless you bought the songs in itunes and transferred your purchases.
    There is 3rd party software out there, but not supported by Apple, see this thread: http://discussions.apple.com/thread.jspa?threadID=2013615&tstart=0
    About backups and what's saved:iTunes: About iOS backups
    How to back up and restore:http://support.apple.com/kb/HT1414
    How to download apps for free again:http://support.apple.com/kb/HT2519
    Saving other data is also described here. How to back up your data and set up as a new device

  • In the photos app I have 2 camera rolls and 1 photo gallery. Each new photo that I take gets stored in one of the camera rolls, but when I back up the photos to my computer it only backs up the one camera roll, and not any of the new picks. Please help

    In the photos app I have 2 camera rolls and 1 photo gallery. Each new photo that I take gets stored in one of the camera rolls, but when I back up the photos to my computer it only backs up the one camera roll, and not any of the new picks. In the one I backed up I have 500 plus photos and the other over 1000. I need to back up the 1000 one- camera roll. Any help would be sincerely appreciated. Help .... Please

    Try:
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    - Reset all settings  Already sugested
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup. See:                                 
    iOS: How to back up           
    - Restore to factory settings/new iOS device.
    If still problem, make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
    Apple Retail Store - Genius Bar          

  • Is there a way to rotate an array on the front panel?

    Is there a way to rotate an array on the front panel?  For example, I want element [0] to be at the bottom of an array that's expanded to show the elements vertically.
    Thanks in advance.

    I do not think that there is any way to make an array control or indicator display that way.
    You might be able to reverse the array, creating an upside down display. If you also need the user to index it, then it gets trickier.  Hide the array index display.  Create another numeric control to look like the index control.  When the value of the new control is changed, subtract the value from the last index of the array and use the difference to index the array.  You may need to adjust by +/-1, so try it to be sure.
    Lynn

  • Code for how to read an integer array from the command prompt...

    hello,
    Could anyone give me the code for how to read an integer array from the command prompt...its very urgent!..

    If you are using a recent version of Java (5 or later) you can use Scanner:
    http://java.sun.com/javase/6/docs/api/java/util/Scanner.html
    That page has some example code on it, too.

  • PHP/HTML: Returning input from a text box in a sub-array of the $_POST array?

    I have a page for entering/editing the data for a table of
    contacts, and would like to be
    able to compare the data for two different entries.
    Conceptually the simplest way to do
    this would be to load two identical copies of the same page,
    and have each copy return its
    results in a separate sub array in the $_POST array.
    For example I have an input which returns a value
    $_POST['address']. Is there any simple
    way whereby I could instruct this input to return
    $_POST['entry_1']['address'] in the
    first copy, and $_POST['entry_2']['address'] in the second
    copy?
    A similar question relates to fields which have sub entries.
    At present I encode these
    into the name of the return value (for example 'al1' in the
    case below), and have to
    decode them before I can put the results into the right box,
    but it would make things much
    simpler -- and therefore easier to understand and less error
    prone -- if I could return
    $_POST['address']['line_1'] and so on directly.

    On Sat, 21 Feb 2009 12:57:27 +0000 (UTC), Joe Makowiec
    <[email protected]> wrote:
    >On 20 Feb 2009 in macromedia.dreamweaver, Clancy wrote:
    >
    >> I have a page for entering/editing the data for a
    table of contacts,
    >> and would like to be able to compare the data for
    two different
    >> entries. Conceptually the simplest way to do this
    would be to load
    >> two identical copies of the same page, and have each
    copy return its
    >> results in a separate sub array in the $_POST array.
    >>
    >> For example I have an input which returns a value
    $_POST['address'].
    >> Is there any simple way whereby I could instruct
    this input to
    >> return $_POST['entry_1']['address'] in the first
    copy, and
    >> $_POST['entry_2']['address'] in the second copy?
    >>
    >> A similar question relates to fields which have sub
    entries. At
    >> present I encode these into the name of the return
    value (for
    >> example 'al1' in the case below), and have to decode
    them before I
    >> can put the results into the right box, but it would
    make things
    >> much simpler -- and therefore easier to understand
    and less error
    >> prone -- if I could return
    $_POST['address']['line_1'] and so on
    >> directly.
    >
    >You can sort of do this by adding square brackets [] to
    the name
    >attribute of several identically-named input fields:
    >
    ><form name="form1" method="post" action="<?php echo
    $_SERVER['PHP_SELF']; ?>">
    > <p><label
    for="streetAddress">Street</label>
    > <input type="text" name="address[]"
    id="streetAddress"></p>
    > <p><label
    for="apartment">Apartment</label>
    > <input type="text" name="address[]"
    id="apartment"></p>
    > <p><input type="submit" name="button"
    id="button" value="Submit"></p>
    ></form>
    ><?php
    >if ($_SERVER['REQUEST_METHOD'] == 'POST') {
    > echo "<p>Post array:</p>\n";
    > echo "<pre>\n";
    > print_r($_POST);
    > echo "</pre>\n";
    >}
    >?>
    >
    >What gets returned is $_POST['address'][], where the
    second index
    >ranges between 0 and the number of same-named input
    fields less 1.
    >In the code above, 'apartment' would be addressed as
    >$_POST['address'][1].
    Thanks, Joe,
    This is interesting, but not really what I was looking for.
    It might be helpful for
    entering the results from one page, but it doesn't really
    help in separating the outputs
    from two copies of the same page. I suppose, though, I could
    count the number of (say)
    'address' responses, and divide by the number of identical
    pages. Then I would know at
    terms 0 to 3 belong to the first page, and 4 to 7 to the
    second -- provided I always had
    the same number of items on each copy of the page, which
    ain't necessarily so!
    However I doubt whether this is any simpler than the
    alternative of encoding the page
    number into the name of the variable.

Maybe you are looking for

  • Setting up an Airport Express with a Time Capsule

    Merry Christmas! I received a new Airport Express for Christmas. My intention is to use it to stream music to my stereo. I have to admit that setting the AE up was not as simple as I had hoped it would be. I do have it working but I would like someon

  • I recently upgraded to Yosemite on MacBook Pro - unable to open iPhoto and Photo Booth

    I recently upgraded to OS X Yosemite 10.10.2 on my MacBook Pro (bought in 2011).  Since the Yosemite upgrade, I have been unable to open both iPhoto and Photo Booth at all.  I have lots of photos and need to access them. Both icons of iPhoto and Phot

  • Adding text to index.html in iWeb

    I am currently trying to convert my website to mobile phone. I'm using Fetch as my FTP client, and Duda Mobile to create the mobile site. I am trying to add text in the index.html file, however, I don't know if I need a particular text editor to do t

  • Doubt in sql loader regarding TOM's reply

    Hi, My question is at the last line. But u need to go through this to understand my problem. Hi Tom, I want to load some input files delimited by Text into Oracle database. Can you please help me out in this. I know one way of doing it is using SQLLO

  • How to copy&paste from _________ into terminal?

    Whenever i try to copy text from e.g. a webpage, and paste it into terminal (e.g. an open emacs) I usually just get part of the text--either just a few lines, or most of the text. When trying to copy only a few lines, it works fine. Any ideas?