Wednesday, September 2, 2009

Cross XHR

Cross XHR.

Normally the web application make request to the same server. Cross XHR is simply the Cross Domain XMLHttpRequest, which is used to access some other service in different port of the same server, or to any other domain/Servers. Web application technologies commonly apply same-origin restrictions to network requests. These Restrictions prevents a client-side Web application running from one origin retrieving data from another origin, and also limit the amount of unsafe HTTP requests that can be automatically launched toward destinations that differ from the running application's origin which is called as “Same origin policy for JavaScript.


For Example:

You are running your Website in www.mywebsite.com

If you has to make an XHR for other server like www.myothersite.com the XHR.response will as follows in different Browsers.


The Code for AJAX

try{
// Firefox, Opera 8.0+, Safari
xmlHttp=new XMLHttpRequest();
}catch (e){
//Internet Explorer
try{
xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
}catch (e){
xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
}
}

xmlHttp.open("POST",”www.myothersite.com” , true);


  • Internet Explorer.

Here it will you a warning that “To help protect your security, Internet Explorer has restricted this file from showing active content that could access your computer. Click here for details.”. After Allowing that you can access the yahoo.com or any server request.

  • Mozilla Firefox & Google Chrome

No Warning or message will be shown but the response (xmlHttp.responseText)

Will be a Zero length string. It shows it stops if the request violates Browser policies.


