• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem in loading servlet in startup

 
Em Aiy
Ranch Hand
Posts: 226
  • Mark post as helpful
  • send pies
  • 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.
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • Quote
  • Report post to moderator
I am waiting for the explanation
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65229
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • 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
  • 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
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
emm, Thanks.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic