Unhandled exception: lotus.domino.NotesException

已回答

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?

0

Please share a sample project to reproduce the issue: https://uploads.services.jetbrains.com/ .

0
Avatar
Permanently deleted user

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.

0
public final class NotesException extends UserException

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.

 

0
Avatar
Permanently deleted user

Oh dang! You're right man. Thanks a lot and happy Christmas!

0

请先登录再写评论。