We can summarize as follows. For a URL (http://mywebsite.com/)

URL

Outcome

Reason

http://mywebsite.com/dir2/other.html

Success

http://mywebsite.com/dir/inner/another.html

Success

https://mywebsite.com/secure.html

Failure

Different protocol

http://mywebsite.com:81/dir/etc.html

Failure

Different port

http://news.company.com/dir/other.html

Failure

Different host


Now our next target is How to Achieve Cross XHR.

W3C has introduced new Specification called Cross-Origin Resource Sharing (CORS).This specification consists of a simple header exchange between client-and-server, and is used by IE8’s proprietary XDomainRequest object as well as by XMLHttpRequest in browsers such as Firefox 3.5 and Safari 4 to make cross-site requests. These browsers make it possible to make asynchronous HTTP calls within script to other domains with GET and POST requests, provided the resources being retrieved are returned with the appropriate CORS headers.


Cross-Origin Resource Sharing (CORS).

It is nothing but adding the Access Control header in the Domain which is need to be accessed using Cross Domain. For example in www.myothersite.com we need to add one header as follows for any access from www.mysite.com Access-Control-Allow-Origin: http://www.myothersite.com


For more details on Access Control please look in the following links.

  1. W3C Cross Domain Documents
  2. Mozilla HTTP Access Control


Hacking Using Cross XHR.

Different Cross XHR approaches in Internet are:

  1. Create one webservice to the other website in the same Server and give to client side using the same domain name.
    1. Yes definitely now it is a server side programming, Nothing to worry about Cross XHR Javascript Policies. It will work Fine.
  2. Using IFrame which connect to other websites and render locally.Use Javascript to handle the IFrame Data.
    1. Here the issue that Javascript will not allow to connect any IFrame in the document which has the different domain Name.Hence this approach will not work.
  3. By Using FlashXmlHttprequest
    1. I have tried the example it was not working. Still the security issues.you can look at the example here
  4. Cross Domain XMLHttpRequest using an IFrame Proxy provided in the dojotoolkit. Dojotoolkit Open here
    1. I haven’t tried this, please try this and let me know.


Reference:

      1. http://www.w3.org/TR/access-control/
      2. https://developer.mozilla.org/en/Same_origin_policy_for_JavaScript
      3. http://hacks.mozilla.org/2009/07/cross-site-xmlhttprequest-with-cors/
      4. https://developer.mozilla.org/En/HTTP_access_control
      5. www.google.com

Saturday, August 22, 2009

Friday, August 21, 2009

The Benefits of Fasting

The original meaning sawm is to be at rest. We give rest to the gastro-intestinal tract, the sexual organs, the tongue, the eyes and ears, etc. The transit time for a bolus of food from the mouth to the end of the large intestine, called colon, is about 14 hours. This is the period - of 14 hours - during which we fast and withhold any stimulus, reaching the stomach and the digestive system.

In fact, fasting is an additional safety device for the regenerative processes of the body. The repair processes of the body and the brain, including the memory molecules take place when the body is at rest, especially during the stage of deep sleep. Sleeping during Ramadan is much deeper than in other times. Two hours of sleep during Ramadan are more satisfying and refreshing than more hours of sleep otherwise.

Fasting significantly increases deep sleep and reduces the dreaming time, which takes place during the Rapid Eye Movement (REM) sleep. Therefore, it is more beneficial for the elderly to fast because their normal hours of deep sleep in the non-fasted state are much less.

Fasting is a divine prescription, because Allah Himself prescribed it in the Qur’an. Because the Islamic fast does not exceed 14 hours or so, the normal steady state of the body is maintained as a result of coordinated physiological mechanisms. Hence, nearly all the biochemical results in the laboratory are normal.

During fasting, serum magnesium is increased and…
  • Magnesium has cardio-protective effects and it is being used in prevention and treatment of heart attacks.
  • It has anti-platelet properties and prevents extension of the clot.
  • It is a membrane stabilizer acting on the sodium/potassium/calcium flux at the membrane level. Hence, it prevents cardiac and cerebral dysrhythmias.
  • Fasting, through the beneficial effects of magnesium, prevents the formation of atheroma as well as dissolves atheromatous plaques which are responsible for heart attacks and strokes. Hence, fasting takes an active part in the rejuvenating processes of the body through many channels.
  • It increases the fibrinolytic activity of the blood, which leads to prevention and also dissolution of any recent clot.


Ramadan puts a healthy mind into a healthy body. During fasting, there is increased secretion of the growth hormone by the pituitary gland. It is an anabolic hormone for synthesis of proteins and collagen, which produces a positive nitrogen balance. It also stimulates erythropoiesis, as well as collagen synthesis.

During the exercise of fasting, prayers and different spiritual experiences of Ramadan, certain endogenous substances are released by the brain and spinal cord into the body called opioids, which include enkephalins and endorphins. These are responsible for euphoria, tranquility and serenity during such periods.

Endorphins and enkephalins are natural painkillers. Endorphins may be responsible for the "feel nice" effects, experienced by many people after rigorous exercise. Endorphins and enkephalins are derived from beta-lipotropin. On release, it is cleaved to form three major active products: called met-enkephalin, gamma-endorphin, and beta-endorphin.

Beta-endorphin is most active, and is about 20 times as potent as morphine. In addition to their painkilling properties, the narcotic analgesics cause a profound feeling of well-being (euphoria). It is this feeling that is in part responsible for the psychological drive of certain persons who are fasting. Other mechanisms reduce pain sensation by blocking the transmission of pain message to the brain.

To alter the pain sensation, the brain and spinal cord release specialized neurotransmitters called endorphins and enkephalins. These chemicals interfere with pain impulse transmission by occupying the nerve cell receptors, required to send the impulse across the synapse. By making the pain impulse travel less efficiently, endorphins and enkephalins can significantly lessen the perception of pain. In extreme circumstances, they can even make severe injuries nearly painless.

If an athlete is injured during the height of competition, or a soldier injured during a fight, or persons who are fasting, they may not realize they have been hurt, until after the stressful situation has ended! This happens because the brain produces abnormally high levels of endorphins or enkephalins, in periods of intense stress, excitement or fasting.

Fasting and bio-rhythm

Muslims who have been fasting regularly since childhood have been exposed to different sleep/wake and light/darkness cycles on a daily basis in one annual lunar month. Hence, it may be easier for such persons to synchronize at a faster rate their circadian, circa-lunar and circa-annual bio-rhythms, under difficult conditions.

Therefore, it is expected that Muslims who fast regularly would least suffer from jet lag while traveling in a plane from West to East and that health problems in Muslim shift-workers would be minimal. In fact, the central circadian biological clock is located in the suprachiasmatic nucleus of the hypothalamus. It is a cluster of about 10,000 neurons on either side of the mid line, above the optic chiasma about 3 cm behind the eye.

Re-setting proceeds at the rate of 1-2 hours/day to adapt to a reversed shift pattern. There are widespread individual variations in the rapidity of resynchronization. Muslims who fast regularly and who have had disturbed wakefulness/sleep cycles on a daily lunar annual basis, can adapt themselves much faster to different conditions during international travel. This is while crossing time zones and do not suffer from the ill effects of jet lag.

It is also a common observation that as soon as Ramadan is over, normal circadian rhythms are established within the fasted Muslim, with such great rapidity on the first day of the following month of Shawal. This means that `Eid-al-Fitr (Minor Feast) is to be at par with pre-Ramadan levels.

Normally, a period of three weeks is required for resynchronization, among shift workers. As the fasting Muslim attunes himself to resynchronization processes, during the space of just over four weeks in Ramadan, his health problems - as a shift worker - would be negligible. His synchronization processes would be more rapid, whether during Ramadan or any other time.

The Benefits of Long Night Prayers

Moreover, the social contact during tarawih or qiyam (long night prayers) and other social spiritual activities should act as a zeitgeber (from German ‘time-giver’). This is what regulates any desynchronized biological rhythm.

Throughout the year, the average Muslim performs his 5-time daily obligatory prayers, as well as the optional ones. This amounts to gentle physical exercise, involving each and every muscle in the body. During the month of fasting, additional prayers of 8-20 rak`as (physical unit of prayer) are also performed at nights. Approximately, 200 kcals. are utilized during qiyam for the 20 rak`as.

Such additional exercise utilizes any extra calories, ingested at iftar (meal for breaking the fast) approximately 1-2 hours earlier. Simultaneously, the blood glucose is steadily rising in the blood from the ingested nutrients; the circulating glucose is oxidized to CO2 and H20 during the prayers.

The physical movements during qiyam prayers improve flexibility, co-ordination and relaxation response. It also reduces stress-related autonomic responses in normal persons and relieves anxiety and depression. Adrenaline and noradrenalin are secreted during the physical exercise of qiyam. They are responsible for the consequent dynamism, which now combines with the tranquility and the serenity, due to the secretion of enkephalins, endorphins, dynorphins and others.

This makes the night prayers unique in the sense that dynamism is combined in the same individual with serenity, euphoria and dignity. The effects of adrenaline and noradrenaline are apparent, even after long night prayers is over, as evidenced by the continuing activity. In fact, even the thought or intention of performing qiyam prayers is sufficient to activate the sympathetic nervous system. Persons who fast and perform qiyam report feeling much better and healthier.

Repeated and regular movements of the body during prayers improve muscle tone and power, tendon strength, joint flexibility and the cardio-vascular reserve. The body movements help to prevent osteoporosis in the osteoporotic bones of elderly men and post-menopausal women.

The strain put on the forearm, during prostration in lifting the body from the ground, increases the bone mineral content of the forearm. The varying load during the different postures causes a lubricating effect and a protective flow of synovial fluid into the joint cavity. The reinforcement of the calf muscle pump by active ankle movements prevents deep vein thrombosis, which is a common cause of chronic ulcers of the legs in the elderly.

Exercise prevents coronary heart disease, improves carbohydrate tolerance and ameliorates late-onset type 2 diabetes. Growth hormone secretion elevated by fasting is further elevated by exercise of long night prayers. As this hormone is necessary for collagen formation, this may be an important factor in the long delay of the wrinkling of skin for the fasting Muslim who performs qiyam prayers.

Exercise of qiyam improves mood, thought and behavior. Memory for short-term events deteriorates with old age. Prayers improve memory in the elderly, for short-term events, by keeping the memory pathways in the brain open and communicating with each other, especially with constant repetition of the verses from the holy Qur’an and other supplications of Allah’s glory. This also helps to screen the mind from other incoming thoughts.

The repetition of a prayer, supplications of glorification, dhikr (words glorifying Allah) or muscular activity, coupled with passive disregard of intrusive thoughts, causes a relaxation response, leading to lowering of B.P. and decrease in oxygen consumption, as well as a reduction in the heart and respiratory rates.

All these are combined in qiyam prayers, which is an ideal situation for relaxation response, as it combines repeated muscular activity with repetition of words of glorification of Allah and supplications. Thus qiyam puts the mind at ease. Islamic prayers are unique in that tension builds up in the muscles, during the physical movements of prayers, with accompanying adrenaline and noradrenalin. Simultaneously, tension is relieved in the mind due to the spiritual component, assisted by the secretion of enkephalins, endorphins, dynorphins and others.

All those persons who perform qiyam prayers feel more alert and active, even after the age of retirement. They can meet with unexpected challenges of life much better, such as running for a bus! This improves their stamina, self-esteem and self-confidence in being independent.

Saturday, July 25, 2009

Country State Dropdown Data / Java Program to create Country State Database Table Data

Hi,
I have been struggling long time to get the information for the country state Database Table Data and its implementation in My most of the application,
I have searched through net and now i got few data from the site and I have created Java file to generate the SQL Queries.

The Table Structure i have created as Follows.
Country
ID [PK]
NAME [VARCHAR].

State
ID [PK]
NAME [VARCHAR]
COUNTY_ID [PK] Foreign key to Country Table

You can download the java Class file to generate the SQL Queries directly from My Google Docs http://docs.google.com/Doc?docid=0AW0ekoc5wU3rZGYyMnZrZmtfN2NtYnF3dmQ0&hl=en

If you require the SQL File Directly you can download from My Docs as .

I am Thankful to the website http://www.microcosmotalk.com/tech/scripts/ for the datas of countries and States in their site javascipt file.

[I converted Java and sql file to txt format just to upload in Google Docs. :) ]
Hope it will help you out.

Any Concerns Contact :- askeralim@gmail.com

Tuesday, December 30, 2008

Show Business Logic Validation/Error/Exception in JSF pages Using AJAX4JSF in Seam Application.

I am facing issue while adding FacesMessages to the Current FacesConfig. My Implementation is as Follows
public void addUser(){
......
String message = "Duplicate user name. Username already exists";
FacesContext.getCurrentInstance().addMessage(null, new FacesMessage( FacesMessage.SEVERITY_INFO, message, message));
}

But I am getting the following warning and I am not able to Show the error message in the Client Side Page.

WARNING: FacesMessage(s) have been enqueued, but may not have been displayed.sourceId=rstReport:timeHorizonDecoration:timeHorizon[severity=(ERROR 2), summary=(value is required), detail=(value is required)]

The Solution I made as
I have Created a Utility class to add the Error messages into the Current FacesConfig Instance.

import java.util.Iterator;

import javax.faces.application.FacesMessage;
import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;

public class ErrorMsgUtil {
   public static void addError(FacesMessage.Severity severity,String componentId,String    messageText){
       FacesMessage message = new FacesMessage(messageText);
       FacesContext context = FacesContext.getCurrentInstance();
       UIComponent component = findComponent(context.getViewRoot(), componentId);
       context.addMessage(component.getClientId(context), message);
   }

   private static UIComponent findComponent(UIComponent parent, String id) {
       if(id.equals(parent.getId())) {
          return parent;
       }
       Iterator kids = parent.getFacetsAndChildren();
       while(kids.hasNext()) {
          UIComponent kid = kids.next();
          UIComponent found = findComponent(kid, id);
          if(found != null) {
             return found;
          }
       }
       return null;
   }
}


And I have Called the Error Method as Follows

public void addUser(){
   try{
      ...........
      ... addUser ... Code
   }catch(UserAlreadyExistException e){
      String message = "Duplicate user name. Username already exists";
      ErrorMsgUtil.addError(FacesMessage.SEVERITY_ERROR,"errorMsg", msg);
   }
}


and added one h:message for="errorMsg";

It is working fine for the AJAX4JSF Page implementation.

Wednesday, December 10, 2008

javax.faces.FacesException: 530-5.5.1 Authentication Required. Learn more at 530 5.5.1 http://mail.google.com/support/bin/answer.

javax.faces.FacesException: 530-5.5.1 Authentication Required. Learn more at
530 5.5.1 http://mail.google.com/support/bin/answer.py?answer=14257 i6sm1479332tid.16
13:11:44,855 ERROR [STDERR] at org.jboss.seam.mail.ui.UIMessage.encodeEnd(UIMessage.java:146)
13:11:44,855 ERROR [STDERR] at org.jboss.seam.ui.util.JSF.renderChild(JSF.java:181)
13:11:44,855 ERROR [STDERR] at org.jboss.seam.ui.util.JSF.renderChildren(JSF.java:163)
13:11:44,855 ERROR [STDERR] at org.jboss.seam.ui.facelet.FaceletsRenderer.renderFacelet(FaceletsRenderer.java:206)
13:11:44,855 ERROR [STDERR] at org.jboss.seam.ui.facelet.FaceletsRenderer$1.process(FaceletsRenderer.java:160)
13:11:44,855 ERROR [STDERR] at org.jboss.seam.ui.facelet.FaceletsRenderer$RenderingContext.run(FaceletsRenderer.java:78)
13:11:44,855 ERROR [STDERR] at org.jboss.seam.ui.facelet.FaceletsRenderer.render(FaceletsRenderer.java:169)
13:11:44,855 ERROR [STDERR] at org.domain.EMSeam2.session.email.EmailAction.send(EmailAction.java:19)
13:11:44,855 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
13:11:44,855 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
13:11:44,855 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
13:11:44,855 ERROR [STDERR] at java.lang.reflect.Method.invoke(Unknown Source)
13:11:44,855 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112)
13:11:44,855 ERROR [STDERR] at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)
13:11:44,855 ERROR [STDERR] at org.jboss.seam.intercept.EJBInvocationContext.proceed(EJBInvocationContext.java:44)
13:11:44,855 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
13:11:44,855 ERROR [STDERR] at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:46)
13:11:44,855 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
13:11:44,855 ERROR [STDERR] at org.jboss.seam.persistence.ManagedEntityIdentityInterceptor.aroundInvoke(ManagedEntityIdentityInterceptor.java:48)
13:11:44,855 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
13:11:44,855 ERROR [STDERR] at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:31)
13:11:44,855 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
13:11:44,855 ERROR [STDERR] at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:42)
13:11:44,855 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
13:11:44,855 ERROR [STDERR] at org.jboss.seam.persistence.EntityManagerProxyInterceptor.aroundInvoke(EntityManagerProxyInterceptor.java:26)
13:11:44,855 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
13:11:44,855 ERROR [STDERR] at org.jboss.seam.persistence.HibernateSessionProxyInterceptor.aroundInvoke(HibernateSessionProxyInterceptor.java:27)
13:11:44,855 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
13:11:44,855 ERROR [STDERR] at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:106)
13:11:44,855 ERROR [STDERR] at org.jboss.seam.intercept.SessionBeanInterceptor.aroundInvoke(SessionBeanInterceptor.java:50)
13:11:44,855 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor428.invoke(Unknown Source)
13:11:44,855 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
13:11:44,855 ERROR [STDERR] at java.lang.reflect.Method.invoke(Unknown Source)
13:11:44,855 ERROR [STDERR] at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:118)
13:11:44,855 ERROR [STDERR] at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
13:11:44,855 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
13:11:44,855 ERROR [STDERR] at org.jboss.ejb3.entity.ExtendedPersistenceContextPropagationInterceptor.invoke(ExtendedPersistenceContextPropagationInterceptor.java:57)
13:11:44,855 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
13:11:44,855 ERROR [STDERR] at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
13:11:44,855 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
13:11:44,855 ERROR [STDERR] at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
13:11:44,855 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
13:11:44,855 ERROR [STDERR] at org.jboss.aspects.tx.TxPolicy.invokeInCallerTx(TxPolicy.java:126)
13:11:44,855 ERROR [STDERR] at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:195)
13:11:44,855 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
13:11:44,855 ERROR [STDERR] at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:94)
13:11:44,855 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
13:11:44,855 ERROR [STDERR] at org.jboss.ejb3.stateful.StatefulInstanceInterceptor.invoke(StatefulInstanceInterceptor.java:83)
13:11:44,855 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
13:11:44,855 ERROR [STDERR] at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77)
13:11:44,855 ERROR [STDERR] at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:106)
13:11:44,855 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
13:11:44,855 ERROR [STDERR] at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:46)
13:11:44,855 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
13:11:44,855 ERROR [STDERR] at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
13:11:44,855 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
13:11:44,855 ERROR [STDERR] at org.jboss.ejb3.stateful.StatefulContainer.localInvoke(StatefulContainer.java:204)
13:11:44,855 ERROR [STDERR] at org.jboss.ejb3.stateful.StatefulLocalProxy.invoke(StatefulLocalProxy.java:117)
13:11:44,855 ERROR [STDERR] at $Proxy168.send(Unknown Source)
13:11:44,855 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
13:11:44,855 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
13:11:44,855 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
13:11:44,855 ERROR [STDERR] at java.lang.reflect.Method.invoke(Unknown Source)
13:11:44,855 ERROR [STDERR] at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
13:11:44,855 ERROR [STDERR] at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)
13:11:44,855 ERROR [STDERR] at org.jboss.seam.intercept.ClientSideInterceptor$1.proceed(ClientSideInterceptor.java:76)
13:11:44,855 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
13:11:44,855 ERROR [STDERR] at org.jboss.seam.ejb.RemoveInterceptor.aroundInvoke(RemoveInterceptor.java:41)
13:11:44,855 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
13:11:44,855 ERROR [STDERR] at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:106)
13:11:44,855 ERROR [STDERR] at org.jboss.seam.intercept.ClientSideInterceptor.invoke(ClientSideInterceptor.java:54)
13:11:44,855 ERROR [STDERR] at org.javassist.tmp.java.lang.Object_$$_javassist_1.send(Object_$$_javassist_1.java)
13:11:44,855 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
13:11:44,855 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
13:11:44,855 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
13:11:44,855 ERROR [STDERR] at java.lang.reflect.Method.invoke(Unknown Source)
13:11:44,855 ERROR [STDERR] at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:328)
13:11:44,855 ERROR [STDERR] at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:341)
13:11:44,871 ERROR [STDERR] at org.jboss.el.parser.AstPropertySuffix.invoke(AstPropertySuffix.java:58)
13:11:44,871 ERROR [STDERR] at org.jboss.el.parser.AstValue.invoke(AstValue.java:96)
13:11:44,871 ERROR [STDERR] at org.jboss.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)
13:11:44,871 ERROR [STDERR] at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)
13:11:44,871 ERROR [STDERR] at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:77)
13:11:44,871 ERROR [STDERR] at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:91)
13:11:44,871 ERROR [STDERR] at javax.faces.component.UICommand.broadcast(UICommand.java:383)
13:11:44,871 ERROR [STDERR] at org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:321)
13:11:44,871 ERROR [STDERR] at org.ajax4jsf.component.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:296)
13:11:44,871 ERROR [STDERR] at org.ajax4jsf.component.AjaxViewRoot.processPhase(AjaxViewRoot.java:253)
13:11:44,871 ERROR [STDERR] at org.ajax4jsf.component.AjaxViewRoot.processApplication(AjaxViewRoot.java:466)
13:11:44,871 ERROR [STDERR] at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:97)
13:11:44,871 ERROR [STDERR] at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
13:11:44,871 ERROR [STDERR] at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
13:11:44,871 ERROR [STDERR] at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
13:11:44,871 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
13:11:44,871 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
13:11:44,871 ERROR [STDERR] at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
13:11:44,871 ERROR [STDERR] at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85)
13:11:44,871 ERROR [STDERR] at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
13:11:44,871 ERROR [STDERR] at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
13:11:44,871 ERROR [STDERR] at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
13:11:44,871 ERROR [STDERR] at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:44)
13:11:44,871 ERROR [STDERR] at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
13:11:44,871 ERROR [STDERR] at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:177)
13:11:44,871 ERROR [STDERR] at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:267)
13:11:44,871 ERROR [STDERR] at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:380)
13:11:44,871 ERROR [STDERR] at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:507)
13:11:44,871 ERROR [STDERR] at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60)
13:11:44,871 ERROR [STDERR] at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
13:11:44,871 ERROR [STDERR] at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
13:11:44,871 ERROR [STDERR] at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
13:11:44,871 ERROR [STDERR] at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
13:11:44,871 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
13:11:44,871 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
13:11:44,871 ERROR [STDERR] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
13:11:44,871 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
13:11:44,871 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
13:11:44,871 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
13:11:44,871 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
13:11:44,871 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
13:11:44,871 ERROR [STDERR] at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
13:11:44,871 ERROR [STDERR] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
13:11:44,871 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
13:11:44,871 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
13:11:44,871 ERROR [STDERR] at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
13:11:44,871 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
13:11:44,871 ERROR [STDERR] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
13:11:44,871 ERROR [STDERR] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
13:11:44,871 ERROR [STDERR] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
13:11:44,871 ERROR [STDERR] at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
13:11:44,871 ERROR [STDERR] at java.lang.Thread.run(Unknown Source)
13:11:44,871 ERROR [STDERR] Caused by: com.sun.mail.smtp.SMTPSendFailedException: 530-5.5.1 Authentication Required. Learn more at
530 5.5.1 http://mail.google.com/support/bin/answer.py?answer=14257 i6sm1479332tid.16
13:11:44,871 ERROR [STDERR] at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:1388)
13:11:44,871 ERROR [STDERR] at com.sun.mail.smtp.SMTPTransport.mailFrom(SMTPTransport.java:959)
13:11:44,871 ERROR [STDERR] at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:583)
13:11:44,871 ERROR [STDERR] at org.jboss.seam.mail.ui.UIMessage.encodeEnd(UIMessage.java:141)
13:11:44,871 ERROR [STDERR] ... 129 more


Solution

To Resolve this Issue, Add the property
mail.smtp.auth in property file with Value="True"