You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by sh...@wipro.com on 2007/02/28 14:33:36 UTC

Request error, status 500: Internal Server Error Message:null

Hi,

            In my web application I am using MyFaces, a4j tags and JBoss
server.

When I am starting my server for the first time my application is
running fine.

After that if I redeploy my application without restarting my server
then I am getting 

"Request error, status 500: Internal Server Error Message: null" if I
click on the <a4j:comandLink>

But I am passing one parameter to the backing bean through
<a4j:actionParam> tag.

My code is like as follows,

 

<a4j:commandLink id="leftScrollBarButton"
action="#{customerBean.regenerateHistoryView}" >

              <img border="0" src="images/bluearrowleft.gif"
title="#{msg['historyView.forward']}"
alt="#{msg['historyView.leftArrowImage']}"></img>

              <a4j:actionparam id="buttonName" name="buttonName"
value="button_left"/>

</a4j:commandLink>

 

Moreover in my server logs I am getting "Null Pointer exception". Can
any body have any idea?

 

 

Thanks & Regards,

Basha

 




The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
 
www.wipro.com

RE: Request error, status 500: Internal Server Error Message:null

Posted by sh...@wipro.com.
Hi,
    Yes you are right. I am getting FacesContext.getCurrentInstance()as null.
Why this is null. I am not able to find out why it becomes null. If you have any idea please
let me know.

Thanks & Regards,
Basha,




-----Original Message-----
From: Paul Iov [mailto:paul@voller-ernst.de]
Sent: Wed 2/28/2007 8:41 PM
To: MyFaces Discussion
Subject: Re: Request error, status 500: Internal Server Error Message:null
 
If you mean that jbpm stuff, the implementation of this method is:
public static String getParameter(String name) {
        return 
(String)FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get(name);
}
So either with your FacesContext is something wrong or your 
buttonClicked just becomes null, and the exception is thrown later (i.e. 
while accessing buttonClicked as String). If so, it may be the same 
issue that I've discovered with <a4j:actionParam> but unfortunately I 
can't yet figure it out precisely. In my application <a4j:actionParam> 
'less' the value, if it's inside some container with rendered=false. 
Your issue seems to be very similar. If nothing helps, I'd try to ask 
this in a4j support forum.

regards,
paul


shaikyesdani.basha@wipro.com schrieb:
> Hi,
> 	No I am getting the resource bundles messages fine only. Only
> the problem is 
> When I am clicking on the command link it is calling the bean method.
> Inside the bean method I am getting the parameter which I sent using
> <a4j:actionParam> tag as follows,
>
> 	String buttonClicked = JsfHelper.getParameter("buttonName");
>
> Then here I am getting null pointer.
>
> Regards,
> Basha
>
> -----Original Message-----
> From: Paul Iov [mailto:paul@voller-ernst.de] 
> Sent: Wednesday, February 28, 2007 7:35 PM
> To: MyFaces Discussion
> Subject: Re: Request error, status 500: Internal Server Error
> Message:null
>
> Hi Basha,
>
> it sounds like some session expiration issue. Aren't you getting the 
> same exception after restart of JVM? If so, the issue can be also your 
> resource bundle msg['historyView.leftArrowImage']
>
> regards,
> paul
>
> shaikyesdani.basha@wipro.com schrieb:
>   
>> Hi,
>>
>> In my web application I am using MyFaces, a4j tags and JBoss server.
>>
>> When I am starting my server for the first time my application is 
>> running fine.
>>
>> After that if I redeploy my application without restarting my server 
>> then I am getting
>>
>> "*Request error, status 500: Internal Server Error Message: null" *if 
>> I click on the <a4j:comandLink>
>>
>> But I am passing one parameter to the backing bean through 
>> <a4j:actionParam> tag.
>>
>> My code is like as follows,
>>
>> <a4j:commandLink id="leftScrollBarButton" 
>> action="#{customerBean.regenerateHistoryView}" >
>>
>> <img border="0" src="images/bluearrowleft.gif" 
>> title="#{msg['historyView.forward']}" 
>> alt="#{msg['historyView.leftArrowImage']}"></img>
>>
>> <a4j:actionparam id="buttonName" name="buttonName"
>>     
> value="button_left"/>
>   
>> </a4j:commandLink>
>>
>> Moreover in my server logs I am getting "Null Pointer exception". Can 
>> any body have any idea?
>>
>> Thanks & Regards,
>>
>> Basha
>>
>>
>> The information contained in this electronic message and any 
>> attachments to this message are intended for the exclusive use of the 
>> addressee(s) and may contain proprietary, confidential or privileged 
>> information. If you are not the intended recipient, you should not 
>> disseminate, distribute or copy this e-mail. Please notify the sender 
>> immediately and destroy all copies of this message and any
>>     
> attachments.
>   
>> WARNING: Computer viruses can be transmitted via email. The recipient 
>> should check this email and any attachments for the presence of 
>> viruses. The company accepts no liability for any damage caused by any
>>     
>
>   
>> virus transmitted by this email.
>>
>> www.wipro.com
>>
>>     
>
>
>
> The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. 
>
> WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
>  
> www.wipro.com
>
>   



