Android Build error with invalid XML character (Unicode: 0x8) - codenameone

My codename one project has been built and run on the simulator successfully.
I send to android build to your server but failed and generated error.txt.
The main error message in the following:
Task :mergeDebugResources FAILED
:mergeDebugResources (Thread[Execution worker for ':',5,main]) completed. Took 2.915 secs.
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':mergeDebugResources'.
/tmp/build295040897406194978xxx/VisionClass/src/main/res/values/strings.xml:3:29: Error: An invalid XML character (Unicode: 0x8) was found in the element content of the document.

Related

Failed to read key from store Invalid keystore format codenameone

I am failing create a build online for release on Playstore. This is the build error message that i am facing.
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':packageRelease'.
Failed to read key essap from store "/tmp/build8775516520051228608xxx/EssentialService/keyStore": Invalid keystore format
Try:
Run with --debug option to get more log output. Run with --scan to get full insights.
Exception is:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':packageRelease'.
I used the codenameone settings application to generate. Its found right click project -> codename one -> Settings

React Native android build FAILD :app:mergeReleaseResources

The App is working fine, in fact I have built 2 release APKs. This time I modified the code and came to do ./gradlew assembleRelease and I got the following error:
Error
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':app:mergeReleaseResources'.
Expectation
To generate a healthy APK ready to publish.
Extra Info
I have done the signing and the .keystore in the right place ../android/app
Updated ../android/gradle.properties as instructed
Here is the complete stacktrace:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:mergeReleaseResources'.Close stacktrace
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:110)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:77)
at org.gradle.api.internal.tasks.execution.OutputDirectoryCreatingTaskExecuter.execute(OutputDirectoryCreatingTaskExecuter.java:51)
at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:59)
at org.gradle.api.internal.tasks.execution.ResolveTaskOutputCachingStateExecuter.execute(ResolveTaskOutputCachingStateExecuter.java:54)
at org.gradle.api.internal.tasks.execution.ResolveBuildCacheKeyExecuter.execute(ResolveBuildCacheKeyExecuter.java:79)
at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:59)
at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:101)
at org.gradle.api.internal.tasks.execution.FinalizeInputFilePropertiesTaskExecuter.execute(FinalizeInputFilePropertiesTaskExecuter.java:44)
at org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:91)
at org.gradle.api.internal.tasks.execution.ResolveTaskArtifactStateTaskExecuter.execute(ResolveTaskArtifactStateTaskExecuter.java:62)
at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:59)
at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:54)
at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)
at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:34)
at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.run(EventFiringTaskExecuter.java:51)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:300)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:292)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:174)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90)
at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31)
at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter.execute(EventFiringTaskExecuter.java:46)
at org.gradle.execution.taskgraph.LocalTaskInfoExecutor.execute(LocalTaskInfoExecutor.java:42)
at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareWorkItemExecutor.execute(DefaultTaskExecutionGraph.java:277)
at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareWorkItemExecutor.execute(DefaultTaskExecutionGraph.java:262)
at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$ExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:135)
at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$ExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:130)
at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$ExecutorWorker.execute(DefaultTaskPlanExecutor.java:200)
at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$ExecutorWorker.executeWithWork(DefaultTaskPlanExecutor.java:191)
at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$ExecutorWorker.run(DefaultTaskPlanExecutor.java:130)
at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63)
at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46)
at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55)
Screenshot from the Scan1
Screenshot from the Scan2
Screenshot from the Scan3
from android Studio - I believe it is related to the issue
Screenshot from the Scan4
I believe this could be a duplicate of this question:
Error Execution failed for task ':app:mergeReleaseResources' building APK
The problem occured becaused when I tried to build once, it has
created drawables dirs on android/app/src/main/res/. Then when I tried
on second time, it has shown me this error Execution failed for task
':app:mergeReleaseResources' building APK
I just deleted the drawable-* dirs and it worked.
To remove the directory drawable--*:
rm -rf android/app/src/main/res/drawable-*
There is no drawable folder inside res, still the error occurs.
While running the emulator the build is successful and emulator works fine but I couldn't take release apk because of build failure.

unable toncomplete build on adding android certificate

I just finished building my app and I sent a build with no certificate and it worked...now on adding an android certificate, it reports a build error on my codename one dashboard. A help will be appreciated.
FAILURE: Build failed with an exception. * What went wrong: Execution
failed for task '
:transformClassesAndResourcesWithProguardForRelease'. >
java.io.IOException: Please correct the above warnings first.
Warning: Exception while processing task java.io.IOException: Please correct the above warnings first.
:transformClassesAndResourcesWithProguardForRelease FAILED
:transformClassesAndResourcesWithProguardForRelease (Thread[Daemon
worker,5,main]) completed. Took 4.163 secs.
I will need the full error as that point is already too low. I recall seeing some failures when punctuation was used in one of the certificate properties as Android chokes on that. It should appear in the error logs.

tSalesforceBulkExec component exception

I'm new to Talend and I have this problem.
This is the error log that I obtain from Talend log:
Exception in component tSalesforceOutputBulkExec_1_tSBE
java.lang.IllegalArgumentException: input stream can not be null
at com.sforce.ws.parser.MXParser.setInput(MXParser.java:554)
at com.sforce.ws.parser.XmlInputStream.setInput(XmlInputStream.java:65)
at com.sforce.async.BulkConnection.parseAndThrowException(BulkConnection.java:129)
at com.sforce.async.BulkConnection.doHttpGet(BulkConnection.java:615)
at com.sforce.async.BulkConnection.getBatchInfoList(BulkConnection.java:439)
at org.talend.salesforceBulk.SforceBulkConnection.getBatchInfoList(SforceBulkConnection.java:82)
at org.talend.salesforceBulk.SalesforceBulkAPI.awaitCompletion(SalesforceBulkAPI.java:256)
at org.talend.salesforceBulk.SalesforceBulkAPI.executeBulk(SalesforceBulkAPI.java:99)
...
java.lang.RuntimeException: Child job running failed
I launch a job that through a tFileList iterate on some files in a folder and for every of those files run a subjob. All runs correctly for some operations and this error happens every time in a different tSalesforceOutputBulkExec component. Can be a problem related to the connection?

Getting CamelExecutionException

I'm getting the below error in my production environment
DEBUG org.apache.camel.processor.DefaultErrorHandler - Failed delivery for exchangeId: ID-*-56874-1372457272212-0-1. On delivery attempt: 0 caught: org.apache.camel.CamelExecutionException: Exception occurred during execution on the exchange: Exchange
DEBUG org.apache.camel.processor.Pipeline - Message exchange has failed: so breaking out of pipeline for exchange: Exchange[***] Handled by the error handler.
Same build with same dependecies is working in 3 of my other environments in LINUX Box. We are using camel-core-2.8.0-fuse and Java 1.6
There were 2 JAR for beans and it was pointing to wrong JAR. After removing the old JAR, error is rectified. Not sure why CAMEL was giving Camel Execution Exception for JAR Issues :(

Resources