Troubleshooting
Problem
All users experience the context is not initialized error when launching a FileNet eForms workflow policy from Workplace.
Symptom
- Here is the details error message :
Error Message:
The context is not initialized.
Exception Class:
com.filenet.eforms.api.FormException
Stack Trace:
com.filenet.eforms.api.FormException: The context is not initialized.
at com.filenet.eforms.core.integration.ContextImpl.getCurrent (ContextImpl.java:28)
at com.filenet.eforms.api.Context.getCurrent (Context.java:49)
at com.filenet.eforms.toolkit.server.providers.P8UserContextProvider.getLocale (P8UserContextProvider.java:22)
at com.filenet.eforms.core.integration.services.UserContext.getLocale (UserContext.java:29)
at com.filenet.eforms.core.integration.services.UserContext.getLanguage (UserContext.java:39)
at com.filenet.eforms.core.integration.services.UserContext.getLocalization (UserContext.java:49)
at com.filenet.eforms.core.integration.services.UserContext.getString (UserContext.java:109)
at com.filenet.eforms.core.platforms.PlatformImpl.getByTemplateMimeType (PlatformImpl.java:67)
at com.filenet.eforms.api.Platform.getByTemplateMimeType (Platform.java:81)
at com.filenet.eforms.toolkit.server.servlet.GetFormServlet$GetFormRequest.handleWorkflowPolicy (GetFormServlet.java:1398)
at com.filenet.eforms.toolkit.server.servlet.GetFormServlet$GetFormRequest.handleForm (GetFormServlet.java:373)
at com.filenet.eforms.toolkit.server.servlet.GetFormServlet$GetFormRequest.getForm (GetFormServlet.java:254)
at com.filenet.eforms.toolkit.server.servlet.GetFormServlet$GetFormRequest.access$100 (GetFormServlet.java:130)
at com.filenet.eforms.toolkit.server.servlet.GetFormServlet.doGet (GetFormServlet.java:85)
at javax.servlet.http.HttpServlet.service (HttpServlet.java:743)
at javax.servlet.http.HttpServlet.service (HttpServlet.java:856)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service (ServletWrapper.java:1213)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service (ServletWrapper.java:1154)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter (WebAppFilterChain.java:145)
at com.filenet.ae.toolkit.server.servlet.filter.SecurityPluginFilter.doFilter (SecurityPluginFilter.java:164)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter (FilterInstanceWrapper.java:190)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter (WebAppFilterChain.java:130)
...
Cause
The following section is missing from the eForms-integration.xml file :
<platform platformID="filenet"
templateMimeType="application/x-filenet-itxformtemplate"
templateFilenameExtension="itx"
dataMimeType="application/x-filenet-formdata"
dataFilenameExtension="ifx"
readOnlySupported="true"
pageTabConfigurationSupported="true"
toolbarRelocationSupported="true"
offlineSupported="true">com.filenet.eforms.core.platforms.FactoryImpl
</platform>
Environment
AIX, Workplace 4.0.2, P8 eForms 4.0.2
Resolving The Problem
If you install a Fix Pack to WorkplaceXT 1.1.4.x or Application Engine 4.0.2.x, the changes added for 4.0.2.11-P8eF-FP011 or later will be overwritten. In order to resolve this situation, If you install a Fix Pack to WorkplaceXT 1.1.4.x or Application Engine 4.0.2.x after the eForms Fix Pack 4.0.2.11-P8eF-FP011 has been installed, you must run the eForms Fix Pack 4.0.2.11-P8eF-FP011 or later Fix Pack again to reinstate the changes for eForms 4.0.2.11-P8eF-FP011 or a later Fix Pack to WorkplaceXT 1.1.4.x or Application Engine 4.0.2.x.
Alternatively, you can manually edit the eforms-integration.xml file found under the install ../FileNet/config/AE folder for Application Engine or under ../FileNet/config/WebClient folder for WorkplaceXT to include the following section under the <platforms> node:
<platform platformID="filenet"
templateMimeType="application/x-filenet-itxformtemplate"
templateFilenameExtension="itx"
dataMimeType="application/x-filenet-formdata"
dataFilenameExtension="ifx"
readOnlySupported="true"
pageTabConfigurationSupported="true"
toolbarRelocationSupported="true"
offlineSupported="true">com.filenet.eforms.core.platforms.FactoryImpl
</platform>
NOTE: You must stop and restart WorkplaceXT or Workplace application.
Was this topic helpful?
Document Information
Modified date:
17 June 2018
UID
swg21626380