Generate sample php service in flash builder 4.5.

Hi all complete noob here. I have gone trough several tutorials and this keeps popping up.
On most of these tutorials after clicking new data service and selecting PHP the tutorials have a link generate sample php.
I am using flash builder 4.5 for php premium and I don’t have that link. Was this link possibly moved?
I really need this functionality please can someone help me?

Same here with Flash Builder 4.6 Premium for PHP, I see no way to generate a sample service!

Similar Messages

  • Please help!!! generate sample php service in flash builder 4.5

    Hi all complete noob here. I have gone trough several tutorials and this keeps popping up.
    On most of these tutorials after clicking new data service and selecting PHP the tutorials have a link generate sample php.
    I am using flash builder 4.5 for php premium and I don’t have that link. Was this link possibly moved? I really need this functionality please can someone help me?

    Hi Anju
    no wasnt what I was looking for but did find it after clicking all the buttons in the UI.
    For other users it is located on the Data/Service tab. on the right hand side is a little triangle pointing down. click on it and will have connection options. Select connect to PHP. Not sure why its not on the other tab.
    But thank you for the reply

  • Generate sample PHP service from db could not set primary key

    Hi,
        Some information about my system:
    OS :Windows 7 64 bit
    Computer type: HP Pavilion dv6-3013cl laptop
    Eclipse 3.5+Flash Builder 4 plugin
    DB: MySQL 5.0 local server
    Web Server: Apache 2.2+PHP 5.2.14
    Zend Frame work 1.10.1 (installed by Flash Builder)
        I am trying to configure a PHP service in the Connect to Data/Service wizard. I clicked "click here to generate a sample" to generate a Sample PHP service. I selected Generate from database radio button and entered the db connection information in all fields. I am able to connect to my local database and select the table I want to create the service. But after I selected the primary key from the dropdown, the Ok button is still disabled and a warning note at the bottom of the screen still prompt for selecting the table's primary key. At this point, the log in eclipse metadata folder in the workspace has the following error:
    !ENTRY org.eclipse.ui 4 0 2010-09-13 09:05:23.565
    !MESSAGE Unhandled event loop exception
    !STACK 0
    java.lang.NullPointerException
        at com.adobe.flexbuilder.services.PHPService.serverproto.ColumnModel.setType(ColumnModel.jav a:204)
        at com.adobe.flexbuilder.services.PHPService.serverproto.ColumnModel.buildFromColumn(ColumnM odel.java:218)
        at com.adobe.flexbuilder.services.PHPService.PHPService.setPrimaryKeyColumn(PHPService.java: 185)
        at com.adobe.flexbuilder.services.PHPService.serverproto.MySQLConfigurationDialog$4.widgetSe lected(MySQLConfigurationDialog.java:419)
        at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:228)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
        at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3880)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3473)
        at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
        at org.eclipse.jface.window.Window.open(Window.java:801)
        at com.adobe.flexbuilder.services.PHPService.PHPConfigurationPage$6.widgetSelected(PHPConfig urationPage.java:240)
        at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:228)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1027)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1012)
        at org.eclipse.swt.widgets.Link.wmNotifyChild(Link.java:1004)
        at org.eclipse.swt.widgets.Control.wmNotify(Control.java:4877)
        at org.eclipse.swt.widgets.Composite.wmNotify(Composite.java:1757)
        at org.eclipse.swt.widgets.Control.WM_NOTIFY(Control.java:4507)
        at org.eclipse.swt.widgets.Control.windowProc(Control.java:4000)
        at org.eclipse.swt.widgets.Display.windowProc(Display.java:4602)
        at org.eclipse.swt.internal.win32.OS.CallWindowProcW(Native Method)
        at org.eclipse.swt.internal.win32.OS.CallWindowProc(OS.java:2312)
        at org.eclipse.swt.widgets.Link.callWindowProc(Link.java:172)
        at org.eclipse.swt.widgets.Widget.wmLButtonUp(Widget.java:1917)
        at org.eclipse.swt.widgets.Control.WM_LBUTTONUP(Control.java:4301)
        at org.eclipse.swt.widgets.Link.WM_LBUTTONUP(Link.java:842)
        at org.eclipse.swt.widgets.Control.windowProc(Control.java:3982)
        at org.eclipse.swt.widgets.Display.windowProc(Display.java:4602)
        at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
        at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2409)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3471)
        at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
        at org.eclipse.jface.window.Window.open(Window.java:801)
        at com.adobe.flexbuilder.DCDService.ui.wizard.ServiceWizard.show(ServiceWizard.java:190)
        at com.adobe.flexbuilder.DCDService.ui.wizard.ServiceWizard.createService(ServiceWizard.java :152)
        at com.adobe.flexbuilder.dcrad.views.ServiceExplorerView$1.handleEvent(ServiceExplorerView.j ava:528)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1027)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1012)
        at org.eclipse.swt.widgets.Link.wmNotifyChild(Link.java:1004)
        at org.eclipse.swt.widgets.Control.wmNotify(Control.java:4877)
        at org.eclipse.swt.widgets.Composite.wmNotify(Composite.java:1757)
        at org.eclipse.swt.widgets.Control.WM_NOTIFY(Control.java:4507)
        at org.eclipse.swt.widgets.Control.windowProc(Control.java:4000)
        at org.eclipse.swt.widgets.Display.windowProc(Display.java:4602)
        at org.eclipse.swt.internal.win32.OS.CallWindowProcW(Native Method)
        at org.eclipse.swt.internal.win32.OS.CallWindowProc(OS.java:2312)
        at org.eclipse.swt.widgets.Link.callWindowProc(Link.java:172)
        at org.eclipse.swt.widgets.Widget.wmLButtonUp(Widget.java:1917)
        at org.eclipse.swt.widgets.Control.WM_LBUTTONUP(Control.java:4301)
        at org.eclipse.swt.widgets.Link.WM_LBUTTONUP(Link.java:842)
        at org.eclipse.swt.widgets.Control.windowProc(Control.java:3982)
        at org.eclipse.swt.widgets.Display.windowProc(Display.java:4602)
        at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
        at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2409)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3471)
        at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2405)
        at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
        at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2221)
        at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
        at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
        at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:493)
        at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
        at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
        at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)
        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:368)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)
        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
        at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
    I figured this explains why the OK button is not enabled. I could trick the screen by clicking the Generate from template radio button and back to clicking the Generate from database button which will enable the OK button. I clicked OK, and a Security Information warning about ricks of generating the service php file popped up asking if I want to continue. I clicked OK and back to the generate sample PHP service screen. After this, the process entered an endless Ok-warning-OK-warning-OK loop and could never proceed to actually generating the service file. In the Eclipse log file, I see more Unhandled event loop exception:
    !ENTRY org.eclipse.ui 4 0 2010-09-13 11:11:30.482
    !MESSAGE Unhandled event loop exception
    !STACK 0
    java.lang.NullPointerException
        at com.adobe.flexbuilder.services.PHPService.serverproto.ColumnModel.setType(ColumnModel.jav a:204)
        at com.adobe.flexbuilder.services.PHPService.serverproto.ColumnModel.buildFromColumn(ColumnM odel.java:218)
        at com.adobe.flexbuilder.services.PHPService.PHPService.setPrimaryKeyColumn(PHPService.java: 185)
        at com.adobe.flexbuilder.services.PHPService.serverproto.MySQLConfigurationDialog$4.widgetSe lected(MySQLConfigurationDialog.java:419)
        at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:228)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
        at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3880)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3473)
        at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
        at org.eclipse.jface.window.Window.open(Window.java:801)
        at com.adobe.flexbuilder.services.PHPService.PHPConfigurationPage$6.widgetSelected(PHPConfig urationPage.java:240)
        at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:228)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1027)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1012)
        at org.eclipse.swt.widgets.Link.wmNotifyChild(Link.java:1004)
        at org.eclipse.swt.widgets.Control.wmNotify(Control.java:4877)
        at org.eclipse.swt.widgets.Composite.wmNotify(Composite.java:1757)
        at org.eclipse.swt.widgets.Control.WM_NOTIFY(Control.java:4507)
        at org.eclipse.swt.widgets.Control.windowProc(Control.java:4000)
        at org.eclipse.swt.widgets.Display.windowProc(Display.java:4602)
        at org.eclipse.swt.internal.win32.OS.CallWindowProcW(Native Method)
        at org.eclipse.swt.internal.win32.OS.CallWindowProc(OS.java:2312)
        at org.eclipse.swt.widgets.Link.callWindowProc(Link.java:172)
        at org.eclipse.swt.widgets.Widget.wmLButtonUp(Widget.java:1917)
        at org.eclipse.swt.widgets.Control.WM_LBUTTONUP(Control.java:4301)
        at org.eclipse.swt.widgets.Link.WM_LBUTTONUP(Link.java:842)
        at org.eclipse.swt.widgets.Control.windowProc(Control.java:3982)
        at org.eclipse.swt.widgets.Display.windowProc(Display.java:4602)
        at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
        at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2409)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3471)
        at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
        at org.eclipse.jface.window.Window.open(Window.java:801)
        at com.adobe.flexbuilder.DCDService.ui.wizard.ServiceWizard.show(ServiceWizard.java:190)
        at com.adobe.flexbuilder.DCDService.ui.wizard.ServiceWizard.createService(ServiceWizard.java :152)
        at com.adobe.flexbuilder.dcrad.views.ServiceExplorerView$1.handleEvent(ServiceExplorerView.j ava:528)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1027)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1012)
        at org.eclipse.swt.widgets.Link.wmNotifyChild(Link.java:1004)
        at org.eclipse.swt.widgets.Control.wmNotify(Control.java:4877)
        at org.eclipse.swt.widgets.Composite.wmNotify(Composite.java:1757)
        at org.eclipse.swt.widgets.Control.WM_NOTIFY(Control.java:4507)
        at org.eclipse.swt.widgets.Control.windowProc(Control.java:4000)
        at org.eclipse.swt.widgets.Display.windowProc(Display.java:4602)
        at org.eclipse.swt.internal.win32.OS.CallWindowProcW(Native Method)
        at org.eclipse.swt.internal.win32.OS.CallWindowProc(OS.java:2312)
        at org.eclipse.swt.widgets.Link.callWindowProc(Link.java:172)
        at org.eclipse.swt.widgets.Widget.wmLButtonUp(Widget.java:1917)
        at org.eclipse.swt.widgets.Control.WM_LBUTTONUP(Control.java:4301)
        at org.eclipse.swt.widgets.Link.WM_LBUTTONUP(Link.java:842)
        at org.eclipse.swt.widgets.Control.windowProc(Control.java:3982)
        at org.eclipse.swt.widgets.Display.windowProc(Display.java:4602)
        at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
        at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2409)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3471)
        at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2405)
        at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
        at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2221)
        at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
        at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
        at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:493)
        at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
        at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
        at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)
        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:368)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)
        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
        at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
    !ENTRY org.eclipse.ui 4 0 2010-09-13 11:12:07.460
    !MESSAGE Unhandled event loop exception
    !STACK 0
    java.lang.NullPointerException
        at com.adobe.flexbuilder.services.PHPService.serverproto.ColumnModel.setType(ColumnModel.jav a:204)
        at com.adobe.flexbuilder.services.PHPService.serverproto.ColumnModel.buildFromColumn(ColumnM odel.java:218)
        at com.adobe.flexbuilder.services.PHPService.PHPService.fillUpModel(PHPService.java:221)
        at com.adobe.flexbuilder.services.PHPService.PHPService.createFlexService(PHPService.java:27 7)
        at com.adobe.flexbuilder.services.PHPService.serverproto.MySQLConfigurationDialog.okPressed( MySQLConfigurationDialog.java:948)
        at org.eclipse.jface.dialogs.Dialog.buttonPressed(Dialog.java:472)
        at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:624)
        at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:228)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
        at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3880)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3473)
        at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
        at org.eclipse.jface.window.Window.open(Window.java:801)
        at com.adobe.flexbuilder.services.PHPService.PHPConfigurationPage$6.widgetSelected(PHPConfig urationPage.java:240)
        at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:228)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1027)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1012)
        at org.eclipse.swt.widgets.Link.wmNotifyChild(Link.java:1004)
        at org.eclipse.swt.widgets.Control.wmNotify(Control.java:4877)
        at org.eclipse.swt.widgets.Composite.wmNotify(Composite.java:1757)
        at org.eclipse.swt.widgets.Control.WM_NOTIFY(Control.java:4507)
        at org.eclipse.swt.widgets.Control.windowProc(Control.java:4000)
        at org.eclipse.swt.widgets.Display.windowProc(Display.java:4602)
        at org.eclipse.swt.internal.win32.OS.CallWindowProcW(Native Method)
        at org.eclipse.swt.internal.win32.OS.CallWindowProc(OS.java:2312)
        at org.eclipse.swt.widgets.Link.callWindowProc(Link.java:172)
        at org.eclipse.swt.widgets.Widget.wmLButtonUp(Widget.java:1917)
        at org.eclipse.swt.widgets.Control.WM_LBUTTONUP(Control.java:4301)
        at org.eclipse.swt.widgets.Link.WM_LBUTTONUP(Link.java:842)
        at org.eclipse.swt.widgets.Control.windowProc(Control.java:3982)
        at org.eclipse.swt.widgets.Display.windowProc(Display.java:4602)
        at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
        at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2409)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3471)
        at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
        at org.eclipse.jface.window.Window.open(Window.java:801)
        at com.adobe.flexbuilder.DCDService.ui.wizard.ServiceWizard.show(ServiceWizard.java:190)
        at com.adobe.flexbuilder.DCDService.ui.wizard.ServiceWizard.createService(ServiceWizard.java :152)
        at com.adobe.flexbuilder.dcrad.views.ServiceExplorerView$1.handleEvent(ServiceExplorerView.j ava:528)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1027)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1012)
        at org.eclipse.swt.widgets.Link.wmNotifyChild(Link.java:1004)
        at org.eclipse.swt.widgets.Control.wmNotify(Control.java:4877)
        at org.eclipse.swt.widgets.Composite.wmNotify(Composite.java:1757)
        at org.eclipse.swt.widgets.Control.WM_NOTIFY(Control.java:4507)
        at org.eclipse.swt.widgets.Control.windowProc(Control.java:4000)
        at org.eclipse.swt.widgets.Display.windowProc(Display.java:4602)
        at org.eclipse.swt.internal.win32.OS.CallWindowProcW(Native Method)
        at org.eclipse.swt.internal.win32.OS.CallWindowProc(OS.java:2312)
        at org.eclipse.swt.widgets.Link.callWindowProc(Link.java:172)
        at org.eclipse.swt.widgets.Widget.wmLButtonUp(Widget.java:1917)
        at org.eclipse.swt.widgets.Control.WM_LBUTTONUP(Control.java:4301)
        at org.eclipse.swt.widgets.Link.WM_LBUTTONUP(Link.java:842)
        at org.eclipse.swt.widgets.Control.windowProc(Control.java:3982)
        at org.eclipse.swt.widgets.Display.windowProc(Display.java:4602)
        at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
        at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2409)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3471)
        at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2405)
        at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
        at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2221)
        at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
        at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
        at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:493)
        at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
        at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
        at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)
        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:368)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)
        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
        at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
    !ENTRY org.eclipse.ui 4 0 2010-09-13 11:14:34.534
    !MESSAGE Unhandled event loop exception
    !STACK 0
    java.lang.NullPointerException
        at com.adobe.flexbuilder.services.PHPService.serverproto.ColumnModel.setType(ColumnModel.jav a:204)
        at com.adobe.flexbuilder.services.PHPService.serverproto.ColumnModel.buildFromColumn(ColumnM odel.java:218)
        at com.adobe.flexbuilder.services.PHPService.PHPService.setPrimaryKeyColumn(PHPService.java: 185)
        at com.adobe.flexbuilder.services.PHPService.serverproto.MySQLConfigurationDialog$4.widgetSe lected(MySQLConfigurationDialog.java:419)
        at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:228)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
        at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3880)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3473)
        at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
        at org.eclipse.jface.window.Window.open(Window.java:801)
        at com.adobe.flexbuilder.services.PHPService.PHPConfigurationPage$6.widgetSelected(PHPConfig urationPage.java:240)
        at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:228)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1027)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1012)
        at org.eclipse.swt.widgets.Link.wmNotifyChild(Link.java:1004)
        at org.eclipse.swt.widgets.Control.wmNotify(Control.java:4877)
        at org.eclipse.swt.widgets.Composite.wmNotify(Composite.java:1757)
        at org.eclipse.swt.widgets.Control.WM_NOTIFY(Control.java:4507)
        at org.eclipse.swt.widgets.Control.windowProc(Control.java:4000)
        at org.eclipse.swt.widgets.Display.windowProc(Display.java:4602)
        at org.eclipse.swt.internal.win32.OS.CallWindowProcW(Native Method)
        at org.eclipse.swt.internal.win32.OS.CallWindowProc(OS.java:2312)
        at org.eclipse.swt.widgets.Link.callWindowProc(Link.java:172)
        at org.eclipse.swt.widgets.Widget.wmLButtonUp(Widget.java:1917)
        at org.eclipse.swt.widgets.Control.WM_LBUTTONUP(Control.java:4301)
        at org.eclipse.swt.widgets.Link.WM_LBUTTONUP(Link.java:842)
        at org.eclipse.swt.widgets.Control.windowProc(Control.java:3982)
        at org.eclipse.swt.widgets.Display.windowProc(Display.java:4602)
        at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
        at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2409)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3471)
        at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
        at org.eclipse.jface.window.Window.open(Window.java:801)
        at com.adobe.flexbuilder.DCDService.ui.wizard.ServiceWizard.show(ServiceWizard.java:190)
        at com.adobe.flexbuilder.DCDService.ui.wizard.ServiceWizard.createService(ServiceWizard.java :152)
        at com.adobe.flexbuilder.dcrad.views.ServiceExplorerView$1.handleEvent(ServiceExplorerView.j ava:528)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1027)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1012)
        at org.eclipse.swt.widgets.Link.wmNotifyChild(Link.java:1004)
        at org.eclipse.swt.widgets.Control.wmNotify(Control.java:4877)
        at org.eclipse.swt.widgets.Composite.wmNotify(Composite.java:1757)
        at org.eclipse.swt.widgets.Control.WM_NOTIFY(Control.java:4507)
        at org.eclipse.swt.widgets.Control.windowProc(Control.java:4000)
        at org.eclipse.swt.widgets.Display.windowProc(Display.java:4602)
        at org.eclipse.swt.internal.win32.OS.CallWindowProcW(Native Method)
        at org.eclipse.swt.internal.win32.OS.CallWindowProc(OS.java:2312)
        at org.eclipse.swt.widgets.Link.callWindowProc(Link.java:172)
        at org.eclipse.swt.widgets.Widget.wmLButtonUp(Widget.java:1917)
        at org.eclipse.swt.widgets.Control.WM_LBUTTONUP(Control.java:4301)
        at org.eclipse.swt.widgets.Link.WM_LBUTTONUP(Link.java:842)
        at org.eclipse.swt.widgets.Control.windowProc(Control.java:3982)
        at org.eclipse.swt.widgets.Display.windowProc(Display.java:4602)
        at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
        at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2409)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3471)
        at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2405)
        at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
        at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2221)
        at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
        at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
        at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:493)
        at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
        at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
        at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)
        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:368)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)
        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
        at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
    I was able to do this on my old windows xp (Media Center OS) laptop. I wonder if this problem has anything to do with the Windows 7's system permission security feature. I 've stuck for 2 days now. Can someone help?! Thanks so much!

    Thanks for reporting the bug.
    I have filed another bug on, FB not validating PHP installation before generating sample https://bugs.adobe.com/jira/browse/FB-27522 .
    https://bugs.adobe.com/jira/browse/FB-27522Please vote/comment for the issue.
    Thanks,
    Radhakrishna

  • Php service issue (flash builder 4)

    I started playing with Data/Services panel in FB4. Works pretty nice so far but there are a few issues I have:
    1. How can I manualy configure input types for the service? The dialog that appears is buggy - size is very small and I can't select input types there. Also changing method definithion in services.myservice._Super_MyService.as file (which is auto-generated) doesn't work - when I refresh or do something else FB4 just rewrites this file...
    2. Second issue is PHP related. I didn't use PHP for several years so my knowledge is still limited. I've created a service class like this:
    <?php
    class MyService {
    public function addUser($username, $password) {
      $connection =
    mysqli_connect('127.0.0.1', 'root', 'root', myDB, 3306) or
    die(mysqli_connect_error());
      $query = "INSERT INTO users (username,
    password, role)
          VALUES ('$username', PASSWORD('$password'),
    'visitor')";
      mysqli_query($connection, $query) or
    die(mysqli_error($connection));
    ?>
    and it works. But if I move $connection variable outside function (to use it with other methods) I get some errors.. Anyone knows why and how to do this? Tried it with different access modifiers, wrapping it in separate function, but nothing helps..
    Thanks

    Thanks for your inputs. I will look into that construct thingie (:
    As for 'Configure Input Types' dialogue, I can also use it in most cases, but some times it's static size isn't sufficient. For example, try adding this function to service:
    public function addUserData($username, $firstName, $lastName, $company, $jobTitle,
            $country, $state, $city, $zipCode, $address, $eMail,
            $phone, $cell, $fax, $webPage, $pictureURL) {
    On my PC when trying to change values, only one row is visible, and when I try to 'Select Type' for it, dropdown just closes without changing value. It would be nice if we could resize 'Configure Input Types' dialogue when needed... Or maybe just limit the size of 'Operation:' string in that dialogue..
    PS. I just played with it for a bit. If you enter too long function name select window completly disappears:
    public function abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz($abcdefghijklmnopqrstuvwxyz) {}

  • How to create php login in flash builder 4 using php data service

    I have seen the tutorials for creating a php login authentication using HTTP service in flex 3 It uses genrating xml and reading it . But i want to know how to do that with the help of php services in FB4 . I'm a newbie so please any kind of help would be appriciated as 'm not able to get any flex developer in nagpur ....

    Connect to PHP in FB4 is used when you have a PHP Class and you want to use that in FB, for example Employee.php and it has a Employee class and various methods in that like create, update, get, delete.
    However, if you have exposed your functionality in PHP as a HTTP URL (i.e. it is not a class), then you should be using HTTPService from the data menu.
    So if your file is login.php and is accessible as a URL, then using the HTTPService and enter the URL.
    Does this help?
    -Sunil

  • Sample PHP Service selecting from multiple tables

    Hi all!
    I have the following challange:
    How do I properly set up my PHP-service to insert, select, update and delete values from multiple tables?
    So far, the standard templates generated by Flash Builder is based on a single table.
    Example: I have 2 tables: [person] and [school]
    [person] has [person_id, first_name, last_name, birthdate]
    [school] has [school_id, person_id, school_name, city]
    One [person] can have multiple [schools]
    How should I define the selectByID function in PHP to be able to have
    First name: [TextInput /]
    Last name: [TextInput /]
    Birthdate: [DateField /]
    Schools:
    [TabBar: School1, School2, School3 /]
    [ViewStack1]
    School name: [TextInput /]
    Location name: [TextInput /]
    [/ViewStack1]]
    [ViewStack2]
    School name: [TextInput /]
    Location name: [TextInput /]
    [/ViewStack2]]
    [ViewStack3]
    School name: [TextInput /]
    Location name: [TextInput /]
    [/ViewStack3]]
    And even more interesting: How do I update all these fields back to the database?

    First, the relationship between school and person is many-to-many NOT one-to-many -- you will need to add a junction table.
    From the form you have given I would handle insertions like this:
    loop through all the schools and see if the school already exist in the DB. If so, then store the school_id. If not, then create a new record and store the id. You should have an array collection of store_ids by the end of the loop
    Check whether the student exists w/in the DB. If so, then you might consider aborting the operation or you could opt to do an update. If the student doesn't exist, then create a new student record and store the new student_id (mysql::insert_id)
    Loop through the school_id array and add new student_id/school_id records into the junction table.
    Retrieving records is much simpler -- it's just a join on the tables i.e. "SELECT * FROM student INNER JOIN school_student ON student.student_id = school_student.student_id INNER JOIN schools ON school_student.school_id = school.school_id WHERE student.first_name = 'John' AND student.last_name = 'Doe' (assuming there aren't more than one John Does of course!).
    - e

  • Does FB for PHP no longer generate sample php class?

    Before on Flash 4 and 4.5
    Now on FB4.5 for PHP...
    Does this mean we have 'do the arithmertic' to write the classes instead of just expanding off the generated code?

    Sure, but I am going to use this article in my answer which describes the full workflow http://www.adobe.com/devnet/flash-builder/articles/introducing-flashbuilder45-php.html
    after you create a project and write your service as a PHP class, you should right click in the Explorer on the PHP class and select "Create PHP Service for Flex".
    This is the relevant part in the article:
    1.       Right-click the file with the class that you want to introspect and select Create PHP Service for Flex (see Figure 3).
    Figure 3. Selecting Create PHP Service For Flex to introspect a PHP class.
    Roy

  • PHP Connection in Flash Builder 4

    Hi
    Sorry if this is in the wrong place. I could see nowhere else to ask this question.
    I am very, very new to Flash Builder (in fact, I am following a tutorial on building a data-centric application using Flash catalyst CS5 and Flash Builder 4).
    The problem I am having is that I cannot seem to validate the data connection in Flash Builder 4.
    For my project, I click "Connect to Data/Service" then select PHP. I select Flex Server and change the "Application Server Type" to PHP.
    The page I then get asks for a Web Root and Root URL. This is where I'm having problems. No matter what I type in these boxes, when clicking the "Validate Configuration", I get the error of "Cannot access the web server".
    I have Apache and PHP installed on this Windows 7 64-bit machine.
    The Web root folder for my site is actaully held on my D drive, so web root reads.. "D:\Web Files\Site".
    The URL for this local site is http://site.local
    I can browse to http://site.local in my browser and all is well. My site shows. I can even see this fine in Flash Builder's Internal web browser.
    I have tried moving the web root folder inside the default apache root htdocs folder, but get the same problem. I have even changed the permissions on all folders to allow full control, but this doesn't help.
    I really am starting to tear my hair out now. Can someone please help me? Am I doing something obviously wrong?
    Many Thanks

    Did you install apache / php / (optionally mysql) separately or in a bundle. I would suggest using xampp bundle, because it configures everything correctly along with installing a few helpful tools like phpmyadmin, etc. Great fast setup for testing purposes. Anyway... about the URL: I think the url you should be using is something like http://localhost/yourprojectfolder/...
    Presuming you have set up a project... and selected the option PHP at application server type you would then input (in my case, using the default xampp setup):
    Web root: C:\xampp\htdocs
    Root url: http://localhost
    Output folder: C:\xampp\htdocs\<projectname_here>-debug
    The url you d input in the browser to navigate to your project would then be: http://localhost/<projectname_here>-debug
    (no index.html at the end, provided your server is setup to serve this file automatically if it exists)
    Hope this helps!

  • PHP Profiler in Flash Builder 4.5

    Hi there, I'm using Flash Builder 4.5 for PHP Premium. I noticed on the features page, http://www.adobe.com/products/flash-builder-php/features._sl_id-contentfilter_sl_featuredi splaytypes_sl_top.html, it advertises "PHP profiling". I'd like to try this feature but I can't find any information on how to initiate a PHP profiling session. Any pointers would be greatly apreciated, I'm sure it's simple once you know how.
    Thanks

    Hope this page helps  http://files.zend.com/help/Zend-Studio/profiling.htm

  • Generate sample CFC Service for Oracle 11g problem

    Hello,
       i am facing problem with Generating cfc from RDS datasource for oracle database 11g , i can borows the tables and fields
    in the RDS Dataview but i cant Generate the CFC using the option of Generate from RDS datasoures , if i chose it it takes long time
    and the flash builder is frazed and not responding if i try to select the table wich i want to create that CFC for . i have the correct
    Oracle jdbc driver for that database version and also if i generate from template and try to create the return datatype it dosent
    give me the correct datatype of the oracle table .. please help
    thanks

    The main problem that i am not able to select the table from the table lists to start generate the CFC
    No there is no database objects in oracle starts with numbers , but most of thim having the ($) charactier in there names , i am not getting the correct datatypes , the num
    bers datatype in oracle is presenting with Object datatype in flex .
    i mean if you have a field with Number(6.2) in oracle the flash builder use Object datatype
    and i am using the latest nightbuild of flash builder do i have to download something else ?

  • Sending php variables to Flash Builder

    Hi guys,
    I have made a form which when sent to a Mysql server adds a table to a database.
    Here is the code that I use in Flash Builder:
    <mx:HTTPService id="srv" url="http://mysite.com/addTeam.php" method="POST">
    <mx:request>
    <teamName>{teamName.text}</teamName>
    <city>{city.text}</city>
    </mx:request>
    </mx:HTTPService>
    ...<mx:Form x="25" y="10">
    <mx:FormHeading label="Add a team"/>
    <mx:FormItem label="Team name">
    <s:TextInput id="teamName"/>
    </mx:FormItem>
    <mx:FormItem label="City">
    <s:TextInput id="city"/>
    </mx:FormItem>
    <mx:FormItem>
    <s:Button label="Add" click="srv.send()"/>
    </mx:FormItem>
    And here is my addTeam.php file:
    <?php
      $teamName = $_POST['teamName'];
      $city = $_POST['city'];
      $addteam = $teamName ." ". $city;
      $connection = mysqli_connect("host", "username", "password", "db") or die(mysqli_connect_error());
      mysqli_query($connection, "SET CHARACTER SET utf8");  //the added table will be in bulgarian language
      $sql = "CREATE TABLE `$addteam`
      FirstName varchar(20),
      SurName varchar(20),
      LastName varchar(20),
      position varchar(20),
      price int
      mysqli_query($connection, $sql) or die ("Query failed: " . mysqli_error($connection));
    ?>
    My question is: How can I return some text to Flash Builder if the query was successful or failed (like "echo") so that the user (admin in this case) knows what is going on and not just clicking the add button and having to go to phpmyadmin to see if the table has been created or not?

    You have this declared
    <mx:HTTPService 
    id="srv" url="http://mysite.com/addTeam.php" method="POST">
    just add
    result="yourResultHandler()"/>
    then create the function that would handle the result.
    <mx:HTTPService 
    id="srv" url="http://mysite.com/addTeam.php" method="POST" result="yourResultHandler(event)">

  • Cannot connect to ColdFusion Data/Service in Flash Builder 4

    Hello,
    I am attempting to connect to a ColdFusion data service using the Connect to Data/Service for Flash4 window, however, when I go to select service type I only see HTTP or XML as options. I have set-up my Flash project with CF Flash Remoting and when I type http://localhost:8500/flashservices/gateway into a browser I get a blank page, which I think means that the Flash gateway is working. I am going crazy trying to figure this out, any help would be greatly appreciated!
    Thanks!

    If you been a customer long enough call and ask for a unlock code for your phone and get a temporary sim to use (similar to how walmart here has straight talk) and use that. You will of course need to buy the sim and buy the time you use. This way it will avoid big charges on your bill etc..  So just call verizon and ask for a unlock code and you will take out your current phone sim (put it somewhere safe) and put the new sim in and turn phone on and put the unlock code in. Make sure the sim you get it set to use the type of network your phone is. (look at the specs of your phone) good luck.

  • Establish a connexion with a PHP service

    Hello,
    I'm trying to make a connexion with a mysqli database so I made a php file for establishing the connexion but when I want to configure the PHP service with flash builder 4 I get an error :
    java.net.ConnectException: Connection refused:  connect
    What can I do against that ?

    Are the (apache and mysql) servers up and running?

  • Flash Builder resets php include_path?

    Hi,
    using the data services of flash builder 4, I run into the following problem:
    we gathered all our include directories in one php file, that sets the include_path (ini_set('include_path')). The service classes include that file as a very first statement so the include_path points to several directories spread over the project, that contain further code.
    the benefit of this is that we do not need to bother about any directory trees when putting together our project. Due to the complexity of the project this still seems to be a good idea...but nevertheless...
    Now when I call a service via the Fb context menu in order to configure the returned data types I always get error messages saying some files could not be found. The error message dumps the include_path var as well and for some reasons all it contains at that point are the pathes to MAMP/php and the ZendFramework/library path.
    I dumped the include_path at several locations to check. Looks fine in the services when I dump right behind the include statement for the paths. But in any other class/function it seems to be reset.
    Calling the services over amfphp browser seems to work fine.
    I might be just pretty blind, so please make me see
    THX!

    Not sure what could be the cause of this failure, we will need you complete setup to reproduce, if it is Ok with you.
    If you would like do debug what could be the cause, let me explain how the amf calls are made from Flash Builder.
    You pointed out that Flash Builder is changing the include_path, but that cannot be done by Flash Builder directly.
    The way it works is that whenever you try using PHP Service from the Data Service view, Flash Builder first installs Zend Framework on your server if it is not present already. Then it puts gateway.php and amf_config.ini files in the output folder of the flex project on your server.
    Now this gateway.php actually becomes the endpoint to make amf requests, and can be used by Flash Builder or any other client like a Flex application running on Flash player.
    The gateway.php file does contain a modification of include_path, where it adds the Zend library in the path, but it does not remove anything.
    You make try to dump the path in gateway.php file to debug the cause of this issue.
    Thanks,
    - Gaurav

  • How to bind a PHP service to an ArrayCollection

    Ok. i have used Flash builder data connect wizard to connect to my database and generate some PHP services.
    One of them being a get all service.
    I can drag and drop that onto a datagrid fine and it works.
    But
    Could someone please tell me, with as much detail as possible how to call that service, and bind it to an array/arraycollection.

    Hi,
    I meant to use the code completion when you create the service instance in MXML.
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"    
         xmlns:s="library://ns.adobe.com/flex/spark"
         xmlns:mx="library://ns.adobe.com/flex/mx"
         minWidth="955" minHeight="600"
         xmlns:services="services.*"
         >
         <fx:Script>
              <![CDATA[
                   import mx.collections.ArrayCollection;
                   import mx.rpc.events.FaultEvent;
                   import mx.rpc.events.ResultEvent;
                   [Bindable]private var images:ArrayCollection;
                   protected function myService_resultHandler(event:ResultEvent):void
                        images = event.result as ArrayCollection;
                   protected function myService_faultHandler(event:FaultEvent):void
                        trace(event.fault.faultString);
                   protected function button1_clickHandler(event:MouseEvent):void
                        myService.tblimagesService.getAllTbl_images();
              ]]>
         </fx:Script>
         <s:Button label="Get Data" click="button1_clickHandler(event)"/>
         <fx:Declarations>
              <services:TblImagesService id="myService"
                   result="myService_resultHandler(event)" fault="myService_faultHandler(event)"/>
         </fx:Declarations>
    </s:Application>
    The previous example is modified to include the namespace in the application tag, assuming that yourTblImagesService is in the services folder. If it is different, change the namespace declaration .

Maybe you are looking for