Accessing files behaving  differently

I am using the below path to find the files in my system and it is working fine.
But in development server it is giving the 404 error.
I have checked them the directory and files exist.
File startingDirectory = new File("C:\\Documents and Settings\\lakshmis\\workspace\\WebArchive\\WebContent\\Reports")); // working correctly
File startingDirectory= new File("D:\\Program Files\\Apache Software Foundation\\Tomcat 5.5\\webapps\\WebArchive\\WebContent\\Reports");// directroy does not exist

Does the D: drive always exist for all processes, or is it a drive that is mapped when you sign on? If the latter, then you're probably running Tomcat as a service and incorrectly assuming that it will map the same drives that your online session maps.

Similar Messages

  • Billing Output Access Sequence behaving differently in VF01 Vs VF02

    Hi All,
    Scenario: For RD00 output  from G2 Credit memos there is a customised access sequence. At the top as a first sequence a new table was added with fields as  Sales Org/Billing Types/ Billed-to/ Order Reason. All the required changes to add 'order reason' in field catalogue and in output structures are done with development. System allows to maintain required output master record in VV31 as required.
    Issue: Upon creating a credit memo the output access sequence ignores the newly added first table at the top (most specific) and jumps to the second one and output gets determined with second access although it should have considered the first one first. (Exclusive indicator marked for each step in Acc Seq) This is the case when the credit memo is seen in VF03 upon creation. But if the same document is opened in change mode VF02 it corrects the output and as required the first access gets determined.
    Please advise what could be different in VF01 Vs VF02 as the first leads to wrong output and the later determines the right one, keeping all settings same.
    Thanks,
    Hemant

    This is a bit of a long shot, but hereu2019s an idea. 
    The problem may be that your order reason gets populated by a user exit in the billing document creation process, and this user exit has not yet executed when the output determination kicks off. 
    Put a break point in the user exit.  If an output from the second key combination is already determined when the break point is reached, then the source of the problem is confirmed.
    Regards,
    Ken

  • Php localhost vs 127.0.0.1 vs file:/// behave differently

    I set up php to do web development on my MBP 10.5.8 following this guide http://foundationphp.com/tutorials/php_leopard.php and things are working... sort of. The issue I'm having is that when I load pages in Safari using localhost, 127.0.0.1, and directly from the harddrive using file:/// i get different results when php posts the changes to an xml file.
    here are the results
    edit localhost post results reload local host displays old results, file and 127.0.0.1 display new
    edit file post results reload no change to file, local host or 127.0.0.1
    edit 127.0.0.1 post results reload 127.. and localhost display new data, file does not.
    Sometime I have to reload 127 and the new data is not there, I load localhost and the new data is not there, but when I reload 127 again the new data is there.
    I only have one copy of the htm file and one copy of the xml file. This has to do with how the server is set up or operates somehow. I don't understand how the localhost path can keep loading the old data when then new data is in the xml file.
    localhost and 127.0.0.1 both resolve to the apache entry page when I put them in with not additional path information.
    Can anyone explain why this is happening, and how to resolve it.

    Yes. It runs fine on my unsupported G4 450 MP which I used to beta-test the cat. See these for installation work-arounds:
    http://www.macosxhints.com/article.php?story=20071214143723301
    http://www.tidbits.com/webx?14@@.3cb6ddd5/5 and
    http://forums.macrumors.com/showthread.php?t=371302

  • Reading a file behaving differently on Vista?

    I've been using the following code for a while now to read a file into a byte array:
    FileInputStream stream=new FileInputStream(file);
    byte[] bytes=new byte[(int) file.length()];
    stream.read(bytes);
    This works perfectly well on Windows XP, Mac OS X and Ubuntu. However, it seems that sometimes the operation fails on Windows Vista. I know the common way is to have some array with a fixed length and load the file slowly into that, but when I check the return value for InputStream.read() is identical to the returned value of file.length().
    So, I'm sort of lost why it doesn't work on Vista in all cases. Maybe it has something to do with the weird "virtual folders" system, where applications are not allowed to read from certain system folders but instead read from some "fake" folder. I was wondering if anyone else had encountered this problem. It's very likely that this is my fault somehow, but I'm wondering why it only fails on Vista.

    The GUI application contains the following method:
    public void upload(File file) throws IOException {
         DataInputStream input=new DataInputStream(new FileInputStream(file));
         byte[] bytes=new byte[(int) file.length()];
         input.readFully(bytes);
         input.close();
         serverConnection.upload(file.getName(),bytes);The variable serverConnection is an interface for a method that is called on the server through XFire. The method on the server looks as follows:
    public void upload(String name, byte[] bytes) throws IOException {
         File file = new File(dataFolder, name);
         OutputStream os = null;
         if (!file.exists() && !file.createNewFile())
              throw new NoAccessRightException();
         try {
              os = new BufferedOutputStream(new FileOutputStream(file));
              os.write(bytes);
              os.close();
         } catch (IOException e) {
              if (os != null) {
                   try {
                        os.close();
                   } catch (IOException e1) { }
              throw e;
    }When this method is called, in some cases (but not all, and only on Windows Vista) the following exception is thrown:
    java.io.IOException: Unexpected end of ZLIB input stream
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source)
    at org.codehaus.xfire.aegis.type.basic.BeanType.createFromFault(BeanType.java:260)
    at org.codehaus.xfire.aegis.type.basic.BeanType.readObject(BeanType.java:120)
    at org.codehaus.xfire.aegis.AegisBindingProvider.readParameter(AegisBindingProvider.java:160)
    at org.codehaus.xfire.client.ClientFaultConverter.processFaultDetail(ClientFaultConverter.java:51)
    at org.codehaus.xfire.client.ClientFaultConverter.invoke(ClientFaultConverter.java:32)
    at org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)
    at org.codehaus.xfire.client.Client.onReceive(Client.java:400)
    at org.codehaus.xfire.transport.http.HttpChannel.sendViaClient(HttpChannel.java:139)
    at org.codehaus.xfire.transport.http.HttpChannel.send(HttpChannel.java:48)
    at org.codehaus.xfire.handler.OutMessageSender.invoke(OutMessageSender.java:26)
    at org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)
    at org.codehaus.xfire.client.Invocation.invoke(Invocation.java:75)
    at org.codehaus.xfire.client.Client.invoke(Client.java:335)
    at org.codehaus.xfire.client.XFireProxy.handleRequest(XFireProxy.java:77)
    at org.codehaus.xfire.client.XFireProxy.invoke(XFireProxy.java:57)
    at $Proxy11.upload(Unknown Source)
    at com.adjustables.addesigner.util.AdServerConnection.upload(AdSe
    rverConnection.java:141)

  • The same code behaving different in two files.

    The same code behaving different in two files.
    in pro*c file it is returning rows
    in sql file it is not returning any rows.
    please suggest me.
    regards,
    prasad.

    please find the code.
    sql_stmt := 'SELECT rNum, dpcCode, sID, hDate, fBlock, '||
    'lBlock, recQty, fID, fName, ' ||
    'tSeqNo, sType, tDate, fStatCode, pDate, recCount, r ' ||
    'FROM (SELECT rownum rNum, DPC_CODE_ORIG dpcCode, ' ||
    'SENSOR_ID sID, ' ||
    'to_char(HEADER_DATE, ''YYYYMMDDHH24MISS'') hDate, ' ||
    'FIRST_BLOCK_NUMBER fBlock, ' ||
    'LAST_BLOCK_NUMBER lBlock, ' ||
    'RECORD_QUANTITY recQty, ' ||
    'FILE_ID fID, ' ||
    'substr(FILE_NAME,1,30) fName, ' ||
    'TRACE_SEQUENCE_NO tSeqNo, ' ||
    'SENSOR_TYPE sType, ' ||
    'to_char(TRAILER_DATE, ''YYYYMMDDHH24MISS'') tdate, ' ||
    'NVL(FILE_STATUS_CODE, ''NL'') fStatCode, ' ||
    'to_char(PROCESSED_DATE, ''YYYYMMDDHH24MISS'') pDate, '||
    'NVL(RECIRCULATE_COUNT,0) recCount, ' ||
    'ROW_NUMBER() ' ||
    'OVER(ORDER BY TRAILER_DATE DESC, LAST_BLOCK_NUMBER DESC) r ' ||
    'FROM logfc10t ' ||
    'WHERE DPC_CODE_ORIG = :IN_DPC_CODE ' ||
    'AND SENSOR_ID = :IN_SENSOR_ID ' ||
    'AND (((TRAILER_DATE <= TO_DATE(:IN_TRAILER_DATE, ''YYYYMMDDHH24MISS''))' ||
    ' AND (LAST_BLOCK_NUMBER < :IN_BLOCK_NUMBER)) ' ||
    ' OR (TRAILER_DATE < TO_DATE(:IN_TRAILER_DATE, ''YYYYMMDDHH24MISS'')))) ' ||
    'WHERE r = 1 ';

  • Accessing the same database file using different handles/cursors

    Will there be any problems accessing the same database file using different DB handles in a transactional environment? We have implemented a process which have multiple transient threads coming up and initiating DB opens and read/write operations to the same database file using different handles and cursors?
    Can this potentially create any problems/bottlenecks? Can someone suggest the best way to deal with this scenario?
    Thanks in advance.
    SB

    Hi,
    Berkeley DB is well suited to the scenario you describe. You need to ensure that Berkeley DB is configured correctly for transactional access, the best information describing the requirements is in the Reference guide here:
    http://download.oracle.com/docs/cd/E17076_02/html/programmer_reference/transapp.html
    If there will be multiple threads operating concurrently, then you will need to design your application to detect and deal with deadlock situations.
    Regards,
    Alex Gorrod
    Oracle Berkeley DB

  • How to access Excel files from different locations?

    Hello,
    I have successfully tested the Excel sample on WLS 7, and trying to run it on
    the WLS 8.1.
    Anyways, the common question for both is, how to access an excel files from different
    locations (e.g. c:\path\1.xls, \\domain1\finance\fin.xls, \\domain1\marketing\customer.xls,
    \\domain2\accounts\vouchers.xls)?
    From example i can see that it picks from a specific path under repository.
    Thanks
    Ashok Gupta

    The custom function sets the MS-Excel default directory to System.getProperty("user.dir")+"/excel"
    (the domain directory), then opens the filename passed as a parameter. I assume
    that if you pass in the fully specified path for the excel file ( like d:\MyDir\data\test.xls),
    that it would open that file.
    - Mike
    "Ashok Gupta" <[email protected]> wrote:
    >
    Hello,
    I have successfully tested the Excel sample on WLS 7, and trying to run
    it on
    the WLS 8.1.
    Anyways, the common question for both is, how to access an excel files
    from different
    locations (e.g. c:\path\1.xls, \\domain1\finance\fin.xls, \\domain1\marketing\customer.xls,
    \\domain2\accounts\vouchers.xls)?
    From example i can see that it picks from a specific path under repository.
    Thanks
    Ashok Gupta

  • Accessing files in a different package

    Hello,
    Is there a way to access files outside the current package in Java?
    I have a situation where I need to get the URL object out of a file, but it requires the file to be in the current directory of the class, is there a way to access file based on package name?
    URL url = getClass().getResource(filename);
    Your help would be appreciated as always.
    Thanks.
    --Raj                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    This doesn't sound like a package issue as much as it is a classpath issue. If you put an arbitrary directory on your classpath, a call to getResource() will search that directory for the file.

  • Accessing file sharing on different platforms

    Hello
    Recently I purchased a Mac mini server edition, for multiple reasons, the primary being file sharing.  For multiple reason I need terabytes of storage space to share over the Internet.  Completely unaware of how to run a server, I went ahead and bought one.
    For the most part, everything came together smoothly.  There's a lot to learn but I'm getting the hang of it.  But one thing I can NOT figure out is how to access files that are being shared on an iPhone/iPad or a windows computer (I'm other terms how to connect to the server).  I have spent countless hours reading every Internet article there is and no luck.
    I have both WebDav and SMB turned on, but when I try to access it from a mobile device i get "Forbidden you don't have permission to access / on this server
    Apache/2.2.20............... Port 443"
    And no matter what site I "run" on a windows, it says there is nothing.
    If anybody could help me out with these, it would be awesome!!
    Thanks
    Ben

    It seems this is not possible.
    have requested a change to a future version, but not holding my breath.

  • Why does "Link Media" behave differently when used as a keyboard shortcut vs when right clicked???

    Not sure whether anyone else is encountering this, but the "Link Media" command behaves differently when right clicked as opposed to when used as a keyboard shortcut.
    When you right click to select that option for an offline file, you get only the corresponding disconnected source media. But when you execute "Link Media" via a keyboard shortcut, PP brings up a huge list of all other offline media. Why does it only do that when you use the keyboard shortcut for "Link Media" but not when you right click "Link Media".
    I'd like to get the Link Media command to behave via the keyboard shortcut the same way it behaves when right clicked. I don't want to have to deal with relinking a hundred other files, but just the single offline file I'm working on.

    Among the alternatives not mentioned... Using a TiVo DVR, rather than the X1; a Roamio Plus or Pro would solve both the concern over the quality of the DVR, as well as providing the MoCA bridge capability the poster so desperately wanted the X1 DVR to provide. (Although the TiVo's support only MoCA 1.1.) Just get a third-party MoCA adapter for the distant location. Why the hang-up on having a device provided by Comcast? This seems especially ironic given the opinions expressed regarding payments over time to Comcast. If a MoCA 2.0 bridge was the requirement, they don't exist outside providers. So couldn't the poster have simply requested a replacement XB3 from the local office and configured it down to only providing MoCA bridging -- and perhaps as a wireless access point? Comcast would bill him the monthly rate for the extra device, but such is the state of MoCA 2.0. Much of the OP sounds like frustration over devices providing capabilities the poster *thinks* they should have.

  • Archiving  file in different folder in sender file adapter

    Hi,
    I have a requirement in witch i have to pick 7 different file from seven different folder.
    for this I am using advance selection tab and defining all the other folder path.
    but my problem is I have to archive the different file in different folder .
    For exm..
    /folder1/file1.txt need to be archive in /archive_filder1/file1.txt
    /folder2/file2.txt need to be archive in /archive_filder2/file2.txt
    /folder3/file3.txt need to be archive in /archive_filder3/file3.txt
    can any one tell me that how to  define the dynamic  archive folder path??.
    regards,
    Navneet

    Hi Navneet
    In File Access parameters --> Target Directory
    Use this type of Directory name
    \XIDEV_STORES\%store%\sapoutbound
    here %store% will be changed accordingly
    e.g. if file will come for store 001 then this %Store% will be replaced by 001 and file will be placed in this 001 folder and if file will come for store 002 then this %Store% will be replaced by 002 and file will be placed in this 002 folder over FTP.
    For to achieve this Go to Advanced tab 
    For Variable Substitution check mark Enable
    Now speciofy the parameter values for Variable Name and Reference
    Under Vriable name specify = store
    Under Reference specify = payload:WP_PLU02,1,IDOC,1,EDI_DC40,1,RCVPRN,1     -
    You have to give full path name here that where this store variable is located into IDOC.
    Hope this example will help you
    Regards
    Dheeraj Kumar

  • Multiple jar files from different locations

    Hello,
    I am having an applet that access code from two different jar files. Of them one is a common jar file for many applets. So I couldn't place it in the local dir as that of the applet's html. I am not using any web server.
         Just to give you a feel of it :
         <PARAM NAME = archive VALUE = "DVApplet.jar,DVVP.jar" > are the jar files my applet is dependant on. But DVVP.jar has to be accessed from a dir different from local dir.
         Will be glad if someone can throw some light on accessing different jar files from different dirs.
         Thanks for your time.
    Regards,
    Anantha

    [url=
    http://forum.java.sun.com/thread.jsp?forum=421&thread=425724&tstart=0&trange=100
    ]This question is a bit similar
    You can use a class loader to do such things.

  • How can I access files that I moved from an older MacBook Pro to a newer one via Firewire and Migration assistant.  The files show up on the new MacBook but cannot be opened.  Thanks!

    How can I access files that I moved from an older MacBook Pro to a newer one via Firewire and Migration assistant?  The files show up on the new MacBook but cannot be opened.  Thanks!

    Get info then check permissions then add your curent user name (it was probably different on old Mac) and give your username full read/write permissions.

  • What is the best way to move files to different folders in a plug-in?

    I am writing a plug-in that needs to move files on the hard drive.  I am using LrFileUtils.move(from, to) and everything is fine except that the catalog is not updated when the file is moved.  After the plug-in runs I can use Library > Synchronize Folder to get the catalog back in sync with the new locations of the photos on the drive, but this manual step is less than ideal. 
    I am unable to find a way to move the files within the plug in that also updates the catalog (like dragging photos to a new location within the LR Navigator pane).  Lacking an API for this, I looked for a way to programmatic execute the Synchronize Folder menu item, but was not able to find this either..
    Can anyone recommend a better way to move photos to different folders within a plug-in that also updates the catalog?

    Hi Andy,
    There are 3 main file formats that you can consider writing your data out to in LabVIEW:
    ASCII
    Binary
    Datalog
    ASCII
    ASCII files are useful because every operating system and almost every application can read/write ASCII format files. Use ASCII files when:
    Other users or applications will need to access the data file.
    You will not need to perform random access file I/O
    File I/O speed is not crucial
    Disk space is not crucial
    Examples within LabVIEW Example Finder: Fundamentals >> File Input and Output >> Write to Text File.vi and Read from Text File.vi
    Binary
    Binary byte stream files are more specific to data storage and retrieval. Use b
    inary files when:
    File I/O will remain in LabVIEW only -- no other applications will be needing to write/read that file. There is no standard formatting for binary files and thus other applications or operating systems may be unable to read the file.
    Files are smaller than ASCII files
    Easier and faster random access to data
    Examples within LabVIEW Example Finder: Fundamentals >> File Input and Output >> Write Binary File.vi and Read Binary File.vi
    Datalog
    When to use datalog:
    If you need to record data with a mixture of types, it can be cumbersome to convert everything to ASCII or to keep track of the binary formatting.
    Datalog format is binary and internal to LabVIEW, so again only use this format if no other applications or operating systems will be needing to perform file I/O on the file.
    Examples within LabVIEW Example Finder: Fundamentals >> File Input and Output >> Write Datalog File
    Example.vi and Read Datalog File Example.vi
    Good luck!
    Kileen C.
    Applications Engineer
    National Instruments

  • Office 2010 & 2007 - Excel and Access File Locking Out On the Network With Multiple Users

    This is also posted in the Office 2010 - IT Pro General Discussions, but was suggested to repost here, since a definitive answer was not found.
    Hi,
    An issue that's happening is that Excel and Access files are locking on the network. We're currently using Office 2007 and 2010.
    Here are some different scenarios that are happening:
    When opening the file it is locked out by “User X” which is the person that has the file locked out and no one else can open the file.
    When opening the file it is locked out by “User Y” which is NOT the actual person, but is locked out by “User X” and no one else can access the file.
    When opening the file  it is locked out by “…another user” which is generic and no one else can access the file.
    The two more common events are incident 1 and 2 with 3 happening the less common.
    This message will continue until the sessions are closed through computer management on the file server.
    The file server is running Windows Server 2003.
    This does happen on both Windows XP and Windows 7 clients.
    This does happen for users using Office 2007 and Office 2010.
    There are two sets of Office 2010 Users when it comes to patches. Everyone has the most current patches with Office 2010 SP2 while anyone that has Microsoft Project 2010 is using all the current update before Office 2010 SP2.
    All users that are using Office 2007 have all the current patches and service packs.
    Another variable is that we have users that will leave a file open on the network for 3+ days and after a while it will lock the file out.
    Also we have Shadow Copy that runs daily on the system which I'm not for sure if that impacts anything if a file is opening during that time.
    Any ideas on how to mitigate the lock out issues would be appreciated.
    Thanks,
    Binary Process
    Edit November 12, 2013: This issue can occur if and if not another person actually has the file open. If the person doesn't have the file open then there is a hung connection which needs to be disconnected by going to the Computer Management of the File
    server.

    Hi Binary,
    I know that the description of the hotfix does not relate to the issue. The purpose is to install it for upgrading SMB related file.
    A similar issue I encountered before:
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/b7fcc59b-52d9-4a02-863a-1a529bcb8cb1/temp-doc-etc-files-dont-close-after-a-file-closes-this-causes-locked-files?forum=winserverfiles
    It is resolved by upgrading SMB files so maybe it will help on your case.
    Another hotfix which may related:
    http://support.microsoft.com/kb/983458
    If you have any feedback on our support, please send to [email protected]

Maybe you are looking for

  • IOS 4.1 on an iPhone 3Gs

    I have upgraded to iOS 4.1 on my iPhone 3GS and now my alarm clock does not match the time on the phone! It goes off 1 hour before the intended time! I have it on auto time and have resubmitted my alarms, also know of five people who this is happenin

  • How to create *NEW* set of Recovery Media?

    Hello - Accidentally scratched my Recovery DVDs by leaving them in my laptop bag (ie. have external HDs, external slim DVD writer, etc...) in there. How do I re-create a *new* set of recovery media on my T61p since the option is now grey'd out? Thank

  • CL_RSR_RRK0_HIERARCHY error while using RRI

    Hello all, I am trying to do RRi from one report to another. I have a tried the RRI thing with the infoobject and it works fine. But the object actually has Hierarchy which eventually the users will be usin. When I do the whole procedure same but now

  • What is the best option for working live off external hard drive?

    I have 3 iMacs all networked together and working off 1TB of files stored on an old MacPro. I'm wondering what my best option would be for upgrading moving forward. I need more space (preferable 2TB or more) and I'd like the connection to be as fast

  • Desperate for new Griffin iPod Shuffle 2g dock adapter.....................

    .....I am in the U.K. - can some kind soul tell me where I can get one asap, Thanks.