• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

exeption

 
rakhi sinha
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

how to remove this exception


HTTP Status 500 -

--------------------------------------------------------------------------------

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

com.itextpdf.text.exceptions.InvalidPdfException: PDF header signature not found.
com.itextpdf.text.pdf.PRTokeniser.checkPdfHeader(PRTokeniser.java:205)
com.itextpdf.text.pdf.PdfReader.readPdf(PdfReader.java:497)
com.itextpdf.text.pdf.PdfReader.<init>(PdfReader.java:172)
com.itextpdf.text.pdf.PdfReader.<init>(PdfReader.java:161)
LoginExample.digital.doGet(digital.java:82)
javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)


note The full stack trace of the root cause is available in the Apache Tomcat/6.0.32 logs.


--------------------------------------------------------------------------------

Apache Tomcat/6.0.32
 
Maneesh Godbole
Saloon Keeper
Posts: 11096
13
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
 
rakhi sinha
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maneesh Godbole wrote:SearchFirst
ShowSomeEffort
more here


thank you very much for your suggestion and for reply of my questions .but I have tried all type of search for this but my problem is not solved.
 
rakhi sinha
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
rakhi sinha wrote:
Maneesh Godbole wrote:SearchFirst
ShowSomeEffort
more here


thank you very much for your suggestion and for reply of my questions .but I have tried all type of search for this but my problem is not solved.


Please help me out to find out this exception because i have done everything but i am getting errors..i have done all the steps according to you but still i am not getting any result.



type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

java.lang.NullPointerException
LoginExample.digital.doGet(digital.java:85)
javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)


note The full stack trace of the root cause is available in the Apache Tomcat/6.0.32 logs.

 
Tim Moores
Bartender
Posts: 2895
46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Show Some Effort" includes figuring out where and why exceptions happen. For example, NullPointerException happens if an object is null and your code tries to invoke a method on it. So you need to figure out which object is null, and then take steps to ensure that either a) it is not null when you invoke a method on it, or b) check for null before you invoke a method. Just posting the stack trace without anything else really serves no purpose.

What concrete steps have you taken to figure this out?

Also note that it's bad form to use the same discussion thread for two different questions (which these are, seeing that it's two different exceptions).
 
Maneesh Godbole
Saloon Keeper
Posts: 11096
13
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
rakhi sinha wrote:.i have done all the steps according to you but still i am not getting any result.

Did you even click the 3rd link?

You really need to stop wasting our time.
1st you say its

and now you say


 
rakhi sinha
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
rakhi sinha wrote:
rakhi sinha wrote:
Maneesh Godbole wrote:SearchFirst
ShowSomeEffort
more here


thank you very much for your suggestion and for reply of my questions .but I have tried all type of search for this but my problem is not solved.


Please help me out to find out this exception because i have done everything but i am getting errors..i have done all the steps according to you but still i am not getting any result.



type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

java.lang.NullPointerException
LoginExample.digital.doGet(digital.java:85)
javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)


note The full stack trace of the root cause is available in the Apache Tomcat/6.0.32 logs.




log is not showing wnything .it is empty
 
Tim Moores
Bartender
Posts: 2895
46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Then you had better write some useful debugging output to the log, wouldn't you agree? If you're not using any other logging mechanism then System.out.println would do nicely.
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic