Problem with path (which contain spaces)

Hi,
Im having problems when I use getAbsolutePath() method when the path contains spaces, like "c:\Program Files"
my app have a different behavior if its installed in a path like C:\myApp\
The troubles occurs when I try to create a directory and create a new file in that directory, if path doesn´t contains spaces works fine.
Any idea?
Best Regards,
JRaBBiT

jRaBBiT wrote:
Thank you for your reply but it doesnt answer my question.Because you did not provide enough information. That's why I asked for an SSCCE and asked you to indicate clearly exactly what is going wrong.
It's like you went to the doctor and you said, "Doctor, I have pain," and he said, "Where do you have pain?" and you said, "Thank you for your concern, but you haven't cured me yet."

Similar Messages

  • RWRUN60: Problem with parameter value containing space between single quote

    Hi All
    I'm using RWRUN60 to generate my report by following way:
    C:\orant\BIN\RWRUN60.EXE userid=DBUser/dbpasswor@db BACKGROUND="NO" BATCH="YES" DESFORMAT="pdf" DESNAME="C:\report.pdf" DESTYPE="FILE" ORIENTATION="LANDSCAPE" PARAMFORM="NO" P_REPORTID="2431" P_REPORTNAME="Report Name" report="C:\report.rdf" P_WHERE="StartDate>=to_date('2011-07-14 10-37-00','YYYY-MM-DD HH24-MI-SS')"
    When I tried to run given command above nothing was executed executed and any log didnt created.
    I found out that problem occurs when text between two single quotes contains spaces. In my case it is a parameter P_WHERE. I need to keep such format because it is part of report query.
    When I removed last parameter from command RWRUN60 successfully genereate pdf document.
    Further I added new test parameter P_TEST(it is ignored by rdf) in the end of command line following:
    P_TEST="test '11'" - rwrun60 generates report
    P_TEST="test '1 1'" - rwrun60 doesn't; generate report
    Can somebody help how to resolve given problem. Is it parsing bug or what else?

    Spaces on command lines a very often a bad idea. Get rid of them by changing the command, e.g.:
    to_date('2011-07-14:10-37-00','YYYY-MM-DD:HH24-MI-SS')

  • Problem with Path Managed property in alternate zones - also we have identified problem with Product catalog in alt zones

    Hi All,
    I'll start "one step back". Note we have resolved this issue but it is worth mentioning:
    Yesterday we set up the product catalog. We were having a lot of inexplicable problems with it initially. After much troubleshooting, we found that it was because we were browsing the SharePoint site via the "Internet Zone" rather than the "Default
    Zone" when we "Connected" our site to the product catalog. Issues experienced:
    1) "Catalog Item URL Format" displayed error "Properties <Managed Property> specified by the shared catalog could not be found in the search schema" when attempting to connect to the catalog, despite that managed property being
    configured correctly. The catalog would connect despite the error, and the navigation worked fine.
    2) The search Result Source for the catalog would not return any results. Configuring the query and selecting "Advanced Mode" would show SPSiteURL:http://externalURL.domain.com. Changing SPSiteURL manually to
    http://InternalURL resulted in results being returned as expected.
    After much troubleshooting, we found that if were browsing SharePoint using the default zone (http://InternalURL) when we connected the Product Catalog, the result source then worked properly (internally and externally).
    Ok, so now onto our current problem:
    The Product Catalog appeared to be working properly (internally and externally) after figuring out that we needed to connect it from the Default Zone. However, we have found a remaining glitch, which doesn't appear to be Product-Catalog-specific. Consider
    the following scenario:
    1) We click a category in our Product Catalog, such as Electronics
    2) A list of our electronic devices are presented via the "Category" display page
    3) If we click on a specific item, a different URL is returned internally vs externally. We only get the friendly managed navigation URL when browsing via the Default zone. And of course totally different pages load based on which URL you get.
    Internal (when browsing via Default zone):
    http://InternalURL/catalog/PRODUCT-CATEGORY/PRODUCT-NAME
    External (when browsing via Internet zone):
    http://ExternalURL.domain.com/catalog/Lists/Products/DispForm.aspx?ID=1
    We have reviewed the display template, and the "Path" managed property is simply being used to render the link. Furthermore, we have configured the Content Search web part's "Property Mappings" to show the "Path" MP, and it
    displays the same (wrong) result externally.
    This tells us that the Path MP is not correctly rendering "Friendly URLs" when using managed navigation.
    Any help/ideas?
    Our environment:
    SharePoint Version: 15.0.4667.1000
    Default Zone: http://InternalURL
    Internet Zone: http://ExternalURL.domain.com
    We are NOT using host named site collections
    We ARE crawling the Default zone URL in our content source
    Thanks,
    Tommy

    Hi,
    We have now also observed the same issue with a Managed Property of type “Hyperlink/Picture”. The picture returns the wrong URL externally.
    This post describes the same issue, however the poster found that setting UseAAMMapping=True doesn’t work in 2013:
    http://sharepoint.stackexchange.com/questions/104806/set-the-useaammapping-property-of-a-managedproperty-object-map-an-url-of-a-h
    We checked, and our Picture MP had UseAAMMapping=False. We set it to True, did a full crawl, and see no change in behavior. Path already had UseAAMMapping=True.
    More info:
    http://macslui.blogspot.com/2013/02/sharepoint-2010-problem-in-image-result.html
    https://camerondwyer.wordpress.com/2014/08/04/beware-sharepoint-2013-search-results-and-the-listurl-property/#comment-2606
    Thanks,
    Tommy

  • Problem with path length when using oracle drive

    Hello!
    Does anybody else experience this problem with Oracle Drive?
    When I create a deep or nested hierarchy in which the path length is longer than 250 (the limit might be 255) characters, I cannot access the deeper subpages.
    Example:"X:\INET\START1\pfadlaengentest\das istein langer ordnername mit etwa 50 zeichen\and this is another veryveryvery long\and this is another veryveryvery lon2\and this is another veryveryvery lon3\and this is another veryveryvery lon4\and this is another veryveryvery lon5".
    I can access the page "and this is another veryveryvery lon4" but not "and this is another veryveryvery lon5"
    Is this problem due to WebDAV?
    What can I do - I think it is a critical error / bug?
    Regards Joerg.

    I opened a service request and oracle support could help me.
    The problem is the windows file system: the path length cannot be longer than 256 chars.
    There's a workaround with MS-Webfolders.
    More information is available via metalink: watch out for SR-Number 5659267.992.
    PS: Thanks to Bert
    bye :-j (joerg)

  • Problem with URL:s containing scandinavian characters (Office 2013 / Firefox / SP 2010)

    We are encountering problems with document opening when URL contains scandinavian characters (ä,ö). This issue occurs only with Office 2013 when using Firefox. With IE it works just fine. And Office 2010 works nicely as well.
    Error message: "We can't connect to 'https://intra.../Test powerpoint.pptx' Please make sure you're using the correct web address".
    This issue only occurs when document or document set name contains scandinavian characters. If I rename it, document opens without any problems. 
    Any idea how I could fix this?

    Hi Law, try changing the settings in the library to "open in client application." You should also read the following links for solutions:
    http://sharepoint.stackexchange.com/questions/16938/why-is-word-document-created-from-template-saved-locally-instead-of-to-the-docu
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/ec048a1f-e6cc-481d-8f46-308823568b56/cannot-save-documents-to-sharepoint?forum=sharepointadminprevious
    cameron rautmann

  • Color problem with ProPhoto RGB color space

    Hi, everyone,
    I have wery special problem I think. I use MacBook pro 15" with retina display, adobe Photoshop CC and when I export RAW (from Nikon D7000) from Lightroom 5 to Photoshop with settings: 16 bit TIF, color space: ProPhoto RGB I have a problem with displaying the correct colors. As you can see in this picture:
    My problem are some "green" artefacts in absolutely black and white picture. I tried myself to solve this problem and found the following facts: when I convert picture into Adobe RGB or sRGB color space is everything OK - without green artefacts.
    But here is one important fact: I have calibrated monitor by datacolor spyder4elite and problem with ProPhoto RGB incorrect color displaying is only when the color calibration configuration is loaded. When I change my display calibration to standard apple color LCD profile than is everything OK.
    But using uncalibrated monitor and also Adobe RGB color space are no right solutions for me.
    My question is why I have problem with displaying ProPhoto RGB color space in photoshop under calibrated monitor profile and can anybody help me please?
    Thanks for answers.

    That's a classic example of the basic problem with 16 bit color. There is no solution that I know of.

  • Problem with printing HTML container

    Hi all,
    I am having a problem with FlexPrintJob (or PrintJob) for the
    mx.controls.HTML container. On print i receive only one page (only
    the visible area) of my HTML container. How can i print multiple
    pages from mx.controls.HTML?
    Please Help!!!

    And here we have the problems with Adobe's take on printing.
    It would be much easier for every developer, if they could say
    "HTMLContainer.print()" and have it print all of the text contained
    in the html container, maybe even with integrated use of CSS print
    stylesheets...
    But, for the time being, the easiest method is to break all
    of the text out into a second invisible (alpha = 0 NOT
    visible=false) html container that is sized to the dimensions of
    your page. Then you call addPage, scroll the container exactly 1
    page, and call addPage again, repeating until you reach the end of
    your content. This method of printing is necessary for people
    developing an image builder, that want to make multi-sheet prints.
    But people who are writing RIA's have the need to make multi-sheet
    prints of TEXT that is not in a datagrid on a regular basis. This
    is a SERIOUS limitation, and should have been taken care of prior
    to the release of AIR 1.0

  • Problem with remogin of unwanted space on page ?

    Hi members,
    hoep everbody doing nice.
    i have one problem.
    on my template, i am hiding some raws based on condition in grouping.
    so in that grouping raws which satisfied condition only that are display.
    but problem, group raws which are not satisfied, in place of that it shows unwanted blank space.
    how can i remove that spaces ?
    any help is greatly appreciated.
    thanks.

    How did you hide it ?
    you would have written if condition.
    <?for-each-group:ROW ?>
    <?if: ./NAME !='D' or ./AGE > 100 ?>display the rows here. <?end if?>
    <?end for-each?>follow this approach
    Filter the rows while grouping.so that the blank rows wont be displayed.
    <?for-each-group:ROW[./NAME !='D' or ./AGE > 100 ] ?>
    display the rows here.
    <?end for-each?>

  • Interconnect 10g problem with XML which has mixed contents

    I'm having problem to receive a XML message which contains PCDATA and other child element Mixed. Here is the sample DTD. I'm able to create the CV and AV by importing this DTD. But at runtime, if the inbound XML contains PCDATA and other element mixed, it throws error. Any help/ workaround will be appreciated.
    <!ELEMENT VIEW_TRAN_M3 (#PCDATA | PERSON_ID | MP_CODE | STARTDATE | ENDDATE)* >
    <!ELEMENT PERSON_ID ( #PCDATA ) >
    <!ELEMENT MP_CODE ( #PCDATA ) >
    <!ELEMENT STARTDATE ( #PCDATA ) >
    <!ELEMENT ENDDATE ( #PCDATA ) >
    Sample XML:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE MEALPLAN>
    <VIEW_TRAN_M3>
    ABC123
    <PERSON_ID>12345</PERSON_ID>
    <MP_CODE>1</MP_CODE>
    </VIEW_TRAN_M3>
    Thx
    Saumitra

    Patch Number: 4901802 will fix this problem. Please look at SR Number 4960460.992 for more details.

  • Measurement data and problem with path selection

    Hello,
    I have a problem with the measurement data function; My instrument is the "Hyoki 3532-50 LCR meter".
    I´m tring to save the data in a text file using the "write to measurement file VI" . From the instrument i receive an array containing the data of the measure and then i use a for loop to obtain the single data obtainig the dynamic data necessary like input in the VI function. 
    The problem is that i receive ( for example) the Rp data and the Cp data in two separate moment and the result using the VI is something like
    1      56
    2      68
    3      95
    1      0,12
    2      0,30
    3      0,56
    (this is a stupid example to explain my situation)
    What i would like to obtain is 
    1      56   0,12
    2      68   0,30
    3      95   0,56
    The fact that i can+t receive all the three dynamic data in the same moment present also the problem that i don´t have the possibility to save in a different file every time i start the measure but to do it i have to reset the labview program ( this is due to the fact that in the property  i select "ask only once" because otherwise if i select " ask at each iteration" the second data flow overwrite the file) .
    If you need some image from code i can provide them 

    You really need to attach some code. We are graphical programmers and don't undestand longwinded text explanation
    Also the code images you attached earlier are useless. The abundance of local variables, stacked sequences, express VIs, and dead code make them impossible to debug by looking at a picture.
    LabVIEW Champion . Do more with less code and in less time .

  • Problem launching Firefox from Windows with file path that contains space characters in the html file's file name

    We have a software application that programmatically launches the default web browser using the Windows shell execute function ("ShellExecuteA" in the "shell32.dll" library of the Windows API) along with a file path for a saved local html file that is to be displayed. In the case that FireFox is the default browser and the file path for the html file contains any space characters in the html file's file name, Firefox (in this case v7.01) will display an error message "File not Found..." and then will also proceed to open tabs for each of the individual words in the file name, launching as the URL path, each individual word appended to ".com".
    In the following example, the path "C:\KSSecOfState\Forms\Kansas Secretary of State - Filings and Forms.htm" when launched programmatically, resulted in the error message "File not Found...Firefox can't find the file at /C:/KSSecOfState/Forms/Kansas." and opened up browser windows for "http://www.secretary.com/", "http://www.of.com/", "http://www.state.com/", "http://www.and.com/", and attempted to launch "http://forms.htm". If the same file (renamed) is launched using the path string "C:\KSSecOfState\Forms\KansasSecretaryOfState-FilingsAndForms.htm" the file opens up correctly in Firefox. Clearly the presence of spaces in the file name is causing the problem.
    I should also note that either path (with or without space characters) works properly if pasted directly into the Firefox URL path menu bar for a live instance of Firefox. The test path strings I used were:
    C:\KSSecOfState\Forms\KansasSecretaryOfState-FilingsAndForms.htm
    C:\KSSecOfState\Forms\Kansas Secretary of State - Filings and Forms.htm
    Does anyone know anything about this problem or how to work around it (other than the obvious answer of taking the spaces out of the file name which is not possible for this application). It seems the problem is specific to Firefox. IE works properly if launched programmatically with spaces in the file name passed to it. I haven't tested other browsers yet.
    Thanks!

    If starting from ShellExecute works the same as starting from the command line then there are two options:<br>
    Put everything inside double quotes<br>
    '''C:\Program Files\Mozilla Firefox\>'''firefox.exe '''"c:\test\svg test.htm"'''<br>
    Convert to a valid url with file:// protocol and percentage-escaping the space<br>
    '''C:\Program Files\Mozilla Firefox\>'''firefox.exe '''file://c:\test\svg%20test.htm'''<br>

  • Eclipse: Problem With Path Variable

    I'd be very grateful for any help with this....
    I have an app that runs fine from the windows shell but errors when
    run through Eclipse (even though I'm using exactly the same class
    files in both cases). The error I get is:
    native lib 'hrtlib' not found in 'java.library.path':
    C:\j2sdk1.4.2_04\bin;.....
    It goes on to list all the directories in my path, including the one
    that contains the DLL. However, when I do echo %PATH% from the
    windows shell, I get a slightly different output than Eclipse's: some
    directories are listed twice in the windows shell output, including
    the directory in question, which is listed first and then again in the
    same place where Eclipse lists it. Not sure if this is related to the
    problem or not.
    Any ideas what could be going on?
    Thanks,
    John

    http://forum.java.sun.com/thread.jspa?threadID=579724

  • Pending calls, problem with distinguishing which call that was disconnect

    Hi everybody,
    I have an application that gets triggered by incoming calls. When the calls are rejected a menu will show up. When users have pending calls however the menu should only be triggered when the newly arrived call is disconnected not if the ongoing call was disconnected and the user switched to the new call.
    If two calls are active on the phone, is it possible to distinguish which call an event belongs to?
    I have not been able to find any information about which tags that comes with EVENT_EVENT_DOWNLOAD_CALL_DISCONNECTED and EVENT_EVENT_DOWNLOAD_MT_CALL. I guess that there is no TAG_ADDRESS in EVENT_EVENT_DOWNLOAD_MT_CALL right? Maybe it is possible to check that both events occurs in the same channel (?) or something?
    Thanks in advance,
    Henrik

    Hi,
    Thanks a lot!
    I guess that the Transaction Identifier might be solution to my problems. It is the only field present in both MT CALL and CALL DISCONNECTED.
    Do you (or someone else) know more about how this field is used? To me it seems from the info in the document like it have one value per telephone call and this is what I am looking for. For MT call it says that it "shall contain one transaction identifier" coming from the network. For call disconnected it says that it "shall contain a list of the transaction identifiers for each of the calls being disconnected". In the document it also says for this field "Coding according to specific technology". Is it always one byte?
    When running in the Gemalto simulator the transaction identifier is always 00. On a mobile it doesn't work however, the MT CALL transaction identifier is there 00 and the CALL DISCONNECTED transaction identifier is 80. These value does not change when I test with more calls unfortunately.
    Best regards,
    Henrik

  • Problems with failover  which is taking more than 5 min

    Hi,
    I'm new to Weblogic world and facing some problems in failover.
    I have plugin configuration as below.
    In the httpd.conf file
    # Configure Performance settings
    Timeout 45
    ListenBacklog 1000
    KeepAlive On
    MaxKeepAliveRequests 0
    KeepAliveTimeout 15
    <IfModule mpm_winnt.c>
    ThreadLimit 500
    ServerLimit 6
    StartServers 2
    MaxClients 3000
    MinSpareThreads 500
    MaxSpareThreads 3000
    ThreadsPerChild 500
    MaxRequestsPerChild 0
    </IfModule>
    # EnableMMAP off
    # EnableSendfile off
    # Configure DoS Settings
    # Max Body size in HTTP Request of 100Mb
    # Max HTTP headers set to 50
    # Max HTTP header size to 8Kb
    LimitRequestLine 8190
    LimitRequestFields 50
    LimitRequestFieldSize 8096
    LimitRequestBody 104857600
    RLimitCPU 300 300
    RLimitMem 8192000 8192000
    #RLimitNPROC 20 20
    # EnableMMAP off
    # EnableSendfile off
    this Configuration is in Weblogic plugin as we have seperate the configuration and included this in the httpd.conf
    <IfModule mod_weblogic.c>
    WebLogicCluster ********************************
    KeepAliveEnabled ON
    KeepAliveSecs 30
    CookieName PSJSESSION_ID
    DebugConfigInfo ON
    WLIOTimeoutSecs 4000
    # Debug ALL
    # WLLogFile /u01/PWCapache/logs/staging-orbit-emea.pwcinternal.com/wlproxy_http.log
    </IfModule>
    Asuming 01 & 02
    We stopped one side of the weblogic server(01) and tried the failovering, requests are going to the 02 side absolutely fine but still the plugin is sending the requests to the 01 side and its taking more than 5 min to route to available (02 which is up).
    My thoughts are to reduce the WLIOTimeoutSecs 4000 to 300 value... and introduce DynamicServerList value(at the moment this value is not set not sure how the apache behaves if this value is not set any suggestion on this pls?)
    as well as to introduce ConnectTimeoutSecs (10)& ConnectRetrySecs(2)
    Could somebody please point to the solution for this?
    Edited by: user2659864 on 14-Dec-2010 01:55

    Hi,
    If you are completely shutting down the server-01 then once the server-02 sends the response back to the proxy then it would have the fresh list of which servers are running properly, hence if still the proxy is sending the request to the server-01 then this mean that the Apache process have not shared the dynamic server list with the other process or it seems to be a bug in the WLS plugin.
    Suggestion try to use the latest WLS plugin and see if you can solve this issue as most of the time it would not be a an issue with WLS plugin.
    And if you are suspending the server-01 then the below link would give you a better idea on it as how things works.
    Topic: 404 error with Apache and Suspended Weblogic managed server
    http://middlewaremagic.com/weblogic/?p=4567
    Secondly by default the value of "WLIOTimeoutSecs " is 300 seconds so if you don't give this value then it would take 300 seconds which goes with "Idempotent" value which is by default "on", hence if the server is not able to send the response then it would fail over the second server after waiting 300 sec . Thus if you decrease the value of "WLIOTimeoutSecs " it would help you in case. More information can be seen below.
    Topic: General Parameters for Web Server Plug-Ins
    http://download.oracle.com/docs/cd/E12840_01/wls/docs103/plugins/plugin_params.html#wp1143055
    Hope that would answer all your questions :)
    Regards,
    Ravish Mody
    http://middlewaremagic.com/weblogic/
    Come, Join Us and Experience The Magic…

  • Problems with an ActiveX container with a Microsoft Web Explorer in a subpanel

    I have an application with a subpanel.When I push a button I insert another VI in the subpanel. This VI has an ActiveX container with a Microsoft Web Explorer inside. The problem is that the first time I insert the VI all works, but the next time the VI is inserted the ActiveX container appears empty.
    Could anybody help me? Thank you very much.

    Hi,
    In the following two VIs ( uno.vi & dos.vi) I have tried to reproduce the problem you are facing. In my case eveything worked properly.
    I used LV 7 & Internet Explorer 6.0.2800.1106 under Windows 2000
    Try running the VIs I attach and check if the same thing goes on happening.
    YonA
    Attachments:
    dos.vi ‏27 KB
    uno.vi ‏24 KB

Maybe you are looking for

  • Applescript to rename a text variable

    Hello. I am currently using automator to make folders named after the large numbers of images. I have everything set up and its working great but I am trying to make it more efficient. The images follow a filename structure such as: bmz12345_black_1.

  • How do I output MemberOf so it lines up in one column in my output?

    Hi,The goal of the code below is to output the MemberOf info in the same column for each user.So if a user is a member of 5 groups, I need to output the 5 groups so they will all fall under the MemberOf columnheading in my output. Now, they fall to a

  • Terminal error

    Hello, +Initially I posted this question to the OS X 10.6 topic, but was redirected to this topic. So here my problem:+ A few days ago I tried to manipulate some server files using Terminal commands. Since I don't have any experience in this it obvio

  • How to post message from SAP to solution manager

    Dear Friends, We have configured solution manager service desk and the users were able to send messages so that we can view it in solman ITSM. Now we want to bifurcate the messages from different people, hence we woule like to use of Problems in inci

  • Add Pic to a playlist?

    Is it possible? The album pic, only shows at the first track. So be able to add pics to a playlist would be great Someone who knows it is possible? Sorry for my bad English :P Hope for answers soon