voyent
Partial rendering of GraphicImage  XML
Forum Index -> Components
Author Message
bcantu

Joined: 02/Nov/2009 00:00:00
Messages: 45
Offline


I having extreme problems trying to view an image that is displayed in a dialog ,which sometimes only partially renders. I have used the Graphic image on the "Main Screen" without issue. However when the image is used in a resizable/or fixed size dialog then the image sometimes does not render fully. I have tried to add in varialbes to the form ID and style to refresh the dom and hopefully give the rendering process a bit of a "Kick" but that hasn't helped either.

Code:
<ace:dialog id="ScreenShot"
                     visible="#{discoveryBean.showScreenShot}"
                     header="#{msg.DiscoveryWebSiteDetailsScreenShotDialogHeader}"
                     closable="true"
                     modal="false"
                     draggable="true"
                     resizable="true"
                     minHeight="325"
                     minWidth="475"
                     height="460"
                     width="730">
 
             <ace:ajax event="close" listener="#{discoveryBean.hideScreenShotDialog}" render="@all" />
             <h:form id="#{discoveryBean.selectedPageAlias}">
                 <ace:graphicImage id="ScrImg#{discoveryBean.selectedPageAlias}" mimeType="image/png" 
                                   style="max-width:99.5%;height:100%;#{discoveryBean.rdm}:#{discoveryBean.rdm};border: 1px solid #9a9898;"
                                   styleClass="graphicImage"
                                   value="#{empty discoveryBean.screenShot ? '/HaystackWorks.png' : discoveryBean.screenShot}" />
             </h:form>
         </ace:dialog>
 


also the menu that is used to open the dialog is as follows to also try and "render the dialog again "

Code:
 <ace:menuItem id="ViewPage" 
                                   style="font-size:16px;"
                                   value="#{msg.MenuViewPage}" 
                                   actionListener="#{discoveryBean.showScreenShotDialog}"
                                   action="home" >
                         <ace:ajax event="activate" execute="@this" render="@all #{discoveryBean.selectedPageAlias}:ScrImg#{discoveryBean.selectedPageAlias}"/>
                     </ace:menuItem>
 



Additionally, I have the following error messages from WildFly:

