Error integrating firebase with traccar 5.5 com.google.api.client.json.jackson2.

GnenoxPS2 years ago

Hi, I've been trying to integrate traccar 5.5 with firebase for days, I think I've done all the steps correctly and I still get this error.

com.google.api.client.json.jackson2.JacksonFactory - ClassNotFoundException (... < NotificatorFirebase:61 < <gener:-1 < *:-1 < ... < NotificatorManager:73 < ...)

That could be happening ?

Anton Tananaev2 years ago

Are you using the official release?

GnenoxPS2 years ago

Thanks Anton, how can I check it?

Anton Tananaev2 years ago

Well, did you download an installer from this website?

GnenoxPS2 years ago

Traccar source code,
from https://www.traccar.org/source-code/

Anton Tananaev2 years ago

So you're using the source code? Latest master? That would explain the issue.

GnenoxPS2 years ago

I am using the master version on an Ubuntu 22 server

Anton Tananaev2 years ago

You probably shouldn't use master branch if you're asking this question. Use the stable release instead.

GnenoxPS2 years ago

sorry Anton I am not very expert in the matter, I just followed the steps of
https://www.traccar.org/build/

git clone --recursive https://github.com/traccar/traccar.git
Anton Tananaev2 years ago

OK, so you don't have any knowledge of Java or git? What are you trying to do?

GnenoxPS2 years ago

I have worked few things with Java and Git.
Alright then, reviewing...
1- I install the stable version.
2- I configure my firebase account.
3- I do the test again.

i have the same problem with 5.6 Version
i the 5.5 Version i have FirebaseMessagingException (... < NotificatorFirebase:94 < NotificationResource:96 < ...)
and I thought with 5.6 it would be solved

Anton Tananaev2 years ago

What is the error exactly?

in 5.6 i have the

com.google.api.client.json.jackson2.JacksonFactory - ClassNotFoundException (... < NotificatorFirebase:61 < <gener:-1 < *:-1 < ... < NotificatorManager:73 < ...)

in 5.5 i have

SenderId mismatch - FirebaseMessagingException (... < NotificatorFirebase:94 < NotificationResource:96 < ...)
Anton Tananaev2 years ago

OK, so it's NOT the same problem. The error is completely different. The 5.6 error seems to indicate that you didn't install the official version.