Posts

Showing posts from 2016

An internal error occurred during: "Building workspace". Java heap space

Image
An internal error occurred during: "Building workspace". Java heap space  If you are facing this error while building workspace. The Eclipse told you to close the eclipse.     For that you want to change the Eclipse.ini file. Increase the value of Xmx and Xms value. Open the Eclipse Home directory and search for eclipse.ini file.  Right click that file and give edit    Edit the file and Save the file. Then open the Eclipse and start work on it. Here  i coded the Xms and Xmx value is for my system. Based upon your system RAM. you want to give the values  

Could not publish server configuration for tomcat v8.0 server at localhost. multiple contexts

Image
Could not publish server configuration for tomcat v8.0 server at localhost.           multiple contexts containing same name /projectname The server.xml file is corrupted by Eclipse!!! I found out many times with Eclipse, don't be afraid to do some  changes in XML file. Inside the Eclipse we have Server folder. In that open the server.xml file. Just search your project name in the form of ['/Project Name']. Notice How many context tags are there in the same path? Remove the unwanted context tags.  Note:  [If there is three context tags with your project name then delete the two context tags and remaining one will remain there. ]

How to check a checkbox is checked or not using jQuery

How to check a checkbox is checked or not using jQuery <html> <head> <script type="text/javascript">  $(document).ready(function(){$('#checkdelivery').click(function(){ if($(this).prop("checked") == true) { alert("The checkbox is checked"); $('#addressbtn').show(); } else if($(this).prop("checked") == false) { alert("The checkbox is Unchecked"); $('#addressbtn').hide(); } });  </script> </head> <body> <input type="checkbox" id="checkdelivery" name = "checkdelivery"  value = "1"> Delivery address</input>  <input type="submit" id="addressbtn" name="addressbtn" value="Continue"  class="button"style="margin-left: 30px; width: 51% !important;display:none;"/> <...

How do i Increase the capacity of the Eclipse Output console?

Image
Under Window > Preferences , go to the Run/Debug > Console section, then you should see an option "Limit console output." You can uncheck this or change the number in the "Console buffer size (characters)" text box below . ( This is in Galileo, Kepler, Juno, Luna, Mars and Helios CDT ). Here I shared some screen shot of the above                                               Window -->Preferences     Run/Debug --> Console   Uncheck the Limit Console Output. Then click the Apply button for the changes. Then click ok. Now your output console capacity is big to view your complete output.

How to find the active connections in MySql?

Image
If you want to find the active open connections in your database By giving the command in your SqlYog mysql> SHOW STATUS LIKE '%conn%;

org.apache.commons.fileupload.FileUploadBase$SizeLimitExceededException

If you are using Struts2 Framework.  While Upload file normally you can upload below 2MB. If the file size exceeds more than 2MB. Then you will get this type of exception . 04-Feb-2016 15:42:41.141 INFO [http-nio-8084-exec-78]  com.opensymphony.xwork2.util.logging.commons.CommonsLogger.info  Unable to find 'struts.multipart.saveDir' property setting.  Defaulting to javax.servlet.context.tempdir 04-Feb-2016 15:42:41.203 WARNING [http-nio-8084-exec-78]  com.opensymphony.xwork2.util.logging.commons.CommonsLogger.warn  Request exceeded size limit!" org.apache.commons.fileupload.FileUploadBase$SizeLimitExceededException:  the request was rejected because its size (2104281)  exceeds the configured maximum (2097152)   if you get this exception. Open your Struts.xml file    <constant name = "struts.multipart.maxSize" value = "10000000" />   Update this line and save. You run the file and try to upload your fil...

Quartz Scheduler Using Cron Trigger

ListenerStart.Java --------------------------   package com.AutomaticFileProcessing; import javax.servlet.ServletContextEvent; import javax.servlet.ServletContextListener; public class ListenerStart implements ServletContextListener{       public void contextDestroyed(ServletContextEvent arg0)     {         System.out.println("Stopping Application successfully");     }        public void contextInitialized(ServletContextEvent arg0)     {        System.out.println("Initializing Application successfully");              try{            new CronTriggerExample().CronTriggerExample();        }        catch(Exception e)        {  ...