Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Compiling Jsp in Solaris  RSS feed

 
Anoop Krishnan
Ranch Hand
Posts: 163
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a strange problem when dealing with JSPs in Solaris Machine Apache & Tomcat
If when the apache is restarted it is not able to compile the file shows millions of errors saying a lot of object not initialized
it even says the object out is not initialized.The page works fine under Linux system.
Do you have nay idea what is wrong here & how can I fix it in my code or in the OS
Please have a look at the errors

Location: /app/search.jsp
*Internal Servlet Error:*
org.apache.jasper.JasperException: Unable to compile Note: sun.tools.javac.Main has been deprecated.
/usr/local/jakarta-tomcat-3.3.1/work/rwt.reuters.de/app/search_1.java:454: Variable lang may not have been initialized.
message=""+Glossary.get("selectSearchFilter",lang)+"";
^
/usr/local/jakarta-tomcat-3.3.1/work/rwt.reuters.de/app/search_1.java:457: Variable preFilter may not have been initialized.
if(getValidPreFilterString(preFilter,request,preFilterValue)==null)
^
/usr/local/jakarta-tomcat-3.3.1/work/rwt.reuters.de/app/search_1.java:459: Variable lang may not have been initialized.
message="\""+preFilterValue+"\" - "+Glossary.get("invalidSearchString",lang)+"";
^
/usr/local/jakarta-tomcat-3.3.1/work/rwt.reuters.de/app/search_1.java:482: Variable filterName may not have been initialized.
if(filterName!=null)
^
/usr/local/jakarta-tomcat-3.3.1/work/rwt.reuters.de/app/search_1.java:484: Variable props may not have been initialized.
filter=ServletTool.getFilterMap(filterName,props);
^
/usr/local/jakarta-tomcat-3.3.1/work/rwt.reuters.de/app/search_1.java:487: Variable count may not have been initialized.
tempList=getSearchFilter(count,filter,preFilter,searchParameterMap,lang,request,delFilterId,isTypeChanged,searchKey,searchString);
^
/usr/local/jakarta-tomcat-3.3.1/work/rwt.reuters.de/app/search_1.java:487: Variable preFilter may not have been initialized.
tempList=getSearchFilter(count,filter,preFilter,searchParameterMap,lang,request,delFilterId,isTypeChanged,searchKey,searchString);
^
/usr/local/jakarta-tomcat-3.3.1/work/rwt.reuters.de/app/search_1.java:487: Variable searchParameterMap may not have been initialized.
tempList=getSearchFilter(count,filter,preFilter,searchParameterMap,lang,request,delFilterId,isTypeChanged,searchKey,searchString);
^
/usr/local/jakarta-tomcat-3.3.1/work/rwt.reuters.de/app/search_1.java:487: Variable lang may not have been initialized.
tempList=getSearchFilter(count,filter,preFilter,searchParameterMap,lang,request,delFilterId,isTypeChanged,searchKey,searchString);
^
/usr/local/jakarta-tomcat-3.3.1/work/rwt.reuters.de/app/search_1.java:487: Variable request may not have been initialized.
tempList=getSearchFilter(count,filter,preFilter,searchParameterMap,lang,request,delFilterId,isTypeChanged,searchKey,searchString);
^
/usr/local/jakarta-tomcat-3.3.1/work/rwt.reuters.de/app/search_1.java:487: Variable delFilterId may not have been initialized.
tempList=getSearchFilter(count,filter,preFilter,searchParameterMap,lang,request,delFilterId,isTypeChanged,searchKey,searchString);
^
/usr/local/jakarta-tomcat-3.3.1/work/rwt.reuters.de/app/search_1.java:487: Variable isTypeChanged may not have been initialized.
tempList=getSearchFilter(count,filter,preFilter,searchParameterMap,lang,request,delFilterId,isTypeChanged,searchKey,searchString);
^
/usr/local/jakarta-tomcat-3.3.1/work/rwt.reuters.de/app/search_1.java:487: Variable searchString may not have been initialized.
tempList=getSearchFilter(count,filter,preFilter,searchParameterMap,lang,request,delFilterId,isTypeChanged,searchKey,searchString);
^
/usr/local/jakarta-tomcat-3.3.1/work/rwt.reuters.de/app/search_1.java:488: Variable defaultFilter may not have been initialized.
searchFilter=ServletTool.makeSearchFilterRequest((HashMap)tempList.get("FILTER_REQUEST"),filter,defaultFilter,sID);
^
/usr/local/jakarta-tomcat-3.3.1/work/rwt.reuters.de/app/search_1.java:488: Variable sID may not have been initialized.
searchFilter=ServletTool.makeSearchFilterRequest((HashMap)tempList.get("FILTER_REQUEST"),filter,defaultFilter,sID);
^
/usr/local/jakarta-tomcat-3.3.1/work/rwt.reuters.de/app/search_1.java:492: Variable searchParameterMap may not have been initialized.
searchFilter=ServletTool.makeSearchFilterRequest(searchParameterMap,defaultFilter,defaultFilter,sID);
^
/usr/local/jakarta-tomcat-3.3.1/work/rwt.reuters.de/app/search_1.java:492: Variable defaultFilter may not have been initialized.
searchFilter=ServletTool.makeSearchFilterRequest(searchParameterMap,defaultFilter,defaultFilter,sID);
^
/usr/local/jakarta-tomcat-3.3.1/work/rwt.reuters.de/app/search_1.java:492: Variable sID may not have been initialized.
searchFilter=ServletTool.makeSearchFilterRequest(searchParameterMap,defaultFilter,defaultFilter,sID);
^
/usr/local/jakarta-tomcat-3.3.1/work/rwt.reuters.de/app/search_1.java:497: Variable queryBank may not have been initialized.
queryBank.append(",iniFile=\"./conf/tables/search/");queryBank.append(iniFile);queryBank.append("\"");
^
/usr/local/jakarta-tomcat-3.3.1/work/rwt.reuters.de/app/search_1.java:497: Variable iniFile may not have been initialized.
queryBank.append(",iniFile=\"./conf/tables/search/");queryBank.append(iniFile);queryBank.append("\"");
^
/usr/local/jakarta-tomcat-3.3.1/work/rwt.reuters.de/app/search_1.java:503: Variable template may not have been initialized.
queryBank.append(template);
^
/usr/local/jakarta-tomcat-3.3.1/work/rwt.reuters.de/app/search_1.java:505: Variable uID may not have been initialized.
queryBank.append(uID);
^
/usr/local/jakarta-tomcat-3.3.1/work/rwt.reuters.de/app/search_1.java:506: Variable fid may not have been initialized.
queryBank.append(" fid=");queryBank.append(fid);
^
/usr/local/jakarta-tomcat-3.3.1/work/rwt.reuters.de/app/search_1.java:510: Variable searchFilter may not have been initialized.
if(searchFilter==null)searchFilter=ServletTool.makeSearchFilterRequest(searchParameterMap,defaultFilter,defaultFilter,sID);
^
/usr/local/jakarta-tomcat-3.3.1/work/rwt.reuters.de/app/search_1.java:510: Variable searchParameterMap may not have been initialized.
if(searchFilter==null)searchFilter=ServletTool.makeSearchFilterRequest(searchParameterMap,defaultFilter,defaultFilter,sID);
^
/usr/local/jakarta-tomcat-3.3.1/work/rwt.reuters.de/app/search_1.java:510: Variable defaultFilter may not have been initialized.
if(searchFilter==null)searchFilter=ServletTool.makeSearchFilterRequest(searchParameterMap,defaultFilter,defaultFilter,sID);
^
/usr/local/jakarta-tomcat-3.3.1/work/rwt.reuters.de/app/search_1.java:510: Variable sID may not have been initialized.
if(searchFilter==null)searchFilter=ServletTool.makeSearchFilterRequest(searchParameterMap,defaultFilter,defaultFilter,sID);
^
/usr/local/jakarta-tomcat-3.3.1/work/rwt.reuters.de/app/search_1.java:511: Variable searchFilter may not have been initialized.
if(searchFilter!=null){queryBank.append(" ");queryBank.append(searchFilter);}
^
/usr/local/jakarta-tomcat-3.3.1/work/rwt.reuters.de/app/search_1.java:511: Variable queryBank may not have been initialized.
if(searchFilter!=null){queryBank.append(" ");queryBank.append(searchFilter);}
^
/usr/local/jakarta-tomcat-3.3.1/work/rwt.reuters.de/app/search_1.java:512: Variable queryBank may not have been initialized.
query=queryBank.toString();
^
/usr/local/jakarta-tomcat-3.3.1/work/rwt.reuters.de/app/search_1.java:518: Variable secType may not have been initialized.
queryBank.append("secType=");queryBank.append(secType);
^
/usr/local/jakarta-tomcat-3.3.1/work/rwt.reuters.de/app/search_1.java:519: Variable searchType may not have been initialized.
queryBank.append("&searchType=");queryBank.append(searchType);
^
/usr/local/jakarta-tomcat-3.3.1/work/rwt.reuters.de/app/search_1.java:520: Variable isTypeChanged may not have been initialized.
queryBank.append("&typeChng=");queryBank.append(isTypeChanged);
^
/usr/local/jakarta-tomcat-3.3.1/work/rwt.reuters.de/app/search_1.java:522: Variable exchange may not have been initialized.
if(exchange!=null){queryBank.append("&exchange=");queryBank.append(exchange);}
^
/usr/local/jakarta-tomcat-3.3.1/work/rwt.reuters.de/app/search_1.java:523: Variable queryBank may not have been initialized.
queryBank.append("&filterCount=");queryBank.append(count);
^
/usr/local/jakarta-tomcat-3.3.1/work/rwt.reuters.de/app/search_1.java:523: Variable count may not have been initialized.
queryBank.append("&filterCount=");queryBank.append(count);
^
/usr/local/jakarta-tomcat-3.3.1/work/rwt.reuters.de/app/search_1.java:525: Variable tempList may not have been initialized.
if(tempList!=null)
^
/usr/local/jakarta-tomcat-3.3.1/work/rwt.reuters.de/app/search_1.java:529: Variable tempList may not have been initialized.
searchParameters=(HashMap)tempList.get("SEARCH_STRING");
^
/usr/local/jakarta-tomcat-3.3.1/work/rwt.reuters.de/app/search_1.java:530: Variable filter may not have been initialized.
searchString=ServletTool.getSearchString(searchParameters,filter.getStringFilterPriority());
^
/usr/local/jakarta-tomcat-3.3.1/work/rwt.reuters.de/app/search_1.java:533: Variable searchString may not have been initialized.
if(searchString!=null){queryBank.append("&searchString=");queryBank.append(URLEncoder.encode(searchString,"UTF-8"));}
^
/usr/local/jakarta-tomcat-3.3.1/work/rwt.reuters.de/app/search_1.java:533: Variable queryBank may not have been initialized.
if(searchString!=null){queryBank.append("&searchString=");queryBank.append(URLEncoder.encode(searchString,"UTF-8"));}
^
/usr/local/jakarta-tomcat-3.3.1/work/rwt.reuters.de/app/search_1.java:534: Variable queryBank may not have been initialized.
queryBank.append("\"");
^
/usr/local/jakarta-tomcat-3.3.1/work/rwt.reuters.de/app/search_1.java:536: Variable searchString may not have been initialized.
if(searchString==null)searchString="";
^
/usr/local/jakarta-tomcat-3.3.1/work/rwt.reuters.de/app/search_1.java:537: Variable lang may not have been initialized.
String title=Glossary.get("searchResultsFor",lang)+" \""+searchString+"\"";
^
/usr/local/jakarta-tomcat-3.3.1/work/rwt.reuters.de/app/search_1.java:537: Variable searchString may not have been initialized.
String title=Glossary.get("searchResultsFor",lang)+" \""+searchString+"\"";
^
/usr/local/jakarta-tomcat-3.3.1/work/rwt.reuters.de/app/search_1.java:539: Variable popup may not have been initialized.
if (!popup.equals("-1")) frameTest="false";
^
/usr/local/jakarta-tomcat-3.3.1/work/rwt.reuters.de/app/search_1.java:544: Variable sID may not have been initialized.
_jspx_qStr = _jspx_qStr + "?sID=" + (sID);
^
/usr/local/jakarta-tomcat-3.3.1/work/rwt.reuters.de/app/search_1.java:551: Variable popup may not have been initialized.
if (popup.equals("-1"))out.print(ConfigLoader.getExternProperty("topLevelProperties","frameTestScript"));
^
/usr/local/jakarta-tomcat-3.3.1/work/rwt.reuters.de/app/search_1.java:551: Variable out may not have been initialized.
if (popup.equals("-1"))out.print(ConfigLoader.getExternProperty("topLevelProperties","frameTestScript"));
^
/usr/local/jakarta-tomcat-3.3.1/work/rwt.reuters.de/app/search_1.java:556: Variable sID may not have been initialized.
_jspx_qStr = _jspx_qStr + "?sID=" + (sID);
^
/usr/local/jakarta-tomcat-3.3.1/work/rwt.reuters.de/app/search_1.java:558: Variable lang may not have been initialized.
_jspx_qStr = _jspx_qStr + "?=" + (lang);
^
/usr/local/jakarta-tomcat-3.3.1/work/rwt.reuters.de/app/search_1.java:563: Variable out may not have been initialized.
out.write("");
^
/usr/local/jakarta-tomcat-3.3.1/work/rwt.reuters.de/app/search_1.java:634: Variable out may not have been initialized.
out.write("\r\n \r\n \r\n \r\n");
^
/usr/local/jakarta-tomcat-3.3.1/work/rwt.reuters.de/app/search_1.java:894: Variable filterMapping may not have been initialized.
if(filterMapping!=null){
^
/usr/local/jakarta-tomcat-3.3.1/work/rwt.reuters.de/app/search_1.java:903: Variable textMapping may not have been initialized.
if(textMapping!=null){
^
/usr/local/jakarta-tomcat-3.3.1/work/rwt.reuters.de/app/search_1.java:906: Variable out may not have been initialized.
out.print( textMapping );
^
/usr/local/jakarta-tomcat-3.3.1/work/rwt.reuters.de/app/search_1.java:912: Variable preFilter may not have been initialized.
if(preFilter!=null){
^
/usr/local/jakarta-tomcat-3.3.1/work/rwt.reuters.de/app/search_1.java:915: Variable out may not have been initialized.
out.print( preFilter.getSelfMenuMappings(lang) );
^
/usr/local/jakarta-tomcat-3.3.1/work/rwt.reuters.de/app/search_1.java:915: Variable lang may not have been initialized.
out.print( preFilter.getSelfMenuMappings(lang) );
^
/usr/local/jakarta-tomcat-3.3.1/work/rwt.reuters.de/app/search_1.java:921: Variable disabledFilters may not have been initialized.
if(disabledFilters!=null){
^
/usr/local/jakarta-tomcat-3.3.1/work/rwt.reuters.de/app/search_1.java:924: Variable out may not have been initialized.
out.print( disabledFilters );
^
/usr/local/jakarta-tomcat-3.3.1/work/rwt.reuters.de/app/search_1.java:930: Variable labelMapping may not have been initialized.
if(labelMapping!=null){
^
/usr/local/jakarta-tomcat-3.3.1/work/rwt.reuters.de/app/search_1.java:933: Variable out may not have been initialized.
out.print( labelMapping );
^
/usr/local/jakarta-tomcat-3.3.1/work/rwt.reuters.de/app/search_1.java:939: Variable prefFilters may not have been initialized.
if(prefFilters!=null)
^
/usr/local/jakarta-tomcat-3.3.1/work/rwt.reuters.de/app/search_1.java:945: Variable props may not have been initialized.
child=FilterPool.getFilter(prefFilters[i],props);
^
/usr/local/jakarta-tomcat-3.3.1/work/rwt.reuters.de/app/search_1.java:946: Variable sID may not have been initialized.
sessionValue=JspModuleSession.getParameter(sID,null,child.getUserPreference());
^
/usr/local/jakarta-tomcat-3.3.1/work/rwt.reuters.de/app/search_1.java:950: Variable out may not have been initialized.
out.write("");
^
/usr/local/jakarta-tomcat-3.3.1/work/rwt.reuters.de/app/search_1.java:982: Variable tempList may not have been initialized.
if(tempList!=null)
^
/usr/local/jakarta-tomcat-3.3.1/work/rwt.reuters.de/app/search_1.java:996: Variable message may not have been initialized.
if(message==null)
^
/usr/local/jakarta-tomcat-3.3.1/work/rwt.reuters.de/app/search_1.java:999: Variable queryBank may not have been initialized.
searchResultTable=MC.parseLinks(JspTable.getHTMLforCache(queryBank.toString()),paramBank.toString());
^
/usr/local/jakarta-tomcat-3.3.1/work/rwt.reuters.de/app/search_1.java:999: Variable paramBank may not have been initialized.
searchResultTable=MC.parseLinks(JspTable.getHTMLforCache(queryBank.toString()),paramBank.toString());
^
/usr/local/jakarta-tomcat-3.3.1/work/rwt.reuters.de/app/search_1.java:1001: Variable lang may not have been initialized.
if(searchResultTable==null || "".equals(searchResultTable))searchResultTable=""+Glossary.get("searchResultEmpty",lang)+"";
^
/usr/local/jakarta-tomcat-3.3.1/work/rwt.reuters.de/app/search_1.java:1010: Variable out may not have been initialized.
out.print( searchResultTable
^
/usr/local/jakarta-tomcat-3.3.1/work/rwt.reuters.de/app/search_1.java:1010: Variable searchResultTable may not have been initialized.
out.print( searchResultTable
^
/usr/local/jakarta-tomcat-3.3.1/work/rwt.reuters.de/app/search_1.java:1017: Variable queryBank may not have been initialized.
out.print( ""+queryBank.toString()+"
"+ConfigLoader.getDebug()+"\nTime="+(tabtime1-tabtime0) );
^
Too many errors. (The limit on reported errors is 100.)
103 errors, 1 warning
at org.apache.tomcat.facade.JasperLiaison.javac(JspInterceptor.java:898)
at org.apache.tomcat.facade.JasperLiaison.processJspFile(JspInterceptor.java:733)
at org.apache.tomcat.facade.JspInterceptor.requestMap(JspInterceptor.java:506)
at org.apache.tomcat.core.ContextManager.processRequest(ContextManager.java:968)
at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:875)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)
at org.apache.tomcat.modules.server.Ajp13Interceptor.processConnection(Ajp13Interceptor.java:341)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:516)
at java.lang.Thread.run(Thread.java:536)
 
chanoch wiggers
Author
Ranch Hand
Posts: 245
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
there errors are useful but what does the code look like?
 
Anoop Krishnan
Ranch Hand
Posts: 163
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Respected Sir,
Do you think that this error is also usual in jsp compilation
/usr/local/jakarta-tomcat-3.3.1/work/rwt.reuters.de/app/search_1.java:1010: Variable out may not have been initialized.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!