Servlet not showing BLOB image from Oracle in JSF

hi forum.
i have a table in oracle in which i m storing images in a BLOB field and file extention (mime type) in a varchar2 field. i can successfully store image. but i want the stored image to be displayed in a graphicimage tag from BLOB. i searched net and found it has to be done using servlet. the code that i used is as following. but i get null pointer exceptions. i know i should get these exceptions but i dont know how to tackle them since there were few things left vague in every site i searched. so i opted to ask the forum.
here is the code for my jsp page
     <h:graphicImage value="/DisplayImage"/>
web.xml is amended as follows
              <servlet>
  <servlet-name>DisplayImage</servlet-name>
  <servlet-class>imageDisplay.DisplayImage</servlet-class>
</servlet>
<servlet-mapping>
  <servlet-name>DisplayImage</servlet-name>
  <url-pattern>/DisplayImage</url-pattern>
</servlet-mapping>
          the servlet itself....
   package imageDisplay;
import java.sql.*;
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
import org.pa.utils.HibernateUtils;
import org.hibernate.Session;
public class DisplayImage extends  HttpServlet{
  public void doGet(HttpServletRequest request,HttpServletResponse response)  throws ServletException, IOException
            Session hibernateSession = null;
          hibernateSession = HibernateUtils.currentSession();
          Connection connection;
          connection = hibernateSession.connection();
          Statement st1;
  try{ 
       Class.forName("oracle.jdbc.driver.OracleDriver");
         st1=connection.createStatement();
         ResultSet rs1 = st1.executeQuery("select APP_FILE from EMPLOYEE_DETAILS where EMP_ID = 2");  //APP_FILE IS THE BLOB FIELD
         System.out.println("----------------#@$#@$$%^$%^%&^*^&*(&(*&^%$#$%@#%^%^%&*&^*$^&#%^$%@#$%@#$--------------------");
       String imgLen="";
       while(rs1.next())
       imgLen = rs1.getString(1);
                  int len = imgLen.length();   //THIS IS LINE 35 WHERE ERROR IS EMERGED...............
                 byte [] rb = new byte[len];
                 InputStream readImg = rs1.getBinaryStream(1);
                 int index= readImg.read(rb, 0, len); 
            System.out.println("index----#@$#@$$%^$%^%&^*^&*(&(*&^%$#$%@#%^%^%&*&^*$^&#%^$%@#$%@#$------------"+index);
            response.reset();
            response.setContentType("image/jpg");
            response.getOutputStream().write(rb,0,len);
            response.getOutputStream().flush();
  st1.close();
  response.getOutputStream().close();
} catch (Exception e){
  e.printStackTrace();
  the error i get is
index----#@$#@$$%^$%^%&^*^&*(&(*&^%$#$%@#%^%^%&*&^*$^&#%^$%@#$%@#$------------
java.lang.NullPointerException
     at imageDisplay.DisplayImage.doGet(DisplayImage.java:35)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:291)
     at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
     at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)
     at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
     at java.lang.Thread.run(Unknown Source)bundle of thanks in advance for reading my problem persistantly and your help that i am desperately looking for
Edited by: jaykio77 on Jan 11, 2012 4:09 AM
Edited by: jaykio77 on Jan 11, 2012 4:12 AM

In stead of copying/pasting code, take the time to read about how JDBC works. Yes that is going to take some time, but when you gain the knowledge you prevent yourself from having to dump your problem on other people, in this case a bunch of friendly strangers.
This code:
imgLen = rs1.getString(1);
                  int len = imgLen.length();   //THIS IS LINE 35 WHERE ERROR IS EMERGED...............
                 byte [] rb = new byte[len];
                 InputStream readImg = rs1.getBinaryStream(1);Really doesn't make much sense. This would assume that the first position in the resultset is both a String and a Blob.
In the mean time, break down your problem. What you want to do is read a blob from a resultset. Right? Thats it, who cares that a servlet is involved, that is not what you are having trouble with. You cannot read the blob.
That is vital to realize as you can narrow your google search to "java resultset blob". Guess what popped up as the first hit for me:
http://www.java2s.com/Code/Java/Database-SQL-JDBC/GetBLOBdatafromresultset.htm

