[Design of Messaging on JBoss (Messaging/JBoss)] - org.objectweb.jtests configuration logic is poor
by scott.stark@jboss.org
I'm looking at why the jbm tests are not running in trunk
The way the org.objectweb.jtests.* tests look for a provider.properties resource does not work in trunk due to there being multiple sources of this resource. One is in the joram-tests.jar (this is what is found and its useless), one is in testsuite/source/resources/jbossmessaging.
There are also multiple places that try to load this file, one is org.jboss.test.jbossmessaging.JMSTestCase, another is org.objectweb.jtests.jms.admin.AdminFactory from the joram-tests.jar. In order for these tests to run as currently coded, the testsuite/source/resources/jbossmessaging would need to be on the test classpath.
Instead of using a static provider.properties resource name, it would be better to accept a dynamic resource name like "jbossmessaging/provider.properties". This would allow the test specific classes to override the location without needing additional classpath hacking, and it would allow one to run the tests from within eclipse using the current testsuite/resources classpath element.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4025694#4025694
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4025694
19 years, 1 month
[Design of JBoss ESB] - Need help for ESB related Exception
by mishra.piku
Hi Guys,
I have written a simple web application for which I get some text information from a JSP page. The text message is "Hello How are you". I am passing this message using ESB and I want a response from the server ie server will generate some message(Text), this message will be displayed in the JSP page. Everything relating to ESB configuration is ok for me. I have deployed this application as a .war file in deploy folder of Jboss. I have written an Initialization servlet to initiate ESB related stuffs. But when I passing the message and trying to get a response , I am getting the following Exception. I am unable to solve this. Can anybody help me to figure it out. I am giving the exception.
***************** Exception Below ***************************
12:52:45,037 INFO [STDOUT] ConsoleNotifier 2007/03/07 12:52:45.037<Response From Server.....>
12:52:50,068 INFO [STDOUT] java.lang.reflect.InvocationTargetException
12:52:50,068 INFO [STDOUT] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
12:52:50,068 INFO [STDOUT] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
12:52:50,068 INFO [STDOUT] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.ja
12:52:50,068 INFO [STDOUT] at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
12:52:50,068 INFO [STDOUT] at org.jboss.soa.esb.notification.NotificationTarget.fromParams(NotificationTarget.java:100)
12:52:50,084 INFO [STDOUT] at org.jboss.soa.esb.notification.NotificationList.notifyAll(NotificationList.java:150)
12:52:50,084 INFO [STDOUT] at org.jboss.soa.esb.actions.Notifier.notifyOK(Notifier.java:66)
12:52:50,084 INFO [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
12:52:50,084 INFO [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
12:52:50,084 INFO [STDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
12:52:50,084 INFO [STDOUT] at java.lang.reflect.Method.invoke(Method.java:585)
12:52:50,084 INFO [STDOUT] at org.jboss.soa.esb.listeners.message.ActionProcessingPipeline.actionClassFinishedOk(ActionProce
12:52:50,084 INFO [STDOUT] at org.jboss.soa.esb.listeners.message.ActionProcessingPipeline.run(ActionProcessingPipeline.java
12:52:50,084 INFO [STDOUT] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
12:52:50,084 INFO [STDOUT] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
12:52:50,084 INFO [STDOUT] at java.lang.Thread.run(Thread.java:595)
12:52:50,084 INFO [STDOUT] Caused by: javax.naming.CommunicationException: Receive timed out [Root exception is java.net.SocketT
12:52:50,084 INFO [STDOUT] at org.jnp.interfaces.NamingContext.discoverServer(NamingContext.java:1317)
12:52:50,084 INFO [STDOUT] at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1446)
12:52:50,084 INFO [STDOUT] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:594)
12:52:50,084 INFO [STDOUT] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
12:52:50,084 INFO [STDOUT] at javax.naming.InitialContext.lookup(InitialContext.java:351)
12:52:50,099 INFO [STDOUT] at org.jboss.soa.esb.notification.NotifyQueues.lookupQueueConnectionFactory(NotifyQueues.java:97)
12:52:50,099 INFO [STDOUT] at org.jboss.soa.esb.notification.NotifyQueues.setQueues(NotifyQueues.java:69)
12:52:50,099 INFO [STDOUT] at org.jboss.soa.esb.notification.NotifyQueues.(NotifyQueues.java:65)
12:52:50,099 INFO [STDOUT] ... 16 more
12:52:50,099 INFO [STDOUT] Caused by: java.net.SocketTimeoutException: Receive timed out
12:52:50,099 INFO [STDOUT] at java.net.PlainDatagramSocketImpl.receive0(Native Method)
12:52:50,099 INFO [STDOUT] at java.net.PlainDatagramSocketImpl.receive(PlainDatagramSocketImpl.java:136)
12:52:50,099 INFO [STDOUT] at java.net.DatagramSocket.receive(DatagramSocket.java:712)
12:52:50,115 INFO [STDOUT] at org.jnp.interfaces.NamingContext.discoverServer(NamingContext.java:1287)
12:52:50,115 INFO [STDOUT] ... 23 more
12:52:50,115 INFO [STDOUT] 12:52:50,115 ERROR [NotificationList] Can't instantiate target
<messageProp name="ESB_First_Test_Project_V1" value="SomeActionForListene
java.lang.Exception: NotifyQueues does not extend NotificationTarget
at org.jboss.soa.esb.notification.NotificationTarget.fromParams(NotificationTarget.java:103)
at org.jboss.soa.esb.notification.NotificationList.notifyAll(NotificationList.java:150)
at org.jboss.soa.esb.actions.Notifier.notifyOK(Notifier.java:66)
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.soa.esb.listeners.message.ActionProcessingPipeline.actionClassFinishedOk(ActionProcessingPipeline.java:181)
at org.jboss.soa.esb.listeners.message.ActionProcessingPipeline.run(ActionProcessingPipeline.java:112)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
at java.lang.Thread.run(Thread.java:595)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4025685#4025685
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4025685
19 years, 1 month