[JBoss Messaging] - Re: Delayed Message Sucking
by timfox
"chip_schoch" wrote : W1 and W2 post response messages to response queue (Q2) on L1.
|
Ok so you've posted your messages to clustered response queue Q2 on L1
anonymous wrote :
| The MessageConsumer.receive() called by the L1 service receives the response messages it is waiting for.
|
Yes L1 should receive all the response messages
anonymous wrote :
| The MessageConsumer.receive() called by the L2 service never returns. The response messages that L2 is waiting for are stuck on L1-Q2.
|
If the messages are on Q2 on L1 the consumer on L1 should receive them all. A clustered queue *always* favours local consumers. I wouldn't expect the consumer on L2 to receive any of them
anonymous wrote :
| Eventually, they are sucked over to L2-Q2 and L2 finally receives them.
|
I guess this happens when you close the consumer on L1?
If you want your response queue to be only usable by your connection, you can use the distributed request/response pattern.
I.e. create a clustered temporary queue and pass that as the "replyTo" header in the message.
When the message is consumed, a reply is sent back to the destination that's specified in that header.
Sounds like that's what you want to do.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4110981#4110981
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4110981
18 years, 4 months
[JBoss Seam] - Nesting h:dataTable (Can't be done?)
by jtsimikas
I removed the inner <h:dataTable> and this now allows the outer <h:dataTable> to work properly when previously it was not.
So it seems you CAN NOT nest <h:dataTables>.
Although no error messages of any kind are displayed (c'mon how about some error messages). After setting breakpoints in the setters, I found only one set of datatable's setters were being called.
When I had the nested tables, the inner datatable setters were called but not the outer datatable. When I removed the inner datatable, the outer datatable setters then got called.
This means, I now have to construct another web page for the inner <h:dataTable>. I can't say that I'm really excited about doing this.
Has anybody worked with nested <h:datatables> and got it working.
If so can you please......................
reply with some code that I can look at.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4110979#4110979
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4110979
18 years, 4 months
[JBoss Seam] - SeamTest Unit Tests Working...But Not Integration Tests
by neilac333
Since I have my SeamTest unit tests running smoothly, I assumed I had my testing configuration correct. However, when I run the most basic integration test just to see what happens, I get an exception.
Here first is my classpath in Ant:
| <path id="seam.test.class.path.libs">
| <fileset dir="${seam-hibernate.lib.dir}"
| includes="*embedded*.jar,*-all.jar,jboss-deployers.jar"/>
| <pathelement path="${seam-hibernate.lib.dir}/bootstrap"/>
| <fileset dir="${sun-jsf.lib.dir}"/>
| <fileset dir="${commons.lib.dir}"/>
| <fileset dir="${seam-hibernate.lib.dir}" includes="jboss-seam.jar"/>
| </path>
|
Hopefully, the property names are self-explanatory.
Here now is my test:
| public void testSearchActionComponent() throws Exception {
| logger.debug("Starting method testSearchActionComponent");
|
| new ComponentTest() {
| protected void testComponents() throws Exception {
| getValue("#{identity.loggedIn}");
| }
|
| }.run();
| }
|
|
As you can see, this test won't win any awards for code coverage. I am simply trying to verify everything is configured as it should be.
Here now is the exception I am finding:
| java.lang.NullPointerException
| at org.jboss.seam.servlet.ServletApplicationMap.get(ServletApplicationMap.java:54)
| at org.jboss.seam.contexts.BasicContext.get(BasicContext.java:48)
| at org.jboss.seam.Component.getInstance(Component.java:1843)
| at org.jboss.seam.Component.getInstance(Component.java:1821)
| at org.jboss.seam.Component.getInstance(Component.java:1816)
| at org.jboss.seam.core.Expressions.instance(Expressions.java:253)
| at org.jboss.seam.mock.BaseSeamTest$ComponentTest.getValue(BaseSeamTest.java:152)
| at model.test.SearchActionAdvancedTest$1.testComponents(SearchActionAdvancedTest.java:39)
| at org.jboss.seam.mock.BaseSeamTest$ComponentTest.run(BaseSeamTest.java:170)
| at model.test.SearchActionAdvancedTest.testSearchActionComponent(SearchActionAdvancedTest.java:36)
| 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.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:604)
| at org.testng.internal.Invoker.invokeMethod(Invoker.java:470)
| at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:564)
| at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:830)
| at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125)
| at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:109)
| at org.testng.TestRunner.runWorkers(TestRunner.java:678)
| at org.testng.TestRunner.privateRun(TestRunner.java:624)
| at org.testng.TestRunner.run(TestRunner.java:495)
| at org.testng.SuiteRunner.runTest(SuiteRunner.java:300)
| at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:295)
| at org.testng.SuiteRunner.privateRun(SuiteRunner.java:275)
| at org.testng.SuiteRunner.run(SuiteRunner.java:190)
| at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:792)
| at org.testng.TestNG.runSuitesLocally(TestNG.java:765)
| at org.testng.TestNG.run(TestNG.java:699)
| at org.testng.TestNG.privateMain(TestNG.java:824)
| at org.testng.TestNG.main(TestNG.java:802)
|
I have looked at the samples, and I have even looked at what SeamGen gives me. I don't see anything different than what I have.
So then I tried adding a couple of SeamTest method calls to my test just for kicks:
| public void testSearchActionComponent() throws Exception {
| logger.debug("Starting method testSearchActionComponent");
| init();
| begin();
|
| new ComponentTest() {
| protected void testComponents() throws Exception {
| getValue("#{identity.loggedIn}");
| }
|
| }.run();
| }
|
|
As you can see, the only difference is adding two methods in SeamTest that I imagine help get everything going.
Here is the result of that:
| DEBUG [model.test.SearchActionAdvancedTest] Starting method testSearchActionComponent
| DEBUG [org.jboss.kernel.KernelFactory] Starting JBoss Kernel construction...
| DEBUG [org.jboss.kernel.KernelFactory] Completed JBoss Kernel construction. Duration: 63 milliseconds
| DEBUG [jboss.kernel.plugins.deployment.xml.BeanXMLDeployer] Parsing file:/C:/project/libs/seam-hibernate/bootstrap/conf/bootstrap-beans.xml took 407 milliseconds
| WARN [org.jboss.mx.loading.UnifiedLoaderRepository3] Tried to add non-URLClassLoader. Ignored
| ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] Error installing to Start: name=JMXKernel state=Create
| java.lang.NoSuchMethodError: org.jboss.system.ServiceController.setKernel(Lorg/jboss/kernel/Kernel;)V
| at org.jboss.embedded.adapters.JMXKernel.start(JMXKernel.java:160)
| 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.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:55)
| at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:107)
| at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)
| at org.jboss.kernel.plugins.dependency.KernelControllerContextActions.dispatchJoinPoint(KernelControllerContextActions.java:100)
| at org.jboss.kernel.plugins.dependency.KernelControllerContextActions$LifecycleAction.installAction(KernelControllerContextActions.java:582)
| at org.jboss.kernel.plugins.dependency.KernelControllerContextActions$KernelControllerContextAction.install(KernelControllerContextActions.java:175)
| at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
| at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:226)
| at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:593)
| at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:346)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:438)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:379)
| at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:225)
| at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:151)
| at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBean(AbstractKernelDeployer.java:291)
| at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBeans(AbstractKernelDeployer.java:261)
| at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deploy(AbstractKernelDeployer.java:117)
| at org.jboss.kernel.plugins.deployment.xml.BeanXMLDeployer.deploy(BeanXMLDeployer.java:95)
| at org.jboss.embedded.Bootstrap.deployBaseBootstrapUrl(Bootstrap.java:150)
| at org.jboss.embedded.Bootstrap.bootstrapURL(Bootstrap.java:162)
| at org.jboss.embedded.Bootstrap.bootstrap(Bootstrap.java:201)
| at org.jboss.embedded.Bootstrap.bootstrap(Bootstrap.java:214)
| at org.jboss.seam.mock.EmbeddedBootstrap.startAndDeployResources(EmbeddedBootstrap.java:11)
| at org.jboss.seam.mock.BaseSeamTest.startJbossEmbeddedIfNecessary(BaseSeamTest.java:1006)
| at org.jboss.seam.mock.BaseSeamTest.init(BaseSeamTest.java:931)
| at org.jboss.seam.mock.SeamTest.init(SeamTest.java:42)
| at model.test.SearchActionAdvancedTest.testSearchActionComponent(SearchActionAdvancedTest.java:34)
| 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.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:604)
| at org.testng.internal.Invoker.invokeMethod(Invoker.java:470)
| at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:564)
| at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:830)
| at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125)
| at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:109)
| at org.testng.TestRunner.runWorkers(TestRunner.java:678)
| at org.testng.TestRunner.privateRun(TestRunner.java:624)
| at org.testng.TestRunner.run(TestRunner.java:495)
| at org.testng.SuiteRunner.runTest(SuiteRunner.java:300)
| at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:295)
| at org.testng.SuiteRunner.privateRun(SuiteRunner.java:275)
| at org.testng.SuiteRunner.run(SuiteRunner.java:190)
| at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:792)
| at org.testng.TestNG.runSuitesLocally(TestNG.java:765)
| at org.testng.TestNG.run(TestNG.java:699)
| at org.testng.TestNG.privateMain(TestNG.java:824)
| at org.testng.TestNG.main(TestNG.java:802)
| DEBUG [org.jboss.embedded.adapters.LocalOnlyUserTransaction] new UserTx: org.jboss.embedded.adapters.LocalOnlyUserTransaction@2515
| DEBUG [jboss.kernel.plugins.deployment.xml.BeanXMLDeployer] Deploying file:/C:/project/libs/seam-hibernate/bootstrap/conf/bootstrap-beans.xml took 736 milliseconds
|
I have no idea what to make of any of that.
If anyone has some insight into what my issue is, please let me know ASAP since I really need to get this testing going. Let me know if I need to provide additional information.
Thanks.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4110978#4110978
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4110978
18 years, 4 months
[JBoss Messaging] - Re: Delayed Message Sucking
by chip_schoch
-------------
| | L1 L2 | <-- linux cluster, 2 nodes, with clustered Queues, Q1 and Q2
| -------------
| ^ ^
| | |
| W1 W2
|
| L == linux JBossAS 4.2.2.GA with JBM 1.4.0.SP1
| W == Windows JBossAS 4.2.2.GA. Not clustered , running consumer service
|
|
Identical services running on L1 and L2 each post request messages to a clustered queue (Q1). The thread that posted a message then calls MessageConsumer.receive() on a response queue (Q2).
Both W1 and W2 are connected to L1 using ClusteredConnectionFactory. Therefore, all messages posted to L2 are sucked over to L1 and consumed by W1 and W2. W1 and W2 post response messages to response queue (Q2) on L1. The MessageConsumer.receive() called by the L1 service receives the response messages it is waiting for. The MessageConsumer.receive() called by the L2 service never returns. The response messages that L2 is waiting for are stuck on L1-Q2. Eventually, they are sucked over to L2-Q2 and L2 finally receives them.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4110977#4110977
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4110977
18 years, 4 months
[JBoss Seam] - ExpressionFactory issue with seam 2.0 in weblogic 9.2
by ram_maganti
Hi
I am facing weird problem..while executing the following EL:
<h:commandLink action="#{dataSearch.dataById}" tabindex="9">
<h:graphicImage id="btn_search_ticker" value="images/menu/btn_nav_go.gif" />
</h:commandLink>
This piece of code is working fine in Seam1.2, but its giving issues when we are migrating it to Jboss seam 2.0. This .XHTML file deployed in weblogic 9.2. we do have el-api.jar & jboss-el_2.0.0GA.jar.
Facesconfig.xml as follows:
<?xml version='1.0' encoding='UTF-8'?>
<faces-config version="1.2"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd">
<view-handler>com.sun.facelets.FaceletViewHandler</view-handler>
web.xml:
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4"
xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<context-param>
<param-name>javax.faces.CONFIG_FILES</param-name>
<param-value>/WEB-INF/navigation.xml</param-value>
</context-param>
<!-- Seam -->
<listener-class>org.jboss.seam.servlet.SeamListener</listener-class>
<servlet-name>Seam Resource Servlet</servlet-name>
<servlet-class>org.jboss.seam.servlet.ResourceServlet</servlet-class>
<servlet-mapping>
<servlet-name>Seam Resource Servlet</servlet-name>
<url-pattern>/seam/resource/*</url-pattern>
</servlet-mapping>
<filter-name>Seam Filter</filter-name>
<filter-class>org.jboss.seam.web.SeamFilter</filter-class>
<filter-mapping>
<filter-name>Seam Filter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<!-- Faces Servlet -->
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.seam</url-pattern>
</servlet-mapping>
Please let me know if anybody can help me if i am missing anything..
com.sun.facelets.FaceletException: Could not instantiate feature[compiler.ExpressionFactory]: com.sun.el.ExpressionFactoryImpl
at com.sun.facelets.compiler.Compiler.featureInstance(Compiler.java:154)
at com.sun.facelets.compiler.Compiler.createExpressionFactory(Compiler.java:128)
at com.sun.facelets.impl.DefaultFaceletFactory.createFacelet(DefaultFaceletFactory.java:198)
at com.sun.facelets.impl.DefaultFaceletFactory.getFacelet(DefaultFaceletFactory.java:144)
at com.sun.facelets.impl.DefaultFaceletFactory.getFacelet(DefaultFaceletFactory.java:95)
at com.sun.facelets.FaceletViewHandler.buildView(FaceletViewHandler.java:517)
at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:567) at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:216)
at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:107)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:245)
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:137)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:214)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:223)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:68)
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85)
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:44)
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4110976#4110976
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4110976
18 years, 4 months