Similar Messages

  • Photos 1.0 not showing all images from Photos Library.photoslibrary folder/file after update install

    I installed the update that changed my iPhoto to Photos 1.0, and the new Photos program is not showing all images from Photos Library.photoslibrary file/folder (not sure to call it file or folder since it is actually a folder with all my pics but it acts more like a file) after update install.  The Photos Library.photoslibrary file/folder shows to be 55 gb in size, and it shows to be loaded into the photos program, but there are maybe a few weeks of pictures showing instead of a few years.  Lots of pictures in the 55 gb are not showing for some reason. 

    No - iPhotos has not replaced anything - it is new and an addition - iPhoto is still on your system in the applications folder and still works just fine
    Outlook is not supported by Photos - not sure if the support must come form Apple or MS as Photos uses a different interface to external packages than iphoto did
    LN

  • Crystal HTML viewer will not show embedded image from Infoview image store

    I am having an issue with the html and dhtml viewers not showing an image I have embedded inside a crystal report.  The image has been stored in infoview and embedded into the report from that source.  Using the Crystal ActiveX viewer works fine in this case and shows the image.  The html viewers however show the blank box with the red X in the top left corner when Internet explorer can't find an image.
    Now, if I right click on the image and get it's properties I get this URL:
    http://vsx2af0x/crystalreportviewers115/imagehandlerdotnetbridge.aspx?dynamicimage={B8FDE586-08D3-4A14-896C-0FE19AC3DB90}.png
    If I take that url and try to load it directly through Internet explorer I get the following error:
    Exception of type 'System.OutOfMemoryException' was thrown.
    The file is small and only about 20k in size.  If someone can help that would be greatly appreciated.
    Thanks

    Unfortunately I have been unable to remove the plug-in. The files is not locked, or shared, but my operating systems thinks it is.
    What happens, when you try?
    When I try to delete the plug-in from
         /Library/Application Support/Aperture/Plug-Ins/Google/Analog Efex Pro/
    with ⌘⌫, I simply get the pop-up panel to enter my administrator password, and the plug-in will be moved to the Trash:
    Don't forget to quit Aperture, before trying to remove the plug-in and to log off and on.

  • How to insert and view images from oracle using jsf

    Can anyone please give me some code example or link of article explaining that how can i insert and view images to/from oracle using jsf?
    Thanks in advance.

    You mean you want to view image data stored in the database, right?
    Create a servlet that streams the image data to the response (setting the appropriate content-type), then reference this servlet in your img tag. Here is an example:
    http://balusc.blogspot.com/2007/04/imageservlet.html
    Storage is something different. What exactly don't you understand there? Perhaps you want a file upload component?

  • Oracle lite application not showing blob images in BI reports

    Hi,
    We have an application running in Oracle lite, we integrated the BI publisher reports (PDF reports are generated Using Data template and RTF file with Java API for BI publisher) with the application. Its been working fine for a long time.
    Now we are showing some images on the pdf report, the images are stored in the Oracle lite database as blobs. My application fails when translating the Data template to xml data. I am not getting any exception other than out of memory error after a while.
    anybody had the same problem? Let me know if you need more information on this problem.
    Any help will be great!!
    Regards,
    Parthiban Kumar
    Edited by: Parthiban Kumar on Nov 12, 2009 10:45 AM

    Hi Carsten
    That was exactly* I was looking for. Maybe I should Google more in German ;-)
    The main problem was that I defined my image outside the first repeating group (that doesn't repeat, it's always just one object) - the first group is followed by 7 more.
    Just like the "Name" (that's positioned outside the group in the document header), I positioned the image above the table representing the group.
    Doing that, the "Name" is filled correctly, the Image only when the Output Format is Excel or HTML - not Word or PDF ... makes no sense but that's tje way it is.
    After moving the image inside the group....it works great!
    (One more thing...the image size is fixed to the image you use as "dummy". Is there any way to make that more flexible, because now some scaling happens...)???
    @Trent: That was the way we initially did it, but when the size of the row exceeds 32K...you know what happens.. And even with a small image the 32K limit is hit easily
    The way I use it now (very similar to Carsten's description) there is no limit....
    Thank you all!
    Roel

  • How can i pass more than 1 param to servlet to show blob image

    Hi
    my servlet expects 2 param to SELECt an image from a blob column
    public class ImageBlobServlet extends HttpServlet {
    private static final String CONTENT_TYPE = "text/html; charset=windows-1252";
    public void init(ServletConfig config) throws ServletException {
    super.init(config);
    public void doGet(HttpServletRequest request,
    HttpServletResponse response) throws ServletException,
    IOException {
    response.setContentType(CONTENT_TYPE);
    String ImageId = request.getParameter("id");
    String TipImg = request.getParameter("tip");
    OutputStream os = response.getOutputStream();
    Connection conn = null;
    try {
    Context ctx;
    ctx = new InitialContext();
    DataSource ds = (DataSource)ctx.lookup("java:/comp/env/jdbc/rhDS");
    conn = ds.getConnection();
    PreparedStatement statement = conn.prepareStatement("select FIT from " +
    "RHH_FOTOS IMG " +
    "where IMG.IDASSO = ? and IMG.TIM_COA = ?");
    statement.setInt(1, new Integer(ImageId));
    statement.setString(2, TipImg);
    To display the image i tried to use:
    <af:image id="ot1"
    *source="/imageblobservlet?id=#{bindings.Con.inputValue}?tip=#{"EMP"}"*
    shortDesc="Foto"/>
    but i receive all content in the get of first param.
    String ImageId = request.getParameter("id");
    How can i pass one more then 1 param in EL.
    Thanks in advance

    Hello,
    seems to me you're using wrong separator for the second param into your URL:
    <af:image id="ot1" source="/imageblobservlet?id=#{bindings.Con.inputValue}
    tip=#{"EMP"}" shortDesc="Foto"/>
    I think it should be:
    <af:image id="ot1" source="/imageblobservlet?id=#{bindings.Con.inputValue}
    tip=#{"EMP"}" shortDesc="Foto"/>
    Jack

  • Safari is not showing some images from web properly

    Hi. Since last week some pictures from web are not showing properly on safari & mail apps.
    Whenever I go to websites with relatively many images, some of the images are only showing top halves and the bottom halves are solid black.
    This has never happened before.
    As it was so annoying, I've tried deleting safari history, cookies, and web data, and I also tried network reset.
    None of them worked.
    What's weird is that this issue doesn't happen when I'm using wifi, but happens when I use LTE.
    My signal dots are full 5, and LTE is still faster than my wifi.
    what can I try next?

    You can fix the issue temporarily by going to Settings > Safari > Clear History and Website Data.  Note that this will log out of any website you were logged in to, and will clear your browsing history (if you use suggested websites from your history when going to new pages), but it will reset the cache containing the incorrect images.
    Another way to fix this issue temporarily is to use Settings > Safari > Advanced > Website Data and swipe to delete only those domains that have incorrect images.  This does the equivalent of clearing website data, but only for the specific site removed.  Note that images are frequently served from different domains than the host site, so you must clear the domains where the images are stored.  Also, this page doesn't have a way to filter the list, so you must look through it manually, which is why I don't suggest it as the first option.
    BTW, the majority of posts reporting this issue appear to be AT&T customers.

  • Image from Oracle BLOB is not showing

    Hi all!
    Im trying to use this code:
    <?php
    //... etc
    $sql = oci_parse($c, 'select * from pf2.documents ');
    oci_execute($sql);
    echo "<table width = 200 border = 1 cellspacing=0 cellpadding=0>";
    while ($row = oci_fetch_assoc($sql)) {
    echo "<tr>";
    echo"<td style=background-color:#DDDEEE; align=center>";
    echo $row['SHORTNAME'] ;
    echo"</td>";
    echo"<td style=background-color:#DDDEEE; align=center>";
    print $row['FILENAME'] ->load();
    echo"</td>";
    echo "</tr>";
    echo "</table>";
    //... etc
    ?>
    Here im trying to select and publish an image from Oracle BLOB,
    but in Mozilla Firefox im getting just whong text:
    яШяа�JFIF��`�`��яЫ�C� $.' ",#(7),01444'9=82<.342яЫ�C 2!!22222222222222222222222222222222222222222222222222яА�МЂ"�яД����������� яД�µ���}�!1AQa"q2Ѓ‘Ў#B±БRСр$3br‚ %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyzѓ„…†‡€‰Љ’“”•–—�™љўЈ¤Ґ¦§Ё©ЄІіґµ¶·ё№єВГДЕЖЗИЙКТУФХЦЧШЩЪбвгдежзийкстуфхцчшщъяД�������� яД�µ��w�!1AQaq"2ЃB‘Ў±Б #3RрbrС $4б%с
    Please help!
    P.S.: Im using PHP 5.2.10 under Wintel platform,
    Oracle 9.2.0.4,
    create table DOCUMENTS
    DOCID NUMBER(10) not null,
    SHORTNAME VARCHAR2(30) not null,
    FULLNAME VARCHAR2(250) not null,
    FILENAME BLOB not null,
    AUTHOR VARCHAR2(30) not null,
    CREATIONDT DATE not null,
    VERSION VARCHAR2(10) not null
    Edited by: user502299 on 28.09.2009 5:33

    I am having a similiar problem. I have created the image.php file:
    <?
    $query = "select a.image_file FROM officer_image a, officer_info b where a.officer_id=b.officer_id and b.officer_lname like 'LEDEZ%' ";
    $stmt = @OCIParse ($db_conn, $query);
    @OCIExecute($stmt, OCI_DEFAULT);
    @OCIFetchInto($stmt, $arr, OCI_ASSOC+OCI_RETURN_LOBS);
    $result = $arr['BLOB'];
    @OCIFreeStatement($stmt);
    @OCILogoff($conn);
    $im = @imagecreatefromstring ($result);
    if (!$im) {
    $im = imagecreate(150, 30);
    $bgc = imagecolorallocate($im, 255, 255, 255);
    $tc = imagecolorallocate($im, 0, 0, 0);
    imagefilledrectangle($im, 0, 0, 150, 30, $bgc);
    imagestring($im, 1, 5, 5, "", $tc);
    Header("Content-type: image/jpeg");
    Header("Content-Disposition: attachment; filename=filename_".uniqid(time()).".jpg");
    imagejpeg($im,'',100);
    imagedestroy($im);
    ?>
    And then in the actual search web page:
    <?php
              $tname = $_POST['lname'];
              $lname = "{$tname}%";
              $id = "1";
              //$query = "SELECT officer_id, image_file FROM officer_image WHERE ID='.$id.'";
              $query = "select a.image_file FROM officer_image a, officer_info b where a.officer_id=b.officer_id and b.officer_lname like 'LEDEZ%' ";
              //oci_bind_by_name($sql, ":bv", $lname);
              //oci_execute($sql);
              $stid = OCIParse($conn,$query);
              Header("content-type:image/jpeg");
              OCIExecute($stid, OCI_DEFAULT);
              while($succ= OCIFetchInto($stid,$row)) {
                   foreach($row as $item) {
         $blob_message = $item->load();
                   // Output the image
              //imagejpeg($blob_message);
              echo $blob_message . " " ;
              //echo "<img src="image.php?id='.$blob_message.'" border="0">. $rows['officer_id']."\">\n";
              echo "<br /><br />";
                   // Free up memory
              //imagedestroy($im);
              //while ($row = oci_fetch_assoc($sql))
    ?>
    Can anyone help?

  • I have backed my Mac Book pro up to my external hard drive using time machine. My iPhoto now does not show any images, even when I upload from my iPhone

    I have backed my Mac Book pro up to my external hard drive using time machine. My iPhoto now does not show any images, even when I upload from my iPhone

    Mac 101: File Sharing
    Mac OS X 10.7 Help: Transfer files between two Mac computers
    Mac OS X 10.7 Help: Set up a Windows computer to share files with Mac users
    Mac OS X 10.7 Help: Use iDisk to share files
    Mac OS X: Sharing your files with non-Apple computers
    How to share a Mac's files with a PC and vice versa.

  • Want to scan an image from oracle forms -- Is it possible??

    Hi all,
    I want to scan an image from oracle forms through a scanner. I have not found any help on this topic. Pls help with example or code or with demmo form.
    BR
    Tarik.
    Edited by: Tarik_kuet on Sep 9, 2008 1:39 PM
    Edited by: Tarik_kuet on Sep 9, 2008 1:39 PM

    A colleague of me did it like this:
    * the scanner is connected to a network document server.
    * the document server sends(ftp) the image to the oracle XDB
    * a form shows the scanned documents(using a view on the ftp directory in XDB using path_view)
    * in this form the user can move the scanned document(s) to a (blob field) in a table.
    Hope this helps a bit...
    Edited by: poelger on Sep 9, 2008 10:08 AM

  • I tried to display gif image from oracle to jsp but nothing appear

    i tried to display image from oracle DB to jsp directly without using file processing , and i used Servlet and jsp , Servlet to get image from DB and jsp to use <img> tag , when i Run Servlet code
    the image appaer on Microsoft Photo Editor , and when i run jsp the image dose not appear on jsp page , so please anyone has an idea about this broblem ,send the soluation or any information to my e-mail [email protected] , and I'll thankful about your help.
    the Servlet and jsp code are below .
    thank for your help
    Servlet:
    import java.io.InputStream;
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.ResultSet;
    import java.sql.Statement;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.PrintWriter;
    import java.io.IOException;
    public class Servlet extends HttpServlet
    public void init(ServletConfig config) throws ServletException
    super.init(config);
    public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
    response.setContentType("image/gif");
    int id = Integer.parseInt(request.getParameter("no"));
    // int id = 2 ; when Run Servlet .
    ResultSet rs = null;
    Connection Lcon = null;
    String stmt = " select Image from ImageTable where lmage_id ="+id;
    Statement sm = null;
    String data1 ="";
    try
    Lcon = getConntcion();
    sm = Lcon.createStatement();
    rs = sm.executeQuery(stmt);
    if(rs.next())
    InputStream in = rs.getBinaryStream(1);
    ServletOutputStream sout = response.getOutputStream();
    int c;
    while((c=in.read())!= -1)
    sout.write(c);
    in.close();
    sout.flush();
    sout.close()
    }catch(Exception e)
    System.out.println("error in selectValue the error is "+e);
    finally
    rs .close( );
    sm .close( );
    Lcon.close( );
    public Connection getConntcion()
    Connection con = null;
    try{
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    con = DriverManager.getConnection(",,,,,,,, DB Info ,username and password ,,,,,,,,,,,");
    }catch(Exception e)
    System.out.println("error in connection the error is "+e);
    return con;
    Jsp code :
    <%@ page contentType="text/html"%>
    <html>
    <head
    </head>
    <title> testing image </title>
    <body>
    <form>
    <img src="servlet/Servlet?no=2">
    </form>
    </body>
    </html>

    InputStream in = rs.getBinaryStream(1);
    byte[] image= null;
    ByteArrayOutputStream baos = new ByteArrayOutputStream();
    byte[] buffer = new byte[8192];
    int bytesRead = 0;
    while ((bytesRead = in.read(buffer, 0, 8192)) != -1)
         baos.write(buffer, 0, bytesRead);
    image= baos.toByteArray();
    in.close();
    ServletOutputStream sout = response.getOutputStream();
    if (image != null)
           sout.write(image);
           sout.flush();
    }

  • Don't Show BLOB image.

    Version 11.1.1.1.0
    After run the .jspx page don't show any error but don't show blob image in page.
    Servlet Code is
    public class ClsServlet extends HttpServlet{
    public ClsServlet() {
    super();
    public void init(ServletConfig config) throws ServletException {
    super.init(config);
    public void doGet(HttpServletRequest request,
    HttpServletResponse response) throws ServletException,
    IOException {
    String appModuleName = "image.model.AppModule";
    String appModuleConfig = "TempAppModule";
    String imgno = request.getParameter("imgno");
    String tblName = request.getParameter("tblnm");
    String clmName = request.getParameter("clnm");
    String pkclmName = request.getParameter("pkclnm");
    String mType ;//= request.getParameter("mtype");
    mType = "jpg";
    String voQuery =
    "select " + clmName + " from " + tblName + " where " + pkclmName +
    " = '" + imgno + "'";
    String mimeType =
    mType; //"gif";//this.getServletConfig().getInitParameter("gif");
    ApplicationModule am =
    Configuration.createRootApplicationModule(appModuleName,
    appModuleConfig);
    am.clearVOCaches("TempView", true);
    ViewObject vo = null;
    //String s;
    System.out.println("voQuery="+voQuery);
    try {
    vo = am.createViewObjectFromQueryStmt("TempView", voQuery);
    } catch (Exception e) {
    System.out.println( e.toString()+" err:VO Exists...");
    System.out.println("before run============= !!!");
    // Run the query
    try {
    vo.executeQuery();
    } catch (Exception e) {
    System.out.println(e.toString());
    // Get the result (only the first row is taken into account
    System.out.println("after run============= !!!");
    Row product = vo.first();
    BlobDomain image = null;
    // Check if a row has been found
    if (product != null) {
    System.out.println("onside product============= !!!");
    // We assume the Blob to be the first a field
    image = (BlobDomain)product.getAttribute(0);
    if (product.getAttributeCount() > 1) {
    mimeType = (String)product.getAttribute(1);
    } else {
    //LOG.warn("No row found to get image from !!!");
    //LOG.warn("No row found to get image from !!!");
    System.out.println("No row found to get image from !!!");
    vo.remove();
    //vo.clearCache();
    return;
    System.out.println("Set Image============= !!!");
    // Set the content-type. Only images are taken into account
    response.setContentType("image/" + mimeType);
    OutputStream os = response.getOutputStream();
    InputStream is = image.getInputStream();
    System.out.println(image.getBufferSize() + "image.getBufferSize()");
    // copy blob to output
    byte[] buffer = new byte[image.getBufferSize()];
    int nread;
    vo.remove();
    //while ((nread = is.read(buffer)) != -1) {
    while ((nread = is.read(buffer)) != -1) {
    // try {
    os.write(buffer);
    System.out.println(buffer.length + "Set Image============= loop!!! " +
    nread);
    System.out.println("==out strim===" + os.toString());
    is.close();
    os.close();
    os.flush();
    // Remove the temporary viewobject
    vo.remove();
    //vo.clearCache();
    // Release the appModule
    Configuration.releaseRootApplicationModule(am, true);
    how can i show this image

    Hard to tell from your code and the information given.
    Do you get the image from the DB?
    Can you shoe the code to show the image on the page?
    Timo

  • SSRS MHTML Report showing chart image from a previous email

    Hi there,
    I am having an issue with SSRS reports subscription emails.  I am sending a report as MHTML with some charts, which are end up as images within the email body.  The issue is that outlook is inconsistent with what it is deciding to show as the image.
     At times it will show an image from a previous days email, effectively delivering the wrong information.  It is obviously using some caching.  I have read others having similar issues with iPhone/safari, but have yet to see this issue with
    Outlook.  I am wondering if there is a way to control the naming of the images to force the mail client to render the intended image.  There is huge risk in delivering the wrong information.  Or alternatively, if there is a way to modify the
    MHTML output after the subscription runs to add some meta information, if that would even work.

    Hi Jamie,
    According to your description, there are charts in the report, you configured subscription for the report and render format is MHTML. The problem you are facing is that sometimes the information of subscription comes from previous days.
    To troubleshoot the problem, please refer to the following steps:
    By default, the Subject of subscription includes following variables: @ReportName, @ExecutionTime. Please validate that the @ExecutionTime in email body is the same with schedule of the subscription, and make sure that the report is delivered correctly.
    Please login web-based email and validate that the information of delivered report is correct. If the information of web-based email is not the same as outlook, then the problem may be cause by using caching in outlook. If that is the case, we can resolve
    the problem by disabling Cached Exchange Mode. Please refer to the link:
    http://technet.microsoft.com/en-us/library/cc179175(v=office.15).aspx
    If you have any more questions, please feel free to ask.
    Thanks,
    Wendy Fu

  • GetBlob Error During fetching of Images from Oracle 10g

    Dear Sir,
    By using getBlob Function ,i am getting following error:"Unsupportable action has performed".
    I am using oracle 10g.I am using java code to retrieve image from Oracle 10g.
    So plz help me by giving full code with explaination.
    Thankyou.
    Yours Obedient
    Dipesh Kumar

    I seriously doubt Oracle would write error messages with such atrocious English.
    So it's almost certainly an error from either your own code or code you're calling in some library or part of the application you're not mentioning that noone here except you has knowledge of.
    Ergo, we're not going to be able to help you unless you provide a lot more information.
    And no, we're not going to write your code for you.

  • Error when reading BLOB field from Oracle usin Toplink

    We experience a very annoying problem when trying to read a BLOB
    field from Oracle 8.1.6.2.0 using TOPLink 3.6.3. I have attached the
    exception stack trace that is reported to the console. As far as I can
    judge a fault at oracle.sql.LobPlsqlUtil.plsql_length() happens first and
    then at TOPLink.Private.DatabaseAccess.DatabasePlatform.convertObject().
    The exception is permanently repeating that is very critical for us.
    ServerSession(929808)--Connection(5625701)--SELECT LOBBODY, ID, LABEL, FK_OBJECT_ID, FK_OBJECTTYPE FROM NOTE WHERE (ID = 80020)
    INTERNAL EXCEPTION STACK:
    java.lang.NullPointerException
    at oracle.sql.LobPlsqlUtil.plsql_length(LobPlsqlUtil.java:936)
    at oracle.sql.LobPlsqlUtil.plsql_length(LobPlsqlUtil.java:102)
    at oracle.jdbc.dbaccess.DBAccess.lobLength(DBAccess.java:709)
    at oracle.sql.LobDBAccessImpl.length(LobDBAccessImpl.java:58)
    at oracle.sql.BLOB.length(BLOB.java:71)
    at TOPLink.Private.Helper.ConversionManager.convertObjectToByteArray(ConversionManager.java:309)
    at TOPLink.Private.Helper.ConversionManager.convertObject(ConversionManager.java:166)
    at TOPLink.Private.DatabaseAccess.DatabasePlatform.convertObject(DatabasePlatform.java:594)
    at TOPLink.Public.Mappings.SerializedObjectMapping.getAttributeValue(SerializedObjectMapping.java:43)
    at TOPLink.Public.Mappings.DirectToFieldMapping.valueFromRow(DirectToFieldMapping.java:490)
    at TOPLink.Public.Mappings.DatabaseMapping.readFromRowIntoObject(DatabaseMapping.java:808)
    at TOPLink.Private.Descriptors.ObjectBuilder.buildAttributesIntoObject(ObjectBuilder.java:173)
    at TOPLink.Private.Descriptors.ObjectBuilder.buildObject(ObjectBuilder.java:325)
    at TOPLink.Private.Descriptors.ObjectBuilder.buildObjectsInto(ObjectBuilder.java:373)
    at TOPLink.Public.QueryFramework.ReadAllQuery.execute(ReadAllQuery.java:366)
    at TOPLink.Public.QueryFramework.DatabaseQuery.execute(DatabaseQuery.java:406)
    I have started the application with Oracle JDBC logging on and found that the problem may originate in a possible lack of syncronization in the pooled connection implementation:
    DRVR FUNC OracleConnection.isClosed() returned false
    DRVR OPER OracleConnection.close()
    DRVR FUNC OracleConnection.prepareCall(sql)
    DRVR DBG1 SQL: "begin ? := dbms_lob.getLength (?); end;"
    DRVR FUNC DBError.throwSqlException(errNum=73, obj=null)
    DRVR FUNC DBError.findMessage(errNum=73, obj=null)
    DRVR FUNC DBError.throwSqlException(reason="Logical handle no longer valid",
    SQLState=null, vendorCode=17073)
    DRVR OPER OracleConnection.close()
    so the prepareCall() is issued against an already closed connection and the
    call fails.
    I assume we have been using a JDBC 2.0 compliant driver. We tried out
    drivers that Oracle supplies for 8.1.6, 8.1.7 versions. To be true I
    couldn't find any information about the JDBC specification they conform to. Does it
    mean that these drivers may not be 100%-compatible with JDBC 2.0 Spec?
    How can I find out if they are 2.0 compliant?
    Also I have downloaded Oracle 9.2.0.1 JDBC drivers. This seemed to work
    fine until we found another incompatibility which made us return back to
    8.1.7 driver:
    UnitOfWork(7818028)--Connection(4434104)--INSERT INTO STATUSHISTORY (CHANGEDATE, FK_SET_STATUS_ID) VALUES ({ts '2002-10-17 16:46:54.529'}, 2)
    INTERNAL EXCEPTION STACK:
    java.sql.SQLException: ORA-00904: invalid column name
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
    at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:289)
    at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:573)
    at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1891)
    at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:1093
    at oracle.jdbc.driver.OracleStatement.executeNonQuery(OracleStatement.jav
    a:2047)
    at oracle.jdbc.driver.OracleStatement.doExecuteOther(OracleStatement.java
    :1940)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatemen
    t.java:2709)
    at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePrepare
    dStatement.java:589)
    at TOPLink.Private.DatabaseAccess.DatabaseAccessor.executeDirectNoSelect(
    DatabaseAccessor.java:906)
    at TOPLink.Private.DatabaseAccess.DatabaseAccessor.executeNoSelect(Databa
    seAccessor.java:960)
    at TOPLink.Private.DatabaseAccess.DatabaseAccessor.executeCall(DatabaseAc
    cessor.java:819)
    at TOPLink.Public.PublicInterface.UnitOfWork.executeCall(UnitOfWork.java:

    Hello Yury,
    I believe the problem is that TopLink's ServerSession by default executes read queries concurrently on the same connection. It does this to reduce the number of required connections for the read connection pool. Normally this is a good concurrency optimization, however some JDBC drivers have issues when this is done. I had thought that with Oracle JDBC 8.1.7 this issue no longer occurred, but perhaps it is only after version 9. I believe that the errors were only with the thin JDBC driver, not the OCI, so using the OCI driver should also resolve the problem. Using RAW instead of BLOB would also work.
    You can configure TopLink to resolve this problem through using exclusive read connection pooling.
    Example:
    serverSession.useExclusiveReadConnectionPool(int minNumerOfConnections, int maxNumerOfConnections);
    This will ensure that TopLink does not to try to concurrently execute read queries on the same connection.
    I'm not exactly sure what your second problem with the 9.x JDBC drivers is. From the SQL and stack trace it would seem that the driver does not like the JDBC timestamp syntax. You can have TopLink print timestamp in Oracle's native SQL format to resolve this problem.
    Example:
    serverSessoin.getLogin().useNativeSQL();
    Make sure you configure your server session before you login, or if using the TopLink Session Manager perform the customizations through a SessionEventListener-preLogin event.

Maybe you are looking for

  • Goods Receipt PO due date cannot auto change

    Dear All, Would like to ask about a question that the Due Date in the Goods Recepit PO won't aunto changed to the date that plus the credit terms day. for example i open this po today (18.09.2008) for BP-A which has a credit terms day as 30 days. but

  • File upload in oracle9i using JSP page from browser

    Hi guys I need to store a pdf file from the JSP page into the Oracle9i DB. FrontEnd: Netbeans6.0 Backend: Oracle9i db server I need Jsp code and table creation code i want to create in the Database. Pls help me out it is urgent.

  • SM: EXEC SERVICES Job is Cancelling

    Hello everyone- I have seen a few posts about this job cancelling however I haven't been able to gather a solution from what I have read. After appling SP15 in our Solution Manager system, the SM: EXEC SERVICES job is failing. We sent a note off to S

  • Feature request: record calls and messages on iPhone

    I'm trying to generate interest for some features I think should be introduced. What do you think of this one... The iPhone should be able to record calls and messages to save as an audio file on your computer. Aside from providing the ability to kee

  • ITunes freezes when trying to sync

    Hi, i own 30g video iPod and ever time i try to sync iTunes freezes. Ive unistalled itunes many times trying to fix the problem and still no dice. My Pc shows ipod in windows but not itunes. when i disconnect the ipod my ipod info shows up for a sec