1

ComponentNotFoundException error log when using image conversor [closed]

asked 2012-11-14 09:11:31 +0800

Marky gravatar image Marky flag of Spain
284 7
http://www.no/havent-doma...

updated 2013-01-22 08:54:21 +0800

dennis gravatar image dennis
3669 1 6
http://www.javaworld.com....

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

delete flag offensive retag edit

The question has been closed for the following reason "the question is answered, right answer was accepted" by dennis
close date 2013-01-30 09:26:42

2 Replies

Sort by » oldest newest

answered 2013-01-29 09:11:28 +0800

dennis gravatar image dennis
3669 1 6
http://www.javaworld.com....

updated 2013-01-29 09:16:04 +0800

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.

link publish delete flag offensive edit

answered 2013-01-03 10:01:07 +0800

Neus gravatar image Neus
1415 14

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

link publish delete flag offensive edit

Question tools

Follow
3 followers

RSS

Stats

Asked: 2012-11-14 09:11:31 +0800

Seen: 161 times

Last updated: Jan 29 '13

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More