[JBoss Seam] - @DataModelSelection question
by xinhua
Hi,all
I have a very simple test code for @DataModel @DataModelSelection,but it does not work...:(. The list is shown correctly, but everytime i click on a row, a ClassCastException comes.... :(((
here is the code:
|
| @Name("siteeditorPB")
| @Scope(ScopeType.CONVERSATION)
| public class SiteEditorBean
| {
|
| @Logger
| private Log log;
|
| @In(create = true,value="siteeditor_glue")
| SiteEditorGBean sglue;
|
|
| @DataModel
| List<Page> pages;
|
| @DataModelSelection
| Page page;
|
| @Factory(scope=ScopeType.CONVERSATION)
| @Begin(join=true)
| public List<Page> getPages()
| {
| //load data from DB
| return sglue.loadAllPages();
| }
|
| @Begin(join=true)
| public void selectPage(){
| if(page!=null){
| log.info("---------> #0 selected", page.getName());
| }
| }
|
|
|
|
| }
|
xhtml
| <h:form>
|
| <rich:dataTable id="pages" value="#{pages}" var="page" rows="10" width="100%">
|
| <a4j:support event="onRowClick" action="#{siteeditorPB.selectPage}" ignoreDupResponses="true" />
|
|
| <rich:column>
| <f:facet name="header">
| <h:outputText value="ID"/>
| </f:facet>
| <h:outputText value="#{page.id}"/>
| </rich:column>
|
|
| <rich:column>
| <f:facet name="header">
| <h:outputText value="Name"/>
| </f:facet>
| <h:outputText value="#{page.name}"/>
| </rich:column>
|
|
| </rich:dataTable>
|
| </h:form>
|
CCE exception:
| 15:41:48,468 FATAL [application] /pages/group_header/god.xhtml @37,102 action="#{siteeditorPB.selectPage}": java.lang.ClassCastException: java.util.ArrayList
| javax.faces.el.EvaluationException: /pages/group_header/god.xhtml @37,102 action="#{siteeditorPB.selectPage}": java.lang.ClassCastException: java.util.ArrayList
|
| at com.sun.facelets.el.LegacyMethodBinding.invoke(LegacyMethodBinding.java:73)
| at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:91)
| at javax.faces.component.UICommand.broadcast(UICommand.java:383)
| at org.ajax4jsf.component.AjaxActionComponent.broadcast(AjaxActionComponent.java:62)
| at org.ajax4jsf.component.UIDataAdaptor.broadcast(UIDataAdaptor.java:1198)
| at org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:184)
| at org.ajax4jsf.component.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:162)
| at org.ajax4jsf.component.AjaxViewRoot.processApplication(AjaxViewRoot.java:350)
| at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:97)
| at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
| at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
| at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| 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:45)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
| at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
| at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
| at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
| at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
| at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
| at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
| at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
| at java.lang.Thread.run(Thread.java:595)
| Caused by: java.lang.ClassCastException: java.util.ArrayList
| at org.jboss.seam.databinding.DataModelBinder.getSelection(DataModelBinder.java:14)
| at org.jboss.seam.Component.injectDataModelSelection(Component.java:1497)
| at org.jboss.seam.Component.injectDataModelSelections(Component.java:1478)
| at org.jboss.seam.Component.inject(Component.java:1417)
| at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:45)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
| at org.jboss.seam.persistence.ManagedEntityIdentityInterceptor.aroundInvoke(ManagedEntityIdentityInterceptor.java:48)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
| at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:31)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
| at org.jboss.seam.core.ConversationInterceptor.aroundInvoke(ConversationInterceptor.java:56)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
| at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:42)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
| at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:106)
| at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:166)
| at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:102)
|
|
can anyone help?
thanks in advance
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4125550#4125550
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4125550
18 years, 2 months
[Installation, Configuration & DEPLOYMENT] - Re: EJB JAR inside EAR
by starkc
I feel I have to reiterate that the code is closed to be, I do not have source access at this time, which unfortunately may limit us although I hope it does not.
StrategyBeanBMPs ejbCreate, as per a decompiler, is as follows:
| public StrategyPK ejbCreate(String s, String s1, String s2, Timestamp timestamp, byte abyte0[], String s3, BigDecimal bigdecimal,
| String s4)
| throws CreateException, RemoteException
| {
| if(!isEncrypted(abyte0))
| abyte0 = encrypt(abyte0);
| super.ejbCreate(s, s1, s2, timestamp, abyte0, s3, bigdecimal, s4);
| Connection connection;
| try
| {
| ejbFindByPrimaryKey(new StrategyPK(s, s1));
| throw new DuplicateKeyException("Primary key already exists");
| }
| catch(ObjectNotFoundException objectnotfoundexception)
| {
| connection = null;
| }
| PreparedStatement preparedstatement = null;
| try
| {
| connection = dataSource.getConnection();
| if(DatabaseDetector.isOracle(connection))
| preparedstatement = connection.prepareStatement("insert into strategy (business, strategy, version, deploy_dt, deploy_admin_server, deploy_port, deploy_protocol, xml) values (?, ?, ?, ?, ?, ?, ?, empty_blob())");
| else
| preparedstatement = connection.prepareStatement("insert into strategy (business, strategy, version, deploy_dt, deploy_admin_server, deploy_port, deploy_protocol, xml) values (?, ?, ?, ?, ?, ?, ?, ?)");
| if(timestamp == null)
| timestamp = new Timestamp(System.currentTimeMillis());
| preparedstatement.setString(1, s);
| preparedstatement.setString(2, s1);
| preparedstatement.setString(3, s2);
| preparedstatement.setTimestamp(4, timestamp);
| preparedstatement.setString(5, s3);
| if(bigdecimal == null)
| bigdecimal = new BigDecimal("7001");
| preparedstatement.setBigDecimal(6, bigdecimal);
| preparedstatement.setString(7, s4);
| if(!DatabaseDetector.isOracle(connection))
| {
| String s5 = new String(abyte0);
| StringReader stringreader = new StringReader(s5);
| preparedstatement.setCharacterStream(8, stringreader, s5.length());
| }
| if(preparedstatement.executeUpdate() != 1)
| throw new CreateException("Error adding row");
| if(DatabaseDetector.isOracle(connection))
| {
| Object obj = null;
| Object obj1 = null;
| boolean flag = true;
| try
| {
| connection = dataSource.getConnection();
| boolean flag1 = connection.getAutoCommit();
| connection.setAutoCommit(false);
| String s6 = "select xml from strategy where business = ? and strategy = ? for update";
| preparedstatement = connection.prepareStatement(s6);
| preparedstatement.setString(1, s);
| preparedstatement.setString(2, s1);
| ResultSet resultset = preparedstatement.executeQuery();
| if(resultset.next())
| {
| Blob blob = resultset.getBlob("xml");
| if(blob != null)
| {
| OutputStream outputstream = ((OracleBlob)blob).getBinaryOutputStream();
| outputstream.write(abyte0);
| outputstream.flush();
| outputstream.close();
| connection.commit();
| connection.setAutoCommit(flag1);
| }
| }
| }
| catch(IOException ioexception)
| {
| ioexception.printStackTrace();
| try
| {
| connection.rollback();
| }
| catch(Exception exception) { }
| throw new EJBException("IO Exception reading xml from strategy" + ioexception.toString());
| }
| catch(SQLException sqlexception1)
| {
| sqlexception1.printStackTrace();
| try
| {
| connection.rollback();
| }
| catch(Exception exception1) { }
| throw new EJBException("select xml from strategy where business = '" + super.business + "' and strategy = '" + super.strategy + "' for update" + sqlexception1.toString());
| }
| }
| StrategyPK strategypk = new StrategyPK(s, s1);
| return strategypk;
| }
| catch(SQLException sqlexception)
| {
| sqlexception.printStackTrace();
| throw new EJBException("Error executing SQL insert into strategy (business, strategy, version, deploy_dt, xml) values (?, ?, ?, ?, ?): " + sqlexception.toString());
| }
| finally
| {
| closeConnection(connection, preparedstatement);
| }
| }
I was never able to successfully recreate the scenario to pin down the statement throwing the exception, however looking at the trace a guess would be this one:
super.ejbCreate(s, s1, s2, timestamp, abyte0, s3, bigdecimal, s4);
Which would cause it to call the Strategy.create method? This may not be correct understanding of the situation...
The output of the -tf command on the earfile is as follows:
| META-INF/
| META-INF/MANIFEST.MF
| decisionCore.jar
| decisionserver.war
| META-INF/application.xml
|
decisionCore contains the EJBs, whereas decisionserver.war comtains the webapp, obviously. At one point I had a jboss-app.xml placed next to the application.xml, specifying isolation, etc... however it was removed along the course of my testing to this point.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4125547#4125547
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4125547
18 years, 2 months
[JBoss Messaging] - Re: long live consumer stops working
by bodrin
Here are my answers:
anonymous wrote :
| I - Have you used debugging during your tests?
|
No. I just leave the long-live-consumer to run for a few hours, then check it if it receives the messages. It does not, and then I connect with the debuger to it and try to analyze
its state via suspending all the threads, but withouh any success - I only see two related threads blocked on a socket read operation.
anonymous wrote :
| II - Also.. have you seen this sort of message on server?
|
| "16:09:52,005 WARN [SimpleConnectionManager] A problem has been detected with the connection to remote client 3j011-dg4k19-fc3uylzr-1-fc3uymin-4, jmsClientID=b-7omyu3cf-1-rzlyu3cf-91k4gd-110j3. It is possible the client has exited without closing its connection(s) or the network has failed. All connection resources corresponding to that client process will now be removed."
|
Yes, when checking question III.
I tried to reproduce it again and there is an exception into the JBoss console:
| 09:48:07,081 INFO [Server] JBoss (MX MicroKernel) [4.2.2.GA (build: SVNTag=JBos
|
| [root@centos9 mpay]#
| [root@centos9 mpay]# 15:31:49,131 ERROR [SocketClientInvoker] Got marshalling exception, exiting
| java.io.IOException: Connection reset
| at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:96)
| at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
| at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65)
| at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:123)
| at java.io.DataOutputStream.flush(DataOutputStream.java:106)
| at org.jboss.jms.wireformat.ClientDelivery.write(ClientDelivery.java:93)
| at org.jboss.jms.wireformat.JMSWireFormat.write(JMSWireFormat.java:237)
| at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.versionedWrite(MicroSocketClientInvoker.java:945)
| at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientInvoker.java:586)
| at org.jboss.remoting.transport.bisocket.BisocketClientInvoker.transport(BisocketClientInvoker.java:418)
| at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:122)
| at org.jboss.remoting.Client.invoke(Client.java:1634)
| at org.jboss.remoting.Client.invoke(Client.java:548)
| at org.jboss.remoting.Client.invokeOneway(Client.java:598)
| at org.jboss.remoting.callback.ServerInvokerCallbackHandler.handleCallback(ServerInvokerCallbackHandler.java:826)
| at org.jboss.remoting.callback.ServerInvokerCallbackHandler.handleCallbackOneway(ServerInvokerCallbackHandler.java:697)
| at org.jboss.jms.server.endpoint.ServerSessionEndpoint.performDelivery(ServerSessionEndpoint.java:1432)
| at org.jboss.jms.server.endpoint.ServerSessionEndpoint.handleDelivery(ServerSessionEndpoint.java:1344)
| at org.jboss.jms.server.endpoint.ServerConsumerEndpoint.handle(ServerConsumerEndpoint.java:322)
| at org.jboss.messaging.core.impl.RoundRobinDistributor.handle(RoundRobinDistributor.java:119)
| at org.jboss.messaging.core.impl.MessagingQueue$DistributorWrapper.handle(MessagingQueue.java:582)
| at org.jboss.messaging.core.impl.ClusterRoundRobinDistributor.handle(ClusterRoundRobinDistributor.java:79)
| at org.jboss.messaging.core.impl.ChannelSupport.deliverInternal(ChannelSupport.java:606)
| at org.jboss.messaging.core.impl.MessagingQueue.deliverInternal(MessagingQueue.java:505)
| at org.jboss.messaging.core.impl.ChannelSupport$InMemoryCallback.afterCommit(ChannelSupport.java:935)
| at org.jboss.messaging.core.impl.tx.Transaction.commit(Transaction.java:228)
| at org.jboss.jms.server.endpoint.ServerConnectionEndpoint.sendTransaction(ServerConnectionEndpoint.java:474)
| at org.jboss.jms.server.endpoint.advised.ConnectionAdvised.org$jboss$jms$server$endpoint$advised$ConnectionAdvised$sendTransaction$aop(ConnectionAdvised.java:101)
| at org.jboss.jms.server.endpoint.advised.ConnectionAdvised$sendTransaction_N3268650789275322226.invokeNext(ConnectionAdvised$sendTransaction_N3268650789275322226.java)
| at org.jboss.jms.server.container.SecurityAspect.handleSendTransaction(SecurityAspect.java:195)
| at sun.reflect.GeneratedMethodAccessor86.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:597)
| at org.jboss.aop.advice.PerInstanceAdvice.invoke(PerInstanceAdvice.java:121)
| at org.jboss.jms.server.endpoint.advised.ConnectionAdvised$sendTransaction_N3268650789275322226.invokeNext(ConnectionAdvised$sendTransaction_N3268650789275322226.java)
| at org.jboss.jms.server.container.ServerLogInterceptor.invoke(ServerLogInterceptor.java:105)
| at org.jboss.jms.server.endpoint.advised.ConnectionAdvised$sendTransaction_N3268650789275322226.invokeNext(ConnectionAdvised$sendTransaction_N3268650789275322226.java)
| at org.jboss.jms.server.endpoint.advised.ConnectionAdvised.sendTransaction(ConnectionAdvised.java)
| at org.jboss.jms.wireformat.ConnectionSendTransactionRequest.serverInvoke(ConnectionSendTransactionRequest.java:82)
| at org.jboss.jms.server.remoting.JMSServerInvocationHandler.invoke(JMSServerInvocationHandler.java:143)
| at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:795)
| at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:573)
| at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:387)
| at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:166)
| 15:31:49,136 ERROR [ServerInvokerCallbackHandler] Error handling callback
| java.rmi.MarshalException: Failed to communicate. Problem during marshalling/unmarshalling; nested exception is:
| java.io.IOException: Connection reset
| at org.jboss.remoting.transport.socket.SocketClientInvoker.handleException(SocketClientInvoker.java:122)
| at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientInvoker.java:669)
| at org.jboss.remoting.transport.bisocket.BisocketClientInvoker.transport(BisocketClientInvoker.java:418)
| at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:122)
| at org.jboss.remoting.Client.invoke(Client.java:1634)
| at org.jboss.remoting.Client.invoke(Client.java:548)
| at org.jboss.remoting.Client.invokeOneway(Client.java:598)
| at org.jboss.remoting.callback.ServerInvokerCallbackHandler.handleCallback(ServerInvokerCallbackHandler.java:826)
| at org.jboss.remoting.callback.ServerInvokerCallbackHandler.handleCallbackOneway(ServerInvokerCallbackHandler.java:697)
| at org.jboss.jms.server.endpoint.ServerSessionEndpoint.performDelivery(ServerSessionEndpoint.java:1432)
| at org.jboss.jms.server.endpoint.ServerSessionEndpoint.handleDelivery(ServerSessionEndpoint.java:1344)
| at org.jboss.jms.server.endpoint.ServerConsumerEndpoint.handle(ServerConsumerEndpoint.java:322)
| at org.jboss.messaging.core.impl.RoundRobinDistributor.handle(RoundRobinDistributor.java:119)
| at org.jboss.messaging.core.impl.MessagingQueue$DistributorWrapper.handle(MessagingQueue.java:582)
| at org.jboss.messaging.core.impl.ClusterRoundRobinDistributor.handle(ClusterRoundRobinDistributor.java:79)
| at org.jboss.messaging.core.impl.ChannelSupport.deliverInternal(ChannelSupport.java:606)
| at org.jboss.messaging.core.impl.MessagingQueue.deliverInternal(MessagingQueue.java:505)
| at org.jboss.messaging.core.impl.ChannelSupport$InMemoryCallback.afterCommit(ChannelSupport.java:935)
| at org.jboss.messaging.core.impl.tx.Transaction.commit(Transaction.java:228)
| at org.jboss.jms.server.endpoint.ServerConnectionEndpoint.sendTransaction(ServerConnectionEndpoint.java:474)
| at org.jboss.jms.server.endpoint.advised.ConnectionAdvised.org$jboss$jms$server$endpoint$advised$ConnectionAdvised$sendTransaction$aop(ConnectionAdvised.java:101)
| at org.jboss.jms.server.endpoint.advised.ConnectionAdvised$sendTransaction_N3268650789275322226.invokeNext(ConnectionAdvised$sendTransaction_N3268650789275322226.java)
| at org.jboss.jms.server.container.SecurityAspect.handleSendTransaction(SecurityAspect.java:195)
| at sun.reflect.GeneratedMethodAccessor86.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:597)
| at org.jboss.aop.advice.PerInstanceAdvice.invoke(PerInstanceAdvice.java:121)
| at org.jboss.jms.server.endpoint.advised.ConnectionAdvised$sendTransaction_N3268650789275322226.invokeNext(ConnectionAdvised$sendTransaction_N3268650789275322226.java)
| at org.jboss.jms.server.container.ServerLogInterceptor.invoke(ServerLogInterceptor.java:105)
| at org.jboss.jms.server.endpoint.advised.ConnectionAdvised$sendTransaction_N3268650789275322226.invokeNext(ConnectionAdvised$sendTransaction_N3268650789275322226.java)
| at org.jboss.jms.server.endpoint.advised.ConnectionAdvised.sendTransaction(ConnectionAdvised.java)
| at org.jboss.jms.wireformat.ConnectionSendTransactionRequest.serverInvoke(ConnectionSendTransactionRequest.java:82)
| at org.jboss.jms.server.remoting.JMSServerInvocationHandler.invoke(JMSServerInvocationHandler.java:143)
| at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:795)
| at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:573)
| at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:387)
| at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:166)
| Caused by: java.io.IOException: Connection reset
| at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:96)
| at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
| at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65)
| at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:123)
| at java.io.DataOutputStream.flush(DataOutputStream.java:106)
| at org.jboss.jms.wireformat.ClientDelivery.write(ClientDelivery.java:93)
| at org.jboss.jms.wireformat.JMSWireFormat.write(JMSWireFormat.java:237)
| at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.versionedWrite(MicroSocketClientInvoker.java:945)
| at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientInvoker.java:586)
| ... 35 more
| [root@centos9 mpay]#
|
anonymous wrote :
| III - If you start another client, Long-live-queue-consumer, would you see messages arriving?
|
1. I have started another client and it received 8 messages, not 10 as espected. Two messages are missing
2. I tried to send another 10 messages and the second long-live-consumers receives them all.
3. I stopped the first one, and then a message into the JBoss console appeared:
| [root@centos9 mpay]# 15:52:58,801 WARN [SimpleConnectionManager] A problem has been detected with the connection to remote client 4sg1e4f-d8p38v-fc4foojk-1-fc4fop7g-4, jmsClientID=b-tepof4cf-1-kjoof4cf-v83p8d-f4e1gs4. It is possible the client has exited without closing its connection(s) or the network has failed. All connection resources corresponding to that client process will now be removed.
|
Could you tell me what exactly this means, please?
4.After that I have started again a long-live-consumer and it received the two missing messages.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4125544#4125544
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4125544
18 years, 2 months