CategoryJava

Java Script Utility Libraries You Must Know

J

The JavaScript programming language is more well-liked than ever these days. Without a doubt, it is the most used language on the web. Its ability to be used on browsers, servers, mobile applications, and much more is fantastic. In addition, JavaScript has a strong ecosystem with a wide range of beneficial libraries and frameworks. Utilizing these libraries and frameworks will enable you to speed...

TestRail-Test Case Management Tool.

T

TestRail is a comprehensive web-based test case management software to efficiently manage, track and organize software testing efforts. Its intuitive web-based user interface makes it easy to create test cases, manage test runs and coordinate the entire testing process. Track and follow the status of individual tests, milestones and projects with dashboards and activity reports. Get real-time...

Google Calendar – Calendar API

G

Step 1: Acquire a SHA1 fingerprint Step 2: Turn on the Google Calendar API Step 3: Create a new Android project Step 4: Prepare the project Open the app build.gradle file and add dependencies  content with the following: compile('com.google.api-client:google-api-client-android:1.23.0') {         exclude group: 'org.apache.httpcomponents'     }     compile('com.google.apis:google-api-services...

Mixed DML Exception in salesforce

M

Hi All, Many times we face this “Mixed DML Exception” in salesforce error while updating records. This error means you are updating setup and non-setup objects simultaneously. Here you will get details about all setup objects which cannot be inserted/updated with non-setup objects. How can you avoid this? To Avoid this type of error you use @future methods. Since future methods runs...

How to test Scheduled Apex Jobs in Salesforce

H

Hi All, We can test this by scheduling the apex class to run after 2 or few minutes, but salesforce UI allows scheduling apex on per hour basis. So, to overcome with this problem we can use below code which will schedule apex class as per the time we set. Please follow the steps below: 1. Open Developer console and click on debug option. 2. Click on Open Execute anonymous window. 3. Write below...

Create a Lead in Salesforce using JAVA

C

In Salseforce  :     1. Download Enterprise WSDL  as name enterprise.wsdl     2. Download wsc-22.jar from      (wsdl and wsc-22 should be in same Directory)      goto Command Prompt     1. goto Directory where wsdl file located.     2. Type : java -classpath wsc-22.jar com.sforce.ws.tools.wsdlc enterprise.wsdl.xml enterprise.jar     (enterprise.jar will be created)      In Eclipse :...

java.lang.OutOfMemoryError: Java heap space

j

add line to catalina.sh or catalina.bat: export CATALINA_OPTS=”-Xms512M -Xmx1024M” a) The -Xmx argument defines the max memory size that the heap can reach for the JVM. A low value can cause OutOfMemoryExceptions or a very poor performance if your program’s heap memory is reaching the maximum heap size. b) The -Xms argument sets the initial heap memory size for the JVM. This...

java.security.AccessControlException: access denied (java.net.SocketPermission host connect,resolve)

j

The Simple solution is :search catalina.policy file and edit green line as // Precompiled JSPs need access to this system property. permission java.util.PropertyPermission”org.apache.jasper.runtime.BodyContentImpl.LIMIT_BUFFER”,”read”; permission java.net.SocketPermission “*”, “connect”; permission java.net.SocketPermission “*”...

Internationalization in Java

I

Internationalization, in relation to computer programming, is the process of designing and writing an application so that it can be used in a global or multinational context. An internationalized program is capable of supporting different languages, as well as date, time, currency, and other values, without software modification. This usually involves “soft coding” or separating...

Servlet Lifecycle

S

Hi friends,  in this post we will take an overview of servlet lifecycle. First of all lets just know what is  servlet? Servlet is a java program which runs on server side. Servlet interacts with the client via request-response. It is nothing but HTML code embedded into java code. When any servlet get called container first checks that whether the object of requested servlet is already exists, if...

Category