• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Urgent error while loading a jsp page

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hello
Actually my problem is while loading the JSP page i am getting runtime error.the senario is i am trying to load the data(data which i am getting from bean which is in a vector) into clientside array.
i am using JSP,DB2,WEBSPHERE
i am not getting the error every time but rarely.
Can any one know the solution.

Thanks in advance
Bk
 
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I would be easier to help you if you provide us with more detailed information...
If you could post the exception you are getting or the code throwing the error, it would be useful.
 
Bonkur K Reddy
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi this is some part of my code where actually the error is getting occured
<%Vector vCurrency = null;
ReviewOrderValueBean OrderCurrBean = null;

vCurrency = (Vector)request.getAttribute("vFetchCurrency");
try{
if(vCurrency != null){
if(!vCurrency.isEmpty()){
for(Enumeration enumvCurrency = vCurrency.elements();enumvCurrency.hasMoreElements() {
OrderCurrBean = (ReviewOrderValueBean)enumvCurrency.nextElement();
strCurrCode = null;
strCurrCode = OrderCurrBean.getCurrCode();
if(strCurrCode != null)
{%>
<script language="Javascript">

ArrCurrency[intCurrCou] ='<%=strCurrCode%>';
intCurrCou++;


</script>
<%}

}
}
}
}catch(Exception e){
CLogger.log(" HO0202", "Enumaration", e,
" An exception occurred while fetching the Currency Details",CLogger.ERROR);
}%>
//****************************//
In the load of the form the loop is getting skipped of with lodding some data into array
///this is the code which is getting displayed in the form (this is part of the code only)
----
-----
---
<script language="Javascript">

ArrCurrency[Number(intCurrCou)] ='BRL';
//intCurrCou++;
intCurrCou = Number(intCurrCou)+1;

</script>

<script language="Javascript">

ArrCurrency[Number(intCurrCou)] ='BSD';
//intCurrCou++;
intCurrCou = Number(intCurrCou)+1;

</script>

<script
----
-----
---
actually there are 183 records in the vector but in the loop it not loading all the 183 records into array.
i am getting this only in few instances only
thanks in advance
bk
 
reply
    Bookmark Topic Watch Topic
  • New Topic