Topic
  • 3 replies
  • Latest Post - ‏2012-12-10T16:38:27Z by SystemAdmin
XV3K_Brandon_Murphy
XV3K_Brandon_Murphy
11 Posts

Pinned topic Worklight 5.0.5 and Cordova

‏2012-12-10T16:29:27Z |
I've successfully upgraded my plugin to 5.0.5. However, after opening up my existing project, I was expecting some sort of project migration wizard to have executed. I would like to start using Cordova 2.2, but my project still has 1.6.

Is there instructions for migrating an existing project to the frameworks supported in 5.0.5? Is this supposed to be an automatic process?

Thanks,
Brandon
  • IdanAdar
    IdanAdar
    741 Posts

    Re: Worklight 5.0.5 and Cordova

    ‏2012-12-10T16:33:45Z  
    Hi,

    There appears to an unfortunate issue when upgrading 5.0.0.3 to 5.0.5; the upgrade will seemingly pass, however it will not properly update the plug-in.
    This is being actively investigated.

    Two options:
    1. uninstall Worklight plug-in, install new version
    2. new Eclipse. ...

    Sorry for that. We are looking into it.

    Idan Adar
    QA Engineer
    IBM Worklight Mobile Platform
  • XV3K_Brandon_Murphy
    XV3K_Brandon_Murphy
    11 Posts

    Re: Worklight 5.0.5 and Cordova

    ‏2012-12-10T16:35:56Z  
    I will give that a try.

    Just noticed that eclipse is throwing errors in its error log about a failed upgrade:

    com.worklight.builder.exception.WorklightBuildException: Failed parsing iphone upgrade instructions.
    at com.worklight.builder.environment.MobileApplicationBuilder.<init>(MobileApplicationBuilder.java:105)
    at com.worklight.builder.environment.IOSBuilder.<init>(IOSBuilder.java:94)
    at com.worklight.builder.environment.IPhoneBuilder.<init>(IPhoneBuilder.java:26)
    at com.worklight.builder.environment.EnvironmentBuilderFactory.get(EnvironmentBuilderFactory.java:61)
    at com.worklight.builder.sourcemanager.handlers.project.AbstractProjectUpgradeHandler.upgradeApplications(AbstractProjectUpgradeHandler.java:96)
    at com.worklight.builder.sourcemanager.handlers.project.AbstractProjectUpgradeHandler.handleSource(AbstractProjectUpgradeHandler.java:45)
    at com.worklight.builder.sourcemanager.handlers.project.AbstractAuthenticationConfigUpgradeHandler.handleSource(AbstractAuthenticationConfigUpgradeHandler.java:43)
    at com.worklight.builder.sourcemanager.handlers.project.AbstractProjectUpgradeHandler.doHandleSource(AbstractProjectUpgradeHandler.java:50)
    at com.worklight.builder.sourcemanager.UpgradeInstruction.upgradeResource(UpgradeInstruction.java:34)
    at com.worklight.builder.sourcemanager.AbstractUpgrader.performUpgrade(AbstractUpgrader.java:147)
    at com.worklight.builder.sourcemanager.AbstractUpgrader.upgrade(AbstractUpgrader.java:98)
    at com.worklight.studio.plugin.upgrader.WLUpgrader.upgradeExistingProject(WLUpgrader.java:84)
    at com.worklight.studio.plugin.upgrader.WLUpgrader.runInWorkspace(WLUpgrader.java:48)
    at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
    Caused by: javax.xml.transform.TransformerException: java.io.FileNotFoundException: /var/folders/fb/cxy875w51gd5vqjq81p7954m0000gs/T/wlBuildResources/environments/ios/upgradeinstructions.xml (No such file or directory)
    at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:735)
    at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:336)
    at com.worklight.builder.sourcemanager.AbstractUpgrader.parseUpgradeInstructions(AbstractUpgrader.java:71)
    at com.worklight.builder.sourcemanager.MobileProjectUpgrader.<init>(MobileProjectUpgrader.java:55)
    at com.worklight.builder.environment.MobileApplicationBuilder.<init>(MobileApplicationBuilder.java:100)
    ... 14 more
    Caused by: java.io.FileNotFoundException: /var/folders/fb/cxy875w51gd5vqjq81p7954m0000gs/T/wlBuildResources/environments/ios/upgradeinstructions.xml (No such file or directory)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(FileInputStream.java:120)
    at java.io.FileInputStream.<init>(FileInputStream.java:79)
    at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:70)
    at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:161)
    at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
    at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown Source)
    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
    at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transformIdentity(TransformerImpl.java:627)
    at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:723)
    ... 18 more
  • SystemAdmin
    SystemAdmin
    2327 Posts

    Re: Worklight 5.0.5 and Cordova

    ‏2012-12-10T16:38:27Z  
    Hi Brandon

    I uninstalled all plug in of WL and installed new 5.0.5. You have to create a new workspace to import your old project. The migration will start after you import. I got some problem with iPhone and iPad when migrating. Also even my Android project migrated successfully, it is shown blank white screen now. Still struggling to make it run...

    Jerry