How to load External Resources such as Jar's? Help in resolving ORA-29534

Agenda: FTP files on Oracle 11g version 11.1.0.6.0 database server on Windows 2003 to another server. These files are generate using PL/SQL and Java Stored procedure
Implementation Details: I wrote java stored procedure for FTPing files. Protocol is FTPS and I’m using Apache common’s library commons-net-ftp-2.0.jar.
Now trying to load my project jar file using loadjava and it results into ORA-29534 error. I added location of commons-net-ftp-2.0.jar in the system class path and rebooted database server.
Question:+ How do I tell oracle location of external_ JAR files? I also tried dropping external jar to jlib and jdk lib. No Luck!
I will really appreciate your help…. Need to resolve it urgently for delivery
See the details
C:\TEMP>call loadjava -r -f -o -user <SCHEMA_NAME>/<PASSWORD>@ORCL projectFTPS.jar
errors : class ftp/DibrsFTP
ORA-29534: referenced object SFMIS5_2.ftp/DibrsFTPClient coul
d not be resolved
errors : class ftp/DibrsFTPClient
ORA-29521: referenced name org/apache/commons/net/ftp/FTPSClient could not b
e found
ORA-29521: referenced name org/apache/commons/net/ftp/FTPClient could not be
found
The following operations failed
class ftp/DibrsFTP: resolution
class ftp/DibrsFTPClient: resolution
exiting : Failures occurred during processing
Thanks,
Madan
Edited by: MadanShah on Aug 8, 2009 8:00 AM

using loadjava I can load commons-net-ftp-2.0.jar and my jar. When i execute pl/sql wrapper for defined java stored procedure it results into exception.
retval=-29532;ORA-29532: Java call terminated by uncaught Java exception: java.lang.NullPointerException
Same code works as Java application. I also granted socket permissions
DBMS_JAVA.GRANT_PERMISSION(
'SCHEMANAME', 'java.net.SocketPermission', REPLACEWITHHOST||':'|| REPLACEWITHPORT, 'connect,resolve');
This did not resolve the error. Since i do not have control external java library and it works as standalone application....
do you know any workarounds? Any ideas on implementing FTP functionality in plsql on oracle 11g database?
Thanks
Madan
Edited by: MadanShah on Aug 8, 2009 11:15 AM

