I am running an Xpages db in XPiNC that I want to use as a "front end" to several other databases in our system. I will store the code in this DB and access the data in other DBs.
When I am trying to do a simple CRUD operation on a form I am getting an error that I cannot explain.
6/22/15 4:51 PM: Exception Thrown
Context Path: /xsp/<SERVER>NetworkHome.nsf
Page Name: /xpFormHelpDesk.xsp
javax.faces.FacesException
at com.sun.faces.lifecycle.ProcessValidationsPhase.execute(Unknown Source)
at com.sun.faces.lifecycle.LifecycleImpl.phase(Unknown Source)
at com.sun.faces.lifecycle.LifecycleImpl.execute(Unknown Source)
at com.ibm.xsp.controller.FacesControllerImpl.execute(Unknown Source)
at com.ibm.xsp.webapp.FacesServlet.serviceView(Unknown Source)
at com.ibm.xsp.webapp.FacesServletEx.serviceView(Unknown Source)
at com.ibm.xsp.webapp.FacesServlet.service(Unknown Source)
at com.ibm.xsp.webapp.FacesServletEx.service(Unknown Source)
at com.ibm.xsp.webapp.DesignerFacesServlet.service(Unknown Source)
at com.ibm.designer.runtime.domino.adapter.ComponentModule.invokeServlet(Unknown Source)
at com.ibm.domino.xsp.module.nsf.NSFComponentModule.invokeServlet(Unknown Source)
at com.ibm.designer.runtime.domino.adapter.ComponentModule$AdapterInvoker.invokeServlet(Unknown Source)
at com.ibm.designer.runtime.domino.adapter.ComponentModule$ServletInvoker.doService(Unknown Source)
at com.ibm.designer.runtime.domino.adapter.ComponentModule.doService(Unknown Source)
at com.ibm.domino.xsp.module.nsf.NSFComponentModule.doService(Unknown Source)
at com.ibm.domino.xsp.module.nsf.NSFService.doServiceInternal(Unknown Source)
at com.ibm.domino.xsp.module.nsf.NSFService.access$0(Unknown Source)
at com.ibm.domino.xsp.module.nsf.NSFService$NsfServiceRequest.call(Unknown Source)
at com.ibm.domino.xsp.module.nsf.NSFService$NsfServiceRequest.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
at com.ibm.domino.xsp.module.nsf.NSFService$NsfServiceThread.run(Unknown Source)
Caused by: java.lang.NullPointerException
at com.ibm.xsp.renderkit.dojo.DateTimeHelperRenderer._getConvertedValue(Unknown Source)
at com.ibm.xsp.renderkit.dojo.DateTimeHelperRenderer.getConvertedValue(Unknown Source)
at com.ibm.xsp.renderkit.ReadOnlyAdapterRenderer.getConvertedValue(Unknown Source)
at javax.faces.component.UIInput.getConvertedValue(Unknown Source)
at com.ibm.xsp.component.UIInputEx.getConvertedValue(Unknown Source)
at javax.faces.component.UIInput.validate(Unknown Source)
at javax.faces.component.UIInput.executeValidate(Unknown Source)
at javax.faces.component.UIInput.processValidators(Unknown Source)
at javax.faces.component.UIComponentBase.processValidators(Unknown Source)
at javax.faces.component.UIComponentBase.processValidators(Unknown Source)
at javax.faces.component.UIComponentBase.processValidators(Unknown Source)
at javax.faces.component.UIComponentBase.processValidators(Unknown Source)
at javax.faces.component.UIComponentBase.processValidators(Unknown Source)
at javax.faces.component.UIComponentBase.processValidators(Unknown Source)
at javax.faces.component.UIComponentBase.processValidators(Unknown Source)
at com.ibm.xsp.component.UIDataPanelBase.processValidators(Unknown Source)
at javax.faces.component.UIComponentBase.processValidators(Unknown Source)
at com.ibm.xsp.component.UIDataPanelBase.processValidators(Unknown Source)
at javax.faces.component.UIComponentBase.processValidators(Unknown Source)
at javax.faces.component.UIComponentBase.processValidators(Unknown Source)
at com.ibm.xsp.component.UIDataPanelBase.processValidators(Unknown Source)
at javax.faces.component.UIComponentBase.processValidators(Unknown Source)
at com.ibm.xsp.component.UIDataPanelBase.processValidators(Unknown Source)
at javax.faces.component.UIComponentBase.processValidators(Unknown Source)
at com.ibm.xsp.extlib.component.layout.UIVarPublisherBase.processValidators(Unknown Source)
at javax.faces.component.UIComponentBase.processValidators(Unknown Source)
at com.ibm.xsp.component.UIDataPanelBase.processValidators(Unknown Source)
at javax.faces.component.UIForm.processValidators(Unknown Source)
at javax.faces.component.UIComponentBase.processValidators(Unknown Source)
at javax.faces.component.UIComponentBase.processValidators(Unknown Source)
at javax.faces.component.UIViewRoot.processValidators(Unknown Source)
at com.ibm.xsp.component.UIViewRootEx._processValidators(Unknown Source)
at com.ibm.xsp.component.UIViewRootEx.processValidators(Unknown Source)
... 25 more
My code in the custom control is as follows:
<?xml version="1.0" encoding="UTF-8"?>
<xp:view
xmlns:xp="http://www.ibm.com/xsp/core"
xmlns:xe="http://www.ibm.com/xsp/coreex"
xmlns:xc="http://www.ibm.com/xsp/custom">
<xp:this.data>
<xp:dominoView
var="view1"
databaseName="helpdesk.nsf"
viewName="My Tickets">
<xp:this.categoryFilter><![CDATA[#{javascript:#Name("[CN]",session.getEffectiveUserName()) + "Open"}]]></xp:this.categoryFilter>
</xp:dominoView>
</xp:this.data>
<xe:widgetContainer
id="widgetContainer1"
style="width:800.px;font-weight:bold;font-size:10pt;margin-left:10.0px"
dropDownRendered="false"
titleBarText="My Help Desk Tickets"
titleBar="true"
type="sidebar"
collapsible="false">
<xp:panel>
<xp:repeat
id="repeat1"
var="rowData"
indexVar="repeatIndex"
value="#{view1}">
<xp:this.facets>
<xp:text
disableTheme="true"
xp:key="header"
escape="false">
<xp:this.value><![CDATA[<table class='lotusTable repeatRowColors' border='0' cellspacing='0' cellpadding='0'>
<tr class ='lotusFirst lotusSort scope='col'>
<th class ='lotusBold'>Requester</th>
<th class ='lotusBold'>Subject</th>
<th class ='lotusBold'>Date</th>
</tr>
</thead>]]></xp:this.value>
</xp:text>
<xp:text
disableTheme="true"
xp:key="footer"
escape="false">
<xp:this.value><![CDATA[</table>]]></xp:this.value>
</xp:text>
</xp:this.facets>
<xp:tr
id="rowDataContainer">
<xp:td
style="width:125.00px;min-width:125px;max-width:125px;font-size:10pt">
<xp:text
escape="true"
id="computedField3">
<xp:this.value><![CDATA[#{javascript:rowData.getColumnValue("$0");}]]>
</xp:this.value>
</xp:text>
</xp:td>
<xp:td
style="width:250px;min-width:250px;max-width:250px font-size:10pt">
<xp:link
escape="true"
id="link1">
<xp:this.text><![CDATA[#{javascript:rowData.getColumnValue("Subject2")}]]></xp:this.text>
<xp:eventHandler
event="onclick"
submit="true"
refreshMode="complete">
<xp:this.action>
<xp:openPage
name="/xpFormHelpDesk.xsp"
target="openDocument">
<xp:this.documentId><![CDATA[#{javascript:rowData.getDocument().getUniversalID()}]]></xp:this.documentId>
</xp:openPage>
</xp:this.action>
</xp:eventHandler>
</xp:link>
</xp:td>
<xp:td
style="font-size:10pt">
<xp:text
escape="true"
id="computedField2">
<xp:this.value><![CDATA[#{javascript:rowData.getColumnValue("$1");}]]>
</xp:this.value>
<xp:this.converter>
<xp:convertDateTime
type="date"></xp:convertDateTime>
</xp:this.converter>
</xp:text>
</xp:td>
</xp:tr>
</xp:repeat>
</xp:panel>
</xe:widgetContainer>
</xp:view>
The database that I am getting the data from is not in Xpages, but I don't think that that should matter.
Your datasource defines databaseName="helpdesk.nsf" - in XPiNC it means local replica of the database. You need to use full format, as Paul suggested:
databaseName="yourservername!!helpdesk.nsf"
I recommend to parametrize the server with:
databaseName="#{database.server}!!helpdesk.nsf"
I think validator fails because of "no data" from invalid data source.
Looking at the stack trace, it's failing in Process Validations phase - so checking datatypes for validation / data conversion, and failing on the DateTimeHelperRenderer. It looks like that's pointing to computedField2.
There are two possible explanations:
One of the view entries has a value in column $1 that cannot be converted to a date. This sounds the most probable.
You're hitting the problem I blogged about with partial refreshes and row datasources not available http://www.intec.co.uk/dataviews-and-nested-repeats/. If this is the case, wrapping the calculation with if (view.isRenderingPhase()) {...} will solve the problem. If it's not the case, it will move the error to the Render Response phase.
Related
I already read almost everything about this and still cant solve it:
This is my faces-config:
<?xml version='1.0' encoding='UTF-8'?>
<faces-config version="2.2" xmlns="https://xmlns.jcp.org/xml/ns/javaee"
xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="https://xmlns.jcp.org/xml/ns/javaee
https://xmlns.jcp.org/xml/ns/javaee/web-facesconfig_2_2.xsd">
<navigation-rule>
<from-view-id>/login.xhtml</from-view-id>
<navigation-case>
<from-outcome>admin</from-outcome>
<to-view-id>/admin.xhtml</to-view-id>
</navigation-case>
</navigation-rule>
Severe: Exception during lifecycle processing
java.lang.Exception: java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: java.lang.RuntimeException: com.sun.faces.config.ConfigurationException: java.util.concurrent.ExecutionException: com.sun.faces.config.ConfigurationException: Unable to parse document 'jndi:/server/WebApplication2/WEB-INF/faces-config.xml': null
at com.sun.enterprise.web.WebApplication.start(WebApplication.java:168)
at org.glassfish.internal.data.EngineRef.start(EngineRef.java:122)
at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:291)
at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:352)
at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:500)
at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:219)
at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:491)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:539)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:535)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:360)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$2.execute(CommandRunnerImpl.java:534)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$3.run(CommandRunnerImpl.java:565)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$3.run(CommandRunnerImpl.java:557)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:360)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:556)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1464)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1300(CommandRunnerImpl.java:109)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1846)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1722)
at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:534)
at com.sun.enterprise.v3.admin.AdminAdapter.onMissingResource(AdminAdapter.java:224)
at org.glassfish.grizzly.http.server.StaticHttpHandlerBase.service(StaticHttpHandlerBase.java:189)
at com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:459)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:167)
at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:206)
at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:180)
at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:235)
at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:283)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:200)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:132)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:111)
at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)
at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:536)
at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:112)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:117)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:56)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:137)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:591)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:571)
at java.lang.Thread.run(Thread.java:748)
I am using javax.faces-2.2.9.jar on websphere 8.5 on cluster environment, and in my web.xml I have the <distributable /> tag and also the ClientSideSecretKey :
<env-entry>
<env-entry-name>jsf/ClientSideSecretKey</env-entry-name>
<env-entry-type>java.lang.String</env-entry-type>
<env-entry-value>somekeyhere</env-entry-value>
</env-entry>
I am using jboss-el-2.0.0.GA.jar :
<context-param>
<param-name>com.sun.faces.expressionFactory</param-name>
<param-value>org.jboss.el.ExpressionFactoryImpl</param-value>
</context-param>
1- my session bean :
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
#ManagedBean(name = "mySessionBean")
#SessionScoped
public class UserBean {
}
2- my view bean :
#ManagedBean(name = "myViewBean")
#ViewScoped
public class MyViewBean {
#ManagedProperty(value = "#{mySessionBean}")
private MySessionBean mySessionBean;
}
My application works fine most of the time, but sometimes I see in the log file the following exception which I don't know the reason for it:
Unable to set property mySessionBean for managed bean myViewBean com.sun.faces.mgbean.ManagedBeanCreationException: Unable to set property mySessionBean for managed bean myViewBean
at com.sun.faces.mgbean.ManagedBeanBuilder$BakedBeanProperty.set(Unknown Source)
at com.sun.faces.mgbean.ManagedBeanBuilder.buildBean(Unknown Source)
at com.sun.faces.mgbean.BeanBuilder.build(Unknown Source)
at com.sun.faces.mgbean.BeanManager.createAndPush(Unknown Source)
at com.sun.faces.mgbean.BeanManager.create(Unknown Source)
at com.sun.faces.el.ManagedBeanELResolver.resolveBean(Unknown Source)
at com.sun.faces.el.ManagedBeanELResolver.getValue(Unknown Source)
at com.sun.faces.el.DemuxCompositeELResolver._getValue(Unknown Source)
at com.sun.faces.el.DemuxCompositeELResolver.getValue(Unknown Source)
at org.jboss.el.parser.AstIdentifier.getValue(AstIdentifier.java:44)
at org.jboss.el.parser.AstValue.getTarget(AstValue.java:34)
at org.jboss.el.parser.AstValue.invoke(AstValue.java:95)
at org.jboss.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)
at com.sun.faces.facelets.el.TagMethodExpression.invoke(Unknown Source)
at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(Unknown Source)
at com.sun.faces.application.ActionListenerImpl.processAction(Unknown Source)
at org.primefaces.application.DialogActionListener.processAction(DialogActionListener.java:45)
at javax.faces.component.UIViewAction.broadcast(Unknown Source)
at javax.faces.component.UIViewRoot.broadcastEvents(Unknown Source)
at javax.faces.component.UIViewRoot.processApplication(Unknown Source)
at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(Unknown Source)
at com.sun.faces.lifecycle.Phase.doPhase(Unknown Source)
at com.sun.faces.lifecycle.LifecycleImpl.execute(Unknown Source)
at javax.faces.webapp.FacesServlet.service(Unknown Source)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1230)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:779)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:478)
at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:178)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.invokeTarget(WebAppFilterChain.java:136)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:97)
at org.primefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java:100)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:195)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:91)
at com.filenet.ae.toolkit.server.servlet.filter.PostprocessorFilter.doFilter(PostprocessorFilter.java:38)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:195)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:91)
at com.filenet.ae.toolkit.server.servlet.filter.ContainerBasedFilter.doFilter(ContainerBasedFilter.java:218)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:195)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:91)
at com.filenet.ae.toolkit.server.servlet.filter.PreprocessorFilter.doFilter(PreprocessorFilter.java:91)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:195)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:91)
at com.filenet.ae.toolkit.server.servlet.filter.SecurityPluginFilter.doFilter(SecurityPluginFilter.java:202)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:195)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:91)
at com.filenet.ae.toolkit.server.servlet.filter.ThreadLocalCleanupFilter.doFilter(ThreadLocalCleanupFilter.java:50)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:195)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:91)
at gov.myapp.web.filter.CoordinatorSecurityFilter.doFilter(CoordinatorSecurityFilter.java:150)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:195)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:91)
at com.dataserve.common.CompatibleFilter.doFilter(CompatibleFilter.java:53)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:195)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:91)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:964)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1104)
at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3901)
at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:304)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:981)
at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1662)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:200)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:463)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:530)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:316)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:287)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)
at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:175)
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:1865)
Caused by: java.lang.NullPointerException
at com.sun.faces.el.ELUtils.coerce(Unknown Source)
at com.sun.faces.mgbean.BeanBuilder$Expression.evaluate(Unknown Source)
... 75 more
[10/25/18 18:19:20:341 AST] 00000243 PrimeExceptio E <Null Message>
java.lang.NullPointerException
at com.sun.faces.el.ELUtils.coerce(Unknown Source)
at com.sun.faces.mgbean.BeanBuilder$Expression.evaluate(Unknown Source)
at com.sun.faces.mgbean.ManagedBeanBuilder$BakedBeanProperty.set(Unknown Source)
at com.sun.faces.mgbean.ManagedBeanBuilder.buildBean(Unknown Source)
at com.sun.faces.mgbean.BeanBuilder.build(Unknown Source)
at com.sun.faces.mgbean.BeanManager.createAndPush(Unknown Source)
at com.sun.faces.mgbean.BeanManager.create(Unknown Source)
at com.sun.faces.el.ManagedBeanELResolver.resolveBean(Unknown Source)
at com.sun.faces.el.ManagedBeanELResolver.getValue(Unknown Source)
at com.sun.faces.el.DemuxCompositeELResolver._getValue(Unknown Source)
at com.sun.faces.el.DemuxCompositeELResolver.getValue(Unknown Source)
at org.jboss.el.parser.AstIdentifier.getValue(AstIdentifier.java:44)
at org.jboss.el.parser.AstValue.getTarget(AstValue.java:34)
at org.jboss.el.parser.AstValue.invoke(AstValue.java:95)
at org.jboss.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)
at com.sun.faces.facelets.el.TagMethodExpression.invoke(Unknown Source)
at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(Unknown Source)
at com.sun.faces.application.ActionListenerImpl.processAction(Unknown Source)
at org.primefaces.application.DialogActionListener.processAction(DialogActionListener.java:45)
at javax.faces.component.UIViewAction.broadcast(Unknown Source)
at javax.faces.component.UIViewRoot.broadcastEvents(Unknown Source)
at javax.faces.component.UIViewRoot.processApplication(Unknown Source)
at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(Unknown Source)
at com.sun.faces.lifecycle.Phase.doPhase(Unknown Source)
at com.sun.faces.lifecycle.LifecycleImpl.execute(Unknown Source)
at javax.faces.webapp.FacesServlet.service(Unknown Source)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1230)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:779)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:478)
at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:178)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.invokeTarget(WebAppFilterChain.java:136)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:97)
at org.primefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java:100)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:195)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:91)
at com.filenet.ae.toolkit.server.servlet.filter.PostprocessorFilter.doFilter(PostprocessorFilter.java:38)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:195)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:91)
at com.filenet.ae.toolkit.server.servlet.filter.ContainerBasedFilter.doFilter(ContainerBasedFilter.java:218)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:195)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:91)
at com.filenet.ae.toolkit.server.servlet.filter.PreprocessorFilter.doFilter(PreprocessorFilter.java:91)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:195)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:91)
at com.filenet.ae.toolkit.server.servlet.filter.SecurityPluginFilter.doFilter(SecurityPluginFilter.java:202)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:195)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:91)
at com.filenet.ae.toolkit.server.servlet.filter.ThreadLocalCleanupFilter.doFilter(ThreadLocalCleanupFilter.java:50)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:195)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:91)
at gov.myapp.web.filter.CoordinatorSecurityFilter.doFilter(CoordinatorSecurityFilter.java:150)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:195)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:91)
at com.dataserve.common.CompatibleFilter.doFilter(CompatibleFilter.java:53)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:195)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:91)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:964)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1104)
at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3901)
at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:304)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:981)
at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1662)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:200)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:463)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:530)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:316)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:287)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)
at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:175)
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:1865)
I want to know if this is a bug or configuration error or it's normal due to session expire ?
I have problem with nested datatables and event rowDblselect. If I use the same type of event in nested tables and then I do doubleclick on row in nested dataTable, or in parent dataTable, it caused exception com.sun.faces.context.AjaxExceptionHandlerImpl handlePartialResponseError java.lang.ArrayIndexOutOfBoundsException: 0.
This code demonstrates problem or bug.
<p:dataTable id="dataTable1" value="list1">
<p:ajax event="rowDblselect"
listener="listener1"/>
<p:column>
test1
<p:rowToggler />
</p:column>
<p:rowExpansion>
<p:dataTable id="dataTable2" value="list2">
<p:ajax event="rowDblselect"
listener="listener2"/>
<p:column>
test2
</p:column>
</p:dataTable>
</p:rowExpansion>
Please, can anybody help with this problem?
Very thanks.
JSF 2.2.3 Mojarra, Primefaces 4.0, Extensions 1.0
Tomcat 7.0.41
Stack trace:
This happened after doubleclick in parent table.
XI 19, 2013 12:29:00 ODP. com.sun.faces.context.PartialViewContextImpl processPartial
INFO: java.lang.NullPointerException
java.lang.NullPointerException
at javax.faces.component.UIComponentBase$AttributesMap.put(UIComponentBase.java:2458)
at javax.faces.component.UIComponentBase$AttributesMap.put(UIComponentBase.java:2327)
at com.sun.faces.el.CompositeComponentAttributesELResolver$ExpressionEvalMap.put(CompositeComponentAttributesELResolver.java:415)
at com.sun.faces.el.CompositeComponentAttributesELResolver$ExpressionEvalMap.put(CompositeComponentAttributesELResolver.java:331)
at javax.el.MapELResolver.setValue(MapELResolver.java:94)
at com.sun.faces.el.DemuxCompositeELResolver._setValue(DemuxCompositeELResolver.java:255)
at com.sun.faces.el.DemuxCompositeELResolver.setValue(DemuxCompositeELResolver.java:281)
at org.apache.el.parser.AstValue.setValue(AstValue.java:218)
at org.apache.el.ValueExpressionImpl.setValue(ValueExpressionImpl.java:253)
at com.sun.faces.facelets.el.ContextualCompositeValueExpression.setValue(ContextualCompositeValueExpression.java:172)
at com.sun.faces.facelets.el.TagValueExpression.setValue(TagValueExpression.java:131)
at org.primefaces.component.datatable.DataTable.processUpdates(DataTable.java:561)
at javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:1286)
at javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:1286)
at javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:1286)
at javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:1286)
at javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:1286)
at org.primefaces.component.api.UIData.process(UIData.java:328)
at org.primefaces.component.api.UIData.processChildren(UIData.java:309)
at org.primefaces.component.api.UIData.processPhase(UIData.java:267)
at org.primefaces.component.api.UIData.processUpdates(UIData.java:257)
at org.primefaces.component.datatable.DataTable.processUpdates(DataTable.java:556)
at com.sun.faces.context.PartialViewContextImpl$PhaseAwareVisitCallback.visit(PartialViewContextImpl.java:554)
at com.sun.faces.component.visit.PartialVisitContext.invokeVisitCallback(PartialVisitContext.java:183)
at org.primefaces.component.api.UIData.visitTree(UIData.java:675)
at javax.faces.component.UIComponent.visitTree(UIComponent.java:1740)
at javax.faces.component.UIForm.visitTree(UIForm.java:371)
at javax.faces.component.UIComponent.visitTree(UIComponent.java:1740)
at javax.faces.component.UIComponent.visitTree(UIComponent.java:1740)
at com.sun.faces.context.PartialViewContextImpl.processComponents(PartialViewContextImpl.java:399)
at com.sun.faces.context.PartialViewContextImpl.processPartial(PartialViewContextImpl.java:263)
at org.primefaces.context.PrimePartialViewContext.processPartial(PrimePartialViewContext.java:57)
at javax.faces.component.UIViewRoot.processUpdates(UIViewRoot.java:1252)
at com.sun.faces.lifecycle.UpdateModelValuesPhase.execute(UpdateModelValuesPhase.java:78)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:198)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:646)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
at org.apache.coyote.ajp.AjpAprProcessor.process(AjpAprProcessor.java:197)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:1852)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744)
XI 19, 2013 12:29:00 ODP. com.sun.faces.lifecycle.UpdateModelValuesPhase execute
WARNING: java.lang.NullPointerException
XI 19, 2013 12:29:00 ODP. com.sun.faces.lifecycle.InvokeApplicationPhase execute
WARNING: 0
java.lang.ArrayIndexOutOfBoundsException: 0
at org.apache.el.parser.AstValue.convertArgs(AstValue.java:320)
at org.apache.el.parser.AstValue.invoke(AstValue.java:274)
at org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:274)
at com.sun.faces.facelets.el.ContextualCompositeMethodExpression.invoke(ContextualCompositeMethodExpression.java:188)
at com.sun.faces.facelets.tag.TagAttributeImpl$AttributeLookupMethodExpression.invoke(TagAttributeImpl.java:477)
at org.primefaces.component.behavior.ajax.AjaxBehaviorListenerImpl.processAjaxBehavior(AjaxBehaviorListenerImpl.java:53)
at javax.faces.event.AjaxBehaviorEvent.processListener(AjaxBehaviorEvent.java:113)
at javax.faces.component.behavior.BehaviorBase.broadcast(BehaviorBase.java:106)
at javax.faces.component.UIComponentBase.broadcast(UIComponentBase.java:804)
at javax.faces.component.UIData.broadcast(UIData.java:1086)
at javax.faces.component.UIData.broadcast(UIData.java:1108)
at javax.faces.component.UIData.broadcast(UIData.java:1108)
at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:790)
at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1282)
at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:81)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:198)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:646)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
at org.apache.coyote.ajp.AjpAprProcessor.process(AjpAprProcessor.java:197)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:1852)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744)
XI 19, 2013 12:29:00 ODP. com.sun.faces.context.AjaxExceptionHandlerImpl handlePartialResponseError
SEVERE: java.lang.ArrayIndexOutOfBoundsException: 0
at org.apache.el.parser.AstValue.convertArgs(AstValue.java:320)
at org.apache.el.parser.AstValue.invoke(AstValue.java:274)
at org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:274)
at com.sun.faces.facelets.el.ContextualCompositeMethodExpression.invoke(ContextualCompositeMethodExpression.java:188)
at com.sun.faces.facelets.tag.TagAttributeImpl$AttributeLookupMethodExpression.invoke(TagAttributeImpl.java:477)
at org.primefaces.component.behavior.ajax.AjaxBehaviorListenerImpl.processAjaxBehavior(AjaxBehaviorListenerImpl.java:53)
at javax.faces.event.AjaxBehaviorEvent.processListener(AjaxBehaviorEvent.java:113)
at javax.faces.component.behavior.BehaviorBase.broadcast(BehaviorBase.java:106)
at javax.faces.component.UIComponentBase.broadcast(UIComponentBase.java:804)
at javax.faces.component.UIData.broadcast(UIData.java:1086)
at javax.faces.component.UIData.broadcast(UIData.java:1108)
at javax.faces.component.UIData.broadcast(UIData.java:1108)
at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:790)
at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1282)
at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:81)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:198)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:646)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
at org.apache.coyote.ajp.AjpAprProcessor.process(AjpAprProcessor.java:197)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:1852)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744)
XI 19, 2013 12:29:00 ODP. com.sun.faces.context.PartialViewContextImpl processPartial
INFO: java.lang.NullPointerException
java.lang.NullPointerException
at javax.faces.component.UIComponentBase$AttributesMap.put(UIComponentBase.java:2458)
at javax.faces.component.UIComponentBase$AttributesMap.put(UIComponentBase.java:2327)
at com.sun.faces.el.CompositeComponentAttributesELResolver$ExpressionEvalMap.put(CompositeComponentAttributesELResolver.java:415)
at com.sun.faces.el.CompositeComponentAttributesELResolver$ExpressionEvalMap.put(CompositeComponentAttributesELResolver.java:331)
at javax.el.MapELResolver.setValue(MapELResolver.java:94)
at com.sun.faces.el.DemuxCompositeELResolver._setValue(DemuxCompositeELResolver.java:255)
at com.sun.faces.el.DemuxCompositeELResolver.setValue(DemuxCompositeELResolver.java:281)
at org.apache.el.parser.AstValue.setValue(AstValue.java:218)
at org.apache.el.ValueExpressionImpl.setValue(ValueExpressionImpl.java:253)
at com.sun.faces.facelets.el.ContextualCompositeValueExpression.setValue(ContextualCompositeValueExpression.java:172)
at com.sun.faces.facelets.el.TagValueExpression.setValue(TagValueExpression.java:131)
at org.primefaces.component.datatable.DataTable.processUpdates(DataTable.java:561)
at javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:1286)
at javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:1286)
at javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:1286)
at javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:1286)
at javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:1286)
at org.primefaces.component.api.UIData.process(UIData.java:328)
at org.primefaces.component.api.UIData.processChildren(UIData.java:309)
at org.primefaces.component.api.UIData.processPhase(UIData.java:267)
at org.primefaces.component.api.UIData.processUpdates(UIData.java:257)
at org.primefaces.component.datatable.DataTable.processUpdates(DataTable.java:556)
at com.sun.faces.context.PartialViewContextImpl$PhaseAwareVisitCallback.visit(PartialViewContextImpl.java:554)
at com.sun.faces.component.visit.PartialVisitContext.invokeVisitCallback(PartialVisitContext.java:183)
at org.primefaces.component.api.UIData.visitTree(UIData.java:675)
at javax.faces.component.UIComponent.visitTree(UIComponent.java:1740)
at javax.faces.component.UIForm.visitTree(UIForm.java:371)
at javax.faces.component.UIComponent.visitTree(UIComponent.java:1740)
at javax.faces.component.UIComponent.visitTree(UIComponent.java:1740)
at com.sun.faces.context.PartialViewContextImpl.processComponents(PartialViewContextImpl.java:399)
at com.sun.faces.context.PartialViewContextImpl.processPartial(PartialViewContextImpl.java:263)
at org.primefaces.context.PrimePartialViewContext.processPartial(PrimePartialViewContext.java:57)
at javax.faces.component.UIViewRoot.processUpdates(UIViewRoot.java:1252)
at com.sun.faces.lifecycle.UpdateModelValuesPhase.execute(UpdateModelValuesPhase.java:78)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:198)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:646)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
at org.apache.coyote.ajp.AjpAprProcessor.process(AjpAprProcessor.java:197)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:1852)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744)
The stack trace tells that you need a (valid) selection attribute in <p:dataTable>.
Here's the relevant part:
java.lang.NullPointerException
at javax.faces.component.UIComponentBase$AttributesMap.put(UIComponentBase.java:2458)
at javax.faces.component.UIComponentBase$AttributesMap.put(UIComponentBase.java:2327)
at com.sun.faces.el.CompositeComponentAttributesELResolver$ExpressionEvalMap.put(CompositeComponentAttributesELResolver.java:415)
at com.sun.faces.el.CompositeComponentAttributesELResolver$ExpressionEvalMap.put(CompositeComponentAttributesELResolver.java:331)
at javax.el.MapELResolver.setValue(MapELResolver.java:94)
at com.sun.faces.el.DemuxCompositeELResolver._setValue(DemuxCompositeELResolver.java:255)
at com.sun.faces.el.DemuxCompositeELResolver.setValue(DemuxCompositeELResolver.java:281)
at org.apache.el.parser.AstValue.setValue(AstValue.java:218)
at org.apache.el.ValueExpressionImpl.setValue(ValueExpressionImpl.java:253)
at com.sun.faces.facelets.el.ContextualCompositeValueExpression.setValue(ContextualCompositeValueExpression.java:172)
at com.sun.faces.facelets.el.TagValueExpression.setValue(TagValueExpression.java:131)
at org.primefaces.component.datatable.DataTable.processUpdates(DataTable.java:561)
Line 2458 of UIComponentBase class (the 1st line of shown trace) is:
if (value == null) {
throw new NullPointerException();
}
Thus, ValueExpression value is null.
Line 561 of DataTable class (the last line of shown trace) is:
selectionVE.setValue(context.getELContext(), this.getLocalSelection());
Thus, this.getLocalSelection() returned null.
The getLocalSelection() method in turn looks like this:
public Object getLocalSelection() {
return getStateHelper().get(PropertyKeys.selection);
}
Thus, <p:dataTable selection> attribute returned null (or is undefinied).
The solution should be straightforward: make sure it's not null (or is definied).
<p:dataTable ... selection="#{bean.selection}">
I've designed an application using earlier version of extlib from OpenNTF. Now I've updated the extlib, and when I try to open an Xpage in the database I get the following error:
*Note that this happens when opening an Xpage in Designer. The database is opened in a browser flawlessly.
Could not open the editor: An unexpected exception was thrown.
java.lang.NullPointerException
at com.ibm.designer.domino.xsp.editpart.XFacesEditPartFactory.createEditPart(Unknown Source)
at org.eclipse.gef.editparts.AbstractEditPart.createChild(Unknown Source)
at com.ibm.designer.domino.xsp.editpart.CustomRenderingElementEditPart.refreshChildren(Unknown Source)
at org.eclipse.gef.editparts.AbstractEditPart.refresh(Unknown Source)
at org.eclipse.gef.editparts.AbstractGraphicalEditPart.refresh(Unknown Source)
at org.eclipse.gef.editparts.AbstractEditPart.addNotify(Unknown Source)
at org.eclipse.gef.editparts.AbstractGraphicalEditPart.addNotify(Unknown Source)
at com.ibm.etools.xve.editpart.ElementEditPart.addNotify(Unknown Source)
at org.eclipse.gef.editparts.AbstractEditPart.addChild(Unknown Source)
at com.ibm.etools.xve.editpart.XVENodeEditPart.refreshChildren(Unknown Source)
at org.eclipse.gef.editparts.AbstractEditPart.refresh(Unknown Source)
at org.eclipse.gef.editparts.AbstractGraphicalEditPart.refresh(Unknown Source)
at com.ibm.designer.domino.xsp.editpart.CallbackEditPart.refresh(Unknown Source)
at org.eclipse.gef.editparts.AbstractEditPart.addNotify(Unknown Source)
at org.eclipse.gef.editparts.AbstractGraphicalEditPart.addNotify(Unknown Source)
at com.ibm.etools.xve.editpart.ElementEditPart.addNotify(Unknown Source)
at org.eclipse.gef.editparts.AbstractEditPart.addChild(Unknown Source)
at com.ibm.etools.xve.editpart.XVENodeEditPart.refreshChildren(Unknown Source)
at org.eclipse.gef.editparts.AbstractEditPart.refresh(Unknown Source)
at org.eclipse.gef.editparts.AbstractGraphicalEditPart.refresh(Unknown Source)
at org.eclipse.gef.editparts.AbstractEditPart.addNotify(Unknown Source)
at org.eclipse.gef.editparts.AbstractGraphicalEditPart.addNotify(Unknown Source)
at com.ibm.etools.xve.editpart.ElementEditPart.addNotify(Unknown Source)
at org.eclipse.gef.editparts.AbstractEditPart.addChild(Unknown Source)
at com.ibm.etools.xve.editpart.XVENodeEditPart.refreshChildren(Unknown Source)
at org.eclipse.gef.editparts.AbstractEditPart.refresh(Unknown Source)
at org.eclipse.gef.editparts.AbstractGraphicalEditPart.refresh(Unknown Source)
at org.eclipse.gef.editparts.AbstractEditPart.addNotify(Unknown Source)
at org.eclipse.gef.editparts.AbstractGraphicalEditPart.addNotify(Unknown Source)
at com.ibm.etools.xve.editpart.ElementEditPart.addNotify(Unknown Source)
at org.eclipse.gef.editparts.AbstractEditPart.addChild(Unknown Source)
at com.ibm.etools.xve.editpart.XVENodeEditPart.refreshChildren(Unknown Source)
at org.eclipse.gef.editparts.AbstractEditPart.refresh(Unknown Source)
at org.eclipse.gef.editparts.AbstractGraphicalEditPart.refresh(Unknown Source)
at org.eclipse.gef.editparts.AbstractEditPart.addNotify(Unknown Source)
at org.eclipse.gef.editparts.AbstractGraphicalEditPart.addNotify(Unknown Source)
at com.ibm.etools.xve.editpart.ElementEditPart.addNotify(Unknown Source)
at org.eclipse.gef.editparts.AbstractEditPart.addChild(Unknown Source)
at com.ibm.etools.xve.editpart.XVENodeEditPart.refreshChildren(Unknown Source)
at org.eclipse.gef.editparts.AbstractEditPart.refresh(Unknown Source)
at org.eclipse.gef.editparts.AbstractGraphicalEditPart.refresh(Unknown Source)
at org.eclipse.gef.editparts.AbstractEditPart.addNotify(Unknown Source)
at org.eclipse.gef.editparts.AbstractGraphicalEditPart.addNotify(Unknown Source)
at com.ibm.etools.xve.editpart.ElementEditPart.addNotify(Unknown Source)
at org.eclipse.gef.editparts.AbstractEditPart.addChild(Unknown Source)
at com.ibm.etools.xve.editpart.XVENodeEditPart.refreshChildren(Unknown Source)
at org.eclipse.gef.editparts.AbstractEditPart.refresh(Unknown Source)
at org.eclipse.gef.editparts.AbstractGraphicalEditPart.refresh(Unknown Source)
at org.eclipse.gef.editparts.AbstractEditPart.addNotify(Unknown Source)
at org.eclipse.gef.editparts.AbstractGraphicalEditPart.addNotify(Unknown Source)
at com.ibm.etools.xve.editpart.DocumentEditPart.addNotify(Unknown Source)
at org.eclipse.gef.editparts.AbstractEditPart.addChild(Unknown Source)
at com.ibm.designer.domino.xsp.editpart.CustomRenderingElementEditPart.refreshChildren(Unknown Source)
at org.eclipse.gef.editparts.AbstractEditPart.refresh(Unknown Source)
at org.eclipse.gef.editparts.AbstractGraphicalEditPart.refresh(Unknown Source)
at org.eclipse.gef.editparts.AbstractEditPart.addNotify(Unknown Source)
at org.eclipse.gef.editparts.AbstractGraphicalEditPart.addNotify(Unknown Source)
at com.ibm.etools.xve.editpart.ElementEditPart.addNotify(Unknown Source)
at org.eclipse.gef.editparts.AbstractEditPart.addChild(Unknown Source)
at com.ibm.etools.xve.editpart.XVENodeEditPart.refreshChildren(Unknown Source)
at org.eclipse.gef.editparts.AbstractEditPart.refresh(Unknown Source)
at org.eclipse.gef.editparts.AbstractGraphicalEditPart.refresh(Unknown Source)
at org.eclipse.gef.editparts.AbstractEditPart.addNotify(Unknown Source)
at org.eclipse.gef.editparts.AbstractGraphicalEditPart.addNotify(Unknown Source)
at com.ibm.etools.xve.editpart.ElementEditPart.addNotify(Unknown Source)
at org.eclipse.gef.editparts.AbstractEditPart.addChild(Unknown Source)
at com.ibm.etools.xve.editpart.XVENodeEditPart.refreshChildren(Unknown Source)
at org.eclipse.gef.editparts.AbstractEditPart.refresh(Unknown Source)
at org.eclipse.gef.editparts.AbstractGraphicalEditPart.refresh(Unknown Source)
at org.eclipse.gef.editparts.AbstractEditPart.addNotify(Unknown Source)
at org.eclipse.gef.editparts.AbstractGraphicalEditPart.addNotify(Unknown Source)
at com.ibm.etools.xve.editpart.DocumentEditPart.addNotify(Unknown Source)
at org.eclipse.gef.editparts.AbstractEditPart.addChild(Unknown Source)
at com.ibm.designer.domino.xsp.editpart.CCCustomRenderingElementEditPart.refreshChildren(Unknown Source)
at org.eclipse.gef.editparts.AbstractEditPart.refresh(Unknown Source)
at org.eclipse.gef.editparts.AbstractGraphicalEditPart.refresh(Unknown Source)
at org.eclipse.gef.editparts.AbstractEditPart.addNotify(Unknown Source)
at org.eclipse.gef.editparts.AbstractGraphicalEditPart.addNotify(Unknown Source)
at com.ibm.etools.xve.editpart.ElementEditPart.addNotify(Unknown Source)
at org.eclipse.gef.editparts.AbstractEditPart.addChild(Unknown Source)
at com.ibm.etools.xve.editpart.XVENodeEditPart.refreshChildren(Unknown Source)
at org.eclipse.gef.editparts.AbstractEditPart.refresh(Unknown Source)
at org.eclipse.gef.editparts.AbstractGraphicalEditPart.refresh(Unknown Source)
at org.eclipse.gef.editparts.AbstractEditPart.addNotify(Unknown Source)
at org.eclipse.gef.editparts.AbstractGraphicalEditPart.addNotify(Unknown Source)
at com.ibm.etools.xve.editpart.ElementEditPart.addNotify(Unknown Source)
at org.eclipse.gef.editparts.AbstractEditPart.addChild(Unknown Source)
at com.ibm.etools.xve.editpart.XVENodeEditPart.refreshChildren(Unknown Source)
at org.eclipse.gef.editparts.AbstractEditPart.refresh(Unknown Source)
at org.eclipse.gef.editparts.AbstractGraphicalEditPart.refresh(Unknown Source)
at org.eclipse.gef.editparts.AbstractEditPart.addNotify(Unknown Source)
at org.eclipse.gef.editparts.AbstractGraphicalEditPart.addNotify(Unknown Source)
at com.ibm.etools.xve.editpart.ElementEditPart.addNotify(Unknown Source)
at org.eclipse.gef.editparts.AbstractEditPart.addChild(Unknown Source)
at com.ibm.etools.xve.editpart.XVENodeEditPart.refreshChildren(Unknown Source)
at org.eclipse.gef.editparts.AbstractEditPart.refresh(Unknown Source)
at org.eclipse.gef.editparts.AbstractGraphicalEditPart.refresh(Unknown Source)
at com.ibm.designer.domino.xsp.editpart.CallbackEditPart.refresh(Unknown Source)
at org.eclipse.gef.editparts.AbstractEditPart.addNotify(Unknown Source)
at org.eclipse.gef.editparts.AbstractGraphicalEditPart.addNotify(Unknown Source)
at com.ibm.etools.xve.editpart.ElementEditPart.addNotify(Unknown Source)
at org.eclipse.gef.editparts.AbstractEditPart.addChild(Unknown Source)
at com.ibm.etools.xve.editpart.XVENodeEditPart.refreshChildren(Unknown Source)
at org.eclipse.gef.editparts.AbstractEditPart.refresh(Unknown Source)
at org.eclipse.gef.editparts.AbstractGraphicalEditPart.refresh(Unknown Source)
at org.eclipse.gef.editparts.AbstractEditPart.addNotify(Unknown Source)
at org.eclipse.gef.editparts.AbstractGraphicalEditPart.addNotify(Unknown Source)
at com.ibm.etools.xve.editpart.ElementEditPart.addNotify(Unknown Source)
at org.eclipse.gef.editparts.AbstractEditPart.addChild(Unknown Source)
at com.ibm.etools.xve.editpart.XVENodeEditPart.refreshChildren(Unknown Source)
at org.eclipse.gef.editparts.AbstractEditPart.refresh(Unknown Source)
at org.eclipse.gef.editparts.AbstractGraphicalEditPart.refresh(Unknown Source)
at org.eclipse.gef.editparts.AbstractEditPart.addNotify(Unknown Source)
at org.eclipse.gef.editparts.AbstractGraphicalEditPart.addNotify(Unknown Source)
at com.ibm.etools.xve.editpart.ElementEditPart.addNotify(Unknown Source)
at org.eclipse.gef.editparts.AbstractEditPart.addChild(Unknown Source)
at com.ibm.etools.xve.editpart.XVENodeEditPart.refreshChildren(Unknown Source)
at org.eclipse.gef.editparts.AbstractEditPart.refresh(Unknown Source)
at org.eclipse.gef.editparts.AbstractGraphicalEditPart.refresh(Unknown Source)
at org.eclipse.gef.editparts.AbstractEditPart.addNotify(Unknown Source)
at org.eclipse.gef.editparts.AbstractGraphicalEditPart.addNotify(Unknown Source)
at com.ibm.etools.xve.editpart.ElementEditPart.addNotify(Unknown Source)
at org.eclipse.gef.editparts.AbstractEditPart.addChild(Unknown Source)
at com.ibm.etools.xve.editpart.XVENodeEditPart.refreshChildren(Unknown Source)
at org.eclipse.gef.editparts.AbstractEditPart.refresh(Unknown Source)
at org.eclipse.gef.editparts.AbstractGraphicalEditPart.refresh(Unknown Source)
at org.eclipse.gef.editparts.AbstractEditPart.addNotify(Unknown Source)
at org.eclipse.gef.editparts.AbstractGraphicalEditPart.addNotify(Unknown Source)
at com.ibm.etools.xve.editpart.ElementEditPart.addNotify(Unknown Source)
at org.eclipse.gef.editparts.AbstractEditPart.addChild(Unknown Source)
at com.ibm.etools.xve.editpart.XVENodeEditPart.refreshChildren(Unknown Source)
at org.eclipse.gef.editparts.AbstractEditPart.refresh(Unknown Source)
at org.eclipse.gef.editparts.AbstractGraphicalEditPart.refresh(Unknown Source)
at org.eclipse.gef.editparts.AbstractEditPart.addNotify(Unknown Source)
at org.eclipse.gef.editparts.AbstractGraphicalEditPart.addNotify(Unknown Source)
at com.ibm.etools.xve.editpart.ElementEditPart.addNotify(Unknown Source)
at org.eclipse.gef.editparts.AbstractEditPart.addChild(Unknown Source)
at com.ibm.etools.xve.editpart.XVENodeEditPart.refreshChildren(Unknown Source)
at org.eclipse.gef.editparts.AbstractEditPart.refresh(Unknown Source)
at org.eclipse.gef.editparts.AbstractGraphicalEditPart.refresh(Unknown Source)
at org.eclipse.gef.editparts.AbstractEditPart.addNotify(Unknown Source)
at org.eclipse.gef.editparts.AbstractGraphicalEditPart.addNotify(Unknown Source)
at com.ibm.etools.xve.editpart.DocumentEditPart.addNotify(Unknown Source)
at org.eclipse.gef.editparts.AbstractEditPart.addChild(Unknown Source)
at com.ibm.designer.domino.xsp.editpart.CCCustomRenderingElementEditPart.refreshChildren(Unknown Source)
at org.eclipse.gef.editparts.AbstractEditPart.refresh(Unknown Source)
at org.eclipse.gef.editparts.AbstractGraphicalEditPart.refresh(Unknown Source)
at org.eclipse.gef.editparts.AbstractEditPart.addNotify(Unknown Source)
at org.eclipse.gef.editparts.AbstractGraphicalEditPart.addNotify(Unknown Source)
at com.ibm.etools.xve.editpart.ElementEditPart.addNotify(Unknown Source)
at org.eclipse.gef.editparts.AbstractEditPart.addChild(Unknown Source)
at com.ibm.etools.xve.editpart.XVENodeEditPart.refreshChildren(Unknown Source)
at org.eclipse.gef.editparts.AbstractEditPart.refresh(Unknown Source)
at org.eclipse.gef.editparts.AbstractGraphicalEditPart.refresh(Unknown Source)
at org.eclipse.gef.editparts.AbstractEditPart.addNotify(Unknown Source)
at org.eclipse.gef.editparts.AbstractGraphicalEditPart.addNotify(Unknown Source)
at com.ibm.etools.xve.editpart.ElementEditPart.addNotify(Unknown Source)
at org.eclipse.gef.editparts.AbstractEditPart.addChild(Unknown Source)
at com.ibm.etools.xve.editpart.XVENodeEditPart.refreshChildren(Unknown Source)
at org.eclipse.gef.editparts.AbstractEditPart.refresh(Unknown Source)
at org.eclipse.gef.editparts.AbstractGraphicalEditPart.refresh(Unknown Source)
at org.eclipse.gef.editparts.AbstractEditPart.addNotify(Unknown Source)
at org.eclipse.gef.editparts.AbstractGraphicalEditPart.addNotify(Unknown Source)
at com.ibm.etools.xve.editpart.DocumentEditPart.addNotify(Unknown Source)
at org.eclipse.gef.editparts.AbstractEditPart.addChild(Unknown Source)
at org.eclipse.gef.editparts.SimpleRootEditPart.setContents(Unknown Source)
at org.eclipse.gef.ui.parts.AbstractEditPartViewer.setContents(Unknown Source)
at com.ibm.etools.xve.viewer.XMLGraphicalViewerImpl.setContents(Unknown Source)
at org.eclipse.gef.ui.parts.AbstractEditPartViewer.setContents(Unknown Source)
at com.ibm.etools.xve.editor.AbstractXMLVisualEditor.initializeGraphicalViewer(Unknown Source)
at com.ibm.designer.domino.xsp.editor.XFacesEditor.initializeGraphicalViewer(Unknown Source)
at com.ibm.etools.xve.editor.AbstractXMLVisualEditor.createGraphicalViewer(Unknown Source)
at org.eclipse.gef.ui.parts.GraphicalEditor.createPartControl(Unknown Source)
at com.ibm.etools.xve.editor.AbstractXMLVisualEditor.createPartControl(Unknown Source)
at org.eclipse.ui.part.MultiPageEditorPart.addPage(Unknown Source)
at com.ibm.etools.xve.editor.XVEMultiPageEditor.createPages(Unknown Source)
at com.ibm.designer.domino.xsp.editor.XFacesMultiPageEditor.createPages(Unknown Source)
at org.eclipse.ui.part.MultiPageEditorPart.createPartControl(Unknown Source)
at org.eclipse.ui.internal.EditorReference.createPartHelper(Unknown Source)
at org.eclipse.ui.internal.EditorReference.createPart(Unknown Source)
at org.eclipse.ui.internal.WorkbenchPartReference.getPart(Unknown Source)
at org.eclipse.ui.internal.EditorReference.getEditor(Unknown Source)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(Unknown Source)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(Unknown Source)
at org.eclipse.ui.internal.WorkbenchPage.access$11(Unknown Source)
at org.eclipse.ui.internal.WorkbenchPage$10.run(Unknown Source)
at org.eclipse.swt.custom.BusyIndicator.showWhile(Unknown Source)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(Unknown Source)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(Unknown Source)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(Unknown Source)
at com.ibm.designer.domino.ui.dialog.DesignElementUtil.openEditorWithImplicitLock(Unknown Source)
at com.ibm.designer.domino.ui.dialog.DesignElementUtil.openEditorWithImplicitLock(Unknown Source)
at com.ibm.designer.domino.ui.dialog.DesignElementUtil.openDesignElement(Unknown Source)
at com.ibm.designer.domino.ui.dialog.DesignElementUtil.openDesignElement(Unknown Source)
at com.ibm.designer.domino.navigator.designtimemodelcontroller.DesignTimeModelWebPages.openDesignElement(Unknown Source)
at com.ibm.designer.domino.navigator.DesignEditor.openDesignElement(Unknown Source)
at com.ibm.designer.domino.navigator.DesignEditor.openSelectedDesignElement(Unknown Source)
at com.ibm.designer.domino.navigator.DesignEditor$13.mouseDoubleClick(Unknown Source)
at org.eclipse.swt.widgets.TypedListener.handleEvent(Unknown Source)
at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source)
at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source)
at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
at org.eclipse.ui.internal.Workbench.runEventLoop(Unknown Source)
at org.eclipse.ui.internal.Workbench.runUI(Unknown Source)
at org.eclipse.ui.internal.Workbench.access$4(Unknown Source)
at org.eclipse.ui.internal.Workbench$5.run(Unknown Source)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Unknown Source)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Unknown Source)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(Unknown Source)
at com.ibm.rcp.personality.framework.internal.RCPApplication.run(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.internal.app.EclipseAppContainer.callMethodWithException(Unknown Source)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(Unknown Source)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(Unknown Source)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(Unknown Source)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(Unknown Source)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Unknown Source)
at org.eclipse.equinox.launcher.Main.basicRun(Unknown Source)
at org.eclipse.equinox.launcher.Main.run(Unknown Source)
at com.ibm.rcp.core.internal.launcher.Main.startLaunch(Unknown Source)
at com.ibm.rcp.core.internal.launcher.Main.main(Unknown Source)
at com.ibm.rcp.core.internal.launcher.Main.run(Unknown Source)
UPDATE I've found out that this custom control is causing the error, but I have no idea why!?
<?xml version="1.0" encoding="UTF-8"?>
<xp:view xmlns:xp="http://www.ibm.com/xsp/core"
xmlns:xe="http://www.ibm.com/xsp/coreex" style="height:340px;"
xmlns:xc="http://www.ibm.com/xsp/custom">
<xe:djAccordionContainer id="djAccordionContainer1"
style="height:345px;width:197px;">
<xe:djAccordionPane id="djAccordionPane1" title="За нас"
style="background-color:rgb(249,252,255)">
<xe:this.dojoAttributes>
<xp:dojoAttribute name="selected" value="false"></xp:dojoAttribute>
</xe:this.dojoAttributes>
<xp:panel styleClass="rowMargin"></xp:panel>
<xp:link escape="true" text="За заводот" id="link1"
value="/zazavodot.xsp">
</xp:link>
<xp:panel styleClass="rowMargin"></xp:panel>
<xp:link escape="true" text="Координативно тело за ИС"
id="link3" value="/koordinativnotelo.xsp">
</xp:link>
<xp:panel styleClass="rowMargin"></xp:panel>
<xp:link escape="true" text="Меѓународни изложби" id="link4"
value="/megjunarodniizlozbi.xsp">
</xp:link>
<xp:panel styleClass="rowMargin"></xp:panel>
<xp:link escape="true" text="Промоција" id="link5"
value="/promocija.xsp">
</xp:link>
<xp:panel styleClass="rowMargin"></xp:panel>
<xp:link escape="true" text="Патент на годината" id="link6"
value="/patentnagod.xsp">
</xp:link>
<xp:panel styleClass="rowMargin"></xp:panel>
<xp:link escape="true" text="Годишна програма" id="link7"
value="/godisnaprograma.xsp">
</xp:link>
<xp:panel styleClass="rowMargin"></xp:panel>
<xp:link escape="true" text="Годишен извештај" id="link8"
value="/godisenizvestaj.xsp">
</xp:link>
<xp:panel styleClass="rowMargin"></xp:panel>
</xe:djAccordionPane>
<xe:djAccordionPane id="djAccordionPane2" title="Легислатива"
style="background-color:rgb(249,252,255)">
<xe:this.dojoAttributes>
<xp:dojoAttribute name="selected" value="false"></xp:dojoAttribute>
</xe:this.dojoAttributes>
<xp:panel styleClass="rowMargin"></xp:panel>
<xp:link escape="true" text="Национално законодавство"
id="link9" value="/nacionalnozakon.xsp">
</xp:link>
<xp:panel styleClass="rowMargin"></xp:panel>
<xp:link escape="true" text="Eu Регулативи и Директиви"
id="link10" value="/EuRegulativi.xsp">
</xp:link>
<xp:panel styleClass="rowMargin"></xp:panel>
<xp:link escape="true" text="Меѓународни Договори"
id="link11" value="/megjunarodnidogovori.xsp">
</xp:link>
<xp:panel styleClass="rowMargin"></xp:panel>
<xp:link escape="true" id="link12"
text="Билатерални договори" value="/bilateralnidogovori.xsp">
</xp:link>
<xp:panel styleClass="rowMargin"></xp:panel>
</xe:djAccordionPane>
<xe:djAccordionPane id="djAccordionPane3" title="Издаваштво"
style="background-color:rgb(249,252,255)">
<xe:this.dojoAttributes>
<xp:dojoAttribute name="selected" value="false"></xp:dojoAttribute>
</xe:this.dojoAttributes>
<xp:panel styleClass="rowMargin"></xp:panel>
<xp:link escape="true" text="Гласник" id="link13"
value="/glasnik.xsp">
</xp:link>
<xp:panel styleClass="rowMargin"></xp:panel>
<xp:link escape="true" text="Публикации" id="link14"
value="/publikacii.xsp">
</xp:link>
<xp:panel styleClass="rowMargin"></xp:panel>
<xp:link escape="true" text="Архива" id="link15"
value="/arhiva.xsp">
</xp:link>
<xp:panel styleClass="rowMargin"></xp:panel>
</xe:djAccordionPane>
<xe:djAccordionPane id="djAccordionPane4"
title="Корисни информации"
style="background-color:rgb(249,252,255)">
<xe:this.dojoAttributes>
<xp:dojoAttribute name="selected" value="true"></xp:dojoAttribute>
</xe:this.dojoAttributes>
<xp:panel styleClass="rowMargin"></xp:panel>
<xp:link escape="true" text="Прашања" id="link16"
value="/prashanja.xsp">
</xp:link>
<xp:panel styleClass="rowMargin"></xp:panel>
<xp:link escape="true" text="Линкови" id="link17" value="http://wipo.int/members/en/" target="_blank">
</xp:link>
<xp:panel styleClass="rowMargin"></xp:panel>
<xp:link escape="true" text="Статистика" id="link18"
value="/statistika.xsp">
</xp:link>
<xp:panel styleClass="rowMargin"></xp:panel>
<xp:link escape="true" text="Новости" id="link19"
value="/Novosti.xsp">
</xp:link>
<xp:panel styleClass="rowMargin"></xp:panel>
</xe:djAccordionPane>
<xe:djAccordionPane id="djAccordionPane5"
title="Пристап до информации"
style="background-color:rgb(249,252,255)">
<xp:panel styleClass="rowMargin"></xp:panel>
<xp:link escape="true" text="Пристап до информации"
id="link20" value="/pristapdoinfo.xsp">
</xp:link>
<xp:panel styleClass="rowMargin"></xp:panel>
</xe:djAccordionPane>
</xe:djAccordionContainer>
<xp:panel styleClass="rowMargin"></xp:panel>
<xp:panel>
<xp:image url="/slika4.jpg" id="image1"></xp:image></xp:panel></xp:view>
I have gotten this from time to time when upgrading various servers, and libraries etc.
Generally i remove the application from the list of applications, close designer, re open, open the app again and clean it. This has always worked from me
You can clean the project in the Domino Designer by opening your database and select "Project" and "Clean..." - select the "project" (i.e. your database) and hit [Ok]
trying to upload a file on a facelets page using Tomahawk2.0 1.1.11. But I get a null pointer exception and I see in the debugger, the uploadedFile variable is not being set in the bean. Any ideas why the bean isn't being set? The t:inputFileUpload component is otherwise rendering and functioning as I would expect.
page:
<h:form enctype="multipart/form-data">
<t:inputFileUpload value="#{Bean.uploadedFile}" />
<h:commandButton type="submit" id="Submit" value="Submit" action="#{Bean.submit}"/>
<h:messages />
</h:form>
bean:
protected UploadedFile uploadedFile;
public UploadedFile getUploadedFile() { return this.uploadedFile; }
public void setUploadedFile(UploadedFile uploadedFile) {
this.uploadedFile = uploadedFile;}
public String submit() throws IOException {
String fileName = FilenameUtils.getName(uploadedFile.getName()); // exception here!!
String contentType = uploadedFile.getContentType();
byte[] bytes = uploadedFile.getBytes();
FacesContext.getCurrentInstance().addMessage(null,
new FacesMessage(String.format("File '%s' of type '%s' successfully uploaded!",
fileName, contentType)));
return "success";
}
The exception happens on the first line of submit. In the debugger I see that uploadedFile is null. The jsf page looks fine and I can use the browse button to choose a file. After I press submit I see uploadedFile in the bean is null.
Error message:
16:06:59,699 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/Framework].[Faces Servlet]] (http--127.0.0.1-8080-2) Servlet.service() for servlet Faces Servlet threw exception: java.lang.NullPointerException
at net.gui.bean.Bean.submit(Bean.java:118) [classes:]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_30]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [:1.6.0_30]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [:1.6.0_30]
at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0_30]
at org.apache.el.parser.AstValue.invoke(AstValue.java:196) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
at com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:105) [jsf-impl-2.1.3-b02-jbossorg-2.jar:2.1.3-SNAPSHOT]
at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:88) [jboss-jsf-api_2.1_spec-2.0.0.Beta1.jar:2.0.0.Beta1]
at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102) [jsf-impl-2.1.3-b02-jbossorg-2.jar:2.1.3-SNAPSHOT]
at javax.faces.component.UICommand.broadcast(UICommand.java:315) [jboss-jsf-api_2.1_spec-2.0.0.Beta1.jar:2.0.0.Beta1]
at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:794) [jboss-jsf-api_2.1_spec-2.0.0.Beta1.jar:2.0.0.Beta1]
at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1259) [jboss-jsf-api_2.1_spec-2.0.0.Beta1.jar:2.0.0.Beta1]
at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:81) [jsf-impl-2.1.3-b02-jbossorg-2.jar:2.1.3-SNAPSHOT]
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101) [jsf-impl-2.1.3-b02-jbossorg-2.jar:2.1.3-SNAPSHOT]
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118) [jsf-impl-2.1.3-b02-jbossorg-2.jar:2.1.3-SNAPSHOT]
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:593) [jboss-jsf-api_2.1_spec-2.0.0.Beta1.jar:2.0.0.Beta1]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:357) [tomahawk20-1.1.11.jar:]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
at net.gui.filter.HibernateSessionRequestFilter.doFilter(HibernateSessionRequestFilter.java:34) [classes:]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
at net.gui.filter.NAISAuthFilter.doFilter(NAISAuthFilter.java:59) [classes:]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:139) [jboss-as-web-7.0.2.Final.jar:7.0.2.Final]
at org.jboss.as.web.NamingValve.invoke(NamingValve.java:57) [jboss-as-web-7.0.2.Final.jar:7.0.2.Final]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:154) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:667) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:952) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
at java.lang.Thread.run(Thread.java:662) [:1.6.0_30]
web.xml:
<filter>
<filter-name>MyFacesExtensionsFilter</filter-name>
<filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>MyFacesExtensionsFilter</filter-name>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<filter>
<filter-name>NaisAuth</filter-name>
<filter-class>net.gui.filter.NAISAuthFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>NaisAuth</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<filter>
<filter-name>HibernateFilter</filter-name>
<filter-class> net.gui.filter.HibernateSessionRequestFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>HibernateFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
That can happen when either NAISAuthFilter or HibernateSessionRequestFilter have accessed the request body beforehand by getParameter(), getReader(), etc. This way the request body is already parsed before the ExtensionsFilter ever get chance to do it.
Either fix those filters, or rearrange the mapping of ExtensionsFilter in web.xml to be declared before those filters.
Another possible cause is that you're actually nesting multiple <h:form> compnents in each other. This will result in illegal HTML syntax and the browser behaviour is unspecified as to processing form submits. You need to ensure that you aren't nesting forms (multiple forms in parallel is however perfectly valid).