2 Replies Latest reply on Dec 4, 2014 6:42 AM by nikolov.inn

    Flash Builder 4.6 Mobile Project Using Blazeds & Native Extension

    jayc50

      Hi,

       

      I'm building a Flex Mobile project in FB, that uses BlazeDS to access data through a Spring Project, and also uses an ANE file to access the device's contacts.  I want to debug the application on a device connected with a USB cable, so had to set my root and output folders in Server Settings  using UNC so it can be found from my device thru my wifi network. I also have added the native extension via the Build Path and Packaging tabs.  When I debug from a desktop emulator, things launch OK and the extension correctly tells me it's not supported on the emulator. However, if I debug on the device, FB throws an exception at launch, complaining of a java null pointer exception.  The Eclipse log, in part, looks like this:

       

      com.adobe.flexbuilder.project.AbstractXMLModel$FileReadException: org.eclipse.core.internal.resources.ResourceException: Resource '/NewOne-debug/NewOne-app.xml' does not exist.

                at com.adobe.flexbuilder.project.air.internal.xml.ApplicationXMLModel.<init>(ApplicationXMLM odel.java:102)

                at com.adobe.flexbuilder.project.air.AppXMLCreator.init(AppXMLCreator.java:91)

                at com.adobe.flexbuilder.project.air.AppXMLCreator.<init>(AppXMLCreator.java:80)

                at com.adobe.flexbuilder.project.air.AppXMLCreator.<init>(AppXMLCreator.java:73)

                at com.adobe.flexbuilder.project.ui.utils.ANE.AppXMLFileANEExtensionHandler.getAppXMLCreator (AppXMLFileANEExtensionHandler.java:153)

                at com.adobe.flexbuilder.project.ui.utils.ANE.AppXMLFileANEExtensionHandler.retainExtensionI ds(AppXMLFileANEExtensionHandler.java:315)

                at com.adobe.flexbuilder.project.ui.utils.ANE.ANEController.modifyAppXMLforPackaging(ANECont roller.java:371)

                at com.adobe.flexbuilder.project.ui.utils.ANE.ANEController.modifyAppXMLforPackaging(ANECont roller.java:338)

                at com.adobe.flexbuilder.project.ui.utils.ANE.AbstractANEPackageHandler.modifyAppXMLforPacka ging(AbstractANEPackageHandler.java:91)

                at com.adobe.flexide.launching.multiplatform.launchhandlers.AbstractMultiPlatformLaunchHandl er.applyNativeExtensionDetails(AbstractMultiPlatformLaunchHandler.java:164)

                at com.adobe.flexide.multiplatform.android.launching.ADBLaunchHandler.doPackage(ADBLaunchHan dler.java:424)

                at com.adobe.flexide.multiplatform.android.launching.ADBLaunchHandler.launch(ADBLaunchHandle r.java:250)

                at com.adobe.flexide.launching.multiplatform.MultiPlatformLaunchDelegate.launch(MultiPlatfor mLaunchDelegate.java:191)

                at com.adobe.flexide.launching.AbstractFlexLaunchDelegate.launch(AbstractFlexLaunchDelegate. java:244)

                at com.adobe.flexide.launching.AbstractFlexLaunchDelegate.launch(AbstractFlexLaunchDelegate. java:134)

                at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:854)

                at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:703)

                at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:928)

                at org.eclipse.debug.internal.ui.DebugUIPlugin$8.run(DebugUIPlugin.java:1132)

                at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

      Caused by: org.eclipse.core.internal.resources.ResourceException: Resource '/NewOne-debug/NewOne-app.xml' does not exist.

                at org.eclipse.core.internal.resources.Resource.checkExists(Resource.java:320)

                at org.eclipse.core.internal.resources.Resource.checkAccessible(Resource.java:194)

                at org.eclipse.core.internal.resources.File.getContents(File.java:287)

                at org.eclipse.core.internal.resources.File.getContents(File.java:278)

                at com.adobe.flexbuilder.project.air.internal.xml.ApplicationXMLModel.<init>(ApplicationXMLM odel.java:100)

                ... 19 more

       

      I guess the problem is that when the application tries to run on my device, the extension is not finding the application descriptor file.  Is there anything else I need to do?

       

      I appreciate any help.

       

      Jay