Apex Listener/Apache Tomact and filenames with spaces

I've installed the Apex Listener with Apache Tomcat, and all seems to work fine. Except when I try to do a CSV file data upload via the utilities screen in apex. If the filename/directory path contains spaces, then Apex reports "File Must Be Specified" error - yet if I do this same operation via EPG instead of Tomcat, it works. Are there any restrictions in Tomcat to using spaces??

Look at this thread. Re: File upload problem
regards.

Similar Messages

  • Runtime.exec() - using cp and files with spaces on unix

    I'm using the Runtime.exec method to copy files in a unix environment. This works fine until there is a file where the name has spaces in it. I've read the article on the pitfalls of using runtime and how it breaks a string on white spaces and this is what is happening. I've also found another topic that was having the same problem, but they were using /usr/bin/dos2unix. I've tried putting quotes around the filename, but it still breaks on the first space. Any suggestions on how to get around this or another way of doing this would be greatly appreciated.
    An example of the os command string is:
    /usr/bin/cp /tmp/file with space.doc /docs
    Thanks!

    Hi!
    Well I dont have any Sun machine right here to try this but in windows It works great.
    Have you tried something like this ?
    import java.io.*;
    public class OSCopy {
        public static void main(String[] args) {
            try {
                String space = " ";
                String copycmd = "E:\\cp.cmd";
                String source = "E:\\File with space.txt";
                String destination = "E:\\tmp";
                String cmd = copycmd + space + "\"" + source + "\"" + space + destination;
                System.out.println("cmd: " + cmd);
                Runtime runtime = Runtime.getRuntime();
                Process copy = runtime.exec( cmd );
                BufferedReader reader = new BufferedReader( new InputStreamReader( copy.getInputStream()) );
                String line = null;
                while( (line = reader.readLine()) != null ) {
                    System.out.println( line );
            catch (Exception e) {
                e.printStackTrace();
    cp.cmd is a simple dos copy command
    copy %1 %2
    */good luck!

  • Suppress Underscore and replace with Space in FR

    Hi
    Hyperion Financial Reporting 11.1.2.1
    In the excel, with a Essbase add-in, we have an option as Suppress--->Underscore Characters
    This will eliminate the Underscore and replaces with a space
    I want to know if the same functionality exists in the FR Studio
    Any insight would be much appreciated
    Regards
    Tejo jagadeesh

    Sorry, I misread your question. I thought it would be doable though Conditional Format: http://docs.oracle.com/cd/E17236_01/epm.1112/fr_user/ch10s02.html
    Something like this:
    If Member Name > Dimension > contains > _ > Format Cells > Replace >
    But then it replaces the whole member with space which I believe is not something you are looking for.
    One other option is to have another alias table in your database and select the new alias table in FR. I know this is an option for Essbase. I am not so sure about other db connections.
    Cheers,
    Mehmet

  • Jar and classpath with space in folder name?

    Hi, all.
    Just for fun: what if I have a jar file that is dependant on the other jar file which is placed in folder with space in its name? How would I link it in manifest file?
    Thanks.

    Havae you tried quoting the Class-Path value?

  • Apache and directories with spaces

    I have apache\quick finder working and indexing multiple volumes & directories on Netware 6.5 SP5. My problem is directories with a space in the name (e.g Harmony Data vice harmonydata). We cannot seem to create an alias for a directory that has a space in it. Is there a way to create an alias for a directory with a space in it?

    Guenter wrote:
    > Hi,
    > hfr63 <[email protected]> wrote in news:hfr63.35ea6n@no-
    > mx.forums.novell.com:
    >
    >
    >>I have apache\quick finder working and indexing multiple volumes &
    >>directories on Netware 6.5 SP5. My problem is directories with a space
    >>in the name (e.g Harmony Data vice harmonydata). We cannot seem to
    >>create an alias for a directory that has a space in it. Is there a way
    >>to create an alias for a directory with a space in it?
    >
    > you need to quote the folder names, f.e. I've just tested this which works
    > fine for me:
    >
    > Alias "/Data Files" "vol1:/www/Data Files"
    > <Directory "vol1:/www/Data Files">
    > Options Includes Indexes MultiViews
    > Order allow,deny
    > Allow from all
    > </Directory>
    >
    > Gnter.
    >
    Hi Gnter and hfr63.
    I happened to be looking at this too, and was curious if the alias had a
    space in it. I don't know QuickFinder, but why have the space in the
    alias? Anyhow, I think best practice would be to encode the space (%20)
    in the alias since it will become part of the url.
    Alias "/Data%20Files" "vol1:/www/Data Files"
    This might work too:
    Alias /Data%20Files "vol1:/www/Data Files"

  • Filename with space problem

    Does anyone know why this code is giving me to save the file with the wrong filename? It converts spaces to + signs.
    Currently it gives the filename: "test+filename.abc"
    The variable resourceName is: "test filename.abc" (<-- this is required filename)
    IWDResource resource = WDResourceFactory.createResource(baos.toByteArray(),"test filename.abc",WDWebResourceType.UNKNOWN);
    String url = resource.getUrl(WDFileDownloadBehaviour.AUTO.ordinal());
    String resourceName = resource.getResourceName();
    IWDWindow window = wdComponentAPI.getWindowManager().createNonModalExternalWindow(url,"download").show();
    Edited by: Tom Franssen on Mar 25, 2010 6:04 PM

    Hi Tom,
    I know exactly what you are looking for.
    I have implemented it in my web dynpro application.
    Here is the code which you can write in action handler of the download button:-
    This will open up a pop-up window asking user to Open/Save As/Cancel type of dialogue.
    And you need to perform String manipulation on "p_FileName" to remove all the leading, trailing and intermediate spaces in filename.
         try {
              //Get Url connection and inputStream
              l_url = new URL("<URL STRING>");
              l_urlConnection = l_url.openConnection();
              l_inputStream = l_url.openStream();
              //fill up byte array
              int l_int_arraySize = l_urlConnection.getContentLength();
              l_byteArray = new byte[l_int_arraySize];
              l_dis = new DataInputStream(l_inputStream);
              l_dis.readFully(l_byteArray);
              //reset buffers
              l_inputStream.close();
              l_dis.close();
              //Set the Resource for file
              l_resource = WDResourceFactory.createResource(l_byteArray, p_FileName, WDWebResourceType.UNKNOWN);
              l_byteArray = null;
              //Get the url of created resource
              l_str_url = l_resource.getUrl(WDFileDownloadBehaviour.ALLOW_SAVE.ordinal());
              //Call external window passing the above url
              l_win_MultiFileWindow = wdComponentAPI.getWindowManager().createNonModalExternalWindow(l_str_url);
              l_win_MultiFileWindow.show();
         catch (Exception e) {
    Hope it helps.
    Let me know in case you need more information.
    With regards,
    Amey Mogare

  • When saving filename with space, the space char convert to %20. How can i solve this?

    Each time when i try to save a file. Firefox always convert the space char to %20. This is really irritating.
    Any solution?

    Thanks for trying to help. Maybe i did not specific my issue clear enough, each time when i try to download a file from my university elearning site. The filenames suggested by firefox automatically change space char to %20. I need to manually remove those %20 to space char again when i save the file, this is really not convenient. I tried on Chrome and IE, both of them do not have this problem with the same file.

  • UploadedFile and filenames with non-ascii chars

    Hi
    I'm using an UploadedFile object in my web app, and all works fine. However, when I try to upload a file, with a filename containing non-ascii chars (e.g. Spanish), I see that the getBytes method returns an empty byte array, the filename is not stored correctly (the non-ascii chars are lost, replaced by another representation), and that the content-type is application/octet-stream instead of image/png as supposed to be.
    If I rename that same file to have only ascii chars - everything is back to normal.
    How can I upload files with non-ascii chars in their name?

    Hi, back! Spent a few hours experimenting and found
    that everything is working great (including the creation
    of international non-ASCII foldernames) when I used
    utf-8 encoding in the sieve filters rules for the
    the match strings and the folder names... at least
    so far so good... for your ref and sorry for bothering.

  • Problem in opening filename with space

    Hi Folks,
    I am trying to open a file located on websphere appserver. file name has a space in between. (e.g. abc xyz.xls)
    I could not open the file in netscape and IE both.
    Has any one come across such problem?

    If the filename is part of an URL, you have to replace the
    spaces by plus signs: http://.../.../abc+xyz.xls.

  • Page Up and Down with space bar

    After I installed Safari 3.0.5, when I press the space bar typing this post, the web page goes down. I want to know if somebody else get the same problem, and how do I prevent that? or maybe is a new bug.
    With Safari 3.0.4 this keyboard shortcut works ok. (page up and down) but not when typing.
    Thanks,

    I have the same problem. Everytime i hit the spacebar in this text box, the browser tries to scroll down and looks like flashing.
    Is there any fix for this? It happens in every web page with text box (including the google search box).
    Thanks in advance.
    (I am using the safari version for Windows)

  • Apache tomcat and mod_jk2 with awstats

    Hi all,
    Here's my situation.
    I've 2 servers, web server (apache with perl)
    and app. server (tomcat, java)
    link with mod_jk2.
    I would like to install awstats for get web stat. data.
    I installed it in web server. can run the perl and get some result. I can generate awstats static pages result. but I would like to allow user to view on web.
    such as http://www.abc.com/awstats/awstats.pl?config=xxx.
    because mod_jk is using, all request / response will send to app. server. how to exclude the awstats directory? which means user cannot view the awstats report on web.
    pls help
    thanks
    Regards,
    Kin

    Ended up downloading and installing the mod_jk instead of the mod_jk2 that came with RedHat Application Server.

  • Cannot open files and dirs with spaces from most qt-based applications

    Hello,
    I noticed that I can't open any file or folder that have spaces in the path because an error pop-up appears stating that there is no such file or directory, the error includes the full path but it's "urlencoded" in the sense that spaces are replaced with "%20".
    I experienced this behavior in most qt apps: clementine (open containing folder of a song), retroshare, calibre (try to open a book or its folder). Everything works with gtk: pcmanfm, firefox.
    I tried changing the default file manager with xdg-mime (switched from pcmanfm to qtfm) but the result's the same. It really seems that qt is trying to open a urlencoded path and xdg-open produces the error.
    Any idea? qtfm works, even if it is a qt application, maybe because it's qt5?

    I've used, for this, 3 languages on local-gen
    on my config
    pt-br
    pt-br
    en-us
    On my tries, the spaces, on real, were "language symbols" thar are incompreensible to my current language, and, turns into inacessible

  • Find and Replace with space or tab

    Hi,
    I have a text file that has commas separating values. I saved it as a csv, but am not getting the results I need with the csv file. I'd like to replace the commas with a space or a tab.
    I know how to use find replace, but I do not know how to indicate these non-printing characters. I tried the ascii code &#32 for space, but i simply get that string of characters replacing my commas.
    ANy help?
    Thanks

    KW,
    You didn't say what program you were using for the Find and Replace, but I'd suggest that Pages would be your best bet. Spaces can be typed-in directly, and several other non-printing characters can be inserted from a drop-down menu.
    The Insert drop-down seems to be available only in Pages, as opposed to Numbers and TextEdit.
    Jerry

  • Doc.saveAs() and filenames with commas

    Using Acrobat 9,  I have convinced myself that commas confuse the innards of the doc.saveAs() function. For example, from the console, the following throws an error:
    this.saveAs("john, jimmy.pdf");
    the error: "UnsupportedValueError: Value is unsupported. ===> Parameter cPath."
    I am more than a little stunned. It's been more than 10 years since the major operating systems allowed commas in the path.
    Am I overlooking something trivially obvious?

    Thanks for that link to the "wish forum".
    I have reported failure to accept commas in the path as a bug.
    I'll keep this question open for just a little longer.
    Does anybody know of any tricky escape character sequences that might solve the problem? I have failed with "\," and various ideas for nested quotes.

  • How do I enter a path with spaces

    In creating a special mail alert there is an option to enter a file to execute. If I put the file in my C;/Program Files (86)... it wont execute because of the spaces. How do I enter the path and filename with spaces. YES, I have tried all sorts of "s and they don't seem to work. Can you give an example.

    I usually find that if use the offered option to browse to the file using the browser/picker provided, all this is taken care of. Thunderbird will use a technique widely emplyed on the web, where spaces are encoded as %20. Other potentially troublesome characters such as slashes and colons will get similar treatment.
    As an aside, 20 is hexadecimal for the decimal value 32, which is the standard value in ASCII and many other encodings for the space character. So %20 is a particular notation that advises that the character with hexadecimal value 20 is to be used.
    In general "C:\Program Files\example\example.txt" ought to work too.
    But your problem may be specific to the particular context. I have had a long standing issue where I want to send a link to a file on a shared network drive and the link sent via Thunderbird has refused to work as an active link. The recipient generally had to copy and paste the provided pathname. This seems to have resolved itself in a recent update of Thunderbird. If you're using an add-on then the problem may be inherent in that add-on, or in a rather obscure difficulty with giving the Thunderbird process access permission to work with local files.

Maybe you are looking for

  • Error in Time Statement ESS

    Hi ALL, I am getting this error below when I click on time statement in ESS. Form SAP_TIM_99_001 does not exist. Any thoughts would be greatly appreciated. Thanks In Advance

  • Ending Balance in Revenue Report

    Hi,     I have to display 'Ending Balance'. I am having Vbeln, Bzirk, Kunnr, Ktgrm, Sakrv, Bdjpoper on my selection screen. i am having vbak, vbap, kna1, vbkd, vbpa, vbreve tables how to calculate ending balance based on these. What's the logic we ha

  • Please Help Me Out of The Error

    Hello Everyone, I am executing the following Syntax to create a procedure which will spool all the data of my employee table and dumped into a Text file. The Procedure is creating successfully, but problem is when I am Executing the Procedure I am ge

  • Bug: Flash CS5+CS4 Professional crashes when compiling AS2 classes.

    My name is Mario Gomes Cavalcanti, I'm the CEO of Mersica Inc. and the developer of the free, online graphic design software, image and photo editor Fatpaint.com. Fatpaint is a Flash application, made using the Actionscript 2 programming language. Th

  • Premiere Pro CS5 Export taking a very long time

    Hello there. I have a project that is taking a very, very long time to export. It's 45 minutes long and usually projects that long only take about 7 hours, whereas this one has been going for 6 hours and says it has 15 hours remaining. I'm not sure w