Accessing a flat data file from within a session bean

Hi
I want to access a csv file (output from an excel file) to populate my database at the start of an application. I nonchalently tried to create a BufferedReader/FileReader to open the file, and dropped it in with my classes in the deploytool. What a surprise, it doesn't work.
What approach should I be using? I can't seem to find anything about it, which might suggest it's just plain not allowed, in which case, how do I populate my db?
All help appreciated, I'm going to try to get this working tomorrow.
Cheers
J

Thanks Annie (my, you are prolific), got that (found this: <http://www.developer.com/java/other/article.php/734191>).
So, now I've got a helper class that opens the flat file perfectly well when run alone from the console.
However, when I call the same method in J2EE:
     return new dBPopulatorHelper().populate();
it gets caught by my try/catch
     catch (Exception ex)
          return("Exception caught in dBPopulatorHelper populate(): " + ex.getMessage());
and returns a permission error:
Exception caught in dBPopulatorHelper populate(): access denied (java.io.FilePermission M3B.csv read)
I'm using Linux, but the file M3B has all permissions set.
I've a feeling this is about how I've set it up in the deploytool. I've included the file in the dbPopulator jar .. is that right or wrong? Actually, I get the error whether I do that or not.
Is it a paths thing? I put the file where my class files are in the /build directory. Is there some setting I should click in the deploytool?
All help appreciated
Cheers
J

Similar Messages

  • Unable to display the Content of a data file from within another data file in Oracle webcenter portal.

    We have a Content Presenter taskflow. This task flow is added to a jspx page. The taskflow fetches the content from the contributor data file. The contributor data file is having a WYSIWYG editor. The content of the WYSIWYG editor is being displayed correctly through the task flow.
    We have some links in the WYSIWYG editor. These links again point to some data files. When we click on these links from within the portal, then we are getting a blank page(the url of this blank page is: http://localhost:7101/eWSIBPortal/faces/oracle/webcenter/sitestructure/render.jspx?datasource=UCM%23dDocName%3AWSIB_ARTICLE) and not displaying the content of the data file that we are pointing to from the WYSIWYG editor.
    We want to display the content of these data files(which we have pointed from WYSIWYG editor) in-line within the portal.
    Please help us to resolve this issue and let us know if any information is required from our end.

    Thanks for reply. However, can I use XSQL to dump the formated text to a file? or just can display to client through web browsers?

  • PL/SQL Package importing from Flat Data files

    Looking for sample PL/SQL package in importing data from flat data files into Oracle. Possible using the UTL_FILE.FOPEN and UTL_FILE.GET_LINE functions ?

    SQL Loader is tailor-made for importing data from flat-files.
    There's way less code to write and it is usually faster than coded approach so this may be better solution for you, depending on details of your situation.
    See docs: http://otn.oracle.com/docs/products/oracle8i/doc_library/817_doc/server.817/a76955/ch03.htm#2436

  • How do i move a data file from my pc to my ipad

    How do I move a data file from my computer to my ipad? It is my product catalogue and it would help if it were on my ipad.

    Plug the iPad into iTunes and you can use file sharing to move it into an app that supports file sharing and that document format.
    see http://support.apple.com/kb/ht4094
    Or, use an online storage service (iCloud, dropbox, box, google drive, sugarsync, etc) and upload the file to that.  Then on the iPad, from within the app you plan to use the file with, link to that service and download the file.
    The app will again have to work with that file type, and support the particular service you used.

  • Timecapsule - opening files from within an application!!

    I have a time capsule... 500Mb
    I have an airport extreme with external hard drive - 250 Mb.
    Through Finder, I can place files on either of these drives and open them from Finder.
    If I open Numbers, or Pages, then try to open any file on Timecapsule, it appears that there are no files
    If I open Number, or Pages, then try to open any file on the Airport Extreme external disk - it works!
    Simple question really.... why cannot I see or open any file from within an application that resides on Timecapsule?? It's driving me crazy!!!
    Message was edited by: GrahamDurkin

    File dialogs have the ability to "group" items, which prohibits you from changing sort options.  The group icon looks like six little squares.  Click on it and instead of grouping by date, group by "none" and then you can change sort orders.

  • How to extract/export SD billing invoices to flat data file

    Hi,
    We are using SAP R/3 4.5b and we have to extract billing invoices to flat data file like csv or xml. How do we do it?
    Thanks

    Hi Gyan Der,
    There is another simple method to extract the SD Billing values from SAP.
    You can find the SD Billing data in the following tables:
    <b>VBRK - Header Data
    VBRP - Item Details.</b>
    You can create a report using these 2 tables in the Transaction <b>SQVI</b>.
    check the following link for help to create Quick Views:
    http://help.sap.com/saphelp_nw04/helpdata/en/d1/44f2b5c7f411d296080000e82de14a/frameset.htm
    In SQVI, you can create table joins for the above 2 tables & extract the required output.
    The report output can be transferred to an excel file or text file.
    hope this helps!
    best regards,
    Thangesh

  • Transferring data files from OS9.1 to OSX(10.4.7

    I've done a lot of reading this evening and I am still unclear about transferring info from OS9.1 to OSX(10.4.7). Programs are not transferrable, but data files were not addressed directly. The platforms are the issue. My understanding is that Office:Mac 2004 and Quicken 2007 will translate data files from AppleWorks6 and Quicken 2000. I have data files on my iMacOS9.1, also backed up on an Acomdata external harddrive. Is there anything, or way, that I can get these files transferred to my new iMac20"(10.4.7)machine? From what I'm reading, FireWire target disk mode holds some faint hope. I'm concerned that if I access the external harddrive, it may require a re-initializing, even though it was originally partitioned to receive both PC and Apple OS files.

    Continuing trial and error. My old Imation Floppy Drive worked well to transfer Quicken files across from OS9.1 to OSX(10.4.7). The new iMac apparently had the necessary driver, because everything came to life when I hooked into the USB2.0 port. At 1.4m it's slow. Probably the same success can be accomplished by CD's and probably the same with the Fire Wire Target Disk Mode, if you are careful about the material you try to transfer. In the case of Quicken, when the file was transferred, a dialog box came up giving a recommended procedure to follow. Easy!

  • Opening Files from within an application

    OSX 10.8.2 - Column view - When I open a file from within Acrobat (9.5.4) the list of files is sorted chronologically (Today, Yesterday, Previous 7 Days etc.) Is there a way to turn this off. This started when I upgraded to OSZ 10.8.

    File dialogs have the ability to "group" items, which prohibits you from changing sort options.  The group icon looks like six little squares.  Click on it and instead of grouping by date, group by "none" and then you can change sort orders.

  • Unable to delete data files from my Ipod if used as data storage...

    Hello everybody
    I bought months ago an Ipod Nano 8GB. I've got an issue when i use it as disk storage i'm not able to sort out. I've checked all the topics but i cannot find any solution.
    Example: I use the Ipod with the option "Manually manage music and videos". I put audio and video files on my Ipod through Itunes, then i put also some files on my Ipod as normal data files through my Mac Finder (Easy, i drag VLC, JPG files etc. from folders to my Ipod). The Ipod/Itunes summary page shows (Correctly) the capacity column colored in blue (Audio), video (Purple) and orange (Data). No probs when i transfer data files to another computer.
    Problem: when i delete the data files from my Ipod (Through finder) the orange column doesn't disappear (I have no problems if i delete audio/video files via Itunes) and although i've actually deleted all the files if i try to add some other data or videos/music files to my Ipod, Itunes says that there is no space available in my device. It's very strange, i check and double check all the options but eventually i have to restore my Ipod all the times and (Pretty annoying) add all my files again.
    It seems that although i sent my files to the trash bin, Itunes (Fully updated) doesn't recognize the change.
    It'd be great if someone can help me out as it's very important for me to be able to use my Ipod as disk storage, thanks a lot!

    It seems that although i sent my files to the trash bin, Itunes (Fully updated) doesn't recognize the change.
    Empty it from the Finder menu or by control-clicking it in the Dock.
    (44613)

  • Unable to open CS3 Files from within the application

    Good Afternoon
    I work as IT Support for company looking after 10 ADOBE Creative Suite 3 end-users.
    One of my colleagues is unable to open Illustrator or Photoshop files from within their respective applications, but she is able to open them from outside ok.
    I have reinstalled ADOBE CS3 and this appeared to resolve the issue, only for it to return again a day later.
    She has no other applications or processes running during her attempt to open a file from within CS3.
    She will click on Open and the 'Open File' window will flash up for a split second, then the whole application will be frozen. It is as if the 'Open File' window is there, but isnt there because we cant click on it, but the application thinks it is displaying and so she can not click on anything else. The only way to close the application is to end the process under Task Manager.
    While I am sitting here tearing what little amount of hair I have on my head, can anyone point me in the right direction?
    Is this a Windows problem or an ADOBE problem do you think?
    I look forward to any replies.
    Thank you

    Hi Bob
    Ok...
    Opened illustrator but was unable to open the 'Open File' window.
    Changed the screen resolution, it suddenly worked!
    Changed the screen resolution back to as it was before, it also worked.
    What could cause this do you think?
    By simply changing the screen resolution and back again, the 'Open File' window displayed itself.
    Very bizarre!

  • How to Print  a PDF file from within a ABAP ( from gui input)

    Hi champions,
    This is Client requirement:
    "We need to print a PDF file from within a ABAP"
    We first need to test whether it is even feasible, and then if it 
    is, then write a small test ABAP which can accept a PDF file
    name as input (from GUI) and then print it to a SAP print
    device (printer).”
    Please Can any body help me on this.......
    It's urgent
    Thanks
    Basu

    Check following blog for PDF output from SAP
    /people/thomas.jung3/blog/2005/04/28/setting-up-an-adobe-writer-for-abap-output
    anya

  • How do I access my back up files from the time machine if my computer was stolen?

    Hi, how do I access my back up files from the time machine if my mac book pro was stolen? I have a mac book air and mac too. But not sure how I can get back all the files from the stolen computer from my time capsule

    On the Mac Book Air or other Mac that you have, use Migration Assistant to transfer files from the Time Machine backups of the Mac that was taken.
    Macintosh HD > Applications > Utilities > Migration Assistant

  • Using Migration Assistant to Move Data Files from one Account to New User

    Is it possible or recommended to use Migration Assistant to move data files from an old user account to a new user account on the same volume/hard disk?

    Migration Assitant cannot be used as a simple file transfer utility. MA can transfer an entire Home folder or entire Users folder but not individual files.
    In general files in one user account cannot be moved to another user account as this would violate built-in security measures.
    What you can do is to copy the files to an external device like a hard drive or flash drive. First log in to the old account. Then configure the drive to ignore preferences by Pressing COMMAND-I to open the Get Info window and check the Ignore permissions on this volume checkbox at the bottom of the window. Copy your files to the device. Log into the new account. Verify the external drive is still configured to ignore permissions (reset it, if not.) Copy the files from the external device into the Home folder of the new account. I would create a temporary folder for these files. If you still end up without the proper permissions you will need to make modifications that are easier done if all the files are in a single folder.

  • Unable to open files from within Photoshop

    Hi, I've updated to CC 2014.2.1 and I'm continuing to get this message when I attempt to open a file from within Photoshop (it started when I installed a beta versionYosemite, so I switched back to Mavericks, but it didn't help, [so many updates with Cloud, I lose track..]).  I noticed someone else with a similar problem, but from 2013. Anyway, I get this message: 'Could not complete your request because of a program error.'  I restart Photoshop, then I can open a few files, but then the errors start over.
    Also, I'm not really familiar with the 'forum' means of support, but if anyone knows a solution to this beyond 'google it', which I've done, I'd appreciate it.
    -Stu

    Thanks Jeffery Tranberry—this did the trick. BUT while an answer to my issue gave the following feedback to Adobe....
    Use of COVERFLOW if EXTREMELY IMPORTANT (in Photoshop) when working fast with hundreds of images. Who the heck labels every single image asset file—and knows what that is without a visual cue? WHEN IS THIS ON THE ROADMAP TO BE FIXED?????????? UGH! MAVERICKS has been coming for MONTHS. Why was this not vetted on Adobe's end as a valuable roadmap item for its users? I would have ranked this a high item from a user experience end and fought for inclusion on the developers roadmap. What is the ETA on a real fix concerning Mavericks & Coverflow use with Photoshop?

  • How to run a batch file from within an Oracle 9i Form?

    Hi, I would like to execute a batch file from within an oracle form - I'm assuming there's some PLSQL command I can use? I am not allowed to use any third party libraries, and I'm hoping I can get away without having to progam any C or Java to do it. I don't want to run my java program from my form, but my lecturer is insisting on it.
    Can anyone help?
    Thanx
    Adam

    Can u give me an example
    I need to run a batch files that does a series of step doing dir ( in 3 different folders)
    after each one it shows on screen with a pause & user press enter
    can this work out ?

Maybe you are looking for

  • Upload open PO's and GR/IR data

    Hi , I want to upload open PO's from my legacy system into SAP System and for those PO's GR  already done in legacy system. Now vendor will send me invoice and i have to post that in MIRO but it's not taking any line item as no GR done in SAP system.

  • How should I find out the stuff that keeps freezing the display?

    Hi, I am using gnome-shell from testing repo on a laptop computer. The system(I do not know which part) has frozen several times in a same way. The whole display just suddenly stops reacting while I am scrolling down the web page in Chrome, opening a

  • JMOQ show eeror Inactive via formulae of incor

    Hi experts, My ckient requirement is the Excise duty caluated per kg, Iused JMOQ codition But show error in the PO creation Inactive via formulae of incorrect Please why show ingred colour after clicking taxes tab in the INvoice tab at item level Reg

  • Downloading the data to external file

    HI ABAPers,    I have a dynamic internal table which i created using CREATE DATA statement and i have put in data into it. I have to download that internal table data into a external file. As the internal table is dynamically created it will be deref

  • Video stutters/glitches every few seconds

    I have a video I recorded in iMovie with FireWire and rendered as a mov file. The file plays fine in VLC, but in a premiere elements 12 project, it stutters/skips frames every few seconds. Why can't software just work? What do I change?