RE: Request error, status 500: Internal Server Error Message:null

Posted by sh...@wipro.com.
Hi,
     If I want to pass the parameter to a backing bean method through <a4j:commandLink>, 
without using <a4j:actionParm> is there any another way to do it? If any please let me know.
Due to this error my application is crashing.

Thanks & Regards,
Basha,



-----Original Message-----
From: Paul Iov [mailto:paul@voller-ernst.de]
Sent: Wed 2/28/2007 8:41 PM
To: MyFaces Discussion
Subject: Re: Request error, status 500: Internal Server Error Message:null
 
If you mean that jbpm stuff, the implementation of this method is:
public static String getParameter(String name) {
        return 
(String)FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get(name);
}
So either with your FacesContext is something wrong or your 
buttonClicked just becomes null, and the exception is thrown later (i.e. 
while accessing buttonClicked as String). If so, it may be the same 
issue that I've discovered with <a4j:actionParam> but unfortunately I 
can't yet figure it out precisely. In my application <a4j:actionParam> 
'less' the value, if it's inside some container with rendered=false. 
Your issue seems to be very similar. If nothing helps, I'd try to ask 
this in a4j support forum.

regards,
paul


shaikyesdani.basha@wipro.com schrieb:
> Hi,
> 	No I am getting the resource bundles messages fine only. Only
> the problem is 
> When I am clicking on the command link it is calling the bean method.
> Inside the bean method I am getting the parameter which I sent using
> <a4j:actionParam> tag as follows,
>
> 	String buttonClicked = JsfHelper.getParameter("buttonName");
>
> Then here I am getting null pointer.
>
> Regards,
> Basha
>
> -----Original Message-----
> From: Paul Iov [mailto:paul@voller-ernst.de] 
> Sent: Wednesday, February 28, 2007 7:35 PM
> To: MyFaces Discussion
> Subject: Re: Request error, status 500: Internal Server Error
> Message:null
>
> Hi Basha,
>
> it sounds like some session expiration issue. Aren't you getting the 
> same exception after restart of JVM? If so, the issue can be also your 
> resource bundle msg['historyView.leftArrowImage']
>
> regards,
> paul
>
> shaikyesdani.basha@wipro.com schrieb:
>   
>> Hi,
>>
>> In my web application I am using MyFaces, a4j tags and JBoss server.
>>
>> When I am starting my server for the first time my application is 
>> running fine.
>>
>> After that if I redeploy my application without restarting my server 
>> then I am getting
>>
>> "*Request error, status 500: Internal Server Error Message: null" *if 
>> I click on the <a4j:comandLink>
>>
>> But I am passing one parameter to the backing bean through 
>> <a4j:actionParam> tag.
>>
>> My code is like as follows,
>>
>> <a4j:commandLink id="leftScrollBarButton" 
>> action="#{customerBean.regenerateHistoryView}" >
>>
>> <img border="0" src="images/bluearrowleft.gif" 
>> title="#{msg['historyView.forward']}" 
>> alt="#{msg['historyView.leftArrowImage']}"></img>
>>
>> <a4j:actionparam id="buttonName" name="buttonName"
>>     
> value="button_left"/>
>   
>> </a4j:commandLink>
>>
>> Moreover in my server logs I am getting "Null Pointer exception". Can 
>> any body have any idea?
>>
>> Thanks & Regards,
>>
>> Basha
>>
>>
>> The information contained in this electronic message and any 
>> attachments to this message are intended for the exclusive use of the 
>> addressee(s) and may contain proprietary, confidential or privileged 
>> information. If you are not the intended recipient, you should not 
>> disseminate, distribute or copy this e-mail. Please notify the sender 
>> immediately and destroy all copies of this message and any
>>     
> attachments.
>   
>> WARNING: Computer viruses can be transmitted via email. The recipient 
>> should check this email and any attachments for the presence of 
>> viruses. The company accepts no liability for any damage caused by any
>>     
>
>   
>> virus transmitted by this email.
>>
>> www.wipro.com
>>
>>     
>
>
>
> The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. 
>
> WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
>  
> www.wipro.com
>
>   



Re: Request error, status 500: Internal Server Error Message:null

