11
Enocra
4y

I am learning java at school and my teacher asked me to make a work on JTA (java transaction API). There's not a lot of tutos on it on the web so I say to myself "go on, give it a try, you'll only learn by trying."
I finally find how to make the @TransactionType, where to put the @Stateless, my test works, nice. Finally I want to try a case where it shouldn't work, just to be sure the rollback works well. The test goes and... NullPointerException. Wtf ! Normally, my catch is supposed to, well, catch the error !

And finally, I was just stupid. My catch worked great. But I put a "throw e" inside.

Now I wanna hides under blankets, cry, eat cake and never see my coworkers again.

Comments
  • 2
    No shame, at the end of the day we are all humans with errors and flaws. As long as you fixed it yourself noone will ever know.😃😉
  • 0
    Might help if I tell you that fuckups like this happen all the time. You are certainly not alone.
Add Comment