Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » 500 error and not the real exception(Exception handling)
500 error and not the real exception [message #1779051] Sun, 31 December 2017 08:30 Go to next message
Ran Cohen is currently offline Ran CohenFriend
Messages: 2
Registered: December 2017
Junior Member
I have a REST project, and a separate test project.
The main project may sometime throw TradairException that extends RuntimeException.
Say I would like to do a GET and then throw an exception.
All I do in the method is:
throw new TradairException("error");

Yet instead of getting the relevant exception in the browser, I get:
"HTTP ERROR: 500

Problem accessing /api/v1/sessions/3e1c5643-e58c-fc1a-fd7b-8de0b092dec4/subscriptions. Reason:

Request failed.
Powered by Jetty://"

How can the real exception be shown?
Re: 500 error and not the real exception [message #1779136 is a reply to message #1779051] Wed, 03 January 2018 06:25 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 29545
Registered: July 2009
Senior Member
This is the JDT forum for asking questions about how to use Eclipse's Java tools, not a forum for asking how to use TradairException whatever that is...
Re: 500 error and not the real exception [message #1779138 is a reply to message #1779136] Wed, 03 January 2018 06:33 Go to previous messageGo to next message
Ran Cohen is currently offline Ran CohenFriend
Messages: 2
Registered: December 2017
Junior Member
I believe my problem is with Jetty. org.eclipse.jetty...
Re: 500 error and not the real exception [message #1779145 is a reply to message #1779138] Wed, 03 January 2018 08:37 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 29545
Registered: July 2009
Senior Member
So perhaps https://www.eclipse.org/jetty/documentation/current/advanced-contributing.html#community points at how to ask for help.
Re: 500 error and not the real exception [message #1779686 is a reply to message #1779051] Thu, 11 January 2018 07:28 Go to previous message
Priya Arrora is currently offline Priya ArroraFriend
Messages: 3
Registered: November 2017
Junior Member
First thing to do is look at the server log. 500 indicates something failed in the server, and your server log should (one hopes) have exceptions listed etc.
Previous Topic:git over ssh keeps asking for password
Next Topic:Eclipse removes my resource filters
Goto Forum:
  


Current Time: Sat Sep 22 03:58:36 GMT 2018

Powered by FUDForum. Page generated in 0.02991 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top