Displaying Images in ADF/JSF: Error Using Steve Muench's Example #69

Hi,
I've been able to load images into the database using Steve Muench's Example 69. However, I'm having issues displaying the images.
Jdeveloper: 10.1.3.3.0
Database: 10gR2 with ORDSYS active.
I'm getting the following error:
07/08/20 12:09:20.993 JSFOrdImageExample-ViewController-webapp: Servlet error
java.lang.NullPointerException
     at oracle.ord.html.OrdPlayMediaServlet.renderContent(OrdPlayMediaServlet.java:403)
     at oracle.ord.html.OrdPlayMediaServlet.deliver(OrdPlayMediaServlet.java:263)
     at oracle.ord.html.OrdPlayMediaServlet.doGet(OrdPlayMediaServlet.java:204)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
     at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:162)
     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:623)
     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)
     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
     at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
     at java.lang.Thread.run(Thread.java:613)I'm not sure why I'm getting a NullPointerException...
Previous to this, I had to include the bc4jhtml.jar file as a library in application.xml, and I've tried using the two bc4jhtml.jar files, but neither one seems to work.
I'm thinking that there must be something simple that I'm missing with the servlet setup...
Thanks!
Kenton

I tried the wayback machine, but unfortunately, it doesn't cache the SWF files either :( I do have a copy of some (ok one) of Steve's old videos (the one that shows how to do a dropdown list in an editable table, back before it was easy to do), but unfortunately, none of the search ones.
John

