[mapguide-users] How to troubleshoot "The specified class was not found"?

Hans Milling hm at geograf.dk
Fri Sep 28 06:33:44 PDT 2012


Hi all

How do I troubleshoot the error/exception “The specified class was not
found”?
The error occurs when I try to query the map e.g. for selection or tooltip.
I am using Maestro 4 API (latest) and KingOracle provider. The error does
not occur with OGR provider and MapInfo files.
Here is an example of code that breakes when querying for a tool tip:
        IMappingService mapSvc =
(IMappingService)con.GetService((int)ServiceType.Mapping);
        return mapSvc.QueryMapFeatures(runtimemapname, wkt, false,
QueryMapFeaturesLayerAttributes.OnlyVisible, true);

I am using LocalNativeConnection, but how do I troubleshoot what is wrong
with my runtime map? How can I get to know what “class” it expects that is
not there?

The error in the MapGuide log is this:
<2012-09-28T15:22:09> 	3204			Administrator
 Error: The specified class was not found.
 StackTrace:
  - MgRenderingServiceHandler.ProcessOperation() line 83 file
c:\builds\mg22x64\mgdev\server\src\services\rendering\RenderingServiceHandler.cpp
  - MgOpQueryFeatures.Execute() line 125 file
c:\builds\mg22x64\mgdev\server\src\services\rendering\OpQueryFeatures.cpp
  - MgServerRenderingService.QueryFeatures() line 718 file
c:\builds\mg22x64\mgdev\server\src\services\rendering\ServerRenderingService.cpp
  - MgServerRenderingService.RenderForSelection() line 1452 file
c:\builds\mg22x64\mgdev\server\src\services\rendering\ServerRenderingService.cpp
  - MgServerDescribeSchema.GetClassDefinition() line 970 file
c:\builds\mg22x64\mgdev\server\src\services\feature\ServerDescribeSchema.cpp	

In the access.log:
<2012-09-28T14:51:08> 	6408			Administrator
QueryFeatures.1.0.0:7(Session:26973744-096b-11e2-8000-08002700f46b_en_7F0000010AFC0AFB0AFA//Kort
ENV El og Fiber.Map,MgStringCollection,MgGeometry,4,,-1,1) Failure

Running mgserver with the cpl_debug=on only shows the same short error
message: "The specified class was not found."

Best regards
  Hans Milling...




--
View this message in context: http://osgeo-org.1560.n6.nabble.com/How-to-troubleshoot-The-specified-class-was-not-found-tp5005219.html
Sent from the MapGuide Users mailing list archive at Nabble.com.


More information about the mapguide-users mailing list