on 10-03-2010 12:20 PM
Dear All,
I have written one custom EJB module, where I have used the methods - scanBytes() and cleanBytes() from the Instance class.
these two methods are subject to throw exceptions type of class-
VirusInfectionException.
it's Class hierarchy is -
java.lang.Object
extended by java.lang.Throwable
extended by java.lang.Exception
extended by com.sap.exception.BaseException
extended by com.sap.security.core.server.vsi.api.exception.VSIServiceException
extended by com.sap.security.core.server.vsi.api.exception.VirusInfectionException
I have caught the exception - below is the code fragment-
catch (VirusInfectionException vie)
{
Instance vsiInstance1 = vsiService.getInstance("Z");
boolean b2=vsiInstance1.cleanBytes(scaninputbytes);
if(b2!=true)
{ Audit.addAuditLogEntry(amk, AuditLogStatus.ERROR, "VIRUS Found"+vie.getLastErrorRC());
}
}
but it is showing an error as - No exception of type VirusInfectionException can be thrown; an exception type must be a subclass of Throwable
and another error it is showing in the package level as-
The type com.sap.exception.BaseException can not be resolved. It is indirectly referenced from required.class files
Any help would be appreciated in this regard.
Thanks
Sugata B Majumder
Hi All,
I have resolved the issue, in my EJB project build path one JAR file was not imported.
The JAR file is - exception.jar. it is available inside the NWDS installation folder.
After importing the same it is resolved.
Thanks
Sugata
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.