Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Drag-n-drop error after Security Update 2007-009 (PPC)?



On Dec 18, 2007, at 12:08 PM, Keith Bettinger wrote:

After installing Security Update 2007-009 (PPC) to my OS 10.4.11 PowerMac, problems emerged in the following, mostly vanilla, drag and drop code:

    public void drop(DropTargetDropEvent dtde)
    {
      Transferable t = dtde.getTransferable();
      
      try {
        if (t.isDataFlavorSupported(fileFlavor))
          {
            idTree.setBorder(idTreeOrigBorder);

            dtde.acceptDrop(DnDConstants.ACTION_COPY_OR_MOVE);

            java.util.List files = (java.util.List) t.getTransferData(fileFlavor);
            loadFiles(files);

            dtde.dropComplete(true);
          }

When a file from the Finder is dragged into the component to which the above code is attached, the application started printing these messages in the console :

2007-12-18 11:48:50.659 java[641] A zero-length URL was found on the pasteboard.
2007-12-18 11:48:50.659 java[641] Looked for URLs on the pasteboard, but found none.
2007-12-18 11:48:50.677 java[641] CDataTransferer_dragQueryFile: plist not a valid NSArray (error XML parser error:
Unexpected character U at line 1
Old-style plist parser error:
Unexpected ';' or '=' after key at line 1
).

The "files" variable in the code above then is null for the call to loadFiles(), and problems ensue.

This problem occurs with both the 1.4.2 and the 1.5 JREs.

Has anyone else experienced this problem, and is there a solution?

This appears to be an issue with Java Update 6 for Mac OS X v10.4. We believe that a workaround for this issue is to set the "file.encoding" system property to "UTF-8" (-Dfile.encoding=UTF-8) for your application.

Please file a bug with this issue, and please report of changing the file encoding works for you.

Mike Swingler
Java Frameworks Engineer
Apple Inc.
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden

References: 
 >Drag-n-drop error after Security Update 2007-009 (PPC)? (From: Keith Bettinger <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.