Unable to open file in emulator using Connector.open()

This is my code (run on emulator) used to open a file located in the dir: C:\WTK25\appdb\DefaultColorPhone\filesystem\root1
/**************************************CODE***********************************/
FileConnection fileConn = (FileConnection)Connector.open("file:///root1/" fileName, Connector.READ);
if(!fileConn.exists())
System.out.println("File not found");
else
System.out.println("File opened");
/**************************************CODE***********************************/
I always get the o/p as "File Not Found" although there exists a .txt file in the directory /root1. What is to be done to open file on emulator? Please give suggestions...
Message was edited by:
Chintan.Kanal
Message was edited by:
Chintan.Kanal

i m not sure but i hope this one is right 4 u......
StringBuffer buff = new StringBuffer();
InputStream istr = getClass().getResourceAsStream("/CLM.txt");
for(int i=0 ; ; i++) {
try {
if(istr != null) {
someByte = istr.read();
if(someByte == -1) {
buff.append("*");
clmcontent = buff.toString();
break;
buff.append((char)someByte);
} else {
// do some necessary
} catch(IOException ioe) {
}

Similar Messages

  • ORA-27086: skgfglk: unable to lock file - already in use

    Hi,
    I advance I appreciate your time for assistance.
    Thu Sep 30 23:07:08 2010
    Errors in file /opt/app/oracle/admin/EDITDATA/bdump/editdata_dbw0_21124.trc:
    ORA-01157: cannot identify/lock data file 6 - see DBWR trace file
    ORA-01110: data file 6: '/opt/app/oracle/oradata/EDITDATA/users01.dbf'
    ORA-27086: skgfglk: unable to lock file - already in use
    Linux Error: 11: Resource temporarily unavailable
    I am getting this error for last 2-3 days. I need to start up the database manually.
    Daily there is crontab schedule which will take the cold backup and startup the database. When I am checking daily morning. DBt is going into MOUNT stage instead of OPEN stage. I have check the script every thing is fine.
    Note: This is happening intermetendly. Also is error is happening with different datafiles each time.
    Regards

    user818118 wrote:
    This is the cold_backup Script ...
    1) First, it will shutdown the db.
    2) Copy all the crb files to the backup location.CRB files? Do you mean data files, control files and spfile/pfile?
    3) Startup the db.
    4) ZIp the files.
    5) Deletes the old uncompress files.Any special reason why you use this approach? It may in fact be slower than zipping and compressing on the fly.
    For example, 10GB of data files need to be be backed up. You can follow the above approach and make a 10GB copy. Then read that copied 10GB (20GB in total read at this stage) and then compress it (CPU resources needed) and then write 5GB of compressed data (assuming a 50% compression ratio was achieved).
    Now compare this with reading 10GB, compressing it (CPU resources needed) and then writing 5GB. Not only is this significantly less I/O to do, but less physical space is needed too.
    As for your problem - you can add some debugging code into the cold backup script to show whether any processes are using any of the Oracle datafiles prior to starting the Oracle instance. If so, then doing a process listing of the "guilty" process to determine who it is.
    Also keep in mind that you also need clean starts and exits from shell scripts... in other words, what happens if a 2nd copy of the cold backup is started? Or when a previous run failed and is stuck as a background process?
    In my experience, this is often the cause of the problem you're seeing - the database is started up, but the cold backup has a rogue process (remnant of some script failure) that still locks Oracle datafiles.

  • ORA-27086: unable to lock file - already in use, Help

    We have a windows 2003 server running 10.1.02 w/multiple instances. I created a new, fresh database using DBCA. the db created OK, and I can login as sys.
    When I try to create a tablespace, I get these errors. Any suggestions, please?
    Thanks,
    Leor
    SQL> CREATE TABLESPACE BGEN_DATA
    2 DATAFILE 'BGEN_DATA.ora' SIZE 1000M REUSE
    3 AUTOEXTEND ON NEXT 2M MAXSIZE UNLIMITED
    4 ;
    CREATE TABLESPACE BGEN_DATA
    ERROR at line 1:
    ORA-01119: error in creating database file 'BGEN_DATA.ora'
    ORA-27086: unable to lock file - already in use
    OSD-04002: unable to open file
    O/S-Error: (OS 5) Access is denied.

    We have a windows 2003 server running 10.1.02
    w/multiple instances. I created a new, fresh
    database using DBCA. the db created OK, and I can
    login as sys.
    When I try to create a tablespace, I get these
    errors. Any suggestions, please?
    Thanks,
    Leor
    SQL> CREATE TABLESPACE BGEN_DATA
    2 DATAFILE 'BGEN_DATA.ora' SIZE 1000M REUSE
    3 AUTOEXTEND ON NEXT 2M MAXSIZE UNLIMITED
    4 ;
    EATE TABLESPACE BGEN_DATA
    ERROR at line 1:
    ORA-01119: error in creating database file
    'BGEN_DATA.ora'
    ORA-27086: unable to lock file - already in use
    OSD-04002: unable to open file
    O/S-Error: (OS 5) Access is denied.First of all, you need to give an absolute path to your datafile. Otherwise, it's going to be hard to track where's the file.
    Do you have other database instance running on the same server?
    PS, don't cross post on many forum.

  • ORA-27086: unable to lock file - already in use

    Hi All,
    Can any one having Idea about this Error while Upgrading from 9.2.0.4.0 to 10.2.0.2.0 on AIX 5.2 after software Installation before patch set apply when i try to start the Database im Getting this Error Below
    SQL> startup mount
    ORACLE instance started.
    Total System Global Area 784334848 bytes
    Fixed Size 2022384 bytes
    Variable Size 550634512 bytes
    Database Buffers 229507072 bytes
    Redo Buffers 2170880 bytes
    ORA-00205: error in identifying control file, check alert log for more info
    Alert_LOG
    Mon Jul 3 09:17:15 2006
    ORA-00202: control file: '/oracle/QAS/sapdata1/cntrl/cntrlQAS.dbf'
    ORA-27086: unable to lock file - already in use
    IBM AIX RISC System/6000 Error: 13: Permission denied
    Additional information: 8
    Additional information: 26492
    Please Help me..........
    Ahmed

    check do u have proper permission to access this file?
    and also check whether Is this file is access by 9i database or not.if this is the condition then shutdown the database and startup from 10g home.
    27086, 00000, "skgfglk: unable to lock file - already in use"
    // *Cause:  the file is locked by another process, indicating that it is
    // currently in use by a database instance.
    // *Action: determine which database instance legitimately owns this file.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Unable to create File System Repository using Network Path

    Hi All,
    I am trying to create a File System Repository.
    I created a networkpath and windows system and used the same while creating File Repository according to the steps in help.
    With out using Networkpath(i.e.,If I use IP address,I am able to create File System Repository).
    But with the network path,it throws the following error as seen in Component Monitor.
    <b>Startup Error:    The localroot does not exist: C:\usr\sap\IGTE\j2ee\j2ee_00\cluster\server\NWP_001
    My network path is NWP_001
    </b>
    Did any one face this problem?
    Any help please........
    Rgds,
    Santhosh

    Hi,
    I am getting the same error even if I replace(\) by slashes(/).
    I tried on EP6SP12 as well as EP6SP2 and got the same error on both.
    The repository is searching for a folder named with
    n/w path on the portal server itself(i.e, it is searching in the following folder
    <b>C:\usr\sap\IGTE\j2ee\j2ee_00\cluster\server\NWP_001
    My network path is NWP_001</b>),instead of searching on the remote system.
    Can any one help me in solving the problem
    Thanks in Advance.
    Rgds,
    Santhosh

  • HELP! "unable to eject files are in use by another program"

    how do i eject it, whats goin on

    Easy way. Reset the iPod, then disconnect when you see the Apple logo.
    Another way. Hold ctr-alt-del to bring up the Windows Task Manager. Go to the Processes tab and look for iTunesHelper.exe and iPodService.exe. Select them and hit the End Process button. Close the Windows Task Manager Window and try ejecting the iPod via the safely remove hardware method.
    

