Topic
  • 2 replies
  • Latest Post - ‏2012-03-26T14:43:37Z by SystemAdmin
SystemAdmin
SystemAdmin
570 Posts

Pinned topic [Solved]failed parsing android upgrade instructions; failed initializing ClientProjectBuilder

‏2012-03-22T23:56:24Z |
Hi,

After transporting a Worklight project with a Worklight app from one machine
(with only the Android env installed) to another machine (with only Xcode installed),
via "File > Export > General > Archive file" on the first machine,
then "File > Import > General > Existing Projects into Workspace",
I am getting errors during the "Run As... Build and Deploy All" popup menu
action on the app:

Requested to build 'iphone' but there is no optimization folder 

for it. <div class=
"jive-quote">Application build failed: Failed parsing android upgrade instructions.</div>

At this point, the app has subdirectories for android, ipad,
and the application-descriptor.xml file has elements <android>, <ipad>, <iphone>.

The <iphone> element is probably due to the addition and removal of the iPhone
Worklight environment on the first machine. So I remove that from the
application-descriptor.xml file. The build then still fails:


<div class=
"jive-quote">Application build failed: Failed parsing android upgrade instructions.</div>

So I remove the android folder and the corresponding element from
application-descriptor.xml. The build then still fails:


<div class=
"jive-quote">Application build failed: Failed parsing ipad upgrade instructions.</div>

OK, I remove the ipad directory as well and the corresponding element from
application-descriptor.xml. The build now succeeds - "
deployed successfully
with all environments
" - no wonder, since there were 0 environments to build for.

Now I select the app and do File > New > Worklight Environment, select iPad.
This leads to these messages in the console:


Environment 'iPad' was created. Starting build process: application 'BLZLookup', environment 'ipad' <div class=
"jive-quote">ipad build failed: Failed initializing ClientProjectBuilder</div> Application 'BLZLookup' with environment 'ipad' build finished

And rebuilding it does not work:


Starting build process: application 'BLZLookup', all environments <div class=
"jive-quote">Application build failed: Failed parsing ipad upgrade instructions.</div>

Anyone knows the cause of these errors? Or maybe even a workaround?

--slowhand
  • IdanAdar
    IdanAdar
    288 Posts

    Re: [Solved]failed parsing android upgrade instructions; failed initializing ClientProjectBuilder

    ‏2012-03-25T08:23:10Z  
    Hey slowhand,
    What a mess. :)

    Are the two machines running the same Worklight Server and Studio versions?

    Lets try something...
    I don't know which OS you're running, but in your %tmp% directory, there should be a wlBuildResources folder, try deleting it and building again in Eclipse.
  • SystemAdmin
    SystemAdmin
    570 Posts

    Re: [Solved]failed parsing android upgrade instructions; failed initializing ClientProjectBuilder

    ‏2012-03-26T14:43:37Z  
    > Are the two machines running the same Worklight Server and Studio versions?

    Yes, both machines run Worklight Studio 4.2.2.1283 and Server 4.2.2.

    The problem went away by quitting and restarting the Worklight Studio.

    +> I don't know which OS you're running, but in your %tmp% directory, there
    > should be a wlBuildResources folder, try deleting it+

    (On Mac OS X.) Yes there was a directory \$TMPDIR/wlBuildResources,
    a hierarchy of empty directories. But removing it did not help.

    Thanks.

    --slowhand