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

[EDM] NPE when creating schema with Report entity #3740

Closed
iliyan-velichkov opened this issue Apr 5, 2024 · 1 comment
Closed

[EDM] NPE when creating schema with Report entity #3740

iliyan-velichkov opened this issue Apr 5, 2024 · 1 comment

Comments

@iliyan-velichkov
Copy link
Contributor

Even If I manually fix the generated schema JSON which is described here, the schema cannot be created due to

2024-04-05 14:53:39.219 [ERROR] [pool-2-thread-1] [background] o.e.d.c.i.s.SynchronizationProcessor - Cannot invoke "com.google.gson.JsonElement.getAsString()" because the return value of "com.google.gson.JsonObject.get(String)" is null
java.lang.NullPointerException: Cannot invoke "com.google.gson.JsonElement.getAsString()" because the return value of "com.google.gson.JsonObject.get(String)" is null
	at org.eclipse.dirigible.components.data.structures.synchronizer.SchemasSynchronizer.parseSchema(SchemasSynchronizer.java:239) ~[dirigible-components-data-structures-11.0.0-SNAPSHOT.jar!/:na]
	at org.eclipse.dirigible.components.data.structures.synchronizer.SchemasSynchronizer.parse(SchemasSynchronizer.java:130) ~[dirigible-components-data-structures-11.0.0-SNAPSHOT.jar!/:na]
	at org.eclipse.dirigible.components.initializers.synchronizer.SynchronizationProcessor.parseDefinitions(SynchronizationProcessor.java:492) ~[dirigible-components-core-initializers-11.0.0-SNAPSHOT.jar!/:na]
	at org.eclipse.dirigible.components.initializers.synchronizer.SynchronizationProcessor.processSynchronizers(SynchronizationProcessor.java:192) ~[dirigible-components-core-initializers-11.0.0-SNAPSHOT.jar!/:na]
	at org.eclipse.dirigible.components.initializers.synchronizer.SynchronizationJobService.executeSynchronizationJob(SynchronizationJobService.java:53) ~[dirigible-components-core-initializers-11.0.0-SNAPSHOT.jar!/:na]
	at org.eclipse.dirigible.components.initializers.synchronizer.SynchronizationJob.lambda$execute$0(SynchronizationJob.java:117) ~[dirigible-components-core-initializers-11.0.0-SNAPSHOT.jar!/:na]
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:572) ~[na:na]
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317) ~[na:na]
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) ~[na:na]
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) ~[na:na]
	at java.base/java.lang.Thread.run(Thread.java:1583) ~[na:na]
2024-04-05 14:53:39.252 [ERROR] [pool-2-thread-1] [background] o.e.d.c.i.s.SynchronizationProcessor - Error occured during synchronization: [Cannot invoke "com.google.gson.JsonElement.getAsString()" because the return value of "com.google.gson.JsonObject.get(String)" is null]

Exception line here
It looks like referencedTable is null but this is not expected.

@ThuF ThuF self-assigned this Apr 5, 2024
@ThuF ThuF changed the title NPE when creating schema with Report entity [EDM] NPE when creating schema with Report entity Apr 5, 2024
@ThuF ThuF added this to the 11.0.0 milestone Apr 5, 2024
@ThuF
Copy link
Contributor

ThuF commented Apr 23, 2024

It seems that there were some issues with the model as commented here: #3739 (comment)
Once fixed, the generation should be executed successfully without exceptions.

@ThuF ThuF closed this as completed Apr 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 11.x
Development

No branches or pull requests

2 participants