3 Replies Latest reply on Jan 19, 2012 3:25 AM by chriscurnow

    Data Services wizard not creating service

    chriscurnow

      I am having huge problems with the Data Services wizard.

       

      I am using Flash Builder 4.6 on a Mac (10.7.2).

       

      Over the last year I have been working on a couple of proof of concept projects and now want to start work on a production version starting from scratch in a new project.

       

      The Data Services wizard has worked fine for me in the past, but now I am having serious problems.

       

      The first problem is the Data/Services window does not update when I create a new service with the wizard. (I am connecting to the Zenfolio Web Service.) If have to close the project and open it before I see the new service in the Data/Services window.

       

      While this problem is more an inconvenience, more seriously the wizard does not create either the "services" folder or the "valueObjects" folder as it did in the past.

       

      Now if I right click on a method in the service and select "Create Service Call", it creates the Call Responder but not the call itself.

       

      The relevant log entry starts with

       

      !ENTRY com.adobe.flexbuilder.dcrad 4 1 2012-01-12 22:39:20.962

      !MESSAGE Component type services.zfapi.Zfapi not found.

       

      If I create a "services" folder and copy the zfapi package from one of my previous projects, all works fine.

       

      This probably gives me a workaround - although I haven't tested this to any extent yet.

       

      It is very strange and worrying behaviour though.

       

      regards

       

      Chris

        • 1. Re: Data Services wizard not creating service
          chriscurnow Level 1

          No, it turns out I don't have a workaround. The service that I copied is for an older version of the Zenfolio API so I am unable to refresh/update it to the new version.

          This is causing errors when I try to call methods of the service.

          regards

          Chris

          • 2. Re: Data Services wizard not creating service
            chriscurnow Level 1

            I tried installing Flash Builder 4.6 on a clean install of OS 10.7 - that works fine.

             

            I tried uninstalling Flash Builder on my development machine and re-installing. No change. It still doesn't work .

             

            This is so frustrating but I will keep working on it.

             

            Chris

            • 3. Re: Data Services wizard not creating service
              chriscurnow Level 1

              OK, here are the log entries created when I try to create the service:

               

              !ENTRY com.adobe.flexbuilder.dcrad 4 1 2012-01-19 22:16:33.970

              !MESSAGE

              !STACK 0

              java.lang.reflect.InvocationTargetException

                        at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:479)

                        at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)

                        at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:507)

                        at com.adobe.flexbuilder.dcrad.core.internal.ServicesManager.addServices(ServicesManager.jav a:476)

                        at com.adobe.flexbuilder.dcrad.views.ServiceExplorerView$1.handleEvent(ServiceExplorerView.j ava:536)

                        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)

                        at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4128)

                        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1457)

                        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1480)

                        at org.eclipse.swt.widgets.Widget.sendSelectionEvent(Widget.java:1530)

                        at org.eclipse.swt.widgets.Link.textView_clickOnLink_atIndex(Link.java:117)

                        at org.eclipse.swt.widgets.Display.windowProc(Display.java:5781)

                        at org.eclipse.swt.internal.cocoa.OS.objc_msgSendSuper(Native Method)

                        at org.eclipse.swt.widgets.Widget.callSuper(Widget.java:220)

                        at org.eclipse.swt.widgets.Widget.mouseDownSuper(Widget.java:1092)

                        at org.eclipse.swt.widgets.Widget.mouseDown(Widget.java:1084)

                        at org.eclipse.swt.widgets.Control.mouseDown(Control.java:2519)

                        at org.eclipse.swt.widgets.Display.windowProc(Display.java:5471)

                        at org.eclipse.swt.internal.cocoa.OS.objc_msgSendSuper(Native Method)

                        at org.eclipse.swt.widgets.Widget.callSuper(Widget.java:220)

                        at org.eclipse.swt.widgets.Widget.windowSendEvent(Widget.java:2092)

                        at org.eclipse.swt.widgets.Shell.windowSendEvent(Shell.java:2252)

                        at org.eclipse.swt.widgets.Display.windowProc(Display.java:5535)

                        at org.eclipse.swt.internal.cocoa.OS.objc_msgSendSuper(Native Method)

                        at org.eclipse.swt.widgets.Display.applicationSendEvent(Display.java:4989)

                        at org.eclipse.swt.widgets.Display.applicationProc(Display.java:5138)

                        at org.eclipse.swt.internal.cocoa.OS.objc_msgSend(Native Method)

                        at org.eclipse.swt.internal.cocoa.NSApplication.sendEvent(NSApplication.java:128)

                        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3610)

                        at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2696)

                        at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2660)

                        at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2494)

                        at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:674)

                        at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)

                        at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:667)

                        at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)

                        at com.adobe.flexbuilder.standalone.FlashBuilderApplication.start(FlashBuilderApplication.ja va:108)

                        at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)

                        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLau ncher.java:110)

                        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.jav a:79)

                        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)

                        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)

                        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.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)

                        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)

                        at org.eclipse.equinox.launcher.Main.run(Main.java:1410)

              Caused by: java.lang.NoClassDefFoundError: org/apache/log4j/Priority

                        at freemarker.log.Log4JLoggerFactory.getLogger(Log4JLoggerFactory.java:65)

                        at freemarker.log.Logger.getLogger(Logger.java:255)

                        at freemarker.template.utility.SecurityUtilities.<clinit>(SecurityUtilities.java:67)

                        at freemarker.ext.beans.BeansWrapper.<clinit>(BeansWrapper.java:147)

                        at freemarker.template.ObjectWrapper.<clinit>(ObjectWrapper.java:69)

                        at freemarker.core.Configurable.<init>(Configurable.java:132)

                        at freemarker.template.Configuration.<init>(Configuration.java:109)

                        at freemarker.template.Configuration.<clinit>(Configuration.java:96)

                        at fiber.gen.freemarker.FreemarkerModelGenerator.buildFreemarkerConfiguration(FreemarkerMode lGenerator.java:328)

                        at fiber.gen.freemarker.FreemarkerModelGenerator.<init>(FreemarkerModelGenerator.java:85)

                        at fiber.gen.freemarker.FreemarkerStructuredTypeGenerator.<init>(FreemarkerStructuredTypeGen erator.java:62)

                        at fiber.gen.as.ASClassGenerator.<init>(ASClassGenerator.java:84)

                        at fiber.gen.as.vo.SuperGenerator.<init>(SuperGenerator.java:53)

                        at fiber.gen.as.vo.ASValueObjectGenerator$2.<init>(ASValueObjectGenerator.java:225)

                        at fiber.gen.as.vo.ASValueObjectGenerator.getBaseClassGenerator(ASValueObjectGenerator.java: 222)

                        at fiber.gen.as.vo.ASValueObjectGenerator.getTemplateNames(ASValueObjectGenerator.java:392)

                        at fiber.gen.as.ASGenerator.getTemplateNames(ASGenerator.java:465)

                        at com.adobe.model.core.generators.wrapper.CodeGenerationUtils.getTemplateResources(Unknown Source)

                        at com.adobe.model.core.generators.wrapper.CodeGenerationWrapper.getTemplateResourcesForGene rator(Unknown Source)

                        at com.adobe.model.core.generators.wrapper.CodeGenerationWrapper.generateCodeForGenerator(Un known Source)

                        at com.adobe.model.core.generators.wrapper.CodeGenerationWrapper.internalGenerateAllCodeForM odel(Unknown Source)

                        at com.adobe.model.core.generators.wrapper.CodeGenerationWrapper$2.run(Unknown Source)

                        at com.adobe.model.core.generators.wrapper.CodeGenerationWrapper.generateAllCodeForModel(Unk nown Source)

                        at com.adobe.flexbuilder.dcrad.core.generation.ASVOGenerator.generate(ASVOGenerator.java:78)

                        at com.adobe.flexbuilder.dcrad.core.internal.ServicesManager.generateVO(ServicesManager.java :538)

                        at com.adobe.flexbuilder.dcrad.core.internal.ServicesManager.add(ServicesManager.java:403)

                        at com.adobe.flexbuilder.dcrad.core.internal.ServicesManager.access$11(ServicesManager.java: 356)

                        at com.adobe.flexbuilder.dcrad.core.internal.ServicesManager$1.run(ServicesManager.java:484)

                        at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)

                        ... 48 more

              Caused by: java.lang.ClassNotFoundException: org.apache.log4j.Priority

                        at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:513)

                        at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:429)

                        at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:417)

                        at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.jav a:107)

                        at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

                        ... 77 more

              Root exception:

              java.lang.NoClassDefFoundError: org/apache/log4j/Priority

                        at freemarker.log.Log4JLoggerFactory.getLogger(Log4JLoggerFactory.java:65)

                        at freemarker.log.Logger.getLogger(Logger.java:255)

                        at freemarker.template.utility.SecurityUtilities.<clinit>(SecurityUtilities.java:67)

                        at freemarker.ext.beans.BeansWrapper.<clinit>(BeansWrapper.java:147)

                        at freemarker.template.ObjectWrapper.<clinit>(ObjectWrapper.java:69)

                        at freemarker.core.Configurable.<init>(Configurable.java:132)

                        at freemarker.template.Configuration.<init>(Configuration.java:109)

                        at freemarker.template.Configuration.<clinit>(Configuration.java:96)

                        at fiber.gen.freemarker.FreemarkerModelGenerator.buildFreemarkerConfiguration(FreemarkerMode lGenerator.java:328)

                        at fiber.gen.freemarker.FreemarkerModelGenerator.<init>(FreemarkerModelGenerator.java:85)

                        at fiber.gen.freemarker.FreemarkerStructuredTypeGenerator.<init>(FreemarkerStructuredTypeGen erator.java:62)

                        at fiber.gen.as.ASClassGenerator.<init>(ASClassGenerator.java:84)

                        at fiber.gen.as.vo.SuperGenerator.<init>(SuperGenerator.java:53)

                        at fiber.gen.as.vo.ASValueObjectGenerator$2.<init>(ASValueObjectGenerator.java:225)

                        at fiber.gen.as.vo.ASValueObjectGenerator.getBaseClassGenerator(ASValueObjectGenerator.java: 222)

                        at fiber.gen.as.vo.ASValueObjectGenerator.getTemplateNames(ASValueObjectGenerator.java:392)

                        at fiber.gen.as.ASGenerator.getTemplateNames(ASGenerator.java:465)

                        at com.adobe.model.core.generators.wrapper.CodeGenerationUtils.getTemplateResources(Unknown Source)

                        at com.adobe.model.core.generators.wrapper.CodeGenerationWrapper.getTemplateResourcesForGene rator(Unknown Source)

                        at com.adobe.model.core.generators.wrapper.CodeGenerationWrapper.generateCodeForGenerator(Un known Source)

                        at com.adobe.model.core.generators.wrapper.CodeGenerationWrapper.internalGenerateAllCodeForM odel(Unknown Source)

                        at com.adobe.model.core.generators.wrapper.CodeGenerationWrapper$2.run(Unknown Source)

                        at com.adobe.model.core.generators.wrapper.CodeGenerationWrapper.generateAllCodeForModel(Unk nown Source)

                        at com.adobe.flexbuilder.dcrad.core.generation.ASVOGenerator.generate(ASVOGenerator.java:78)

                        at com.adobe.flexbuilder.dcrad.core.internal.ServicesManager.generateVO(ServicesManager.java :538)

                        at com.adobe.flexbuilder.dcrad.core.internal.ServicesManager.add(ServicesManager.java:403)

                        at com.adobe.flexbuilder.dcrad.core.internal.ServicesManager.access$11(ServicesManager.java: 356)

                        at com.adobe.flexbuilder.dcrad.core.internal.ServicesManager$1.run(ServicesManager.java:484)

                        at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)

                        at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)

                        at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:507)

                        at com.adobe.flexbuilder.dcrad.core.internal.ServicesManager.addServices(ServicesManager.jav a:476)

                        at com.adobe.flexbuilder.dcrad.views.ServiceExplorerView$1.handleEvent(ServiceExplorerView.j ava:536)

                        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)

                        at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4128)

                        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1457)

                        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1480)

                        at org.eclipse.swt.widgets.Widget.sendSelectionEvent(Widget.java:1530)

                        at org.eclipse.swt.widgets.Link.textView_clickOnLink_atIndex(Link.java:117)

                        at org.eclipse.swt.widgets.Display.windowProc(Display.java:5781)

                        at org.eclipse.swt.internal.cocoa.OS.objc_msgSendSuper(Native Method)

                        at org.eclipse.swt.widgets.Widget.callSuper(Widget.java:220)

                        at org.eclipse.swt.widgets.Widget.mouseDownSuper(Widget.java:1092)

                        at org.eclipse.swt.widgets.Widget.mouseDown(Widget.java:1084)

                        at org.eclipse.swt.widgets.Control.mouseDown(Control.java:2519)

                        at org.eclipse.swt.widgets.Display.windowProc(Display.java:5471)

                        at org.eclipse.swt.internal.cocoa.OS.objc_msgSendSuper(Native Method)

                        at org.eclipse.swt.widgets.Widget.callSuper(Widget.java:220)

                        at org.eclipse.swt.widgets.Widget.windowSendEvent(Widget.java:2092)

                        at org.eclipse.swt.widgets.Shell.windowSendEvent(Shell.java:2252)

                        at org.eclipse.swt.widgets.Display.windowProc(Display.java:5535)

                        at org.eclipse.swt.internal.cocoa.OS.objc_msgSendSuper(Native Method)

                        at org.eclipse.swt.widgets.Display.applicationSendEvent(Display.java:4989)

                        at org.eclipse.swt.widgets.Display.applicationProc(Display.java:5138)

                        at org.eclipse.swt.internal.cocoa.OS.objc_msgSend(Native Method)

                        at org.eclipse.swt.internal.cocoa.NSApplication.sendEvent(NSApplication.java:128)

                        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3610)

                        at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2696)

                        at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2660)

                        at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2494)

                        at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:674)

                        at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)

                        at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:667)

                        at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)

                        at com.adobe.flexbuilder.standalone.FlashBuilderApplication.start(FlashBuilderApplication.ja va:108)

                        at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)

                        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLau ncher.java:110)

                        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.jav a:79)

                        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)

                        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)

                        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.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)

                        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)

                        at org.eclipse.equinox.launcher.Main.run(Main.java:1410)

              Caused by: java.lang.ClassNotFoundException: org.apache.log4j.Priority

                        at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:513)

                        at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:429)

                        at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:417)

                        at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.jav a:107)

                        at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

                        ... 77 more