- This topic has 6 replies, 2 voices, and was last updated 13 years, 10 months ago by
jkennedy.
-
AuthorPosts
-
PeterMemberHi,
I cannot scaffold an from a database any longer for some reason. I keep getting the following error:
java.lang.RuntimeException: Error invoking function: initializeCrud with parameters: [Ljava.lang.Object;@15e56da at org.skyway.core.generate.snippet.function.FunctionInvoker.invoke(FunctionInvoker.java:102) at org.skyway.core.generate.snippet.function.FunctionSnippetExpression.evaluate(FunctionSnippetExpression.java:26) at org.skyway.core.generate.snippet.SnippetRegistry.evaluate(SnippetRegistry.java:88) at org.skyway.core.generate.snippet.SnippetRegistry.getObjectAttribute(SnippetRegistry.java:99) at org.skyway.core.generate.generator.invoke.InvokeSnippetGenerator.generate(InvokeSnippetGenerator.java:24) at org.skyway.core.generate.generator.DescendantGenerator.generateChild(DescendantGenerator.java:28) at org.skyway.core.generate.generator.DescendantGenerator.generateChildren(DescendantGenerator.java:21) at org.skyway.core.generate.generator.DescendantGenerator.generate(DescendantGenerator.java:14) at org.skyway.core.generate.generator.control.ResourceGenerator.generate(ResourceGenerator.java:19) at org.skyway.core.generate.execute.GenerationJob.generate(GenerationJob.java:115) at org.skyway.core.generate.execute.GenerationJob$1.run(GenerationJob.java:59) at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1975) at org.skyway.core.generate.execute.GenerationJob.run(GenerationJob.java:55) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) Caused by: java.lang.RuntimeException: Unable to load data type from table(s): [org.skyway.integration.data.persistence.provider.datatype.TableDataTypeInput@18e1cc5] at org.skyway.integration.data.persistence.provider.datatype.TableDataTypeInputProvider.generateDataTypes(TableDataTypeInputProvider.java:222) at org.skyway.integration.data.persistence.provider.datatype.TableDataTypeInputProvider.getDataTypes(TableDataTypeInputProvider.java:73) at com.skyway.scaffolding.crud.datatype.FilteredDataTypeInputProvider.getDataTypes(FilteredDataTypeInputProvider.java:33) at com.skyway.scaffolding.crud.util.ContextAwareCrudFunctions.getDataTypes(ContextAwareCrudFunctions.java:181) at com.skyway.scaffolding.crud.util.ContextAwareCrudFunctions.initializeCrud(ContextAwareCrudFunctions.java:55) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.skyway.core.generate.snippet.function.FunctionInvoker.invoke(FunctionInvoker.java:94) ... 13 more Caused by: java.lang.NullPointerException at org.skyway.integration.data.persistence.importer.hibernate.HibernateModelGenerator.getMetaDataDialect(HibernateModelGenerator.java:388) at org.skyway.integration.data.persistence.importer.hibernate.HibernateModelGenerator.getHibernateProperties(HibernateModelGenerator.java:355) at org.skyway.integration.data.persistence.importer.hibernate.HibernateModelGenerator.createJDBCConfiguration(HibernateModelGenerator.java:210) at org.skyway.integration.data.persistence.importer.hibernate.HibernateModelGenerator.generateModel(HibernateModelGenerator.java:96) at org.skyway.integration.data.persistence.provider.datatype.TableDataTypeInputProvider.generateDataTypes(TableDataTypeInputProvider.java:208) ... 22 more
I am using MySQL Server 5.5.7
Connector/J 5.1.15I create a new project, enable spring dsl and then scaffold a one field table with varchar datatype. Very very strange.
I have tried so many things including deleting .m2 dir. using different dialects, and even different databases! The same error occurs with postgresql 8.4 and 9!
Any ideas will be much appreciated.
PeterMemberSame problem also with MyEclipse Derby :s
Steps again:
1. Installed fresh ME4S 9
2. Created new Project
3. Enabled Spring DSL
4. Scaffold from DB(uncheck web layer)Generation job failed! :s
jkennedyMemberPeter,
That is very strange.I want to verify that I didn’t cause this issue for you by having you utilize the extension project I had linked on our other thread together. Can you confirm that you have not added that project to you workspace or configured any other project extension, etc.
One other thing to look at here, we have sometimes seen an issue in the way that the RDBMS meta data is returned if the SQL Connection is configured in a certain way.
I believe at the top of the JDBC connection screen, where you put in the connect string, user name, pwd, etc, that there is a “database” entry field with a default name in it.
can you confirm that you have this set to your database name.
Also if you could include your other connection information for the MySQL connection and Derby Connection that would be great (sans passwords)Thanks,
Jack
PeterMemberHi Jack,
No the extension project is still sitting in my downloads folder has nothing to do with what is happening now.
If by JDBC connection screen you mean the Database Connection Driver screen accessed through the database explorer perspective >> DB browser view, I dont see any “database” entry other than the connection url.
The derby connection information is the default that comes with the installation. Perhaps if we get it to work with derby the other databases will work also.
thanks
Peter
jkennedyMemberPeter,
Do you know if you get the same behavior if you leave the web layer checked?If you don’t have any data you need to keep in your Derby database that is modified or added, can you go to Workspace / MyEclipse / Servers / Integerated Sandbox / Configure MyEclipse Derby and restore your Derby DB and the Derby DB driver using the options there to restore.
Then run through scaffolding using one table and scaffolding all layers to verify that this works.
Let me know if taking these steps gets us back to a working state with Derby, and then we can move on from there.
Thanks,
Jack
PeterMemberHi Jack,
Thanks for the quick reply! I think I my have uncovered something…
It has nothing to do with the databases. When I go through the scaffolding wizard and uncheck web layer (I do this because I have a large data model and the generation takes a painfully long time with web layer checked. I will not be working on the web layer for a while so I uncheck it and will generate it later.), and click Finish. This causes the generation job failed error. Now if I DONT click finish straight away and go through the wizard till the end(which is just the confirmation step), it works.
jkennedyMemberPeter,
Thanks for determining the steps to reproduce.I will log this as a defect.
Thanks,
Jack -
AuthorPosts