Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

null reference on reconnect #4

Open
alphazero opened this issue Sep 18, 2009 · 3 comments
Open

null reference on reconnect #4

alphazero opened this issue Sep 18, 2009 · 3 comments

Comments

@alphazero
Copy link
Owner

On reconnect, SynchConnection checks status and reference is null.

@xp
Copy link

xp commented Nov 15, 2009

I am facing the same issue.
java.lang.NullPointerException
at org.jredis.ri.alphazero.connection.SynchConnection.serviceRequest(SynchConnection.java:159)
at org.jredis.ri.alphazero.JRedisClient.serviceRequest(JRedisClient.java:154)
at org.jredis.ri.alphazero.JRedisSupport.lrange(JRedisSupport.java:743)

@xp
Copy link

xp commented Nov 15, 2009

I am on UR.2 branch

@salanki
Copy link

salanki commented Feb 21, 2010

I am having the same issue, as well as on new connections I sometimes get:

  • JREDIS -- BUG: Couldn't create the handler delegate. => Unexpected error on initialize -- BUG
    org.jredis.ProviderException: Unexpected error on initialize -- BUG
    at org.jredis.ri.alphazero.connection.ConnectionBase.(ConnectionBase.java:136)
    at org.jredis.ri.alphazero.connection.ConnectionBase.(ConnectionBase.java:109)
    at org.jredis.ri.alphazero.connection.SynchConnection.(SynchConnection.java:97)
    at org.jredis.ri.alphazero.SynchJRedisBase.createSynchConnection(SynchJRedisBase.java:110)
    at org.jredis.ri.alphazero.JRedisClient.(JRedisClient.java:91)
    at org.jredis.ri.alphazero.JRedisClient.(JRedisClient.java:144)
    at org.jredis.ri.alphazero.JRedisClient.(JRedisClient.java:128)
    at st.salanki.dmoz.RedisConnector.connect(dmoz.scala:29)
    at st.salanki.dmoz.RedisConnector.(dmoz.scala:27)
    at st.salanki.dmoz.RedisTextTranslatorStorage.(dmoz.scala:38)
    at st.salanki.dmoz.Dmoz$.translator$1(dmoz.scala:208)
    at st.salanki.dmoz.Dmoz$.keywordsWithScoreFromTitle(dmoz.scala:217)
    at st.salanki.dmoz.Dmoz$$anonfun$processXML$1.apply(dmoz.scala:237)
    at st.salanki.dmoz.Dmoz$$anonfun$processXML$1.apply(dmoz.scala:230)
    at scala.collection.Iterator$class.foreach(Iterator.scala:582)
    at scala.xml.pull.XMLEventReader.foreach(XMLEventReader.scala:42)
    at st.salanki.dmoz.Dmoz$.processXML(dmoz.scala:230)
    at st.salanki.dmoz.Dmoz$.main(dmoz.scala:190)
    at st.salanki.dmoz.Dmoz.main(dmoz.scala)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at scala.tools.nsc.util.ScalaClassLoader$$anonfun$run$1.apply(ScalaClassLoader.scala:55)
    at scala.tools.nsc.util.ScalaClassLoader$class.asContext(ScalaClassLoader.scala:22)
    at scala.tools.nsc.util.ScalaClassLoader$URLClassLoader.asContext(ScalaClassLoader.scala:61)
    at scala.tools.nsc.util.ScalaClassLoader$class.run(ScalaClassLoader.scala:55)
    at scala.tools.nsc.util.ScalaClassLoader$URLClassLoader.run(ScalaClassLoader.scala:61)
    at scala.tools.nsc.MainGenericRunner$.main(MainGenericRunner.scala:153)
    at scala.tools.nsc.MainGenericRunner.main(MainGenericRunner.scala)
    Caused by: org.jredis.ClientRuntimeException: Socket connect failed -- make sure the server is running at 193.25.126.10
    at org.jredis.ri.alphazero.connection.ConnectionBase.connect(ConnectionBase.java:258)
    at org.jredis.ri.alphazero.connection.ConnectionBase.(ConnectionBase.java:128)
    ... 29 more
    Caused by: java.net.SocketException: Too many open files
    at java.net.Socket.createImpl(Socket.java:394)
    at java.net.Socket.getImpl(Socket.java:457)
    at java.net.Socket.setKeepAlive(Socket.java:1166)
    at org.jredis.ri.alphazero.connection.ConnectionBase.newSocketConnect(ConnectionBase.java:314)
    at org.jredis.ri.alphazero.connection.ConnectionBase.connect(ConnectionBase.java:255)
    ... 30 more

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants