Apache gives an HTTP 500 Error

Chat about Linux in general

Apache gives an HTTP 500 Error

Postby Angtagapagligt on Tue Apr 17, 2012 8:12 am

Hello everybody,

we have a software which runs embedded in our ERP software and from an apache server (a web frontend application). Everytime when the user does something very special (can't explain it cause it is completley individual for exact our business [hope you understand what I mean :)]) the apache server gives a HTTP 500 error with this informations:

Code: Select all
HTTP Status 500 -

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

type Exception report

message

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

exception

org.apache.jasper.JasperException: java.lang.NullPointerException
   org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:522)
   org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:416)
   org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
   org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:717)


root cause

java.lang.NullPointerException
   org.apache.jsp.navision.prnKntConf_jsp.prnMNav(prnKntConf_jsp.java:105)
   org.apache.jsp.navision.prnKntConf_jsp._jspService(prnKntConf_jsp.java:597)
   org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
   org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
   org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
   org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
   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.20 logs.


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

Apache Tomcat/6.0.20


Anybody got any infromations for me which could help me?

Many thanks!

Greetings
Angtagapagligt
"Really, I'm not out to destroy Microsoft. That will just be a completely unintentional side effect."
    - Linus Torvalds Interview with David Diamond, September the 28th 2003
User avatar
Angtagapagligt
Level 4
Level 4
 
Posts: 219
Joined: Sat Jul 10, 2010 3:14 am

Linux Mint is funded by ads and donations.
 

Re: Apache gives an HTTP 500 Error

Postby Myself on Tue Apr 17, 2012 8:23 am

I have no idea but I constantly get this error in many web browsers when trying to connect to a certain social network site, and some news sites just as I am about to submit a comment.
CPU = U9300, 4GB RAM, Intel GM45 Graphics @ resolution 1366x768, 128GB internal drive, 6TB external storage, Main OS = LMDE Xfce 64bit UP4. 2nd OS = LMDE Xfce 64bit UP4, Other installed OSs = Bodhi 1.4.0, Ubuntu 10.04 & 12.04, Mandriva & Windows.
Myself
Level 3
Level 3
 
Posts: 168
Joined: Fri Feb 24, 2012 2:42 pm
Location: Netherlands

Re: Apache gives an HTTP 500 Error

Postby Angtagapagligt on Tue Apr 17, 2012 8:52 am

Myself wrote:I have no idea but I constantly get this error in many web browsers when trying to connect to a certain social network site, and some news sites just as I am about to submit a comment.


Hey,

thanks for your input!

Do you mean just the HTTP Code or the whole message?

If you mean the HTTP Code I could help you (if you don't - just skip this :D):
The HTTP status code 500 means a generic error message, given when no more specific message is suitable.

You can find a list with HTTP status codes here:

https://en.wikipedia.org/wiki/List_of_http_codes


Many thanks!

Greetings
Angtagapagligt
"Really, I'm not out to destroy Microsoft. That will just be a completely unintentional side effect."
    - Linus Torvalds Interview with David Diamond, September the 28th 2003
User avatar
Angtagapagligt
Level 4
Level 4
 
Posts: 219
Joined: Sat Jul 10, 2010 3:14 am

Re: Apache gives an HTTP 500 Error

Postby Myself on Tue Apr 17, 2012 8:55 am

Found the following info & link:

" I figured out that my problem was an issue with opening the database. The way I figured it out was to add the following to the servicename.svc.cs file in the InitializeService method:

config.UseVerboseErrors=true;

Thanks to all who tried to help. "


http://stackoverflow.com/questions/3029100/odata-wcf-data-service-http-500-error#3055392
CPU = U9300, 4GB RAM, Intel GM45 Graphics @ resolution 1366x768, 128GB internal drive, 6TB external storage, Main OS = LMDE Xfce 64bit UP4. 2nd OS = LMDE Xfce 64bit UP4, Other installed OSs = Bodhi 1.4.0, Ubuntu 10.04 & 12.04, Mandriva & Windows.
Myself
Level 3
Level 3
 
Posts: 168
Joined: Fri Feb 24, 2012 2:42 pm
Location: Netherlands

Re: Apache gives an HTTP 500 Error

Postby Angtagapagligt on Tue Apr 17, 2012 9:02 am

Myself wrote:Found the following info & link:

" I figured out that my problem was an issue with opening the database. The way I figured it out was to add the following to the servicename.svc.cs file in the InitializeService method:

config.UseVerboseErrors=true;

Thanks to all who tried to help. "


http://stackoverflow.com/questions/3029100/odata-wcf-data-service-http-500-error#3055392


Thanks again but I think this solution is for "Company from Redmond" SQL... Our webserver uses an informix databases (which is already existent cause of another software running on the server which needs it).
Or did I get it wrong?

Thanks!

Greetings
"Really, I'm not out to destroy Microsoft. That will just be a completely unintentional side effect."
    - Linus Torvalds Interview with David Diamond, September the 28th 2003
User avatar
Angtagapagligt
Level 4
Level 4
 
Posts: 219
Joined: Sat Jul 10, 2010 3:14 am

Re: Apache gives an HTTP 500 Error

Postby Angtagapagligt on Tue Apr 17, 2012 10:01 am

I actually do a
Code: Select all
cd /
grep "servicename.svc.cs"


The result (so far) is that the cursor is in the next line an nothing else happens... Does the machine still calculate the search or did I use "grep" wrong?

Edit:
Does the command evene make sense? I want grep to search for the string in every single directory (that's why I used "cd /"). Sorry I used grep only with "command | grep "String"" 'till today :).
"Really, I'm not out to destroy Microsoft. That will just be a completely unintentional side effect."
    - Linus Torvalds Interview with David Diamond, September the 28th 2003
User avatar
Angtagapagligt
Level 4
Level 4
 
Posts: 219
Joined: Sat Jul 10, 2010 3:14 am

Re: Apache gives an HTTP 500 Error

Postby Angtagapagligt on Tue Apr 17, 2012 10:43 am

Okay I searched the file now via:

Code: Select all
find / -xdev -type f -print0 | xargs -0 grep -H "servicename.sv.cs"


The command worked but the file doesn't exist (I don't get any results back).
"Really, I'm not out to destroy Microsoft. That will just be a completely unintentional side effect."
    - Linus Torvalds Interview with David Diamond, September the 28th 2003
User avatar
Angtagapagligt
Level 4
Level 4
 
Posts: 219
Joined: Sat Jul 10, 2010 3:14 am

Linux Mint is funded by ads and donations.
 

Return to Chat about Linux

Who is online

Users browsing this forum: No registered users and 7 guests