- This topic has 2 replies, 2 voices, and was last updated 13 years, 8 months ago by
jkennedy.
-
AuthorPosts
-
bapurvisMemberHi
I am new to MyEclipse Spring and am just starting my first project. I am attempting to use the Scaffold Spring Crud to create a Flex application. I am pretty much following the tutorial at http://www.myeclipseide.com/documentation/quickstarts/ME4STutorialScaffoldingFlex/scaffoldingflexarticle.html.
The only variation I have is I am connecting to my own SQL Server database and selecting my own tables.
I start the generation and get a dialog “Generation job failed”
The error log shows
!ENTRY org.skyway.core.generate 4 0 2011-06-04 08:55:28.640
!MESSAGE Generation job failed
!STACK 0
java.lang.RuntimeException: Error invoking function: initializeCrud with parameters: [Ljava.lang.Object;@a20f51
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: org.eclipse.core.runtime.OperationCanceledException: Unable to scaffold because no data type inputs were provided. See the error log for more details.
at com.skyway.scaffolding.crud.util.ContextAwareCrudFunctions.getDataTypes(ContextAwareCrudFunctions.java:184)
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
Any help would be greatly appreciated.
bapurvisMemberWas able to resolve this.
The problem was the SQL Server JDBC driver (which seem to be at issue in other threads). I was using the Microsoft 2.0 version. I tried the Microsoft 3.0 versions and also ran into problems. I then switched to the jTDS driver and the scaffolding of flex and all other layers work!
jkennedyMemberThanks for keeping us up to date on what worked for you. There must have been some issue with getting the meta data from the JDBC connection as it was previously configured. I’ll add a defect based on this Driver to our system and we will take a look. Thanks for posting the work around.
Jack
-
AuthorPosts