Add Device on 3.15

Emmanuel Ossai8 years ago

Hi good day!
After typing a name and identifier on the gui, the server returns "INVALID PARAMETER OR CONSTRAINT VIOLATION" with the following:

Unrecognized field "disabled" (class org.traccar.model.Device), not marked as ignorable (13 known properties: "contact", "positionId", "model", "name", "uniqueId", "phone", "status", "attributes", "geofenceIds", "groupId", "id", "category", "lastUpdate"])
 at [Source: org.glassfish.jersey.message.internal.ReaderInterceptorExecutor$UnCloseableInputStream@20864f23; line: 1, column: 156] (through reference chain: org.traccar.model.Device["disabled"])

Please how do I fix this issue. I'm using mysql

Anton Tananaev8 years ago

You are not using official Traccar release. That's the problem.

Emmanuel Ossai8 years ago

OK, please how do I get the Official Traccar release?

Anton Tananaev8 years ago

Are you serious? You click Download button on the top of this page.

Emmanuel Ossai8 years ago

Ooh! Am sorry, I tried it and it works fine, but I was actually trying to utilize the source code so I can edit some stuff

Anton Tananaev8 years ago

Then I would recommend to carefully read this page:

https://www.traccar.org/source-code/

Emmanuel Ossai8 years ago

Hey Anton! Has anyone told you, you're splendid? Well, Yes you're. I can now add devices.

Thank you

Mark7 years ago

Hello Anton..and others - thanks for the great help on this forum. I am also experiencing the "INVALID PARAMETER OR CONSTRAINT VIOLATION".

I am using ver 4.3
I am unsure what the difference is by logging into my username/pass or admin/admin. They both give me the same error when trying to re-add a device.
logging in with my user/pass shows 1 device in the list. logging in with admin/admin shows 3 devices in the list. in either, I cannot re-add one I removed.

All currently added devices show offline.

What do I need to do to remove history data so I can re-add devices I deleted?

Thanks much
Mark