Using 5.2.0GA SDK, also tried with 5.1.2GA, the HTTPClient does not support the PATCH method. Found a JIRA ticket that says resolved at 5.1.2 but still throws the error:
[ERROR] : TiHTTPClient: (TiHttpClient-19) [13162,99993] HTTP Error (java.net.ProtocolException): Unknown method 'PATCH'; must be one of [OPTIONS, GET, HEAD, POST, PUT, DELETE, TRACE]
[ERROR] : TiHTTPClient: java.net.ProtocolException: Unknown method 'PATCH'; must be one of [OPTIONS, GET, HEAD, POST, PUT, DELETE, TRACE]
[ERROR] : TiHTTPClient: at java.net.HttpURLConnection.setRequestMethod(HttpURLConnection.java:685)
[ERROR] : TiHTTPClient: at com.android.okhttp.internal.http.HttpsURLConnectionImpl.setRequestMethod(HttpsURLConnectionImpl.java:144)
[ERROR] : TiHTTPClient: at ti.modules.titanium.network.TiHTTPClient$ClientRunnable.run(TiHTTPClient.java:1137)
[ERROR] : TiHTTPClient: at java.lang.Thread.run(Thread.java:841)
Any thoughts or work arounds?
Related
I am getting "Failed to run dexer:" while trying to build for Android using Appcelerator.
Appc Studio 5.0.0, Titanium SDK: 7.0.1
Error is as given below:
[ERROR] : Failed to run dexer:
[ERROR] :
[ERROR] : Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/annotation/AnimRes;
[ERROR] : Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/annotation/AnimatorRes;
[ERROR] : Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/annotation/AnyRes;
[ERROR] : Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/annotation/ArrayRes;
[ERROR] : Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/annotation/AttrRes;
[ERROR] : Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/annotation/BinderThread;
[ERROR] : Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/annotation/BoolRes;
[ERROR] : Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/annotation/CallSuper;
[ERROR] : Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/annotation/CheckResult;
[ERROR] :
[ERROR] : UNEXPECTED TOP-LEVEL EXCEPTION:
[ERROR] : java.lang.RuntimeException: Translation has been interrupted
[ERROR] : at com.android.dx.command.dexer.Main.processAllFiles(Main.java:615)
[ERROR] : at com.android.dx.command.dexer.Main.runMultiDex(Main.java:368)
[ERROR] : at com.android.dx.command.dexer.Main.runDx(Main.java:289)
[ERROR] : at com.android.dx.command.dexer.Main.main(Main.java:247)
[ERROR] : at com.android.dx.command.Main.main(Main.java:94)
[ERROR] : Caused by: java.lang.InterruptedException: Too many errors
[ERROR] : at com.android.dx.command.dexer.Main.processAllFiles(Main.java:607)
[ERROR] : ... 4 more
[ERROR] Application Installer abnormal process termination. Process exit value was 1
Not sure how we can enable Multi dex in appcelerator.
As of now, you can only cross-check which modules are using same set of libraries with different versions & then use a single version of library for all conflicting modules.
e.g. If you use ti.map & firebase.core, then you can use ti.playservices for both modules.
But in your case, the conflicting libraries are from Annotation lib, then you can either provide a list of all your modules here so we can check which one is causing this issue, or you can check yourself for conflicting modules & follow above process to resolve them.
I try to compile apk using Appcelerator but i get this error and i using module ti.cloudpush. How to solve it.
Currently I'm using Titanium sdk: 5.2.0.GA
[ERROR] : Failed to run dexer:
[ERROR] :
[ERROR] : Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/dynamic/LifecycleDelegate;
[ERROR] : Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/auth/GoogleAuthUtil;
[ERROR] : Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/auth/UserRecoverableAuthException;
[ERROR] : Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/auth/GoogleAuthException;
[ERROR] : Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/auth/GooglePlayServicesAvailabilityException;
[ERROR] : Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/auth/UserRecoverableNotifiedException;
[ERROR] : Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/common/GooglePlayServicesUtil;
[ERROR] : Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/common/UserRecoverableException;
[ERROR] : Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/common/AccountPicker;
[ERROR] :
[ERROR] : UNEXPECTED TOP-LEVEL EXCEPTION:
[ERROR] : java.lang.RuntimeException: Translation has been interrupted
[ERROR] : at com.android.dx.command.dexer.Main.processAllFiles(Main.java:608)
[ERROR] : at com.android.dx.command.dexer.Main.runMonoDex(Main.java:311)
[ERROR] : at com.android.dx.command.dexer.Main.run(Main.java:277)
[ERROR] : at com.android.dx.command.dexer.Main.main(Main.java:245)
[ERROR] : at com.android.dx.command.Main.main(Main.java:106)
[ERROR] : Caused by: java.lang.InterruptedException: Too many errors
[ERROR] : at com.android.dx.command.dexer.Main.processAllFiles(Main.java:600)
[ERROR] : ... 4 more
Here all the module that I used i the project
<modules>
<module platform="commonjs">ti.cloud</module>
<module platform="android">dk.napp.drawer</module>
<module platform="android">ti.admob</module>
<module platform="android">ti.ga</module>
<module platform="android">ti.cloudpush</module>
</modules>
Thanks
Google play services is included in ti.cloudpush, ti.admob, and ti.ga. You have conflicting versions of the library.
My recommendation is to select one version of google-play-services.jar and forcibly replace the jar files in all the modules with this one version.
I actually copied the ti.cloudpush module into my project directory so that I can maintain it directly (and keep the proper version of google-play-services.jar checked into my source code repository).
I have not had any problem if I replace the jar file with a newer version. You can cross-reference your jar file versions against this document: http://www.smorgasbork.com/2015/01/05/google-play-services-sdk-version-history/
BTW -- there is another module available for google analytics. I have used https://github.com/Sitata/titanium-google-analytics with much success. I'm not sure what the difference is between that one and Ti.GA (although I think Ben Bahrenburg is a great Ti developer, so I might have to look into that one).
Probably the problem is with the embedded google play services into cloudpush and admob, try to remove one of this module and see if it compile.
I am developing an application for titanium android/ios in which I need to read the events from Google Calendar.
I started with OAuth 2.0 for titanium and got the access Token, I can read no of calendar and events too, but I found HttpResponseException error app is going crash and give us some error are shown below.
[ERROR] : TiHttpClient: (TiHttpClient-9) [495,189738] HTTP Error (org.apache.http.client.HttpResponseException): Not Found
[ERROR] : TiHttpClient: org.apache.http.client.HttpResponseException: Not Found
[ERROR] : TiHttpClient: at ti.modules.titanium.network.TiHTTPClient$LocalResponseHandler.handleResponse(TiHTTPClient.java:275)
[ERROR] : TiHttpClient: at ti.modules.titanium.network.TiHTTPClient$LocalResponseHandler.handleResponse(TiHTTPClient.java:219)
[ERROR] : TiHttpClient: at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:657)
[ERROR] : TiHttpClient: at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:637)
[ERROR] : TiHttpClient: at ti.modules.titanium.network.TiHTTPClient$ClientRunnable.run(TiHTTPClient.java:1334)
[ERROR] : TiHttpClient: at java.lang.Thread.run(Thread.java:856)
Does anyone know what is causing this error?
I checkout patch 10 (Carbon Core 4.2.0) from
https://svn.wso2.org/repos/wso2/carbon/kernel/branches/4.2.0/patches/patch0010/core/org.wso2.carbon.core/4.2.0
and when I want to build it I get this error.
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project org.wso2.carbon.core: Compilation failure: Compilation failure:
[ERROR] WSO2_Carbon_4.2.0\patches\patch0010\core\org.wso2.carbon.core\4.2.0\src\main\java\org\wso2\carbon\core\clustering\hazelcast\HazelcastClusteringAgent.java:[24,27] error: cannot find symbol
[ERROR] WSO2_Carbon_4.2.0\patches\patch0010\core\org.wso2.carbon.core\4.2.0\src\main\java\org\wso2\carbon\core\clustering\hazelcast\aws\AWSBasedMembershipScheme.java:[26,25] error: cannot find symbol
[ERROR] WSO2_Carbon_4.2.0\patches\patch0010\core\org.wso2.carbon.core\4.2.0\src\main\java\org\wso2\carbon\core\clustering\hazelcast\aws\AWSBasedMembershipScheme.java:[155,43] error: cannot find symbol
[ERROR] WSO2_Carbon_4.2.0\patches\patch0010\core\org.wso2.carbon.core\4.2.0\src\main\java\org\wso2\carbon\core\clustering\hazelcast\wka\WKABasedMembershipScheme.java:[27,25] error: cannot find symbol
[ERROR] WSO2_Carbon_4.2.0\patches\patch0010\core\org.wso2.carbon.core\4.2.0\src\main\java\org\wso2\carbon\core\clustering\hazelcast\wka\WKABasedMembershipScheme.java:[29,25] error: cannot find symbol
[ERROR] WSO2_Carbon_4.2.0\patches\patch0010\core\org.wso2.carbon.core\4.2.0\src\main\java\org\wso2\carbon\core\clustering\hazelcast\wka\WKABasedMembershipScheme.java:[178,43] error: cannot find symbol
[ERROR] WSO2_Carbon_4.2.0\patches\patch0010\core\org.wso2.carbon.core\4.2.0\src\main\java\org\wso2\carbon\core\clustering\hazelcast\wka\WKABasedMembershipScheme.java:[208,31] error: cannot find symbol
[ERROR] WSO2_Carbon_4.2.0\patches\patch0010\core\org.wso2.carbon.core\4.2.0\src\main\java\org\wso2\carbon\core\clustering\hazelcast\wka\WKABasedMembershipScheme.java:[213,31] error: cannot find symbol
[ERROR] WSO2_Carbon_4.2.0\patches\patch0010\core\org.wso2.carbon.core\4.2.0\src\main\java\org\wso2\carbon\core\clustering\hazelcast\HazelcastDistributedMapProvider.java:[24,25] error: cannot find symbol
[ERROR] WSO2_Carbon_4.2.0\patches\patch0010\core\org.wso2.carbon.core\4.2.0\src\main\java\org\wso2\carbon\core\clustering\hazelcast\HazelcastGroupManagementAgent.java:[32,25] error: cannot find symbol
[ERROR] WSO2_Carbon_4.2.0\patches\patch0010\core\org.wso2.carbon.core\4.2.0\src\main\java\org\wso2\carbon\core\clustering\hazelcast\HazelcastGroupManagementAgent.java:[34,25] error: cannot find symbol
[ERROR] WSO2_Carbon_4.2.0\patches\patch0010\core\org.wso2.carbon.core\4.2.0\src\main\java\org\wso2\carbon\core\clustering\hazelcast\HazelcastGroupManagementAgent.java:[205,43] error: cannot find symbol
[ERROR] WSO2_Carbon_4.2.0\patches\patch0010\core\org.wso2.carbon.core\4.2.0\src\main\java\org\wso2\carbon\core\clustering\hazelcast\HazelcastGroupManagementAgent.java:[237,31] error: cannot find symbol
[ERROR] WSO2_Carbon_4.2.0\patches\patch0010\core\org.wso2.carbon.core\4.2.0\src\main\java\org\wso2\carbon\core\clustering\hazelcast\HazelcastGroupManagementAgent.java:[242,31] error: cannot find symbol
[ERROR] WSO2_Carbon_4.2.0\patches\patch0010\core\org.wso2.carbon.core\4.2.0\src\main\java\org\wso2\carbon\core\clustering\hazelcast\multicast\MulticastBasedMembershipScheme.java:[24,25] error: cannot find symbol
[ERROR] WSO2_Carbon_4.2.0\patches\patch0010\core\org.wso2.carbon.core\4.2.0\src\main\java\org\wso2\carbon\core\clustering\hazelcast\multicast\MulticastBasedMembershipScheme.java:[144,43] error: cannot find symbol
[ERROR] WSO2_Carbon_4.2.0\patches\patch0010\core\org.wso2.carbon.core\4.2.0\src\main\java\org\wso2\carbon\core\clustering\hazelcast\HazelcastClusteringAgent.java:[150,40] error: cannot find symbol
[ERROR] WSO2_Carbon_4.2.0\patches\patch0010\core\org.wso2.carbon.core\4.2.0\src\main\java\org\wso2\carbon\core\clustering\hazelcast\wka\WKABasedMembershipScheme.java:[177,8] error: method does not override or implement a method from a supertype
[ERROR] WSO2_Carbon_4.2.0\patches\patch0010\core\org.wso2.carbon.core\4.2.0\src\main\java\org\wso2\carbon\core\clustering\hazelcast\wka\WKABasedMembershipScheme.java:[207,8] error: method does not override or implement a method from a supertype
[ERROR] WSO2_Carbon_4.2.0\patches\patch0010\core\org.wso2.carbon.core\4.2.0\src\main\java\org\wso2\carbon\core\clustering\hazelcast\wka\WKABasedMembershipScheme.java:[212,8] error: method does not override or implement a method from a supertype
[ERROR] WSO2_Carbon_4.2.0\patches\patch0010\core\org.wso2.carbon.core\4.2.0\src\main\java\org\wso2\carbon\core\clustering\hazelcast\HazelcastDistributedMapProvider.java:[100,43] error: cannot find symbol
[ERROR] WSO2_Carbon_4.2.0\patches\patch0010\core\org.wso2.carbon.core\4.2.0\src\main\java\org\wso2\carbon\core\clustering\hazelcast\HazelcastDistributedMapProvider.java:[105,43] error: cannot find symbol
[ERROR] WSO2_Carbon_4.2.0\patches\patch0010\core\org.wso2.carbon.core\4.2.0\src\main\java\org\wso2\carbon\core\clustering\hazelcast\HazelcastDistributedMapProvider.java:[101,27] error: cannot find symbol
[ERROR] WSO2_Carbon_4.2.0\patches\patch0010\core\org.wso2.carbon.core\4.2.0\src\main\java\org\wso2\carbon\core\clustering\hazelcast\HazelcastDistributedMapProvider.java:[99,20] error: method does not override or implement a method from a supertype
[ERROR] WSO2_Carbon_4.2.0\patches\patch0010\core\org.wso2.carbon.core\4.2.0\src\main\java\org\wso2\carbon\core\clustering\hazelcast\HazelcastDistributedMapProvider.java:[104,20] error: method does not override or implement a method from a supertype
[ERROR] WSO2_Carbon_4.2.0\patches\patch0010\core\org.wso2.carbon.core\4.2.0\src\main\java\org\wso2\carbon\core\clustering\hazelcast\HazelcastGroupManagementAgent.java:[236,8] error: method does not override or implement a method from a supertype
[ERROR] WSO2_Carbon_4.2.0\patches\patch0010\core\org.wso2.carbon.core\4.2.0\src\main\java\org\wso2\carbon\core\clustering\hazelcast\HazelcastGroupManagementAgent.java:[241,8] error: method does not override or implement a method from a supertype
[ERROR] WSO2_Carbon_4.2.0\patches\patch0010\core\org.wso2.carbon.core\4.2.0\src\main\java\org\wso2\carbon\core\clustering\hazelcast\multicast\MulticastBasedMembershipScheme.java:[143,8] error: method does not override or implement a method from a supertype
[ERROR] WSO2_Carbon_4.2.0\patches\patch0010\core\org.wso2.carbon.core\4.2.0\src\main\java\org\wso2\carbon\core\multitenancy\transports\TenantTransportSender.java:[88,69] error: cannot find symbol
[ERROR] WSO2_Carbon_4.2.0\patches\patch0010\core\org.wso2.carbon.core\4.2.0\src\main\java\org\wso2\carbon\core\multitenancy\transports\TenantTransportSender.java:[89,59] error: cannot find symbol
[ERROR] WSO2_Carbon_4.2.0\patches\patch0010\core\org.wso2.carbon.core\4.2.0\src\main\java\org\wso2\carbon\core\multitenancy\transports\TenantTransportSender.java:[124,69] error: cannot find symbol
[ERROR] WSO2_Carbon_4.2.0\patches\patch0010\core\org.wso2.carbon.core\4.2.0\src\main\java\org\wso2\carbon\core\multitenancy\transports\TenantTransportSender.java:[125,59] error: cannot find symbol
[ERROR] WSO2_Carbon_4.2.0\patches\patch0010\core\org.wso2.carbon.core\4.2.0\src\main\java\org\wso2\carbon\core\multitenancy\transports\TenantTransportSender.java:[126,69] error: cannot find symbol
[ERROR] WSO2_Carbon_4.2.0\patches\patch0010\core\org.wso2.carbon.core\4.2.0\src\main\java\org\wso2\carbon\core\multitenancy\transports\TenantTransportSender.java:[127,59] error: cannot find symbol
[ERROR] WSO2_Carbon_4.2.0\patches\patch0010\core\org.wso2.carbon.core\4.2.0\src\main\java\org\wso2\carbon\core\multitenancy\transports\TenantTransportSender.java:[132,63] error: cannot find symbol
[ERROR] WSO2_Carbon_4.2.0\patches\patch0010\core\org.wso2.carbon.core\4.2.0\src\main\java\org\wso2\carbon\core\multitenancy\transports\TenantTransportSender.java:[133,73] error: cannot find symbol
[ERROR] WSO2_Carbon_4.2.0\patches\patch0010\core\org.wso2.carbon.core\4.2.0\src\main\java\org\wso2\carbon\core\multitenancy\transports\TenantTransportSender.java:[134,52] error: cannot find symbol
[ERROR] WSO2_Carbon_4.2.0\patches\patch0010\core\org.wso2.carbon.core\4.2.0\src\main\java\org\wso2\carbon\core\multitenancy\transports\TenantTransportSender.java:[137,83] error: cannot find symbol
[ERROR] WSO2_Carbon_4.2.0\patches\patch0010\core\org.wso2.carbon.core\4.2.0\src\main\java\org\wso2\carbon\core\multitenancy\transports\TenantTransportSender.java:[138,82] error: cannot find symbol
[ERROR] WSO2_Carbon_4.2.0\patches\patch0010\core\org.wso2.carbon.core\4.2.0\src\main\java\org\wso2\carbon\core\multitenancy\transports\TenantTransportSender.java:[141,69] error: cannot find symbol
[ERROR] WSO2_Carbon_4.2.0\patches\patch0010\core\org.wso2.carbon.core\4.2.0\src\main\java\org\wso2\carbon\core\multitenancy\transports\TenantTransportSender.java:[143,69] error: cannot find symbol
[ERROR] WSO2_Carbon_4.2.0\patches\patch0010\core\org.wso2.carbon.core\4.2.0\src\main\java\org\wso2\carbon\core\multitenancy\transports\TenantTransportSender.java:[185,55] error: cannot find symbol
[ERROR] WSO2_Carbon_4.2.0\patches\patch0010\core\org.wso2.carbon.core\4.2.0\src\main\java\org\wso2\carbon\core\multitenancy\transports\TenantTransportSender.java:[186,73] error: cannot find symbol
[ERROR] WSO2_Carbon_4.2.0\patches\patch0010\core\org.wso2.carbon.core\4.2.0\src\main\java\org\wso2\carbon\core\multitenancy\transports\TenantTransportSender.java:[187,63] error: cannot find symbol
I found out that this patch uses hazelcust-3.0.1.wso2v1.jar and this jar doesn't conatin a few important classes. So, how WSO2 developers build this patch?
Also, in patch 009 and 007 is the same problem, but other classes are missing.
How I can build this?
Checkout all patches from 0001 to 0010 from here. Then build all from 0001 to 0010 in that order (this sequence is important since there are dependencies).
I'm trying to migrate some jobs from jenkins over to bamboo and I'm facing some problems here. Whenever I run the job in bamboo, I get the following errors:
build 06-Nov-2013 15:46:08 [ERROR] Failed to execute goal org.jboss.as.plugins:jboss-as-maven-plugin:7.4.Final:execute-commands (execute-cli) on project standalone-d1: Execution execute-cli of goal org.jboss.as.plugins:jboss-as-maven-plugin:7.4.Final:execute-commands failed: Plugin org.jboss.as.plugins:jboss-as-maven-plugin:7.4.Final or one of its dependencies could not be resolved: Failed to collect dependencies at org.jboss.as.plugins:jboss-as-maven-plugin:jar:7.4.Final -> org.jboss.as:jboss-as-cli:jar:7.2.0.Final-redhat-8 -> org.jboss.remotingjmx:remoting-jmx:jar:1.1.0.Final-redhat-1 -> org.jboss.remoting3:jboss-remoting:jar:3.2.15.GA-redhat-1: Failed to read artifact descriptor for org.jboss.remoting3:jboss-remoting:jar:3.2.15.GA-redhat-1: Could not transfer artifact org.jboss.remoting3:jboss-remoting:pom:3.2.15.GA-redhat-1 from/to apache-repos (http://repository.apache.org): Connection to http://repository.apache.org refused: Connection refused -> [Help 1]
build 06-Nov-2013 15:46:08 [ERROR]
build 06-Nov-2013 15:46:08 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
build 06-Nov-2013 15:46:08 [ERROR] Re-run Maven using the -X switch to enable full debug logging.
build 06-Nov-2013 15:46:08 [ERROR]
build 06-Nov-2013 15:46:08 [ERROR] For more information about the errors and possible solutions, please read the following articles:
build 06-Nov-2013 15:46:08 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException
build 06-Nov-2013 15:46:08 [ERROR]
build 06-Nov-2013 15:46:08 [ERROR] After correcting the problems, you can resume the build with the command
build 06-Nov-2013 15:46:08 [ERROR] mvn <goals> -rf :standalone-d1
I'm pretty new to that kind of stuff, so I'm not really sure, what information one might need in order to help me solve this problem. Therefore it would be great, if you guys could just tell me, whatever I should add to this post, so that you know, where I might start looking for a solution.
For me it looks like it's missing some dependencies, but I couldn't find any missing artifacts. My colleague said, that it might be a problem with the maven-release-plugin, since he had similar problems earlier. Though they couldn't solve those either, but they were quite sure, that it had something to do with the plugin.
Update:
After adding proxy-information to the settings.xml, I now get another error:
build 07-Nov-2013 09:17:14 [ERROR] Failed to execute goal org.jboss.as.plugins:jboss-as-maven-plugin:7.4.Final:execute-commands (execute-cli) on project standalone-d1: Execution execute-cli of goal org.jboss.as.plugins:jboss-as-maven-plugin:7.4.Final:execute-commands failed: I/O Error could not execute operation '{
build 07-Nov-2013 09:17:14 [ERROR] "address" => [],
build 07-Nov-2013 09:17:14 [ERROR] "operation" => "read-attribute",
build 07-Nov-2013 09:17:14 [ERROR] "name" => "launch-type"
build 07-Nov-2013 09:17:14 [ERROR] }': java.net.ConnectException: JBAS012144: Could not connect to remote://localhost:9999. The connection timed out
build 07-Nov-2013 09:17:14 [ERROR] -> [Help 1]