File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes Internal Server Error in Websphere in Solaris Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Internal Server Error in Websphere in Solaris" Watch "Internal Server Error in Websphere in Solaris" New topic
Author

Internal Server Error in Websphere in Solaris

senthil loganathan
Greenhorn

Joined: Aug 07, 2001
Posts: 11
Dear All,
Our application has been tested well in Websphere 3.5 present in NT Server. The same code has been ported to Solaris - Websphere 3.5. In some of the pages Internal Server error is displayed. what is the reason for this problem? is it related to the code?


Senthil.L
Mahesh Mamani
Ranch Hand

Joined: Jun 25, 2001
Posts: 110
Hi Senthil,
The error message might be thrown not due to the code, but to the environment settings of your server. Please check your settings and try again.
May be you have not set the CLASSPATH variable, which may throw a ClassNotFoundException.
Pls check and revert back if necessary.

Mahesh
senthil loganathan
Greenhorn

Joined: Aug 07, 2001
Posts: 11
Originally posted by Mahesh Mamani:
Hi Senthil,
The error message might be thrown not due to the code, but to the environment settings of your server. Please check your settings and try again.
May be you have not set the CLASSPATH variable, which may throw a ClassNotFoundException.
Pls check and revert back if necessary.

Mahesh
senthil loganathan
Greenhorn

Joined: Aug 07, 2001
Posts: 11
Originally posted by Mahesh Mamani:
Hi Senthil,
The error message might be thrown not due to the code, but to the environment settings of your server. Please check your settings and try again.
May be you have not set the CLASSPATH variable, which may throw a ClassNotFoundException.
Pls check and revert back if necessary.

Mahesh

Hi Mahesh,
In Solaris also the applications are running but in some pages Internal Server error occurs. This is also not consistent. Not that every time in the same page the error occurs. Some times it occurs, some times not??
Sita Kodali
Ranch Hand

Joined: Dec 02, 2001
Posts: 72
Internal Server Error (aka Error 500) may occur due to many reasons. To name a few - missing parameteres, null parameters, missing class libraries.
Besides, if you have used any OS specific parameters such as absolute file paths (in your case, you moved from NT to Solaris) may create trouble. Don't ignore that null parameters values are a big headache.
One way to find out the cause is to put some debugging code in your servlets/jsp, check your server logs (both access and error logs)
HTH
--
Venkat
senthil loganathan
Greenhorn

Joined: Aug 07, 2001
Posts: 11
Originally posted by sita kodali:
Internal Server Error (aka Error 500) may occur due to many reasons. To name a few - missing parameteres, null parameters, missing class libraries.
Besides, if you have used any OS specific parameters such as absolute file paths (in your case, you moved from NT to Solaris) may create trouble. Don't ignore that null parameters values are a big headache.

One way to find out the cause is to put some debugging code in your servlets/jsp, check your server logs (both access and error logs)
HTH
--
Venkat

what do you mean by missing parameters?
Null parameters.. Will internal server error come while trying to access a null parameter?
there are no OS specific parameters..
the class path is properly set..
can u pls explain in detail about the missing parameters and null parameters handling??
Sita Kodali
Ranch Hand

Joined: Dec 02, 2001
Posts: 72
what do you mean by missing parameters?
Null parameters.. Will internal server error come while trying to access a null parameter?
there are no OS specific parameters..
the class path is properly set..
can u pls explain in detail about the missing parameters and null parameters handling??

Missing parameters : If you don't supply those parameters required in your servlet/jsp and don't handle error/exception caused thereby.
null parameters : If you don't supply those parameters required in your servlet/jsp and don't handle error/exception caused thereby and those parameters are dynamic i.e, pulled from a database and happen to be null, it causes Error 500.
The best way is to check your server logs for exceptions that those pages generate
Regards
--
Venkat
Val Pecaoco
Ranch Hand

Joined: Dec 05, 2001
Posts: 156
Hi Senthil,
I've had also come across these types of errors and all I can say is that the platform doesn't matter.
The biggest thorn I've encountered so far has been with browser versions. IE 4.0 is particularly the culprit behind form variables not being submitted, resulting in the "null" 500 error. This happens if you have multiple forms in one HTML page. IE 4.0 is "blindingly" faithful when it comes to forms: it just wants one and one alone. With IE 5.0 and 5.5 (and maybe 6.0) multiple forms are OK. Also to watch out are hidden form variables.
I suggest that you implement a robust exception-catching policy, such that particular exceptions are caught so that you're not left out in the cold on what the hell is happening to your application. For example, null form variables will generate a "NullPointerException".
And maybe a lot of detective-like intuition...
GL
Ex Animo Java!
-- Val


"Knowledge is power, but enthusiasm is the key." -- Lavern Barn
senthil loganathan
Greenhorn

Joined: Aug 07, 2001
Posts: 11
Originally posted by sita kodali:
what do you mean by missing parameters?
Null parameters.. Will internal server error come while trying to access a null parameter?
there are no OS specific parameters..
the class path is properly set..
can u pls explain in detail about the missing parameters and null parameters handling??

Missing parameters : If you don't supply those parameters required in your servlet/jsp and don't handle error/exception caused thereby.
null parameters : If you don't supply those parameters required in your servlet/jsp and don't handle error/exception caused thereby and those parameters are dynamic i.e, pulled from a database and happen to be null, it causes Error 500.
The best way is to check your server logs for exceptions that those pages generate
Regards
--
Venkat

Hi Venkat,
Just now i was testing my application and i got Internal Server error. I cheked the error logs there are no exceptions.
In trace.log.ibmhttp the follwing messages are present.
Tue Apr 23 15:15:32 2002 - 00001331 00000000 - Error - ERROR: In do_service_time_request, enter_callback_mode failed
Tue Apr 23 15:15:32 2002 - 00001331 00000000 - Error - mediate_service_to_clone: Error 1 from clone 0, uri /webapp/Csa/meonlinecheque.jsp
I got Internal Server Error in meonlinecheque.jsp
i am not able to track this error...
can u help
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Internal Server Error in Websphere in Solaris