Native -- DataFlavor clipboard problem

I'm trying to access vim specific clipboard data (to get visual block info). This is on windows XP (unix is next) I've registered the formats with addFlavorForUnencodedNative, see java code below. But when I look at all the clipboard flavors, when clipboard contains vim stuff, no vim flavors show up, see output.
Any ideas of what/where the problem might be?
Thanks,
-ernie
In vim, from its os_win32.c, there is
    clip_star.format = RegisterClipboardFormat("VimClipboard2");
    clip_star.format_raw = RegisterClipboardFormat("VimRawBytes");and when a vim copy to clipboard command is issued, in vim's os_mswin.c. Note that cbd->format is clip_start.format, returned from RegisterClipboardFormat above.
SetClipboardData(cbd->format, hMemVim);
SetClipboardData(CF_UNICODETEXT, hMemW) != NULL)
SetClipboardData(CF_TEXT, hMem);When I run the java program I get the following output. First are the mimetype of the 3 native flavors I added; in cb.getAvailableDataFlavors() none of them appear in the 27 flavors available.
VimClipboard application/vimclipboard; class=java.nio.ByteBuffer
VimClipboard2 application/vimclipboard2; class=java.nio.ByteBuffer
VimRawBytes application/vimrawbytes; class=java.nio.ByteBuffer
27 flavors
application/x-java-text-encoding; class="[B"
application/x-java-serialized-object; class=java.lang.String
...Here's the java code that is not finding the vim clipboard native data
/* Main.java; access vim's clipboard */
package vimclipapp;
import java.awt.Toolkit;
import java.awt.datatransfer.Clipboard;
import java.awt.datatransfer.DataFlavor;
import java.awt.datatransfer.FlavorMap;
import java.awt.datatransfer.SystemFlavorMap;
public class Main {
    static DataFlavor VimClipboard = addFlavor("VimClipboard");
    static DataFlavor VimClipboard2 = addFlavor("VimClipboard2");
    static DataFlavor VimRawBytes = addFlavor("VimRawBytes");
    static DataFlavor addFlavor(String cbName) {
        DataFlavor df = null;
        FlavorMap fm = SystemFlavorMap.getDefaultFlavorMap();
        SystemFlavorMap sfm = (SystemFlavorMap) fm;
        try {
            df = new DataFlavor(  "application/"
                                + cbName
                                + "; class=java.nio.ByteBuffer");
        } catch (ClassNotFoundException ex) { ex.printStackTrace(); }
        System.err.println(cbName + " " + df.getMimeType());
        sfm.addFlavorForUnencodedNative(cbName, df);
        sfm.addUnencodedNativeForFlavor(df, cbName);
        return df;
    public static void main(String[] args) {
        Clipboard cb = Toolkit.getDefaultToolkit().getSystemClipboard();
        if(cb.isDataFlavorAvailable(VimClipboard2))
            System.err.println("VimClipboard available");
        DataFlavor dfa[] = cb.getAvailableDataFlavors();
        System.err.println("\n" + dfa.length + " flavors\n");
        for (DataFlavor df : dfa) {
            System.err.println(df.getMimeType());
}

Are you using Gmail?
Try deleting the email profile, tap battery, tap restart, go into email and reinstall the profile.

Similar Messages

  • Acrobat Reader 9.5.0 has Clipboard problems

    Repro:
    Launch Microsoft Word 2010.
    Launch Adobe Reader one any Web document.
    Switch to Microsoft Word and Copy some text onto the clipboard.
    And quickly switch back to Adobe Reader and copy some text from there.
        "There was an error while copying to the Clipboard.  An internal error occurred."
    > KernelBase.dll!_RaiseException@16()  + 0x58 bytes
      msvcr80.dll!72ae8e89() 
      [Frames below may be incorrect and/or missing, no symbols loaded for msvcr80.dll]
      AcroRd32.dll!024c3371() 
      AcroRd32.dll!024c38e4() 
      AcroRd32.dll!01fac1e2() 
      AcroRd32.dll!01facaa2() 
      AcroRd32.dll!02093802() 
      AcroRd32.dll!020938d9() 
      AcroRd32.dll!01fac265() 
      AcroRd32.dll!02066b37() 
      AcroRd32.dll!0216cfc6() 
      AcroRd32.dll!020910fd() 
      AcroRd32.dll!02092f1d() 
      AcroRd32.dll!01e1d007() 
      AcroRd32.dll!02042d80() 
      AcroRd32.dll!0204367b() 
      AcroRd32.dll!01fa806e() 
      AcroRd32.dll!0216f585() 
      AcroRd32.dll!0206cd78() 
      AcroRd32.dll!01f99a4e() 
      AcroRd32.dll!01f99b47() 
      AcroRd32.dll!01f05ba6() 
      AcroRd32.dll!01f05930() 
      AcroRd32.dll!01f058a7() 
      AcroRd32.dll!01f05396() 
      AcroRd32.dll!01f052ab() 
      AcroRd32.dll!01e13976() 
      kernel32.dll!74f1140f() 
      0051fe58()
      00000003()
    Clearly Acrobat Reader has a problem.  If you point me at the symbols for AcroRd32 I'll help debug it for you since I can repro it easily.

    Here are few solutions:
    1. You can configure firefox to open pdf in external application like acroread. This way plugin problem is bypassed. - I use it this way. It looks to be faster this way.
    2. "C:\nppdf32Log\debuglog.txt" is created every time in directory from where you executed firefox/opera/other browser and opened any pdf file in browser. So this is not only home directory. You can fix this problem by yourself by hex editing nppdf.so file and replacing C:\nppdf32Log\debuglog.txt path in this file with /dev/null path. See my post here for detailed instructions: http://forums.adobe.com/thread/1253800

  • Native library loading problem

    Hi Folks,
    I currently downloaded, and compiled the bDB core using VS 2010 x64 (I run 64 bit win7, and JRE 64 bit). In Eclipse I'm trying to use the native library (setting up the path correctly), however the java is complaining that it cannot find dependencies.
    I switched to JE, it works fine, but I'm not sure if JE is as performant as the core version. Anybody had the same problem?
    thanks in advance
    Edited by: user5493457 on Mar 22, 2011 3:35 AM

    Hi,
    Please review the building process of the Berkeley DB libraries, to ensure you have correctly built them. Review Building Berkeley DB for Windows, Building the Java API and Java configuration. If you want to build 64-bit libraries, make sure you select x64 as platform configuration in Visual Studio when building.
    I assume you are getting a java.lang.UnsatisfiedLinkError exception at runtime. Just to make sure Eclipse correctly finds the native BDB libraries, in your Run Configuration for the project you're trying to run, under Environment, add a new variable, LD_LIBRARY_PATH with a value of something like D:\BerkeleyDB\db-5.1.25\build_windows\x64\Debug (substitute Debug with Release depending on how you built the libraries) -- this is the path to the location of the native BDB libs, libdb51d.dll and libdb_java51d.dll (or libdb51.dll and libdb_java51.dll), so you should change it as appropriate for your system.
    Also, for that Run Configuration add a new variable, CLASSPATH with a value of something like D:\BerkeleyDB\db-5.1.25\build_windows\x64\Debug\db.jar;D:\BerkeleyDB\db-5.1.25\build_windows\x64\Debug\classes (this is the path to the Java API classes and the Java API jar file -- db.jar). Make sure that "Append environment to native environment" option is checked, in the Run Configurations screen.
    Regards,
    Andrei

  • Native process execution problem in mac os

    hi,
         In my flex application i have to get mac serial  number as a unique id for each system . On searching i got one terminal command to get serial number. For that i have  run terminal command through flex native process. I have set supportedprofile as <supportedProfiles>extendedDesktop desktop</supportedProfiles> in app xml. But when i install and run application on mac terminal is getting opened but command is not executing. I couldn't trace out the problem.  I could execute cmd in windows and that worked . Please help me to findout a solution................... The test code is adding below
    private var process:NativeProcess
    =
    new NativeProcess();
    protected function windowedapplication1_creationCompleteHandler(event:FlexEvent):void
                    // TODO Auto-generated method stub
                    if(NativeProcess.isSupported) {
                        Alert.show("Yes NativeProcess");
                        process.addEventListener(ProgressEvent.STANDARD_OUTPUT_DATA, onOutput);
                        process.addEventListener(ProgressEvent.STANDARD_ERROR_DATA, onIOError);
                        process.addEventListener(IOErrorEvent.STANDARD_OUTPUT_IO_ERROR, onIOError);
                        process.addEventListener(IOErrorEvent.STANDARD_ERROR_IO_ERROR, onIOError);
                        process.addEventListener(NativeProcessExitEvent.EXIT,onIOError);
                        var info:NativeProcessStartupInfo     =     new NativeProcessStartupInfo();
                        info.executable                               =     new File("/Applications/Utilities/Terminal.app/Contents/MacOS/Terminal");
                         /*  var startupArgs:Vector.<String>    =     new Vector.<String>();
                             startupArgs[0]                              =    'system_profiler |grep "r (system)" '; 
                             info.arguments                              =    startupArgs;*/
                        //Alert.show(String(info.arguments.length));
                         process.start(info); 
                        process.standardInput.writeUTFBytes('system_profiler |grep "r (system)" '+ "\n");
                    }else
                        Alert.show("No");
                protected function onIOError(event:IOErrorEvent):void
                    // TODO Auto-generated method stub
                    Alert.show("Error");
                protected function onOutput(event:ProgressEvent):void
                    var processID:String            =    process.standardOutput.readMultiByte(process.standardOutput.bytesAvailable,"");       
                    Alert.show("Path : " + processID );
    I have tried to set arguments but didn't execute......
    Message was edited by: aswathykrishnan

    Hello Aswathy, these days I'm also coding an application which uses AIR NativeProcess and I required to open the MacOS terminal with some parameter/commands. I also eventually turn to the AppleScript, but I considerably new to the AppleScript, yet trying to findout a way to passing parameters (the command argument) to the AppleScript; the appleScript I managed to open but not passing the argument. Can you please help? here's my some probable codes for the application:
    My appleScript is:
    #!/bin/bash
    on run argv
              tell application "Terminal"
                        set currentTab to (do script) & item 1 of argv
              end tell
    end run
    I've packaged the appleScript as an Application (Contract.app) and here's my Flex code:
    var npInfo : NativeProcessStartupInfo = new NativeProcessStartupInfo();
    npInfo.executable = new File( "/Applications/Contract.app/Contents/MacOS/applet" );
                                  var arg:Vector.<String> = new Vector.<String>;
                                      arg[0]="ssh [email protected]";
                                  npInfo.arguments = arg;
                                  process = new NativeProcess();
      process.start( npInfo );
    Can you please help?
    Thank you.

  • Clipboard problem in CS5

    We often have to copy images in Word documents and paste them into a new file in Photoshop.
    Hitting New... in CS4 Photoshop opens a blank file of the correct size and resolution to paste in the clipboard file.
    CS5 cuts the file down to a tiny size and resolution.
    eg a 26MB file on tghe clipboard ends up as a 350k file when pasted.
    Any idea whats going on and how to fix it?

    When copied, 'Show Clipboard' does not show a pic....says it is RTF.
    Pastes perfectly into Text Edit and into Photoshop (CS4)
    Just CS5 PS seems to have a problem with it.
    We dont use Word except to extract stuff from files people send us and our copy of Word X is rather old.
    Maybe therein lies the problem.
    I will try with a newer version of Word.
    Incidentally, experimenting...printing a pdf from the Word file and then copying and pasting from the PDF works fine... copy from a pdf puts a tiff on the clipboard.
    But that is a pain so for the time being we will carry on using PS CS4 for this until a better solution comes up.

  • Clipboard problem

    All, I haven't been able to find such a topic so I assume I am the first one to ask, sorry if not...
    My problem is that the clipboard doesn't work between several applications :
    Camino -> mail
    Word -> mail
    Camino -> Text
    Smultron -> mail
    The clipboard keeps the previous text copied for Text or mail and doesn't paste the text that I have just copied but pastes it correctly in word, smultron or other applications...
    How is it possible with the best OS in the world that I can not copy paste from my browser to a simple mail ?? Do you have a solution to solve this issue or am I the first one experiencing bugs with the clipboard ?
    Thank you in advance for your help.

    HI and Welcome to Apple Discussions...
    *"How is it possible with the best OS in the world that I can not copy paste from my browser to a simple mail ??"*
    It's your 3rd party software, not the Mac OS X.
    Read "a brody's post here regarding 10.6 and 10.6.1
    http://discussions.apple.com/thread.jspa?messageID=10180165#10180165
    Carolyn

  • What's this??  (clipboard problems)

    Getting "OpenClipboard Failed" error in dreamweaver.
    Clipboard works
    in every other application. Never had a problem before. A
    bug?

    Are you running Norton Security? Looks like a notification that it detected and blocked a portscan from the outside world. You probably could have clicked on "Learn more about this attack" to ... learn more.
    A portscan is a detection method to see what network vulnerabilities you have. Think of it like a burglar trying the doors and windows. Generally this only tends to be a problem if you have a computer hooked directly into the internet and don't have a firewall or other protection. Adding a wired or wireless router between your computer and your modem can help protect against incursions.
    If you're not running Norton, and it just appeared while you were browsing, it's a spam popup designed to scare Windows users into downloading malware, and you can just close the window and ignore it.
    Matt

  • E71 native browser "History: problem

    Hi Guys!
    I hope you could help me as I am frustrated already beyond imagination.
    everytime i finish using the native browser surfing the net on my E71, i usually clear all (cache, hsitory, form&password etc..). However, just 2 days ago, I don't know for what reason, but everytime i clear everything, there are two sites that remain. Even after clearing history several times, reset factory settings, turned off and on my phone, still those two sites are there. After this problem, I already have problems connecting to youtube, facebook and google. My browser doesn't load them, but other sites like yahoo, hotmail load without a problem. I don't know what to do already. I need those two deleted from my history. Please help ((((( *sob* *sob* *sob*
    Thanks guys!

    Did you check your bookmarks?
    ‡Thank you for hitting the Blue/Green Star button‡
    N8-00 RM 596 V:111.030.0609; E71-1(05) RM 346 V: 500.21.009

  • Clipboard problems

    Im working on a simple encryption applet, but I have trouble with copying and pasting text from other applications into my applet.
    Within my applet, i can use Ctrl + C or Ctrl + V to copy and paste text but the applet does not seem to respond to text i copied from somewhere else, and I cannot paste text from my applet to any other application either.
    So, I tried looking in the Java documentation, and I came across the awt toolkit where i can access the system clipboard. I used their example on how to use it, but even with that, i have no luck. when I try to cut / paste nothing happens at all.
    this is a code snippet for the copy and paste segment.
    public void actionPerformed(ActionEvent e) {
             //Paste text
             if (e.getActionCommand().equals(PASTE)){
                   Transferable t =
                           Toolkit.getDefaultToolkit().getSystemClipboard().getContents(null);
                   try {
                        if (t != null && t.isDataFlavorSupported(
                             DataFlavor.stringFlavor)) {
                        String s = (String)t.getTransferData(
                            DataFlavor.stringFlavor);
                          input.setText(s); //input is a JTextArea
                   catch (UnsupportedFlavorException e2) {
                   catch (IOException e2) {
             //Copy text
             if (e.getActionCommand().equals(COPY)){
                  StringSelection out = new StringSelection(output.getText()); //output is a JTextArea
                  Toolkit.getDefaultToolkit().getSystemClipboard().setContents(out, null);
    }I'd appreciate any help. I'm stumped.
    Thanks,
    Alvin

    try this:
    for Placing Text on the System Clipboard
    StringSelection ss =
       new StringSelection("aString");
    // The following 2 lines of code must be
    // on the same line
    Toolkit.getDefaultToolkit().getSystemClipboard().setContents(ss, null);for Retrieving Text from the System Clipboard
    // The following 3 lines of code must be
    // on the same line
    Transferable t = Toolkit.getDefaultToolkit().getSystemClipboard().getContents(null);
    try {
       if (t != null && t.isDataFlavorSupported(
         DataFlavor.stringFlavor)) {
           String s = (String)t.getTransferData(
             DataFlavor.stringFlavor);
           process(s);
    } catch (UnsupportedFlavorException e) {
    } catch (IOException e) {
    }

  • ClipBoard problems with Views

    Hi
    I once tried using views in ClipBoard
    It worked
    However now Views don't seem to be working at ll
    In the sense , it permits to insert a row but not the BLOB or image data into the table thru the view
    Well, the details are as follows
    Table CONTENT
    id number(10) PK
    content OrdSys.OrdImage
    View CONTENTVIEW
    select * from CONTENT;
    Now I use this view for uploading the documents thru Clipboard
    It permits to insert a row but not upload the document itself
    The error is
    "table not found"
    I tried having the table as well as the view in the same schema, it still does not work
    Any solutions please
    nandeep

    Well, Mizuno
    Thank you once again.
    i recollect that you had warned me .
    I have a problem here.
    We have around 10 content managers
    And each need to have his own login name and password.
    Haveing seperate schemas does not seem to work out.
    Any solutions
    Also security is a problem
    One more thing is that we wanted to have a history table which will store even the versions of the content.
    Do database triggers work with OrdImage type or the BLOB datatypes?
    Or will they give some problems?
    Or is there a better approach for this problem
    Even synonyms do not work in ClipBoard by the way.
    It is only the table and nothing but the table
    Thank you
    nandeep

  • Clipboard problems in conjunction with Word 2004 and Acrobat 7

    Does anyone else out there have problems with Word and Acrobat crashing when you are doing a cut and paste? I sometimes get problems with cutting and pasting in word, and sometimes I get it trying to paste text from acrobat to word. Could be word related, but it feels more like the clipboard is getting too full, and dragging the clipped application down with it. There are no warnings. Any ideas?
    iBook G4   Mac OS X (10.3.9)  

    Hello TL49,
    Welcome to the HP Forums.
    I understand that you're having an issue printing envelopes in Word 2011 on your Mac 10.9 with the Officejet 100 mobile. I will do my best to assist you with this.
    Please make sure you have downloaded the full feature software for your printer from hp.com.
    Remove and re-add your printer.
    Choose Apple menu > System Preferences Then choose View > Print & Scan
    Highlight the printer and click the (-) to delete it.
    Click the (+) to setup printer. Choose add other printer/scanner.
    Make sure the "Use" is set to the HP mobile 100 and not Airprint.
    Close out of Word and restart the Mac after adding in your printer.
    Try printing envelopes in Word 2011 to test.
    Please let me know how you make out, and thank you for posting on the HP Forums.
    I worked on behalf of HP.

  • Clipboard problems etc

    Hi, can anyone help please, I'm having a really weird problem, my iTunes just keeps on loading up! I quit it and within a minute or so it loads again by itself, it's driving me mad!!
    Also I am having problems copying artwork from Illustrator into Photoshop. I keep getting the message: Could not complete the paste command because of an error getting data from the clipboard or another application. These two problems seem to have come around at about the same time, least I think. Could they be related?
    I have tried changing the enable version cue on and off in Illustrator prefs but this doesn't help.
    I've also tried restoring the permissions but still no change. I've never had this problem before until now.
    Anyone got any ideas?.....PLEASE!!!
    Thanks.

    Thing is, I hadn't had iTunes running when it started happening and I also have an iTunes widget which I've had for ages but it's only recently that this has started happening.
    Thanks for the reply though.

  • More clipboard problems

    I use a multi clipboard called Spartan. With Click to call installed, i cannot paste into my browser.

    I'm having similar problems. Just got the iPod Touch 4th Gen a week ago and now it crashes multiple times throughout the day. I turn off the Wi-Fi or set it to Airplane mode, when I go to bed at night, and when I wake the battery is drained, not completely but what is causing this if the unit is off.
    Today it has crashed 5 times in 1 hour. Will calling support later today, but at this point I'm ready to send it back and request a refund or exchange. You would think that after spending ~400 dollars that there wouldn't be issues like this. It's partly my own fault for not looking through all the problems that have been plageing these products for some time now.

  • Flash cs6 native ane publish problem

    hi! i was very lucky to download and test flash cs6, but there are directly problems with the publish function
    after i add an ane file, i get this error:
    DVFreeThread - CFMachPortCreateWithPort hack = 0x18fe90, fPowerNotifyPort= 0x19d5a0
    DVFreeThread - CFMachPortCreateWithPort hack = 0x1a96b0, fPowerNotifyPort= 0x18c5e0
    DVFreeThread - CFMachPortCreateWithPort hack = 0x19d0a0, fPowerNotifyPort= 0x19d5a0
    invalid profile specified 'Application does not support current profile'
    if i'm testing another ane file, i get this error:
    DVFreeThread - CFMachPortCreateWithPort hack = 0x32a460, fPowerNotifyPort= 0x319fc0
    DVFreeThread - CFMachPortCreateWithPort hack = 0x1454b0, fPowerNotifyPort= 0x12c400
    The content cannot be loaded because there was a problem loading an extension: Error: Requested extension com.wolfknock.idialog is not supported for MacOS-x86.
    both ane files was supported on the cs5.5 version. so should cs6 not be besser than 5.5?
    i'm using the default deliverd air3.2 and mac lion..
    maybe it's because the new option ios sdk 5.1 (checkbox?)

    Unfortunately it's a compile time error not a runtime error. If it was runtime then yes you could certainly check the typical isSupported() method most ANEs have. Although you need to compile to get to that point and the compiler is throwing the error.
    Flash CS5.5 didn't have a problem because you needed to package with ADT command line to include a native extension as it had no idea what it was so it makes sense you could test using it. Flash Builder users (which has had ANE support) have had to deal with keeping ANEs from being packaged to avoid the same compiler errors you're getting. We're very used to the PITA that it is
    All an ANE developer needs to do is provide an implementation for a particular platform, even if it doesn't work, and you won't get errors. During creating the static library for the ANE the iOS developer could specify support for it in the build. Unfortunately the ANE you're using doesn't have that. It's telling Flash it only works on a device.

  • 1240AG Access Point/Native VLAN/VLAN Problem

    Need to setup several SSID's with different Encryption levels. The access point connects to a plain D-link switch, not able to define a truck on the switch which is causing problems when only one of the SSID's is set for Native VLAN (DHCP server cannot be contacted with the other SSID's).
    Anyway to get around this problem !!!!

    Nope.... you need to be able to define the vlans on the switch. You need a switch where you can configure a dot1q trunck and then you can make this work. Right now, you can only have one.

Maybe you are looking for

  • Withholding tax fields in Vendor master is not avbl to config as sensitive

    Hi, I need to configure, fields in Withholding tax accounting as sensitive fields in Vendor Master. Table reference for Withholding tax is LFBW. But the fields from this table are not avbl for configuring in SPRO. It gives an error message as: This f

  • Install crystal repport 2011 client hungs and how to uninstall it manually

    Dear Experts, i want to know whether there are some way to uninstall crystal report 2011 client manually? IT has re-image my OS to win7 with crystal 2008 viewer on my laptop, and when i installed crystal report 2011 client i didn't notice that i have

  • ZFS work with Ldom and zvol REFER size can't reduce

    Anyone can help to take a look following: I do the zfs simulation below and show below output. 1) Create image file root@solaris:/a# mkfile 200m img.img 2)Create test pool use img.img file root@solaris:/a# zpool create -f test /a/img.img root@solaris

  • How to user 'wrap' to encapsulation my package?

    I can't find some document about how to use this command in linux,somebody help me?? null

  • My mini won't work

    My mini has suddenly stopped working. It crashed this morning and now everytime I turn it on, I get a screen that says the computer needs to restart. I have reset the PMU and also tried to start the computer from the system DVD but it won't work. I w