users@glassfish.java.net

Re: Exception while running IFrame portlet on Liferay over glassfish

From: <glassfish_at_javadesktop.org>
Date: Fri, 09 Jan 2009 00:49:13 PST

I can describe the flow,how the exception is coming so that you can suggest in more better way. This senario i found when i add system outs in zk.jar and zkcommon.jar.

I deploy a war on server, which has only one.zul file. When i hit the URL
http://localhost:8080/MyProj/zul/formpattern0.zul it is running fine.

But when i undeployed the war and again deploy the same war and then i tried to hit the same url. i get the exception mentioned in earlier post.


As my system outs are saying, there is problem with ResourceCache and CacheMap classes in zcommon.jar, after all i have deployed the new war but it is getting the some objects from ResourceCache and CacheMap, which might be the issue

see some of the logger below:-
case 1: when i deployed first time and hit the url

[#|2009-01-09T12:56:59.763+0530|INFO|sun-appserver9.1|javax.enterprise.system.stream.out|_ThreadID=16;_ThreadName=httpSSLWorkerThread-8080-0;|
[-----Class:- ResourceCache Method:- get 1--src:- jndi:/server/HarmeetOnLiferay/library/uilibrary.zs|#]

[#|2009-01-09T12:56:59.763+0530|INFO|sun-appserver9.1|javax.enterprise.system.stream.out|_ThreadID=16;_ThreadName=httpSSLWorkerThread-8080-0;|
[-----Class:- ResourceCache Method:- get 2--o:- null|#]

[#|2009-01-09T12:56:59.763+0530|INFO|sun-appserver9.1|javax.enterprise.system.stream.out|_ThreadID=16;_ThreadName=httpSSLWorkerThread-8080-0;|
[--------get method in zkcommon.jar in syn block - in else call put method--|#]

case 2: when i undeployed and then deploy the same war without restarting the server.


[#|2009-01-09T13:13:27.657+0530|INFO|sun-appserver9.1|javax.enterprise.system.stream.out|_ThreadID=17;_ThreadName=httpSSLWorkerThread-8080-1;|
[-----Class:- ResourceCache Method:- get 1--src:- jndi:/server/HarmeetOnLiferay/library/uilibrary.zs|#]

[#|2009-01-09T13:13:27.657+0530|INFO|sun-appserver9.1|javax.enterprise.system.stream.out|_ThreadID=17;_ThreadName=httpSSLWorkerThread-8080-1;|
[-----Class:- ResourceCache Method:- get 2--o:- org.zkoss.util.resource.ResourceCache$Info_at_19a09cf|#]

[#|2009-01-09T13:13:27.657+0530|INFO|sun-appserver9.1|javax.enterprise.system.stream.out|_ThreadID=17;_ThreadName=httpSSLWorkerThread-8080-1;|
[--------get method in zkcommon.jar in syn block :- in if--|#]

you can see that objects are still present in Resource Cache.

Is this an issue of glassfish server which is not clearing everything while undeployment?
The same war was running fine while using Tomcat
Kindly suggest
[Message sent by forum member 'harmeets' (harmeets)]

http://forums.java.net/jive/thread.jspa?messageID=324945