Archived
This forum has been archived. Please start a new discussion on GitHub.
Problem with User defined exception
Application deployed to IceGrid.
My Ice version 3.6.1
Can not get user defined exception, every time get Ice.UnknownUserException on java client part.
My ice description:
C++ implementation of raiseExceptoin :
.......................
P.S. Ice Examples with user defined exceptions works fine.
My Ice version 3.6.1
Can not get user defined exception, every time get Ice.UnknownUserException on java client part.
My ice description:
[FONT=courier new][["java:package:ru.blablabla.frsdk"]] module FaceProcessorModule { .................................. exception FaceProcessorException { string reason = "Unknown Exception"; }; ............................ interface FaceProcessor { ............................ // Just for test void raiseException(string pMessage) throws FaceProcessorException; }; };[/FONT]
C++ implementation of raiseExceptoin :
.......................
void FaceProcessorModule::FaceProcessorI::raiseExceptio n(const ::std::string& pMessage, const Ice::Current&) { std::cout << "FaceProcessorModule: FaceProcessorI: throw an Exception" << std::endl; FaceProcessorException fpe; fpe.reason = pMessage; throw fpe; } ............................
P.S. Ice Examples with user defined exceptions works fine.
0
Comments
-
Hi,
Did you set the Ice.Package.FaceProcessorModule or Ice.Default.Package property to [FONT=courier new, courier, monospace]ru.blablabla.frsdk[/FONT][FONT=arial, helvetica, sans-serif] in the configuration of your Java client? If not, this is most likely the issue, the Java runtime can't find the user exception Java class to instantiate. See [/FONT]https://doc.zeroc.com/display/Ice36/Customizing+the+Java+Mapping#CustomizingtheJavaMapping-JavaPackages for more information.
Cheers,
Benoit.
0