POST
|
I actually kinda did, I found the cause literally yesterday but I am still looking for solutions. turns out in my case it's due to huge HTTP POST content size. map server has its max post limit i think it's default to 10Mb, it discarded my webmapasjson input when i tried to post it, so the API return error. I change maxPostSize to 0 to disable limitation for post size in C:\Program Files\ArcGIS\Server\framework\runtime\tomcat\conf\server.xml. But now I am getting different error "Internal Server Error. Error handling service request : Cannot write the request to the server:" and I am still looking into it. Feel free to comeback and share if you find anything in the future.
... View more
02-01-2017
06:48 PM
|
0
|
1
|
955
|
POST
|
This probably not the best solution, but I guess it's a start. PictureFillSymbol requires a picture as input but your input is rgb from DB right? Then the most obvious conclusion is to do something like render your own image with the rgb in JS or server level. Again, there are probably a lot of much better way than this, but you can for example prepare a few different pattern of image (2-color-mix, 3-color-mix etc) and then change the color on the fly somehow, I'm sure you can figure out the rest. png - Change the color of an image in a website - Graphic Design Stack Exchange
... View more
02-01-2017
01:06 AM
|
1
|
0
|
721
|
POST
|
here's a suggestion, have you tried to use a picture fill symbol for your polygon? You can make a half red/half blue picture and use that as your symbol.
... View more
01-31-2017
06:38 PM
|
0
|
0
|
721
|
POST
|
I am using arcgis jsapi v3.10, and esri/dijit/Print for my map printing. Version 10.2.0 for arcgis server. I am encountering an very weird bug where the browser return: SyntaxError: Unexpected token <
at Object.b.fromJson (init.js:231)
at Object.json (init.js:188)
at t (init.js:193)
at c (init.js:79)
at d (init.js:79)
at b.Deferred.resolve.callback (init.js:80)
at init.js:196
at k (init.js:200)
at r (init.js:200)
at f.resolve (init.js:202) I've done multiple test while eliminating as much variables as possible. I print nothing except a point feature layer with simple maker symbol. As I slowly increases the feature count, I end up seeing the syntax error when the count reaches ~8200. I've also tried to use point from other layers just in case there are some data corruption in certain layer, but the results are similar. One additional piece of information is that the 'print-start' event has been triggered and fully completed, whereas the 'print-complete' event never triggers due to the js error. The print map function can do everything correctly including legends, scale, multiple layer, basemap e.t.c. when the feature count is low. Has anyone encounter similar issue? I suspect there might be some sort of feature count limit, but I couldn't find any related ESRI documentation so far. EDIT: Ok I've done some further digging. I basically add a log line into init.js to see what is it that triggers the syntax error. turns out that function expects a JSON response and I got a html page instead. The html page is a response from the print API and it says something like "error : WebMapAsJSON cannot be empty". I immediately check the outgoing request and verified that the WebMapAsJSON field is populated correctly. After more research online, it seems like that map server has its own maximum post content size limit and I've exceeded it. I've followed some instructions and change maxPostSize=0 to disable limitation for post size in C:\Program Files\ArcGIS\Server\framework\runtime\tomcat\conf\server.xml. However, another error pop-up after I retry the test case with the new settings. This time it is in the server error log "Internal Server Error. Error handling service request : Cannot write the request to the server:" Is there some other settings I am still missing?
... View more
01-31-2017
06:22 PM
|
0
|
0
|
1149
|
POST
|
I encounter an error that when I tries to print my map using the general print service, Utilities/PrintingTools/GPServer/Export Web Map Task. Everything is working as expected when I attempt to print a map with a few layers, but when I tries to print every single layer at once, an error "ERROR 000735: Web Map as JSON: Value is required Value is empty" was returned by the service. The error doesn't seems to be related to various "timeout" issue as the response from the server were immediately returned right after I send the request. I've checked the actual request and the web map as json field is properly filled, and I have check that i could print every layer individually, or with a few other layers. The only thing that comes to mind is the size of the request, with content length 15032970. does anyone have any clue what might be the cause? some sort of server request size limit? Request URL: http://xxxxxxx:6080/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export%20Web%20Map%20Task/execute Request Method: POST Status Code: 200 OK Remote Address: xxxxxxxxx:6080 Response Headersview source Access-Control-Allow-Origin: http://localhost:8080 Cache-Control: max-age=0,must-revalidate Content-Type: text/html;charset=utf-8 Date: xxxxxxxxxxxxxxxx Server: Transfer-Encoding: chunked X-Frame-Options: SAMEORIGIN X-XSS-Protection: 1; mode=block Request Headersview source Accept: */* Accept-Encoding: gzip, deflate Accept-Language: xxxxxxxxxxxx Connection: keep-alive Content-Length: 15032970 Content-Type: application/x-www-form-urlencoded Host: xxxxxxxxxx Origin: http://localhost:8080 Referer: http://localhost:8080/<--mypage---> User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36
... View more
09-09-2016
03:22 AM
|
0
|
3
|
2245
|
Title | Kudos | Posted |
---|---|---|
1 | 02-01-2017 01:06 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|