• 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:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

Velocity initialization and .IllegalMonitorStateException

 
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Help. I've posted before and have got no reply. been trying for 3 days so far but haven't really find any way to fix this. I have understood the problem better:

config
---
Java : 1.4
Velocity : 1.4
SunAppServer : 7

web app config
---
Templates placed in WEB-INF/classes/ so that they are loadable via classLoader.

Description
---
Application was trying to generate a report using Velocity. The .init() calls fails. The code have been modified to be like such:



Exception message
---
This is obtained when I use the Properties object.






Initially, the code is like such:


And I get a StringIndexOutOfBoundException on the extendedProperties collection instead:



HELP

According to the Velocity tutorial, the 2 approach should be identical. When attempted on local workstation running java 1.5 and appServer 8.2, the problem doesn't happen. But on development server running java 1.4 and appServer 7, the same code causes problem mentioned above.

I am not sure whether Java/AppServer configuration is the one that causes this. Pls help if you can.
[ May 31, 2006: Message edited by: Zenikko Sugiarto ]
reply
    Bookmark Topic Watch Topic
  • New Topic