Help coderanch get a
new server
by contributing to the fundraiser
  • 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
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

Problem in loading servlet in startup

 
Ranch Hand
Posts: 226
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, i have a servlet and i have mapped in XML to load it at server startup. but it is throwing an exception. can you people please help me out.

the exception is



please help me out ... as soon as possible.
 
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

at org.apache.jasper.util.SystemLogHandler.findStream(SystemLogHandler.java:105) at org.apache.jasper.util.SystemLogHandler.println(SystemLogHandler.java:214) at org.apache.jasper.util.SystemLogHandler.println(SystemLogHandler.java:214) at org.apache.jasper.util.SystemLogHandler.println(SystemLogHandler.java:214) at advertBeans.AdvertStart.init(AdvertStart.java:9)



Post the code inside the init() method of advertBeans.AdvertStart class.
Looks like you are using SystemLogHandler.println in your code. Do you actually want to use that or were you supposed to use:
 
Em Aiy
Ranch Hand
Posts: 226
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
yeah i am using System.err.println(""); to debug it, since my debugger is not letting me to do so ... if the problem is due to this sytem thing then can you explain me what is the reason for it ??

here is the code



I am trying to omit all the system function to check it. waiting for your reply.


--------------------------------------------------------------------------
Hey, i have omited all Syste.err.println(""); lines and it is working properly. emm, can you explain the reason?
[ August 01, 2006: Message edited by: Muhammad Ali Amin ]
 
Em Aiy
Ranch Hand
Posts: 226
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am waiting for the explanation
 
Sheriff
Posts: 67750
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Muhammad Ali Amin:
I am waiting for the explanation



Everyone who answers questions here is a volunteer. Demanding answers in this manner will just tick people off. How rude!

I'd be a lot nicer and a lot more patient and read this.
 
Em Aiy
Ranch Hand
Posts: 226
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
he told me the solution but did not tell me why i am getting the error. I want to know the reason behind it ... is it agains the rules? i am not forcing someone to solve my problem. My problem has already been solved, I am just asking HOW? so that it may help me to get more understanding and to help others in future.
 
Jaikiran Pai
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
I actually dont know the reason why its throwing a NullpointerException(thats the reason why i did not reply to your post )

I mentioned that particular solution to you based on what i could see in the stacktrace.
 
Em Aiy
Ranch Hand
Posts: 226
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
emm, Thanks.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic