Problem using File.rename( )

I'm having trouble with the following code. In certain situations the renameTo(tmpFile) fails. The problem only occurs on UNIX (Solaris and AIX) and only occurs if f.getFilename( ) returns a filename not located in the directory from which the VM is running. If I run on NT it doesn't matter where the file specified by f.getFilename( ) resides, there are no problems. Does anyone know what the problem is or a way to get around it? Thanks in advance!
java.io.File tmpFile = new java.io.File("jasontemp.xml");
boolean fileOpRes = false;
if (tmpFile.exists( ))
fileOpRes = tmpFile.delete( );
java.io.File oldFile = new java.io.File(f.getFilename( ));
boolean result = oldFile.renameTo(tmpFile); // This is the call that fails

I haven't used Solaries and AIX for years now, but if I remember correctly, the mv command (used to rename a file) requires a path in the destination if the source contains a path. If this is correct, you may have to add the path to tmpFile to accomplish the same thing.
V.V.

Similar Messages

  • Problem using File sharing  in a small office network

    I have a problem using File sharing on an Imac and Macbook Pro.
    My office has a small network running Windows Small office file server 2003. I have one Windows 2000 PC connected to it and 3 Macs, an 2.4 gHz Intel iMac running Leopard 10.5.6 , a MBP running the same and a Mac Mini running 10.5.
    From the Finder Shared window of the Mac Mini, I can see all the computers on the network. It also used to be the case for the iMac, but the MBP could never see the Windows PC’s, not the server or the Win2000. This wasn’t a big problem as I was communicating between the Macs and using the shared printer on the iMac.
    On Monday Jan 19 the iMac was suddenly unavailable to the other 2 Macs. It was working normally on the Friday. The iMac can access the Mac Mini and copy files to it. The Mac Mini can see the iMac but cannot access it. Even trying to connect as, ends in a failed connection. I have tried rebooting, turning File sharing off and then on again to no avail.
    The iMac now also cannot see the Windows PC’s which it previously could.
    To get files from the MBP for printing, I now copy it to the Mac Mini and acces the folder from the iMac, a very tedious procedure. I don’t know why this happened and am scared that the Mac Mini is going to do the same thing.
    All three computers are also running VMware 2.0 with Windows XP pro, and from VMware the server is visible on all the computers.
    Any help will be much appreciated, I live in a small town in South Africa and the local computer suppliers have no knowledge of the Macs.
    I think that the problem with the iMac may have started after a software upgrade to 10.5.6 but I am not entirely sure.
    Thank you
    ajdk

    Well, you're current method sounds pretty good. But if you want to user a file server, hey go ahead.
    What you want to do when you centralize project files is to keep track of which one is the newest and becareful not to overwrite files with the same name. So you either have to set up individual spaces on the server (separate AFP/FTP folders maybe), or you'll need to run a file checkout service.
    The individual space is cheaper, but it's not much of a difference from backing up to the network drive. Since you have Gigabit connections, you might even opt to save ALL the user files on the server instead of just the project files.
    If you want to run a file checkout service, there's two approaches. You can run a service that can host any kind of file, or you can run a version control system for each kind of application (Photoshop, Word, etc.). Please notice, that as you read further and further along, the methods become more and more expensive and complicated. Once you get to this point, it will be necessary to purchase or build software in addition to the Mac OS X Server package.

  • Problem using File upload in portlets

    hello there
    I'm trying to use file upload component in one of my portlets. I searched a lot about a working component to be used in portlets since the standard one that comes with JSC doesn't work in portlets. I managed to get commons file upload and tomahawk to run in my portlet, but when I choose a file and try to get selected file's details it throughs a NullPointerException reporting that the file object is null.
    so please can anyone guide me to a working portlet example, I tried to find one but I couldn't. if that's hard to find, what should I do ?
    thank you in advance

    I added file upload component in JSF from portlets in Sun Java Portal server.
    Take a look...
    portlet.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <portlet-app xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd"
    version="1.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd">
    <portlet>
    <description>SFTB Anonymous Mail Portlet</description>
    <portlet-name>SFTBAnonymousMailPortlet</portlet-name>
    <display-name>SFTBAnonymousMailPortlet</display-name>
    <portlet-class>org.apache.portals.bridges.portletfilter.FilterPortlet</portlet-class>
    <init-param>
    <name>portlet-class</name>
    <value>com.sun.faces.portlet.FacesPortlet</value>
    </init-param>
    <!-- Filter for MyFaces Tomahawk extension. -->
    <init-param>
    <name>portlet-filters</name>
    <value>jp.sf.pal.tomahawk.filter.ExtensionsPortletFilter</value>
    </init-param>
    <init-param>
    <description>Portlet init page</description>
    <name>com.sun.faces.portlet.INIT_VIEW</name>
    <value>/jsp/index.jsp</value>
    </init-param>
    <supports>
    <mime-type>text/html</mime-type>
    <portlet-mode>VIEW</portlet-mode>
    <portlet-mode>EDIT</portlet-mode>
    <portlet-mode>HELP</portlet-mode>
    </supports>
    <portlet-info>
    <title>&#1054;&#1090;&#1087;&#1088;&#1072;&#1074;&#1082;&#1072; &#1087;&#1088;&#1077;&#1076;&#1083;&#1086;&#1078;&#1077;&#1085;&#1080;&#1081;</title>
    <short-title>&#1054;&#1090;&#1087;&#1088;&#1072;&#1074;&#1082;&#1072; &#1087;&#1088;&#1077;&#1076;&#1083;&#1086;&#1078;&#1077;&#1085;&#1080;&#1081;</short-title>
    </portlet-info>
    </portlet>
    </portlet-app>
    web.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
    <display-name>SFTBAnonymousMailComment</display-name>
    <context-param>
    <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
    <param-value>server</param-value>
    </context-param>
    <context-param>
    <param-name>javax.faces.CONFIG_FILES</param-name>
    <param-value>/WEB-INF/faces-config.xml</param-value>
    </context-param>
    <!--
    Extensions filter from Apache MyFaces Tomahawk used for uploads files.
    -->
    <filter>
    <filter-name>ExtensionsFilter</filter-name>
    <filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter</filter-class>
    <init-param>
    <param-name>uploadMaxFileSize</param-name>
    <param-value>10m</param-value>
    <description>Set the size limit for uploaded files.
    Format: 10 - 10 bytes
    10k - 10 KB
    10m - 10 MB
    1g - 1 GB
    </description>
    </init-param>
    <init-param>
    <param-name>uploadThresholdSize</param-name>
    <param-value>100k</param-value>
    <description>Set the threshold size - files
    below this limit are stored in memory, files above
    this limit are stored on disk.
    Format: 10 - 10 bytes
    10k - 10 KB
    10m - 10 MB
    1g - 1 GB
    </description>
    </init-param>
    </filter>
    <filter-mapping>
    <filter-name>ExtensionsFilter</filter-name>
    <servlet-name>FacesServlet</servlet-name>
    </filter-mapping>
    <servlet>
    <servlet-name>FacesServlet</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
    <servlet-name>FacesServlet</servlet-name>
    <url-pattern>*.faces</url-pattern>
    </servlet-mapping>
    </web-app>
    Files in WEB-INF/lib
    commons-beanutils-1.7.0.jar
    commons-collections-3.2.jar
    commons-digester-1.8.jar
    commons-fileupload-1.2.1.jar
    commons-io-1.2.jar
    commons-logging-1.1.1.jar
    faces-response-filter-0.2.jar
    jsf-api-1.1_02.jar
    jsf-impl-1.1_02.jar
    jsf-portlet-1.1.5.jar
    jstl-1.1.0-D13.jar
    log4j-1.2.9.jar
    portals-bridges-portletfilter-1.0.jar
    standard-1.1.0-D13.jar
    tomahawk-1.1.6.jar
    tomahawk-bridge-0.9.1.jar
    Files tomahawk-bridge-0.9.1.jar, faces-response-filter-0.2.jar may be found there http://sourceforge.jp/projects/pal/
    In JSF beans I'm using org.apache.myfaces.custom.fileupload.UploadedFile
    Hope this helps.
    Bests,
    Alex Magdenko

  • Problem using file sharing and screen sharing in Leopard

    I have Mac OS 10.5 Leopard installed on 4 computers in a Home Network and have a problem with sharing files and using screen sharing. Here is my setup.
    MacBook Pro with my logon ID
    MacBook Pro with my fiancee's logon ID
    Mac Mini with both of our logon ID's
    Mac Pro with both of our logon ID's
    The problem I have is I am able to access the Mac Mini computer where we have an external Hard Drive connected for data. She is also able to access it. The only problem is we have it set up to only share this external USB drive. Yet for both of us it shares the external drive along with the internal Macintosh HD. Fortunately this is not a very big deal but since I'm not sharing all those drives why is it doing this?
    Also, I am able to connect from the Mac Mini for example to my MBP and vice versa for screen sharing along with file sharing. Yet if she tries to connect to the Mac Pro from her MBP and vice versa it won't. It simply times out and will never connect for screen sharing or file sharing but yet the Finder shows the Mac Pro. We have a 2nd hard drive in the Mac Pro which is the one set up for file sharing. I am also unable to connect to the Mac Pro's HD. Everything appears to be set up correctly. For my MBP on the Finder it shows the Mac Pro but once again I am unable to connect to it for screen sharing or file sharing.
    Also, not sure if it's related but even for her MBP she is unable to connect to it from any other computer in our network although it's set up for file sharing and screen sharing so I'm not sure if it's related to her logon ID. Then again as mentioned above neither of us can connect to the Mac Pro.
    I tried to make the above sound as simple as possible. I am relatively new to networking and of course Leopard but even on the Mac Pro all settings sound the same as on the Mac Mini where we can both connect to. The only big difference is on the Mini we are connect to a USB external drive, on the Mac Pro an internal drive. Is there something I could have overlooked or are there known issues with Leopard's sharing features?
    We both have .mac but since we are using this on an internal network (some wi-fi, some wired, all through an Airport Base Station Extreme) I would think this has nothing to do with Back to my Mac.
    I appreciate any help with the above.

    FaceTime doesn't do any of that, so I'll assume you mean Messages.
    From the Messages menu bar, select
    Video ▹ Connection Doctor
    In the window that opens, select
    Show: Capabilities
    There should be a checkmark on the line with the words "1-on-1 video chat." Select
    Show: Network Status
    You should have two green dots.
    Make sure that you and the other party meet the applicable requirements shown in these support articles:
    Share your screen
    Requirements for audio chats, video chats, and screen sharing
    See also:
    Fix video chat issues

  • Problem using file based JNDI with JMS Bridge, WL 6.1sp3

              I am trying to connect an MQ queue to a Weblogic JMS queue using the JMS bridge,
              WLS6.1sp3. I have the CR081404_61sp3.jar and CR081511_61sp3.jar patches.
              I am having trouble getting the bridge to look up the MQ queue in the file based
              JNDI. According to the log it is trying to use a weblogic.jndi.WLInitialContextFactory
              instead of a com.sun.jndi.fscontext.RefFSContextFactory, which is what it is configured
              to use. I am getting the following error:
              <Sep 29, 2002 12:16:22 PM EDT> <Info> <MessagingBridge> <Bridge "Provd Messaging
              Bridge" is getting the connections to the two adapters.>
              <Sep 29, 2002 12:16:22 PM EDT> <Debug> <MessagingBridge> <Messaging Bridge Debugging
              RUNTIME! Bridge Provd Messaging Bridge In getConnections: isStopped = false>
              <Sep 29, 2002 12:16:22 PM EDT> <Debug> <MessagingBridge> <Messaging Bridge Debugging
              RUNTIME! Bridge Provd Messaging Bridge Getting source connection: sourceConnSpec
              = weblogic.jms.adapter.JMSConnectionSpec@27166f>
              <Sep 29, 2002 12:16:22 PM EDT> <Info> <Connector> <Unable to locate context: java:/comp/env/wls-connector-resref>
              <Sep 29, 2002 12:16:22 PM EDT> <Info> <Connector> <Unable to determine Resource
              Principal for Container Managed Security Context.>
              <Sep 29, 2002 12:16:22 PM EDT> <Info> <Connector> <Unable to locate context: java:/comp/env/wls-connector-resref>
              <Sep 29, 2002 12:16:22 PM EDT> <Info> <Connector> <Unable to determine Resource
              Principal for Container Managed Security Context.>
              <Sep 29, 2002 12:16:22 PM EDT> <Warning> <Connector> << Weblogic Messaging Bridge
              Adapter (XA) > ResourceAllocationException of javax.resource.ResourceException:
              ConnectionFactory: failed to get initial context (InitialContextFactory =weblogic.jndi.WLInitialContextFactory,
              url = file:/opt/mqm/java/mq-jndi, user name = guest, password = guest on createManagedConnection.>
              <Sep 29, 2002 12:16:22 PM EDT> <Error> <Connector> <Error granting connection
              request.>
              <Sep 29, 2002 12:16:22 PM EDT> <Info> <MessagingBridge> <Bridge "Provd Messaging
              Bridge" failed to connect to the source destination and will try again in 25 seconds.
              (javax.resource.spi.ResourceAllocationException: CreateManagedConnection Error:
              ConnectionFactory: failed to get initial context (InitialContextFactory =weblogic.jndi.WLInitialContextFactory,
              url = file:/opt/mqm/java/mq-jndi, user name = guest, password = guest)>
              <
              The configuration of the bridge, printed out in the log, is:
              <Sep 29, 2002 12:16:00 PM EDT> <Debug> <MessagingBridge> <Messaging Bridge Debugging
              STARTUP! Bridge Provd Messaging Bridge's source properties are:
              AdapterJNDIName=eis.jms.WLSConnectionFactoryJNDIXA
              Classpath=null
              ConnectionFactoryJNDIName = PMS.mqQcf
              ConnectionURL = file:/opt/mqm/java/mq-jndi
              InitialConnectionFactory = com.sun.jndi.fscontext.RefFSContextFactory
              DestinationType = Queue
              DestinationJNDIName = PMS.mqProvdRequest>
              <Sep 29, 2002 12:16:00 PM EDT> <Debug> <MessagingBridge> <Messaging Bridge Debugging
              STARTUP! Bridge Provd Messaging Bridge's target properties are:
              AdapterJNDIName=eis.jms.WLSConnectionFactoryJNDIXA
              Classpath=null
              DestinationType = Queue>
              Am I correct in assuming it should be using the fscontext connection factory?
              Why is it using the weblogic one?
              Jason
              

    CR081511_61sp3.jar patch should fix the problem. Make sure that the
              jar file is picked up. It should be put before other weblogic jar files.
              You should be able to tell if it is picked up by looking at the first
              couple of lines of your server log file.
              Dongbo
              Jason Kriese wrote:
              >
              > I am trying to connect an MQ queue to a Weblogic JMS queue using the JMS bridge,
              > WLS6.1sp3. I have the CR081404_61sp3.jar and CR081511_61sp3.jar patches.
              >
              > I am having trouble getting the bridge to look up the MQ queue in the file based
              > JNDI. According to the log it is trying to use a weblogic.jndi.WLInitialContextFactory
              > instead of a com.sun.jndi.fscontext.RefFSContextFactory, which is what it is configured
              > to use. I am getting the following error:
              >
              > <Sep 29, 2002 12:16:22 PM EDT> <Info> <MessagingBridge> <Bridge "Provd Messaging
              > Bridge" is getting the connections to the two adapters.>
              > <Sep 29, 2002 12:16:22 PM EDT> <Debug> <MessagingBridge> <Messaging Bridge Debugging
              > RUNTIME! Bridge Provd Messaging Bridge In getConnections: isStopped = false>
              > <Sep 29, 2002 12:16:22 PM EDT> <Debug> <MessagingBridge> <Messaging Bridge Debugging
              > RUNTIME! Bridge Provd Messaging Bridge Getting source connection: sourceConnSpec
              > = weblogic.jms.adapter.JMSConnectionSpec@27166f>
              > <Sep 29, 2002 12:16:22 PM EDT> <Info> <Connector> <Unable to locate context: java:/comp/env/wls-connector-resref>
              >
              > <Sep 29, 2002 12:16:22 PM EDT> <Info> <Connector> <Unable to determine Resource
              > Principal for Container Managed Security Context.>
              > <Sep 29, 2002 12:16:22 PM EDT> <Info> <Connector> <Unable to locate context: java:/comp/env/wls-connector-resref>
              >
              > <Sep 29, 2002 12:16:22 PM EDT> <Info> <Connector> <Unable to determine Resource
              > Principal for Container Managed Security Context.>
              > <Sep 29, 2002 12:16:22 PM EDT> <Warning> <Connector> << Weblogic Messaging Bridge
              > Adapter (XA) > ResourceAllocationException of javax.resource.ResourceException:
              > ConnectionFactory: failed to get initial context (InitialContextFactory =weblogic.jndi.WLInitialContextFactory,
              > url = file:/opt/mqm/java/mq-jndi, user name = guest, password = guest on createManagedConnection.>
              >
              > <Sep 29, 2002 12:16:22 PM EDT> <Error> <Connector> <Error granting connection
              > request.>
              > <Sep 29, 2002 12:16:22 PM EDT> <Info> <MessagingBridge> <Bridge "Provd Messaging
              > Bridge" failed to connect to the source destination and will try again in 25 seconds.
              > (javax.resource.spi.ResourceAllocationException: CreateManagedConnection Error:
              > ConnectionFactory: failed to get initial context (InitialContextFactory =weblogic.jndi.WLInitialContextFactory,
              > url = file:/opt/mqm/java/mq-jndi, user name = guest, password = guest)>
              > <
              >
              > The configuration of the bridge, printed out in the log, is:
              >
              > <Sep 29, 2002 12:16:00 PM EDT> <Debug> <MessagingBridge> <Messaging Bridge Debugging
              > STARTUP! Bridge Provd Messaging Bridge's source properties are:
              > AdapterJNDIName=eis.jms.WLSConnectionFactoryJNDIXA
              > Classpath=null
              > ConnectionFactoryJNDIName = PMS.mqQcf
              > ConnectionURL = file:/opt/mqm/java/mq-jndi
              > InitialConnectionFactory = com.sun.jndi.fscontext.RefFSContextFactory
              > DestinationType = Queue
              > DestinationJNDIName = PMS.mqProvdRequest>
              > <Sep 29, 2002 12:16:00 PM EDT> <Debug> <MessagingBridge> <Messaging Bridge Debugging
              > STARTUP! Bridge Provd Messaging Bridge's target properties are:
              > AdapterJNDIName=eis.jms.WLSConnectionFactoryJNDIXA
              > Classpath=null
              > DestinationType = Queue>
              >
              > Am I correct in assuming it should be using the fscontext connection factory?
              > Why is it using the weblogic one?
              >
              > Jason
              

  • Problem using File Sharing to access files from my old emac.

    I have a new imac and I'm trying to share files with my older emac. I can access my imac files from my old emac through File Sharing, but I can't seem to access the old emac files from my imac. On my imac I can get to the Drop Box folder through File Sharing, but when I try to open the Drop Box folder I get this error message "The folder “Drop Box” can’t be opened because you don’t have permission to see its contents." What do I need to do to be able to open the Drop Box folder? Where do I need to go to change the permissions so that I can open the Drop Box folder?
    Thanks in advance,
    George

    The easiest way is when you connect, connect as the admin user and you'll be able to access the entire user folder (and more). So (depending on the version of OS) select "connect as..." then put in the username and password of the user you are connecting to (so the details of the eMac you are connecting to). This should allow you to access the entire user folder.
    If you select any folder or file, then press command+i (or 'get info' from the file menu in finder), it will launch a window with more info about the file/folder. At the bottom of the window you have "sharing and permissions" - in here you can (after unlocking with admin username and password) add permissions for your user.
    The dropbox is usually used to transfer to a machine - so you'd generally use it to drop something from anywhere on your eMac into the dropbox on the iMac, and then you can recover it from the dropbox on the iMac. The permissions are set so anyone from the outside can only write to this folder.

  • Problem using file content conversion

    I want to generate a input message with no recordset and root element
    It just contains one element like below:
    <line>AI0 AXXX-001 20089830 120</line>
    <line>AI0 AXXX-002 20089830 120</line>
    What properties I need to setup in file content conversion to get this format message?
    The data inside <line> comes from a txt flat file.
    Please help
    Thanks
    Gopal

    Hi,
    Root element can be ignore  by using FCC property Recordset Name i.e ignoreRecordsetName: true
    If you set the parameter to true, the <Recordset> element is not inserted.
    Recordset Name defines the root node under which rest of the XML will be created.  If not required ignore.
    As Recordset Structure is a mandatory parameters, So I'm not sure how you ignore it.
    Abid!

  • Small problem using File.isDirectory()

    Hi
    I have a quite possible dumb question..
    How to get a parent file(directory) from a given class, not knowing before runtime where that class is located...
    The folowing code should give the parent directory, but file.isDirectory() dont agree..
    take a look..
    This code
            root = new File(getClass().getResource(getClass().getName()+".class").getPath()).getParentFile();
            System.out.println(root);
            System.out.println("Absolute: "+root.isAbsolute());
            System.out.println("File    : "+root.isFile());
            System.out.println("Dir     : "+root.isDirectory());prints this:
    F:\docs\java%20projects\testFileCopy\build\classes
    Absolute: true
    File    : false
    Dir     : falseI dont really know what is going on, but as long as it dont recognize the file as a dir, then i cant get the files in the dir... and i need those...
    By the way - the path: F:\docs\java%20projects\testFileCopy\build\classes is the right path to the dir...

    sigh
    "Getting the directory of the class file" is almost
    without exception, always, always, always, a
    mis-design on the part of the one thinking he/sheChill lol
    "directory" for the class file then. Do you want to
    make your app only work when it is installed as a
    bunch of loose .class files in the file system, or
    would you rather make it more flexible?Not actually the question that was axed, but you have a point.
    It is much more flexible if you quit thinking of
    the file system, and instead concentrate on
    "resources" loadable from the "classpath".I agree with this. You had me at hello

  • Problem Using File adapter(Urgent)

    Hi,
    I have a simple ESB service where I have one Read File adapter for reading a file and other Write file adapter to write the same file to a folder.
    I was able to deploy it to ESB instance successfully.
    But when I put a file to read ESB is throwing
    "OracleASjms/ESBDeferredTopic" error.
    Can any one please help me.
    Thanks
    Rao.

    We would be able to help you better if you provided the full error stack as this is very generic.
    Generally the most common issue with the file adapter is permissions, make sure the SOA suite owner is able to read and write on the directory and the file.
    otherwise post the error stack which may identify the real cause.
    cheers
    James

  • Problem using File or URL ....

    i completly formatted my computer , before i did the format for instance whenever i instantiate a
    File f = new File("testInput.txt");that worked and i could do ouputstream or what ever but now i have to put the complete path .e.g
    File f = new File("c:\\test.txt");please help...

    coz putting the complete path reduce java's power of platform independenceno, there is no danger. this phenomenon is completely local to
    just you.
    File file = new File("file.txt");
    Always works. And it always find the file "file.txt" in the working directory.
    Try this, print:
    new File(".").toAbsolutePath();
    And make sure your working directory is what you think it is.

  • Files renaming themselves

    I have had on ongoing problem with files renaming themselves most often with a numeric file name. It has happened with Quark , Illustrator and Photoshop files. There is no pattern... it happens randomly at different times. File names are less than 31 characters. Sometimes when I have linked files in Quark from Photoshop, the linked names willl change but not neccessarily the file name itself on the hard drive. Sometimes both names change, sometimes only the linked name will change in the usage box in Quark, sometimes the file will rename itself on the hard drive. For instance, a file recently named SPI6007_past_presentadult.qxd has renamed itself on my hard drive as QXP-1055969291.qxp In this case, it has created another file and did not replace the original. This has been an ongoing issue and I have worked at several agencies with several different computers and several different Mac Operating Systems. Any help is much appreciated. Out IT guys are stumped.

    Gary,
    I have had this problem over our network. I transfered a folder with a Quark file and about 50 pieces of art. Most of the art had changed to numbers. I would have been sunk if it were not for the folder still on the server. Still had a lot of changing to do. Other computers on network have not been affected--yet. I have had problems with Quark, Photoshop and Illustrator files changing from app files to Unix files. I have searched the discussion pages and have not found a beneficial solution. One thing I have done is to install Quark, Photoshop and Illustrator on our server. This forces the system to recognize the icons and . I am telling our artists to let the program add the extension and for them not to delete it. This will solve the problem from this point on. We still have lots of art that do not have extensions and will cause problems. One site that was somewhat helpful that I would recommend is www.thexlab.com. You will find some information there about resetting launch services. Good luck.

  • A strange problem using the zip files

    I'm currently working on a university project with another student in which we use zip files (using the java ZipFile , and ZipOutputStream classes), we write certain data to a zip file (and verify that it is there by checking the disk). and later we read the zip file, and write it back , appending some data at the end of the file.
    although we see the changes actually take place on the disk , in one of the cases when reading the data we don't see the data we have appended before (although it is physically written on the disk).
    testing has revealed that this has something to do with the rename command or java being unsynchronized with the data actually on the disk (caching problem?).
    we use this code to preform the process:
    ZipFile zf= new ZipFile( ((Integer)lexicon.get(keyword)).intValue()+".zip");
              BufferedInputStream input= new BufferedInputStream(zf.getInputStream(new ZipEntry("data")));
              // create a temporary new zip file.
              ZipOutputStream zipst= new ZipOutputStream(new FileOutputStream( ((Integer)lexicon.get(keyword)).intValue()+".tmp.zip"));
              BufferedOutputStream output =new BufferedOutputStream(zipst);
              zipst.putNextEntry(new ZipEntry("data"));
              // stream the contents of the old file into the new file
              //(we do it this way because of the inability of the java zip file interfaces to add to an existing zip file)
              int current = input.read();
              while(current!=-1){
              output.write(current);
              current = input.read();
              output.write(entry.getBytes(false)); // add the new entrys.
              output.flush();
              zipst.closeEntry();
              output.close();
              // erase the old file.
              File toErase = new File( ((Integer)lexicon.get(keyword)).intValue()+".zip");
              toErase.delete();
              // rename the temporary file to the old files name.
              File toRename = new File( ((Integer)lexicon.get(keyword)).intValue()+".tmp.zip");
              toRename.renameTo(new File( ((Integer)lexicon.get(keyword)).intValue()+".zip"));
    we use:
    1. j2sdk 1.4.2_05
    2. running under libranet linux.
    any help will be appreciated

    the data does indeed get lost in the course fo rewriting the file, e assume this is some sort of synchronization issue with java and the file system.
    addig enteies to an existing zip file would have been great, if we had it a few weeks ago , we had to make do without this ability , and all of the code is already written and mostly working (except for the problem I mention) and we don't really want to rewrite the zip file access.
    additional testing has shown that the data gets lost when we use the rename command.
    very strange...
    thanks for the input

  • Problem with file permissions using Snow Lepord

    I'm having problems with file Sharing & Permissions using Snow Lepord.
    When I save any new file it only has 'Read & Write' privileges for the user, everyone else is 'read only' or 'no access'.
    We have a Netgear NAS Server which is accessed by other users over the local network and if I change the Privilege to 'read & write' via Get Info and then copy the file from my desktop to ther server it changes the Privilege of the server version to 'no access' we then have to change it again for it to work.
    I also created a new folder on the server and now it says 'no access' and has a no entry icon!
    Any ideas???

    We have issues like this. Have tried running AFP and SMB, now connecting using CIFS. All have the same problem. I can work on one or two files fine, then suddenly, one of the files I just worked on says I don't have permissions. I log off the server and log back on, and then I have permissions to the file. It will work fine for one or two operations, then fails. We just updated to OSX Mavericks and a Windows 2012 server, but have been having this issue for years. My permissions look fine. I can even change permissions, but it won't let me work on the file or move or delete the file or rename the file. Once I log out and log back in, I can do anything I want.

  • Creation date used during ingest File Rename incorrect

    Hi
    System:
    Windows 7 64-bit SP1
    Prelude CC v2.0.1 (118)
    I've been using Prelude about 9 months now and have got used to it's foibles.  Hopefully some of these are being addressed for future releases.
    But the recent update seems to have introduced some problems that I didn't notice in previous versions.
    My query is on the new File Rename feature (the lower part of the Ingest panel).
    I have a preset for renaming my clips.  I want to rename using:
    Custom Text - I type this in depending on which location
    Date - I select DDMMYY Creation Date
    Auto Increment - (01)
    I have two issues using this preset, it could be me idk.
    The first is that the Creation Date appears as today's date, not the one from the file as I would understand it.  I would prefer it to pick up the actual Creation Date as it shows in the Metadata of the clip and also the time (i know this has already been suggested by an FCP user).
    The second is that If i rename a batch of files using the Auto Increment and then decide I want to add some more footage shot at a later date but maybe the same location.   I already have for example files labelled location_01 to location_15.  Now i want to ingest some more but starting at location_16.  Currently, I can't change the AutoIncrement field setting as you can in Bridge CC. 
    How I wish u could just implement the Batch rename features of Bridge in Prelude.  I am trying to switch from Bridge as it doesn't play nicely with video on my system.  It's a pain.  I love Prelude but can u please improve the renaming function.
    If the creation date was correct the auto increment feature would not be an issue because the files would be named differently.  As it is, ingesting tons of footage on the same day results in chaos.  Having to remember to manually change the date (I have it as a Custom Text field) is a nightmare and I can see forgetting to do it then it will be a mess.
    Perhaps my workflow is slightly different to someone who works in say TV but it would be nice when I know the features present in Bridge applied to all the other Suite apps.
    Any pointers would be REALLY useful because this is driving me insane at the moment.  And you guys are understandably reluctant to release details of future changes and features, so who knows you could be working on it right now.
    Thanks
    Just found there is another post asking more or less the same but no comments
    http://forums.adobe.com/message/5823964#5823964
    Message was edited by: GraphiteGal

    I'd like to second the request to be able to change the starting value of the auto increment function when ingesting in Prelude CC. 
    If I'm ingesting batches of footage either from different cards or at different times, it creates a mess of both manual file renaming in Finder (or batch renaming—same issue of additional, unnecessary work) and also (sometimes?) getting "file ingest error" messages from Prelude because I've already imported a file with the Custom_Text_(01) name.
    For anyone else with the same issue: https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform
    Thanks!

  • I'm using OS 10.6.8 and Mail 4.5. When I receive mails with attachments which are visible the save button doesn't work. Some contacts have problems opening files sent by me using Mail too. This was never a problem on pre-Intel. A real Mac **** up !

    I'm using OS 10.6.8 and Mail 4.5. When I receive mails with attachments which are visible the save button doesn't work. And some contacts occasionally have problems opening files sent by me using Mail too. This was never a problem on pre-Intel Mac. A real Mac **** up ! Any ideas ?

    Can you drag and drop the attachments visible in the email to the Desktop OK or does that fail ?
    Re the sending: Are these recipients on Mac's or PC's as the file type could be an issue, if on Mac's then try setting the Mail Preferences Composing setting to Plain Text not Rich Text and see if that improves things.

Maybe you are looking for

  • Home Sharing with iTunes 9 and Vista

    I just downloaded and installed iTunes 9 on both of my Vista boxes. I am trying to use the Home Sharing feature. I clicked on Advanced> Turn On Home Sharing. I enter my Apple account info and click Create Home Share. A box pops up that says Home Shar

  • IPhone photos not showing in places on iPad

    If I take photo on iPhone it shows ok in my iPad photostream but does not appear in places. Shows ok in places on iPhone. If I take photo on iPad it shows ok in places on iPad but not iPhone. This was working ok, noticed it stopped about a week ago.

  • Prod. stor. location usage Material master

    Dear PP expert Who can help to explain what meaning for this feild Prod. stor. location in MM01 transcation? what is its usage?> Thanks

  • ITunes and Quick Time upgrade 9.0.2 error downloading and installing

    Hi, This morning I recived notification that there is a new update for iTunes and Quick Time. While downloading and installing this upgrade 9.0.2, I received the following error: An error occurred during the installation of assembly "Microsoft.VC80.C

  • To run MRP without considering unrestricted stock

    Hi, Is it possible to run MRP without considering unrestricted stock of the material? Best Regards, Sitaraman