facebook

Scaffolding Error – java.lang.ClassCastException

  1. MyEclipse IDE
  2.  > 
  3. Spring Development
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #483267 Reply

    peeeto
    Participant

    Hi, I have a problem while trying to use the scaffolding feature from database schema.

    In the eclipse error list I can see the following:

    Generation job failed

    java.lang.ClassCastException: org.skyway.core.model.data.impl.DataTypeImpl cannot be cast to org.skyway.core.model.service.Service
    at org.skyway.core.generate.util.GeneratorUtils.getService(GeneratorUtils.java:300)
    at org.skyway.core.generate.generator.model.ServiceGenerator.createService(ServiceGenerator.java:42)
    at org.skyway.core.generate.generator.model.ServiceGenerator.generateBeforeChildren(ServiceGenerator.java:24)
    at org.skyway.core.generate.generator.model.CoreGenerator.generate(CoreGenerator.java:29)
    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.IfGenerator.generate(IfGenerator.java:22)
    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.IncludeFragmentGenerator.generate(IncludeFragmentGenerator.java:31)
    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.IteratorGenerator.generate(IteratorGenerator.java:28)
    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:2241)
    at org.skyway.core.generate.execute.GenerationJob.run(GenerationJob.java:55)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

    eclipse.buildId=14.0.0.CI-003
    java.version=1.8.0_66
    java.vendor=Oracle Corporation
    BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=de_AT
    Command-line arguments: -os win32 -ws win32 -arch x86_64

    Has anyone experienced this also?

    Thanks,
    Peter

    EDIT.1: btw. one of my tables has a name: SERVICE. If I do not generate from this table the Scaffolding works.

    • This topic was modified 7 years, 11 months ago by peeeto.
    #483377 Reply

    support-swapna
    Moderator

    peeeto,

    Sorry that you are experiencing this issue. I see no issues scaffolding from a table named SERVICE in MyEclipse Derby database.

    Can you please give us some more information ?

    1. Please share with us the Database version and details. Also share with us the driver details along with the url details used to configure the database in MyEclipse.

    2. Did you change the Dialect in the wizard or went ahead with the default selections in the Scaffolding wizard? If you have used any specific settings in the Scaffolding wizard, please share with us the details.

    3. Please share with us the CREATE TABLE statement for the SERVICE table to help us replicate the issue at our end.

    4. Please clear the contents of the .log file located at <workspace dir>/.metadata/.log, replicate the issue with scaffolding and send us the .log file for further investigation.

    –Swapna
    MyEclipse Support

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Scaffolding Error – java.lang.ClassCastException

You must be logged in to post in the forum log in