You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What I try:
We have some Model classes for Measurements, that we handle in an repository.
When I try to export the repository I get: Caused by: java.lang.ClassNotFoundException: com.playground.exportTest.model.Measurement+id
java -classpath .\build\libs\nitride-db-test-1.0-SNAPSHOT.jar com.playground.exportTest.Application
Exception in thread "main" org.dizitart.no2.exceptions.NitriteIOException: NO2.2011: error while exporting data
at org.dizitart.no2.tool.Exporter.exportTo(Exporter.java:147)
at org.dizitart.no2.tool.Exporter.exportTo(Exporter.java:123)
at org.dizitart.no2.tool.Exporter.exportTo(Exporter.java:109)
at org.dizitart.no2.tool.Exporter.exportTo(Exporter.java:86)
at com.playground.exportTest.Application.main(Application.java:27)
Caused by: java.lang.ClassNotFoundException: com.playground.exportTest.model.Measurement+id
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:582)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:190)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:499)
at java.base/java.lang.Class.forName0(Native Method)
at java.base/java.lang.Class.forName(Class.java:291)
at org.dizitart.no2.tool.NitriteJsonExporter.exportData(NitriteJsonExporter.java:70)
at org.dizitart.no2.tool.Exporter.exportTo(Exporter.java:145)
... 4 more
Maybe I don't understand something wrong on how I have to configure classpath
I did some googlling and tried several things, but I wasn't able to make it work :(
So any pointers in the right direction would be highly appreciated.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I don't understand how to get export to work, when using Model classes.
To reproduce my issue i created a minimal example: https://github.com/Nalaxon/nitride-db-test
What I try:
We have some Model classes for
Measurements
, that we handle in an repository.When I try to export the repository I get: Caused by: java.lang.ClassNotFoundException: com.playground.exportTest.model.Measurement+id
Maybe I don't understand something wrong on how I have to configure classpath
I did some googlling and tried several things, but I wasn't able to make it work :(
So any pointers in the right direction would be highly appreciated.
Thank you very much in advance
Beta Was this translation helpful? Give feedback.
All reactions