users@glassfish.java.net

Exception while running IFrame portlet on Liferay over glassfish

From: <glassfish_at_javadesktop.org>
Date: Thu, 08 Jan 2009 02:58:35 PST

Hi All
I have created a war which has a .zul file, it is deployed on Glassfish application server, i am opening this .zul file in a IFrame portlet on liferay, running over glassfish server.

.zul file run fine at first time, but when i hit the url again, it is throwing an exception mentioned below:-
[#|2009-01-08T14:39:48.025+0530|SEVERE|sun-appserver9.1|javax.enterprise.system.container.web|_ThreadID=19;_ThreadName=httpSSLWorkerThread-8080-2;_RequestID=727f9f7c-ec9a-4b6f-9468-76b816f82d7a;|StandardWrapperValve: PWC1406: Servlet.service() for servlet zkLoader threw exception
java.lang.NullPointerException
at java.lang.String.startsWith(String.java:1252)
at java.lang.String.startsWith(String.java:1281)
at org.apache.naming.resources.FileDirContext.file(FileDirContext.java:916)
at org.apache.naming.resources.FileDirContext.getAttributes(FileDirContext.java:491)
at org.apache.naming.resources.BaseDirContext.getAttributes(BaseDirContext.java:774)
at org.apache.naming.resources.ProxyDirContext.revalidate(ProxyDirContext.java:1519)
at org.apache.naming.resources.ProxyDirContext.cacheLookup(ProxyDirContext.java:1475)
at org.apache.naming.resources.ProxyDirContext.lookup(ProxyDirContext.java:306)
at org.apache.naming.resources.DirContextURLConnection.connect(DirContextURLConnection.java:180)
at org.apache.naming.resources.DirContextURLConnection.getLastModified(DirContextURLConnection.java:229)
at org.zkoss.util.resource.AbstractLoader.getLastModified(AbstractLoader.java:44)
at org.zkoss.util.resource.ResourceCache$Info.isValid(ResourceCache.java:216)
at org.zkoss.util.resource.ResourceCache.get(ResourceCache.java:126)
at org.zkoss.zk.ui.metainfo.ZScript.getContent(ZScript.java:217)
at org.zkoss.zk.ui.impl.UiEngineImpl.execNonComponent(UiEngineImpl.java:728)
at org.zkoss.zk.ui.impl.UiEngineImpl.execCreate0(UiEngineImpl.java:547)
at org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild(UiEngineImpl.java:557)
at org.zkoss.zk.ui.impl.UiEngineImpl.execCreate0(UiEngineImpl.java:525)
at org.zkoss.zk.ui.impl.UiEngineImpl.execCreate(UiEngineImpl.java:492)
at org.zkoss.zk.ui.impl.UiEngineImpl.execNewPage0(UiEngineImpl.java:374)
at org.zkoss.zk.ui.impl.UiEngineImpl.execNewPage(UiEngineImpl.java:296)
at org.zkoss.zk.ui.http.DHtmlLayoutServlet.process(DHtmlLayoutServlet.java:230)
at org.zkoss.zk.ui.http.DHtmlLayoutServlet.doGet(DHtmlLayoutServlet.java:167)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:718)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:411)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:290)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:271)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:202)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:206)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:150)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:272)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:637)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:568)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:813)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)


zkLoader Servlet running in Glassfish server is throwing exception.

Kindly suggest
[Message sent by forum member 'harmeets' (harmeets)]

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