• Post Reply Bookmark Topic Watch Topic
  • New Topic

Axis2 weird exception/error handling  RSS feed

 
Bai Shen
Ranch Hand
Posts: 323
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I created a basic web service. I then used the wsdl to create a client. With no logic, things work with no errors. So now I'm adding logic.

Something is going wrong with my logic on the server, and that's where the weirdness starts. The only error I get in the console is the following.



However, nothing gets passed to the client. All the client gets back is a 202 Accepted code. So for some reason, the server throws an error and then just buries it without ever sending it back to the client.

Any ideas why? I'm at a loss.
 
Bai Shen
Ranch Hand
Posts: 323
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So I decided to surround the offending code with a try/catch block. The resulting stack trace showed me that it was throwing a UndeclaredThrowableException caused by a CNF exception. However, Axis2 still happily returns a 202 Accepted message to the client. When I forgot to turn on the database, it actually returned a 500 error, but not with this. Any suggestions?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!