JEditorPane extra blank when display "image inside table"

Hi,
I try to use the JEditorPane to view the html file. Everythings work fine except
shows the following
<table border="1">
<tr><td><img src="http://somewhere/a.jpg"></td></tr>
<tr><td><img src="http://somewhere/b.jpg"></td></tr>
</table>It can shows out the image inside the table cell.
But there is an "extra blank line" follow the images. This "extra blank line" is inside the table cell.
It likes following
[image]
[image]
But it supposes to be like this
[image]
[image]
I try some sample code in web. It also shows the same problem. Any one have ideas and solutions?
Thanks a lot.
kfchu

Worked fine for me. Here is my test program:
import java.awt.*;
import java.io.*;
import javax.swing.*;
public class EditorPaneLoad extends JFrame
     public EditorPaneLoad()
          throws Exception
          FileReader reader = new FileReader("blank.html");
          JEditorPane editor = new JEditorPane();
          editor.setContentType( "text/html" );
//          editor.setEditable( false );
          editor.read(reader, null);
          JScrollPane scrollPane = new JScrollPane( editor );
          scrollPane.setPreferredSize( new Dimension(300, 200) );
          getContentPane().add( scrollPane );
     public static void main(String[] args)
          throws Exception
          EditorPaneLoad frame = new EditorPaneLoad();
          frame.setDefaultCloseOperation( EXIT_ON_CLOSE );
          frame.pack();
          frame.setLocationRelativeTo( null );
          frame.setVisible(true);
}

