• 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

AllocateException with Tomcat 4.1

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi folks,
i'm running into a frustrating issue with my webapp. i'm using tomcat 4.1, tiles and struts. during startup, the application is to initialize a few things including application properties. one of my classes contains a member Properties which is to be populated during initialization with the file from disk. however, if the Properties is a member and not declared in the method, i get an AllocateException. in addition, when i try to getInstance() of my cms and assign it to a member variable of a singleton class of the webapp, i get the same exception... for example:

either of the above two assignments will cause an AllocateException. i can't fathom why this would not work.
on the other hand this will work (but is useless for me in the context of having a singleton class...):

any ideas? thanks!
 
Check your pockets for water buffalo. You might need to use this tiny ad until locate a water buffalo:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic