[JBoss Messaging] - Unexpected error delivering message delegator
by boniek
Im getting the following exception:
2007-10-08 11:55:56,201 ERROR [org.jboss.resource.adapter.jms.inflow.JmsServerSession] Unexpected error delivering message delegator->JBossMessage[264975]:PERSISTENT, deliveryId=159
| javax.ejb.EJBException: Failed to acquire the pool semaphore, strictTimeout=10000
| at org.jboss.ejb3.StrictMaxPool.get(StrictMaxPool.java:122)
| at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:54)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.mdb.MessagingContainer.localInvoke(MessagingContainer.java:245)
| at org.jboss.ejb3.mdb.inflow.MessageInflowLocalProxy.delivery(MessageInflowLocalProxy.java:268)
| at org.jboss.ejb3.mdb.inflow.MessageInflowLocalProxy.invoke(MessageInflowLocalProxy.java:138)
| at $Proxy4055.onMessage(Unknown Source)
| at org.jboss.resource.adapter.jms.inflow.JmsServerSession.onMessage(JmsServerSession.java:178)
| at org.jboss.jms.client.container.ClientConsumer.callOnMessage(Unknown Source)
| at org.jboss.jms.client.container.SessionAspect.handleRun(Unknown Source)
| at org.jboss.aop.advice.org.jboss.jms.client.container.SessionAspect14.invoke(SessionAspect14.java)
| at org.jboss.jms.client.delegate.ClientSessionDelegate$run_N8003352271541955702.invokeNext(ClientSessionDelegate$run_N8003352271541955702.java)
| at org.jboss.jms.client.container.ClosedInterceptor.invoke(Unknown Source)
| at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:105)
| at org.jboss.jms.client.delegate.ClientSessionDelegate$run_N8003352271541955702.invokeNext(ClientSessionDelegate$run_N8003352271541955702.java)
| at org.jboss.jms.client.delegate.ClientSessionDelegate.run(Unknown Source)
| at org.jboss.jms.client.JBossSession.run(Unknown Source)
| at org.jboss.resource.adapter.jms.inflow.JmsServerSession.run(JmsServerSession.java:237)
| at org.jboss.resource.work.WorkWrapper.execute(WorkWrapper.java:204)
| at org.jboss.util.threadpool.BasicTaskWrapper.run(BasicTaskWrapper.java:275)
| at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:743)
| at java.lang.Thread.run(Thread.java:595)
Running JBoss 4.2.1.GA and JBM 1.4.0.GA in two-node cluster.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4092467#4092467
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4092467
18Â years, 8Â months
[JBoss Seam] - NoClassDefFoundError: org/cyberneko/html/filters/ElementRemo
by franck93
Does anyone know why adding the following leads to an error ?
| <context-param>
| <param-name>org.ajax4jsf.xmlparser.ORDER</param-name>
| <param-value>TIDY,NEKO,NONE</param-value>
| </context-param>
|
| <context-param>
| <param-name>org.ajax4jsf.xmlparser.TIDY</param-name>
| <param-value>webdoc.xhtml</param-value>
| </context-param>
|
This is for deactivating the richfaces filter on the pages that provide download fields such as pdf. (because there's a bug in this filter)
java.lang.NoClassDefFoundError: org/cyberneko/html/filters/ElementRemover
| at org.ajax4jsf.webapp.nekko.NekkoParser.<init>(NekkoParser.java:81)
| at org.ajax4jsf.webapp.ConfigurableXMLFilter$NekoParserConfig.createParser(ConfigurableXMLFilter.java:140)
| at org.ajax4jsf.webapp.ParserConfig.getParser(ParserConfig.java:30)
| at org.ajax4jsf.webapp.ParserConfig.getParser(ParserConfig.java:34)
| at org.ajax4jsf.webapp.ConfigurableXMLFilter.getParser(ConfigurableXMLFilter.java:109)
| at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:259)
| at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
| at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:150)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
| at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
| at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
| at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
| at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
| at java.lang.Thread.run(Thread.java:595)
|
I understand that i don't have this class (org/cyberneko/html/filters/ElementRemover) in my classpath but i don't know why it does not come with the richfaces nor which filter is used in what order when org.ajax4jsf.xmlparser.ORDER is not defined in web.xml.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4092461#4092461
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4092461
18Â years, 8Â months
[JBoss Seam] - Seam Managed ActionHandler
by jgeraert
Hello all,
I'm trying to create a seam managed Action Handler for a jbpm node ( not a task node ). I want to inject a variable into this action which is outjected in a another SLSB.
My process definition:
|
| <?xml version="1.0"?>
| <process-definition name="inkless">
| <start-state name="start">
| <transition name="" to="node1"></transition>
| </start-state>
| <end-state name="end1"></end-state>
| <node name="node1">
| <action name="action1" expression="#{bar.foo}"/>
| <transition name="" to="end1"></transition>
|
| </node>
|
| </process-definition>
|
|
The code that creates the process and Outjects a Context variable:
|
| @Stateless
| @Name("inklessProcessManager")
| @Interceptors(SeamInterceptor.class)
| public class InklessProcessManagerImpl implements InklessProcessManager {
|
| @Out(scope=ScopeType.BUSINESS_PROCESS, value="foo") Integer someThing;
|
| @CreateProcess(definition="inkless")
| public void startProcess() {
| someThing=new Integer(5);
| }
|
| }
|
|
And now my actionhandler which is called in the process definition:
|
| @Stateless
| @Name("bar")
| @Interceptors(SeamInterceptor.class)
| public class BlahBlahActionHandler implements IActionHandler {
|
| /* (non-Javadoc)
| * @see com.melexis.inkless.IActionHandler#foo()
| */
| @In(value="foo", scope=ScopeType.BUSINESS_PROCESS) Integer foe;
|
|
| @TransactionAttribute(TransactionAttributeType.REQUIRES_NEW)
| public void foo(){
| System.out.println("Foooooooooooooo");
| System.out.println(foe);
| }
|
| }
|
|
And finally the exception i receive:
|
| Caused by: javax.ejb.EJBException: org.jboss.seam.RequiredException: In attribute requires non-null value: bar.foo
| at org.jboss.ejb3.tx.Ejb3TxPolicy.handleExceptionInOurTx(Ejb3TxPolicy.java:63)
| at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:83)
| at org.jboss.aspects.tx.TxInterceptor$RequiresNew.invoke(TxInterceptor.java:253)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)
| 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:106)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:46)
| 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.localInvoke(StatelessContainer.java:214)
| at org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessContainer.java:184)
| at org.jboss.ejb3.stateless.StatelessLocalProxy.invoke(StatelessLocalProxy.java:81)
| at $Proxy101.foo(Unknown Source)
| 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.seam.util.Reflections.invoke(Reflections.java:21)
| at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)
| at org.jboss.seam.intercept.ClientSideInterceptor$1.proceed(ClientSideInterceptor.java:76)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
| at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:106)
| at org.jboss.seam.intercept.ClientSideInterceptor.invoke(ClientSideInterceptor.java:54)
| at org.javassist.tmp.java.lang.Object_$$_javassist_2.foo(Object_$$_javassist_2.java)
| 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.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:328)
| ... 170 more
|
|
I'm just starting out with jboss seam so it might be my own incompetence, but i think i understood the documentation correctly.
Can someone point out what i'm doing wrong? Thank you.
Best regards,
Jo
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4092453#4092453
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4092453
18Â years, 8Â months
[JBoss Seam] - Re: Seam @In EntityManager vs. Extended Persistence context.
by marius.oancea
Just for clarification some of my requirements:
- Session scoped "leftTreeBean" (because conversation is too short)
- "leftTreebean" provides a getRoot method that creates a new TreeNodeimpl and makes db query to populate first level of the tree. Tree nodes are a custom class ClazzTreeNode.
ClazzTreeNode is not a seam component. Just a java object. Its "getChildren" makes a database call to a dao to find out the children of a specific node.
I would like to push the code to findChildrens, findFirstLevel and so on into another classes (DAO) to be able to reuse them.
Note:
During working with the application tree can be modified.
| Tree is huge (about 2.5 million nodes) so it cannot be loaded in memory.
| I expect DAO-s to be stateless session beans
|
| I use richfaces with ajax switch type.
|
| Any critics to this design ?
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4092447#4092447
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4092447
18Â years, 8Â months