[JBoss Seam] - A4JSF ActionListener not working
by damatrix
Hello,
I'm using seam 1.2.1.GA, and ajax4jsf. Following the booking example, I have an ajax actionListener attached to an input field as follows
| <s:decorate id="titleDecorate" template="../templates/edit.xhtml">
| <ui:define name="label">Title </ui:define>
| <h:inputText id="title" value="#{fairManager.objectTitle}" required="true">
| <a:support event="onblur" actionListener="#{fairManager.checkTitle}" reRender="titleDecorate"/>
| </h:inputText>
| </s:decorate>
|
The "fairManager" here is a CONVERSATION scoped stateful session bean. When i debug, i find that the "fairManager.checkTitle" method is never called. Is there any reason why? I have a similar actionListener on a SESSION scoped SFSB, and it works alright. I don't know why this one doesn't.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4033547#4033547
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4033547
17 years, 1 month
[EJB/JBoss] - RuntimeException: java.lang.NullPointerException in JBoss 4.
by tonylmai
Does anyone know the cause of this exception?
Thanks
------------------
anonymous wrote : java.lang.RuntimeException: java.lang.NullPointerException
| at org.jboss.ejb3.interceptor.LifecycleInterceptorHandler.postConstruct(LifecycleInterceptorHandler.java:113)
| at org.jboss.ejb3.EJBContainer.invokePostConstruct(EJBContainer.java:505)
| at org.jboss.ejb3.AbstractPool.create(AbstractPool.java:112)
| at org.jboss.ejb3.ThreadlocalPool.get(ThreadlocalPool.java:48)
| at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:54)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77)
| at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:102)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:263)
| at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:106)
| at org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82)
| at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:828)
| at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:681)
| at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:358)
| at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:398)
| at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:239)
| Caused by: java.lang.NullPointerException
| at org.jboss.ejb3.entity.ManagedEntityManagerFactory.getNonTxEntityManager(ManagedEntityManagerFactory.java:59)
| at org.jboss.ejb3.entity.ManagedEntityManagerFactory.getTransactionScopedEntityManager(ManagedEntityManagerFactory.java:164)
| at org.jboss.ejb3.entity.TransactionScopedEntityManager.createQuery(TransactionScopedEntityManager.java:125)
| at com.judots.exchange.maintenance.ExchangeMaintenanceBean.init(ExchangeMaintenanceBean.java:49)
| 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.jboss.ejb3.interceptor.LifecycleInvocationContextImpl.proceed(LifecycleInvocationContextImpl.java:159)
| at org.jboss.ejb3.interceptor.LifecycleInterceptorHandler.postConstruct(LifecycleInterceptorHandler.java:109)
| at org.jboss.ejb3.EJBContainer.invokePostConstruct(EJBContainer.java:505)
| at org.jboss.ejb3.AbstractPool.create(AbstractPool.java:112)
| at org.jboss.ejb3.ThreadlocalPool.get(ThreadlocalPool.java:48)
| at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:54)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77)
| at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:102)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:263)
| at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:106)
| at org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82)
| at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:828)
| at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:681)
| at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:358)
| at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:398)
| at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:239)
| at org.jboss.remoting.RemoteClientInvoker.invoke(RemoteClientInvoker.java:190)
| at org.jboss.remoting.Client.invoke(Client.java:525)
| at org.jboss.remoting.Client.invoke(Client.java:488)
| at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:55)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:61)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.aspects.security.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:53)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:77)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.stateless.StatelessRemoteProxy.invoke(StatelessRemoteProxy.java:102)
| at $Proxy6.loadExchangeData(Unknown Source)
| at com.judots.exchange.test.LoadExchangeData.openExchange(LoadExchangeData.java:67)
| 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.junit.internal.runners.TestMethodRunner.executeMethodBody(TestMethodRunner.java:99)
| at org.junit.internal.runners.TestMethodRunner.runUnprotected(TestMethodRunner.java:81)
| at org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)
| at org.junit.internal.runners.TestMethodRunner.runMethod(TestMethodRunner.java:75)
| at org.junit.internal.runners.TestMethodRunner.run(TestMethodRunner.java:45)
| at org.junit.internal.runners.TestClassMethodsRunner.invokeTestMethod(TestClassMethodsRunner.java:71)
| at org.junit.internal.runners.TestClassMethodsRunner.run(TestClassMethodsRunner.java:35)
| at org.junit.internal.runners.TestClassRunner$1.runUnprotected(TestClassRunner.java:42)
| at org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)
| at org.junit.internal.runners.TestClassRunner.run(TestClassRunner.java:52)
| at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:38)
| at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
| at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
| at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
| at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
| at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
|
|
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4033546#4033546
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4033546
17 years, 1 month
[JBoss jBPM] - Talk by 'guru' Tom Bayens on jBPM/jPDL in Zurich (Switzerlan
by bela@jboss.com
FYI: abstract is below. The link is http://www.jugs.ch/html/events/2007/jboss.html
re you considering developing a homegrown workflow engine? Then you should definitely attend this session first. Java Process Definition Language (jPDL) is a language for expressing long-running processes. Unlike most orchestration technologies, jPDL focuses on plain Java technology and includes sophisticated task management capabilities. Attendees learn in which scenarios jPDL is more appropriate than BPEL or other process languages.
Human tasks and other forms of wait states are typically quite a hassle in server-side programming. Developers have to think in terms of requests and manually maintain the user tasks in a database. In the structure of a server-side application, it's very hard to get a picture of the overview. jPDL gives you back that overview. Handling an insurance claim, submitting and handling an expense note, or going through a lawsuit are good examples of long-running processes. jPDL allows users to express the overall execution of these processes in terms of the JavaBeans architecture, user tasks, and other forms of wait states. These processes can be edited and viewed graphically. jPDL leverages the unified expression language (EL) to easily bind your POJOs to the process flow, and it leverages Hibernate to store the state of the long-running processes in the users' database.
On the one hand, jPDL has all the required features for business process management (BPM), but on the other hand, jPDL is also designed to fit like a glove on standard and enterprise Java applications. Ease of use for developers on the Java platform is often neglected in BPM offerings, and jPDL solves this problem.
Tom Baeyens is the founder and lead developer of JBoss jBPM, the leading open source workflow management system. He participated for JBoss in the expert groups JSR207 "process definition for java" and JSR208 "java
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4033542#4033542
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4033542
17 years, 1 month
[JBoss Seam] - Re: Question on Converter
by hasc
sorry i was wrong. it seems to use the converter.
i have a question regarding the converter.
#{calculator.area}
the expression references a property which is defined here:
@Stateful
| class CalculatorBean implements Calculator
|
| float area;
| public void setArea(float area)
| {
| this.area = area;
| }
|
| public float getArea()
| {
| return area;
| }
|
| public void calculate(){do something}
|
now what i want is, that if the property area is not set, the form field should be empty.
if no converter is specified #{calculator.area} is rendered to "0.0".
I tried the following in the toString method of the AreaConverter class:
| public String getAsString(FacesContext facesContext, UIComponent component, Object obj)
| {
| if(obj == null || obj.equals(0.0))
| {
| String str = "";
| return str;
| }
|
| return obj.toString();
| }
|
but it still returns "0.0"
has somone a hint why this happens?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4033538#4033538
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4033538
17 years, 1 month
[JBoss Seam] - Problems moving from JBoss 4.0.4GA to 4.0.5GA and Seam 1.0.1
by akearns@proliphix.com
Prior to testing my application I built and deployed the seam booking example.
My running/deployed application under JBoss 4.0.4 GA uses
1) a base abstract class
2) a common class that extends from base class
3) multiple different classes that extend from common class each containing unqiue additional attributes for that class. The following is an attempt at specifing that heirarchy.
Abstract Class
@Entity
@Name("id")
@Table(name = "pro_id")
@Inheritance(strategy = InheritanceType.JOINED)
public abstract class ProId implements Serializable {
Common Class
@Entity
@Name("device")
@Table(name = "device")
@Inheritance(strategy = InheritanceType.JOINED)
public abstract class Deviceextends ProId implements Serializable {
Multiple Classes (Devices) with unique attributes
@Entity
@Name("deviceabc")
@Table(name = "device_abc")
public class DeviceAbc extends Device implements Serializable {
@Entity
@Name("devicedef")
@Table(name = "device_def")
public class DeviceDef extends Device implements Serializable {
When I attempt to deploy I get the following exception
2007-04-01 10:45:58,750 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/BiuCmsCommunication]] Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener
java.lang.IllegalStateException: Two components with the same name and precedence: device
at org.jboss.seam.init.Initialization.addComponentDescriptor(Initialization.java:347)
at org.jboss.seam.init.Initialization.installRole(Initialization.java:519)
at org.jboss.seam.init.Initialization.installScannedComponentAndRoles(Initialization.java:511)
at org.jboss.seam.init.Initialization.installScannedClass(Initialization.java:446)
at org.jboss.seam.init.Initialization.scanForComponents(Initialization.java:440)
at org.jboss.seam.init.Initialization.init(Initialization.java:422)
at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:33)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3763)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4211)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
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.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
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:5052)
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.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
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.tc5.TomcatDeployer.performDeployInternal(TomcatDeployer.java:297)
at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy(TomcatDeployer.java:103)
at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:371)
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)
I use the names DeviceAbc and Device in different xhtml in my client.
Can anyone explain what this error means? I found another posting for a similiar error, but that did not help.
Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4033536#4033536
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4033536
17 years, 1 month