Need help for ESB related Exception
pikumishra Mar 7, 2007 2:34 AMHi 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)