Cannot read properties files in debug mode .....

I am using JDeveloper 10g (10.1.3.0.4) and cannot seem to read properties files in debug mode, while it runs fine in Run (non debug) mode!!
For code like this:
Properties props = new Properties();
String dbPropsFile = "/pol_main.properties";
InputStream is;
is = this.getClass().getResourceAsStream(dbPropsFile); <---- ERRORS HERE!
props.load(is);
I get error messages like:
"Unable to find source file for package oracle.classloader, filename PolicyClassLoader.java".
Cannot go any further.
I am using the "hotspot" virtual machine under Project debug options. Using Sun's
JDK 1.5 update 6 with Ojvm installed.
Thanks.

I think I figured out something. In jDeveloper 10.1.3, open your project properties and click on the Run/Debug treeview branch. Now Edit the Run Configuration you are using (mine is Default) and check the Run Directory. If I change this to be the root of my source, which is one level down from my .jpr file, it now uses my standard path and finds my files. I suppose you could also change this to use the classes directory as the root as long as your props files were there too. My problems seem to be the result of my project root being one folder higher than my source root due to the way our project was imported from CVS. --Ed                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Similar Messages

  • When I open iPhoto 9.2.1 it says that my library needs to be upgraded but when I upgrade the library I am trying to open (33 GB worth of pictures from 2006) the new application says it cannot read the files and how to find them on the system to reimport?!

    When I open iPhoto 9.2.1 it says that my library needs to be upgraded but when I upgrade the library I am trying to open (33 GB worth of pictures from 2006) the new application says it cannot read the files and how to find them on the system to reimport?! and then I'd like to erase the original files since the space requirement is huge!!!! Why is upgrading software iPhoto such a pain. I've gotta get a presentation done and all I get for my money is roadblock!!!

    hello, it sounds like the library is damaged.
    Download iPhoto Library Manager and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one. 

  • Cannot read image file in oracle 10g forms, getting error frm-47100

    I'm unable to read the image from the file location. But If I do re-save via MS-Paint the same image then I'm able to load successfully. I want to load image directly instead of re-save.  Error getting like "frm-47100 Cannot read image file".
    Need your co-operation to solve this issue.
    Thanks in advance!
    declare
      tiff_image_dir varchar2(80):=('D:\IMAGE\');
      photo_filename varchar2(80);
    begin
      photo_filename:=tiff_image_dir||:IMAGE_NO||'.JPG';
      if :image_no is null then
      :Image_no :=:UID_NO;
      end if;
      read_image_file(photo_filename,'JPG','image');
      WRITE_IMAGE_FILE('output.tif','TIFF','g_image_info.image',maximize_compression,original_depth)
    end;

    Hi Sindhu,
    By default any operating system file extension starts after the dot. So in this case when it says 2 dots it will think there is something wrong.
    RajeshALex

  • HT3775 I have a video file that is under quick play .mov and my macbook is telling me that it cannot read the file?

    I am trying to record something on my desktop and I recorded it with an application called iscreen recorder lite. I downloaded it off of the application store thinking it would save under a file my computer would recognize. When I tried to play the recording back again, my computer tells me it cannot read the file and I should see if the formatting is right. I checked and the file is under .mov which should be supported by mac. Please help!

    I have this exact same problem, only on Snow Leopard. What's the right answer?
    Thanks, Mark

  • How to read properties file(key-value) in OSB?

    Hi
    I have a scenario in which I have to read some properties(key-value) from a file. Earlier whole code was developed in java and its easy to read properties file in java.
    But now need to implement this in OSB and performance is very critical in this project.
    I followed DVM approached defined in
    http://blogs.oracle.com/christomkins/2010/02/domain_value_maps_in_oracle_se.html and http://blogs.oracle.com/christomkins/2010/02/domain_value_maps_in_oracle_se.html
    But it did not work. I have hundreds of properties(key-value pairs) to read and need pass them to the business service along with input of proxy service.
    What is the best approach for this (Can not go for db call as performance is very critical)?
    Thanks
    Vibhor

    $DVM= <dvm      name="InterfaceProperties" xmlns:ns1="http://xmlns.oracle.com/dvm" xmlns="http://xmlns.oracle.com/dvm">
         <columns>
         <column      name="PROPERTY_KEY" qualifier="false" order="1"/>
         <column      name="PROPERTY_VALUE" qualifier="false" order="1"/>
         </columns>
         <rows>
         <row>
         <cell>dealer.locate.default.buypower.link</cell>
         <cell>http://www.xyz.com</cell>
         </row>
         <row>
         <cell>dealer.locate.default.unitOfMeasure</cell>
         <cell>MILES</cell>
         </row>
         <row>
         <cell>dealer.locate.brand.identifier.nu</cell>
         <cell>Nurun</cell>
         </row>
         <row>
         <cell>dealer.locate.brand.identifier.bu</cell>
         <cell>Buick</cell>
         </row>
         <row>
         <cell>dealer.locate.brand.identifier.ca</cell>
         <cell>Cadillac</cell>
         </row>
    </rows>
    </dvm>
    XPATH is- ns1:dvm/ns1:rows[1]/ns1:row[1]/ns1:cell[1]/text()
    If I run this xpath in Jdeveloper,its giving me proper output.
    Please this as CQuery resource and try to run this xpath on OSB console.
    Thanks
    Vibhor
    Edited by: Vibhor Rastogi on Sep 21, 2010 4:59 AM

  • Just bought Canon 40d - Use CS2 - Cannot read Raw files in Bridge

    Heading says it all really. Just purchased new Canon 40D Body and have been using CS2 on Mac OS 10.4 for over two years. Cannot read RAW files in Photoshop Bridge which is what I have used consistently with 20D files up to now. Quick search on Google brought up fact that Adobe had not up upgraded Bridge to read new 40D files but that was 2 years ago. Am now looking for plug-in! Can anyone help or am I now forced to upgrade my CS2 or move away to Aperture or Lightroom? Any help gratefully received. Rob

    The 40d is not supported by any version of Camera Raw that can run in CS2.  You need at least CS3 and ACR 4.2 or greater.
    Dowload the free, stand-alone Adobe DNG Converter 5.3 and convert the raw files from your 40d to raw DNGs first, then you can open the DNG files in ACR 3.7 hosted by CS2.

  • Install Adobe Reader but cannot read PDF file

    Hi all,
    I am new and not familiar yet with forum so excuse me for a duplicate posting at
    http://www.adobeforums.com/webx/.59b65e89/6
    which is a thread "cannot install Adobe Reader". Since mine is a different problem, am transferring what I posted there into a new thread, which is as follows:
    ===============================
    I cannot read PDF files with web browser so uninstalled and reinstalled with Adobe Reader 9
    I still cannot read PDF file with web browser. After clicking on a link that is a link to a PDF file, I just get a blank page
    Why and what can I do?

    AOL used to have a lot of problems with PDFs, hope that has not returned. Anyway, the PDF was probably sent as a text file rather than encoded as a binary file. That would make it corrupt and is a problem on the senders end. Older versions of Outlook also had problems with PDFs that would cause a problem on your end.

  • Enabling trace file in Debug mode

    Hi all
    how to enable the trace file in debug mode,...
    can any one help me in this,...

    Hi,
    answered in your second thread on this. *g
    Regards,
    Heike

  • While signing a .XML file a message "cannot read the file for signing" is displayed. What is the solution.

    An official site incometaxindiaefiling.gov.in requires .XML files to be uploaded. When .XML files are uploaded without digital signatures there is no problem. When digital signatures are required for signing the same a message 'CANNOT READ THE FILE FOR SIGNING" is displaced. It happens with CHROME and IE also. The solution which I have devised is that I copy the .XML files in a folder called FAKEPATH in C: drive and pick the file for signing from this folder. The browser allows the file to sign with digital signatures. What is the solution.
    Ashish Goel

    Ashish,
    You might want to submit this feedback at https://incometaxindiaefiling.gov.in/e-Filing/Services/Feedback.html instead.

  • Pain't cannot read this file.  This is not a valid bitmap file or it's format is not currently suppo

    Have some photos of a warehouse fire in Plymouth Indiana.  Files were saved as .jpg  Can't get them to open.
    One message is "
    Pain't cannot read this file.  This is not a valid bitmap file or it's format is not currently supported." 
    Couldn’t display DSC-0023.jpg because a suitable graphics importer could not be found.
    Carl Beason
    Windows 7, Photoshop cs4
    Help Please

    As has been suggested above, I would explore Opening the files in another program first, and if successful, just doing a Save_As from that program.
    I do not know how sensitive Paint might be, but Ps really wants the JPEG header info to be well-formed. I often encounter JPEG errors in Ps, and my first stop is to IrfanView (free), or ThumbsPlus (commercial), as both seem much more lenient with JPEG's. I have only had a few files, that nothing on my computer would open. I assume that they were just too corrupt.
    With either my IrfanView, or ThumbsPlus, when Opened, I do a Save_As, and choose a low compression/high-quality JPEG. If you other program supports Save_As PSD, that would be my # 1 choice, and keep JPEG out of the mix from that point on.
    Good luck,
    Hunt

  • Routine FDPREP cannot read the file APXAECTR.rep

    When i tried to generate report from AP, i found this error
    Routine FDPREP cannot read the file /d01/oracle/SVIPROD/apps/apps_st/appl/ap/12.0.0/reports/US/APXAECTR.rep.
    as i checked the specified directory, the file was not there.
    Where to get the file?
    Please advise
    Thanks

    Hi,
    Hi there is no APXAECTR.rdf in the directory, how can i download or install this in my server?I believe I have explained this in my previous reply.
    If you have a backup or any other identical instance, just restore/copy the file.
    If this is the only instance you have, run adadmin and generate the report (select "Generate reports files" option from adadmin).
    For details about adadmin, please refer to:
    Oracle Applications Maintenance Procedures
    http://download.oracle.com/docs/cd/B53825_03/current/acrobat/121admp.pdf
    Thanks,
    Hussein

  • Cannot read pdf files

    My operating system is Windows Vista and the version of Adobe Reader I have is 5.1, but they are incompatable; therefore, I cannot read pdf files.  Is there a fix?

    That is definitely a very old Reader version!  Uninstall it, then install the latest Reader for Vista, which is 10.1.9

  • RWMS Login issue: FRM-40010 cannot read fmx file.

    Hi Experts
    I installed RWMS R13.1 on 10.1.2.3 and used below url to open it first time.
    http://machine:7779/forms/frmservlet?config=application_name
    It throw below error
    FRM-40010 cannot read fmx file.
    Please help.

    hi,
    check the application configuration. It might be pointing to the wrong path of the compiled oracle forms (.fmx) or simply the forms have error during compilation
    Edited by: user8871651 on May 12, 2012 1:17 AM

  • Cannot open on Nook, "This Nook cannot read this file. It may be an unsupported format"  what can I do?

    I used ADE 4.0 and ebook transferred to computer and Nook - it opens on my computer but will not open in Nook.  Error message says "This Nook cannot read this file.  It may be an unsupported format."  What can I do to open it on my Nook?

    First, I would recommend repairing the hard drive with Disk Utility.
    If that doesn't fix the problem, there's a very dangerous command you can execute in the Terminal.  This is very hazardous, because a simple typo can result in very drastic consequences.  I have seen people erase their entire hard drive by putting a space in the wrong place!  So, please follow the directions I'm going to give you very carefully!
    Open the Terminal, which is found in the Utilities folder in the Applications folder.  In the Terminal, enter the following:
    sudo rm -f
    Make sure to put a space after the "-f"!  Then, drag the troublesome file from the Finder and drop it on the Terminal window.  That should insert the path to the file in the command.  Then go back to the Terminal and press return.  You will be asked for your password, and when you type it, nothing will be shown as a security measure.  Press return again after entering your password.  The file should be deleted.

  • The best way to read properties file

    Hi folks,
    The best way to read properties file i.e.. using ResourceBundle or FileInputStream . if so how to do it , my properties file is n WEB-INF/classes/myprop.properties.It's urgent.
    Thanks & Regards,
    Rajeshwar.

    WEB-INF/classes should be in your classpath. The web container takes care of that.
    All you have to do is call ResourceBundle.getBundle("myprop").
    It'll append the .properties for you.
    http://java.sun.com/j2se/1.5.0/docs/api/java/util/ResourceBundle.html#getBundle(java.lang.String)

Maybe you are looking for

  • Web pages won't load when MacBook Pro on battery power

    My sister bought a MacBook Pro in January. She switched from a Dell laptop. Everything was great until a few weeks ago. When she would be on battery power, she would have a hard time getting websites to load with Safari. I suggested she use Firefox a

  • Bugs in Premiere Pro CC 2014 (8.0)

    I'm going to file bug reports but just wanted to see if anyone else is having these problems... • setting poster frames - whenever I set a poster frame the chosen frame doesn't stick • video & audio preview folder location - I have my scratch disk fo

  • How do i download on my PC if already downloaded on laptop

    I purchased and downloaded CC on my laptop,how do i download on my PC

  • Borrar nombre de la casilla

    buenas noches a todos quiciera saver como borrar los nombres  de usuarios de mi casilla de skype

  • Iphone 3gs unlock ?

    Heloo im hardly traing to activate mi iphone and is not starting IMEI:**** Serial Number:83******3NP Activated:Yes Find My iPhone:Off Telephone Technical Support:Expired Repairs & Service Coverage:Expired Estimated Purchase Date:February 8, 2010 Cont