9 Replies Latest reply on Aug 3, 2010 7:34 AM by Galder Zamarreño

    Unable to start Hotrod server

    Savin Seven Newbie

      I have downloaded the distribution "infinispan-4.1.0.CR2" and tried to run the startServer.bat present inside bin directory with the below command in command prompt

       

      startServer.bat -r hotrod

       

      But it resulted in below error.

       

      D:\Infinispan\infinispan-4.1.0.CR2-all\infinispan-4.1.0.CR2\bin>startServer.bat
      -r hotrod
      log4j:WARN No appenders could be found for logger (org.infinispan.server.core.Ma
      in$).
      log4j:WARN Please initialize the log4j system properly.
      log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more in
      fo.
      Failed to boot JBoss:
      java.lang.NumberFormatException: null
              at java.lang.Integer.parseInt(Integer.java:417)
              at java.lang.Integer.parseInt(Integer.java:499)
              at scala.collection.immutable.StringLike$class.toInt(StringLike.scala:20
      7)
              at scala.collection.immutable.StringOps.toInt(StringOps.scala:31)
              at org.infinispan.server.core.Main$.boot(Main.scala:85)
              at org.infinispan.server.core.Main$$anon$1.call(Main.scala:58)
              at org.infinispan.server.core.Main$$anon$1.call(Main.scala:55)
              at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
              at java.util.concurrent.FutureTask.run(FutureTask.java:138)
              at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.
      access$301(ScheduledThreadPoolExecutor.java:98)
              at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.
      run(ScheduledThreadPoolExecutor.java:207)
              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec
      utor.java:886)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
      .java:908)
              at java.lang.Thread.run(Thread.java:619)
      Exception in thread "main" java.util.concurrent.ExecutionException: java.lang.Nu
      mberFormatException: null
              at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:222)
              at java.util.concurrent.FutureTask.get(FutureTask.java:83)
              at org.infinispan.server.core.Main$.main(Main.scala:76)
              at org.infinispan.server.core.Main.main(Main.scala)
      Caused by: java.lang.NumberFormatException: null
              at java.lang.Integer.parseInt(Integer.java:417)
              at java.lang.Integer.parseInt(Integer.java:499)
              at scala.collection.immutable.StringLike$class.toInt(StringLike.scala:20
      7)
              at scala.collection.immutable.StringOps.toInt(StringOps.scala:31)
              at org.infinispan.server.core.Main$.boot(Main.scala:85)
              at org.infinispan.server.core.Main$$anon$1.call(Main.scala:58)
              at org.infinispan.server.core.Main$$anon$1.call(Main.scala:55)
              at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
              at java.util.concurrent.FutureTask.run(FutureTask.java:138)
              at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.
      access$301(ScheduledThreadPoolExecutor.java:98)
              at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.
      run(ScheduledThreadPoolExecutor.java:207)
              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec
      utor.java:886)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
      .java:908)
              at java.lang.Thread.run(Thread.java:619)

       

       

      Please advice. How to resolve this error. Where I might be going wrong. Advance thanks for the same

       

      Thanks & Regards,

      Savin

        • 1. Re: Unable to start Hotrod server
          Galder Zamarreño Master

          This is regression introduced in CR2, see https://jira.jboss.org/browse/ISPN-550

           

          We're looking into it.

           

          For it not to fail, as a workaround, you'll have to pass vaues for the following command line parameters, otherwise startup will fail.:

          master_threads, work_threads, idle_timeout, tcp_no_delay, send_buf_size, recv_buf_size

          • 2. Re: Unable to start Hotrod server
            Savin Seven Newbie

            Dear Galder,

             

            First of all, thanks for sharing the information.

             

            As suggested, I have tried the workaround by passing values as command line parameters. Below is my test command

             

            D:\Infinispan\infinispan-4.1.0.CR2-all\infinispan-4.1.0.CR2\bin>

            startServer.bat -m 3 -t 3 -i 60000 -n true -s 20000 -e 20000 -r hotrod

             

            but still I am getting the same error.

            Failed to boot JBoss:
            java.lang.NullPointerException
                    at java.util.Hashtable.put(Hashtable.java:394)

             

            Please let me know, How can I pass those values in command line parameters.

            If possible, Kindly give me the command with the parameter values. So that I can try that.

             

            My advance thanks for the same.

             

            Regards,

            Savin

            • 3. Re: Unable to start Hotrod server
              Galder Zamarreño Master

              Hi Savin,

               

              I fixed the issue yesterday. It was a mixup in a code merge done for CR2. Please find attached infinispan-server-core-4.1.0-SNAPSHOT.jar file that has the issue fixed. Replace  infinispan-4.1.0.CR2-all\infinispan-4.1.0.CR2\modules\hotrod\lib\infinispan-server-core-4.1.0-CR2.jar with the attached jar and try again with the original command line:  startServer.bat -r hotrod

               

              No need to rename the jar when replacing, it can keep the -SNAPSHOT.jar ending.

               

              Try it out and let us know how it goes.

              • 4. Re: Unable to start Hotrod server
                Savin Seven Newbie

                Dear Galder,

                 

                As suggested, I have replaced the infinispan-server-core-4.1.0-CR2.jar with infinispan-server-core-4.1.0-SNAPSHOT.jar in the lib folder and tried the command

                 

                startServer.bat -r hotrod

                 

                But still facing the same error

                 

                D:\Infinispan\infinispan-4.1.0.CR2-all\infinispan-4.1.0.CR2\bin>startServer.bat
                -r hotrod
                log4j:WARN No appenders could be found for logger (org.infinispan.server.core.Ma
                in$).
                log4j:WARN Please initialize the log4j system properly.
                log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more in
                fo.
                Failed to boot JBoss:
                java.lang.NumberFormatException: null

                 

                Please advice. Kindly do the neeful.

                 

                Thanks & Regards,

                Savin

                • 5. Re: Unable to start Hotrod server
                  Manik Surtani Master

                  Look at the timestamps - the latest snapshot is even older than CR2!  :-)

                   

                  I've just kicked off a run to publish a new snapshot.  Please try again in about an hour, and make sure you run Maven with the -U option so you update all snapshots.

                  • 6. Re: Unable to start Hotrod server
                    Manik Surtani Master

                    Whoops, only just realised that Galder built a snapshot for you.  Ignore what I said earlier, I was under the impression you were using a snapshot from Maven as opposed to the jar Galder attached to his last message.

                     

                    I'll leave this for Galder to resolve. 

                    • 7. Re: Unable to start Hotrod server
                      Savin Seven Newbie

                      Dear Galder,

                       

                      Kindly provide some updates to solve this issue. I am waiting for your reply.

                       

                      My advance thanks for the same.

                       

                      Thanks & Regards,

                      Nivaspirabhu.P

                      • 8. Re: Unable to start Hotrod server
                        rajeshrv Newbie

                        For the time being, I got this working with below command.

                         

                        startServer.bat -l localhost -p 11313 -m 20 -t 20 -c ../etc/config-samples/minimal.xml -r hotrod -i 600 -n true -s 1024000 -e 1024000 -o localhost -x 11313

                         

                        the numbers are just given - not any recommended values...

                        • 9. Re: Unable to start Hotrod server
                          Galder Zamarreño Master

                          Don't panic

                           

                          startServer.sh brings libraries from memcached and websocket modules as well, so you need to replace these libraries as well:

                           

                          infinispan-4.1.0.CR2/modules/memcached/lib/infinispan-server-core-4.1.0.CR2.jar

                          infinispan-4.1.0.CR2/modules/websocket/lib/infinispan-server-core-4.1.0.CR2.jar

                           

                          Once removed these, copy the snapshot jar into infinispan-4.1.0.CR2/modules/websocket/lib and infinispan-4.1.0.CR2/modules/memcached/lib