[
https://issues.apache.org/jira/browse/CB-9022?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15432348#comment-15432348
]
ASF subversion and git services commented on CB-9022:
-----------------------------------------------------
Commit 2b6b6d9333848beb05a6128242701261467b5d69 in
cordova-plugin-file-transfer's branch refs/heads/master from [~anemitoff]
[
https://git-wip-us.apache.org/repos/asf?p=cordova-plugin-file-transfer.git;h=2b6b6d9
]
CB-9022 Fix exception thrown by call to remapApi on main thread
When reamapApi was being called for device file it was performing IO on
the WebCore thread and throwing an IllegalState exception. This seems
to have only been a problem when local URL corresponded to a video file.
Moved calls to remapApi for device URLs within new thread context so
that IO is performed on background thread.
This is the same fix as 3ccf9f8 but for `download` operation
This closes #124
> Cordova Android Filetransfer returning null
> -"java.lang.IllegalStateException" - "CordovaInterface.getThreadPool()"
> -------------------------------------------------------------------------------------------------------------------
>
> Key: CB-9022
> URL: https://issues.apache.org/jira/browse/CB-9022
> Project: Apache Cordova
> Issue Type: Bug
> Components: Plugin File Transfer
> Affects Versions: 1.1.0
> Environment: OS: Mac OS X Yosemite
> Node Version: v0.12.0
> Cordova CLI: 5.0.0
> Xcode version: Xcode 6.3.1 Build version 6D1002
> ios-sim version: 3.1.1
> ios-deploy version: 1.4.0
> android 4.0.0-dev
> Reporter: Mike Mullins
> Assignee: Vladimir Kotikov
> Labels: android, cannot-reproduce, wfc
>
> http://stackoverflow.com/questions/30201674/cordova-android-filetransfer-returning-null
> Attempting to do an android FileTransfer, plugin is working on iOS, i can't
> seem to get this to go!
> ADB lgocat output:
> E/PluginManager(23753): Uncaught exception from plugin
> E/PluginManager(23753): java.lang.IllegalStateException: Tried to perform an
> IO operation on the WebCore thread. Use CordovaInterface.getThreadPool()
> instead.
> FileTransferError
> body: null
> code: null
> exception: null
> http_status: null
> source: null
> target: null
> Trying a file transfer and coming back empty....
> Your system information:
> OS: Mac OS X Yosemite
> Node Version: v0.12.0
> Cordova CLI: 5.0.0
> Ionic CLI Version: 1.3.22
> Xcode version: Xcode 6.3.1 Build version 6D1002
> ios-sim version: 3.1.1
> ios-deploy version: 1.4.0
> ngCordova upload: http://ngcordova.com/docs/plugins/fileTransfer/
> Running in Crosswalk, not sure that makes any difference.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]