jasimcse / fsnet

Automatically exported from code.google.com/p/fsnet
0 stars 0 forks source link

Exception running FSNet #260

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. run FSNet locally 
2. wait and do nothing

What is the expected output? What do you see instead?
Nothing, just let FSnet running.
Sometime I have a nullPointerException showing up. I don't know why or if it is 
really related to FSNet but we have some strange problem like the issue about 
picture that shows up where they are not suppose to, maybe there is a link.

Using Eclipse Version: Helios Service Release 1 Build id: 20100917-0705
tomcat 6
ubuntu 10.04

GRAVE: L'écouteur d'évènement de session (session event listener) a 
généré une exception
java.lang.NullPointerException
    at java.util.concurrent.ConcurrentHashMap.remove(ConcurrentHashMap.java:950)
    at fr.univartois.ili.fsnet.core.LoggedUsersContainer.removeUser(LoggedUsersContainer.java:58)
    at fr.univartois.ili.fsnet.core.LogoutListener.sessionDestroyed(LogoutListener.java:29)
    at org.apache.catalina.session.StandardSession.expire(StandardSession.java:708)
    at org.apache.catalina.session.StandardSession.isValid(StandardSession.java:575)
    at org.apache.catalina.session.ManagerBase.processExpires(ManagerBase.java:700)
    at org.apache.catalina.session.ManagerBase.backgroundProcess(ManagerBase.java:685)
    at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1364)
    at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1649)
    at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1658)
    at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1658)
    at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1638)
    at java.lang.Thread.run(Thread.java:636)

Original issue reported on code.google.com by stephane...@gmail.com on 16 Feb 2011 at 4:30

GoogleCodeExporter commented 9 years ago
As indicated here 
http://download.oracle.com/javase/6/docs/api/java/util/concurrent/ConcurrentHash
Map.html#remove(java.lang.Object)

The key parameter should not be null. So, I think we get this error because the 
userId is null.

I will push a fix for this issue.

Original comment by mat.boni...@gmail.com on 16 Feb 2011 at 6:19

GoogleCodeExporter commented 9 years ago
fixed on r1646 

Original comment by mat.boni...@gmail.com on 16 Feb 2011 at 6:21