Posted by Paul Iov <pa...@voller-ernst.de>.
If you mean that jbpm stuff, the implementation of this method is:
public static String getParameter(String name) {
        return 
(String)FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get(name);
}
So either with your FacesContext is something wrong or your 
buttonClicked just becomes null, and the exception is thrown later (i.e. 
while accessing buttonClicked as String). If so, it may be the same 
issue that I've discovered with <a4j:actionParam> but unfortunately I 
can't yet figure it out precisely. In my application <a4j:actionParam> 
'less' the value, if it's inside some container with rendered=false. 
Your issue seems to be very similar. If nothing helps, I'd try to ask 
this in a4j support forum.

regards,
paul


shaikyesdani.basha@wipro.com schrieb:
> Hi,
> 	No I am getting the resource bundles messages fine only. Only
> the problem is 
> When I am clicking on the command link it is calling the bean method.
> Inside the bean method I am getting the parameter which I sent using
> <a4j:actionParam> tag as follows,
>
> 	String buttonClicked = JsfHelper.getParameter("buttonName");
>
> Then here I am getting null pointer.
>
> Regards,
> Basha
>
> -----Original Message-----
> From: Paul Iov [mailto:paul@voller-ernst.de] 
> Sent: Wednesday, February 28, 2007 7:35 PM
> To: MyFaces Discussion
> Subject: Re: Request error, status 500: Internal Server Error
> Message:null
>
> Hi Basha,
>
> it sounds like some session expiration issue. Aren't you getting the 
> same exception after restart of JVM? If so, the issue can be also your 
> resource bundle msg['historyView.leftArrowImage']
>
> regards,
> paul
>
> shaikyesdani.basha@wipro.com schrieb:
>   
>> Hi,
>>
>> In my web application I am using MyFaces, a4j tags and JBoss server.
>>
>> When I am starting my server for the first time my application is 
>> running fine.
>>
>> After that if I redeploy my application without restarting my server 
>> then I am getting
>>
>> "*Request error, status 500: Internal Server Error Message: null" *if 
>> I click on the <a4j:comandLink>
>>
>> But I am passing one parameter to the backing bean through 
>> <a4j:actionParam> tag.
>>
>> My code is like as follows,
>>
>> <a4j:commandLink id="leftScrollBarButton" 
>> action="#{customerBean.regenerateHistoryView}" >
>>
>> <img border="0" src="images/bluearrowleft.gif" 
>> title="#{msg['historyView.forward']}" 
>> alt="#{msg['historyView.leftArrowImage']}"></img>
>>
>> <a4j:actionparam id="buttonName" name="buttonName"
>>     
> value="button_left"/>
>   
>> </a4j:commandLink>
>>
>> Moreover in my server logs I am getting "Null Pointer exception". Can 
>> any body have any idea?
>>
>> Thanks & Regards,
>>
>> Basha
>>
>>
>> The information contained in this electronic message and any 
>> attachments to this message are intended for the exclusive use of the 
>> addressee(s) and may contain proprietary, confidential or privileged 
>> information. If you are not the intended recipient, you should not 
>> disseminate, distribute or copy this e-mail. Please notify the sender 
>> immediately and destroy all copies of this message and any
>>     
> attachments.
>   
>> WARNING: Computer viruses can be transmitted via email. The recipient 
>> should check this email and any attachments for the presence of 
>> viruses. The company accepts no liability for any damage caused by any
>>     
>
>   
>> virus transmitted by this email.
>>
>> www.wipro.com
>>
>>     
>
>
>
> The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. 
>
> WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
>  
> www.wipro.com
>
>   


RE: Request error, status 500: Internal Server Error Message:null

Posted by sh...@wipro.com.
Hi,
	No I am getting the resource bundles messages fine only. Only
the problem is 
When I am clicking on the command link it is calling the bean method.
Inside the bean method I am getting the parameter which I sent using
<a4j:actionParam> tag as follows,

	String buttonClicked = JsfHelper.getParameter("buttonName");

Then here I am getting null pointer.

Regards,
Basha

-----Original Message-----
From: Paul Iov [mailto:paul@voller-ernst.de] 
Sent: Wednesday, February 28, 2007 7:35 PM
To: MyFaces Discussion
Subject: Re: Request error, status 500: Internal Server Error
Message:null

Hi Basha,

it sounds like some session expiration issue. Aren't you getting the 
same exception after restart of JVM? If so, the issue can be also your 
resource bundle msg['historyView.leftArrowImage']

regards,
paul

