NullPointerException (ServerResource:56 < ...)

juanvi6 years ago

Hello,

I'm using traccar 4.0 in Windows Server 2012 R2

I have this problem: NullPointerException (ServerResource:56 < ...)

I trye change the default.xml and insert it:

<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'>xxxxxxxxxx</entry>

I don't know if I need install nominatim in my server and have keys and url for it
I don't know how install it if is necessary...

Please do you have any tutorial or steps for resolve this problem?

Best regards

Juanvi

Anton Tananaev6 years ago

You should use traccar.xml for configuration. Also, you need to restart server after changing config.

juanvi6 years ago

Hello,

I put this:

<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'>xxxxxxxxxx</entry>

But now in traccar.xml

Not works...What I need do?
Now I haven't the window with the server resource 56, but not is the address in the place

I need do another thing

Thank you a lot for your big job, your GPS program is the best

Best regards

Anton Tananaev6 years ago

What is the problem now?

juanvi6 years ago

I haven't the address...Just have a link "Show address" but never show

Thanks

Anton Tananaev6 years ago

And when you click on the link?

juanvi6 years ago

Nothing happens...

juanvi6 years ago

I have a personalized map: https://mt0.google.com/vt/lyrs=y&hl=en&x={x}&y={y}&z={z}&s=Ga

I need change the map?

Anton Tananaev6 years ago

Map doesn't have anything to do with it. Check browser console to see if there are some errors.

juanvi6 years ago

If a check the link in Chrome:

<a href="#" onclick="Ext.fireEvent('routegeocode', 153598)" id="ext-element-1165" class="" style="" data-tabindex-value="none" tabindex="-1" data-tabindex-counter="1">Mostrar Dirección</a>

Console:

ext.all.js:

[Violation] Forced reflow while executing JavaScript took <N>ms
[Violation] Forced reflow while executing JavaScript took <N>ms
[Violation] Forced reflow while executing JavaScript took <N>ms
[Violation] Forced reflow while executing JavaScript took <N>ms
[Violation] Forced reflow while executing JavaScript took <N>ms
[Violation] Forced reflow while executing JavaScript took 137ms
[Violation] Forced reflow while executing JavaScript took 106ms
[Violation] Forced reflow while executing JavaScript took 114ms
[Violation] Forced reflow while executing JavaScript took 99ms
[Violation] Forced reflow while executing JavaScript took 97ms

other:

ext-all.js:22 [Violation] 'setTimeout' handler took 211ms
ext-all.js:22 [Violation] 'click' handler took 251ms
ext-all.js:22 [Violation] 'readystatechange' handler took 268ms
ext-all.js:22 [Violation] 'click' handler took 220ms
ext-all.js:22 [Violation] 'readystatechange' handler took 220ms

Thanks

Piotr6 years ago

I'm not sure, but we can't use the Google map layer without Google Maps API

juanvi6 years ago

But in Open Street doesn't works too...

Anton Tananaev6 years ago

Check corresponding network request.

juanvi6 years ago

Sorry, I don't know what you mean...

Do you mean in traccar.xml?

<entry key='geocoder.url'>https://locationiq.org/v1/reverse.php</entry>

This url?

Thanks

Anton Tananaev6 years ago

In the browser developer console.