java.lang.NullPointerException after selecting Document Type on MWS

After I select Document Type from Transactions on MWS as Query field, MWS throws java.lang.NullPointerException like shown below. Anyone help ? (Version 10.3)

java.lang.NullPointerException

Hi Mehmet,

Could you check on the full.log in your SAG file directory? You should able to view full error message.
May I know any changes had done in your environment recently?

Thanks

Kind regards,
Alex Foo

Hi Alex, Below is the error log of the problem.



<log4j:event logger="com.webmethods.portal.framework.portletcontainer.portletapi.impl.PortletContextImpl" timestamp="1641205862980" level="WARN" thread="qtp1120533943-68732">
<log4j:message><![CDATA[Failed to evaluate binding expression: "#{Wm_tn_procrules_searchresultsDefaultviewView.docTypeList}"]]></log4j:message>
<log4j:NDC><![CDATA[ [RID:399955]]]></log4j:NDC>
<log4j:throwable><![CDATA[javax.el.ELException: java.lang.NullPointerException
	at javax.el.BeanELResolver.getValue(BeanELResolver.java:368)
	at com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:176)
	at com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:203)
	at com.sun.el.parser.AstValue.getValue(AstValue.java:138)
	at com.sun.el.parser.AstValue.getValue(AstValue.java:183)
	at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:224)
	at com.webmethods.caf.faces.application.CAFValueExpression.getValue(CAFValueExpression.java:140)
	at javax.faces.component.ComponentStateHelper.eval(ComponentStateHelper.java:194)
	at javax.faces.component.ComponentStateHelper.eval(ComponentStateHelper.java:182)
	at javax.faces.component.UIOutput.getValue(UIOutput.java:174)
	at sun.reflect.GeneratedMethodAccessor60459.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at javax.faces.component.UIComponentBase$AttributesMap.get(UIComponentBase.java:2394)
	at com.webmethods.caf.faces.render.html.output.BaseHtmlOutputRenderer.writeValue(BaseHtmlOutputRenderer.java:102)
	at com.webmethods.caf.faces.render.html.output.BaseHtmlOutputRenderer.encodeEnd(BaseHtmlOutputRenderer.java:45)
	at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:919)
	at com.webmethods.caf.faces.component.util.ComponentUtils.renderComponent(ComponentUtils.java:111)
	at com.webmethods.caf.faces.component.util.ComponentUtils.renderComponent(ComponentUtils.java:108)
	at com.webmethods.caf.faces.render.BaseRenderer.renderComponent(BaseRenderer.java:305)
	at com.webmethods.caf.faces.render.html.table.TableRenderer.writeTableRow(TableRenderer.java:644)
	at com.webmethods.caf.faces.render.html.table.TableRenderer.encodeChildren(TableRenderer.java:157)
	at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:889)
	at com.webmethods.caf.faces.component.util.ComponentUtils.renderComponent(ComponentUtils.java:103)
	at com.webmethods.caf.faces.render.BaseRenderer.renderComponent(BaseRenderer.java:305)
	at com.webmethods.caf.faces.render.BaseRenderer.encodeChildren(BaseRenderer.java:45)
	at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:889)
	at com.webmethods.caf.faces.component.panel.BaseHideablePanel.encodeChildren(BaseHideablePanel.java:192)
	at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1856)
	at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1859)
	at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1859)
	at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1859)
	at com.webmethods.caf.faces.view.CafViewDeclarationLanguage.renderView(CafViewDeclarationLanguage.java:217)
	at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:133)
	at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:337)
	at com.webmethods.caf.faces.portlet.PortletLifecycle$RenderResponsePhase.execute(PortletLifecycle.java:850)
	at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
	at com.webmethods.caf.faces.portlet.PortletLifecycle.phase(PortletLifecycle.java:322)
	at com.webmethods.caf.faces.portlet.PortletLifecycle.render(PortletLifecycle.java:264)
	at com.webmethods.caf.faces.portlet.FacesPortlet.render(FacesPortlet.java:464)
	at com.webmethods.portal.framework.portletcontainer.impl.PortletApplicationHandler.process(PortletApplicationHandler.java:611)
	at com.webmethods.portal.framework.portletcontainer.servlet.PortletServlet.service(PortletServlet.java:62)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:808)
	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:587)
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:595)
	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
	at org.eclipse.jetty.server.Dispatcher.include(Dispatcher.java:115)
	at com.webmethods.portal.framework.portletcontainer.impl.PortletContainer.dispatch(PortletContainer.java:295)
	at com.webmethods.portal.framework.portletcontainer.impl.PortletContainer.process(PortletContainer.java:203)
	at com.webmethods.portal.framework.portletcontainer.impl.PortletContainer.renderPortlet(PortletContainer.java:175)
	at com.webmethods.portal.framework.portletcontainer.beans.PortletBean.processRequest(PortletBean.java:204)
	at com.webmethods.portal.framework.portletcontainer.beans.PortletBean.getContentInternal(PortletBean.java:90)
	at com.webmethods.portal.framework.portlet.beans.BasicPortletBean.getContent(BasicPortletBean.java:158)
	at com.webmethods.portal.mech.portlet.impl.PortletMechanics.getPortletContent(PortletMechanics.java:139)
	at com.webmethods.portal.mech.storage.page.PortletHelper.initializeRuntimeProperties(PortletHelper.java:258)
	at com.webmethods.portal.mech.storage.page.PortletHelper.initializeRuntimeProperties(PortletHelper.java:329)
	at com.webmethods.portal.mech.storage.page.PortletHelper.getFullyInitializedBean(PortletHelper.java:385)
	at com.webmethods.portal.mech.portlet.impl.PortletMechanics.resolveWiringProperty(PortletMechanics.java:705)
	at com.webmethods.portal.mech.portlet.impl.PortletMechanics.resolveWiring(PortletMechanics.java:684)
	at com.webmethods.portal.mech.storage.page.PortletHelper.initializeWiredProperties(PortletHelper.java:239)
	at com.webmethods.portal.mech.storage.page.PortletHelper.getInitializedBean(PortletHelper.java:361)
	at com.webmethods.portal.mech.storage.page.PortletHelper.getInitializedBean(PortletHelper.java:346)
	at com.webmethods.portal.framework.presentation.renderers.PortalPageSubRenderer.findMaximizedPortlet(PortalPageSubRenderer.java:617)
	at com.webmethods.portal.framework.presentation.renderers.PortalPageSubRenderer.renderContent(PortalPageSubRenderer.java:160)
	at com.webmethods.portal.framework.presentation.renderers.PortalPageSubRenderer.subrender(PortalPageSubRenderer.java:151)
	at com.webmethods.portal.framework.presentation.renderers.NoodleRenderer.renderPageContent(NoodleRenderer.java:96)
	at com.webmethods.portal.framework.presentation.renderers.DefaultRenderer.render(DefaultRenderer.java:315)
	at com.webmethods.portal.framework.presentation.impl.PresentationManager.handlePres(PresentationManager.java:991)
	at com.webmethods.portal.framework.dispatch.impl.DispatchManager.pres(DispatchManager.java:1076)
	at com.webmethods.portal.framework.dispatch.impl.DispatchManager.handle(DispatchManager.java:904)
	at com.webmethods.portal.framework.dispatch.impl.DispatchManager.handleDispatch(DispatchManager.java:778)
	at com.webmethods.portal.framework.impl.PortalServlet.service(PortalServlet.java:328)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:808)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1669)
	at org.eclipse.jetty.servlets.UserAgentFilter.doFilter(UserAgentFilter.java:83)
	at org.eclipse.jetty.servlets.GzipFilter.doFilter(GzipFilter.java:364)
	at com.webmethods.caf.faces.servlet.GZIPFilter.doFilter(GZIPFilter.java:49)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
	at com.webmethods.portal.framework.impl.NTLMV1Filter.doFilter(NTLMV1Filter.java:64)
	at com.webmethods.portal.framework.impl.NTLMFilter.doFilter(NTLMFilter.java:30)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
	at com.webmethods.portal.framework.impl.RequestFilter.doFilter(RequestFilter.java:63)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
	at com.webmethods.portal.framework.impl.JsfPartialAjaxRequestFilter.doFilter(JsfPartialAjaxRequestFilter.java:81)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
	at com.webmethods.portal.framework.impl.SpnegoFilterWrapper.doFilter(SpnegoFilterWrapper.java:75)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)
	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
	at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:215)
	at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:110)
	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
	at com.webmethods.portal.webapp.jetty7.MwsServer.handle(MwsServer.java:129)
	at org.eclipse.jetty.server.Server.handle(Server.java:497)
	at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:310)
	at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)
	at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540)
	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
	at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
	at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.NullPointerException
	at com.webmethods.caf.wm_tn_procrules_searchresults.Wm_tn_procrules_searchresultsDefaultviewView.getDocTypeList(Wm_tn_procrules_searchresultsDefaultviewView.java:700)
	at sun.reflect.GeneratedMethodAcces`Preformatted text`sor62202.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at javax.el.BeanELResolver.getValue(BeanELResolver.java:363)
	... 114 more

