GeeCON Prague 2014*
The moose likes Other Open Source Projects and the fly likes exeption Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "exeption" Watch "exeption" New topic
Author

exeption

rakhi sinha
Ranch Hand

Joined: Mar 26, 2012
Posts: 147

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

Joined: Jul 26, 2007
Posts: 10426
    
    8

SearchFirst
ShowSomeEffort
more here


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
rakhi sinha
Ranch Hand

Joined: Mar 26, 2012
Posts: 147
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

Joined: Mar 26, 2012
Posts: 147
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
Rancher

Joined: Sep 21, 2011
Posts: 2408
"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

Joined: Jul 26, 2007
Posts: 10426
    
    8

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

Joined: Mar 26, 2012
Posts: 147
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
Rancher

Joined: Sep 21, 2011
Posts: 2408
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.
 
GeeCON Prague 2014
 
subject: exeption