Exception when displaying ViewObject result on web page

Hi experts,
I have two view object ViewObject1 and ViewObject2. I have created Assoccion ViewObject1 to ViewObject2 with cardinality "1 to 0..1" option and create view link between ViewObject1 to ViewObject2.
When to drag and drop ViewObject1 to view1.jspx page jdeveloper creates column input text with binding value <af:inputText value="#{row.ViewObject2.bindings.MyColumnName.inputValue}"
view1.jspx source code show warning message "Reference ViewObject2.bindings.MyColumnName not found" . After run view1.jspx framework generate runtime exception "ViewObject2 return null value" .
How to fix this error?

Could you pls explain what you want to do?
Anyway I will write:
Associations are created based on EOs not on VOs. If you do not want to update data you can get it done only by crating a View or View Link without creating an Association.

Similar Messages

  • Displaying SQL results in Web Pages from non-native DBs?

    How do developers process the results from SQL queries fron  non-narive DBs? If Spry Data sets are the best approach do I save the  query as a .htnl file with the results formatted as an HTMLDataset or do  I save the SQL query as an XML file? What other options do I have?
    TIA Ephraim.

    Hi
    You will require a database driver for PHP in order for it to communicate with your chosen database, you can find a list of supported drivers here - http://php.net/manual/en/pdo.drivers.php.
    However this will require you to use PHP:PDO for the querys/inserts/updates etc, see - http://php.net/manual/en/book.pdo.php. PDO is supported by the zend framework or you can code your own by following the examples given in the php:pdo manual, (link above).
    The good news is that by using pdo it is possible to use prepared statements and transactions if your database supports these. Prepared statements are the recommended method of issuing queries etc.
    PZ

  • Help in retrieveing Blob from Oracle db and display it on a web page

    I am using Sun Studio creator2 and this is what I want to achieve:
    When I click on "Load" button, the image is displayed on the web page(the application is a web application)
    I have dropped the "image" object from the pallette
    Having the database image displayed in the image field, when I enter the image ?Id? and click on the ?Load? button.
    Here is my piece of code:
    public String loadButton_action() {
    HttpServletRequest request = null;
    HttpServletResponse response = null;
    String connectionURL = "jdbc:oracle:thin:@//localhost:1521/cdecentre1";;
    /*declare a resultSet that works as a table resulted by execute a specified
    sql query. */
    ResultSet rs = null;
    // Declare statement.
    PreparedStatement psmnt = null;
    // declare InputStream object to store binary stream of given image.
    InputStream sImage;
    Connection connection = null;
    String driverName = "oracle.jdbc.driver.OracleDriver";
    String dbName = "cdecentre1";
    String userName = "christian";
    String password = "cc";
    String theid = (String)idField.getValue(); //reading the image id
    try{
    Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();
    connection = DriverManager.getConnection(connectionURL, userName, password);
    /* prepareStatement() is used for create statement object that is
    used for sending sql statements to the specified database. */
    psmnt = connection.prepareStatement("SELECT image FROM CHRISTIAN.PICTURES WHERE id = ?");
    psmnt.setString(1, theid);
    rs = psmnt.executeQuery();
    if(rs.next()) {
    byte[] bytearray = new byte[1048576];
    int size=0;
    sImage = rs.getBinaryStream(1);
    //response.reset();
    response.setContentType("image/jpeg");
    while((size=sImage.read(bytearray))!= -1 ){
    response.getOutputStream().write(bytearray,0,size);
    rs.close();
    psmnt.close();
    connection.close(); } }
    } catch(Exception ex){
    System.out.println("error :"+ex);
    return null; }
    At the moment, when I click on the ?Load? button, the image is not present in the image field.
    I am only obtaining a message inside the message component.
    What should I do to have the image displayed in on the web page?
    Your help will be highly appreciated.

    A comprehensive dissertation from Javaworld: http://www.javaworld.com/javaworld/jw-05-2000/jw-0505-servlets.html
    Published 05/05/2000, ergo Java 1.0/1 era... still a valid explanation of the problem and the fundamental solution, but take the code (esp ImageIO) from here
    http://blog.codebeach.com/2008/02/creating-images-in-java-servlet.html
       1. package com.codebeach.servlet; 
       2.  
       3. import java.io.*; 
       4. import javax.servlet.*; 
       5. import javax.servlet.http.*; 
       6. import java.awt.*; 
       7. import java.awt.image.*; 
       8. import javax.imageio.*; 
       9.  
      10. public class ImageServlet extends HttpServlet 
      11. { 
      12.     public void doGet(HttpServletRequest req, HttpServletResponse res) 
      13.     { 
      14.         //Set the mime type of the image 
      15.         res.setContentType("image/jpeg"); 
      16.  
      17.         try 
      18.         { 
      19.             Create an image 200 x 200 
      20.             BufferedImage bufferedImage = new BufferedImage(200, 200, BufferedImage.TYPE_INT_RGB); 
      21.  
      22.             //Draw an oval 
      23.             Graphics g = bufferedImage.getGraphics(); 
      24.             g.setColor(Color.blue); 
      25.             g.fillOval(0, 0, 199,199); 
      26.  
      27.             Free graphic resources 
      28.             g.dispose(); 
      29.  
      30.             //Write the image as a jpg 
      31.             ImageIO.write(bufferedImage, "jpg", res.getOutputStream()); 
                        ////////////// NICE !!!! //////////////
      32.         } 
      33.         catch (IOException ioe) 
      34.         { 
      35.            e.printStackTrace();
      36.         } 
      37.     } 
      38. }  Edited by: corlettk on 19/01/2009 23:22 ~~ {color:#FF0000}Never{color} eat an exception!

  • When I go to a web page that page appears upper left, filling half of the screen. I have to manually go to View in the menu bar to get it to fill the page each time.  How can I get my Mac Mini to go to full page automatically when I visit a web page?

    When I go to a web page, that page appears upper left, filling only half of my screen top and bottom.  Each time I have to go to the menu bar View and go to full page.  How can I get the web pages to display in the full screen automatically??? This just started happening.

    Do you have that problem when running in the Firefox SafeMode? <br />
    [http://support.mozilla.com/en-US/kb/Safe+Mode] <br />
    ''Don't select anything right now, just use "Continue in SafeMode."''
    If not, see this: <br />
    [http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes]

  • Exception when trying to post to a page

    In NetD we created and submitted a form with JavaScript.
    The form looked something like this
    <FORM ACTION=pgXYZ METHOD=POST>
    <INPUT TYPE=hidden NAME=SPIDERSESSION VALUE=12345>
    </FORM>
    So now in Jato, we're trying to do the exact same thing,
    except that instead of SPIDERSESSION, we use the three Jato
    variables. Now the form is like this:
    <FORM ACTION=pgXYZ METHOD=POST>
    <INPUT TYPE=hidden NAME=GXHC_GX_jst VALUE=12345>
    <INPUT TYPE=hidden NAME=GXHC_gx_session_id_ VALUE=12345>
    <INPUT TYPE=hidden NAME=pageAttributes VALUE=12345>
    </FORM>
    Notice we're not submitting to a handler, but just to the page itself.
    When we do this, we get an exception:
    [02/Oct/2001 16:29:59:4] error: Exception: SERVLET-execution_failed:
    Error in executing servlet portalServlet:
    javax.servlet.ServletException: The request was not be handled by the
    specified handler
    Exception Stack Trace:
    javax.servlet.ServletException: The request was not be handled by the
    specified handler^M
    at
    com.putnaminvestments.common.jato.ApplicationServletBase.dispatchReque
    st(ApplicationServletBase.java:668)^M
    at
    com.putnaminvestments.common.jato.ApplicationServletBase.processReques
    t(ApplicationServletBase.java:428)^M
    at
    com.putnaminvestments.common.jato.ApplicationServletBase.doPost(Applic
    ationServletBase.java:296)^M
    at
    javax.servlet.http.HttpServlet.service(HttpServlet.java:772)^M
    at
    com.putnaminvestments.bp.bpServletBase.service(bpServletBase.java:139)
    ^M
    at
    javax.servlet.http.HttpServlet.service(HttpServlet.java:865)^M
    at
    com.netscape.server.servlet.servletrunner.ServletInfo.service(Unknown
    Source)^M
    at
    com.netscape.server.servlet.servletrunner.ServletRunner.execute(Unknow
    n Source)^M
    at com.kivasoft.applogic.AppLogic.execute(Unknown Source)^M
    at com.kivasoft.applogic.AppLogic.execute(Unknown Source)^M
    at com.kivasoft.thread.ThreadBasic.run(Native Method)^M
    at java.lang.Thread.run(Thread.java:479)^M
    So what are we missing??

    Thanks Kostas, good answer.
    Todd
    ----- Original Message -----
    From: "Kostas Morfis" <kmorfis@i...>
    Sent: Tuesday, October 02, 2001 4:31 PM
    Subject: RE: [iPlanet-JATO] Exception when trying to post to a page
    Hi Mark
    You are trying to submit to a view bean using java script right ?
    Notice we're not submitting to a handler, but just to the page itself.You are actually submitting the request to your JATO selvlet base, is that
    you intention ?
    The exception is being thrown because there is no request handler found.
    If you are trying invoke a handleBtnXXXmethod then your form action would
    look something like,
    <form method="post" action="../myServlet/pgMyPage?pgMypage.btnMyButton=">
    This adds to the request an appropriate handler as a parameter. Another
    option could be to add a hidden field
    with the same name as your button.
    Attempting to post the form without specifying a request handler will not
    work eg:
    <form method="post" action="../myServlet/pgMyPage">
    This throws a ServletException("The request was not be handled by the
    specified handler")
    because you are doing a post to ViewBean from a form which implies youwant
    to handle some kind web action.
    The way JATO enforces this is to check for the prescence of pageAttributes
    in the request (implemented using hidden fields)
    which you have in your form.
    Kostas
    -----Original Message-----
    From: Mark_Dubinsky@p... [mailto:<a href="/group/SunONE-JATO/post?protectID=174166091163159191130171186101229144026098131198043123114199021239115076086020224">Mark_Dubinsky@p...</a>]
    Sent: Tuesday, October 02, 2001 10:04 PM
    Subject: [iPlanet-JATO] Exception when trying to post to a page
    In NetD we created and submitted a form with JavaScript.
    The form looked something like this
    <FORM ACTION=pgXYZ METHOD=POST>
    <INPUT TYPE=hidden NAME=SPIDERSESSION VALUE=12345>
    </FORM>
    So now in Jato, we're trying to do the exact same thing,
    except that instead of SPIDERSESSION, we use the three Jato
    variables. Now the form is like this:
    <FORM ACTION=pgXYZ METHOD=POST>
    <INPUT TYPE=hidden NAME=GXHC_GX_jst VALUE=12345>
    <INPUT TYPE=hidden NAME=GXHC_gx_session_id_ VALUE=12345>
    <INPUT TYPE=hidden NAME=pageAttributes VALUE=12345>
    </FORM>
    Notice we're not submitting to a handler, but just to the page itself.
    When we do this, we get an exception:
    [02/Oct/2001 16:29:59:4] error: Exception: SERVLET-execution_failed:
    Error in executing servlet portalServlet:
    javax.servlet.ServletException: The request was not be handled by the
    specified handler
    Exception Stack Trace:
    javax.servlet.ServletException: The request was not be handled by the
    specified handler^M
    at
    com.putnaminvestments.common.jato.ApplicationServletBase.dispatchReque
    st(ApplicationServletBase.java:668)^M
    at
    com.putnaminvestments.common.jato.ApplicationServletBase.processReques
    t(ApplicationServletBase.java:428)^M
    at
    com.putnaminvestments.common.jato.ApplicationServletBase.doPost(Applic
    ationServletBase.java:296)^M
    at
    javax.servlet.http.HttpServlet.service(HttpServlet.java:772)^M
    at
    com.putnaminvestments.bp.bpServletBase.service(bpServletBase.java:139)
    ^M
    at
    javax.servlet.http.HttpServlet.service(HttpServlet.java:865)^M
    at
    com.netscape.server.servlet.servletrunner.ServletInfo.service(Unknown
    Source)^M
    at
    com.netscape.server.servlet.servletrunner.ServletRunner.execute(Unknow
    n Source)^M
    at com.kivasoft.applogic.AppLogic.execute(Unknown Source)^M
    at com.kivasoft.applogic.AppLogic.execute(Unknown Source)^M
    at com.kivasoft.thread.ThreadBasic.run(Native Method)^M
    at java.lang.Thread.run(Thread.java:479)^M
    So what are we missing??
    [email protected]
    [Non-text portions of this message have been removed]
    [email protected]

  • Where are files downloaded to on the mac when creating a pdf from web pages?

    where on the mac HD are files downloaded to  when creating a pdf from web pages?
    Im creating web pages from the whole site so creating a large document, so wondered where these fiels are stored on the mac so I can delete when finished as dont want to clog up the hard drive.

    Look at the LiveCycle server products.

  • Firefox crashes when we go to different web pages, but not specific to any specifc ones, just web pages in general. How do we correct this issue?

    When we go to different web pages, we get an onscreen message stating firefox has stopped working. Most of the time firefox does restore the pages and tabs, but sometimes it does not. How can we fix this problem?
    == Crash ID(s) ==
    There are none.

    Please give me the crash report ID. Press '''CTRL+ L''' to Go to the address bar then type '''about:crashes'''.
    Copy and paste the entire page here and I will be able to figure out your problem

  • When I click on a web page link, it creates a bookmark does not open page, need to right click and open new page or tab

    When I click on a web page link, it creates a bookmark does not open page, need to right click and open new page or tab

    My own problem not a system one

  • How to display query result in seperated page.

    How to display query result in seperated page, if the results are very big (more than 5000 records) and there are so many concurrent users (about 500 - 1000 users).
    Are there any solutions or frameworks?
    Plese help me .........
    thanks,
    --bhasin

    Hi,
    How to display query result in seperated page?I think RowSet will be the better technology to use in this
    situation.For more information on this please visit http://developer.java.sun.com/developer/Books/JDBCTutorial/chapter5.html
    which explains in detail about RowSets.
    Hope this helps.
    Good Luck.
    Gayam.Srinivasa Reddy
    Developer Technical Support
    Sun Microsystems
    http://www.sun.com/developers/support/

  • When I go to a web page power point presentation saved as Adobe the first page loads then I keep getting error message:

    I have Adobe Acrobat Pro XI
    And its up to date.
    When I go to a web page Power point presentation saved as Adobe the first page loads then I keep getting error message:
    There was a problem reading this document (14)
    I've tried refreshing the download.
    Im using IE 11
    windows 8.1
    Any ideas how to fix this?

    [moving discussion to Creating, Editing & Exporting PDFs forum]

  • Safari Not Displaying All Images On Web Page

    When I look at a web page in Safari on my iPhone 3GS, not all of the images on the page load. Instead, I see little blue squares with question marks in them. However, if I look at the same web page on an iPhone 4, the images DO load. Why is this happening?
    Here are two screenshots to prove my point:
    iPhone 3GS
    iPhone 4

    Settings>Safari>Javascript On maybe?
    May find an answer here as well:
    http://manuals.info.apple.com/enUS/iPhone_iOS4_UserGuide.pdf

  • Exception when trying to run an Web Application that uses a Web service

    Hello All,
    I get an exception when trying to run an Web Application that uses a Web service. The web application is a WebDynpro Application.(an application similar to the one "Using an Email Web Service in Web Dynpro" in the tutorial section of Web Dynpro but using a different web service)
    The exception is
    <b>Service call exception; nested exception is: com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (404) Not Found.</b>
    Could anyone give me an idea on what might be the problem ?
    Regards,
    Loveline.

    Hello,
    Like you said it was the problem with url.
    The webservice I used is actually running on the local machine (where the NetWeaver developer studio is installed); so in the url I had specified localhost. But I deployed the application on another server(SAP J2EE Engine). That is why it didn't work. On changing the url as required, the application is working fine.
    Thanks !
    Regards,
    Loveline.

  • Bell rings when I open a new web page

    An annoying bell rings when I open a new web page in Safari 5.1.1. Can anyone tell me how to change this? Thanks.

    Carolyn,
         The sound effects answer did not work. Thank you for your help. 

  • When Firefox 5 opens the web page is too wide for the window and only half is displayed. How can I correct this?

    The web page is offset to the right so that only the left half is visible in the Firefox window. As soon as I start to re-size the window (bottom RH corner) the page snaps into place and all is ok. It only happens when I launch the browser.
    I did not experience this with version 4.

    The web page is offset to the right so that only the left half is visible in the Firefox window. As soon as I start to re-size the window (bottom RH corner) the page snaps into place and all is ok. It only happens when I launch the browser.
    I did not experience this with version 4.

  • Firefox 31.0 bug - FF crashes when trying to print Amazon web pages

    Using Mac OS 10.6.8. Firefox crashing issue just started occurring for me after updating to FF 31.0 on 8-5-14. Prior to that FF has always worked perfectly for me with no printing issues or any other issues. Luckily FF does not crash when printing anything else. All other web pages work well so far except for Amazon.
    Tried many different listings on Amazon but I get the same result; instant crash. Command P brings up the Print Window successfully, but as soon as I make the choice to Print, Preview or Save as a pdf, FF crashes. (By the way, my Safari browser works perfectly when printing these same web pages on Amazon. No crashes.)
    Tried every single one of the Help suggestions regarding the printer settings, preferences, and other help suggestions for crashing issues but they made no difference at all. Cleared my FF cookies and cache, cleared my system and user caches, updated Flash Player and checked that all plugins were up-to-date, ran Disk Utility to repair permissions, and reset PRAM, but no luck.
    Decided to reset FF last night but that resulted in no change at all. FF still crashes when attempting to print from Amazon. I reported this issue to Amazon, and they said they would contact Mozilla about it too. Thank you.

    We're sorry to hear that Firefox is crashing. In order to assist you better, please follow the steps below to provide us crash IDs to help us learn more about your crash.
    #Enter ''about:crashes'' in the Firefox address bar and press Enter. A Submitted Crash Reports list will appear, similar to the one shown below.
    #Copy the '''5''' most recent Report IDs that start with '''bp-''' and then go back to your forum question and paste that into the "Post a Reply" box. (Please don't take a screenshot of your crashes, just copy and paste the ID's. The below image is just an example of what your Firefox screen should look like)
    [[Image:aboutcrashesFx29|width=520]]
    <br><br>
    Thank you for your help!
    More information and further troubleshooting steps can be found in the [[Firefox crashes - Troubleshoot, prevent and get help fixing crashes]] article.

Maybe you are looking for

  • Basic finish date earlier than basic start date while backward scheduling

    I am encountering an issue where in when I am selecting backward scheduling for a process order and I am entering the Basic finish date, afte which system is giving me a Basic startdate which is after the basic finish date. For eg:- When i give the b

  • Recent troubles with WiFi.

    Hello everyone, recently I have been having numerous issues with my WiFi connection. I am only noticing the issue when I am attempting to download a file via Firefox or using wget. What will happen is, during the middle of downloading the file my int

  • How far back does history go in safari?

    I found something inappropriate on my ipod touch which my young daughter was looking at in safari. When I look at history, it only goes back as far as yesterday. Does that mean someone has cleared the history?

  • Implementing replication in Oracle 10&11 Standard Edition

    I am implementing an oracle based application which will run under Linux/Oracle 10gr2 standard edition and which will soon be upgraded to Oracle 11g standard edition. One of the requirements of the application is that a hot standby must be provided.

  • Intercompany purchase copies sales amount-but applies base currency

    Hi We have 2 companies-one with base currency INR and second with base currency USD.  Some customer orders are taken by USD company which gets goods producted at INR company. By assigning INR company's plant in USD companies sales order, we can gener