Unhandled exception: lotus.domino.NotesException
Answered
Hello
I just installed the newer version of Intellij IDEA Community and imported a project from GitHub already developed with the same IDE but unfortunately only source files were saved.
So I created the Java Application, linked needed libraries but always getting this annoying (red) error on every method of any class coming from the Notes.jar package that says "Unhandled exception: lotus.domino.NotesException", even if the method is throwing exceptions (throws Exception).
If I edit the method declaration using "throws NotesException" I get "Required type: Throwable Provided: NotesException".
How can I solve this problem?
Please sign in to leave a comment.
Please share a sample project to reproduce the issue: https://uploads.services.jetbrains.com/ .
I just uploaded a "Demo.zip" with a basic class and the Notes.jar library (provided by IBM/HCL).
Kindly let me know whatever your find.
Thank you.
UserException is imported from org.omg.CORBA.UserException which is no longer available in the recent Java releases.
Solution: change project JDK to the one having org.omg.CORBA.UserException class. I've tried 1.7 and it worked fine for me.
Oh dang! You're right man. Thanks a lot and happy Christmas!