[Design of JBossCache] - Re: JBCACHE-1154 - Introduce ability to mark nodes as reside
by mircea.markus
anonymous wrote : 1. The internal code looks like crap. I don't know why you didn't opt for a boolean flag like everything else, but so be it.
this flag also needs to be replicated within the cluster. Current implementation only replicates node's underlying map, but it does not replicate Node's state. So the reason of placing the info in the node map is for achieving replication. The nice solution of replicating the metadata(i.e. node's data that is not placed in the underlying map) requires API significant changes that are not acceptable within this release (e.g. the cache loaders would also need to propagate metadata). I'll add an implementation doc to state this.
anonymous wrote :
| 2. You added new methods to an interface that's potentially designed for clients to implement.
See your point on this one - I don't think there is such a case, though.
anonymous wrote : 3. You add methods to a general interface that are specific to a non-general concern.
I tend to agree that 'resident' is an non-general concern. As it has meaning only in the scope of eviction. Phps move closer to the eviction layer? e.g.
Region.markNodeResident(Fqn, isResident);
| Region.isNodeResident(Fqn);
|
On the other hand this would make the API a bit cumbersome. IMO the info should be held there, still. Others?
anonymous wrote :
| The point is, sure you can have "boolean get/set" methods. But why not add to the interface instead:
| Code:
|
| void setProperty(Property p);
| | boolean getProperty(Property p);
|
This approach the advantages would be a) easiness of change and b) memory footprint.
a) at the cost of having the code less readable/strong typed. I prefer the strongly typed approach.
b) As per a prev post don't reckon there is a memory gain
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4090134#4090134
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4090134
17 years, 2 months
[Design of Messaging on JBoss (Messaging/JBoss)] - Correct Java Client Behaviour when JBoss Messaging cluster
by ivanrc
Hi,
I want to know if this is the correct behaviour of Java client when node of Jboss messaging Cluster crashes.
In both, Topics o Queues, when my java client is in source line ...
TextMessage message = (TextMessage)consumer.receive(1000);
when consumer is MessageConsumer and then the JBoss Messaging cluster node in which is connected crashes.
I loss the connection, and by console I obtain several exceptions...
I think that Jboss Messaging implements transparent failover, but in this case that doesn´t happen.
thanks.
attachment of console lines when node crashes happen:
---------------------
MessageID:ID:JBM-88515
08:40:06,992 ERROR @Timer-0 [SocketClientInvoker] Got marshalling exception, exiting
java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(SocketInputStream.java:168)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
at java.io.BufferedInputStream.read(BufferedInputStream.java:235)
at java.io.FilterInputStream.read(FilterInputStream.java:66)
at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.readVersion(MicroSocketClientInvoker.java:986)
at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientInvoker.java:572)
at org.jboss.remoting.transport.bisocket.BisocketClientInvoker.transport(BisocketClientInvoker.java:353)
at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:122)
at org.jboss.remoting.LeasePinger.sendClientPing(LeasePinger.java:283)
at org.jboss.remoting.LeasePinger.access$000(LeasePinger.java:20)
at org.jboss.remoting.LeasePinger$LeaseTimerTask.run(LeasePinger.java:315)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)
08:40:06,992 WARN @Timer-0 [LeasePinger] LeasePinger[SocketClientInvoker[a9c09e, bisocket://127.0.0.1:4557](4sv3c5y-y83mkd-f78lwtvn-1-f78lwuba-3)] failed to ping to server: Failed to communicate. Problem during marshalling/unmarshalling; nested exception is:
java.net.SocketException: Connection reset
08:40:07,039 ERROR @Timer-2 [SocketClientInvoker] Got marshalling exception, exiting
java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(SocketInputStream.java:168)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
at java.io.BufferedInputStream.read(BufferedInputStream.java:235)
at java.io.FilterInputStream.read(FilterInputStream.java:66)
at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.readVersion(MicroSocketClientInvoker.java:986)
at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientInvoker.java:572)
at org.jboss.remoting.transport.bisocket.BisocketClientInvoker.transport(BisocketClientInvoker.java:353)
at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:122)
at org.jboss.remoting.ConnectionValidator.doCheckConnection(ConnectionValidator.java:126)
at org.jboss.remoting.ConnectionValidator.run(ConnectionValidator.java:195)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)
08:40:08,132 WARN @Thread-42 [ClientClusteredConnectionFactoryDelegate] org.jboss.remoting.CannotConnectException: Can not get connection to server. Problem establishing socket connection for InvokerLocator [bisocket://127.0.0.1:4557/?clientMaxPoolSize=50&clientSocketClass=org.jboss.jms.client.remoting.ClientSocketWrapper&dataType=jms&marshaller=org.jboss.jms.wireformat.JMSWireFormat&numberOfCallRetries=1&numberOfRetries=1&socket.check_connection=false&timeout=0&unmarshaller=org.jboss.jms.wireformat.JMSWireFormat]
org.jboss.remoting.CannotConnectException: Can not get connection to server. Problem establishing socket connection for InvokerLocator [bisocket://127.0.0.1:4557/?clientMaxPoolSize=50&clientSocketClass=org.jboss.jms.client.remoting.ClientSocketWrapper&dataType=jms&marshaller=org.jboss.jms.wireformat.JMSWireFormat&numberOfCallRetries=1&numberOfRetries=1&socket.check_connection=false&timeout=0&unmarshaller=org.jboss.jms.wireformat.JMSWireFormat]
at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientInvoker.java:530)
at org.jboss.remoting.transport.bisocket.BisocketClientInvoker.transport(BisocketClientInvoker.java:353)
at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:122)
at org.jboss.remoting.Client.invoke(Client.java:1550)
at org.jboss.remoting.Client.invoke(Client.java:530)
at org.jboss.jms.client.delegate.ClientClusteredConnectionFactoryDelegate.removeCallback(ClientClusteredConnectionFactoryDelegate.java:144)
at org.jboss.jms.client.delegate.ClientClusteredConnectionFactoryDelegate.closeCallback(ClientClusteredConnectionFactoryDelegate.java:160)
at org.jboss.jms.client.delegate.ClientClusteredConnectionFactoryDelegate.establishCallback(ClientClusteredConnectionFactoryDelegate.java:91)
at org.jboss.jms.client.remoting.ConnectionFactoryCallbackHandler$CallbackConnectionListener.handleConnectionException(ConnectionFactoryCallbackHandler.java:105)
at org.jboss.remoting.ConnectionValidator$1.run(ConnectionValidator.java:346)
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:516)
at org.jboss.remoting.transport.socket.SocketClientInvoker.createSocket(SocketClientInvoker.java:187)
at org.jboss.remoting.transport.bisocket.BisocketClientInvoker.createSocket(BisocketClientInvoker.java:360)
at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.getConnection(MicroSocketClientInvoker.java:801)
at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientInvoker.java:526)
... 9 more
08:40:09,164 WARN @Thread-42 [Client] unable to remove remote callback handler: Can not get connection to server. Problem establishing socket connection for InvokerLocator [bisocket://127.0.0.1:4557/?clientMaxPoolSize=50&clientSocketClass=org.jboss.jms.client.remoting.ClientSocketWrapper&dataType=jms&marshaller=org.jboss.jms.wireformat.JMSWireFormat&numberOfCallRetries=1&numberOfRetries=1&socket.check_connection=false&timeout=0&unmarshaller=org.jboss.jms.wireformat.JMSWireFormat]
08:40:10,148 WARN @Thread-42 [LeasePinger] LeasePinger[SocketClientInvoker[a9c09e, bisocket://127.0.0.1:4557](4sv3c5y-y83mkd-f78lwtvn-1-f78lwuba-3)] failed sending disconnect for client lease for client with session ID 4sv3c5y-y83mkd-f78lwtvn-1-f78lwtxe-2
08:40:11,164 ERROR @Thread-42 [MicroRemoteClientInvoker] error shutting down lease pinger
08:40:11,445 ERROR @Thread-43 [JMSWireFormat] Failed to write packet
java.lang.NullPointerException
at java.io.DataOutputStream.writeUTF(DataOutputStream.java:330)
at java.io.DataOutputStream.writeUTF(DataOutputStream.java:306)
at org.jboss.jms.delegate.DeliveryRecovery.write(DeliveryRecovery.java:79)
at org.jboss.jms.wireformat.SessionRecoverDeliveriesRequest.write(SessionRecoverDeliveriesRequest.java:113)
at org.jboss.jms.wireformat.JMSWireFormat.write(JMSWireFormat.java:237)
at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.versionedWrite(MicroSocketClientInvoker.java:969)
at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientInvoker.java:557)
at org.jboss.remoting.transport.bisocket.BisocketClientInvoker.transport(BisocketClientInvoker.java:353)
at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:122)
at org.jboss.remoting.Client.invoke(Client.java:1550)
at org.jboss.remoting.Client.invoke(Client.java:530)
at org.jboss.remoting.Client.invoke(Client.java:518)
at org.jboss.jms.client.delegate.DelegateSupport.doInvoke(DelegateSupport.java:186)
at org.jboss.jms.client.delegate.DelegateSupport.doInvoke(DelegateSupport.java:157)
at org.jboss.jms.client.delegate.ClientSessionDelegate.org$jboss$jms$client$delegate$ClientSessionDelegate$recoverDeliveries$aop(ClientSessionDelegate.java:468)
at org.jboss.jms.client.delegate.ClientSessionDelegate$recoverDeliveries_4196799148363996265.invokeNext(ClientSessionDelegate$recoverDeliveries_4196799148363996265.java)
at org.jboss.jms.client.container.FailoverValveInterceptor.invoke(FailoverValveInterceptor.java:107)
at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:105)
at org.jboss.jms.client.delegate.ClientSessionDelegate$recoverDeliveries_4196799148363996265.invokeNext(ClientSessionDelegate$recoverDeliveries_4196799148363996265.java)
at org.jboss.jms.client.container.ClosedInterceptor.invoke(ClosedInterceptor.java:170)
at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:105)
at org.jboss.jms.client.delegate.ClientSessionDelegate$recoverDeliveries_4196799148363996265.invokeNext(ClientSessionDelegate$recoverDeliveries_4196799148363996265.java)
at org.jboss.jms.client.delegate.ClientSessionDelegate.recoverDeliveries(ClientSessionDelegate.java)
at org.jboss.jms.client.state.SessionState.synchronizeWith(SessionState.java:344)
at org.jboss.jms.client.delegate.ClientSessionDelegate.synchronizeWith(ClientSessionDelegate.java:122)
at org.jboss.jms.client.state.ConnectionState.synchronizeWith(ConnectionState.java:174)
at org.jboss.jms.client.delegate.ClientConnectionDelegate.synchronizeWith(ClientConnectionDelegate.java:125)
at org.jboss.jms.client.FailoverCommandCenter.failureDetected(FailoverCommandCenter.java:141)
at org.jboss.jms.client.container.ConnectionFailureListener.handleConnectionException(ConnectionFailureListener.java:62)
at org.jboss.jms.client.remoting.ConsolidatedRemotingConnectionListener.handleConnectionException(ConsolidatedRemotingConnectionListener.java:81)
at org.jboss.remoting.ConnectionValidator$1.run(ConnectionValidator.java:346)
08:40:11,460 ERROR @Thread-43 [SocketClientInvoker] Got marshalling exception, exiting
java.io.IOException
at java.io.DataOutputStream.writeUTF(DataOutputStream.java:330)
at java.io.DataOutputStream.writeUTF(DataOutputStream.java:306)
at org.jboss.jms.delegate.DeliveryRecovery.write(DeliveryRecovery.java:79)
at org.jboss.jms.wireformat.SessionRecoverDeliveriesRequest.write(SessionRecoverDeliveriesRequest.java:113)
at org.jboss.jms.wireformat.JMSWireFormat.write(JMSWireFormat.java:237)
at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.versionedWrite(MicroSocketClientInvoker.java:969)
at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientInvoker.java:557)
at org.jboss.remoting.transport.bisocket.BisocketClientInvoker.transport(BisocketClientInvoker.java:353)
at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:122)
at org.jboss.remoting.Client.invoke(Client.java:1550)
at org.jboss.remoting.Client.invoke(Client.java:530)
at org.jboss.remoting.Client.invoke(Client.java:518)
at org.jboss.jms.client.delegate.DelegateSupport.doInvoke(DelegateSupport.java:186)
at org.jboss.jms.client.delegate.DelegateSupport.doInvoke(DelegateSupport.java:157)
at org.jboss.jms.client.delegate.ClientSessionDelegate.org$jboss$jms$client$delegate$ClientSessionDelegate$recoverDeliveries$aop(ClientSessionDelegate.java:468)
at org.jboss.jms.client.delegate.ClientSessionDelegate$recoverDeliveries_4196799148363996265.invokeNext(ClientSessionDelegate$recoverDeliveries_4196799148363996265.java)
at org.jboss.jms.client.container.FailoverValveInterceptor.invoke(FailoverValveInterceptor.java:107)
at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:105)
at org.jboss.jms.client.delegate.ClientSessionDelegate$recoverDeliveries_4196799148363996265.invokeNext(ClientSessionDelegate$recoverDeliveries_4196799148363996265.java)
at org.jboss.jms.client.container.ClosedInterceptor.invoke(ClosedInterceptor.java:170)
at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:105)
at org.jboss.jms.client.delegate.ClientSessionDelegate$recoverDeliveries_4196799148363996265.invokeNext(ClientSessionDelegate$recoverDeliveries_4196799148363996265.java)
at org.jboss.jms.client.delegate.ClientSessionDelegate.recoverDeliveries(ClientSessionDelegate.java)
at org.jboss.jms.client.state.SessionState.synchronizeWith(SessionState.java:344)
at org.jboss.jms.client.delegate.ClientSessionDelegate.synchronizeWith(ClientSessionDelegate.java:122)
at org.jboss.jms.client.state.ConnectionState.synchronizeWith(ConnectionState.java:174)
at org.jboss.jms.client.delegate.ClientConnectionDelegate.synchronizeWith(ClientConnectionDelegate.java:125)
at org.jboss.jms.client.FailoverCommandCenter.failureDetected(FailoverCommandCenter.java:141)
at org.jboss.jms.client.container.ConnectionFailureListener.handleConnectionException(ConnectionFailureListener.java:62)
at org.jboss.jms.client.remoting.ConsolidatedRemotingConnectionListener.handleConnectionException(ConsolidatedRemotingConnectionListener.java:81)
at org.jboss.remoting.ConnectionValidator$1.run(ConnectionValidator.java:346)
08:40:11,648 WARN @Thread-43 [ClusteringAspect] Client attempted failover, but no failover attempt has been detected on the server side. We will now try again on the original server in case there was a temporary glitch on the client--server network
08:40:13,742 ERROR @Thread-43 [JMSWireFormat] Failed to write packet
java.lang.NullPointerException
at java.io.DataOutputStream.writeUTF(DataOutputStream.java:330)
at java.io.DataOutputStream.writeUTF(DataOutputStream.java:306)
at org.jboss.jms.delegate.DeliveryRecovery.write(DeliveryRecovery.java:79)
at org.jboss.jms.wireformat.SessionRecoverDeliveriesRequest.write(SessionRecoverDeliveriesRequest.java:113)
at org.jboss.jms.wireformat.JMSWireFormat.write(JMSWireFormat.java:237)
at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.versionedWrite(MicroSocketClientInvoker.java:969)
at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientInvoker.java:557)
at org.jboss.remoting.transport.bisocket.BisocketClientInvoker.transport(BisocketClientInvoker.java:353)
at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:122)
at org.jboss.remoting.Client.invoke(Client.java:1550)
at org.jboss.remoting.Client.invoke(Client.java:530)
at org.jboss.remoting.Client.invoke(Client.java:518)
at org.jboss.jms.client.delegate.DelegateSupport.doInvoke(DelegateSupport.java:186)
at org.jboss.jms.client.delegate.DelegateSupport.doInvoke(DelegateSupport.java:157)
at org.jboss.jms.client.delegate.ClientSessionDelegate.org$jboss$jms$client$delegate$ClientSessionDelegate$recoverDeliveries$aop(ClientSessionDelegate.java:468)
at org.jboss.jms.client.delegate.ClientSessionDelegate$recoverDeliveries_4196799148363996265.invokeNext(ClientSessionDelegate$recoverDeliveries_4196799148363996265.java)
at org.jboss.jms.client.container.FailoverValveInterceptor.invoke(FailoverValveInterceptor.java:147)
at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:105)
at org.jboss.jms.client.delegate.ClientSessionDelegate$recoverDeliveries_4196799148363996265.invokeNext(ClientSessionDelegate$recoverDeliveries_4196799148363996265.java)
at org.jboss.jms.client.container.ClosedInterceptor.invoke(ClosedInterceptor.java:170)
at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:105)
at org.jboss.jms.client.delegate.ClientSessionDelegate$recoverDeliveries_4196799148363996265.invokeNext(ClientSessionDelegate$recoverDeliveries_4196799148363996265.java)
at org.jboss.jms.client.delegate.ClientSessionDelegate.recoverDeliveries(ClientSessionDelegate.java)
at org.jboss.jms.client.state.SessionState.synchronizeWith(SessionState.java:344)
at org.jboss.jms.client.delegate.ClientSessionDelegate.synchronizeWith(ClientSessionDelegate.java:122)
at org.jboss.jms.client.state.ConnectionState.synchronizeWith(ConnectionState.java:174)
at org.jboss.jms.client.delegate.ClientConnectionDelegate.synchronizeWith(ClientConnectionDelegate.java:125)
at org.jboss.jms.client.FailoverCommandCenter.failureDetected(FailoverCommandCenter.java:141)
at org.jboss.jms.client.container.ConnectionFailureListener.handleConnectionException(ConnectionFailureListener.java:62)
at org.jboss.jms.client.remoting.ConsolidatedRemotingConnectionListener.handleConnectionException(ConsolidatedRemotingConnectionListener.java:81)
at org.jboss.remoting.ConnectionValidator$1.run(ConnectionValidator.java:346)
08:40:13,742 ERROR @Thread-43 [SocketClientInvoker] Got marshalling exception, exiting
java.io.IOException
at java.io.DataOutputStream.writeUTF(DataOutputStream.java:330)
at java.io.DataOutputStream.writeUTF(DataOutputStream.java:306)
at org.jboss.jms.delegate.DeliveryRecovery.write(DeliveryRecovery.java:79)
at org.jboss.jms.wireformat.SessionRecoverDeliveriesRequest.write(SessionRecoverDeliveriesRequest.java:113)
at org.jboss.jms.wireformat.JMSWireFormat.write(JMSWireFormat.java:237)
at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.versionedWrite(MicroSocketClientInvoker.java:969)
at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientInvoker.java:557)
at org.jboss.remoting.transport.bisocket.BisocketClientInvoker.transport(BisocketClientInvoker.java:353)
at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:122)
at org.jboss.remoting.Client.invoke(Client.java:1550)
at org.jboss.remoting.Client.invoke(Client.java:530)
at org.jboss.remoting.Client.invoke(Client.java:518)
at org.jboss.jms.client.delegate.DelegateSupport.doInvoke(DelegateSupport.java:186)
at org.jboss.jms.client.delegate.DelegateSupport.doInvoke(DelegateSupport.java:157)
at org.jboss.jms.client.delegate.ClientSessionDelegate.org$jboss$jms$client$delegate$ClientSessionDelegate$recoverDeliveries$aop(ClientSessionDelegate.java:468)
at org.jboss.jms.client.delegate.ClientSessionDelegate$recoverDeliveries_4196799148363996265.invokeNext(ClientSessionDelegate$recoverDeliveries_4196799148363996265.java)
at org.jboss.jms.client.container.FailoverValveInterceptor.invoke(FailoverValveInterceptor.java:147)
at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:105)
at org.jboss.jms.client.delegate.ClientSessionDelegate$recoverDeliveries_4196799148363996265.invokeNext(ClientSessionDelegate$recoverDeliveries_4196799148363996265.java)
at org.jboss.jms.client.container.ClosedInterceptor.invoke(ClosedInterceptor.java:170)
at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:105)
at org.jboss.jms.client.delegate.ClientSessionDelegate$recoverDeliveries_4196799148363996265.invokeNext(ClientSessionDelegate$recoverDeliveries_4196799148363996265.java)
at org.jboss.jms.client.delegate.ClientSessionDelegate.recoverDeliveries(ClientSessionDelegate.java)
at org.jboss.jms.client.state.SessionState.synchronizeWith(SessionState.java:344)
at org.jboss.jms.client.delegate.ClientSessionDelegate.synchronizeWith(ClientSessionDelegate.java:122)
at org.jboss.jms.client.state.ConnectionState.synchronizeWith(ConnectionState.java:174)
at org.jboss.jms.client.delegate.ClientConnectionDelegate.synchronizeWith(ClientConnectionDelegate.java:125)
at org.jboss.jms.client.FailoverCommandCenter.failureDetected(FailoverCommandCenter.java:141)
at org.jboss.jms.client.container.ConnectionFailureListener.handleConnectionException(ConnectionFailureListener.java:62)
at org.jboss.jms.client.remoting.ConsolidatedRemotingConnectionListener.handleConnectionException(ConsolidatedRemotingConnectionListener.java:81)
at org.jboss.remoting.ConnectionValidator$1.run(ConnectionValidator.java:346)
08:40:13,757 ERROR @Thread-43 [FailoverCommandCenter] Failover failed
org.jboss.jms.exception.MessagingNetworkFailureException
at org.jboss.jms.client.delegate.DelegateSupport.handleThrowable(DelegateSupport.java:221)
at org.jboss.jms.client.delegate.DelegateSupport.doInvoke(DelegateSupport.java:202)
at org.jboss.jms.client.delegate.DelegateSupport.doInvoke(DelegateSupport.java:157)
at org.jboss.jms.client.delegate.ClientSessionDelegate.org$jboss$jms$client$delegate$ClientSessionDelegate$recoverDeliveries$aop(ClientSessionDelegate.java:468)
at org.jboss.jms.client.delegate.ClientSessionDelegate$recoverDeliveries_4196799148363996265.invokeNext(ClientSessionDelegate$recoverDeliveries_4196799148363996265.java)
at org.jboss.jms.client.container.FailoverValveInterceptor.invoke(FailoverValveInterceptor.java:147)
at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:105)
at org.jboss.jms.client.delegate.ClientSessionDelegate$recoverDeliveries_4196799148363996265.invokeNext(ClientSessionDelegate$recoverDeliveries_4196799148363996265.java)
at org.jboss.jms.client.container.ClosedInterceptor.invoke(ClosedInterceptor.java:170)
at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:105)
at org.jboss.jms.client.delegate.ClientSessionDelegate$recoverDeliveries_4196799148363996265.invokeNext(ClientSessionDelegate$recoverDeliveries_4196799148363996265.java)
at org.jboss.jms.client.delegate.ClientSessionDelegate.recoverDeliveries(ClientSessionDelegate.java)
at org.jboss.jms.client.state.SessionState.synchronizeWith(SessionState.java:344)
at org.jboss.jms.client.delegate.ClientSessionDelegate.synchronizeWith(ClientSessionDelegate.java:122)
at org.jboss.jms.client.state.ConnectionState.synchronizeWith(ConnectionState.java:174)
at org.jboss.jms.client.delegate.ClientConnectionDelegate.synchronizeWith(ClientConnectionDelegate.java:125)
at org.jboss.jms.client.FailoverCommandCenter.failureDetected(FailoverCommandCenter.java:141)
at org.jboss.jms.client.container.ConnectionFailureListener.handleConnectionException(ConnectionFailureListener.java:62)
at org.jboss.jms.client.remoting.ConsolidatedRemotingConnectionListener.handleConnectionException(ConsolidatedRemotingConnectionListener.java:81)
at org.jboss.remoting.ConnectionValidator$1.run(ConnectionValidator.java:346)
Caused by: java.rmi.MarshalException: Failed to communicate. Problem during marshalling/unmarshalling; nested exception is:
java.io.IOException
at org.jboss.remoting.transport.socket.SocketClientInvoker.handleException(SocketClientInvoker.java:122)
at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientInvoker.java:644)
at org.jboss.remoting.transport.bisocket.BisocketClientInvoker.transport(BisocketClientInvoker.java:353)
at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:122)
at org.jboss.remoting.Client.invoke(Client.java:1550)
at org.jboss.remoting.Client.invoke(Client.java:530)
at org.jboss.remoting.Client.invoke(Client.java:518)
at org.jboss.jms.client.delegate.DelegateSupport.doInvoke(DelegateSupport.java:186)
... 18 more
Caused by: java.io.IOException
at java.io.DataOutputStream.writeUTF(DataOutputStream.java:330)
at java.io.DataOutputStream.writeUTF(DataOutputStream.java:306)
at org.jboss.jms.delegate.DeliveryRecovery.write(DeliveryRecovery.java:79)
at org.jboss.jms.wireformat.SessionRecoverDeliveriesRequest.write(SessionRecoverDeliveriesRequest.java:113)
at org.jboss.jms.wireformat.JMSWireFormat.write(JMSWireFormat.java:237)
at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.versionedWrite(MicroSocketClientInvoker.java:969)
at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientInvoker.java:557)
... 24 more
08:40:14,210 ERROR @Thread-43 [ConnectionFailureListener] Caught exception in handling failure
org.jboss.jms.exception.MessagingNetworkFailureException
at org.jboss.jms.client.delegate.DelegateSupport.handleThrowable(DelegateSupport.java:221)
at org.jboss.jms.client.delegate.DelegateSupport.doInvoke(DelegateSupport.java:202)
at org.jboss.jms.client.delegate.DelegateSupport.doInvoke(DelegateSupport.java:157)
at org.jboss.jms.client.delegate.ClientSessionDelegate.org$jboss$jms$client$delegate$ClientSessionDelegate$recoverDeliveries$aop(ClientSessionDelegate.java:468)
at org.jboss.jms.client.delegate.ClientSessionDelegate$recoverDeliveries_4196799148363996265.invokeNext(ClientSessionDelegate$recoverDeliveries_4196799148363996265.java)
at org.jboss.jms.client.container.FailoverValveInterceptor.invoke(FailoverValveInterceptor.java:147)
at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:105)
at org.jboss.jms.client.delegate.ClientSessionDelegate$recoverDeliveries_4196799148363996265.invokeNext(ClientSessionDelegate$recoverDeliveries_4196799148363996265.java)
at org.jboss.jms.client.container.ClosedInterceptor.invoke(ClosedInterceptor.java:170)
at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:105)
at org.jboss.jms.client.delegate.ClientSessionDelegate$recoverDeliveries_4196799148363996265.invokeNext(ClientSessionDelegate$recoverDeliveries_4196799148363996265.java)
at org.jboss.jms.client.delegate.ClientSessionDelegate.recoverDeliveries(ClientSessionDelegate.java)
at org.jboss.jms.client.state.SessionState.synchronizeWith(SessionState.java:344)
at org.jboss.jms.client.delegate.ClientSessionDelegate.synchronizeWith(ClientSessionDelegate.java:122)
at org.jboss.jms.client.state.ConnectionState.synchronizeWith(ConnectionState.java:174)
at org.jboss.jms.client.delegate.ClientConnectionDelegate.synchronizeWith(ClientConnectionDelegate.java:125)
at org.jboss.jms.client.FailoverCommandCenter.failureDetected(FailoverCommandCenter.java:141)
at org.jboss.jms.client.container.ConnectionFailureListener.handleConnectionException(ConnectionFailureListener.java:62)
at org.jboss.jms.client.remoting.ConsolidatedRemotingConnectionListener.handleConnectionException(ConsolidatedRemotingConnectionListener.java:81)
at org.jboss.remoting.ConnectionValidator$1.run(ConnectionValidator.java:346)
Caused by: java.rmi.MarshalException: Failed to communicate. Problem during marshalling/unmarshalling; nested exception is:
java.io.IOException
at org.jboss.remoting.transport.socket.SocketClientInvoker.handleException(SocketClientInvoker.java:122)
at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientInvoker.java:644)
at org.jboss.remoting.transport.bisocket.BisocketClientInvoker.transport(BisocketClientInvoker.java:353)
at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:122)
at org.jboss.remoting.Client.invoke(Client.java:1550)
at org.jboss.remoting.Client.invoke(Client.java:530)
at org.jboss.remoting.Client.invoke(Client.java:518)
at org.jboss.jms.client.delegate.DelegateSupport.doInvoke(DelegateSupport.java:186)
... 18 more
Caused by: java.io.IOException
at java.io.DataOutputStream.writeUTF(DataOutputStream.java:330)
at java.io.DataOutputStream.writeUTF(DataOutputStream.java:306)
at org.jboss.jms.delegate.DeliveryRecovery.write(DeliveryRecovery.java:79)
at org.jboss.jms.wireformat.SessionRecoverDeliveriesRequest.write(SessionRecoverDeliveriesRequest.java:113)
at org.jboss.jms.wireformat.JMSWireFormat.write(JMSWireFormat.java:237)
at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.versionedWrite(MicroSocketClientInvoker.java:969)
at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientInvoker.java:557)
... 24 more
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4090095#4090095
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4090095
17 years, 2 months
[Design of EJB 3.0] - EJBTHREE-786
by ALRubinger
So upon looking at EJBTHREE-786 have discovered that the Proxy object placed into JNDI also implements EJBObject/EJBLocalObject in addition to business interfaces and JBossProxy.
Assuming I'm reading this correctly (and feel free to correct, I'd originally confused a few concepts):
If I were to simply remove the EJBObject/EJBLocalObject contracts (in order to allow definition of a "remove" method on the part of a business interface), I'd break EJB2.1 Local/Remote Interface Views.
Inviting feedback and discussion from those historically more familiar with why the Proxy (the business interface) implements EJBObject/EJBLocalObject, and how to best enable 3.0 views to invoke upon the bean instance and 2.1 views to extend EJBObject/EJBLocalObject as required.
S,
ALR
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4090085#4090085
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4090085
17 years, 2 months