• 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
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Tim Cooke
Sheriffs:
  • Rob Spoor
  • Liutauras Vilda
  • paul wheaton
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
  • Piet Souris
Bartenders:
  • Stephan van Hulst

Issue faced when moved from 6.0.14 to 6.0.15

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello all,

First of all let me tell you that I'm new to Java. Now, I have been asked to get a resolution for a problem that we are facing. We are developing an application using JSF 1.2 with RichFaces 3.3.1 (I think!), which will be multilingual. We have different ..properties file for different languages. When we host our application on Tomcat 6.0.14 or lower, it doesn't crash if a key doesn't exist in the respective .properties file. However, it crashes in 6.0.15 or higher.

Let me elaborate with an example. Suppose there is a key named the_required_key. Ideally, this key must be present (along with its value) in every .properties file for every language but if the key is missing, the following behavior is observed:

6.0.14 OR LOWER
The label is displayed as ???the_required_key???

6.0.15 OR HIGHER
The application crashes.

Now what I want is that the application should not crash. Instead it should display the key as ???the_required_key??? In other words, I want to get the same functionality from Tomcat 6.0.15 (or higher) that I was getting from 6.0.14 (and lower).

Any ideas?
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What exactly do you mean by a "crash"? Does the JVM die? Or does the application throw an exception? If it's an exception, then post the entire exception stacktrace.
 
Ahmed S. Tahir
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
First of all, let me correct myself: the application doesn't crash until version 6.0.18 but when it was hosted in 6.0.20, it crashes.

This is what I got when a key named 'geosetup_GeoAreaType' is missing in the .properties file:

EVERE: Servlet.service() for servlet faces threw exception
org.apache.jasper.el.JspPropertyNotFoundException: /pages/geo/geosetup.jsp(71,10) '#{mlBundle.geosetup_GeoAreaType}' Property 'geosetup_GeoAreaType' not found on type java.util.PropertyResourceBundle
at org.apache.jasper.el.JspValueExpression.getValue(JspValueExpression.java:104)
at org.richfaces.component.html.HtmlTab.getLabel(HtmlTab.java:468)
at org.richfaces.renderkit.TabHeaderRendererBase.encodeTabLabel(TabHeaderRendererBase.java:105)
at org.richfaces.renderkit.html.TabHeaderRenderer.doEncodeEnd(TabHeaderRenderer.java:120)
at org.richfaces.renderkit.html.TabHeaderRenderer.doEncodeEnd(TabHeaderRenderer.java:195)
at org.ajax4jsf.renderkit.RendererBase.encodeEnd(RendererBase.java:134)
at org.richfaces.renderkit.TabRendererBase.encodeTab(TabRendererBase.java:74)
at org.richfaces.component.UITab.encodeTab(UITab.java:66)
at org.richfaces.renderkit.TabPanelRendererBase.encodeTabs(TabPanelRendererBase.java:359)
at org.richfaces.renderkit.html.TabPanelRenderer.doEncodeBegin(TabPanelRenderer.java:248)
at org.richfaces.renderkit.html.TabPanelRenderer.doEncodeBegin(TabPanelRenderer.java:200)
at org.ajax4jsf.renderkit.RendererBase.encodeBegin(RendererBase.java:100)
at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:813)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:928)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:933)
at com.sun.faces.application.ViewHandlerImpl.doRenderView(ViewHandlerImpl.java:266)
at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:197)
at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:100)
at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:176)
at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)
at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:368)
at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:495)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.netsol.controller.jsf.common.filter.HttpRequestFilter.doFilter(HttpRequestFilter.java:43)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
at java.lang.Thread.run(Unknown Source)


Any help in this regard will be highly appreciated.

Thanks.
 
rubbery bacon. rubbery tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic