-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Some time ago, i have a problem with the image conversor. The error:
14-nov-2012 9:55:22 org.zkoss.zk.au.http.AuDynaMediar service:139
GRAVE: Failed to load media, /view/z_cb50/l2sT0a1/3e21/1/c/pause16x16.png
>>org.zkoss.zk.ui.ComponentNotFoundException: Component not found: l2sT0a1
>> at org.zkoss.zk.ui.impl.DesktopImpl.getComponentByUuid(DesktopImpl.java:511)
>> at org.zkoss.zk.au.http.AuDynaMediar.service(AuDynaMediar.java:115)
>> at org.zkoss.zk.au.http.DHtmlUpdateServlet.doGet(DHtmlUpdateServlet.java:424)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
>> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
>> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>>...
I was looking for it in the forum and I founded this:
http://www.zkoss.org/forum/listComment/7612 It seems the same error but in other scenario.
I'm using ZK 6.0 with eclipse Helios.
Anyone can help me? Regards, Mark
This error is thrown when I try to use a conversor like this:
<listcell label="@load(item.situacion) @converter(vm.situacionConverter)" style="text-align:center" ></listcell>
where vm is the viewModel="@id('vm') . Any help please? regards, Marky
This is a bug(not really, more like a noisy log), when a component was removed and browser try to access it's dynamic image resource. see zk bug http://tracker.zkoss.org/browse/ZK-1599. I will suggest you to put images under web-content and use setSrc or setImage of an image-allowed component if you don't really need a dynamic(create-update) image. this way has better performance no matter on memory and resource access.
Hi,
this is happening to me, too.
I'm using a converter for a column of my listbox as Marky described.
The converter is doing this:
public Converter<?, ?, ?> getSexConverter(){ if(sexConverter!=null){ return sexConverter; } return sexConverter = new Converter() { public Object coerceToBean(Object val, Component component, BindContext ctx) { return null; } public Object coerceToUi(Object val, Component component, BindContext ctx) { String sex = (String) val; //Obtenemos el valor del bean que nos llega por parámetro if(!sex.equals("")){ //El valor está lleno if(sex.equals("M")){ try { //Le ponemos la imagen a la celda ((Listcell)component).setImageContent(ImageList.getMale()); ((Listcell)component).setTooltiptext(SeguiTareasLit.getHombre()); } catch (IOException e) { } }else if(situacion.equals("F")){ try { //Le ponemos la imagen a la celda ((Listcell)component).setImageContent(ImageList.getFemale()); ((Listcell)component).setTooltiptext(SeguiTareasLit.getMujer()); } catch (IOException e) { } } }else{ } return null; } }; }
And this is giving me this exception:
03-ene-2013 10:51:39 org.zkoss.zk.au.http.AuDynaMediar service:139 GRAVE: Failed to load media, /view/z_ii0/lG4Qr01/a51/1/c/male.png >>org.zkoss.zk.ui.ComponentNotFoundException: Component not found: lG4Qr01 >> at org.zkoss.zk.ui.impl.DesktopImpl.getComponentByUuid(DesktopImpl.java:511) >> at org.zkoss.zk.au.http.AuDynaMediar.service(AuDynaMediar.java:115) >> at org.zkoss.zk.au.http.DHtmlUpdateServlet.doGet(DHtmlUpdateServlet.java:424) >> at javax.servlet.http.HttpServlet.service(HttpServlet.java:621) >> at javax.servlet.http.HttpServlet.service(HttpServlet.java:722) >> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) >> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) >>...
Repeated for every listcell that has been converted...
Any idea why is this happening?Is it a bug?
Thank you
Asked: 2012-11-14 09:11:31 +0800
Seen: 161 times
Last updated: Jan 29 '13