[JBoss Messaging] - Connection Factory Configuration problem in JBoss Messaging
by siddharth_2279
Hi All,
I have my own connection factory entry in (jboss-5.0.0.GA\server\default\deploy\messaging\connection-factories-service.xml)
<mbean code="org.jboss.jms.server.connectionfactory.ConnectionFactory"
| name="jboss.messaging.connectionfactory:service=MyExampleConnectionFactory"
| xmbean-dd="xmdesc/ConnectionFactory-xmbean.xml">
|
| <constructor>
|
| <!-- You can specify the default Client ID to use for connections created using this factory -->
|
| <arg type="java.lang.String" value="MyClientID"/>
|
| </constructor>
|
| <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
|
| <!-- The transport to use - can be bisocket, sslbisocket or http -->
|
| <depends optional-attribute-name="Connector">jboss.messaging:service=Connector,transport=bisocket</depends>
|
| <depends>jboss.messaging:service=PostOffice</depends>
|
| <!-- The connection factory will be bound in the following places in JNDI -->
|
| <attribute name="JNDIBindings">
|
| <bindings>
|
| <binding>/QueueConnectionFactory</binding>
|
| </bindings>
|
| </attribute>
|
| </mbean>
|
When I run the Java code I get the following exception :
JNDI lookup failed: javax.naming.CommunicationException [Root exception is java.lang.ClassNotFoundException: org.jboss.jms.client.JBossConnectionFactory (no security manager: RMI class loader disabled)]
I even saw the solution to this as per given in the site :
https://jira.jboss.org/jira/browse/JBMESSAGING-339
But even the solution 1 given here in the site namely :
1) Enable JNDI call by reference semantics.
To do that, modify the Naming (JNDI) service configuration and set its "CallByValue" attribute to "false".
The Naming configuration file is $JBOSS_HOME/server/default/deploy/naming-service.xml for an installer-generated JBoss configuration and the $JBOSS_HOME/server/conf/jboss-service.xml (the JNDI section, search for "jboss:service=Naming") for a raw installation.
is not working.
Even this is giving a exception in the java program.
Please Help me in solving this problem.
I am using JBoss-5.0.0.GA app server.
Thanks in advance.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4201480#4201480
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4201480
17 years, 6 months
[JBoss Messaging] - java.lang.IllegalStateException: Cannot find object in dispa
by schustes
Hello there,
after a couple of days up and running without any problems, JBoss messaging/remoting fails with the errors below.
Any ideas what the cause could be, and what I could do about it? Is it likely to be due to a network problem that troubled the remoting connection or something like that (The JMS objects sending the messages have been created once at startup time, i.e. they are quite 'old') ?
Thanks!
2009-01-13 00:00:00,149 ERROR [STDERR]:152 org.jboss.jms.exception.MessagingJMSException: Failed to invoke
2009-01-13 00:00:00,150 ERROR [STDERR]:152 at org.jboss.jms.client.delegate.DelegateSupport.handleThrowable(DelegateSupport.java:271)
2009-01-13 00:00:00,150 ERROR [STDERR]:152 at org.jboss.jms.client.delegate.DelegateSupport.doInvoke(DelegateSupport.java:205)
2009-01-13 00:00:00,150 ERROR [STDERR]:152 at org.jboss.jms.client.delegate.DelegateSupport.doInvoke(DelegateSupport.java:160)
2009-01-13 00:00:00,151 ERROR [STDERR]:152 at org.jboss.jms.client.delegate.ClientConnectionDelegate.org$jboss$jms$client$delegate$ClientConnectionDelegate$getIdBlock$aop(ClientConnectionDelegate.java:288)
2009-01-13 00:00:00,151 ERROR [STDERR]:152 at org.jboss.jms.client.delegate.ClientConnectionDelegate$getIdBlock_7224852188662164551.invokeNext(ClientConnectionDelegate$getIdBlock_7224852188662164551.java)
2009-01-13 00:00:00,151 ERROR [STDERR]:152 at org.jboss.jms.client.container.FailoverValveInterceptor.invoke(FailoverValveInterceptor.java:92)
2009-01-13 00:00:00,151 ERROR [STDERR]:152 at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:105)
2009-01-13 00:00:00,151 ERROR [STDERR]:152 at org.jboss.jms.client.delegate.ClientConnectionDelegate$getIdBlock_7224852188662164551.invokeNext(ClientConnectionDelegate$getIdBlock_7224852188662164551.java)
2009-01-13 00:00:00,152 ERROR [STDERR]:152 at org.jboss.jms.client.container.ClosedInterceptor.invoke(ClosedInterceptor.java:170)
2009-01-13 00:00:00,152 ERROR [STDERR]:152 at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:105)
2009-01-13 00:00:00,152 ERROR [STDERR]:152 at org.jboss.jms.client.delegate.ClientConnectionDelegate$getIdBlock_7224852188662164551.invokeNext(ClientConnectionDelegate$getIdBlock_7224852188662164551.java)
2009-01-13 00:00:00,152 ERROR [STDERR]:152 at org.jboss.jms.client.delegate.ClientConnectionDelegate.getIdBlock(ClientConnectionDelegate.java)
2009-01-13 00:00:00,153 ERROR [STDERR]:152 at org.jboss.jms.message.MessageIdGenerator.getNextBlock(MessageIdGenerator.java:67)
2009-01-13 00:00:00,153 ERROR [STDERR]:152 at org.jboss.jms.message.MessageIdGenerator.getId(MessageIdGenerator.java:79)
2009-01-13 00:00:00,153 ERROR [STDERR]:152 at org.jboss.jms.client.container.ProducerAspect.handleSend(ProducerAspect.java:262)
2009-01-13 00:00:00,153 ERROR [STDERR]:152 at org.jboss.aop.advice.org.jboss.jms.client.container.ProducerAspect39.invoke(ProducerAspect39.java)
2009-01-13 00:00:00,154 ERROR [STDERR]:152 at org.jboss.jms.client.delegate.ClientProducerDelegate$send_3961598017717988886.invokeNext(ClientProducerDelegate$send_3961598017717988886.java)
2009-01-13 00:00:00,154 ERROR [STDERR]:152 at org.jboss.jms.client.container.ClosedInterceptor.invoke(ClosedInterceptor.java:170)
2009-01-13 00:00:00,154 ERROR [STDERR]:152 at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:105)
2009-01-13 00:00:00,154 ERROR [STDERR]:152 at org.jboss.jms.client.delegate.ClientProducerDelegate$send_3961598017717988886.invokeNext(ClientProducerDelegate$send_3961598017717988886.java)
2009-01-13 00:00:00,155 ERROR [STDERR]:152 at org.jboss.jms.client.delegate.ClientProducerDelegate.send(ClientProducerDelegate.java)
2009-01-13 00:00:00,155 ERROR [STDERR]:152 at org.jboss.jms.client.JBossMessageProducer.send(JBossMessageProducer.java:164)
2009-01-13 00:00:00,155 ERROR [STDERR]:152 at org.jboss.jms.client.JBossMessageProducer.send(JBossMessageProducer.java:207)
2009-01-13 00:00:00,155 ERROR [STDERR]:152 at org.jboss.jms.client.JBossMessageProducer.send(JBossMessageProducer.java:145)
2009-01-13 00:00:00,155 ERROR [STDERR]:152 at org.jboss.jms.client.JBossMessageProducer.send(JBossMessageProducer.java:136)
2009-01-13 00:00:00,156 ERROR [STDERR]:152 at org.jboss.jms.client.JBossMessageProducer.publish(JBossMessageProducer.java:177)
2009-01-13 00:00:00,156 ERROR [STDERR]:152 at gsim.sim.engine.remote.messaging.ControllerSchedulableSupport.sendJMSMessage(ControllerSchedulableSupport.java:113)
2009-01-13 00:00:00,156 ERROR [STDERR]:152 at gsim.sim.engine.remote.messaging.ControllerSchedulableSupport.sendDoStepMessage(ControllerSchedulableSupport.java:104)
2009-01-13 00:00:00,156 ERROR [STDERR]:152 at gsim.sim.engine.remote.Clock.perform(Clock.java:30)
2009-01-13 00:00:00,157 ERROR [STDERR]:152 at org.jboss.varia.scheduler.Scheduler$Listener.handleNotification(Scheduler.java:1251)
2009-01-13 00:00:00,157 ERROR [STDERR]:152 at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
2009-01-13 00:00:00,157 ERROR [STDERR]:152 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
2009-01-13 00:00:00,157 ERROR [STDERR]:152 at java.lang.reflect.Method.invoke(Unknown Source)
2009-01-13 00:00:00,157 ERROR [STDERR]:152 at org.jboss.mx.notification.NotificationListenerProxy.invoke(NotificationListenerProxy.java:153)
2009-01-13 00:00:00,158 ERROR [STDERR]:152 at $Proxy11.handleNotification(Unknown Source)
2009-01-13 00:00:00,158 ERROR [STDERR]:152 at javax.management.NotificationBroadcasterSupport.handleNotification(Unknown Source)
2009-01-13 00:00:00,158 ERROR [STDERR]:152 at javax.management.NotificationBroadcasterSupport$SendNotifJob.run(Unknown Source)
2009-01-13 00:00:00,158 ERROR [STDERR]:152 at javax.management.NotificationBroadcasterSupport$1.execute(Unknown Source)
2009-01-13 00:00:00,159 ERROR [STDERR]:152 at javax.management.NotificationBroadcasterSupport.sendNotification(Unknown Source)
2009-01-13 00:00:00,159 ERROR [STDERR]:152 at javax.management.timer.Timer.sendNotification(Unknown Source)
2009-01-13 00:00:00,159 ERROR [STDERR]:152 at javax.management.timer.Timer.notifyAlarmClock(Unknown Source)
2009-01-13 00:00:00,159 ERROR [STDERR]:152 at javax.management.timer.TimerAlarmClock.run(Unknown Source)
2009-01-13 00:00:00,159 ERROR [STDERR]:152 at java.util.TimerThread.mainLoop(Unknown Source)
2009-01-13 00:00:00,160 ERROR [STDERR]:152 at java.util.TimerThread.run(Unknown Source)
2009-01-13 00:00:00,160 ERROR [STDERR]:152 Caused by: java.lang.IllegalStateException: Cannot find object in dispatcher with id a1-fig7sspf-1-znl6sspf-gv6a0d-c29b6n3
2009-01-13 00:00:00,160 ERROR [STDERR]:152 at org.jboss.jms.wireformat.ConnectionGetIDBlockRequest.serverInvoke(ConnectionGetIDBlockRequest.java:60)
2009-01-13 00:00:00,160 ERROR [STDERR]:152 at org.jboss.jms.server.remoting.JMSServerInvocationHandler.invoke(JMSServerInvocationHandler.java:143)
2009-01-13 00:00:00,161 ERROR [STDERR]:152 at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:795)
2009-01-13 00:00:00,161 ERROR [STDERR]:152 at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:573)
2009-01-13 00:00:00,161 ERROR [STDERR]:152 at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:387)
2009-01-13 00:00:00,161 ERROR [STDERR]:152 at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:166)
2009-01-13 00:00:00,162 ERROR [STDERR]:152 at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:163)
2009-01-13 00:00:00,162 ERROR [STDERR]:152 at org.jboss.remoting.Client.invoke(Client.java:1634)
2009-01-13 00:00:00,162 ERROR [STDERR]:152 at org.jboss.remoting.Client.invoke(Client.java:548)
2009-01-13 00:00:00,162 ERROR [STDERR]:152 at org.jboss.remoting.Client.invoke(Client.java:536)
2009-01-13 00:00:00,162 ERROR [STDERR]:152 at org.jboss.jms.client.delegate.DelegateSupport.doInvoke(DelegateSupport.java:189)
2009-01-13 00:00:00,163 ERROR [STDERR]:152 ... 42 more
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4201458#4201458
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4201458
17 years, 6 months