Load images in execution time

Hi,
First of all I want to say that my english is not so good, excuse me.
Well I have got a question with images an icons in java, it's posible to load images in execution that not exist in compiling time? I'm trying to do this but I can't. I think the images in java are integrated in the jars.
For example :
setIconImage(new javax.swing.ImageIcon(getClass().getResource("/home/xxx/images/abc.gif")).getImage());
Imagine that this image only exists at execution time, or this image not exist in the machine (in the project) that I'm compiling, it only exist in the machine I'm executing the jar.
Thanks to all.

Of course, the images are loaded in execution time but the images that you want to load must be exists in compilation time, otherwise this is the message that you get in execution time:
Exception in thread "main" java.lang.NullPointerException
at javax.swing.ImageIcon.<init>(Unknown Source)
In my opinion the images are inside of the jar, that's I want to say.
Thanks for the answers.

Similar Messages

  • Loading jar files at execution time via URLClassLoader

    Hello�All,
    I'm�making�a�Java�SQL�Client.�I�have�practicaly�all�basic�work�done,�now�I'm�trying�to�improve�it.
    One�thing�I�want�it�to�do�is�to�allow�the�user�to�specify�new�drivers�and�to�use�them�to�make�new�connections.�To�do�this�I�have�this�class:�
    public�class�DriverFinder�extends�URLClassLoader{
    ����private�JarFile�jarFile�=�null;
    ����
    ����private�Vector�drivers�=�new�Vector();
    ����
    ����public�DriverFinder(String�jarName)�throws�Exception{
    ��������super(new�URL[]{�new�URL("jar",�"",�"file:"�+�new�File(jarName).getAbsolutePath()�+"!/")�},�ClassLoader.getSystemClassLoader());
    ��������jarFile�=�new�JarFile(new�File(jarName));
    ��������
    ��������/*
    ��������System.out.println("-->"�+�System.getProperty("java.class.path"));
    ��������System.setProperty("java.class.path",�System.getProperty("java.class.path")+File.pathSeparator+jarName);
    ��������System.out.println("-->"�+�System.getProperty("java.class.path"));
    ��������*/
    ��������
    ��������Enumeration�enumeration�=�jarFile.entries();
    ��������while(enumeration.hasMoreElements()){
    ������������String�className�=�((ZipEntry)enumeration.nextElement()).getName();
    ������������if(className.endsWith(".class")){
    ����������������className�=�className.substring(0,�className.length()-6);
    ����������������if(className.indexOf("Driver")!=-1)System.out.println(className);
    ����������������
    ����������������try{
    ��������������������Class�classe�=�loadClass(className,�true);
    ��������������������Class[]�interfaces�=�classe.getInterfaces();
    ��������������������for(int�i=0;�i<interfaces.length;�i++){
    ������������������������if(interfaces.getName().equals("java.sql.Driver")){
    ����������������������������drivers.add(classe);
    ������������������������}
    ��������������������}
    ��������������������Class�superclasse�=�classe.getSuperclass();
    ��������������������interfaces�=�superclasse.getInterfaces();
    ��������������������for(int�i=0;�i<interfaces.length;�i++){
    ������������������������if(interfaces[i].getName().equals("java.sql.Driver")){
    ����������������������������drivers.add(classe);
    ������������������������}
    ��������������������}
    ����������������}catch(NoClassDefFoundError�e){
    ����������������}catch(Exception�e){}
    ������������}
    ��������}
    ����}
    ����
    ����public�Enumeration�getDrivers(){
    ��������return�drivers.elements();
    ����}
    ����
    ����public�String�getJarFileName(){
    ��������return�jarFile.getName();
    ����}
    ����
    ����public�static�void�main(String[]�args)�throws�Exception{
    ��������DriverFinder�df�=�new�DriverFinder("D:/Classes/db2java.zip");
    ��������System.out.println("jar:�"�+�df.getJarFileName());
    ��������Enumeration�enumeration�=�df.getDrivers();
    ��������while(enumeration.hasMoreElements()){
    ������������Class�classe�=�(Class)enumeration.nextElement();
    ������������System.out.println(classe.getName());
    ��������}
    ����}
    It�loads�a�jar�and�searches�it�looking�for�drivers�(classes�implementing�directly�or�indirectly�interface�java.sql.Driver)�At�the�end�of�the�execution�I�have�found�all�drivers�in�the�jar�file.
    The�main�application�loads�jar�files�from�an�XML�file�and�instantiates�one�DriverFinder�for�each�jar�file.�The�problem�is�at�execution�time,�it�finds�the�drivers�and�i�think�loads�it�by�issuing�this�statement�(Class�classe�=�loadClass(className,�true);),�but�what�i�think�is�not�what�is�happening...�the�execution�of�my�code�throws�this�exception
    java.lang.ClassNotFoundException:�com.ibm.as400.access.AS400JDBCDriver
    ��������at�java.net.URLClassLoader$1.run(URLClassLoader.java:198)
    ��������at�java.security.AccessController.doPrivileged(Native�Method)
    ��������at�java.net.URLClassLoader.findClass(URLClassLoader.java:186)
    ��������at�java.lang.ClassLoader.loadClass(ClassLoader.java:299)
    ��������at�sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)
    ��������at�java.lang.ClassLoader.loadClass(ClassLoader.java:255)
    ��������at�java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
    ��������at�java.lang.Class.forName0(Native�Method)
    ��������at�java.lang.Class.forName(Class.java:140)
    ��������at�com.marmots.database.DB.<init>(DB.java:44)
    ��������at�com.marmots.dbreplicator.DBReplicatorConfigHelper.carregaConfiguracio(DBReplicatorConfigHelper.java:296)
    ��������at�com.marmots.dbreplicator.DBReplicatorConfigHelper.<init>(DBReplicatorConfigHelper.java:74)
    ��������at�com.marmots.dbreplicator.DBReplicatorAdmin.<init>(DBReplicatorAdmin.java:115)
    ��������at�com.marmots.dbreplicator.DBReplicatorAdmin.main(DBReplicatorAdmin.java:93)
    Driver�file�is�not�in�the�classpath�!!!�
    I�have�tried�also�(as�you�can�see�in�comented�lines)�to�update�System�property�java.class.path�by�adding�the�path�to�the�jar�but�neither...
    I'm�sure�I'm�making�a/some�mistake/s...�can�you�help�me?
    Thanks�in�advice,
    (if�there�is�some�incorrect�word�or�expression�excuse�me)

    Sorry i have tried to format the code, but it has changed   to �... sorry read this one...
    Hello All,
    I'm making a Java SQL Client. I have practicaly all basic work done, now I'm trying to improve it.
    One thing I want it to do is to allow the user to specify new drivers and to use them to make new connections. To do this I have this class:
    public class DriverFinder extends URLClassLoader{
    private JarFile jarFile = null;
    private Vector drivers = new Vector();
    public DriverFinder(String jarName) throws Exception{
    super(new URL[]{ new URL("jar", "", "file:" + new File(jarName).getAbsolutePath() +"!/") }, ClassLoader.getSystemClassLoader());
    jarFile = new JarFile(new File(jarName));
    System.out.println("-->" + System.getProperty("java.class.path"));
    System.setProperty("java.class.path", System.getProperty("java.class.path")+File.pathSeparator+jarName);
    System.out.println("-->" + System.getProperty("java.class.path"));
    Enumeration enumeration = jarFile.entries();
    while(enumeration.hasMoreElements()){
    String className = ((ZipEntry)enumeration.nextElement()).getName();
    if(className.endsWith(".class")){
    className = className.substring(0, className.length()-6);
    if(className.indexOf("Driver")!=-1)System.out.println(className);
    try{
    Class classe = loadClass(className, true);
    Class[] interfaces = classe.getInterfaces();
    for(int i=0; i<interfaces.length; i++){
    if(interfaces.getName().equals("java.sql.Driver")){
    drivers.add(classe);
    Class superclasse = classe.getSuperclass();
    interfaces = superclasse.getInterfaces();
    for(int i=0; i<interfaces.length; i++){
    if(interfaces[i].getName().equals("java.sql.Driver")){
    drivers.add(classe);
    }catch(NoClassDefFoundError e){
    }catch(Exception e){}
    public Enumeration getDrivers(){
    return drivers.elements();
    public String getJarFileName(){
    return jarFile.getName();
    public static void main(String[] args) throws Exception{
    DriverFinder df = new DriverFinder("D:/Classes/db2java.zip");
    System.out.println("jar: " + df.getJarFileName());
    Enumeration enumeration = df.getDrivers();
    while(enumeration.hasMoreElements()){
    Class classe = (Class)enumeration.nextElement();
    System.out.println(classe.getName());
    It loads a jar and searches it looking for drivers (classes implementing directly or indirectly interface java.sql.Driver) At the end of the execution I have found all drivers in the jar file.
    The main application loads jar files from an XML file and instantiates one DriverFinder for each jar file. The problem is at execution time, it finds the drivers and i think loads it by issuing this statement (Class classe = loadClass(className, true);), but what i think is not what is happening... the execution of my code throws this exception
    java.lang.ClassNotFoundException: com.ibm.as400.access.AS400JDBCDriver
    at java.net.URLClassLoader$1.run(URLClassLoader.java:198)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:140)
    at com.marmots.database.DB.<init>(DB.java:44)
    at com.marmots.dbreplicator.DBReplicatorConfigHelper.carregaConfiguracio(DBReplicatorConfigHelper.java:296)
    at com.marmots.dbreplicator.DBReplicatorConfigHelper.<init>(DBReplicatorConfigHelper.java:74)
    at com.marmots.dbreplicator.DBReplicatorAdmin.<init>(DBReplicatorAdmin.java:115)
    at com.marmots.dbreplicator.DBReplicatorAdmin.main(DBReplicatorAdmin.java:93)
    Driver file is not in the classpath !!!
    I have tried also (as you can see in comented lines) to update System property java.class.path by adding the path to the jar but neither...
    I'm sure I'm making a/some mistake/s... can you help me?
    Thanks in advice,
    (if there is some incorrect word or expression excuse me)

  • Dynamically loading images?One at a time :(

    codeworld....help...sos.....send in more troops....the titanic is sinking.....
    The problem:
    I am trying to load dynamic images in order without all of them attempting to load at once....
    I have an array of images that I loop through depending on the gallery that will load up....but when i loop through the images all of them try to load.
    What i need to happen is somewhere in the loop i guess....each image fully load....then goto the next image and fully load.....etc.....
    Basically each image load one at a time in order......and the list is dynamic so uhhhhh HELP ......????
    save narnia....save tinseltown.....awww hell sacrifice yo self and just save me .....

    ok ok......one of these i'm going to make work
    ....thanx for all the help....
    this is kinda the basics of how i got the method looking that i will change
    for(var i=0; i<listArray.length; i++)
                   //picListLoader is a custom class......its just the loaded picture and some variables attached to it.....
                    var picture:picListLoader = new picListLoader(pID, ptitle, pdesc, picURL, i );
                    picArray.push(picture);
                    addChild(picture);
    i think instead of calling the class to create the individual objects......
    i'm going to create a gallery object......and send in the info....and once all of the picture's urls and info is loaded into the object tell the gallery object to load each one of the pictures using one of the methods above......and that should cure my ills
    smallville was saved once again................byMe... ...selfGlory..... .......(ok....saved by yall) thx a million
    thelegendaryghost

  • How do i backup the list of load images automatically exceptions under Options- Content. I want to transfer to another comp without re-adding one at a time

    How do i backup the list of load images automatically exceptions under Options->Content. I want to transfer to another comp without re-adding one at a time. EVen if there is no way to backup, what is the system file for Firefox that stores these, so i can transfer this file or open it in an XML or similar editor to copy them out?

    The permissions.sqlite file stores 'allow' and 'block' exceptions for cookies, images, pop-up windows, and extensions (software) installation.
    *http://kb.mozillazine.org/Profile_folder_-_Firefox
    You can use this button to go to the Firefox profile folder:
    *Help > Troubleshooting Information > Profile Directory: Show Folder
    See also:
    *https://support.mozilla.org/kb/Recovering+important+data+from+an+old+profile
    *http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox

  • Whenever I go to a site or click anything, I always have to move my mouse for the page to load, why is this happening? (When I go to a site full of images, I move my mouse a little bit at a time and it loads one image at a time)

    Whenever I go to a site or click anything, I always have to move my mouse for the page to load, why is this happening? (When I go to a site full of images, I move my mouse a little bit at a time and it loads one image at a time)

    Hi, Tom.
    FYI: You've not stated which of your listed Macs is having the problem. However, the following may help in any case:
    1. Did you install Front Row using the Front Row hack on a Mac that did not ship from the factory with Front Row installed? If so, See my "Uninstalling the Front Row hack" FAQ. This has been known to cause a variety of problems, including the menu bar (Clock, Spotlight) issues you noted.
    2. If you did not install the Front Row Hack, an incompatible or corrupted Startup or Login Item may be partly to blame for the problems with the menu bar. My "Troubleshooting Startup and Login Items" FAQ can help you pin that down if such an item is causing the problem.
    3. As a general check, run the procedure specified in my "Resolving Disk, Permission, and Cache Corruption" FAQ. Perform the steps therein in the order specified.
    4. Re: Safari and Mail, if not sorted by any of the above, see also:• "Safari: Blank icon after installing Security Update 2006-002 v1.0."
    • My my "Multiple applications quit unexpectedly or fail to launch" FAQ
    Good luck!
    Dr. Smoke
    Author: Troubleshooting Mac® OS X

  • Taking time to load image

    Hi,
                   I have implemented an image scroller. Now the client had reported that a few seconds are taking to load images. We have a local server. When we load images from it, it's not taking that much time to load images. You just copy the following code in a notepad save it as .html extension, which is the widget taken from client site.
    <script type='text/javascript' language='javascript'>
    var ObjetTag = "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,45,0' width='100%' height='100%' id='ImageScroller' align='middle'> <param name='allowScriptAccess' value='always' /> <param name='allowFullScreen' value='true' /><param name='movie' value='http://test.nysaenet.org/Higherlogic/SwfFiles/ImageScroller.swf' /><param name='quality' value='high' /><param name='FlashVars' value='CommPage=http://test.nysaenet.org/NYSAENET/NYSAENET/Resources1/Resources/VideoChapterCallback/Defau lt.aspx&DID=7da33f1e-6f00-4ff3-85cb-51cb0a995e84&ScaleMode=Auto&ImageControl=Auto&IWidth=A uto&IHeight=Auto&ScrollerArea=Auto&DistanceBetweenImages=Auto&TransSpeed=Auto&ScrollMode=A uto&WaterMark= &ControlButton=Auto&TransWaitTime=Auto&PlayerPath=http://test.nysaenet.org/Higherlogic/SwfFiles/ImageScroller.swf&JSFun=ResizeSwf' /><embed src='http://test.nysaenet.org/Higherlogic/SwfFiles/ImageScroller.swf' quality='high' width='100%' height='100%' name='ImageScroller' align='middle' allowscriptaccess='always' allowFullScreen='true' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' FlashVars='CommPage=http://test.nysaenet.org/NYSAENET/NYSAENET/Resources1/Resources/VideoChapterCallback/Defau lt.aspx&DID=7da33f1e-6f00-4ff3-85cb-51cb0a995e84&ScaleMode=Auto&ImageControl=Auto&IWidth=A uto&IHeight=Auto&ScrollerArea=Auto&DistanceBetweenImages=Auto&TransSpeed=Auto&ScrollMode=A uto&WaterMark= &ControlButton=Auto&TransWaitTime=Auto&PlayerPath=http://test.nysaenet.org/Higherlogic/SwfFiles/ImageScroller.swf&JSFun=ResizeSwf'  /></object>";
    function ResizeSwf(newW, newH)
    {document.getElementById('ImageControl').style.width = newW+'px';
    document.getElementById('ImageControl').style.height =newH+'px';
                            </script>
                            <script src='http://test.nysaenet.org/Higherlogic/SwfFiles/eolasfix.js'
                                type='text/javascript' defer='defer'>
                            </script>
                            <div id='ImageControl' style='width: 100%; height: 100%; background-color: #FFFFFF'>
                                <script type='text/javascript' language='JavaScript'>document.write(ObjetTag);
                                </script>
                            </div>
    Try with following code, save it in a notepad with .html extension, which is the widget taken from our local site.
    <script type='text/javascript' language='javascript'>
    var ObjetTag = "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,45,0' width='100%' height='100%' id='ImageScroller' align='middle'> <param name='allowScriptAccess' value='always' /> <param name='allowFullScreen' value='true' /><param name='movie' value='http://test.higherlogic.com/Higherlogic/SwfFiles/ImageScroller.swf' /><param name='quality' value='high' /><param name='FlashVars' value='CommPage=http://test.higherlogic.com/SNAMATEST/SNAMATEST/Resources/VideoChapterCallback/Default.asp x&DID=c24bb0e5-9698-4ebb-b180-d9a89682cb4c&ScaleMode=Auto&ImageControl=Auto&IWidth=Auto&IH eight=Auto&ScrollerArea=Auto&DistanceBetweenImages=Auto&TransSpeed=Auto&ScrollMode=Auto&Wa terMark= &ControlButton=Auto&TransWaitTime=Auto&FadeTime=Auto&PlayerPath=http://test.higherlogic.com/Higherlogic/SwfFiles/ImageScroller.swf&JSFun=ResizeSwf' /><embed src='http://test.higherlogic.com/Higherlogic/SwfFiles/ImageScroller.swf' quality='high' width='100%' height='100%' name='ImageScroller' align='middle' allowscriptaccess='always' allowFullScreen='true' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' FlashVars='CommPage=http://test.higherlogic.com/SNAMATEST/SNAMATEST/Resources/VideoChapterCallback/Default.asp x&DID=c24bb0e5-9698-4ebb-b180-d9a89682cb4c&ScaleMode=Auto&ImageControl=Auto&IWidth=Auto&IH eight=Auto&ScrollerArea=Auto&DistanceBetweenImages=Auto&TransSpeed=Auto&ScrollMode=Auto&Wa terMark= &ControlButton=Auto&TransWaitTime=Auto&FadeTime=Auto&PlayerPath=http://test.higherlogic.com/Higherlogic/SwfFiles/ImageScroller.swf&JSFun=ResizeSwf'  /></object>";
    function ResizeSwf(newW, newH)
    {document.getElementById('ImageControl').style.width = newW+'px';
    document.getElementById('ImageControl').style.height =newH+'px';
    </script>
    <script src='http://test.higherlogic.com/Higherlogic/SwfFiles/eolasfix.js' type='text/javascript' defer='defer'>
    </script>
    <div id='ImageControl' style='width:100%; height:100%;background-color:#FFFFFF'>
    <script type='text/javascript' language='JavaScript'>document.write(ObjetTag);
    </script>
    </div>
    Why the loading time is varying on different server?
    Regards,
            Sreelash

    Hi Ross, the image loading problem is not solved yet. The client needs to solve it at any cost. He is saying that the problem might be with the effeciency of code. So my PM is asking to modify the code.Youc can view the image scroller in this specified site: http://test.nysaenet.org/NYSAENET/NYSAENET/Home/
    I am attaching the class that is using for loading images. In this class, after loading the images, some masking effects are given. I think you can understand about after viewing the image scroller and the class. Hope you ll reply as soon as possible. I am wasting more than one week for this purpose. I am not getting any idea.
    Regards,
              Sreelash.S.

  • If I set Firefox to refrain from loading images automatically, how can I view a single image, or a single page's images, without having to enter the site in the Exceptions list, only to go back and remove it when I'm done?

    I was hoping for a hotkey option or button on the toolbar to load images for a single page for a single session at a time. Turning off images really saves bandwidth and speeds load time on websites, but sometimes I'd like to view the images on a page, but only for this session. Is that possible, or do I have to go to the Exceptions page and allow a specific domain or page to load images and then go back and remove that domain or page when I'm done?

    *Image Block: https://addons.mozilla.org/firefox/addon/image-block/

  • Using Firefox to access facebook chat Button or online friiend chat button generates a Black screen with CANNOT LOAD IMAGES and no chat window opens.

    This does not happen in other browsers and it happens on a variety of computers I have access to and would seem to be a common problem but I can find no identical cases in my searches of
    Firefox , Facebook or windows help or Google search. My home machine is only a P2 with WINXPCORP but works fine and I have done all updates but still have this continuing problem every time I try to use Firefox
    to access Facebook chat but it does not happen with IE or chrome
    The response to clicking on chat button or friend chat is a black screen with small center square box with blue title bar that says
    '' VIEW IMAGE FULL SCREEN - (42) FACEBOOK X""
    center of box is ""! "" mark in yellow triangle and wording
    "" CANNOT LOAD IMAGES ''' OK
    clicking on OK returns to facebook page but no chat opens.
    Some times |VERY RARLEY if as the page loades you click on
    chat button with 1/2 second of it appearing chat will open.

    Hi,
    Please also see [https://support.mozilla.org/en-US/kb/Problems%20using%20Facebook%20in%20Firefox this.]

  • How to create transparent image at run-time?

    How to create transparent image at run-time? I mean I want to create a (new) transparent image1, then show other (loaded) transparent image2 to image1, then show image1 to a DC. The problem is - image1 has non-transparent background...

    i'm not sure, but you can set the alpha value to 0 in all pixels which are 'in' the background..
    greetz
    chris

  • How to improve the execution time of my VI?

    My vi does data processing for hundreds of files and takes more than 20 minutes to commplete. The setup is firstly i use the directory LIST function to list all the files in a dir. to a string array. Then I index this string array into a for loop, in which each file is opened one at a time inside the loop, and some other sub VIs are called to do data analysis. Is there a way to improve my execution time? Maybe loading all files into memory at once? It will be nice to be able to know which section of my vi takes the longest time too. Thanks for any help.

    Bryan,
    If "read from spreadsheet file" is the main time hog, consider dropping it! It is a high-level, very multipurpose VI and thus carries a lot of baggage around with it. (you can double-click it and look at the "guts" )
    If the files come from a just executed "list files", you can assume the files all exist and you want to read them in one single swoop. All that extra detailed error checking for valid filenames is not needed and you never e.g. want it to popup a file dialog if a file goes missing, but simply skip it silently. If open generates an error, just skip to the next in line. Case closed.
    I would do a streamlined low level "open->read->close" for each and do the "spreadsheet string to array" in your own code, optimized to the exact format of your files. For example, notice that "read from spreadheet file" converts everything to SGL, a waste of CPU if you later need to convert it to DBL for some signal processing anyway.
    Anything involving formatted text is not very efficient. Consider a direct binary file format for your data files, it will read MUCH faster and take up less disk space.
    LabVIEW Champion . Do more with less code and in less time .

  • (EPG Install) Error while loading image

    Hi,
    I am facing "ORA-22288: file or LOB operation FILEOPEN failed" error while running apex_epg_config step. But all the steps before that (i.e. APEX Install [@apexins users users temp /i/] and change admin password) went all fine.
    I am trying to install APEX 4.1 on "Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production".
    I went through [url https://forums.oracle.com/forums/thread.jspa?messageID=9673913]this thread. But I am not passing /apex directory (apex directory is under "C:/Ash/Technical/Database/Oracle/apex4.1") , here is the outcome:
    C:\Ash\Technical\Database\Oracle\apex4.1\apex>
    11:33:41 sys@dev10db> @apex_epg_config.sql C:/Ash/Technical/Database/Oracle/apex4.1
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:00.21
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:00.03
    Directory created.
    Elapsed: 00:00:00.03
    declare
    ERROR at line 1:
    ORA-22288: file or LOB operation FILEOPEN failed
    No such file or directory
    ORA-06512: at "SYS.XMLTYPE", line 296
    ORA-06512: at line 18
    Elapsed: 00:00:00.04
    Commit complete.
    Elapsed: 00:00:00.00
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:01.14
    declare
    ERROR at line 1:
    ORA-31001: Invalid resource handle or path name "/images"
    ORA-06512: at "XDB.DBMS_XDB", line 473
    ORA-06512: at line 37
    Elapsed: 00:00:00.17
    timing for: Load Images
    Elapsed: 00:00:01.42
    Session altered.
    Elapsed: 00:00:00.00
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:00.48
    Commit complete.
    Elapsed: 00:00:00.01
    Session altered.
    Elapsed: 00:00:00.01
    Directory dropped.
    Elapsed: 00:00:00.07I am installing from my windows XP, but the db server is on Linux.
    Error above (line 18) is actually on this line of "apex_epg_config_core.sql" (my db charset is UTF8)
    filelist_xml xmltype := xmltype(bfilename(upload_directory_name,file_list),nls_charset_id('AL32UTF8'));
    The error clearly suggest that the there is an issue with access my directory or file in that directory.
    And I believe the 2nd error "ORA-31001: Invalid resource handle or path name "/images"", will go itself once the first one is resolved.
    I went through the documentation and other forum threads, but I am stuck with this EPG install, it may be very silly thing that I may be missing, but any help in this matter would be highly appreciated.
    Thanks,
    Ash
    Edited by: ash0602 on Sep 5, 2011 5:19 PM

    Thanks Andy and Kiran for taking time to respond.
    Andy, "@apex_epg_config.sql C:/Ash/Technical/Database/Oracle/" will not solve the problem, neither changing directory's name from apex4.1 to apex_4.1_en, as my directory structure till images is: "C:\Ash\Technical\Database\Oracle\apex4.1\apex\images".
    Kiran, sorry but I do not understand the difference between what I have written what you mentioned above.
    Though I understood the issue, when you see the apex underlying code (apex_epg_config_core.sql) it is actually creating a directory object ('APEX_IMAGES') in the database. While I was trying to refer the directory on my local windows PC ('C:\Ash\Technical\Database\Oracle\apex4.1\apex\images'). I then logged into the LINUX server and ran the command and it all went fine, see the response below:
    SQL> @apex_epg_config /opt/oracle/product/11.2.0/db1
    PL/SQL procedure successfully completed.
    PL/SQL procedure successfully completed.
    old   1: create directory APEX_IMAGES as '&1/apex/images'
    new   1: create directory APEX_IMAGES as '/opt/oracle/product/11.2.0/db1/apex/images'
    Directory created.
    old  47:     if '&IMGUPG' != '' then
    new  47:     if '' != '' then
    old  48:         l_mv_folder := '&IMGUPG';
    new  48:         l_mv_folder := '';
    PL/SQL procedure successfully completed.
    Commit complete.
    PL/SQL procedure successfully completed.
    PL/SQL procedure successfully completed.
    timing for: Load Images
    Elapsed: 00:00:31.78
    Session altered.
    PL/SQL procedure successfully completed.
    Commit complete.
    Session altered.
    Directory dropped.Though I moved 1 step forward, but my apex login page (http://<server>:8080/apex/apex_admin => redirected to http://<server>:8080/apex/f?p=4550:10:<session>) refuse to come up as it is now showing "[url https://forums.oracle.com/forums/thread.jspa?threadID=1112378]apex is undefined" error.
    I did the installation as [@apexins users users temp /i/] mentioned in the docs, and this is first install not the upgrade.
    Any help on this ['apex' is undefined] (javascript error) would be really helpful.
    Thanks,
    Ash

  • Firefox does not load images over HTTPS

    When viewing secure sites (HTTPS) images are not displayed on FF 3.6.6
    For example: I can not see images on Gmail, Google Images or StumbleUpon
    I have checked the images settings and it automatically loads images from all sites, there are no domains blocked
    There is no add-on to block images
    Javascript is enabled
    I've tested almost all network configuration but the problem persists
    If I inspect the image with Firebug 1.5.4 the image is available as preview
    The same page is correctly displayed on IE8
    I've tested in safe-mode but the error remains
    Again... I suspect it has something to do on how FF 3.6.6 handles HTTPS
    Even if you do not have an answer, post if you experience the same problem.
    Thanks for your help!
    == This happened ==
    Every time Firefox opened
    == After las upgrade

    Try "Reset all user preferences to Firefox defaults" on the [[Safe mode]] start window - See http://kb.mozillazine.org/Resetting_preferences
    See also http://kb.mozillazine.org/Preferences_not_saved
    Create a new profile as a test to check if your current profile is causing the problems
    See [[Basic Troubleshooting|#Make_a_new_profile|Basic Troubleshooting: Make a new profile]]
    There may be extensions and plugins installed by default in a new profile, so check that in "Tools > Add-ons > Extensions & Plugins"
    If that new profile works then you can transfer some files from the old profile to that new profile (be careful not to copy corrupted files)
    See http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox

  • Problem with loading images dynamically in a pdf document

    dear,
         I am using live cycle designer and i need to load image from a url dynamically in to the document.For this case i placed an imagefield on my document and i wrote javascript to load image in the form:ready event.
    My script for that was
    imagefield.value.image.href="url".Actually i saw an imagefield in my document but it doesnt carry any image.Please help me to rectify this problem......

    If you save your form as Static PDF, it works.
    But most of the time we need the Dynamic XML form. So, I am also stuggling with this issue.
    Nith

  • Problem in loading images when i am connected on company network

    Hi friends, I am using firefox since last 4 months on my windows 8 pro laptop.but since last month I am facing problem in loading images when i am connected on company network but same time it is working fine with ie10. But all these thinks are working well at my home when I am using broadband.

    I don't completely understand your issue. Does this issue occur on 1 network and does not occur on another? Have you tried clearing cache and cookies and making sure your plugins are up to date?
    Many site issues can be caused by corrupt cookies or cache. In order to try to fix these problems, the first step is to clear both cookies and the cache.
    Note: ''This will temporarily log you out of all sites you're logged in to.''
    To clear cache and cookies do the following:
    #Go to Firefox > History > Clear recent history or (if no Firefox button is shown) go to Tools > Clear recent history.
    #Under "Time range to clear", select "Everything".
    #Now, click the arrow next to Details to toggle the Details list active.
    #From the details list, check ''Cache'' and ''Cookies'' and uncheck everything else.
    #Now click the ''Clear now'' button.
    Further information can be found in the [[Clear your cache, history and other personal information in Firefox]] article.
    Did this fix your problems? Please report back to us!
    Please check if all your plugins are up-to-date. To do this, go to the [http://mozilla.com/plugincheck Mozilla Plugin Check site].
    Once you're there, the site will check if all your plugins have the latest versions.
    If you see plugins in the list that have a yellow ''Update'' button or a red ''Update now'' button, please update these immediately.
    To do so, please click each red or yellow button. Then you should see a site that allows you to download the latest version. Double-click the downloaded file to start the installation and follow the steps mentioned in the installation procedure.

  • Flash CS6; AS3: How to load image from a link on one frame and addChild(image) on other?

    How can I addChild outside the frame of images loader function? When I try to addChild on the other frame of the same loader, I get an error.
    I need to download all my 10 images only ONE TIME and place it on the screen in the other frames (to the same movie Clip).
    Also I can only play this as3 coded frame once. I know how to add an array of images, but I only need to understand how to do it with one image.
    Here is my loader for one image..
       var shirt1 = String("https://static.topsport.lt/sites/all/themes/topsport2/files/images/marskineliai_png/215.pn g");
       var img1Request:URLRequest = new URLRequest(shirt1);
       var img1Loader:Loader = new Loader();
       img1Loader.load(img1Request);
       myMovieClip.removeChildAt(0);
       myMovieClip.addChild(img1Loader);

    Symbol 'Spinner', Layer 'AS', Frame 2, Line 1
    1120: Access of undefined property img1Loader.
    [FRAME1]
    import flash.display.Sprite;
    import flash.events.Event;
    import flash.net.URLLoader;
    import flash.net.URLRequest;
    import flash.events.*;
    import flash.net.URLRequestHeader;
    import flash.net.URLRequestMethod;
    import flash.net.URLVariables;
    import flash.events.SecurityErrorEvent;
    function init(e:Event = null):void
        removeEventListener(Event.ADDED_TO_STAGE, init);
        var loader:URLLoader = new URLLoader();
        var request:URLRequest = new URLRequest("http://www.topsport.lt/front/Odds/affiliate/delfi");
      var acceptHeader:URLRequestHeader = new URLRequestHeader("Accept", "application/json");
      request.requestHeaders.push(acceptHeader);
      request.method = URLRequestMethod.POST;
        //request.url = _jsonPath;
        loader.addEventListener(Event.COMPLETE, onLoaderComplete);
      //loader.addEventListener(SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler);
        loader.load(request);
      try {
                    loader.load(request);
                } catch (error:Error) {
                    trace("Unable to load requested document.");
    init();
    function onLoaderComplete(e:Event):void
        var loader:URLLoader = URLLoader(e.target);
        var jsonObject:Object = JSON.parse(loader.data);
      var marsk1 = String("https://static.topsport.lt/sites/all/themes/topsport2/files/images/marskineliai_png/215.pn g");
      var img1Request:URLRequest = new URLRequest(marsk1);
      var img1Loader:Loader = new Loader();
      img1Loader.load(img1Request);
      _2.removeChildAt(0);
      if(_2 != null)
      _2.smoothing = true;
      //    the addChild which works when on frame one
      //_2.addChild(img1Loader);
    [FRAME2]
      _2.addChild(img1Loader);
    p.s. I removed the unnecessary code like other movieClips. It works then addChild function is on frame one.
    I'm kind of new to as3. I started using it this month so sorry if it's the obvious mistake.
    How to make flash recognize the loader?

Maybe you are looking for

  • Error while processing data packets

    I am getting following error while processing into Further processing. "Request REQU_4B76NS5NMRU1Z4QONVEFRYTGI , data package 000526 incorrect with status 9" Diagnosis     Request REQU_4B76NS5NMRU1Z4QONVEFRYTGI , data package 000526 contains errors w

  • FUNCTION 'HELP_VALUES_GET_WITH_TABLE'

    Hi,, This my lines of code TYPES: BEGIN OF struct,   name TYPE zpt_packslip_spg-PACK_TYPE,   txt  TYPE zpt_packslip_spg-WERKS,   END OF struct.   DATA:wa_zpt_packslip_spg TYPE zpt_packslip_spg.   DATA: ifields TYPE help_value OCCURS 0 WITH HEADER LIN

  • Iphone 6 big dissapointment, Verizon even bigger.

         Yet another negative mark against Verizon. So, I finally talked my wife out of an Android. Told her she needed to branch out, try something new. I used to have an Iphone 4S and never really had any problems with it, until it got about time for a

  • Updating images on a second monitor

    I am sending 4 different fringe patterns to a second monitor using a VI whose front panel I've configured to open on that monitor.  I'm then using a camera to capture these images. This works reasonably well with the exception that I am limited to up

  • Server timestamp out of sync with my computer

    I am using Dreamweaver to FTP. The timestamp on the server is always 7 hours ahead of my local time (Pacific). This is disconcerting when editing because I want to see that the time and date are exactly the same on the file. My web host and the serve