Select to view content in your preferred language

Invalid JSON message

1253
7
Jump to solution
02-06-2020 12:58 PM
ViníciusCosta
Occasional Contributor

Hello,

I've been trying to consume a Feature Service endpoint that was recently generated but I always get the following message at Qt Creator:

Exception at 0x7ffe0b0fa839, code: 0xe06d7363: C++ exception, flags=0x1 (execution cannot be continued) (first chance) in runtimecore!RT_UtilityTraversability_fromJSON

The map loads but not the Feature Service Layer.

With other urls the service works as intended, which makes me think that something might be wrong with my Feature Server but I have no clue what since this error message is very generic.

Here's how I'm trying to just load it, I got it straight from the example:

I do have a more complex application but right now I only want to display this feature layer to check its availability.

FeatureLayer {
                id: featureLayer
                ServiceFeatureTable {
                    id: featureTable
                    url: "featureServiceURL"
                }
            }
            onLoadStatusChanged: {
                if (loadStatus === Enums.LoadStatusLoaded) {
                    mapView.setViewpoint(viewPoint);
                }
            }
        }
        // initial viewpoint
        ViewpointCenter {
            id: viewPoint
            Point {
                x:  -42.97
                y:  21.1
                spatialReference: SpatialReference {
                    wkid: 4674
                }
            }
            targetScale: 3e7
        }

We use a hosted ArcGis Server in one of our servers.

Thanks\!

0 Kudos
1 Solution

Accepted Solutions
ViníciusCosta
Occasional Contributor

I've figured it out.

The problem is our server load, it was very unstable and hitting 100% CPU load very quickly. We're working on it to lower it's demand, there's a lot of unneeded stuff on it. 

Thank you for your help!

View solution in original post

0 Kudos
7 Replies
LucasDanzinger
Esri Frequent Contributor

How is your feature service URL formatted? In the above snippet you have a text string for your URL property. Make sure you specify the layer in the service URL

For example, you should use http://sampleserver6.arcgisonline.com/arcgis/rest/services/DamageAssessment/FeatureServer/0 and not http://sampleserver6.arcgisonline.com/arcgis/rest/services/DamageAssessment/FeatureServer

0 Kudos
ViníciusCosta
Occasional Contributor

I just didn't want to post my actual url since it's a server you can't access. But here's how it's formatted:

https://192.168.0.204/server/rest/services/gislmdc_uff_geotecnia/gislmdc_uff_geotecnia/FeatureServer...

0 Kudos
LucasDanzinger
Esri Frequent Contributor

That's odd, this should work. Does the rest of your code look similar to this code sample? arcgis-runtime-samples-qt/FeatureLayer_FeatureService.qml at master · Esri/arcgis-runtime-samples-qt... 

Is your service secured?

0 Kudos
ViníciusCosta
Occasional Contributor

Right now it's the same code, I've only changed the url and Viewpoint parameters.

I don't know if the service itself is secured but I can acess it's url just fine and see it on the online map.

0 Kudos
ViníciusCosta
Occasional Contributor

A http version of the service was published and now we're getting an additional error: 

Exception at 0x7ffe0b0fa839, code: 0xe06d7363: C++ exception, flags=0x1 (execution cannot be continued) (first chance) in runtimecore!ESRI_CopyProtect_GetInstallDir

Lucas Danzinger‌, do you have any idea of what this means? 

0 Kudos
LucasDanzinger
Esri Frequent Contributor

Not sure what is going on. Are you able to share your service (or a similar test service) with me? You can direct message me.

0 Kudos
ViníciusCosta
Occasional Contributor

I've figured it out.

The problem is our server load, it was very unstable and hitting 100% CPU load very quickly. We're working on it to lower it's demand, there's a lot of unneeded stuff on it. 

Thank you for your help!

0 Kudos