shaikyesdani.basha@wipro.com schrieb:
>
> Hi,
>
> In my web application I am using MyFaces, a4j tags and JBoss server.
>
> When I am starting my server for the first time my application is 
> running fine.
>
> After that if I redeploy my application without restarting my server 
> then I am getting
>
> "*Request error, status 500: Internal Server Error Message: null" *if 
> I click on the <a4j:comandLink>
>
> But I am passing one parameter to the backing bean through 
> <a4j:actionParam> tag.
>
> My code is like as follows,
>
> <a4j:commandLink id="leftScrollBarButton" 
> action="#{customerBean.regenerateHistoryView}" >
>
> <img border="0" src="images/bluearrowleft.gif" 
> title="#{msg['historyView.forward']}" 
> alt="#{msg['historyView.leftArrowImage']}"></img>
>
> <a4j:actionparam id="buttonName" name="buttonName"
value="button_left"/>
>
> </a4j:commandLink>
>
> Moreover in my server logs I am getting "Null Pointer exception". Can 
> any body have any idea?
>
> Thanks & Regards,
>
> Basha
>
>
> The information contained in this electronic message and any 
> attachments to this message are intended for the exclusive use of the 
> addressee(s) and may contain proprietary, confidential or privileged 
> information. If you are not the intended recipient, you should not 
> disseminate, distribute or copy this e-mail. Please notify the sender 
> immediately and destroy all copies of this message and any
attachments.
>
> WARNING: Computer viruses can be transmitted via email. The recipient 
> should check this email and any attachments for the presence of 
> viruses. The company accepts no liability for any damage caused by any

> virus transmitted by this email.
>
> www.wipro.com
>



The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
 
www.wipro.com

Re: Request error, status 500: Internal Server Error Message:null

Posted by Paul Iov <pa...@voller-ernst.de>.
Hi Basha,

it sounds like some session expiration issue. Aren't you getting the 
same exception after restart of JVM? If so, the issue can be also your 
resource bundle msg['historyView.leftArrowImage']

regards,
paul

shaikyesdani.basha@wipro.com schrieb:
>
> Hi,
>
> In my web application I am using MyFaces, a4j tags and JBoss server.
>
> When I am starting my server for the first time my application is 
> running fine.
>
> After that if I redeploy my application without restarting my server 
> then I am getting
>
> “*Request error, status 500: Internal Server Error Message: null” *if 
> I click on the <a4j:comandLink>
>
> But I am passing one parameter to the backing bean through 
> <a4j:actionParam> tag.
>
> My code is like as follows,
>
> <a4j:commandLink id="leftScrollBarButton" 
> action="#{customerBean.regenerateHistoryView}" >
>
> <img border="0" src="images/bluearrowleft.gif" 
> title="#{msg['historyView.forward']}" 
> alt="#{msg['historyView.leftArrowImage']}"></img>
>
> <a4j:actionparam id="buttonName" name="buttonName" value="button_left"/>
>
> </a4j:commandLink>
>
> Moreover in my server logs I am getting “Null Pointer exception”. Can 
> any body have any idea?
>
> Thanks & Regards,
>
> Basha
>
>
> The information contained in this electronic message and any 
> attachments to this message are intended for the exclusive use of the 
> addressee(s) and may contain proprietary, confidential or privileged 
> information. If you are not the intended recipient, you should not 
> disseminate, distribute or copy this e-mail. Please notify the sender 
> immediately and destroy all copies of this message and any attachments.
>
> WARNING: Computer viruses can be transmitted via email. The recipient 
> should check this email and any attachments for the presence of 
> viruses. The company accepts no liability for any damage caused by any 
> virus transmitted by this email.
>
> www.wipro.com
>


Re: Request error, status 500: Internal Server Error Message:null

Posted by David Delbecq <de...@oma.be>.
Check everything in you user session is serializable. During application
reload, the container serializes user sessions and deserialize them
after reload. It maybe that one of you backing beans had serialization
problems and did not get properly restored (transient fields?)
En l'instant précis du 28/02/07 14:33, shaikyesdani.basha@wipro.com
s'exprimait en ces termes:
> Hi,
>
>             In my web application I am using MyFaces, a4j tags and JBoss
> server.
>
> When I am starting my server for the first time my application is
> running fine.
>
> After that if I redeploy my application without restarting my server
> then I am getting 
>
> "Request error, status 500: Internal Server Error Message: null" if I
> click on the <a4j:comandLink>
>
> But I am passing one parameter to the backing bean through
> <a4j:actionParam> tag.
>
> My code is like as follows,
>
>  
>
> <a4j:commandLink id="leftScrollBarButton"
> action="#{customerBean.regenerateHistoryView}" >
>
>               <img border="0" src="images/bluearrowleft.gif"
> title="#{msg['historyView.forward']}"
> alt="#{msg['historyView.leftArrowImage']}"></img>
>
>               <a4j:actionparam id="buttonName" name="buttonName"
> value="button_left"/>
>
> </a4j:commandLink>
>
>  
>
> Moreover in my server logs I am getting "Null Pointer exception". Can
> any body have any idea?
>
>  
>
>  
>
> Thanks & Regards,
>
> Basha
>
>  
>
>
>
>
> The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. 
>
> WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
>  
> www.wipro.com
>