Win a copy of Classic Computer Science Problems in Swift this week in the iOS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Velocity initialization and .IllegalMonitorStateException  RSS feed

Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • 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:

Java : 1.4
Velocity : 1.4
SunAppServer : 7

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

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:


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 ]
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!