Code:
 15:45:09,462 FINE  [class org.icefaces.ace.component.graphicimage.GraphicImageRenderer] (default task-48) setting scope to session for addition of resrouce
 15:45:09,462 FINE  [class org.icefaces.ace.component.graphicimage.GraphicImage] (default task-48) Returning path=/Salsa/javax.faces.resource/imagediscoveryMenuForm:valGraphic_SE_wZHWPHMjho.xhtml FOR SCOPE+session
 15:45:09,463 FINE  [class org.icefaces.ace.component.graphicimage.GraphicImageRenderer] (default task-48) setting scope to session for addition of resrouce
 15:45:09,463 FINE  [class org.icefaces.ace.component.graphicimage.GraphicImage] (default task-48) Returning path=/Salsa/javax.faces.resource/imagediscoveryMenuForm:valGraphic_SE_uLkOOWLHjf.xhtml FOR SCOPE+session
 15:45:09,465 FINE  [class org.icefaces.ace.component.graphicimage.GraphicImageRenderer] (default task-48) setting scope to session for addition of resrouce
 15:45:09,465 FINE  [class org.icefaces.ace.component.graphicimage.GraphicImage] (default task-48) Returning path=/Salsa/javax.faces.resource/imagediscoveryMenuForm:valGraphic_SE_XfsxNhFjhx.xhtml FOR SCOPE+session
 15:45:09,466 FINE  [class org.icefaces.ace.component.graphicimage.GraphicImageRenderer] (default task-48) setting scope to session for addition of resrouce
 15:45:09,466 FINE  [class org.icefaces.ace.component.graphicimage.GraphicImage] (default task-48) Returning path=/Salsa/javax.faces.resource/imagediscoveryMenuForm:valGraphic_SE_nFUeYgTDLF.xhtml FOR SCOPE+session
 15:45:09,467 FINE  [class org.icefaces.ace.component.graphicimage.GraphicImageRenderer] (default task-48) setting scope to session for addition of resrouce
 15:45:09,467 FINE  [class org.icefaces.ace.component.graphicimage.GraphicImage] (default task-48) Returning path=/Salsa/javax.faces.resource/imagediscoveryMenuForm:valGraphic_SE_JTeDmSoyDW.xhtml FOR SCOPE+session
 15:45:09,468 FINE  [class org.icefaces.ace.component.graphicimage.GraphicImageRenderer] (default task-48) setting scope to session for addition of resrouce
 15:45:09,468 FINE  [class org.icefaces.ace.component.graphicimage.GraphicImage] (default task-48) Returning path=/Salsa/javax.faces.resource/imagediscoveryMenuForm:valGraphic_SE_iAwehfUdFg.xhtml FOR SCOPE+session
 15:45:09,469 FINE  [class org.icefaces.ace.component.graphicimage.GraphicImageRenderer] (default task-48) setting scope to session for addition of resrouce
 15:45:09,469 FINE  [class org.icefaces.ace.component.graphicimage.GraphicImage] (default task-48) Returning path=/Salsa/javax.faces.resource/imagediscoveryMenuForm:valGraphic_SE_ahUWtTJZbc.xhtml FOR SCOPE+session
 15:45:09,470 FINE  [class org.icefaces.ace.component.graphicimage.GraphicImageRenderer] (default task-48) setting scope to session for addition of resrouce
 15:45:09,470 FINE  [class org.icefaces.ace.component.graphicimage.GraphicImage] (default task-48) Returning path=/Salsa/javax.faces.resource/imagediscoveryMenuForm:valGraphic_SE_ktpiLjCatX.xhtml FOR SCOPE+session
 15:45:09,471 FINE  [class org.icefaces.ace.component.graphicimage.GraphicImageRenderer] (default task-48) setting scope to session for addition of resrouce
 15:45:09,471 FINE  [class org.icefaces.ace.component.graphicimage.GraphicImage] (default task-48) Returning path=/Salsa/javax.faces.resource/imagediscoveryMenuForm:valGraphic_SE_oudfyaWbiV.xhtml FOR SCOPE+session
 15:45:09,472 FINE  [class org.icefaces.ace.component.graphicimage.GraphicImageRenderer] (default task-48) setting scope to session for addition of resrouce
 15:45:09,472 FINE  [class org.icefaces.ace.component.graphicimage.GraphicImage] (default task-48) Returning path=/Salsa/javax.faces.resource/imagediscoveryMenuForm:valGraphic_SE_MDYYawSQgd.xhtml FOR SCOPE+session
 15:45:09,474 FINE  [class org.icefaces.ace.component.graphicimage.GraphicImageRenderer] (default task-48) setting scope to session for addition of resrouce
 15:45:09,474 FINE  [class org.icefaces.ace.component.graphicimage.GraphicImage] (default task-48) just getting the string representation
 15:45:09,474 FINE  [class org.icefaces.ace.component.graphicimage.GraphicImageRenderer] (default task-48) setting scope to session for addition of resrouce
 15:45:09,474 FINE  [class org.icefaces.ace.component.graphicimage.GraphicImage] (default task-48) just getting the string representation
 15:45:09,474 FINE  [class org.icefaces.ace.component.graphicimage.GraphicImageRenderer] (default task-48) setting scope to session for addition of resrouce
 15:45:09,475 FINE  [class org.icefaces.ace.component.graphicimage.GraphicImage] (default task-48) Returning path=/Salsa/javax.faces.resource/imagediscoveryMenuForm:Home:ScrImgHome.xhtml FOR SCOPE+session
 15:45:09,475 FINE  [class org.icefaces.ace.component.graphicimage.GraphicImageRenderer] (default task-48) setting scope to session for addition of resrouce
 15:45:09,475 FINE  [class org.icefaces.ace.component.graphicimage.GraphicImage] (default task-48) just getting the string representation
 15:45:09,475 FINE  [class org.icefaces.ace.component.graphicimage.GraphicImageRenderer] (default task-48) setting scope to session for addition of resrouce
 15:45:09,475 FINE  [class org.icefaces.ace.component.graphicimage.GraphicImage] (default task-48) just getting the string representation
 15:45:13,864 DEBUG [io.undertow.request.io] (default I/O-5) Error reading request: java.io.IOException: Connection reset by peer
 	at sun.nio.ch.FileDispatcherImpl.read0(Native Method) [rt.jar:1.8.0_91]
 	at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:39) [rt.jar:1.8.0_91]
 	at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:223) [rt.jar:1.8.0_91]
 	at sun.nio.ch.IOUtil.read(IOUtil.java:192) [rt.jar:1.8.0_91]
 	at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:380) [rt.jar:1.8.0_91]
 	at org.xnio.nio.NioSocketConduit.read(NioSocketConduit.java:282) [xnio-nio-3.3.0.Final.jar:3.3.0.Final]
 	at org.xnio.conduits.ConduitStreamSourceChannel.read(ConduitStreamSourceChannel.java:127) [xnio-api-3.3.0.Final.jar:3.3.0.Final]
 	at io.undertow.server.protocol.http.HttpReadListener.handleEventWithNoRunningRequest(HttpReadListener.java:130)
 	at io.undertow.server.protocol.http.HttpReadListener.handleEvent(HttpReadListener.java:108)
 	at io.undertow.server.protocol.http.HttpReadListener.handleEvent(HttpReadListener.java:49)
 	at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92) [xnio-api-3.3.0.Final.jar:3.3.0.Final]
 	at org.xnio.conduits.ReadReadyHandler$ChannelListenerHandler.readReady(ReadReadyHandler.java:66) [xnio-api-3.3.0.Final.jar:3.3.0.Final]
 	at org.xnio.nio.NioSocketConduit.handleReady(NioSocketConduit.java:88) [xnio-nio-3.3.0.Final.jar:3.3.0.Final]
 	at org.xnio.nio.WorkerThread.run(WorkerThread.java:539) [xnio-nio-3.3.0.Final.jar:3.3.0.Final]
 


