[jboss-user] [JBoss Messaging Users] - Re: How to set socket timeouts?
I have deployed the same code as a stand-alone Java Application launched from the CLI on that same linux server, and it keeps serving messages, even after a nights sleep. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4267618#4267618 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4267618 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging Users] - Re: How to set socket timeouts?
Howard I've talked to the guys that manage the 2 firewalls in between and they've disabled all timeouts. After that change the polling client still stops receiving messages after a while. I've also enabled TRACE for jms and remoting on the JBM 1.4.5 server and I can see ping requests/responses. Maybe, instead of creating my own polling client, just to rule out any threading issue it might be better to implement this as an MDB. Only issue I have with this is with the documentation. It is not updated for EJB3... http://www.jboss.org/community/wiki/HowDoIConfigureAnMDBToTalkToARemoteQueue Can you please tell me what you would do & how I can proceed? Big thanks View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4267480#4267480 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4267480 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging Users] - Re: How to set socket timeouts?
Hi Howard I'm not sure if it is a bug or not but here's the following: I've TRACED org.jboss.jms and org.jboss.remoting on the polling client. I can see the client ping the server every 30 seconds. I see no exceptions in the logs. However after 10 or 15 minutes this client no longer finds messages on the queue, but the ping remains functioning. If I restart my client process running on a remote jboss 4.2.3, the client perfectly finds all messages it has missed. This client is the only reader. 2009-11-24 16:30:01,952 TRACE [org.jboss.jms.wireformat.JMSWireFormat] Wrote packet | 2009-11-24 16:30:01,952 TRACE [org.jboss.remoting.transport.socket.MicroSocketClientInvoker] SocketClientInvoker[a1d92a, bisocket://10.249.6.1:4457] done writing invocation to marshaller | 2009-11-24 16:30:01,952 TRACE [org.jboss.remoting.transport.socket.MicroSocketClientInvoker] SocketClientInvoker[a1d92a, bisocket://10.249.6.1:4457] reading version from input stream | 2009-11-24 16:30:01,954 TRACE [org.jboss.remoting.transport.socket.MicroSocketClientInvoker] SocketClientInvoker[a1d92a, bisocket://10.249.6.1:4457] read version 22 from input stream | 2009-11-24 16:30:01,954 TRACE [org.jboss.remoting.transport.socket.MicroSocketClientInvoker] SocketClientInvoker[a1d92a, bisocket://10.249.6.1:4457] reading response from unmarshaller | 2009-11-24 16:30:01,954 TRACE [org.jboss.jms.wireformat.JMSWireFormat] Reading | 2009-11-24 16:30:01,954 TRACE [org.jboss.jms.wireformat.JMSWireFormat] Stream is already DataInputStream :) | 2009-11-24 16:30:01,954 TRACE [org.jboss.jms.wireformat.JMSWireFormat] Created packet SerializedPacket[null] | 2009-11-24 16:30:01,954 TRACE [org.jboss.jms.wireformat.JMSWireFormat] Reading packet | 2009-11-24 16:30:01,954 TRACE [org.jboss.jms.wireformat.JMSWireFormat] Read packet | 2009-11-24 16:30:01,955 TRACE [org.jboss.jms.wireformat.JMSWireFormat] Returning payload: InvocationResponse[dd09a6, InvocationResponse[1a498b6, true]] | 2009-11-24 16:30:01,955 TRACE [org.jboss.remoting.transport.socket.MicroSocketClientInvoker] SocketClientInvoker[a1d92a, bisocket://10.249.6.1:4457] returned NEW ClientSocketWrapper[Socket[addr=/10.249.6.1,port=4457,localport=37299].a6aa31] to pool | 2009-11-24 16:30:01,955 TRACE [org.jboss.remoting.transport.socket.MicroSocketClientInvoker] SocketClientInvoker[a1d92a, bisocket://10.249.6.1:4457] released semaphore: 200 | 2009-11-24 16:30:01,955 TRACE [org.jboss.remoting.transport.socket.MicroSocketClientInvoker] SocketClientInvoker[a1d92a, bisocket://10.249.6.1:4457] received response InvocationResponse[dd09a6, InvocationResponse[1a498b6, true]] | 2009-11-24 16:30:01,955 TRACE [org.jboss.remoting.MicroRemoteClientInvoker] SocketClientInvoker[a1d92a, bisocket://10.249.6.1:4457] received InvocationResponse so going to return response's return value of InvocationResponse[1a498b6, true] | 2009-11-24 16:30:01,955 TRACE [org.jboss.remoting.LeasePinger] LeasePinger[3j001-jg0dw9-g2et9fcn-1-g2et9kaa-9:SocketClientInvoker[a1d92a, bisocket://10.249.6.1:4457](3j001-jg0dw9-g2et9fcn-1-g2et9ka6-8)] successfully pinged the server | 2009-11-24 16:30:01,969 TRACE [org.jboss.remoting.ConnectionValidator] ConnectionValidator[a4effe:SocketClientInvoker[5f8245, bisocket://10.249.6.1:4457], pingPeriod=1 ms] sending PING tied to lease | 2009-11-24 16:30:01,969 TRACE [org.jboss.remoting.ConnectionValidator] pinging, sending InvocationRequest[1b5eaed, self, $PING$] over SocketClientInvoker[5f8245, bisocket://10.249.6.1:4457] | 2009-11-24 16:30:01,969 TRACE [org.jboss.remoting.MicroRemoteClientInvoker] SocketClientInvoker[5f8245, bisocket://10.249.6.1:4457](1) invoking InvocationRequest[1b5eaed, self, $PING$] | 2009-11-24 16:30:01,969 TRACE [org.jboss.remoting.transport.socket.MicroSocketClientInvoker] SocketClientInvoker[5f8245, bisocket://10.249.6.1:4457] retryCount: 0 | 2009-11-24 16:30:01,969 TRACE [org.jboss.remoting.transport.socket.MicroSocketClientInvoker] SocketClientInvoker[5f8245, bisocket://10.249.6.1:4457] obtained semaphore: 199 | 2009-11-24 16:30:01,969 TRACE [org.jboss.jms.client.remoting.ClientSocketWrapper] checking open connection | 2009-11-24 16:30:01,969 TRACE [org.jboss.remoting.transport.socket.MicroSocketClientInvoker] SocketClientInvoker[5f8245, bisocket://10.249.6.1:4457] reusing pooled connection: NEW ClientSocketWrapper[Socket[addr=/10.249.6.1,port=4457,localport=49479].fbb5f5] | 2009-11-24 16:30:01,969 TRACE [org.jboss.remoting.transport.socket.MicroSocketClientInvoker] SocketClientInvoker[5f8245, bisocket://10.249.6.1:4457] writing version 22 on output stream | 2009-11-24 16:30:01,969 TRACE [org.jboss.remoting.transport.socket.MicroSocketClientInvoker] SocketClientInvoker[5f8245, bisocket://10.249.6.1:4457] writing invocation to marshaller | 2009-11-24 16:30:01,969 TRACE [org.jboss.jms.wireformat.JMSWireFormat] Writing InvocationRequest[1b5eaed, self, $PING$] | 20
[jboss-user] [JBoss Messaging Users] - Re: How to set socket timeouts?
I've enabled the setting but it had no effect. The client polling application is still loosing its link. I can build in a reconnect but this is fairly unfancy... Any ideas on how I could proceed? Thank you View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266750#4266750 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266750 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging Users] - Re: How to set socket timeouts?
There is a firewall between both machines, so I enabled those sections: The configuration looks as follows: org.jboss.jms.wireformat.JMSWireFormat | org.jboss.jms.wireformat.JMSWireFormat | jms | false | ${jboss.bind.address} | 4457 | org.jboss.jms.client.remoting.ClientSocketWrapper | org.jboss.jms.server.remoting.ServerSocketWrapper | org.jboss.jms.server.remoting.DirectThreadPool | | | 5 | 3 | 71582 | true | | | | | | true | | 1 | 1 | 5000 | | 0 | 1 | false | true | | 0 | | | 10 | | | 200 | | | 1 | | | 55794 | 55794 Thank you View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266225#4266225 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266225 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging Users] - Re: How to set socket timeouts?
It was setup this way to make sure traffic flow in 1 direction only. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266219#4266219 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266219 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging Users] - Re: How to set socket timeouts?
No, I do not use a MDB. The application opens up a single connection and session and manages a thread pool. I've got one daemon thread that polls for incoming messages and dispatches incoming messages to a worker thread obtained from that pool. That works great, but after X-time messages are no longer being consumed. If I restart the application, it processes all persisted messages on the queue. Thank you View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266217#4266217 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266217 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging Users] - How to set socket timeouts?
Hi I have a Web Application that has a Thread polling for incoming messages on a remote JBM 1.4.5 queue. After some time the thread no longer picks up any messages, so I assume the socket connection has timed out. If I'm correct, you can manage these settings in deploy/jboss-messaging.sar/remoting-bisocket-service.xml. Actually, I'm a bit overwhelmed by the number of switches defined here and it is not clear to me which one I need exactly. Could someone please hint me on the switch I need? All values are still default ones. Thank you in advance View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266111#4266111 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266111 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging Users] - Re: Nullpointer while creating a remote JMS Session
Indeed, but it only mentions non-JBoss clients. It reads: "In order to access JBoss Messaging from a client outside the JBoss app server, you will need to ensure the following jar files are on the client classpath" Since I was deploying on JBoss I expected everything was already on the classpath. As result, I guess my issue was caused by classloading scoping? Thank you View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4258927#4258927 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4258927 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging Users] - Re: Nullpointer while creating a remote JMS Session
I finally found the solution for my problem. I had to put the javassist.jar and jboss-aop-jdk50.jar in my WEB-INF/lib folder to make it work. This was a lot of trial and error going on here, so I would be delighted if somebody could explain why this happened to be the (a) solution. Also why is this not documented, because I use the refdocs on a clean JBoss AS. Just to understand what's going on. Thanks in advance. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4258676#4258676 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4258676 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging Users] - Re: Nullpointer while creating a remote JMS Session
FYI: The update to JBM 1.4.5 had no effect. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4258641#4258641 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4258641 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging Users] - Re: Nullpointer while creating a remote JMS Session
I've managed to reproduce this error on a windows environment, but only when the 2 JBoss processes are remote. Since you need to patch JBoss Remoting to get JBM working I guess my issue might be related to just that! As a result, I wonder how and where I need to provide this patch. Currently I've added the jboss-remoting (2.2.3) to the WEB-INF/lib but that doesn't seem to work. Can somebody please provide more details about this? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4258637#4258637 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4258637 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal Users] - Re: links from portlet content to another portal page
The reference guide has a topic about this: "13.9.3. Link to other pages." // Get the ParentNode. Since we are inside a Window, the Parent is the Page | PortalNode thisNode = req.getPortalNode().getParent(); | // Get the Node in the Portal hierarchy tree known as "../default" | PortalNode linkToNode = thisNode.resolve("../default"); | // Create a RenderURL to the "../default" Page Node | PortalNodeURL pageURL = resp.createRenderURL(linkToNode); | // Output the Node's name and URL for users | Samples | 149 | html.append("Page: " + linkToNode.getName() + " -> "); | html.append("" + linkToNode.getName() + ""); View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4258045#4258045 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4258045 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging Users] - Nullpointer while creating a remote JMS Session
Hi all My JMS client application running on JBoss 4.2.3 fails to create a remote JMS Session on startup due to a NullpointerException. The JMS server is JBM 1.4.4 on JBoss AS 4.2.3. Threads mentioned below already discuss the issue, but even when trying to change the scoping/loader the issue remains. 13:37:18,980 INFO [StartupListener] ~~ Creating JMS Session ... | 13:37:18,989 FATAL [StartupListener] | java.lang.NullPointerException | at org.jboss.jms.client.container.FailoverValveInterceptor.invoke(FailoverValveInterceptor.j | ava:87) | at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:105) | at org.jboss.jms.client.delegate.ClientConnectionDelegate$createSessionDelegate_605233526772 | 4906805.invokeNext(ClientConnectionDelegate$createSessionDelegate_6052335267724906805.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.ClientConnectionDelegate$createSessionDelegate_605233526772 | 4906805.invokeNext(ClientConnectionDelegate$createSessionDelegate_6052335267724906805.java) | at org.jboss.jms.client.delegate.ClientConnectionDelegate.createSessionDelegate(ClientConnec | tionDelegate.java) | at org.jboss.jms.client.JBossConnection.createSessionInternal(JBossConnection.java:269) | at org.jboss.jms.client.JBossConnection.createSession(JBossConnection.java:91) This standalone WAR file connects to the JBM server from the ServletContextListener.contextInitialized() callback method to poll for messages. The code was tested on windows platform(on 1 machine) but now fails during linux deployments where both servers are remote. http://www.jboss.org/index.html?module=bb&op=viewtopic&t=110051&postdays=0&postorder=asc&start=0 https://jira.jboss.org/jira/browse/JBMESSAGING-980 http://www.jboss.org/community/wiki/ClassLoadingconfiguration On the client server I removed the server/default/deploy/jms folder to remove JBossMQ. In the WEB-INF/lib of my WAR I've provided jboss-remoting.jar (v2.2.3) and jboss-messaging-client.jar (v1.4.4). Here is my Spring configuration: | | | org.jnp.interfaces.NamingContextFactory | jnp://someIP:1099 | org.jboss.naming:org.jnp.interfaces | | | | | | | | | | | | | | | | | and here is the code that initializes the connection: public class StartupListener implements ServletContextListener { | private static final Log log = LogFactory.getLog(StartupListener.class); | private static Connection connection; | private static Session session; | private static MessageConsumer consumer; | private static Boolean run = Boolean.TRUE; | private static ExecutorService pool; | private static Thread daemonThread; | private static final String PREFIX = " ~~ "; | private static MeteoService metService; | | /** | * Startup trigger of the application. | */ | public void contextInitialized(ServletContextEvent ctx) { | log.info(" Initializing ServiceBroker"); | | logInfo("Creating polling thread ..."); | daemonThread = new Thread(new MessageDispatcher()); | | try { | ApplicationContext _ctx = WebApplicationContextUtils.getWebApplicationContext(ctx.getServletConte | xt()); | initializeWorkerThreadPool(_ctx); | initializeJMSEnvironment(_ctx); | | metService = (MeteoService) _ctx.getBean("metService"); | | logInfo("Starting the Session ..."); | connection.start(); | | logInfo("Starting a Daemon Thread responsible for message dispatching ..."); | daemonThread.start(); | | log.info(" ServiceBroker initialized successfully"); | } catch (Throwable e) { | log.fatal(e.getMessage(), e); | } | } | | /** | * This is a context lifecycle (callback) method. | * The Servlet Context is being destroyed by the Container due to a shutdown. | * As a result we need to clean up our privately managed resources. | */ | public void contextDestroyed(ServletContextEvent ctx) { | synchronized (run) { | log.info(" Shutting down PilotBriefing ServiceBroker ..."); | run = Boolean.FALSE; | | logInfo("Interrupting polling thread ..."); | daemonThread.interrupt(); | | i
[jboss-user] [JBoss Portal Users] - Re: EJB3 access issue between portal 2.7.2 and AS 5.1.0GA
I worked around it deploying my EJB services layer on JBoss AS 4.2.3 but fell back to JBoss Messaging 1.4.4 instead of using JBM 2.0. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4257019#4257019 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4257019 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal Users] - EJB3 access issue between portal 2.7.2 and AS 5.1.0GA
I've deployed an EJB3 service on JBoss AS 5.1.0.GA. I now want to interact with this service from portlets deployed on JBoss Portal 2.7.2 (on JBoss AS 4.2.3). For some reason the remoting fails with a NullPointerException. Caused by: java.lang.NullPointerException | at org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:379) | at org.jboss.ejb3.session.InvokableContextClassProxyHack._dynamicInvoke(InvokableContextClassProxyHack.java:53) | at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:91) | at org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82) | at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:891) | at org.jboss.remoting.transport.socket.ServerThread.completeInvocation(ServerThread.java:744) | at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:697) | at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:524) | at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:232) | at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:163) | at org.jboss.remoting.Client.invoke(Client.java:1634) | at org.jboss.remoting.Client.invoke(Client.java:548) | at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:62) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:67) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.ejb3.security.client.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:65) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:74) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.aspects.remoting.PojiProxy.invoke(PojiProxy.java:61) | at $Proxy295.invoke(Unknown Source) | at org.jboss.ejb3.proxy.impl.handler.session.SessionProxyInvocationHandlerBase.invoke(SessionProxyInvocationHandlerBase.java:207) | at org.jboss.ejb3.proxy.impl.handler.session.SessionProxyInvocationHandlerBase.invoke(SessionProxyInvocationHandlerBase.java:164) | Is this a bug or is there an incompatibility between version 4.2.3 and 5.1.0.GA? Should I instead be running both servers on level 4.2.3? Maybe this is a classloading issue, since I can access the service from a CLI environment without a problem. Thank you View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4256812#4256812 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4256812 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user