Topic
  • No replies
cmm0
cmm0
1 Post

Pinned topic EForms Java API Error "ChainedException"

‏2010-09-13T20:15:10Z |
Hello, I have installed eforms 4.0.2.4.

I have a simple POC I am putting together and it is becoming anything but simple. Here is my code:


Configuration.initialize(application.getRealPath(
"/WEB-INF")); Session ses = ObjectFactory.getSession(
"test", null,
"user",
"password"); ses.verify(); Hashtable confHash = Context.initialize(); confHash.put(
"locale", java.util.Locale.getDefault()); confHash.put(
"timeZone", java.util.TimeZone.getDefault()); confHash.put(
"session", ses); confHash.put(
"RemoteServerUrl", 
"cemp:iiop://192.168.1.200:2809/FileNet/Engine"); confHash.put(
"RemoteServerUploadUrl",
"cemp:iiop://192.168.1.200:2809/FileNet/Engine"); confHash.put(
"RemoteServerDownloadUrl",
"cemp:iiop://192.168.1.200:2809/FileNet/Engine"); Template eformTemplate = 

new Template(
"p8:A6030FDA-2270-4328-9285-0BDE6B50FA1D.%7BFC714B1F-9B23-44E5-B27B-53F9EF62B7C2%7D");   Form eform = 

new Form(eformTemplate); eform.doAutoIncrements(); Cell cell = eform.getCell(
"Cell1"); cell.setValueFromString(
"Hello eform World!!!"); HtmlFormRenderer html = 

new HtmlFormRenderer(eform); html.setWindowTitle(
"Hello World Window Title"); html.setAutoResize(

true); html.render(request, response);


Yet, I get this exception:

9/13/10 16:00:21:070 EDT] 00000027 servlet       E com.ibm.ws.webcontainer.servlet.ServletWrapper service SRVE0068E: Uncaught exception created in one of the service methods of the servlet /secure/tilesContent/LandingPageFragment.jsp in application TAITester0EAR. Exception created : com.filenet.eforms.api.FormException: The operation failed because of an exception of type 
"ChainedException". at com.filenet.eforms.core.renderers.RendererImpl.render(RendererImpl.java:86) at com.filenet.eforms.core.renderers.FormRendererImpl.render(FormRendererImpl.java:37) at com.filenet.eforms.core.renderers.FormRendererImpl.render(FormRendererImpl.java:29) at com.filenet.eforms.api.FormRenderer.render(FormRenderer.java:60) at com.ibm._jsp._LandingPageFragment._jspService(_LandingPageFragment.java:194) at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:98) at javax.servlet.http.HttpServlet.service(HttpServlet.java:831) at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1655) at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:937) at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:500) at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:178) at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java:121) at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper.handleRequest(AbstractJSPExtensionServletWrapper.java:239) at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.include(WebAppRequestDispatcher.java:673) at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:1045) at org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:527) at org.apache.struts.tiles.TilesUtilImpl.doInclude(TilesUtilImpl.java:137) at org.apache.struts.tiles.TilesUtil.doInclude(TilesUtil.java:177) at org.apache.struts.taglib.tiles.InsertTag.doInclude(InsertTag.java:756) at org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTag.java:881) at org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:473) at com.ibm._jsp._SecureSiteTemplate._jspx_meth_tiles_insert_0(_SecureSiteTemplate.java:270) at com.ibm._jsp._SecureSiteTemplate._jspx_meth_f_subview_0(_SecureSiteTemplate.java:304) at com.ibm._jsp._SecureSiteTemplate._jspx_meth_f_view_0(_SecureSiteTemplate.java:347) at com.ibm._jsp._SecureSiteTemplate._jspService(_SecureSiteTemplate.java:106) at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:98) at javax.servlet.http.HttpServlet.service(HttpServlet.java:831) at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1655) at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:937) at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:500) at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:178) at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java:121) at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper.handleRequest(AbstractJSPExtensionServletWrapper.java:239) at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.include(WebAppRequestDispatcher.java:673) at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:1045) at org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:527) at org.apache.struts.tiles.TilesUtilImpl.doInclude(TilesUtilImpl.java:137) at org.apache.struts.tiles.TilesUtil.doInclude(TilesUtil.java:177) at org.apache.struts.taglib.tiles.InsertTag.doInclude(InsertTag.java:756) at org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTag.java:881) at org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:473) at com.ibm._jsp._LandingPage._jspx_meth_tiles_insert_0(_LandingPage.java:179) at com.ibm._jsp._LandingPage._jspService(_LandingPage.java:85) at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:98) at javax.servlet.http.HttpServlet.service(HttpServlet.java:831) at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1655) at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:937) at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:500) at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:178) at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java:121) at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper.handleRequest(AbstractJSPExtensionServletWrapper.java:239) at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:341) at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:415) at com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:491) at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:159) at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110) at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100) at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266) at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1655) at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:937) at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:500) at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:178) at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:91) at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:864) at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1583) at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:186) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:455) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:384) at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:83) at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165) at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217) at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161) at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138) at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204) at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775) at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905) at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1550) Caused by: java.lang.NullPointerException at com.filenet.wcm.apps.server.util.prefs.CustomFormsMessage.getMessage(CustomFormsMessage.java:44) at com.filenet.eforms.toolkit.server.providers.P8ClientIntegrationProvider.appendCustomScript(P8ClientIntegrationProvider.java:32) at com.filenet.eforms.core.integration.services.ClientIntegration.getCustomScripts(ClientIntegration.java:25) at com.filenet.eforms.core.renderers.HtmlFormRendererImpl.renderTemplate(HtmlFormRendererImpl.java:441) at com.filenet.eforms.core.templatemodel.TemplateImpl.render(TemplateImpl.java:166) at com.filenet.eforms.core.renderers.RendererImpl.renderJob(RendererImpl.java:116) at com.filenet.eforms.core.renderers.RendererImpl.render(RendererImpl.java:80) ... 77 more


I am at a loss. Any suggestions??