If you are still having problems you can try one more thing. Right click on the My Computer icon and select Manage from the list of actions. Go to the Services and Applications item and from there the services item. Double click on the services item to bring up the list of services currently installed on your computer. Look for the iPod Service and double click on it. From the new window select Stop. Now try again to eject using the safely remove hardware option.
    

If all else fails shut down the computer and disconnect the iPod.

  • ORA-27086: unable to lock file over NFS -- but it's NOT Netapp!

    My 10.2 database crashed, and when it came back I got the following error:
    ORA-00202: control file: '/local/opt/oracle/product/10.2.0/dbs/lkFOOBAR'
    ORA-27086: unable to lock file - already in use
    Linux-x86_64 Error: 11: Resource temporarily unavailable
    This is a classic symptom of a Netapp problem, which likes to hold file locks open on NFS mounts. There is a standard procedure for clearing those locks; see, for instance, document 429912.1 on Metalink.
    Unfortunately, my files are mounted on an Isilon, one of Netapp's twisted cousins. I can find no references to "isilon" on Metalink, and we are at a loss how to resolve this.
    My sysadmin assures me that "there are no locks on the Isilon". But I know this cannot be the case, because if I do the following:
    1. delete the lockfile /local/opt/oracle/product/10.2.0/dbs/lkFOOBAR, and then
    2. move my controlfiles aside, and then copy them back into place,
    then the database will mount. However, it will not open, because now all the datafiles have locks.
    Is there anyone with experience in clearing NFS locks? I know this is more of a SA task than DBA, but I am sure my SA has overlooked something.
    Thanks

    New information:
    As stated above, I moved the controlfiles aside and then copied them back into place, like this:
    mv control01.ctl control01-bak.ctl
    cp control01-bak.ctl control01.ctlDid that for each controlfile, and then the database mounted.
    But, after rebooting the machine, we discovered that all locks were back in place-- it looks like the system is locking the files on boot-up, and not letting them go. The lock is held by PID 1, which is init.
    sculkget: lock held by PID: 1This is definitely looking like a major system issue, and not a DBA issue, and hence I have little right to expect assistance in this forum. But nonetheless I lay my situation out here before you all in case someone else recognizes my problem before the server bursts into flames!
    The system is CentOS 4.5-- not my choice, but that's the way it is.

  • I can't attach files in gmail using firefox

    <i>Locking duplicate thread.<br>Please continue here: [[/questions/1014563]]</i>
    Greetings,
    Starting today I'm unable to attach files to emails using my gmail account, when opening in firefox. I'm using the latest version of firefox (31.0) and have been using it fine for a couple of months. I click on the attachment button, and the search browser does not open. Email attachments work fine using safari.
    I've uninstalling and reinstalling firefox, I've cleared my history, cookies and cache. I've turned my computer off and back on.
    Please help, thank you.
    Shea

    If you can't add attachments to Gmail messages then you need to add an allow exception to allow pop-ups for the Google website.
    Easiest to do this is to click the padlock on the location bar and click the "More Information" button to open the "Tools > Page Info" window with the Security tab selected.
    Proceed to the Permissions tab
    Remove the tick on "Open Pop-up Windows" > "Use Default" and click the Allow radio button to change the permission to allow pop-ups for this domain.
    Google is looking into this issue, see:
    * https://productforums.google.com/forum/#!topic/gmail/q0BxcGOa6pk

  • Disconnected Analytics Sybase Specified database file already in use Error

    Hi:
    what do i have to configure on the OBI Disconnected Client, because any time i try to create an a request in answers iin my disconnected application i get the following error
    Sybase][ODBC Driver][Adaptive Server Anywhere]Specified database file already in use. (HY000)
    Do i have to create an ODBC connection? Which db do i have to point?
    Thank in advanced
    Cheers

    Please see response in your ORA-27086: unable to lock file - already in use, Help

  • Online backup failure due to ORA-27086: unable to lock file - already in us

    Hi All,
      Online backup has failed due to the error
    =========================================================
    BR0301E SQL error -27086 at location BrInitOraCreate-5, SQL statement:
    '/* BRBACKUP AT PROF_CONN */ CREATE PFILE = '/oracle/SID/102_64/dbs/sap.ora' FROM SPFILE = '/oracle/SID/102_64/dbs/spfileSID.o
    ra''
    ORA-27086: unable to lock file - already in use
    IBM AIX RISC System/6000 Error: 13: Permission denied
    Additional information: 8
    Additional information: 1388548
    BR0303E Determination of Oracle version failed
    ==========================================================
    Please suggest.

    Check the file permissions on your Oracle_home...
    And kill all the processes, which already running for backup..
    Regards,
    Nick Loy

  • I am unable to open raw files from my Canon T1i in Adobe Camera Raw of my version CS3 of Photoshop.  I have tried to update my ACR by downloading version 4.6 from the Adobe website but I am still unable to open raw files, just JPEG.  Is there a way to use

    I am unable to open raw files taken on my Canon Rebel T1i in my version of Photoshop CS3.  When I import raw files into Bridge they come up as patches with CR2 on them and when clicked on, a notice comes up stating that Photoshop does not recognize these files.  I tried to update my Adobe Camera Raw by downloading version 4.6 from the Adobe Website, but when I clicked on the plus-in, I got another message that Photoshop does not recognize this file.  I spoke with a representative from Canon who said that I could not update CS3 and that I should subscribe to the Cloud.  I would prefer to use my CS3, if possible.  Can anyone advise me what to do?

    The T1i was first supported by Camera Raw 5.4 which is only compatible with CS4 and later
    Camera Raw plug-in | Supported cameras
    Camera Raw-compatible Adobe applications
    Some options:
    Upgrade to CS6
    Join the Cloud
    Download the free Adobe DNG converter, convert all T1i Raw files to DNGs then edit the DNGs in CS3
    Camera raw, DNG | Adobe Photoshop CC

  • Unable to open .pdf in Firefox 3.6.8 with Adobe Reader 9.3.3 installed. Error message is "The Acrobat/Reader that is running can not be used to view PDF files in a web browser."

    I am unable to open a PDF file in Firefox 3.6.8. Adobe Acrobat Reader 9.3.3 is installed. I get the error message "The Adobe Acrobat/Reader that is running can not be used to view PDF files in a web browser."

    You can get that error if there is still an old Adobe Reader plugin in the plugins folder in the Firefox program folder.
    C:\Program Files\Mozilla Firefox\plugins\nppdf32.dll
    See also http://kb.mozillazine.org/Adobe_Reader

  • I am using UPK developer 12.1.0 single user. My sofware has crashed and needs reinstallation. Please suggest how can I take back up of my source files. I am unable to open the application and i can not locate the library backup folder on my local machine.

    I am using UPK developer 12.1.0 single user. My sofware has crashed and needs reinstallation. Please suggest how can I take back up of my source files. I am unable to open the application and i can not locate the library backup folder on my local machine.
    Also, does reinstallation takes the back up automatically or the files will be lost. Please help.

    Here are a bunch of scripts to get folder size under all circumstances.  Take your pick.
    https://gallery.technet.microsoft.com/scriptcenter/site/search?query=get%20folder%20size&f%5B0%5D.Value=get%20folder%20size&f%5B0%5D.Type=SearchText&ac=2
    ¯\_(ツ)_/¯

  • Unable to open pdf files using Internet Explorer and Adobe 9.1

    We are unable to open any/all pdf files in Internet Explorer 6 or 7 using Adobe Reader 9.1 on Windows XP SP2.
    The error message is that IE has a problem and sorry for the inconvenience.
    Clicking "OK" closes IE.
    We did not have any issue with Adobe Reader 8.1.
    What we did to date:
    1. Uninstall Adobe Reader 9.1
    2. Run Windows Clean Utility to remove any remnant of Adobe Reader 8
    3. Re-install Adobe Reader 9.1
    Any other suggestions?
    Need to have this upgrade.

    I'm having a similar issue. Prior to upgrading to Acrobat 9.1 I was able to view PDFs from IE 6. No longer. Instead I get a message: "Error opening document. File cannot be found."
    Help?

  • Unable to open Numbers file in iCloud using Numbers 2.3 (iWorks 09)

    Using my iMac (OS 10.8.5) and Numbers (2.3), I am unable to open a Numbers file built on my iPad2 (7.1.1) and stored on iCloud. I get an error message indicating that I need to upgrade Numbers on the iMac. The version available to download on the App Store is 3.2.2 and seems to require Maverick to run. i don't really want to spend the money on either, but will if I have to obviously. (DISLIKE). Are there other options? And will the upgrade also force me into iOS 8?
    Thanks in advance.

    Hi Reefkeeper,
    You will need Mavericks to use Numbers 3. I don't use iCloud right now but it seems some users are experiencing difficulties at the moment with the iOS 8 upgrade. To Use Numbers in iCloud you will need iCloud Drive which requires iOS 8 and Yosemite on the Mac. Yosemite is not out yet.
    I sync my Numbers files between my iPod and Mac using iTunes and file sharing. It is a little clunky but gets the job done. You can also email files.
    It has been said on these forums that Numbers 3 is a free upgrade- I can't remember. I don't do a lot of printing or find and replace and Numbrs 3 has suited me very well. It is said to be more applescript friendly and of course that whole cloud thing. '09 will still be on your computer.
    quinn

Maybe you are looking for

  • [CS3, VB] How to find text and store as a string

    Dear all, I'm stymied again with what seems a simple thing. But you hear that a lot. I want to find a reference number in a document and then use that to create a filename later on. I've got this far, adapting code from another topic: myString = "Rel

  • How can I save my iMovie Project to a DVD or Flash Drive which can be played on a PC and any DVD player

    I have an iMac, purchased in January 2011. How can I save an iMovie project to a DVD or Flash Drive which can be played on a PC or any DVD player

  • Mac os X often crashed

    Hi guys, does anybody here knows whats wrong with my imac? i bought my imac in february '09 but not the newest one. Everytime i want to quit few applications at the same time such as, Logic pro 8, reason 4, my mac os x always crashed which a black sc

  • Org Structure Monitor

    Hi Everyone. Please assist with this. I've created a custom monitor for bpm to monitor our org structure if a bp becomes orphaned. Basically the central person links the User to the BP, without this the Org chart cannot resolve where users are linked

  • Switch to mac cable

    i just bought a macbook and it is the first mac i have owned. so far i love it anyway i purchased a Belkin switch to mac cable to transfer all of my data from my dell to my mac anyway it was not working at first so i decided to delete the software an