[JBoss Messaging] - NullPointerException in org.jboss.jms.server.endpoint.Server
by bob_walker99
I'm using JBoss AS 4.2.2/JBM 1.4.0 on Linux SLES 9 x86_64 with Java 1.6.0_06. I have a single queue that a remote command line client pumps messages at, and a Jetty instance that has a Thread that implements MessageListener.
I'm seeing this in my server log, which coincides with the last point my MessageListener has onMessage called for the last time. My ExceptionListener never gets called, and my consumer is removed from the Queue.
| 2008-11-05 20:12:16,381 ERROR [org.jboss.messaging.util.ExceptionUtil] ConnectionEndpoint[wcy1-jk2s66nf-1-18ofs1nf-rplxnw-f20a] close [9r12-1f2pe6nf-1-18ofs1nf-rplxnw-f20a]
| java.lang.NullPointerException
| at org.jboss.jms.server.endpoint.ServerSessionEndpoint.localClose(ServerSessionEndpoint.java:1192)
| at org.jboss.jms.server.endpoint.ServerConnectionEndpoint.close(ServerConnectionEndpoint.java:385)
| at org.jboss.jms.server.connectionmanager.SimpleConnectionManager.closeConsumersForClientVMID(SimpleConnectionManager.java:377)
| at org.jboss.jms.server.connectionmanager.SimpleConnectionManager.handleClientFailure(SimpleConnectionManager.java:173)
| at org.jboss.jms.server.connectionmanager.SimpleConnectionManager.handleConnectionException(SimpleConnectionManager.java:200)
| at org.jboss.remoting.ConnectionNotifier.connectionLost(ConnectionNotifier.java:50)
| at org.jboss.remoting.Lease.notifyClientLost(Lease.java:211)
| at org.jboss.remoting.Lease.access$500(Lease.java:39)
| at org.jboss.remoting.Lease$LeaseTimerTask.run(Lease.java:249)
| at java.util.TimerThread.mainLoop(Timer.java:512)
| at java.util.TimerThread.run(Timer.java:462)
| 2008-11-05 20:12:16,491 ERROR [org.jboss.jms.server.connectionmanager.SimpleConnectionManager] Failed to close connection
| org.jboss.jms.exception.MessagingJMSException: A failure has occurred during processing of the request. Please consult the server logs for more details. ConnectionEndpoint[wcy1-jk2s66nf-1-18ofs1nf-rplxnw-f20a] close [9r12-1f2pe6nf-1-18ofs1nf-rplxnw-f20a]
| at org.jboss.messaging.util.ExceptionUtil.handleJMSInvocation(ExceptionUtil.java:72)
| at org.jboss.jms.server.endpoint.ServerConnectionEndpoint.close(ServerConnectionEndpoint.java:432)
| at org.jboss.jms.server.connectionmanager.SimpleConnectionManager.closeConsumersForClientVMID(SimpleConnectionManager.java:377)
| at org.jboss.jms.server.connectionmanager.SimpleConnectionManager.handleClientFailure(SimpleConnectionManager.java:173)
| at org.jboss.jms.server.connectionmanager.SimpleConnectionManager.handleConnectionException(SimpleConnectionManager.java:200)
| at org.jboss.remoting.ConnectionNotifier.connectionLost(ConnectionNotifier.java:50)
| at org.jboss.remoting.Lease.notifyClientLost(Lease.java:211)
| at org.jboss.remoting.Lease.access$500(Lease.java:39)
| at org.jboss.remoting.Lease$LeaseTimerTask.run(Lease.java:249)
| at java.util.TimerThread.mainLoop(Timer.java:512)
| at java.util.TimerThread.run(Timer.java:462)
|
I'm also seeing this a lot:
| A problem has been detected with the connection to remote client a0ac-y95htn-fn6xm53g-1-fn6xm6n0-4, jmsClientID=null. 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.
|
I'm tracing all my connection and session creation and disposal , and for the life of me I can't find anywhere where I'm not cleaning up my connections when I should be. The sending client is over a remote VPN, so it's possible that is the cause of a network failure, but I'm led to believe this is a reliable link that other traffic uses without issue.
I guess I have 2 questions:
1) what is the cause of the NPE, and can I do anything to resolve it?
and
2) Is there a way to pass a meaningful string to JBM to identify my clients more usefully so that I can track down where the connection was made from and what I might be doing wrongly? I tried calling setClientID on the connection when I create it, but I never see the value I set in the JBM logs.
Alternatively is there a function of the AS MBean interface that will allow me to see current connections / client resources in use?
Many thanks,
Bob
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4187270#4187270
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4187270
17 years, 5 months
[JBoss Cache: Core Edition] - Traversing and filtering of Tree Structured objects and thre
by chetanparekh
We are catching objects of tree structured class in cache. Following is the signature of class
Class : MyClass
An object of MyClass can have any number of children of the same type and children can have any number of their children as well. This can continue upto N level.
Methods
public MyClass addChild (MyClass child)
public Collection getChildren (ArralyList filter)
This method take ArrayList as an input and return ArrayList of children - baring those which exist in ArrayList filter. Method uses Iterator to traverse through ArrayList during filtration.
We fetch these objects from cache, traverse through them and read all node values. We are accessing these objects in read-only mode; there will not be any write operation on these objects.
Problem:
Total concurrent users of the application are around 20K and multiple thread are going to call getChildren(ArralyList filter). Parameter value for filter will very from user to user. Now suppose first thread calls getChildren (ArrayList filter) method and it reaches half the way. First thread loose the control and second thread get the control and calls getChildren (ArrayList filter) by passing different value for parameter filter.
Will this operation thread safe?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4187258#4187258
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4187258
17 years, 5 months
[Clustering/JBoss] - HA Jboss
by regi15
Hi all
I wish make a server with 1 node active and another passive to create a faul-tolerance architecture without loadbalancer.
I'm not expert about jboss, so after installation of jboss i read the Cluster guide and i understand that i should use JMS and HA-JNDI (I'm using jboss-4.0.5).
Follow a cluster guide i do this step:
1) copy from ./docs/examples/jca/jms-ds.xml to my deploy directory and i modifify this line like:
java.naming.provider.url=node1:1100,node2:1100
2) copy from ./docs/examples/jms/standalone/cluster-service.xml to my deploy dir and i leave this like example
3) remove the file hsqldb-ds.xml
4) substitute the file hsqldb-jdbc2-service.xml with mysq-jdbc2-service.xml
5) insert the db stuff (login, host, etc the db is on ) into mysq-jdbc2-service.xml
i did all this operation on the 2 node, i restart the jboss but don't work (neither the bind on 1100 port).
I'm sure that i miss something but i don't know, if someone can help me suggest some how to or link i'll appreciate too much.
tnx
Regi
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4187255#4187255
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4187255
17 years, 5 months
[EJB/JBoss] - Brief Explanation of a few things.
by DoubleDenim
Hi There,
I have been spending quite a while developing an application using Jboss 4.x and I'm almost ready to go into production with it.
It is a stateless session bean whos methods are invoked by a DWR application (servlet).
When i've been testing it on my local I've noticed if i try to make a bunch of requests at one time through multiple tabs within firefox the performance of the application slows dramatically. I noticed that the JSESSIONID is the same for each tab.
My Question: Could I potentially contribute this performance hit to the fact that my client is using the same instance of my stateless session bean?
When looking at the logging i have put in through the console window I noticed that the methods seem to be called one at a time rather than concurrently.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4187253#4187253
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4187253
17 years, 5 months