Similar Messages

  • Displaying images in ADF Table

    I have a column in table of type blob. I created entity and view against it. In view type of attribute is blobdomain (by default). Now when i drop that view on form to create table, it places control inputText for blob. I want to ask how i can display images in ADF table column?

    Check this post:
    Re: multi-row block with many image-java-beans
    How to display the content of a BLOB column in a ADF/BC pages ?
    and this might be helpful too:
    http://www.pascalalma.net/2008/04/22/oracle-adf-medior-rendering-images-based-on-blob-columns/
    Regards,
    ~Krithika

  • Displaying Image from ADF BC (BLOB Column) in ADF Mobile Application

    I have made an ADF BC over a database. Now I want to use that ADF BC's data control in my ADF Mobile App to display image stored in a blob column in the database!
    How should I got about it?
    Regards,
    Muhammad Zaheer

    Sir,
    I have exposed it through web services and I'm using the Web Service data control in my mobile application but the blob column is shown as output text in the data control. Now I don't know how to display the image from the blob column in my ADF mobile application.
    Looking forward for your help.
    Thank you.

  • How to display Images stored in a database using javascript

    Hi.
    I have some images stored in a table and I need to display them using javascript. The images are stored in BLOB columns: I would like to know if I can put them on a directory and then get it from there using BFILENAME function.
    Any suggestion?
    Regards,
    Jeannine

    Hi All,
    Yes DuraiRaja - i am using the document.getElementById(' ').
    In my app, I have a Main controller calling a View - Default.HTM,
    This Default.HTM, in turn loads up three trays T1, T2, T3 and these tray elements in turn call up the controllers ctrl1, ctrl2, ctrl3 associated to them.
    CTRL1 calls a view - View1 - V1.htm, which has the below code.
    And on the below page all that i am trying to do is validate if "FieldVal" is blank or not.
    I get an error on IE as "Object required"
    I get a HTTP 501/505 error when i try to upload the code.
    Thanks all !

  • I lecture for a living. My old G4 connected to LCD projector worked great.  My new MacBookPro connected to LCD projector - the displayed images look as if I used "pastel colors" instead of bright colors.  Help !

    I lecture for a living. My old G4 connected to LCD projector worked great; image displayed on computer monitor is same as that projected by LCD. However my new MacBookPro connected to the LCD projector displays washed out images, as if I designed my Keynote lecture using pastel colors. Also my black & white x-ray images are blue & white. Help !

    slfl wrote:
    Thank you for your quick response to my question.  The Apple Genius Bar tried adjusting the color settings in my MacBookPro, as stated in the document you attached.  It did not help ... my Keynote lectures are still pastel, and my x-rays are blue & white. I should have stated this in my original query for help.
    Again, many thanks for responding.
    Did the Apple Genius explain to you why it did not work or even if it's possible?

  • Displaying image in a frame window using file dialog(using swing) ...

    here is my code....pls try running it...
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.io.*;
    public class MainMenu3 extends JFrame {
    BorderLayout layout ;
    JPanel buttonPanel ;
    JFileChooser fileChooser ;
    JButton btn1,btn2,btn3,btn4,btn5,btn6,btn7,btn8;
    JMenuItem item1,item2,item3,item4,item5;
    JTextArea area;
    static private final String newline = "\n";
    JLabel label;
    public MainMenu3( ) {
    super("Image Processor");
    setSize(1024,740);
    setLocation(0, 0);
    layout= new BorderLayout(20,20);
    setLayout(layout);
    fileChooser = new JFileChooser();
    fileChooser.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES);
    // create the File menu
    JMenu file = new JMenu("File");
    file.setMnemonic(KeyEvent.VK_F);
    file.add(item1=new JMenuItem("New"));
    file.add(item2=new JMenuItem("Open"));
    file.addSeparator();
    file.add(item3=new JMenuItem("Save "));
    file.add(item4=new JMenuItem("Save As"));
    file.addSeparator();
    file.add(item5 = new JMenuItem("Quit"));
    // do some fancy stuff with the item
    item1.setMnemonic(KeyEvent.VK_N);
    item1.setAccelerator(
    KeyStroke.getKeyStroke(KeyEvent.VK_N, Event.CTRL_MASK));
    item2.setMnemonic(KeyEvent.VK_O);
    item2.setAccelerator(
    KeyStroke.getKeyStroke(KeyEvent.VK_O, Event.CTRL_MASK));
    item3.setMnemonic(KeyEvent.VK_S);
    item3.setAccelerator(
    KeyStroke.getKeyStroke(KeyEvent.VK_S, Event.CTRL_MASK));
    item5.setMnemonic(KeyEvent.VK_Q);
    item5.setAccelerator(
    KeyStroke.getKeyStroke(KeyEvent.VK_Q, Event.CTRL_MASK));
    area=new JTextArea(10,10);
    //adding event listeners
    item2.addActionListener(new ActionListener( ) {
    public void actionPerformed(ActionEvent e) {
    int result = fileChooser.showOpenDialog(null);
    File file1 = fileChooser.getSelectedFile();
    area.append("Attaching file: " + file1.getParent()+"\\"+file1.getName()
    + "." + newline);
    Image img = Toolkit.getDefaultToolkit().getImage(file1.getParent()+"\\"+file1.getName());
    item5.addActionListener(new ActionListener( ) {
    public void actionPerformed(ActionEvent e) {
    System.exit(0);
    // create the Filter menu
    JMenu Filter = new JMenu("Filter");
    Filter.setMnemonic(KeyEvent.VK_I);
    Filter.add(new JMenuItem("Normal"));
    Filter.add(new JMenuItem("Blur"));
    Filter.add(new JMenuItem("Sharpen"));
    Filter.add(new JMenuItem("Invert"));
    Filter.add(new JMenuItem("Rotate"));
    Filter.add(new JMenuItem("GrayScale"));
    Filter.add(new JMenuItem("Colour"));
    // create the Help menu
    JMenu Help = new JMenu("Help");
    Help.setMnemonic(KeyEvent.VK_H);
    // create a menu bar and use it in this JFrame
    JMenuBar menuBar = new JMenuBar( );
    menuBar.add(file);
    menuBar.add(Filter);
    menuBar.add(Help);
    //setJMenuBar(menuBar);
    //creating buttons
    btn1=new JButton("Blur");
    btn1.setToolTipText("imparts blurredness to the image");
    btn2=new JButton("Sharpen");
    btn2.setToolTipText("sharpens the images outlines");
    btn3=new JButton("Invert");
    btn3.setToolTipText("inverts the image 180 degress ");
    btn4=new JButton("Rotate");
    btn4.setToolTipText("rotates the image by 90 degrees");
    btn5=new JButton("GrayScale");
    btn5.setToolTipText("imparts greyscale to the image");
    btn6=new JButton("Color");
    btn6.setToolTipText("color the image as desired");
    btn7=new JButton("Load");
    btn8=new JButton("Exit");
    buttonPanel = new JPanel();
    buttonPanel.setLayout(new GridLayout(1,6,10,0));
    buttonPanel.add(btn1);
    buttonPanel.add(btn2);
    buttonPanel.add(btn3);
    buttonPanel.add(btn4);
    buttonPanel.add(btn5);
    buttonPanel.add(btn6);
    add(menuBar, BorderLayout.NORTH);
    add(btn7, BorderLayout.WEST);
    add(btn8, BorderLayout.EAST);
    add(area,BorderLayout.CENTER);
    add(buttonPanel,BorderLayout.SOUTH);
    public static void main(String[] args) {
    JFrame f = new MainMenu3( );
    f.addWindowListener(new WindowAdapter( ) {
    public void windowClosing(WindowEvent we) { System.exit(0); }
    f.setVisible(true);
    the code runs fine but d prob is.... i wnt is load a image in the area specified as Jtextarea(as i do not know the component on which the image is to be loaded,so i have just used it as a region to load the image)....pls help me to display an image in the specified region when i click on the "OPEN" option on the File Menu bar..

    here is my code....pls try running it...
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.io.*;
    public class MainMenu3 extends JFrame {
    BorderLayout layout ;
    JPanel buttonPanel ;
    JFileChooser fileChooser ;
    JButton btn1,btn2,btn3,btn4,btn5,btn6,btn7,btn8;
    JMenuItem item1,item2,item3,item4,item5;
    JTextArea area;
    static private final String newline = "\n";
    JLabel label;
    public MainMenu3( ) {
    super("Image Processor");
    setSize(1024,740);
    setLocation(0, 0);
    layout= new BorderLayout(20,20);
    setLayout(layout);
    fileChooser = new JFileChooser();
    fileChooser.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES);
    // create the File menu
    JMenu file = new JMenu("File");
    file.setMnemonic(KeyEvent.VK_F);
    file.add(item1=new JMenuItem("New"));
    file.add(item2=new JMenuItem("Open"));
    file.addSeparator();
    file.add(item3=new JMenuItem("Save "));
    file.add(item4=new JMenuItem("Save As"));
    file.addSeparator();
    file.add(item5 = new JMenuItem("Quit"));
    // do some fancy stuff with the item
    item1.setMnemonic(KeyEvent.VK_N);
    item1.setAccelerator(
    KeyStroke.getKeyStroke(KeyEvent.VK_N, Event.CTRL_MASK));
    item2.setMnemonic(KeyEvent.VK_O);
    item2.setAccelerator(
    KeyStroke.getKeyStroke(KeyEvent.VK_O, Event.CTRL_MASK));
    item3.setMnemonic(KeyEvent.VK_S);
    item3.setAccelerator(
    KeyStroke.getKeyStroke(KeyEvent.VK_S, Event.CTRL_MASK));
    item5.setMnemonic(KeyEvent.VK_Q);
    item5.setAccelerator(
    KeyStroke.getKeyStroke(KeyEvent.VK_Q, Event.CTRL_MASK));
    area=new JTextArea(10,10);
    //adding event listeners
    item2.addActionListener(new ActionListener( ) {
    public void actionPerformed(ActionEvent e) {
    int result = fileChooser.showOpenDialog(null);
    File file1 = fileChooser.getSelectedFile();
    area.append("Attaching file: " + file1.getParent()+"\\"+file1.getName()
    + "." + newline);
    Image img = Toolkit.getDefaultToolkit().getImage(file1.getParent()+"\\"+file1.getName());
    item5.addActionListener(new ActionListener( ) {
    public void actionPerformed(ActionEvent e) {
    System.exit(0);
    // create the Filter menu
    JMenu Filter = new JMenu("Filter");
    Filter.setMnemonic(KeyEvent.VK_I);
    Filter.add(new JMenuItem("Normal"));
    Filter.add(new JMenuItem("Blur"));
    Filter.add(new JMenuItem("Sharpen"));
    Filter.add(new JMenuItem("Invert"));
    Filter.add(new JMenuItem("Rotate"));
    Filter.add(new JMenuItem("GrayScale"));
    Filter.add(new JMenuItem("Colour"));
    // create the Help menu
    JMenu Help = new JMenu("Help");
    Help.setMnemonic(KeyEvent.VK_H);
    // create a menu bar and use it in this JFrame
    JMenuBar menuBar = new JMenuBar( );
    menuBar.add(file);
    menuBar.add(Filter);
    menuBar.add(Help);
    //setJMenuBar(menuBar);
    //creating buttons
    btn1=new JButton("Blur");
    btn1.setToolTipText("imparts blurredness to the image");
    btn2=new JButton("Sharpen");
    btn2.setToolTipText("sharpens the images outlines");
    btn3=new JButton("Invert");
    btn3.setToolTipText("inverts the image 180 degress ");
    btn4=new JButton("Rotate");
    btn4.setToolTipText("rotates the image by 90 degrees");
    btn5=new JButton("GrayScale");
    btn5.setToolTipText("imparts greyscale to the image");
    btn6=new JButton("Color");
    btn6.setToolTipText("color the image as desired");
    btn7=new JButton("Load");
    btn8=new JButton("Exit");
    buttonPanel = new JPanel();
    buttonPanel.setLayout(new GridLayout(1,6,10,0));
    buttonPanel.add(btn1);
    buttonPanel.add(btn2);
    buttonPanel.add(btn3);
    buttonPanel.add(btn4);
    buttonPanel.add(btn5);
    buttonPanel.add(btn6);
    add(menuBar, BorderLayout.NORTH);
    add(btn7, BorderLayout.WEST);
    add(btn8, BorderLayout.EAST);
    add(area,BorderLayout.CENTER);
    add(buttonPanel,BorderLayout.SOUTH);
    public static void main(String[] args) {
    JFrame f = new MainMenu3( );
    f.addWindowListener(new WindowAdapter( ) {
    public void windowClosing(WindowEvent we) { System.exit(0); }
    f.setVisible(true);
    the code runs fine but d prob is.... i wnt is load a image in the area specified as Jtextarea(as i do not know the component on which the image is to be loaded,so i have just used it as a region to load the image)....pls help me to display an image in the specified region when i click on the "OPEN" option on the File Menu bar..

  • Can't display image on TV from MacBookPro (using DVI to video adaptor)

    I purchased the apple "DVI to Video Adapter" to be able to use my TV as a display, but it isn't working despite help from the Apple help desk.
    I'm using a standard TV video cable that plugs into the yellow video input jack, with is a Hitachi full multi-system C2578FS that works anywhere in the world. Before my iBook died last year, I used to watch movies from it on the same television using a similar setup (just VGA instead of DVI adaptor).
    The television is not receiving the signal in any way. My MacBookPro is: the 'detect displays' when activated in my MacBook Pro's menu bar shows a display it calls "NTSC/PAL" which is the television, and I've tried each of the different settings to no avail.
    Any ideas on how I might finally watch a movie or slideshow on my television?
    Kind regards in advance,
    -ck-

    After much fiddling with display resolutions and TV setting, and several calls to Apple help, problem was found to have a really basic solution: replace the RCA connector cable. The old one was shot.

  • Will not allow images on websites that it used to allow, for example, when trying to post on Craiglist, it will not show the images I have to copy in order for CL to approve my post

    will not allow certain images - for example, cannot see the images I need to copy on Craigslist in order for CL to approve my post.
    == This happened ==
    Every time Firefox opened
    == we moved the computer and reconnected it

    Check the image exceptions: Tools > Options > Content: Load Images: Exceptions - See [[Options window - Content panel]]
    See [[Images or animations do not show]] and http://kb.mozillazine.org/Images_or_animations_do_not_load

  • ADF JSF 10.13 how do you reference a binding from a command button?

    I have developed the following code as a model as I am trying to utilise ADF JSF without using a database.
    I have a collection called School. This has the appropriate operations that populate the school with a number of Child. A Child simply has a firstname and a surname.
    I have generated data controls for these collections and created two JSP pages and added a navigation link as follows:
    index.jsp --> goToSchool (navigation) --> school.jsp
    I have then added a command button to the index.jsp page. When the button is then pressed the school.jsp page is displayed. This works correctly.
    I would like to override the action of the button though so that before the navigation is executed I can get a handle on the school collection and populate it so that it will be displayed on the school.jsp page.
    I have previously done this in 10.12 when I had the following setup:
    index.jsp --> getSchool (dataAction) --> school.jsp
    by overriding the getSchool dataAction.
    I have looked through the 10.13 ADF user guides and tried various different things but have not managed to successfully acheive my goal of populating the school collection when the button is pressed prior to navigating to the school.jsp page.
    I would appreciate it if you could offer any advice, and if possible let me know the recommended best practices to acheive this.
    Thanks in advance for your help
    David

    Check out the ADF Tutorial (TopLink edition) chapter 5 has a section called:
    Adding a Drilldown Link
    I think this is what you are looking for.
    http://www.oracle.com/technology/obe/ADF_tutorial_1013/ADF_tutorial.pdf

  • Displaying image in html page

    hi one and all!!
    how can i display an uploaded image in same html page??
    i have uploaded that image using file input...but i couldn't able to make this image visible in the page where i want.plz write ur snippet..
    thanks!!

    A few things (also referring to the other topics in your topic spree):
    1) Chill down.
    2) Please write normal human readable English sentences.
    3) Show your effort in your problems.
    4) Ask specific coding problems. What have you written so far and what is failing exactly?
    5) Bookmark http://www.google.com and learn how to use it.
    To get straight on your initial question: you can display images in a HTML page using the <img> tag.

  • Dynamic display image

    hi, everyone. i have a question on displaying image. for displaying image from a folder, i use:
    <IMG src="/image/me.jpeg" >
    But i can only display one image at one times. Is there ways to display images from folder dynamically?? Thank in advance.

    if u are new to java.. then u may have to go thru some tutorials on servlets to get ur required job done. here are a list of online tutorials
    http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/Servlets.html
    http://www.novocode.com/doc/servlet-essentials/
    http://www.acknowledge.co.uk/java/tutorial/servlet_tutorial/
    hope these will be useful for u.. u may have to spend some time on these...

  • [Solved]How to upload / download BLOB images ADF - JSF

    Hi everyone. I am a newbe ADF - JSF developer and I need to do a web app. in which I have to upload jpeg images to a table (in an oracle 8 DB) that has a BLOB column, also I need to be able to download images from the same table and show them in the web app. I have seen the examples on how to do this using the intermedia data types but I can't use this because the table already has a lot of records in it and the DB admin won't move a finger to migrate the data because other apps. are using the table.
    I have been looking on the internet but haven't been able to find something that describes this process.
    Thanks.

    Hello Kuba, I am trying to execute your app but I get the following error when I try to run it:
    oracle.classloader.util.AnnotatedNoClassDefFoundError:
         Missing class: oracle.adf.view.faces.webapp.AdfFacesFilterHelper
         Dependent class: oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl
         Loader: current-workspace-app.web.ADFUploadAndDownloadFiles-ViewController-webapp:0.0.0
         Code-Source: /root/jdevhome/mywork/ADFUploadAndDownloadFiles/ViewController/public_html/WEB-INF/lib/adf-faces-impl.jar
         Configuration: WEB-INF/lib/ directory in /root/jdevhome/mywork/ADFUploadAndDownloadFiles/ViewController/public_html/WEB-INF/lib
    The missing class is not available from any code-source or loader in the system.
         at oracle.classloader.PolicyClassLoader.handleClassNotFound (PolicyClassLoader.java:2051) [usr/local/jdevstudio1013/j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@27634497]
         at oracle.classloader.PolicyClassLoader.internalLoadClass (PolicyClassLoader.java:1665) [usr/local/jdevstudio1013/j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@27634497]
         at oracle.classloader.PolicyClassLoader.loadClass (PolicyClassLoader.java:1621) [usr/local/jdevstudio1013/j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@27634497]
         at oracle.classloader.PolicyClassLoader.loadClass (PolicyClassLoader.java:1606) [usr/local/jdevstudio1013/j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@27634497]
         at java.lang.ClassLoader.loadClassInternal (ClassLoader.java:319) [jre bootstrap, by jre.bootstrap]
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.<init> (AdfFacesFilterImpl.java:341) [root/jdevhome/mywork/ADFUploadAndDownloadFiles/ViewController/public_html/WEB-INF/lib/adf-faces-impl.jar (from WEB-INF/lib/ directory in /root/jdevhome/mywork/ADFUploadAndDownloadFiles/ViewController/public_html/WEB-INF/lib), by current-workspace-app.web.ADFUploadAndDownloadFiles-ViewController-webapp:0.0.0]
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0 (Native method) [unknown, by unknown]
         at sun.reflect.NativeConstructorAccessorImpl.newInstance (NativeConstructorAccessorImpl.java:39) [unknown, by unknown]
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance (DelegatingConstructorAccessorImpl.java:27) [unknown, by unknown]
         at java.lang.reflect.Constructor.newInstance (Constructor.java:494) [unknown, by unknown]
         at java.lang.Class.newInstance0 (Class.java:350) [jre bootstrap, by jre.bootstrap]
         at java.lang.Class.newInstance (Class.java:303) [jre bootstrap, by jre.bootstrap]
         at oracle.adf.view.faces.webapp.AdfFacesFilter.init (AdfFacesFilter.java:48) [jre bootstrap, by jre.bootstrap]
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpApplication.getFilterConfig (HttpApplication.java:7523) [jre bootstrap, by jre.bootstrap]
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.invoke (ServletRequestDispatcher.java:548) [jre bootstrap, by jre.bootstrap]
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.forwardInternal (ServletRequestDispatcher.java:376) [usr/local/jdevstudio1013/jlib/adf-faces-api.jar (from <classpath> in /root/jdevhome/mywork/ADFUploadAndDownloadFiles/ViewController/public_html), by current-workspace-app.web.ADFUploadAndDownloadFiles-ViewController-webapp:0.0.0]
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.doProcessRequest (HttpRequestHandler.java:870) [usr/local/jdevstudio1013/j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in /usr/local/jdevstudio1013/j2ee/home/oc4j.jar), by oc4j:10.1.3]
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.processRequest (HttpRequestHandler.java:451) [usr/local/jdevstudio1013/j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in /usr/local/jdevstudio1013/j2ee/home/oc4j.jar), by oc4j:10.1.3]
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.serveOneRequest (HttpRequestHandler.java:218) [usr/local/jdevstudio1013/j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in /usr/local/jdevstudio1013/j2ee/home/oc4j.jar), by oc4j:10.1.3]
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.run (HttpRequestHandler.java:119) [usr/local/jdevstudio1013/j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in /usr/local/jdevstudio1013/j2ee/home/oc4j.jar), by oc4j:10.1.3]
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.run (HttpRequestHandler.java:112) [usr/local/jdevstudio1013/j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in /usr/local/jdevstudio1013/j2ee/home/oc4j.jar), by oc4j:10.1.3]
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run (ServerSocketReadHandler.java:260) [usr/local/jdevstudio1013/j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in /usr/local/jdevstudio1013/j2ee/home/oc4j.jar), by oc4j:10.1.3]
         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket (ServerSocketAcceptHandler.java:230) [usr/local/jdevstudio1013/j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in /usr/local/jdevstudio1013/j2ee/home/oc4j.jar), by oc4j:10.1.3]
         at oracle.oc4j.network.ServerSocketAcceptHandler.access$800 (ServerSocketAcceptHandler.java:33) [usr/local/jdevstudio1013/j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in /usr/local/jdevstudio1013/j2ee/home/oc4j.jar), by oc4j:10.1.3]
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run (ServerSocketAcceptHandler.java:831) [usr/local/jdevstudio1013/j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in /usr/local/jdevstudio1013/j2ee/home/oc4j.jar), by oc4j:10.1.3]
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run (ReleasableResourcePooledExecutor.java:298) [usr/local/jdevstudio1013/j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in /usr/local/jdevstudio1013/j2ee/home/oc4j.jar), by oc4j:10.1.3]
         at java.lang.Thread.run (Thread.java:595) [usr/local/jdevstudio1013/j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in /usr/local/jdevstudio1013/j2ee/home/oc4j.jar), by oc4j:10.1.3]
    I'm sure this is trivial for for you, but I can't figure it what to do.... can you help a little here please?
    Thanks.

  • JDeveloper 11g Using jsp to display images

    I am converting a 10.1.3.3 application to 11.1.1.3
    It has 2 web modules. One is an ADF administrator module and the other is a public web that displays information including images stored as blobs.
    This public module has a simple technology scope, only html, java, jsp and servlets. It is a hand me down from a few technologies ago and ran well on 10.1.3.3
    To display images it uses a jsp acting as a servlet which is referenced inside other jsps. Since moving to 11g the images no longer display. If I use a java class servlet it works
    however I have to use the full url, e.g. http://mydomain:myport/web/Sevlet?.... which means I have to update the details for each deployment.
    I can use <h:graphicImage but this means I have to include JSF and use expression language to fill in the servlet parameters.
    I don't know what has changed to cause it to fail. Weblogic?
    The Libraries and Classpath include
    JSP Runtime
    Servlet Runtime
    JSTL 1.2
    The servlet jsp is as follows remembering it works in 10.1.3.3
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <%@ page contentType="text/html;charset=windows-1252"%>
    <%@ page import="javax.naming.Context" %>
    <%@ page import="java.io.*" %>
    <%@ page import="userinterface.util.ByteArray" %>
    <%@ page import="userinterface.online.ImageUIHelper" %>
    <%@ page import="userinterface.online.ImageUIHelperValue" %>
    <%
         String dataObjectId = "";
         String regionId = "";
         boolean getObjectImage=false;
         boolean getRegionImage=false;
         // determine which type of image to retrieve
         if (request.getParameter("dataObjectId") != null)
              dataObjectId = request.getParameter("dataObjectId").toString();
              getObjectImage=true;
         } else if (request.getParameter("regionId") != null)
              regionId = request.getParameter("regionId").toString();
              getRegionImage=true;
         if (getObjectImage==true || getRegionImage == true)
              try
                   ImageUIHelper imageHelper = new ImageUIHelper();
                   ImageUIHelperValue vo = null;
                   if (getObjectImage)
                        vo = imageHelper.doReadObjectImage(new Integer(dataObjectId));
                   } else if (getRegionImage)
                        vo = imageHelper.doReadRegionImage(new Integer(regionId));
                   if (vo != null && vo.getImage() != null)
                        // determine the mimetype
                        String mimeType="image/png";
                        if (vo.getFilename().toLowerCase().endsWith(".gif"))
                             mimeType = "image/gif";
                        else if (vo.getFilename().toLowerCase().endsWith(".jpg"))
                             mimeType = "image/jpg; charset=windows-1252";
                        else if (vo.getFilename().toLowerCase().endsWith(".png"))
                             mimeType = "image/png";
                        else if (vo.getFilename().toLowerCase().endsWith(".bmp"))
                             mimeType = "image/bmp";
                        response.setContentType(mimeType);
                        response.setHeader("pragma", "no-cache");
                        ServletOutputStream os = response.getOutputStream();
    os.write(vo.getImage().getBytes());
                        os.flush();
                        os.close();
              } catch (Exception ex)
    A simple test harness follows. The actual pages substitute the java values using <%= uri %> as below
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <%@ page contentType="text/html;charset=windows-1252"%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%
    String uri = "http://localhost:7101/publicweb/img/ImageServlet?imageType=dataObject&dataObjectId=822";
    String uri2 = "ImageServlet.jsp?dataObjectId=822";
    String uri3 = "ImageServlet.jsp?dataObjectId=694";
    %>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"/>
    <title>testServlet</title>
    </head>
    <body>
    <table cellspacing="2" cellpadding="3" border="1" width="100%">
    <tr>
    <td width="20%">Checking Servlet</td>
    <td width="80%"><img src=<%= uri %>
    id="imge"
    width="400px" alt="Image" />
    </td>
    </tr>
    </table>
    </body>
    </html>

    i responded to your duplicate message 4 days ago:
    is it possible to insert and retrieve images from sql server using actionscript.
    you'll need server-side script to query your database and you can use the flash urlloader class to call your script.
    also  is it possible to create a flash scrolling gallery based on images  stored in a database and everytime an image is added it is displayed in  the gallery.
    load the data using the urlloader class and  then load the images.  periodically query the database for new images if  there's no direct way for flash to know a new image was added.

  • Dynamic JDBC Credentials and using ADF Region ERROR

    Hi,
    I used solution by Steve Muench, Dynamic JDBC Credentials (for ADF Faces Rich Client)
    (129.     11g Dynamic JDBC Credentials for Model 1, Struts, Trinidad, and ADF Faces Rich Client 11.1.1.0.0 06-AUG-2008), but it works not correct in case of using ADF Dynamic Region (or simply ADF Region).
    I have added in ViewControllerJSFRichFaces a page (main.jspx) including ADF Dynamic Region consisting of 2 simple tasks flows. Action of the Login button, if login and password are correct, redirect to main.jspx
    There are to cases.
    1) Login and password are correct:
    In this case all work fine.
    2) Login and password are not correct:
    It does not work. redirect to login.jspx does not occur as it is expected, but the following page (main.jspx) is loaded, herewith thrown exception: oracle.jbo.DMLException: JBO-26061: Error while opening JDBC connection.
    I would be very grateful you for help.

    Hi,
    hard to say from your description if this is a bug or an implementation problem. Note that errors that occur in regions are not handled by the exception handler of the the parent page and require special handling within the region. In other words, if the problem is in the region then it needs to be handled in here. I think the right strategy here is to not show the region until a valid connection exist. Is the login performed from the parent page ?
    Frank

  • ADF JSF, refresh collection using a DAO without a database - Best Practice?

    I have previously developed a comprehensive application using ADF 10.12. This application did not use a database, instead I was manually populating collections of objects that data controls were generated for to talk to the ADF components.
    This applciation was based upon the old (10.12) version of ADF and utilised the following structure;
    DataPage (start.jsp) --> DataAction (getRecords) --> DataPage (display.jsp)
    In this instance, by overriding methods on the getRecords DataAction I could populate the collection that was to be displayed on the display.jsp DataPage.
    I am now designing a new application that will hopefully use the latest version of ADF (10.13). This application will also use collections of objects from an external source.
    The structure of ADF 10.13 (faces-config.xml) is different to 10.12 (struts-config.xml) e.g.
    JSFPage (start.jsp) --> getResults (navigation case) --> JSFPage (display.jsp)
    Having read the ADF Developer Guide, and looked through example #60 (onPageLoad) that was developed by Steve Muench, I am aware that there are at least three options that I could use to get populate the collection of objects that are displayed on the display.jsp page when a button is pressed on the start.jsp page;
    1. use a backing bean that extends PageController
    2. use a backing bean that extends PagePhaseListener
    3. use a backing bean that has a specific action that is assigned to the button
    Q1a. which one is the most appropriate/efficient to use?
    When the button is pressed on the start.jsp page, it will be set to call getResults navigation case on faces-config.xml.
    Q1b. Is it possible to detect when this action is triggered, populate the collection of data which is bound the display.jsp JSFPage, and then allow the getResults navigation case to continue execution?
    The application that I am developing will have the following structure;
    recordObject - Object to hold a record
    recordCollection - Collection of recordObjects
    recordDao - DAO use to populate the recordCollection
    When using 10.12 I did not have a separate recordDao (as it was query only) I had a refresh method within the recordCollection.
    Q2. what is the most efficient way of achieving this? there will be one DAO per Collection and approx 30 Collections
    Q3. does anyone have/can point me in the direction of any other examples where actions that trigger call navigation cases are overriden, custom actions are called and then the original ones allowed to continue?
    Thanks in advance for your help/advice
    David

    Thanks for the pointers Steve, they have been very useful.
    This is what I have done;
    set up the following pages and navigation cases (show in bold) on faces-config.
    start.jsp >> getSystems >> systems.jsp >> display >> display.jsp
    systems.jsp >> new >> new.jsp
    systems.jsp << back << new.jsp
    added refreshCollection() as a button to start.jsp
    set the button to call getSystems
    added the collection as a read only table to systems.jsp
    - this works correctly
    added the collection as an input form to the new.jsp page
    added the addNewRecord(systemObject so) function as a button to new.jsp
    set the button to call back
    - this is where I encounter a problem.
    The addNewRecord(systemObject so) function takes a new record as a parameter and adds it to the collection. It is doing this but it is not populating the new record. I know that this is the case because when I return to the systems.jsp page there is a new record within the table but it is empty.
    Q. How do I capture the values from the input form that is on the new.jsp page, set them to a new instance of an object and then pass this object to the addNewRecord(systemObject so) function?
    Thanks
    David

Maybe you are looking for

  • An error on purchasing an app in Applestore

    I have recently bought an iPad for my daughter so quite new to using apple products. I have tried to purchase an app through the Apple store but it does seem to have worked successfully. The app appears in my purchases but nowhere on my home pages. I

  • Inheritance and One-To-Many Mapping Issue

    Are there any known issues with TopLink 4.6 mapping a one-to-many relationship where the classes in the list span more than 2 levels deep in the inheritance chain? We seem to notice that TopLink creates the class that is 2 levels deep before the owni

  • Syncing Reminders on iPad 2 after upgrade to iOS6

    I can't seem to get the reminders on my iPad to sync with my desktop and iPhone after upgrading to iOS6.  I've tried the suggestions on the support community but they do not address the problem.  The iPhone and desktop are synced but the iPad is not.

  • How can I find out what is eating up my data?

    This is my second month with Verizon and with my old service plan we only use to use 5GB per month.  Now we are over 7GB.  How can I find out what I am using that is eating up my data?  I still do same things I did 3 months ago.

  • Can't Hide Illustrator CS3

    Even when I have "show all" chosen under the "Illustrator" menu, I can't hide Illustrator. Command+Tab, then hitting the "h" to hide doesn't work also. No problems hiding Photoshop.