So I'm thinking that the connection is being terminated from the client and the images are either too many in number or too big. The last image in the listed GraphicImage Messages above is a screenshot (1680x105 ) the other images are smaller... So I'm guessing the client is giving up and the connection is failing... Can I correct this some way?
Any help would be extremely appreciated

[Thumb - Screen Shot 2017-02-08 at 6.45.51 AM.png]
 Filename Screen Shot 2017-02-08 at 6.45.51 AM.png [Disk] Download
 Description
 Filesize 29 Kbytes
 Downloaded:  1169 time(s)

ken.fyten

Joined: 26/Oct/2004 00:00:00
Messages: 1338
Offline


Hi,

What browser(s) are you seeing this issue with? Have you tried different ones (Firefox, Chrome, IE, etc.)?

If you could attach a simple test app. to reproduce we could investigate further.

Regards,
Ken

Ken Fyten
VP Product Development
ICEsoft Technologies, Inc.
bcantu

Joined: 02/Nov/2009 00:00:00
Messages: 45
Offline


Sorry for the late response - I need a little time to make something available. Likely another 5 - 10 days.
bcantu

Joined: 02/Nov/2009 00:00:00
Messages: 45
Offline


The issue has been resolved. The problem was related to the encoding/Decoding of the blob used to store the image in the database. The encode / decode was not used and the blob only contained the raw image which was the problem.
 
Forum Index -> Components
Go to:   
Powered by JForum 2.1.7ice © JForum Team