NullPointerException (ServerResource:56 < ...)

juanvi6 years ago

Ok,
When I push the link "Mostrar Direccion" (Show Address).
```
*In the Console Network:
http://sie3.ddns.net:8082/api/server/geocode_dc=1538712418170&latitude=38.79455166666666&longitude=0.17444166666666666
*First Line:
Failed to load resource: the server responded with a status of 404 (Not Found)
http://sie3.ddns.net:8082/api/session?_dc=1538711985510

*Console:
[Violation] 'readystatechange' handler took 182ms https://cdnjs.cloudflare.com/ajax/libs/extjs/6.2.0/ext-all.js
[Violation] Forced reflow while executing JavaScript took 68ms

*Network/Headers:
-General:
Request URL: http://sie3.ddns.net:8082/api/server/geocode?_dc=1538712676554&latitude=38.818725&longitude=0.023708333333333335
Request Method: GET
Status Code: 204 No Content
Remote Address: 90.77.250.143:8082
Referrer Policy: no-referrer-when-downgrade

-Response Headers:
access-control-allow-credentials: true
access-control-allow-headers: origin, content-type, accept, authorization
access-control-allow-methods: GET, POST, PUT, DELETE, OPTIONS
access-control-allow-origin: *
Date: Fri, 05 Oct 2018 04:11:18 GMT
Server: Jetty(9.2.24.v20180105)

-Request Headers:
Accept: /
Accept-Encoding: gzip, deflate
Accept-Language: es,ca;q=0.9,en-GB;q=0.8,en;q=0.7
Connection: keep-alive
Cookie: JSESSIONID=shxftr347vyy1hdj5ksupqn1o; DHLangCookie30=%2Fweb_lang%2FSpanish.txt; ext-devices-grid=o%3Acolumns%3Da%253Ao%25253Aid%25253Ds%2525253Ah1%255Eo%25253Aid%25253Ds%2525253Ah2%255Eo%25253Aid%25253Ds%2525253Ah3%255Eo%25253Aid%25253Ds%2525253Ah4%255Eo%25253Aid%25253Ds%2525253Ah5%255Eo%25253Aid%25253Ds%2525253Ah6%255Eo%25253Aid%25253Ds%2525253Ah7%255Eo%25253Aid%25253Ds%2525253Ah8%255Eo%25253Aid%25253Ds%2525253Ah9%255Eo%25253Aid%25253Ds%2525253Ah10%5Eweight%3Dn%253A0; ext-devices-and-state-panel=o%3Aweight%3Dn%253A-10; ext-show-geofences-button=o%3Apressed%3Db%253A1; ext-show-live-routes-button=o%3Apressed%3Db%253A0; ext-device-follow-button=o%3Apressed%3Db%253A0; ext-state-grid=o%3Acolumns%3Da%253Ao%25253Aid%25253Ds%2525253Ah1%255Eo%25253Aid%25253Ds%2525253Ah2%5EstoreState%3Do%253Asorters%253Da%25253Ao%2525253Aroot%2525253Ds%252525253Adata%2525255Eproperty%2525253Ds%252525253Apriority%2525255Edirection%2525253Ds%252525253AASC%2525255Eid%2525253Ds%252525253Apriority%5Eweight%3Dn%253A10
Host: sie3.ddns.net:8082
Referer: http://sie3.ddns.net:8082/?locale=es
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36
X-Requested-With: XMLHttpRequest

-Query String Parameters:
_dc: 1538712676554
latitude: 38.818725
longitude: 0.023708333333333335

Sorry, I don't know exactly what you mean, for this reason I insert all I have

I hope this topic helps more people

Thank you a lot for your help

Best regards
Anton Tananaev6 years ago

You get "No Content" which means that reverse geocoder failed (returned empty result).

juanvi6 years ago

I check if is problem about I'm inside the network and I'm connecting by ddns address...but I tryed connect by Lan IP inside my network and have the same problem...and the same answer in developers console, just change the IP

juanvi6 years ago

Why is returned?
I need install anything in the server?
I have Windows server 2012 R2 and 4.0 traccar version

Anton Tananaev6 years ago

I feel like you completely ignored what I just said. Read my comment again. The issue is not with your server.

juanvi6 years ago

Sorry...I understund another thing...My english isn't very good

Now I upgrade the Java in my computer...

I try another explorer: Opera, Internet Explorer, Mozilla...no one works

Where do you think is the problem?

In my computer? I try antother ones and same problem

In the API geocoder? I don't know how resolve

Best regards

juanvi6 years ago

Ok, I check all differents reverse geocodes providers...

Now with this line works:

<entry key='geocoder.enable'>true</entry>
<entry key='geocoder.type'>nominatim</entry>
<entry key='geocoder.url'>https://locationiq.org/v1/reverse.php</entry>
<entry key='geocoder.key'>xxxxxxxxx</entry>

Previos register in https://locationiq.com
There give you a code and put in the xxxxxxx

The problem is: Just in a few times give the street, never the number...But in 99% of times give me just the city...Nooooooo!!!!

I continous with the experience...any idea?

juanvi6 years ago

Ok, just give me the street when the GPS device is exactly driving in a street...never if is in a house....I don't know if before it happens...

Anyway for the moment I'm happy

Any idea for be automatic the address? I need press the "Show Address" link every times

Thanks

juanvi6 years ago

With this lines, works too:

<entry key='geocoder.enable'>true</entry>
<entry key='geocoder.type'>geocodefarm</entry>

Any idea about auto link address?

Thank you a lot

I hope this messages help another people

laudarch5 years ago
<entry key='geocoder.enable'>true</entry>
<entry key='geocoder.type'>nominatim</entry>
<entry key='geocoder.url'>https://us1.locationiq.com/v1/reverse.php</entry>
<entry key='geocoder.key'>xxxxxxxxx</entry>