Similar Messages

  • Display image from table!

    Hi,
    I have in my aplication a table user, where we can save is image:
    t_user{id_user, name , adress..., foto(blob),foto_size(number),foto_name,foto_mime_type};
    An user can upload his imageand save it in his table!
    I wanted to display his image, but i onle found infomation how to show images saved in htmldb_application_files:
    how to display image from tables?
    Thank's in advance

    Look at the sample application. It shows you how to do this

  • IPhone 4 screen jumps around when displaying images.

    Hi guys,
    My iPhone 4 has randomly started behaving unusually when trying to display images. The problem is at it's worse when using the camera or trying to display photographs. The lighter the image, the worse the problem.
    The display seems to shrink and stretch rapidly from the bottom of the display. I also begin to see what should be the top of the screen appearing at the bottom.
    Any ideas what could cause it? The phone recently had a new screen fitted.
    Thanks in advance!
    Sean

    Here is a still of the screen... http://www.flickr.com/photos/43074185@N05/12239963166/

  • How I can display images as table data?

    Dear project Marvel,
    I would like to display images as one of table data, but I do not know how to easily store image data into tables using htmldb and whether I can display the stored images. Does anyone knows how I can store/display images using htmldb? If I cannot do this easily then displaying image (which is stored somewhere else but) just looks like one of columns also fine to me.
    Thanks in advance,
    Rui

    you can show those images inline in your report region if you call our "p" procedure in an image tag. so the example above has you creating a table that you then join to the wwv_flow_files view with a query like...
    select htf.anchor('p?n='||f.id, f.filename) name,
    f.doc_size, f.mime_type, m.upload
    from my_docs m, wwv_flow_files f
    where m.filename = f.name
    ...clicking on the links in the first column would return a page that just showed the associated image. if changed that anchor tag to an image one like so...
    select '&lt;img src="p?n=' || f.id ||'&gt;' the_image,
    f.doc_size, f.mime_type, m.upload
    from my_docs m, wwv_flow_files f
    where m.filename = f.name
    ...your images would then appear inline as opposed to on a separate page.
    [Edited by: rmattama on Sep 25, 2003 1:22 PM]
    i'm not sure how, but i'd earlier posted an incomplete answer to rui's question. i've fixed some of the above and added this below...
    just fixed the html above so it renders correctly in this forum. sorry i didn't see that earlier. also, i'm not sure where the rest of my post went, but rui had also wanted to know what the wwv_flow_files was. that's a view to the table we use to store uploaded BLOBs like images, css's, and stylesheets. since you can only identify one document table in your DAD configuration, we give you this view to allow you access to that doc table that HTML DB owns.
    fyi,
    raj

  • Possible to bypass monitor profile when displaying image?

    After importing a large photo library into Aperture I noticed that when viewing images, they would  change color and in a little under a second the colors looked significantly less "colorful and rich" than before. Sounds "subjective" but it really is not.  There is definitely a transformation going on and the colors consistently become duller on every image viewed.  It is especially noticeable in a album of images taken in the fall using a circular polarizer where the colors looked really great to begin with and then extremely dull after the transformation.  I deleted all of the preview images and set aperture to not regenerate them.  Still, same issue occurred.  The issue occurs with both RAW and jpg images.
    In Canon Image Browser on the Mac colors look great.  It's easy to do an A to B comparison of the same file and see that it looks better in every case.
    But what I've discovered is that I can get the same "dulling" result to occur using Canon's Image Browser 6.x software just by setting one option.
    There is an option checkbox in Preferences that is disabled by default to "Adjust Image Colors Using A Monitor Profile."  Prior to setting that option, the colors looked great, just like they looked on the camera LCD, and they same as they look on my PC also using Canon Image Browser software and Irfan view.  The rich colors seen when not using monitor profile also match what I see in Safari, Chrome, and Internet Explorer browsers.
    In Canon Image Browser when I set the checkbox to "Adjust Image Colors Using A Monitor Profile" the colors become very muted.  They look identical to what I see in Aperture.  Also, I can get the same effect to occur on the PC version of Canon Image Browser.  Microsoft's "Windows Photo Viewer" seems to be monitor profile aware as it shows the same dull colors.  "Windows Photo Viewer" offers no option that I can find to improve the look of the color.  Maybe this is what you want if you're trying to print your images and have them match exactly what is seen on screen.
    I have found that with Photoshop CS5 I can export a jpg to tiff which strips out the color space information and then voila the image "pops" when I bring it into aperture and looks the way it does in Canon Image Browser without using monitor profile.  In fact you can really then compare within Aperture how big the difference is between the two, and the only thing I did was resave the image to a new file format without doing anything else in photoshop.  It's not feasible to resave evertthing as tiff though.
    So my main question is, is there a way within Aperture to bypass the monitor profile so I can see the images with the same colors as they are rendered in the majority of the other tools I use.

    I've done some additional testing on a jpeg image.
    Test 1:
    Canon Image Browser:  "Preferences/Adjust Image Colors Using a Monitor Profile" is unhecked
    Photoshop CS5: "View/Proof Setup" is set to "Monitor RGB"
    Aperture: "Onscreen Proofing" enabled and set to "Generic RGB"  Additionally I've tried every other color profile available
    Result: The colors look identically rich on Photoshop and Canon Image Browser.  Aperture is the only tool I can't get to align with the rich colors.
    Test 2
    Canon Image Browser:  "Preferences/Adjust Image Colors Using a Monitor Profile" is checked.  Restart the software to apply change.
    Photoshop CS5: "View/Proof Setup" is set to "Internet standard sRGB"
    Aperture: "Onscreen Proofing" enabled and set to "sRGB"
    Result:  The colors match on all 3 tools.  The color are very noticeably less rich than in Test 1.
    I went ahead and previewed the image in the browsers on the Mac.  Chrome and Firefox showed the color the same as Photoshop and Canon Image Browser did in Test 1  which looks better in my opinion.
    For Safari color looks the same as Test 2.
    Also Apple Preview looks the same as Test 2 no matter which soft proofing setting is applied.
    I believe Adobe and Canon have the correct behavior and show either richer or duller colors depending on which "proofing" mode they are in.  Only aperture so far cannot be made to do the richer colors.

  • "No text target or text model" when accessing notes inside table cells.

    I'm using the InDesign Automation Objects through Delphi to scan all the notes inside a document and that works fine as long as the notes aren't inside tables.
    For those notes inside tables as soon as I try to get the instance for a note I get the error "No text target or text model". Tried several ways of scanning the document to get to the notes but it doesn't make a difference.
    Here's my code:
        for I := 1 to FDoc.Stories.Count do
          for J := 1 to FDoc.Stories.Item[I].Tables.Count do
            for K := 1 to FDoc.Stories.Item[I].Tables.Item[J].Notes.Count do
              Note := FDoc.Stories.Item[I].Tables.Item[J].Notes.Item[K];
    The last line throws the error.
    This seems like an InDesign bug, or is there maybe something wrong with the document or a different way to get the note content?
    Thanks.

    intolight wrote:
    > i'm bewildered by this behavior. I was building a site
    last night and
    > everytime i put text in a table cell it appeared bolder.
    No other attributes
    > were changed by me. Didn't matter if i typed it new or
    pasted text from outside
    > the table. Whne put in a table it goes heavier or
    bolder. . I don't remember
    > this ever happening before.
    >
    > As a matter of fact as a work around i was able to take
    a table from a
    > previous web page that has text in a table cell that
    doesn't go bold and paste
    > that into the new document and type over that text. But
    i don't want to have to
    > do that all the time.
    >
    > Am i going crazy? Ok you don't have to answer that. But
    please help me fiqure
    > out what's going on here. thanks!!!
    >
    >
    > page with text going bold in table cells
    >
    http://intolight.biz/text/
    >
    > page where text doesn't go bold in table cells
    >
    http://www.intolight.biz/ai/frame_index.htm
    >
    It's a table heading (th) and most browsers (all?) turns such
    tag bold.

  • No data found when display image in report

    Hi,
    I have a table with a blob field in it which I use to store some image (gif),
    I tried to display the image in report but follow the guideline in http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21674/advnc_blob.htm#BCGBCHBD
    but when I run the report, error
    "report error:
    ORA-01403: no data found"
    prompt, I do not have MIME,FILENAME column in the table, so I define only
    IMAGE,Table Name,Column containing BLOB,Primary Key Column 1 and Primary Key Column 2 in the report column.
    Anyone has also this problem?
    Thanks
    Pek

    Hi,
    I found that the problem is there when I select the option
    "Use Generic Column Names (parse query at runtime only)" in the report.
    Is this a bug?
    Rgds
    Pek

  • How can I display images in tables?

    My images that I have put into tables in my iBook are visible in iBooks Author. However, when I preview it on my iPad, I cannot see the images in the tables. Any ideas anyone?

    Are you sure the images are embedded in the table and not just sitting on top? You can test by nudging the table slightly to see if the image/s move with the table. Also in the Inspector, an image in a selected table cell will show in Inspector as a background to that cell.
    I haven't tested whether the image in the background of the table cell will actually display in the previewed iBook but am interested in the result that you get. I found that the only way I could get an image into a table cell was by copying it to the clipboard and then selecting the cell and pasting. I also found that none of the sizing options in Inspector worked and that the image shrank to fit the cell and was centred in it by default.

  • When displaying images in web browser, next images appears on page where I left last doc

    Hello, I am in need of some help here.
    I have an application that displays PDF images using Adobe Reader X v 10.1.4 through a web browser. What is happening is I view a document and scroll down to say page 2.
    When I leave that document and go the next one, that document opens on page 2.
    Is there anything I can do in the setting of Adobe or the way that I am making my call to show the image through the web browser to display the next image at the top of the page, rather than displaying it where I left off on the last document?
    I have tried unchecking the option for Restore last view settings when reopening a document and also open cross-document links in the same window. Both of these had no effect on the issue I am encountering.
    Any help would be greatly appreciated.
    Thanks!
    Scott

    I am not sure how to fix the problem using the FGL framework, but here is a way to get the right result
    In the CSS file under the @media only screen and (min-width: 769px) section, modify the following style rules
    #menu {
        clear: both;
        float: left;
        margin-left: 0;
        width: 20%;
        display: block;
        vertical-align:top;
    #content {
        clear: none;
        float: right;
        margin-right: 0%;
        width: 80%;
        display: block;
    Having said that, you will do well to scrap FGL and have a look at Bootstrap

  • Adobe Reader 10.0.1 hides menu bar when display image is enlarged

    I am running an HP Pavilion Elite HPE 400y connected via HDMI through a Sony Receiver into a SamSung XL-2370 LED Monitor.  On the HP I'm running Windows 7 Home Premium 64-bit.  When I go to Control Panel / All Control Panel Items / Display and set the screen display size to Medium (125%), Adobe Reader 10.0.1 moves the top of the document being displayed upward to hide most of the menu bar.  Also, the tools bar is usually unstable.  I can't use any of the menu because mouse clicks in the narrow portion of the menu bar that is exposed are ignored.  To shut down Adobe Reader I must start the Windows Task Manager with CTRL-ALT-DELETE and then knock it down because the X on the upper right of the menu bar is hidden.  When I set the screen display size to Smaller (100%), which is the usual setting, everything works fine.  I like using the larger image size (older eyes), but I can live with the normal size.  Unfortunately, to change the Windows image size you must log off your session, so it's not something I like to do more often than necessary.
    This appears to be a problem with Adobe Reader 10.0.1 not adjusting properly with the larger image size.  God knows what it would do if I used the Larger (150%) setting.  Maybe there aren't any old people at Adobe who need a larger image.  Otherwise, I'm sure it would have been noticed by now.

    As far as I know, Adobe Reader (even v7.0.8) isn't Universal yet, which means it [the plugin] probably won't run natively on your Intel iMac unless you run Safari under Rosetta.
    Yang

  • Problem when displaying images when working  with PHP, mysql and dreamweaver in a brower

    Hey Guys
    I am new to dynamic development but I already did some
    research and tutorials about how to get a dynamic web site working
    with PHP and Mysql in Dreamweaver. I set up a test page to view
    some content on it directly from the mysql database and it worked
    just fine in dreamweaver only when I pressed the
    live data view.
    When I tried to view the same page using the browser preview
    with firefox and internet explorer, plain text from the database
    was correctly displayed on the brower but the images were absent.
    In the mysql database I used the varchar as my picture data
    type field so that I will refer in dreamweaver in the data binding
    panel in the img.src to the picture column of my database.
    I anyone can tell me what am I doing wrong so that my
    pictures are not displayed in the browser when i click the browser
    preview facility in dreamweaver I would be very very and very
    pleased ! :)

    The odds are that it is the way that you have referenced the
    images rather
    than an issue with the database. If you have the images root
    relative like
    this "/images" then they will work in preview, and on the
    webserver, but
    will not view when looking at the file via localhost.
    If possible make the links page relative and then they should
    work fine.
    Paul Whitham
    Certified Dreamweaver MX2004 Professional
    Adobe Community Expert - Dreamweaver
    Valleybiz Internet Design
    www.valleybiz.net
    "mariosal026" <[email protected]> wrote in
    message
    news:ea3nq2$9ol$[email protected]..
    > Hey Guys
    >
    > I am new to dynamic development but I already did some
    research and
    > tutorials
    > about how to get a dynamic web site working with PHP and
    Mysql in
    > Dreamweaver.
    > I set up a test page to view some content on it directly
    from the mysql
    > database and it worked just fine in dreamweaver only
    when I pressed the
    >
    live
    > data view.
    >
    > When I tried to view the same page using the browser
    preview with firefox
    > and
    > internet explorer, plain text from the database was
    correctly displayed on
    > the
    > brower but the images were absent.
    >
    > In the mysql database I used the varchar as my picture
    data type field so
    > that
    > I will refer in dreamweaver in the data binding panel in
    the img.src to
    > the
    > picture column of my database.
    >
    > I anyone can tell me what am I doing wrong so that my
    pictures are not
    > displayed in the browser when i click the browser
    preview facility in
    > dreamweaver I would be very very and very pleased ! :)
    >

  • Displaying image inside iframe

    In the servlet,I have an image which is retrieved from database using BufferedOutputStream.I would like to display the same in my JSP iframe.
    <iframe name = "myInlineFrame" src ="SiServlet" width="100%" height="300" >
    </iframe>
    view
    The above code opens the image as separate bmp file only not inside the iframe.

    byte[] bytearray = new byte[1048576];
    int length;
    BufferedOutputStream output = new BufferedOutputStream(response.getOutputStream(), 1048576);
    BufferedInputStream input = null;
    response.reset();
    response.setBufferSize(1048576);
    response.setContentType("application/plain");
    response.setContentLength(bytearray.length);
    response.setHeader("Content-Disposition","inline;filename=x.bmp");
    psmnt = con.prepareStatement("SELECT query to retrieve varbinary data from DB");
    rs = psmnt.executeQuery();
    while (rs.next()) {
    input = new BufferedInputStream(rs.getBinaryStream(1), 1048576);
    while ((length = input.read(bytearray)) > 0) {
    output.write(bytearray, 0, length);
    output.flush();

  • Detecting and displaying images inside SWF from same web page its embedded in

    Great forum and appreciate the great help I've been getting
    here. I am getting a bit more used to Flex now - the collection of
    controls is pretty amazing.
    I am trying to create an ImabeBrowse.SWF which when embedded
    on a web page, it would then automatically show thumbnails of all
    the images from that same page. Has anyone done anything like this
    in AS3?
    From documentation, it sounds like I would need to write some
    Javascript which would traverse the HTML's DOM to get all image
    URL's, and then pass these into the SWF?
    If one of you experts could share some code, that'd be
    greatly appreciated!!

    Asking for more.........
    Yes, I do agree there is no need to create an additional DAD when we want to call a procedure from infrastructure database (iasdb) because giving grant to public or portal_public schema is enough.
    But why is it that even after following the right way to create a DAD for HR schema in infrastucture database fails to call a procedure?
    The error which I get is:-
    Database Log In Failed
    TNS is unable to connect to destination. Invalid TNS address supplied or destination is not listening. This error can also occur because of underlying network transport problems.
    Verify that the TNS name in the connectstring entry of the DAD for this URL is valid and the database listener is running.
    The details for rajhr DAD
    Database Connectivity Information
    Database Username : HR
    Database Password : hr
    Databse Connection String : <blank>
    I have left database connection string blank as the infrastructure database is local.
    Is it that I cannot have two DAD for a local database eventhough they point to two different users?
    Med Vennlig Hilsen
    Rajesh

  • ADF-af:inputListOfValues  not working properly when used in inside table

    Hi All,
    i am using jdev version 11.1.1.5.0 .
    In my usecase i have create one eo based vo where in empname attribute i have add lov and drag this vo as adf table on jsff page.
    and i have create row on table and select empname from lov. lov working properly but when i have select empname from lov for same row it give error message.
    code is following-
        <af:column sortProperty="Empname" sortable="false"
                           headerText="Employee Name"
                           id="c1" width="200">
                   <af:inputListOfValues id="empnameId"
                                          popupTitle="Search and Select: #{bindings.FaPmntTaEmpView2.hints.Empname.label}"
                                          value="#{row.bindings.Empname.inputValue}"
                                          model="#{row.bindings.Empname.listOfValuesModel}"
                                          columns="#{bindings.FaPmntTaEmpView2.hints.Empname.displayWidth}"
                                          shortDesc="#{bindings.FaPmntTaEmpView2.hints.Empname.tooltip}"
                                          readOnly="#{vs.index==0?'true':'false'}" disabled="#{sessionScope.loccom}" autoSubmit="true">
                      <!--f:validator binding="#{row.bindings.Empname.validator}" /-->
                    <!--af:autoSuggestBehavior suggestedItems="#{pageFlowScope.TaExpEntryBean.getEmpsuggestions}"/-->
                  </af:inputListOfValues>
                </af:column> log detail is following-
    javax.el.PropertyNotFoundException: Target Unreachable, identifier 'row' resolved to null
         at com.sun.el.parser.AstValue.getTarget(Unknown Source)
         at com.sun.el.parser.AstValue.isReadOnly(Unknown Source)
         at com.sun.el.ValueExpressionImpl.isReadOnly(Unknown Source)
         at oracle.adfinternal.view.faces.renderkit.rich.EditableValueRenderer._getUncachedReadOnly(EditableValueRenderer.java:486)
         at oracle.adfinternal.view.faces.renderkit.rich.EditableValueRenderer.getReadOnly(EditableValueRenderer.java:400)
         at oracle.adfinternal.view.faces.renderkit.rich.EditableValueRenderer.wasSubmitted(EditableValueRenderer.java:343)
         at oracle.adfinternal.view.faces.renderkit.rich.EditableValueRenderer.decodeInternal(EditableValueRenderer.java:116)
         at oracle.adfinternal.view.faces.renderkit.rich.SimpleInputListOfValuesRendererBase.decodeInternal(SimpleInputListOfValuesRendererBase.java:97)
         at oracle.adfinternal.view.faces.renderkit.rich.LabeledInputRenderer.decodeInternal(LabeledInputRenderer.java:56)
         at oracle.adf.view.rich.render.RichRenderer.decode(RichRenderer.java:293)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.__rendererDecode(UIXComponentBase.java:1118)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.decode(UIXComponentBase.java:717)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:800)
         at org.apache.myfaces.trinidad.component.UIXEditableValue.processDecodes(UIXEditableValue.java:236)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl$ApplyRequestValuesCallback.invokeContextCallback(LifecycleImpl.java:1278)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1410)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1330)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1424)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1330)
         at org.apache.myfaces.trinidad.component.UIXCollection.invokeOnComponent(UIXCollection.java:1082)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1330)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1424)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1330)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1424)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1330)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1424)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1330)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1424)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1330)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnNamingContainerComponent(UIXComponentBase.java:1380)
         at oracle.adf.view.rich.component.fragment.UIXRegion.invokeOnComponent(UIXRegion.java:555)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1330)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1424)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1330)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1424)
         at oracle.adf.view.rich.component.rich.RichDocument.invokeOnComponent(RichDocument.java:168)
         at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:720)
         at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:678)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:334)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:186)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:205)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
         at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    <RegistrationConfigurator> <handleError> ADF_FACES-60096:Server Exception during PPR, #3
    javax.el.PropertyNotFoundException: Target Unreachable, identifier 'row' resolved to null
         at com.sun.el.parser.AstValue.getTarget(Unknown Source)
         at com.sun.el.parser.AstValue.isReadOnly(Unknown Source)
         at com.sun.el.ValueExpressionImpl.isReadOnly(Unknown Source)
         at oracle.adfinternal.view.faces.renderkit.rich.EditableValueRenderer._getUncachedReadOnly(EditableValueRenderer.java:486)
         at oracle.adfinternal.view.faces.renderkit.rich.EditableValueRenderer.getReadOnly(EditableValueRenderer.java:400)
         at oracle.adfinternal.view.faces.renderkit.rich.EditableValueRenderer.wasSubmitted(EditableValueRenderer.java:343)
         at oracle.adfinternal.view.faces.renderkit.rich.EditableValueRenderer.decodeInternal(EditableValueRenderer.java:116)
         at oracle.adfinternal.view.faces.renderkit.rich.SimpleInputListOfValuesRendererBase.decodeInternal(SimpleInputListOfValuesRendererBase.java:97)
         at oracle.adfinternal.view.faces.renderkit.rich.LabeledInputRenderer.decodeInternal(LabeledInputRenderer.java:56)
         at oracle.adf.view.rich.render.RichRenderer.decode(RichRenderer.java:293)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.__rendererDecode(UIXComponentBase.java:1118)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.decode(UIXComponentBase.java:717)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:800)
         at org.apache.myfaces.trinidad.component.UIXEditableValue.processDecodes(UIXEditableValue.java:236)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl$ApplyRequestValuesCallback.invokeContextCallback(LifecycleImpl.java:1278)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1410)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1330)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1424)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1330)
         at org.apache.myfaces.trinidad.component.UIXCollection.invokeOnComponent(UIXCollection.java:1082)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1330)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1424)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1330)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1424)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1330)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1424)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1330)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1424)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1330)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnNamingContainerComponent(UIXComponentBase.java:1380)
         at oracle.adf.view.rich.component.fragment.UIXRegion.invokeOnComponent(UIXRegion.java:555)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1330)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1424)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1330)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1424)
         at oracle.adf.view.rich.component.rich.RichDocument.invokeOnComponent(RichDocument.java:168)
         at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:720)
         at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:678)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:334)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:186)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:205)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
         at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)and when i have refresh page after that lov is working.
    i have no idea why this error occur. please provide me better solution.

    Hi Frank,
    thanks for reply.
    So how can i use Lov in ADF table. Because lov in adf table used
      model="#{row.bindings.Empname.listOfValuesModel}"

  • Why string has an extra blank when I use EJB business method to get it

    I have the following code:
    Person bean = home.create("Jon", 10, "Huge", 1.0);
    java.util.Enumeration result = home.findAll();
    if (result.hasMoreElements()) {
    Person bean1 =(Person) javax.rmi.PortableRemoteObject.narrow(result.nextElement(), Person.class);
    getTraceWriter().println(" ** name = " + bean1.getName() + ", rank = " + bean1.getRank() +
    ", power = " + bean1.getPower() + ", rating = " + bean1.getRating());
    bean1.remove();
    I found the bean1.getName is "Jon " instead of "Jon". why???? Does sb. have a clue?
    Thanks,
    JST

    Here is the code. Thanks very much!
    import javax.ejb.*;
    import java.sql.*;
    import javax.sql.DataSource;
    import java.util.Vector;
    import java.util.Enumeration;
    import javax.naming.Context;
    public class PersonBean implements EntityBean {
    public String name;
    public int rank;
    public String power;
    public double rating;
    public EntityContext context;
    private DataSource ds = null;
    private String user = "db2admin";
    private String password = "db2admin";
    * ejbCreate method
    * @param name String The person name
    * @exception javax.ejb.CreateException
    public PersonKey ejbCreate(String name)
    throws CreateException {
    return ejbCreate(name, 0, "default", 0.0);
    * ejbCreate method
    * @param name String The person name
    * @param rank int The person rank
    * @param power String The person power
    * @param rating double Rating of the person
    * @exception javax.ejb.CreateException
    public PersonKey ejbCreate(String name, int rank, String power, double rating)
    throws CreateException {
    if (name == null || name.length() == 0) {
    throw new CreateException("Invalid parameter: name cannot be null");
    else if (power == null || power.length() == 0) {
    throw new CreateException("Invalid parameter: power cannot be null");
    this.name = name;
    this.rank = rank;
    this.power = power;
    this.rating = rating;
    Connection con = null;
    PreparedStatement ps = null;
    try {
    System.err.println("before getconnection");
    con = this.getConnection();
    System.err.println("after getconnection");
    ps = con.prepareStatement("insert into TESTMEN values (?,?,?,?)");
    ps.setString(1, name);
    ps.setInt(2, rank);
    ps.setString(3, power);
    ps.setDouble(4, rating);
    if (ps.executeUpdate() != 1) {
    throw new CreateException("Failed to add (" + name + "," + rank + "," +
    power + "," + rating + ") to database.");
    PersonKey pk = new PersonKey(name);
    return pk;
    catch (javax.naming.NamingException ne) {
    throw new EJBException (ne);
    catch (SQLException sqle) {
    throw new EJBException(sqle);
    finally {
    try {
    if (ps != null) ps.close();
    if (con != null) con.close();
    catch (SQLException sqle) {
    sqle.printStackTrace();
    public void ejbPostCreate(String name, int rank, String power, double rating) {
    // empty for now
    public void ejbPostCreate(String name) {
    // empty for now
    * ejbFindPrimaryKey
    * Find bean by primary key
    * @return PersonKey Primary key object for the bean
    * @exception FinderException
    * @exception ObjectNotFoundException
    public PersonKey ejbFindByPrimaryKey(PersonKey key)
    throws FinderException, ObjectNotFoundException {
    Connection con = null;
    PreparedStatement ps = null;
    ResultSet rs = null;
    boolean found = false;
    boolean multipleFound = false;
    try {
    con = this.getConnection();
    ps = con.prepareStatement("select name from TESTMEN where name = ?");
    ps.setString(1, key.name);
    rs = ps.executeQuery();
    found = rs.next();
    if (found) {
    multipleFound = rs.next();
    if (!multipleFound) {
    return key;
    else {
    throw new FinderException("Multiple objects found with name = " + name);
    else {
    throw new ObjectNotFoundException("Cannot find object with name = " + name);
    catch (javax.naming.NamingException ne) {
    throw new EJBException (ne);
    catch (SQLException sqle) {
    throw new EJBException(sqle);
    finally {
    try {
    if (rs != null) rs.close();
    if (ps != null) ps.close();
    if (con != null) con.close();
    catch (SQLException sqle) {
    sqle.printStackTrace();
    * setEntityContext method
    public void setEntityContext(EntityContext context) {
    this.context = context;
    * unsetEntityContext method
    public void unsetEntityContext() {
    context = null;
    * ejbFindAll method
    * Find all the beans.
    * @return java.util.Enumeration Enumeration of all beans
    public Enumeration ejbFindAll(){
    Connection con = null;
    Statement stmt = null;
    ResultSet rs = null;
    try {
    con = this.getConnection();
    stmt = con.createStatement();
    rs = stmt.executeQuery("select * from TESTMEN");
    Vector keys = new Vector();
    while (rs.next()) {
    keys.addElement(new PersonKey(rs.getString("name")));
    return keys.elements();
    catch (javax.naming.NamingException ne) {
    throw new EJBException (ne);
    catch (SQLException sqle) {
    throw new EJBException(sqle);
    finally {
    try {
    if (rs != null) rs.close();
    if (stmt != null) stmt.close();
    if (con != null) con.close();
    catch (SQLException sqle) {
    sqle.printStackTrace();
    * ejbActivate() method
    public void ejbActivate() {}
    * ejbPassivate method
    public void ejbPassivate() {}
    * ejbLoad method
    public void ejbLoad() {
    PersonKey pk = (PersonKey) context.getPrimaryKey();
    Connection con = null;
    PreparedStatement ps = null;
    ResultSet rs = null;
    try {
    con = this.getConnection();
    ps = con.prepareStatement("select * from TESTMEN where name = ?");
    ps.setString(1, pk.name);
    rs = ps.executeQuery();
    if (rs.next()) {
    name = pk.name;
    rank = rs.getInt("rank");
    power = rs.getString("power");
    rating = rs.getDouble("rating");
    else {
    throw new EJBException("No record found in ejbLoad()");
    catch (javax.naming.NamingException ne) {
    throw new EJBException (ne);
    catch (SQLException sqle) {
    throw new EJBException(sqle);
    finally {
    try {
    if (rs != null) rs.close();
    if (ps != null) ps.close();
    if (con != null) con.close();
    catch (SQLException sqle) {
    sqle.printStackTrace();
    * ejbStore method
    public void ejbStore() {
    Connection con = null;
    PreparedStatement ps = null;
    try {
    con = this.getConnection();
    ps = con.prepareStatement("update TESTMEN set " +
    "name = ?, rank = ?, power =?, rating = ? where name = ?");
    ps.setString(1, name);
    ps.setInt(2, rank);
    ps.setString(3, power);
    ps.setDouble(4, rating);
    ps.setString(5, name);
    if (ps.executeUpdate() != 1) {
    throw new EJBException("Failed in updating database in ejbSotre().");
    catch (javax.naming.NamingException ne) {
    throw new EJBException (ne);
    catch (SQLException sqle) {
    throw new EJBException(sqle);
    finally {
    try {
    if (ps != null) ps.close();
    if (con != null) con.close();
    catch (SQLException sqle) {
    sqle.printStackTrace();
    * ejbRemove method
    public void ejbRemove() {
    Connection con = null;
    PreparedStatement ps = null;
    try {
    con = this.getConnection();
    ps = con.prepareStatement("delete from TESTMEN where name = ?");
    ps.setString(1, name);
    if (ps.executeUpdate() != 1) {
    throw new EJBException("cannot remove by name = " + name);
    catch (javax.naming.NamingException ne) {
    throw new EJBException (ne);
    catch (SQLException sqle) {
    throw new EJBException(sqle);
    finally {
    try {
    if (ps != null) ps.close();
    if (con != null) con.close();
    catch (SQLException sqle) {
    sqle.printStackTrace();

Maybe you are looking for

  • Can we update the man pages for "dynamic_pager"?

    The configuration file is listed as, /Library/Preferences/com.apple.virtualMemory.plist but from what I understand, it is located in /System/Library/LaunchDaemons/com.apple.dynamic_pager.plist.

  • Webcam and iChat

    I have an iBook G4 and it doesn't have an internal camera. I know this might sound like a dumb question, but would an ordinary webcam that hooks up to my laptop work w/ iChat and photobooth the same way an internal camera would? Thanks.

  • This email address is already registered to anothe...

    I have creaed account on email.nokia.com, using mail id [email protected] So my Nokia messanging login is that and my mail id is also that.  After that during Account managment, by mistake I deleted that mail id, now I am not able to add this mail ac

  • CS 4 questions (3 questions)

    Hi, 1. I cannot find the area to enable the file close button.  Right now I have to go into the file menu and hit close manually, very time consuming.  My CS4 area is set as "essentails" the default setting 2.  I have the canon 5D Mark II.  The files

  • CS3 Setup System Check states that Safari is open when it is closed

    Running Setup under OSX, and during System Check, alert states that "Installation cannot continue until the following applications are closed: Safari". I have verified that Safari is closed, and no other users logged on, but cannot satisfy this promp