Labels

Monday, June 9, 2014

JVM appears hung: Timed out waiting for signal from JVM. error in Jetty server

ERROR  | wrapper  | 2014/06/04 15:53:55.147 | JVM appears hung: Timed out waiting for signal from JVM.
ERROR  | wrapper  | 2014/06/04 15:53:55.585 | JVM did not exit on request, terminated STATUS | wrapper  | 2014/06/04 15:54:01.163 | Launching a JVM...


Wednesday, May 21, 2014

fromDate and toDate piker html source code

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"

"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8" />  
    <title>Untitled Document</title>
    <link

href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/j

query-ui.css" rel="stylesheet" type="text/css"/>
    <script

src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"><

/script>
    <script

src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-

ui.min.js"></script>

<script type="text/javascript">
    $(function() {
        var dates = $( "#from, #to" ).datepicker({
            defaultDate: "+1w",
            changeMonth: true,
            numberOfMonths: 2,
            onSelect: function( selectedDate ) {
                var option = this.id == "from" ? "minDate" :

"maxDate",
                    instance = $( this ).data( "datepicker" ),
                    date = $.datepicker.parseDate(
                        instance.settings.dateFormat ||
                        $.datepicker._defaults.dateFormat,
                        selectedDate, instance.settings );
                dates.not( this ).datepicker( "option", option, date

);
            }
        });
    });
    </script>
  </head>

<body>
<div class="date">

<label for="from">From</label>
<input type="text" id="from" name="from"/>
<label for="to">to</label>
<input type="text" id="to" name="to"/>

</div><!-- End demo -->

</html>

Tuesday, May 20, 2014

org.apache.jk.common.MsgAjp cpBytes SEVERE: Overflow

May 16, 2014 6:54:01 AM org.apache.jk.common.MsgAjp cpBytes
SEVERE: Buffer overflow: buffer.len=8192 pos=8188 data=9
May 16, 2014 6:54:01 AM org.apache.jk.common.MsgAjp cpBytes
SEVERE: Overflow
java.lang.Throwable
        at org.apache.jk.common.MsgAjp.cpBytes(MsgAjp.java:196)
        at org.apache.jk.common.MsgAjp.appendByteChunk(MsgAjp.java:170)
        at org.apache.jk.common.MsgAjp.appendBytes(MsgAjp.java:155)
        at org.apache.jk.common.JkInputStream.appendHead(JkInputStream.java:311)
        at org.apache.jk.core.MsgContext.action(MsgContext.java:266)
        at org.apache.jk.core.MsgContext.action(MsgContext.java:302)
        at org.apache.coyote.Response.action(Response.java:183)
        at org.apache.coyote.Response.finish(Response.java:305)
        at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:195)
        at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283)
        at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767)
        at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:697)
        at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)

        at java.lang.Thread.run(Thread.java:662)

Solution:- While running perl scripts thourgh web application we got above error .we did below change to work.
we need to default packetSize like this in mod_jk file:

<Connector ... packetSize="16384" />

Make sure you set the max_packet_size in mod_jk TO BE THE SAME VALUE,
otherwise everything will go to problem. You can go up to 65536 bytes for
the packet size if you really need to. Note that larger packet sizes may
have a performance impact.

Tuesday, April 22, 2014

Source code for Text Output from a Dropdown Select

<!DOCTYPE HTML>

  <html>

    <head>

    <meta charset="utf-8">

    <title>Display phone number on select</title>

  </head>


  <body>

    <label for="storeSelect">Nearest Store</label>

    <select id="nearestStore">

      <option value="noSelection">Please Select</option>

      <option value="Lowestoft">Lowestoft</option>

      <option value="GtYarmouth">Gt Yarmouth</option>

      <option value="Norwich">Norwich</option>

      <option value="Diss">Diss</option>

    </select>

    

    <div id="phoneNumber"></div>

    

    <script>

      var nearestStore = document.getElementById("nearestStore"),

          phoneNumber = document.getElementById("phoneNumber"),

          stores = {

            noSelection: "",

            Lowestoft: "12345678",

            GtYarmouth: "222 444 666",

            Norwich: "999 999 999",

            Diss: "0000000000000"

          }

          

      nearestStore.onchange = function(){

        phoneNumber.innerHTML = stores[this.value];

      }

    </script>

  </body>

</html>

Friday, March 21, 2014

Questions and Answers on Apache Server

Apache Server on linux
Questions and Answers: Apache Server

1. Is Apache installed?
     rpm-qa | grep httpd

2. Is Apache running?
     Ps -ef | grep httpd

3. How to start and stop Apache?

     /etc/init.d/httpd stop
     /etc/init.d/httpd start
    or go to /etc/rc3.d
     ./S85httpd stop
     ./S85httpd start
  This is a soft link. You can create if not there:
         ln -s /etc/init.d/httpd  /etc/rc3.d/S85httpd

4.Where are web files uploaded for your web site?

          /var/www/html
5.What is default home page and how do you set on LAN for local viewing of web pages?
        /var/www/html/index.html
        http://192.168.0.XX   (index.html is default home page)
6.How do you check if Apache is working on your linux computer (that has the web site):
       http://localhost/
 7. How do you setup a local domain for the web site to be seen by other computers on the LAN?

First of all, check and see if you have a file called /etc/init.d/httpd
If you do, type the following command to create a link in /etc/rc3.d
   ln -s /etc/init.d/httpd  /etc/rc3.d/S85httpd
 In order to create a local domain called testmind.com, you have to do the following steps:-
 1. Run the command:  netstat -an |grep LISTEN
 You will see what IP address port 80 is bound to. It's most likely bound to 127.0.0.1
 2. After backing up the file, edit  httpd.conf.  Look for the line where you see 127.0.01, replace it with the IP of your machine. Stop/start the web server
 3. Make sure you have an entry in your /etc/hosts, binding the machine IP to testmind.com
 4. Also make sure that this entry exists in ALL your other machines in the house. (In Windows machines, it should be in 'host' and also 'lmhosts'
 Additional Information:
 Apache files (Red Hat Linux 8):
/etc/init.d/httpd/conf/httpd.conf -configuration file
/var/www/html   - index.html, web pages
/etc/rc3.d/S85httpd  -to start Apache at boot time
/var/log/httpd  -error logs

Wednesday, March 19, 2014

Solution for Manual Runner Window Disappear

Problem : When ever you are trying to click on RUN button to executed test scripts in Test Lab, Manual Runner Window populated and disappeared.

Solution : Remove the User access from the Group and re-assign. The problem will resolve.