Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with traccar version 4.6 #6

Open
hubecker opened this issue Sep 4, 2019 · 2 comments
Open

Error with traccar version 4.6 #6

hubecker opened this issue Sep 4, 2019 · 2 comments

Comments

@hubecker
Copy link

hubecker commented Sep 4, 2019

Hi,
With the new traccar version 4.6, i get the following error:

2019-09-04 15:36:58 INFO: trying to connect to mqtt : tcp://localhost:1884 2019-09-04 15:36:59 ERROR: org.traccar.database.DeviceManager.lookupAttributeString(JLjava/lang/String;Ljava/lang/String;Z)Ljava/lang/String; - NoSuchMethodError (... < BaseDataHandler:27 < ... < *:29 < ... < ExtendedObjectDecoder:64 < ... < WrapperContext:102 < ...) 2
there is a hint in:
https://www.traccar.org/forums/topic/traccar-server-custom-jar-file-error/
but wasn't able to solve the problem.

Regards

Hubert

@ivanfmartinez
Copy link
Owner

traccar 4.6 has changed the methods to get the Device attributes.

traccar/traccar@f4bef00#diff-fdd198358ee7fb86e41556207acec3c7

I did not have time to test now, neither have an 4.6 instance, but I think you can change the calls to lookupAttributeString in

https://github.com/ivanfmartinez/ivanfm-traccar-mqtt/blob/3fc18283cf15b0f0787fdeddd2248dda3e7eb71e/src/main/java/com/ivanfm/traccar/mqtt/ProcessPosition.java

passing "true" for this new lookupServer attribute making the behaviour like before.

And submit a Pull Request with the changes.

@jsponz
Copy link

jsponz commented Dec 15, 2020

Any update on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants