Hexagon Geospatial
MENU

Developer Discussions

Discuss topics with other Hexagon Geospatial Power Portfolio developers and experts to get the most out of our products.
Showing results for 
Search instead for 
Do you mean 
Reply
Regular Contributor
Posts: 234
Registered: ‎05-01-2016

The server threw an exception. (Exception from HRESULT: 0x80010 - SDK with webmap publisher intance

I am working with a Webmap Publisher Instance and

 

I have code to run a query that displays the selected  features with a specified symbology and also shows the data view.

All goes well until I click on the magnifier glass in the data view to zoom to a particular  feature,  I get the following message:

 

Y: 2125648.47 Subscriber's Base Map xThe server threw an exception. (Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT))

 

My code is all similar to below:

 

$GP.crs.setCurrent("EPSG:3436", function () {
$GP.queries.add({
queryName: queryName2,
featureClassId: "936DD2EAB10DB05A6A82309F773CB1DC4F115531|RoadCenterline",
url: "http://blahblahblah/MapService.svc",
applicationId: "JD2",
definitionName: "MapPublisher",
style: style2,
addToLegend: true,
filters: [
{
operator: "like",
operands: ["FullRoadName", "*"+roadname+"*"]
}],
},
function (result) {
$GP.queries.find({
analysisId: result.analysisId,
}, function (result2) {
result2.analysis.addToDataView();
});
});
});
}

 

hbm
Staff
Posts: 287
Registered: ‎11-05-2015

Re: The server threw an exception. (Exception from HRESULT: 0x80010 - SDK with webmap publisher int

Have you tried constructing your filter literal so that it is enclosed in apostrophes? Like so:

"'*"+roadname+"*'"

If that doesn't help, then a DEBUG level log file from the WMPS might provide additional insight here.

Regular Contributor
Posts: 234
Registered: ‎05-01-2016

Re: The server threw an exception. (Exception from HRESULT: 0x80010 - SDK with webmap publisher int

[ Edited ]

Adding apostrophes cause an error with the * and make no difference without the * ie  Parcel, "'"+parcelid + "'"

Should the query operator be "=" or "like"?

The located features from the query display on the map with the proper symbology but individual features can not be zoomed to

The "Properties" icon works fine as does the "Add to Clipboard" but the magnifier calls an exception for every query.

The log files look like below (i don't see anything for the exception).  In order to zoom, does the feature already need to be displayed (it is set to display at a particular scale range.

 

GeoMedia Web Map Version 16.00.0100.00009

2017-04-19 10:25:08 (0.000009) - Process ID 7536
2017-04-19 10:25:08 (0.000170) - Q:0 T:0
2017-04-19 10:25:08 (0.000251) - calling check connections
2017-04-19 10:25:08 (0.000298) - number of library connections to check 2
2017-04-19 10:25:08 (0.000357) - Try to get WPSettings.UpdateSequence for WFS_JD_2LibraryConnection
2017-04-19 10:25:08 (0.000415) - check query select UpdateSequence from WPSettings
2017-04-19 10:25:08 (0.002108) - Query result: 00000000
2017-04-19 10:25:08 (0.002230) - Update sequence value: 11
2017-04-19 10:25:08 (0.002601) - Try to get WPSettings.UpdateSequence for JD2LibraryConnection
2017-04-19 10:25:08 (0.002650) - check query select UpdateSequence from WPSettings
2017-04-19 10:25:08 (0.004004) - Query result: 00000000
2017-04-19 10:25:08 (0.004072) - Update sequence value: 18
2017-04-19 10:25:08 (0.029690) - Closing OPs
2017-04-19 10:25:08 (0.037266) - OPs closed
2017-04-19 10:25:08 (0.037316) - Logo Font Size in Clear 0.000000
2017-04-19 10:25:08 (0.070705) - Enter CGWMMapServer:Smiley FrustratedetCoordinateSystem C:\Program Files\Common Files\Hexagon\Services\Instances\JD1\CSF\EPSG3436.csf
2017-04-19 10:25:08 (0.070773) - Setting CS
2017-04-19 10:25:08 (0.076559) - Exit CGWMMapServer:Smiley FrustratedetCoordinateSystem 0(0)

hbm
Staff
Posts: 287
Registered: ‎11-05-2015

Re: The server threw an exception. (Exception from HRESULT: 0x80010 - SDK with webmap publisher int

Unfortunately, the detailed WebMap GWMLog will not contain the information we are looking for.

You need to enable DEBUG level logging in the log4net section of your WMPS' web.config, redo your workflow and then the log file should be generated in the WMPS' physical location's log subfolder.

Highlighted
Regular Contributor
Posts: 234
Registered: ‎05-01-2016

Re: The server threw an exception. (Exception from HRESULT: 0x80010 - SDK with webmap publisher int

[ Edited ]

Interesting...I am getting this:

 

System.Data.OleDb.OleDbException (0x80004005): Unrecognized database format 'C:\WebMap Publisher Data\JD1.mdb'.
at System.Data.OleDb.OleDbConnectionInternal..ctor(OleDbConnectionString constr, OleDbConnection connection)
at System.Data.OleDb.OleDbConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningObject)
at

 

It is referring to my only datasource - the metadatafile created by Publisher Server Source Configuration Utility for the wmps instance!

All the maps display fine and zoom, etc.

 

Is there any way to determine what it doesn't like about it.  It seems I often have problesm if i try to add another feature to warehouse or update a feature, etc. and  i get that Unrecognized database format when i try to write out my workspace to the metafile.

 

Copied file to machine where i could look at it in Access and Access said it was in an "inconsistant state" and would repair it.

Copied repaired version back to original machine to replace old version and still getting an exception with this message in log

file:

 

2017-04-22 15:44:58,235 [2685] ERROR Error while getting features - {Intergraph.WebSolutions.Core.MapPublisherConnector.Service.FeaturesProvider}
System.Runtime.InteropServices.COMException (0x80010105): The server threw an exception. (Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT))
at Intergraph.GeoMedia.GeoMathSvc._GeoMathService.StrokeGeometry(Object InputGeometry, Object& StrokedGeometry)
at Intergraph.WebSolutions.Core.MapPublisherConnector.Service.GeometryUtils.FromSingleGeometry(GWMMapServerHelper mapServer, Object geometry, String destinationCrsId, GeoMathService geoMathService)
at Intergraph.WebSolutions.Core.MapPublisherConnector.Service.GeometryUtils.FromGeometry(GWMMapServerHelper mapServer, Object geometry, String destinationCrsId, GeoMathService

 

Do you need immediate support?
Please submit a Ticket through our
Development Ticket Portal.