Similar Messages

  • How to load external resources such as JavaScript files, etc. ?

    Hello,
    I'd like to put my resources files such as my scripts, my stylesheets, in a jar file, included in my webapp.
    How can I refer to these files in my JSP file ?
    Should I make a filter ?
    Can someone help me please ?
    Thanks in advance.
    bgOnline

    using loadjava I can load commons-net-ftp-2.0.jar and my jar. When i execute pl/sql wrapper for defined java stored procedure it results into exception.
    retval=-29532;ORA-29532: Java call terminated by uncaught Java exception: java.lang.NullPointerException
    Same code works as Java application. I also granted socket permissions
    DBMS_JAVA.GRANT_PERMISSION(
    'SCHEMANAME', 'java.net.SocketPermission', REPLACEWITHHOST||':'|| REPLACEWITHPORT, 'connect,resolve');
    This did not resolve the error. Since i do not have control external java library and it works as standalone application....
    do you know any workarounds? Any ideas on implementing FTP functionality in plsql on oracle 11g database?
    Thanks
    Madan
    Edited by: MadanShah on Aug 8, 2009 11:15 AM

  • How to load external storage html file in web view

    hi all,
        how to load external storage html file in web view, please help me
       " ms-appdata://local/index.html" not working
    veerasuthan veerakesan

    It need be read as string. Then load the string by  Webview.NavigateToString.
    Sample as below
    string htmlstring = string.Empty;
    try
    var htmlfile = await Windows.Storage.ApplicationData.Current.LocalFolder.OpenStreamForReadAsync("a.html");
    using (System.IO.StreamReader streamReader = new System.IO.StreamReader(htmlfile))
    htmlstring = streamReader.ReadToEnd();
    webview.NavigateToString(htmlstring);
    catch(Exception ex)
    Debug.WriteLine(ex.ToString());
    在現實生活中,你和誰在一起的確很重要,甚至能改變你的成長軌跡,決定你的人生成敗。 和什麼樣的人在一起,就會有什麼樣的人生。 和勤奮的人在一起,你不會懶惰; 和積極的人在一起,你不會消沈; 與智者同行,你會不同凡響; 與高人為伍,你能登上巔峰。

  • How to cache external resource bundles?

    Hi,
    I am using Build JDEVADF_11.1.1.4.0_GENERIC_101227.1736.5923 on Windows 7.
    We have used external resource bundle for our ADF application using loadbundle which extends java.util.ListResourceBundle.
    Is there any way to cache these external resource bundles? and If yes when/how it will get cached?
    We have found following link:
    http://www.orastudy.com/oradoc/selfstu/fusion/web.1111/b31974/appendixa.htm (Section: A.11 adf-config.xml)
    But not sure if it will help for external resource bundles.
    Any pointers will be highly appreciated.
    Thanks
    Vishal

    Hi again.
    To achieve your requeriment you can try next solutions:
    - Add a external path where you are going to let your Resource Bundle in your Manage Server Classpath. For example: /language (into this folder put your baseName folder's and properties file).
    - Build your custom Java Class to load Resource Bundle in a configured classpath or path.
    - Try to do a similar solution like WebCenter Spaces copying your resource bundle in MDS path and updating/getting it with WSLT scripts.
    Regards.

  • How to Load the Resource Master for Generic Resources by Department?

    We are using P6 enterprise version in our company having a central database.
    Q1a.) We set the Activities view > Resource Usage Spreadsheet > Select View 1) By Resource OR 2) By Role.
    The result is the spreadsheet presents the Remaining Early Units by Resource OR by Role. Other spreadsheets behave the same way. Is it possible to view the total Remaining Early Units and not have it separated by Resource OR Role?
    Q1b.) We would like to find out the recommended structure to load Generic Resources (ie. professional and trades such as Civil Engineer, Mechanical Engineer, Carpenter, Welder etc.) for each Department (ie. 8221, 9362, 8524 etc.) into the Resource Library. Example: we would like to load Civil Engineer once for departments 8221, 9362, 8524, load Welder once for departments 9362, 8524, etc.
    We contacted Primavera Support and they pointed us to use Roles.
    Thank-you for any suggestions you may have.

    i think you could try to model it like this:
    - define a single "mech eng" role in the role tree (not too deep or even a flat list). no dept's mentioned here. keep the role tree strictly "speciality" oriented or anyway according to their technical classification.
    Role ID     Role Name
    Engr     Engineer
    .......Engr.SE     Structural Engineer
    .......Engr.EE     Electrical Engineer
    .......Engr.ME     Mechanical Engineer
    - define any number of resources (either individuals, or teams or even a combination of the two) in the resuorce tree.
    1 eng with a capacity of 8h/d, a fixed formation (team) regardless of the number of individuals would still have a capacity of 8h/d if they can only accomplish tasks together. if assigning a team of 5 means means faster for fixed workload or more for fixed duration then define a fixed team (again if this is the case) as a single resource with a capacity of 40h/d or simply define and assign the required number of individual eng's 8h/d max each. use activity duration type to switch between duration driving and non-driving resource usage.
    e.g.
    Resource ID     Resource Name     Resource Type     Default Units / Time     Max Units/Time     Primary Role     Roles
    .......*ElecEng     Electrical Engineers*     Labor     20.00h/d     20.00h/d     Electrical Engineer     Electrical Engineer
    ..............EE1BARBW     Barb Wire, Senior Electrical Engineer     Labor     10.00h/d     10.00h/d     Electrical Engineer     Electrical Engineer, Project AQ
    ..............EE2BILLS     Bill Sanders, Junior Electrical Engineer     Labor     10.00h/d     10.00h/d     Electrical Engineer     Electrical Engineer, Consultant
    .......*MechEng     Mechanical Engineers*     Labor     10.00h/d     0.00h/d     Mechanical Engineer     Mechanical Engineer
    ..............MechEng T1     mech eng team 1     Labor     8.00h/d     8.00h/d     Mechanical Engineer     Mechanical Engineer
    ..............MechEng T2     mech eng team 1     Labor     16.00h/d     16.00h/d     Mechanical Engineer     Mechanical Engineer
    .....................MechEng T2.1     ME 2.1     Labor     8.00h/d     8.00h/d     Mechanical Engineer     Mechanical Engineer, Consultant
    .....................MechEng T2.2     ME 2.2     Labor     8.00h/d     8.00h/d     Mechanical Engineer     Mechanical Engineer
    - create the necessary res to role associations. one employee or team (i.e. res) can be linked to one primary qualification and several other proffesions or specialities (i.e. roles)     
    - when assigning to activities, if a particular individual/ team is required assign directly the res. select several activities requiring mech eng, select 1 or several mech eng's and assign them (use resource security to limit user's access to certain res nodes).
    - if any res with a particular role can perform the task, assign the role. later on if you decide for a res, you can assign a particular resource through the previously assigned role. decide applicable rates and h/d between role and res.
    - you can track allocation in spreadsheets and histograms by resource or role (or by activity for both). if individual res have clear capacities, for roles you can chose between custon role limits (manual) and system calculated for each role based on res having that as primary qualification (user pref)
    - you can report by activity / WBS / project / portfolio (tracking)
    - solve over-allocation by levelling, by switching between res for the same role, etc
    - optimise duration vs. load and/or # of res/roles (and viceversa)
    Edited by: Tibi on Oct 9, 2009 9:40 PM
    Edited by: Tibi on Oct 9, 2009 9:59 PM

  • How to Load External Images - Please Help!

    I have created a simple portfolio site. The buttons I created
    trigger separate frames. Could I not create a MC (Movie Clip) on
    each frame where the images now reside and then when the button is
    clicked (On "Click' Goto frame 1) for e.g. then the image would be
    loaded from an external folder named "Images" in my website?
    I am stumped as to how to set this up. Could someone please
    help me?
    Thanks

    Yes, you can do that. Which version of Flash and which
    version of Actionscript are you using?

  • How to load external DLLs with C++ interface in TestStand?

    Hi,
    Can you please let me know how would I load external DLLs with C++ interface in TestStand?
    Regards.

    TestStand 3.x can only call static class C++ methods. TestStand cannot call methods on a C++ object because TestStand does not know how to enstantiate the C++ object.  In TestStand 3.x, there is a online help topic called "Exporting Class Methods and Functions in Visual Studio .NET".
    Scott Richardson
    National Instruments

  • Flash doens't load external resources after refresh in Windows Firefox

    Hi guys,
    We're encountering a weird problem here. Implementing a Flash header that fades in&out through some external assets via XML... Works fine in all browsers on Windows & Mac, except, after refreshing the page in Firefox for Windows (XP, 7,...) it doesn't load the external resources anymore and we get a blank SWF. Monitored this in Firebug.
    Flash Player has the latest version. We also have this problem on a local host.
    It probably has something to do with caching, but the strange thing is that it only goes wrong in FF on a Windows machine. Also works fine again after a hard refresh.
    Thoughts?
    Thanks.
    BR,
    Lex

    UPDATE: Removing wmode: transparent from the Flash attributes seems to fix it.. Weird. Unfortunately this attribute is really necessary for the lay-out..

  • How to load external subtitles in mov files (in QT)?

    Hi everybody,
    When I play an avi file, QT is able to load external subtitles (I've Perian installed). However, this week, I downloaded a file from apple, saved it as a mov file and created a subtitle file for it. Then, I put both files in the same directory and used the same name for them (one .mov and the other .srt). When I play it (with QT), the subtitle file doesn't load. Does anybody know what is happening? Is is a problem with mov files? Or is it a problem with files downloaded from apple (some kind of lock?!)?
    Thanks

    cowpox wrote:
    Hi everybody,
    When I play an avi file, QT is able to load external subtitles (I've Perian installed). However, this week, I downloaded a file from apple, saved it as a mov file and created a subtitle file for it. Then, I put both files in the same directory and used the same name for them (one .mov and the other .srt). When I play it (with QT), the subtitle file doesn't load. Does anybody know what is happening? Is is a problem with mov files? Or is it a problem with files downloaded from apple (some kind of lock?!)?
    Thanks
    You might do better reposting this in the QuickTime forum here:
    http://discussions.apple.com/forum.jspa?forumID=932

  • How to load external data without using external tables

    Hi,
    I'm asked to develop an ETL for loading external data into a database but, unfortunately, the vers. is 8i so I can't use external tables.
    I know that it's possible by using SQL-Loader. What I want to know is whether there's another way in 8i to load external data from a text file or a CSV file directly with a stored procedure without having to write CTL of SQL-Loader on the server. I mean, is there a way to write everything on the database the same manner I'd do whether I wrote data from a table to a file using for example UTL_FILE or the unique way is to write control files of SQL-Loader directly on the server?
    Thanks!

    Mark1970 wrote:
    Thank you very much Karthick
    I didn't know I could use UTL_FILE also for reading files. I've always use it only for writing data into external files.Yes you can use UTL_FILE to read. The version of oracle you are using i last used in 2004 :) Still remember giving the OS path of the file to open the file. That is long gone now. Its surprising that you are still in 8i.

  • How to load external XML into DataGrid ??

    Hello ,everybody , I can't load external Xml like this format
    <list>
    <month name="Jan-04" revenue="400263" average="80052">
    <region name="APAC" revenue="46130"/>
    <region name="Europe" revenue="106976"/>
    <region name="Japan" revenue="79554"/>
    <region name="Latin America" revenue="39252"/>
    <region name="North America" revenue="128351"/>
    </month>
    <month name="Feb-04" revenue="379145" average="75829">
    <region name="APAC" revenue="70324"/>
    <region name="Europe" revenue="88912"/>
    <region name="Japan" revenue="69677"/>
    <region name="Latin America" revenue="59428"/>
    <region name="North America" revenue="90804"/>
    </month>
    </list>
    I only can load with node format like this :
    <order>
    <item>
    <menuName>burger</menuName>
    <price>3.95</price>
    </item>
    <item>
    <menuName>fries</menuName>
    <price>1.45</price>
    </item>
    </order>
    Please tell me what am I going to do?
    Thanks!

    I'm stuck on this as well. I've read through the above
    samples and postings and am now feeling really retarded. I thought
    throwing the contents of a simple XML doc into a DataGrid would be
    easy, but I've been trying all morning and no love. Any help is
    appreciated.
    Here the XML --> guides.xml
    <?xml version="1.0" encoding="UTF-8">
    <GuideList title="Current Guides">
    <GuideItem>
    <GuideName>11699240</GuideName>
    <DisplayName>Supercharged Branding
    Program</DisplayName>
    <LinkText>View Downloadable Guide</LinkText>
    <Franchise>Film/TV</Franchise>
    <Property>Cars</Property>
    </GuideItem>
    <GuideItem>
    <GuideName>11721503</GuideName>
    <DisplayName> Packaging & Retail
    Signage</DisplayName>
    <LinkText>View Downloadable Guide</LinkText>
    <Franchise>Film/TV</Franchise>
    <Property>None</Property>
    </GuideItem>
    etc....
    Here's the flex --> GuideListDisplay.mxml
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute" initialize="guidelist.send()">
    <mx:Script>
    <![CDATA[
    import mx.collections.ArrayCollection;
    import mx.rpc.events.ResultEvent;
    [Bindable] private var myData:ArrayCollection;
    private function resultHandler(event:ResultEvent):void {
    myData = event.result.GuideList.GuideItem;
    ]]>
    </mx:Script>
    <mx:HTTPService id="guidelist" url="assets/guides.xml"
    result="resultHandler(event)"/>
    <mx:Panel title="{myData.GuideList.title}"> // 1119
    <mx:DataGrid x="29" y="36" id="Guides"
    dataProvider="{myData.lastresult.GuideList.GuideItem}"> // 1119
    <mx:columns>
    <mx:DataGridColumn headerText="Guide Number"
    dataField="GuideName"/>
    <mx:DataGridColumn headerText="Guide Name"
    dataField="DisplayName"/>
    <mx:DataGridColumn headerText="DisplayText"
    dataField="LinkText"/>
    </mx:columns>
    </mx:DataGrid>
    </mx:Panel>
    </mx:Application>
    The lines throw with // 1119 throw a problem notice - 1119:
    Access of possibly undefined property GuideList through a reference
    with static type mx.collections:ArrayCollection.
    GuideListDisplay.mxml Lessons line 17 March 21, 2007 12:53:45 PM
    215
    Please help before hari kari looks like a good option.
    Thanks!

  • SQL*Loader - How to load only a few columns from a .csv file to ora table

    Hi there,
    Could anyone please let me know how to load few columns from a .csv
    file into a oracle table using SQL*Loader.
    I know how to create a .dat and .ctl file and run the sql loader.
    Suppose I have a .csv file with
    col1, col2, col3, col4
    and I only need to load col1 and col3 into col_a and col_b respectively
    in table_a?
    structure of table_ a
    col_a,
    col_b
    Please advice

    Try like..it i will work..
    LOAD DATA
    INFILE 'test.txt'
    LOAD DATA
    TRUNCATE INTO TABLE T1
    FIELDS TERMINATED BY ','
    (col1,
    col2 FILLER,
    col3,
    col4 FILLER
    )

  • How to load external text file into a Form?

    Hi,
    I made a menu with 1-5 in a Form and 5 external text files. I want the user who is able to view the text content of the text file when he chooses one of them from the menu. And the text file screen has a "Back" command button to let him go back.
    How can I do it and can it support other languages such as Chinese and Japanese?
    Thanks for help.
    gogo

    Sorry, I made the mistake about the subject, it should be loading local file, not external file through http.
    I wrote a method but it throwed an exception when the midlet was run.
    private void loadText()
    try {
    InputStream is = this.getClass().getResourceAsStream("/text.txt");
    StringBuffer sb = new StringBuffer();
    int chr;
    while ((chr = is.read()) != -1)
    sb.append((char) chr);
    is.close();
    catch (Exception e)
    System.out.println("Error occurs while reading file");
    I put the text.txt file in the same folder with the main file (extends midlet). How can I load the text content and display it on StringItem?
    Thanks for any help.
    gogo

  • How to load externally libraries on a java application

    Hi,
    I've created a java application which i've compiled as an executable file. I want to cut the size of the exe down, and so i'm trying to load some libraries externally, instead of the IDE including it on the executable i created. So basically i've got my application.exe file, and in the same directory i have an images directory and a lib directory. How do i access the jar files on the lib directory? Some examples of code would be great. At the moment my lib directory contains mssql.jar files.
    thanks

    no it hasn't bundled the jvm into the app. the app is 438kb without the jar libs included. The libs add another 400+kb . i've separated the image files without problems. This loads the images from a directory called images. The issue is just how load the libs.

  • How to load external data to SAP BW?

    Hi All,
    I try to load data from external application to SAP ware house using RFC, as i am new to SAP BW, I would like describe my question as below.
    1. I have run RFC server in my local machine and resister in the SAP system successfully.
    2. In the source system, i click check, connection OK.
    3. Create DataSource in the Data Sources.
    4. Create InfoSources, it contain two rows. but when i try to create transformation, it always give the message "Source doese not exists".
    I am not sure why this happened, could you please give some advices. Besides, where can i get some tutorial document of this operation on SDN?
    Thanks.

    Hi,
    This is such a vast topic. There are multiple ways to load data into BI. It could be through Flat Files, or through Web Services, from R/3 etc..
    For XML Services:
    http://help.sap.com/saphelp_nw70/helpdata/EN/fe/65d03b3f34d172e10000000a11402f/frameset.htm
    For Flat File loading:
    http://help.sap.com/saphelp_nw70/helpdata/EN/43/03450525ee517be10000000a1553f6/frameset.htm
    General:
    http://help.sap.com/saphelp_nw70/helpdata/DE/44/b734ed352056a3e10000000a1553f6/frameset.htm
    Transfromations:
    http://help.sap.com/saphelp_nw70/helpdata/EN/f8/7913426e48db2ce10000000a1550b0/frameset.htm
    Pls search the forum for more details.

Maybe you are looking for

  • Recorded new vocal into "varispeeded" project; get rid of artifacts?

    Hi, Original bpm: 120. All tracks recorded in MIDI except my vocals. Bump bpm to 125 with varispeed. I like this tempo. Now, I record vocals with varispeed ON. They sound "warbley" and watery. I guess this was a big oops. Is there any way to get rid

  • Beat Mapping Logic 9 Problem

    Hi. I'm having difficulty getting beat mapping to work with Logic 9.1.6. I have tried to select the notes in my guide sequence but that yellow line all too often refuses to line up with the start of the relevant note. I tried copying all the beat not

  • Repository is unmounted

    I have a OVM 3.2.1 reporsitory on a local disk and it was created without errors. However now it says "repository is unmounted... but in Dom0 DB" and I can't do anyhitng with it (even delete - there is nothing there). Then I found a warning for the p

  • SCEA Mixed 1.4 and 5.0

    The SCEA has the multiple choice and the assignment. Now, the assignment description says the following: APIs relevant to the Assignment The assignment requires that you have an in-depth understanding of the Java programming language and J2EE APIs. Y

  • Need swing help

    I'm having a lot of troble with a java project i am doing for school. We have to make this word matching type game, and I'm unable to get the icons to repaint correctly. More specifically they will not show up on load, but if i resize the window they