You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2015/06/09 20:33:01 UTC

[jira] [Commented] (CB-9074) cordova run windows -- --phone fails with Error: The parameter is incorrect.

    [ https://issues.apache.org/jira/browse/CB-9074?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14579368#comment-14579368 ] 

ASF GitHub Bot commented on CB-9074:
------------------------------------

Github user dblotsky commented on the pull request:

    https://github.com/apache/cordova-windows/pull/86#issuecomment-110457031
  
    Did this get reviewed?


> cordova run windows -- --phone fails with Error: The parameter is incorrect.
> ----------------------------------------------------------------------------
>
>                 Key: CB-9074
>                 URL: https://issues.apache.org/jira/browse/CB-9074
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Windows
>            Reporter: Alexander Sorokin
>
> Steps to repro:
> 1. Create mobilespec application for windows: {{cordova-mobile-spec\createmobilespec\createmobilespec mobilespec --windows}}
> 2. {{cordova run -- --phone}}
> Actual Result:
> {code}
> node cordova-medic/medic/medic.js run --id cordova-windows-phone8.1-42-aegis.apache.org --platform windows --couchdb http://cdv-ms-buildbot.cloudapp.net:5984 --entry cdvtests/index.html --app mobilespec --timeout 740 --winvers phone
>  in dir C:\Users\buildbot\slaves\apache\cordova-windows-phone8_1\. (timeout 800 secs)
>  watching logfiles {}
>  argv: ['node', 'cordova-medic/medic/medic.js', 'run', '--id', 'cordova-windows-phone8.1-42-aegis.apache.org', '--platform', 'windows', '--couchdb', 'http://cdv-ms-buildbot.cloudapp.net:5984', '--entry', 'cdvtests/index.html', '--app', 'mobilespec', '--timeout', '740', '--winvers', 'phone']
>  environment:
>   ADT_HOME=C:\Program Files (x86)\Android\android-sdk
>   ALLUSERSPROFILE=C:\ProgramData
>   ANT_HOME=C:\apache-ant-1.9.3
>   APPDATA=C:\Users\buildbot\AppData\Roaming
>   ASL.LOG=Destination=file
>   BB_BUILDSLAVE="C:\Python27\Scripts\buildslave" 
>   BB_PYTHON="C:\Python27\Scripts\..\python"
>   CLIENTNAME=DBDEATHSTAR
>   COMMONPROGRAMFILES=C:\Program Files\Common Files
>   COMMONPROGRAMFILES(X86)=C:\Program Files (x86)\Common Files
>   COMMONPROGRAMW6432=C:\Program Files\Common Files
>   COMPUTERNAME=DBSTARDESTROYER
>   COMSPEC=C:\windows\system32\cmd.exe
>   FP_NO_HOST_CHECK=NO
>   GIT_HOME=C:\Git
>   HOMEDRIVE=C:
>   HOMEPATH=\Users\buildbot
>   JAVA_HOME=C:\Program Files (x86)\Java\jdk1.7.0_55
>   LOCALAPPDATA=C:\Users\buildbot\AppData\Local
>   LOGONSERVER=\\DBSTARDESTROYER
>   NUMBER_OF_PROCESSORS=12
>   OS=Windows_NT
>   PATH=C:\ProgramData\Oracle\Java\javapath;C:\Python27\;C:\Python27\Scripts;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\Program Files\Common Files\Microsoft Shared\Microsoft Online Services;C:\Program Files (x86)\Common Files\Microsoft Shared\Microsoft Online Services;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Git\cmd;C:\Git\bin;C:\Program Files\nodejs\;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.0\;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files (x86)\Java\jdk1.7.0_55\bin;C:\Program Files (x86)\Android\android-sdk\tools;C:\Program Files (x86)\Android\android-sdk\platform-tools;C:\apache-ant-1.9.3\bin;C:\Git\cmd
>   PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
>   PROCESSOR_ARCHITECTURE=AMD64
>   PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 45 Stepping 7, GenuineIntel
>   PROCESSOR_LEVEL=6
>   PROCESSOR_REVISION=2d07
>   PROGRAMDATA=C:\ProgramData
>   PROGRAMFILES=C:\Program Files
>   PROGRAMFILES(X86)=C:\Program Files (x86)
>   PROGRAMW6432=C:\Program Files
>   PROMPT=$P$G
>   PSMODULEPATH=C:\windows\system32\WindowsPowerShell\v1.0\Modules\;c:\Program Files\Microsoft Security Client\MpProvider\
>   PUBLIC=C:\Users\Public
>   PWD=C:\Users\buildbot\slaves\apache\cordova-windows-phone8_1
>   SESSIONNAME=RDP-Tcp#9
>   SYSTEMDRIVE=C:
>   SYSTEMROOT=C:\windows
>   SYSTEMTYPE=other
>   TEMP=C:\Users\buildbot\AppData\Local\Temp
>   TMP=C:\Users\buildbot\AppData\Local\Temp
>   UATDATA=C:\Windows\CCM\UATData\D9F8C395-CAB8-491d-B8AC-179A1FE1BE77
>   USERDOMAIN=DBSTARDESTROYER
>   USERDOMAIN_ROAMINGPROFILE=DBSTARDESTROYER
>   USERNAME=buildbot
>   USERPROFILE=C:\Users\buildbot
>   VS110COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\Tools\
>   VS120COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools\
>   WINDIR=C:\windows
>  using PTY: False
> [MEDIC LOG Wed, 27 May 2015 07:22:16 GMT] Writing medic.json to mobilespec
> [MEDIC LOG Wed, 27 May 2015 07:22:16 GMT]     sha:     cordova-windows-phone8.1-42-aegis.apache.org
> [MEDIC LOG Wed, 27 May 2015 07:22:16 GMT]     couchdb: http://cdv-ms-buildbot.cloudapp.net:5984
> [MEDIC LOG Wed, 27 May 2015 07:22:16 GMT] Setting entry point to cdvtests/index.html in config.xml
> [MEDIC LOG Wed, 27 May 2015 07:22:16 GMT] Adding whitelist rule for CouchDB host: http://cdv-ms-buildbot.cloudapp.net:5984
> [MEDIC LOG Wed, 27 May 2015 07:22:16 GMT] Adding CSP rule for CouchDB host: http://cdv-ms-buildbot.cloudapp.net:5984
> [MEDIC LOG Wed, 27 May 2015 07:22:16 GMT] setting target store version to 8.1
> C:\Users\buildbot\slaves\apache\cordova-windows-phone8_1\mobilespec C:\Users\buildbot\slaves\apache\cordova-windows-phone8_1
> [MEDIC LOG Wed, 27 May 2015 07:22:16 GMT] running:
> [MEDIC LOG Wed, 27 May 2015 07:22:16 GMT]     cordova.bat build windows -- --phone
> C:\Users\buildbot\slaves\apache\cordova-windows-phone8_1\mobilespec>node  C:\Users\buildbot\slaves\apache\cordova-windows-phone8_1\cordova-cli\bin\cordova build windows -- --phone 
> Access rules must begin with "https://", the following rule will be ignored: http://audio.ibeat.org
> Access rules must begin with "https://", the following rule will be ignored: http://cordova-filetransfer.jitsu.com
> Access rules must begin with "https://", the following rule will be ignored: http://whatheaders.com
> Access rules must begin with "https://", the following rule will be ignored: http://*.apache.org
> Access rules must begin with "https://", the following rule will be ignored: http://www.google.com
> Access rules must begin with "https://", the following rule will be ignored: http://google.co.uk
> Access rules must begin with "https://", the following rule will be ignored: http://techslides.com
> Access rules must begin with "https://", the following rule will be ignored: httpssss://example.com
> Access rules must begin with "https://", the following rule will be ignored: http://cdv-ms-buildbot.cloudapp.net:5984
> Access rules must begin with "https://", the following rule will be ignored: http://audio.ibeat.org
> Access rules must begin with "https://", the following rule will be ignored: http://cordova-filetransfer.jitsu.com
> Access rules must begin with "https://", the following rule will be ignored: http://whatheaders.com
> Access rules must begin with "https://", the following rule will be ignored: http://*.apache.org
> Access rules must begin with "https://", the following rule will be ignored: http://www.google.com
> Access rules must begin with "https://", the following rule will be ignored: http://google.co.uk
> Access rules must begin with "https://", the following rule will be ignored: http://techslides.com
> Access rules must begin with "https://", the following rule will be ignored: httpssss://example.com
> Access rules must begin with "https://", the following rule will be ignored: http://cdv-ms-buildbot.cloudapp.net:5984
> Access rules must begin with "https://", the following rule will be ignored: http://audio.ibeat.org
> Access rules must begin with "https://", the following rule will be ignored: http://cordova-filetransfer.jitsu.com
> Access rules must begin with "https://", the following rule will be ignored: http://whatheaders.com
> Access rules must begin with "https://", the following rule will be ignored: http://*.apache.org
> Access rules must begin with "https://", the following rule will be ignored: http://www.google.com
> Access rules must begin with "https://", the following rule will be ignored: http://google.co.uk
> Access rules must begin with "https://", the following rule will be ignored: http://techslides.com
> Access rules must begin with "https://", the following rule will be ignored: httpssss://example.com
> Access rules must begin with "https://", the following rule will be ignored: http://cdv-ms-buildbot.cloudapp.net:5984
> Running command: C:\Users\buildbot\slaves\apache\cordova-windows-phone8_1\mobilespec\platforms\windows\cordova\build.bat --phone
> MSBuildToolsPath: C:\Program Files (x86)\MSBuild\12.0\bin\amd64\
> Building project: C:\Users\buildbot\slaves\apache\cordova-windows-phone8_1\mobilespec\platforms\windows\CordovaApp.Phone.jsproj
> 	Configuration : debug
> 	Platform      : anycpu
>   Vibration -> C:\Users\buildbot\slaves\apache\cordova-windows-phone8_1\mobilespec\plugins\cordova-plugin-vibration\src\windows\Vibration\bin\Debug\Vibration.winmd
>   CordovaApp.Phone -> C:\Users\buildbot\slaves\apache\cordova-windows-phone8_1\mobilespec\platforms\windows\build\phone\debug\anycpu\CordovaApp.Phone_0.0.1.0_Bundle\CordovaApp.Phone_0.0.1.0_anycpu_debug.appx (unsigned)
>   CordovaApp.Phone -> C:\Users\buildbot\slaves\apache\cordova-windows-phone8_1\mobilespec\platforms\windows\AppPackages\CordovaApp.Phone_0.0.1.0_debug_Test\CordovaApp.Phone_0.0.1.0_anycpu_debug.appxsym
>   CordovaApp.Phone -> C:\Users\buildbot\slaves\apache\cordova-windows-phone8_1\mobilespec\platforms\windows\build\phone\debug\anycpu\CordovaApp.Phone_0.0.1.0_Bundle\CordovaApp.Phone_0.0.1.0_scale-100.appx (unsigned)
>   CordovaApp.Phone -> C:\Users\buildbot\slaves\apache\cordova-windows-phone8_1\mobilespec\platforms\windows\AppPackages\CordovaApp.Phone_0.0.1.0_debug_Test\CordovaApp.Phone_0.0.1.0_AnyCPU_debug.appxbundle
>   CordovaApp.Phone -> C:\Users\buildbot\slaves\apache\cordova-windows-phone8_1\mobilespec\platforms\windows\AppPackages\CordovaApp.Phone_0.0.1.0_AnyCPU_bundle_debug.appxupload
>   Your package has been successfully created.
> [MEDIC LOG Wed, 27 May 2015 07:22:32 GMT] running:
> [MEDIC LOG Wed, 27 May 2015 07:22:32 GMT]     cordova.bat run windows -- --phone
> C:\Users\buildbot\slaves\apache\cordova-windows-phone8_1
> [MEDIC LOG Wed, 27 May 2015 07:22:32 GMT] waiting for test results ...
> C:\Users\buildbot\slaves\apache\cordova-windows-phone8_1\mobilespec>node  C:\Users\buildbot\slaves\apache\cordova-windows-phone8_1\cordova-cli\bin\cordova run windows -- --phone 
> Access rules must begin with "https://", the following rule will be ignored: http://audio.ibeat.org
> Access rules must begin with "https://", the following rule will be ignored: http://cordova-filetransfer.jitsu.com
> Access rules must begin with "https://", the following rule will be ignored: http://whatheaders.com
> Access rules must begin with "https://", the following rule will be ignored: http://*.apache.org
> Access rules must begin with "https://", the following rule will be ignored: http://www.google.com
> Access rules must begin with "https://", the following rule will be ignored: http://google.co.uk
> Access rules must begin with "https://", the following rule will be ignored: http://techslides.com
> Access rules must begin with "https://", the following rule will be ignored: httpssss://example.com
> Access rules must begin with "https://", the following rule will be ignored: http://cdv-ms-buildbot.cloudapp.net:5984
> Access rules must begin with "https://", the following rule will be ignored: http://audio.ibeat.org
> Access rules must begin with "https://", the following rule will be ignored: http://cordova-filetransfer.jitsu.com
> Access rules must begin with "https://", the following rule will be ignored: http://whatheaders.com
> Access rules must begin with "https://", the following rule will be ignored: http://*.apache.org
> Access rules must begin with "https://", the following rule will be ignored: http://www.google.com
> Access rules must begin with "https://", the following rule will be ignored: http://google.co.uk
> Access rules must begin with "https://", the following rule will be ignored: http://techslides.com
> Access rules must begin with "https://", the following rule will be ignored: httpssss://example.com
> Access rules must begin with "https://", the following rule will be ignored: http://cdv-ms-buildbot.cloudapp.net:5984
> Access rules must begin with "https://", the following rule will be ignored: http://audio.ibeat.org
> Access rules must begin with "https://", the following rule will be ignored: http://cordova-filetransfer.jitsu.com
> Access rules must begin with "https://", the following rule will be ignored: http://whatheaders.com
> Access rules must begin with "https://", the following rule will be ignored: http://*.apache.org
> Access rules must begin with "https://", the following rule will be ignored: http://www.google.com
> Access rules must begin with "https://", the following rule will be ignored: http://google.co.uk
> Access rules must begin with "https://", the following rule will be ignored: http://techslides.com
> Access rules must begin with "https://", the following rule will be ignored: httpssss://example.com
> Access rules must begin with "https://", the following rule will be ignored: http://cdv-ms-buildbot.cloudapp.net:5984
> Running command: C:\Users\buildbot\slaves\apache\cordova-windows-phone8_1\mobilespec\platforms\windows\cordova\run.bat --phone
> MSBuildToolsPath: C:\Program Files (x86)\MSBuild\12.0\bin\amd64\
> Building project: C:\Users\buildbot\slaves\apache\cordova-windows-phone8_1\mobilespec\platforms\windows\CordovaApp.Phone.jsproj
> 	Configuration : debug
> 	Platform      : anycpu
>   Vibration -> C:\Users\buildbot\slaves\apache\cordova-windows-phone8_1\mobilespec\plugins\cordova-plugin-vibration\src\windows\Vibration\bin\Debug\Vibration.winmd
>   CordovaApp.Phone -> C:\Users\buildbot\slaves\apache\cordova-windows-phone8_1\mobilespec\platforms\windows\build\phone\debug\anycpu\CordovaApp.Phone_0.0.1.0_Bundle\CordovaApp.Phone_0.0.1.0_anycpu_debug.appx (unsigned)
>   CordovaApp.Phone -> C:\Users\buildbot\slaves\apache\cordova-windows-phone8_1\mobilespec\platforms\windows\AppPackages\CordovaApp.Phone_0.0.1.0_debug_Test\CordovaApp.Phone_0.0.1.0_anycpu_debug.appxsym
>   CordovaApp.Phone -> C:\Users\buildbot\slaves\apache\cordova-windows-phone8_1\mobilespec\platforms\windows\build\phone\debug\anycpu\CordovaApp.Phone_0.0.1.0_Bundle\CordovaApp.Phone_0.0.1.0_scale-100.appx (unsigned)
>   CordovaApp.Phone -> C:\Users\buildbot\slaves\apache\cordova-windows-phone8_1\mobilespec\platforms\windows\AppPackages\CordovaApp.Phone_0.0.1.0_debug_Test\CordovaApp.Phone_0.0.1.0_AnyCPU_debug.appxbundle
>   CordovaApp.Phone -> C:\Users\buildbot\slaves\apache\cordova-windows-phone8_1\mobilespec\platforms\windows\AppPackages\CordovaApp.Phone_0.0.1.0_AnyCPU_bundle_debug.appxupload
>   Your package has been successfully created.
> Deploying phone package to device:
> C:\Users\buildbot\slaves\apache\cordova-windows-phone8_1\mobilespec\platforms\windows\AppPackages\CordovaApp.Phone_0.0.1.0_debug_Test\CordovaApp.Phone_0.0.1.0_AnyCPU_debug.appxbundle
> Attempting to remove previously installed application...
> Error: Deployment failed because no Windows Phone was detected. Make sure a phone is connected and powered on. 
> Installing application...
> Error: Deployment failed because no Windows Phone was detected. Make sure a phone is connected and powered on. 
> Installing application...
> Error: Deployment failed because no Windows Phone was detected. Make sure a phone is connected and powered on. 
> Attempting to remove previously installed application...
> Error: The application is not installed.
> Installing application...
> Error: The parameter is incorrect.
> AppDeployCmd - Help
> Syntax: 
> AppDeployCmd.exe <cmd[:param]> <Product-id/app FileName> <targetdevice[:param]> 
>   <cmd[:param]> - Specifies the command to be executed (one of the following)
>     /install          - installs the application on the device.
>                         (requires package filename)                              
>     /installlaunch    - installs and launches the application on the device.
>                         (requires package filename)
>     /update           - updates the application already installed on device.
>                         (requires package filename)
>     /updatelaunch     - updates and launches the application already installed on device.
>                         (requires package filename)
>     /launch           - launches the application already installed on the device.
>                         (requires product-id)
>     /uninstall        - uninstalls the application from the device.
>                         (requires product-id)
>     /EnumerateDevices - lists the valid device targets along with the
>                            device index for each device.
>   <product-id> - Specifies the GUID of the product. This is located in
>                  AppxManifest.xml for APPX projects 
>                  or WMAppManifest.xml for XAP projects.
>   <app filename> - Specifies the full path of the app to be installed or updated.
>   </targetdevice[:param]> - Specifies the target device (one of the following):
>     xd                - default emulator
>     de                - Windows Phone device connected to the desktop
>     n                 - device listed at index n. To get the list of devices
>                         use the following command:
>                         "AppDeployCmd.exe /EnumerateDevices"
>   </force[:INTERNAL|SDCARD]> - forces an install to internal storage or to SD card storage.
>                                Only valid with /install and /installlaunch.
> Examples: (assuming product id is f8ce6878-0aeb-497f-bcf4-65be961d4bba 
>           and FilePath is D:\PhoneApp1.xap or D:\PhoneApp2.appx)
> AppDeployCmd.exe  /install D:\PhoneApp2.appx /targetdevice:xd
>       - installs PhoneApp1 on the default emulator.
> AppDeployCmd.exe  /installlaunch D:\PhoneApp1.xap /targetdevice:xd
>       - installs PhoneApp1 on the default emulator and then launches it.
> AppDeployCmd.exe  /launch f8ce6878-0aeb-497f-bcf4-65be961d4bba /targetdevice:de 
>       - launches the app with specified product id on the device.
> AppDeployCmd.exe  /update D:\PhoneApp1.xap /targetdevice:2
>       - updates PhoneApp1 already installed on the device
>         specified by device index 2. To get the list of valid indices use
>         the EnumerateDevices command.
> AppDeployCmd.exe  /updatelaunch D:\PhoneApp2.appx /targetdevice:de
>       - updates PhoneApp1 already installed on the device and then launches it.
> AppDeployCmd.exe  /uninstall f8ce6878-0aeb-497f-bcf4-65be961d4bba /targetdevice:xd 
>       - uninstalls the app with specified product id from the default emulator.
> AppDeployCmd.exe  /EnumerateDevices
>       - enumerates the list of valid device targets along with the
>         corresponding device index for each device.
> Unexpected error from installation:
> Error code 2147942487 for command: C:\Program Files (x86)\Microsoft SDKs\Windows Phone\v8.1\Tools\AppDeploy\AppDeployCmd.exe with args: /installlaunch,C:\Users\buildbot\slaves\apache\cordova-windows-phone8_1\mobilespec\platforms\windows\AppPackages\CordovaApp.Phone_0.0.1.0_debug_Test\CordovaApp.Phone_0.0.1.0_AnyCPU_debug.appxbundle,/targetdevice:xd
> You may have previously installed the app with an earlier version of cordova-windows.
> Ensure the app is uninstalled from the phone and then try to run again.
> ERROR: Error code 2147942487 for command: C:\Program Files (x86)\Microsoft SDKs\Windows Phone\v8.1\Tools\AppDeploy\AppDeployCmd.exe with args: /installlaunch,C:\Users\buildbot\slaves\apache\cordova-windows-phone8_1\mobilespec\platforms\windows\AppPackages\CordovaApp.Phone_0.0.1.0_debug_Test\CordovaApp.Phone_0.0.1.0_AnyCPU_debug.appxbundle,/targetdevice:xd
> ERROR running one or more of the platforms: Error: C:\Users\buildbot\slaves\apache\cordova-windows-phone8_1\mobilespec\platforms\windows\cordova\run.bat: Command failed with exit code 2
> You may not have the required environment or OS to run this project
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org