Also when I reloadt WmTn package problem is being fixed for some time. Its weird.

Hi Mehmet,

Seem like the error is coming out from log4j, did your environment recently have follow the log4j steps for the update?

Thanks

Kind regards,
Alex Foo

1 Like

Can you give more details about log4j update steps ?

Hi Mehmet,

you can check for those articles regarding to the log4j security vulnerability

webMethods Fixes for Log4j Zero-Day security vulnerability - Service project (softwareag.com)

Log4j Zero-Day security vulnerability for webMethods - Service project (softwareag.com)

Thanks
Kind regards,
Alex Foo

1 Like

Hi Now the error like this in full.log file

2022-01-14 10:15:11 CET (jsf:INFO) [qtp1333296845-385] [RID:1450] - java.lang.NullPointerException
	at com.webmethods.portlet.tn.utils.TNSessionData$1.compare(TNSessionData.java:158)
	at java.util.TimSort.countRunAndMakeAscending(TimSort.java:355)
	at java.util.TimSort.sort(TimSort.java:234)
	at java.util.Arrays.sort(Arrays.java:1438)
	at com.webmethods.portlet.tn.utils.TNSessionData.getDocTypes(TNSessionData.java:336)
	at com.webmethods.portlet.tn.utils.TNSessionData.getDocTypesByID(TNSessionData.java:389)
	at com.webmethods.portlet.Wm_tnBean.getDoctypesById(Wm_tnBean.java:290)

Not an TN /MWS expert , but a NullPointer Exception usually indicates incorrect handling by the application when there is missing data. Would suggest you raise a support ticket mentioning products installed as MWS /TN

-NP

UPDATE!!
When I run wm.tn.doctype:list service with refresh parameter = TRUE ,
It works for a time being about 10 mins then it keeps getting error and need to run the service again.

So any suggestions ?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.