[JBoss Seam] - <s:convertEntity> with ajax support
by trouby
Hey,
I get a NPE when trying to combine selectItems+convertEntity+a4j support,
I have the following code (with facelets)
| <h:selectOneMenu id="someId" value="#{myEjb.sb1}" required="false">
| <s:selectItems value="#{someList.resultList}" var="ia" label="#{ia.name}" noSelectionLabel="Any"/>
| <s:convertEntity/>
| <a:support event="onchange" action="#{myManager.valueChanged}" ajaxSingle="true" reRender="actionsPanel" />
| </h:selectOneMenu>
|
Of course I have the action in myManager and 'someList' is an EJBql defined in components.xml file.
When modifying the selectbox options I get the following exception:
| [#|2007-06-04T00:35:22.203+0300|WARNING|sun-appserver9.1|javax.enterprise.resource.webcontainer.jsf.lifecycle|_ThreadID=16;_ThreadName=httpSSLWorkerThread-8181-1;_RequestID=6a591edb-53f3-4cd5-9912-6686251f41f5;|executePhase(PROCESS_VALIDATIONS 3,com.sun.faces.context.FacesContextImpl@15f30ad) threw exception
| javax.faces.FacesException
| at com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:108)
| at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
| at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
| at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
| at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:398)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:185)
| at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:97)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:217)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:185)
| at org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:127)
| at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:277)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:217)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:185)
| at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:63)
| at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:57)
| at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
| at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
| at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
| at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:79)
| at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
| at org.jboss.seam.web.SeamFilter.doFilter(SeamFilter.java:84)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:217)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:185)
| at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:144)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:217)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:185)
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
| at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:255)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:188)
| at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:611)
| at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:564)
| at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:81)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:193)
| at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:611)
| at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:564)
| at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:558)
| at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1067)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
| at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:611)
| at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:564)
| at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:558)
| at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1067)
| at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:255)
| at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:618)
| at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:549)
| at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:790)
| at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:326)
| at com.sun.enterprise.web.connector.grizzly.ssl.SSLReadTask.process(SSLReadTask.java:427)
| at com.sun.enterprise.web.connector.grizzly.ssl.SSLReadTask.doTask(SSLReadTask.java:215)
| at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
| at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:93)
| Caused by: java.lang.NullPointerException
| at org.jboss.seam.core.Interpolator.interpolate(Interpolator.java:65)
| at org.jboss.seam.core.FacesMessages.createFacesMessage(FacesMessages.java:348)
| at org.jboss.seam.entityconverter.AbstractEntityConverter.getMessage(AbstractEntityConverter.java:60)
| at org.jboss.seam.entityconverter.EntityConverter.getIdAsObject(EntityConverter.java:154)
| at org.jboss.seam.entityconverter.AbstractEntityConverter.getAsObject(AbstractEntityConverter.java:100)
| at org.jboss.seam.ui.PrioritizableConverter.getAsObject(PrioritizableConverter.java:61)
| at org.jboss.seam.ui.ConverterChain.getAsObject(ConverterChain.java:103)
| at com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getConvertedValue(HtmlBasicInputRenderer.java:152)
| at com.sun.faces.renderkit.html_basic.MenuRenderer.convertSelectOneValue(MenuRenderer.java:197)
| at com.sun.faces.renderkit.html_basic.MenuRenderer.getConvertedValue(MenuRenderer.java:359)
| at javax.faces.component.UIInput.getConvertedValue(UIInput.java:934)
| at javax.faces.component.UIInput.validate(UIInput.java:860)
| at javax.faces.component.UIInput.executeValidate(UIInput.java:1065)
| at javax.faces.component.UIInput.processValidators(UIInput.java:666)
| at org.ajax4jsf.framework.ajax.AjaxViewRoot.processValidators(AjaxViewRoot.java:331)
| at com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:100)
| ... 51 more
| |#]
|
thanks,
Asaf.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4050766#4050766
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4050766
18Â years, 10Â months
[JBoss jBPM] - apache ode in JBoss-4.2.0.GA ?
by zauberlehrling
Hi,
does anybody know how to install apache ode in JBoss-4.2.0.GA?
When I copy ode.war into the deployment directory $JBOSS_HOME/server/default/deploy I see the following exceptions:
22:48:31,933 INFO [STDOUT] ERROR - GeronimoLog.error(108) | Error instantiating DAO Connection Factory class org.apache.ode.dao.jpa.BPELDAOConnectionFactoryImpl.
| java.lang.ClassCastException: org.hibernate.ejb.HibernatePersistence
| at javax.persistence.Persistence.findAllProviders(Persistence.java:112)
| at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:79)
| at org.apache.ode.dao.jpa.BPELDAOConnectionFactoryImpl.init(BPELDAOConnectionFactoryImpl.java:108)
| at org.apache.ode.il.dbutil.Database.createDaoCF(Database.java:267)
| at org.apache.ode.axis2.ODEServer.initDAO(ODEServer.java:410)
| at org.apache.ode.axis2.ODEServer.init(ODEServer.java:144)
| at org.apache.ode.axis2.hooks.ODEAxisServlet.init(ODEAxisServlet.java:47)
| at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1161)
| at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981)
| at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4069)
| at org.apache.catalina.core.StandardContext.start(StandardContext.java:4373)
| at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:761)
| at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:741)
| at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:553)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297)
| at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.apache.catalina.core.StandardContext.init(StandardContext.java:5310)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297)
| at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.web.tomcat.service.TomcatDeployer.performDeployInternal(TomcatDeployer.java:301)
| at org.jboss.web.tomcat.service.TomcatDeployer.performDeploy(TomcatDeployer.java:104)
| at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:375)
| at org.jboss.web.WebModule.startModule(WebModule.java:83)
| at org.jboss.web.WebModule.startService(WebModule.java:61)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
| at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
| at $Proxy0.start(Unknown Source)
| at org.jboss.system.ServiceController.start(ServiceController.java:417)
| at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy45.start(Unknown Source)
| at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:466)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
| at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
| at org.jboss.ws.integration.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:93)
| at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
| at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy46.start(Unknown Source)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
| at sun.reflect.GeneratedMethodAccessor18.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy9.deploy(Unknown Source)
| at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
| at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)
| 22:48:31,946 INFO [STDOUT] ERROR - StandardContext.loadOnStartup(4071) | Servlet /ode threw load() exception
| java.lang.ClassCastException: org.hibernate.ejb.HibernatePersistence
| at javax.persistence.Persistence.findAllProviders(Persistence.java:112)
| at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:79)
| at org.apache.ode.dao.jpa.BPELDAOConnectionFactoryImpl.init(BPELDAOConnectionFactoryImpl.java:108)
| at org.apache.ode.il.dbutil.Database.createDaoCF(Database.java:267)
| at org.apache.ode.axis2.ODEServer.initDAO(ODEServer.java:410)
| at org.apache.ode.axis2.ODEServer.init(ODEServer.java:144)
| at org.apache.ode.axis2.hooks.ODEAxisServlet.init(ODEAxisServlet.java:47)
| at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1161)
| at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981)
| at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4069)
| at org.apache.catalina.core.StandardContext.start(StandardContext.java:4373)
| at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:761)
| at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:741)
| at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:553)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297)
| at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.apache.catalina.core.StandardContext.init(StandardContext.java:5310)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297)
| at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.web.tomcat.service.TomcatDeployer.performDeployInternal(TomcatDeployer.java:301)
| at org.jboss.web.tomcat.service.TomcatDeployer.performDeploy(TomcatDeployer.java:104)
| at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:375)
| at org.jboss.web.WebModule.startModule(WebModule.java:83)
| at org.jboss.web.WebModule.startService(WebModule.java:61)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
| at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
| at $Proxy0.start(Unknown Source)
| at org.jboss.system.ServiceController.start(ServiceController.java:417)
| at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy45.start(Unknown Source)
| at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:466)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
| at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
| at org.jboss.ws.integration.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:93)
| at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
| at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy46.start(Unknown Source)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
| at sun.reflect.GeneratedMethodAccessor18.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy9.deploy(Unknown Source)
| at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
| at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)
|
Best regards,
Frank
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4050764#4050764
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4050764
18Â years, 10Â months
[JBoss Seam] - JSF Component binding with conversation scope seam component
by ryildirim
I use JBoss 4.0.5, Seam 1.2.1 and a seam-gen generated application. My application uses ajax4jsf heavily and I suspect this problem might be related with the conversation propagation with the ajax4jsf requests.
When I try to use component binding
<rich:dataTable value="#{girisHome.girisHarekets}" binding="#{ajaxSupport.dataTable}".....
and ajaxSupport is like
@Name("ajaxSupport")
@Scope(ScopeType.CONVERSATION)
public class AjaxSupport {
private UIData dataTable;
......
The page loads okay for the first time, because it creates the non-existent conversation scoped ajaxSupport component and binds the jsf component to the dataTable property of the seam component. However, subsequent request to the same page results in:
javax.faces.el.PropertyNotFoundException: /GirisEdit.xhtml @206,53 binding="#{ajaxSupport.dataTable}": Target Unreachable, identifier 'ajaxSupp
at com.sun.facelets.el.LegacyValueBinding.isReadOnly(LegacyValueBinding.java:84)
at org.apache.myfaces.shared_impl.util.RestoreStateUtils.recursivelyHandleComponentReferencesAndSetValid(RestoreStateUtils.java:84)
at org.apache.myfaces.shared_impl.util.RestoreStateUtils.recursivelyHandleComponentReferencesAndSetValid(RestoreStateUtils.java:57)
at org.apache.myfaces.shared_impl.util.RestoreStateUtils.recursivelyHandleComponentReferencesAndSetValid(RestoreStateUtils.java:94)
at org.apache.myfaces.shared_impl.util.RestoreStateUtils.recursivelyHandleComponentReferencesAndSetValid(RestoreStateUtils.java:57)
at org.apache.myfaces.shared_impl.util.RestoreStateUtils.recursivelyHandleComponentReferencesAndSetValid(RestoreStateUtils.java:94)
at org.apache.myfaces.shared_impl.util.RestoreStateUtils.recursivelyHandleComponentReferencesAndSetValid(RestoreStateUtils.java:57)
at org.apache.myfaces.shared_impl.util.RestoreStateUtils.recursivelyHandleComponentReferencesAndSetValid(RestoreStateUtils.java:94)
at org.apache.myfaces.shared_impl.util.RestoreStateUtils.recursivelyHandleComponentReferencesAndSetValid(RestoreStateUtils.java:57)
at org.apache.myfaces.lifecycle.RestoreViewExecutor.execute(RestoreViewExecutor.java:96)
at org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:95)
By the way, when I change the component's scope to SESSION everything works fine.
Below is how the request is triggered from the client. An ajax4jsf request.
<h:outputText id="urunAdiText" rendered="#{not girisHareket.active}" value="#{girisHareket.urun.urunAdi}">
<a:support event="onclick" actionListener="#{ajaxSupport.onClick}" reRender="hareketPanel"/>
</h:outputText>
Any ideas what's going wrong?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4050763#4050763
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4050763
18Â years, 10Â months
[JBoss Seam] - Re: TestNG , EntityHome , No application context active
by laurence_kirk
this is the test code
The persist does succeed, and I get a row in the db, so I'm assuming its something about TestNG that I havent get set up correctly.
| @Test
| public final void testCreate()
| {
|
| EntityManagerFactory emf = Persistence.createEntityManagerFactory("entityManager");
| System.out.println("created emf "+ emf);
| EntityManager em = emf.createEntityManager();
| TestEntityHome teh = new TestEntityHome();
|
| teh.setEntityManager(em);
| em.getTransaction().begin();
| TestEntity te = teh.createInstance();
| te.setId(12);
| teh.setInstance(te);
| teh.getInstance();
| teh.persist();
| em.getTransaction().commit();
|
|
| }
|
TestEntityHome is a sublcass of Entity Home as follows
| public class TestEntityHome<E> extends EntityHome
| {
|
| @Override
| public TestEntity createInstance()
| {
|
| TestEntity te = new TestEntity();
| return te;
| }
|
| }
|
anonymous wrote :
| [testng] 20:07:10,359 INFO [SchemaUpdate] schema update complete
| [testng] created emf org.hibernate.ejb.EntityManagerFactoryImpl@186d484
| [testng] 20:07:10,625 INFO [DriverManagerConnectionProvider] cleaning up connection pool: jdbc:mysql://*********
| [testng] 20:07:10,640 INFO [DriverManagerConnectionProvider] cleaning up connection pool: jdbc:mysql://***********
| [testng] 20:07:10,843 WARN [AbstractEntityManagerImpl] Calling joinTransaction() on a non JTA EntityManager
| [testng] Hibernate: insert into XTEST (name, id) values (?, ?)
| [testng] Creating E:\jbossseam\dev\testp1\test-report\Entity Home Test.html
| [testng] FAILED: org.jboss.seam.mock.SeamTest.end()
| [testng] java.lang.NullPointerException
| [testng] at org.jboss.seam.contexts.WebApplicationContext.get(WebApplicationContext.java:48)
| [testng] at org.jboss.seam.Component.forName(Component.java:1579)
| [testng] at org.jboss.seam.Component.getInstance(Component.java:1627)
| [testng] at org.jboss.seam.Component.getInstance(Component.java:1622)
| [testng] at org.jboss.seam.Component.getInstance(Component.java:1599)
| [testng] at org.jboss.seam.Component.getInstance(Component.java:1594)
| [testng] at org.jboss.seam.core.ConversationEntries.instance(ConversationEntries.java:91)
| [testng] at org.jboss.seam.contexts.Lifecycle.endSession(Lifecycle.java:284)
| [testng] at org.jboss.seam.mock.SeamTest.end(SeamTest.java:676)
| [testng] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| [testng] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| [testng] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| [testng] at java.lang.reflect.Method.invoke(Method.java:585)
| [testng] at org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:529)
| [testng] at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:311)
| [testng] at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:149)
| [testng] at org.testng.internal.Invoker.invokeMethod(Invoker.java:467)
| [testng] at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:625)
| [testng] at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:88)
| [testng] at org.testng.TestRunner.privateRun(TestRunner.java:614)
| [testng] at org.testng.TestRunner.run(TestRunner.java:505)
| [testng] at org.testng.SuiteRunner.privateRun(SuiteRunner.java:221)
| [testng] at org.testng.SuiteRunner.run(SuiteRunner.java:147)
| [testng] at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:576)
| [testng] at org.testng.TestNG.runSuitesLocally(TestNG.java:539)
| [testng] at org.testng.TestNG.run(TestNG.java:316)
| [testng] at org.testng.TestNG.privateMain(TestNG.java:666)
| [testng] at org.testng.TestNG.main(TestNG.java:608)
| [testng] FAILED: test.ActualTestClass.testCreate()
| [testng] java.lang.IllegalStateException: No application context active
| [testng] at org.jboss.seam.Component.forName(Component.java:1577)
| [testng] at org.jboss.seam.Component.getInstance(Component.java:1627)
| [testng] at org.jboss.seam.Component.getInstance(Component.java:1622)
| [testng] at org.jboss.seam.Component.getInstance(Component.java:1599)
| [testng] at org.jboss.seam.Component.getInstance(Component.java:1594)
| [testng] at org.jboss.seam.persistence.PersistenceProvider.instance(PersistenceProvider.java:56)
| [testng] at org.jboss.seam.framework.EntityHome.persist(EntityHome.java:50)
| [testng] at test.ActualTestClass.testCreate(ActualTestClass.java:63)
| [testng] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| [testng] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| [testng] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| [testng] at java.lang.reflect.Method.invoke(Method.java:585)
| [testng] at org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:529)
| [testng] at org.testng.internal.Invoker.invokeMethod(Invoker.java:398)
| [testng] at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:625)
| [testng] at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:88)
| [testng] at org.testng.TestRunner.privateRun(TestRunner.java:614)
| [testng] at org.testng.TestRunner.run(TestRunner.java:505)
| [testng] at org.testng.SuiteRunner.privateRun(SuiteRunner.java:221)
| [testng] at org.testng.SuiteRunner.run(SuiteRunner.java:147)
| [testng] at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:576)
| [testng] at org.testng.TestNG.runSuitesLocally(TestNG.java:539)
| [testng] at org.testng.TestNG.run(TestNG.java:316)
| [testng] at org.testng.TestNG.privateMain(TestNG.java:666)
| [testng] at org.testng.TestNG.main(TestNG.java:608)
| [testng] SKIPPED: destroy
| [testng] SKIPPED: cleanup
| [testng] ===============================================
| [testng] Entity Home Test
| [testng] Tests run: 4, Failures: 2, Skips: 2
| [testng] ===============================================
| [testng] Creating E:\jbossseam\dev\testp1\test-report\testng-failed.xml
| [testng] ===============================================
| [testng] Entity Home
| [testng] Total tests run: 4, Failures: 2, Skips: 2
| [testng] ===============================================
| [testng] Creating E:\jbossseam\dev\testp1\test-report\toc.html
| [testng] Creating E:\jbossseam\dev\testp1\test-report\Entity Home Test.properties
| [testng] Creating E:\jbossseam\dev\testp1\test-report\index.html
| [testng] Creating E:\jbossseam\dev\testp1\test-report\main.html
| [testng] Creating E:\jbossseam\dev\testp1\test-report\groups.html
| [testng] Creating E:\jbossseam\dev\testp1\test-report\methods.html
| [testng] Creating E:\jbossseam\dev\testp1\test-report\classes.html
| BUILD SUCCESSFUL
| Total time: 21 seco
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4050761#4050761
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4050761
18Â years, 10Â months