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

Cannot serialize value of type class org.locationtech.spatial4j.shape.jts.JtsPoint #1843

Open
pawelmagnu opened this issue Nov 28, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@pawelmagnu
Copy link

ArcadeDB Version:

ArcadeDB Console v.24.11.2-SNAPSHOT

OS and JDK Version:

<OS and JDK brand and version here. You can find it in the 2nd line of the server output>
docker on wsl2 on Windows 10

Expected behavior

create a record of point type

Actual behavior

ERROR:
java.lang.IllegalArgumentException: Cannot serialize value 'Pt(x=30.0,y=30.0)' of type class org.locationtech.spatial4j.shape.jts.JtsPoint
at com.arcadedb.serializer.BinaryTypes.getTypeFromValue(BinaryTypes.java:156)
at com.arcadedb.serializer.BinarySerializer.serializeValue(BinarySerializer.java:425)
at com.arcadedb.serializer.BinarySerializer.serializeProperties(BinarySerializer.java:775)
at com.arcadedb.serializer.BinarySerializer.serializeDocument(BinarySerializer.java:110)
at com.arcadedb.serializer.BinarySerializer.serialize(BinarySerializer.java:80)
at com.arcadedb.engine.LocalBucket.createRecordInternal(LocalBucket.java:577)
at com.arcadedb.engine.LocalBucket.createRecord(LocalBucket.java:119)
at com.arcadedb.database.LocalDatabase.createRecordNoLock(LocalDatabase.java:843)
at com.arcadedb.database.LocalDatabase.lambda$createRecord$17(LocalDatabase.java:794)
at com.arcadedb.database.LocalDatabase.executeInReadLock(LocalDatabase.java:1414)
at com.arcadedb.database.LocalDatabase.createRecord(LocalDatabase.java:793)
at com.arcadedb.database.MutableDocument.save(MutableDocument.java:299)
at com.arcadedb.query.sql.executor.SaveElementStep$1.next(SaveElementStep.java:59)
at com.arcadedb.query.sql.executor.InsertExecutionPlan.executeInternal(InsertExecutionPlan.java:67)
at com.arcadedb.query.sql.parser.InsertStatement.execute(InsertStatement.java:111)
at com.arcadedb.query.sql.parser.Statement.execute(Statement.java:65)
at com.arcadedb.query.sql.SQLQueryEngine.command(SQLQueryEngine.java:116)
at com.arcadedb.database.LocalDatabase.command(LocalDatabase.java:1326)
at com.arcadedb.console.Console.executeSQL(Console.java:602)
at com.arcadedb.console.Console.execute(Console.java:273)
at com.arcadedb.console.Console.parse(Console.java:742)
at com.arcadedb.console.Console.interactiveMode(Console.java:131)
at com.arcadedb.console.Console.execute(Console.java:185)
at com.arcadedb.console.Console.main(Console.java:148)

Steps to reproduce

on the default
create document type point;
insert into point set geom=(select point(30,30) as point);

@robfrank robfrank self-assigned this Nov 28, 2024
@robfrank robfrank added the bug Something isn't working label Nov 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants