aapt.exe has encountered a problem and needs to close

rajeshkumar created the topic: aapt.exe has encountered a problem and needs to close
aapt.exe has encountered a problem and needs to close

I am getting following error as below with my maven build…

[ERROR] Failed to execute goal com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.6.0:apklib (default-apklib) on project QBConnect: MojoExecutionException: ANDROID-040-001: Could not execute: Command = cmd.exe /X /C “C:\Android\android-sdk\build-tools\android-4.4\aapt.exe package -f -M C:\vault\workspace\FULL-fmm-client-QBOMobile-trunk\QBConnect\AndroidManifest.xml -S C:\vault\workspace\FULL-fmm-client-QBOMobile-trunk\QBConnect\res -S C:\vault\workspace\FULL-fmm-client-QBOMobile-trunk\QBConnect\target\unpack\apklibs/com.intuit.quickbooks_QBSharedLib_apklib_3.5.0-dev-SNAPSHOT/res -S C:\vault\workspace\FULL-fmm-client-QBOMobile-trunk\QBConnect\target\unpack\apklibs/com.intuit.mobilelib.util_MobileLibUtil_apklib_3.4.0-SNAPSHOT/res -S C:\vault\workspace\FULL-fmm-client-QBOMobile-trunk\QBConnect\target\unpack\apklibs/com.intuit.mobilelib.chart_MobileLibChart_apklib_3.4.0-SNAPSHOT/res -S C:\vault\workspace\FULL-fmm-client-QBOMobile-trunk\QBConnect\target\unpack\apklibs/com.intuit.quickbooks_android-support-v7-appcompat_apklib_3.4.0-SNAPSHOT/res -S C:\vault\workspace\FULL-fmm-client-QBOMobile-trunk\QBConnect\target\unpack\apklibs/com.intuit.quickbooks_com.github.chrisbanes.pulltorefresh_apklib_2.1.1/res -S C:\vault\workspace\FULL-fmm-client-QBOMobile-trunk\QBConnect\target\unpack\apklibs/com.intuit.quickbooks_google-play-services-lib_apklib_3.4.0-SNAPSHOT/res –auto-add-overlay -A C:\vault\workspace\FULL-fmm-client-QBOMobile-trunk\QBConnect\assets -I C:\Android\android-sdk\platforms\android-19\android.jar -F C:\vault\workspace\FULL-fmm-client-QBOMobile-trunk\QBConnect\target\QBConnect-3.5.0-dev-SNAPSHOT.ap_”, Result = -1073741819 -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.6.0:apklib (default-apklib) on project QBConnect:
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.plugin.MojoExecutionException:
at com.jayway.maven.plugins.android.phase09package.ApklibMojo.generateIntermediateApk(ApklibMojo.java:431)
at com.jayway.maven.plugins.android.phase09package.ApklibMojo.execute(ApklibMojo.java:118)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
… 19 more
Caused by: com.jayway.maven.plugins.android.ExecutionException: ANDROID-040-001: Could not execute: Command = cmd.exe /X /C “C:\Android\android-sdk\build-tools\android-4.4\aapt.exe package -f -M C:\vault\workspace\FULL-fmm-client-QBOMobile-trunk\QBConnect\AndroidManifest.xml -S C:\vault\workspace\FULL-fmm-client-QBOMobile-trunk\QBConnect\res -S C:\vault\workspace\FULL-fmm-client-QBOMobile-trunk\QBConnect\target\unpack\apklibs/com.intuit.quickbooks_QBSharedLib_apklib_3.5.0-dev-SNAPSHOT/res -S C:\vault\workspace\FULL-fmm-client-QBOMobile-trunk\QBConnect\target\unpack\apklibs/com.intuit.mobilelib.util_MobileLibUtil_apklib_3.4.0-SNAPSHOT/res -S C:\vault\workspace\FULL-fmm-client-QBOMobile-trunk\QBConnect\target\unpack\apklibs/com.intuit.mobilelib.chart_MobileLibChart_apklib_3.4.0-SNAPSHOT/res -S C:\vault\workspace\FULL-fmm-client-QBOMobile-trunk\QBConnect\target\unpack\apklibs/com.intuit.quickbooks_android-support-v7-appcompat_apklib_3.4.0-SNAPSHOT/res -S C:\vault\workspace\FULL-fmm-client-QBOMobile-trunk\QBConnect\target\unpack\apklibs/com.intuit.quickbooks_com.github.chrisbanes.pulltorefresh_apklib_2.1.1/res -S C:\vault\workspace\FULL-fmm-client-QBOMobile-trunk\QBConnect\target\unpack\apklibs/com.intuit.quickbooks_google-play-services-lib_apklib_3.4.0-SNAPSHOT/res –auto-add-overlay -A C:\vault\workspace\FULL-fmm-client-QBOMobile-trunk\QBConnect\assets -I C:\Android\android-sdk\platforms\android-19\android.jar -F C:\vault\workspace\FULL-fmm-client-QBOMobile-trunk\QBConnect\target\QBConnect-3.5.0-dev-SNAPSHOT.ap_”, Result = -1073741819
at com.jayway.maven.plugins.android.CommandExecutor$Factory$DefaultCommandExecutor.executeCommand(CommandExecutor.java:246)
at com.jayway.maven.plugins.android.phase09package.ApklibMojo.generateIntermediateApk(ApklibMojo.java:427)
Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

TeamCity EC2 Integration via ISA Server

rajeshkumar created the topic: TeamCity EC2 Integration via ISA Server
I have a TeamCity server which is actually installed on SBS 2003 Premium with ISA Server (firewall/proxy) installed. My ADSL connection has multiple IP addresses, which all resolve directly to my SBS external NIC. The NIC is therefore multi-homed and I have allocated one of the IP addresses specifically to TeamCity. In ISA, I’ve created an access rule to allow the traffic in. I can access my TeamCity server externally and view the web interface, that all works fine.

I want to use the Amazon EC2 integration in TeamCity to launch build agents ‘in the cloud’. The problem I am having is that when the agent starts, it sees the server and registers, then just sits there waiting. On the server side, the agent appears as ‘disconnected’.

Examining the settings, the agent’s IP address appears to be that of the external NIC. What I think might be happening is that the traffic is undergoing Network Address Translation (NAT) so that TeamCity always thinks the agent is locally installed and therefore can’t communicate with the actual remote agent. This seems to happen even though I have a permanent static IP address dedicated to TeamCity.

So, the question is this. How can I make traffic to a specific IP address pass through the ISA server un-NATted?
Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

Tagged :

Spring integration tests with Team city: OutOfMemo

rajeshkumar created the topic: Spring integration tests with Team city: OutOfMemo
Spring integration tests with Team city: OutOfMemoryError
Hello all,

On our project we wanted to start having integration tests with JUnit and Spring’s helper classes for integration testing.

We used the same context files that we use for the application and added some context files to add objects for test data from our model package.

The tests will run on Team city when commited and are disabled by making the Spring method isDisabledInThisEnvironment() from it’s test helper classes return true.

When we run these tests as enabled on our local envirornment, thet run fine. However, when we run them on Team City, the context files alone cause an OutOfMemoryError. We did some diagnosis and realized that if we take away all of the test code that are using the Spring context files for testing, we still get an OutOfMemoryError on Team City.

If we got rid of all of the context files that we wanted to use for integration testing, then Team City would no longer get an OutOfMemoryError.

Is there a way Spring can be configured to do these integration tests without getting an OutOfMemoryError on Team City? Is there a way to configure Team city so we do not get an OutOfMemoryError using the Spring context files for our integration tests?
Reply With Quote
Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

Tagged :

Finding out who broke the most builds in Teamcity

scmuser created the topic: Finding out who broke the most builds in Teamcity
Is there a simple way of finding out how many successful/broken builds a user has generated in Teamcity? We need this to find out who buys beers on friday 🙂

Tagged :

TeamCity with TFS – workspace problems

rajeshkumar created the topic: TeamCity with TFS – workspace problems
0 vote down star

Hi,

We have been using CC.NET as our CI server for a month or so now, which has worked ok with TFS. In the config we were able to specify the TFS server, username, password, project and workspace which is all good.

Now we are moving over to TeamCity mainly because it just seams more solid and is much nicer to use. The problem is getting it work with TFS.

For the purpose of this, both the workspace and machine name are “BuildMachine”, username is “BuildUser” TFS project is “$/Project/Dev/Website”

I seam to have set it up correctly, I think, as when testing the connection it is successful. When I run a build I get a TFS error: “RunBuildException when running build stage UpdateSourcesFromServer.”

It goes on to say: “No matched workspaces were found. Will recreate workspace and perofming clean checkout.”

It then tries to create a new workspace something like this: TeamCity-S-sqa9qe2aulx22gz4rzkogl5kr/BuildUser

It tries to set up some mappings and then fails because: “The working folder C:\ is already in use by the workspace BuildMachine;BuildUser on computer BuildMachine”.

This seams ok as this is the workspace that CC.net was using, and c:\project\dev\website is the path to the project. The problem is, why didn’t TeamCity pick this up and use this workspace? Why does it try to create its own new one? Any idea how I can fix this?

Thanks
Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

Tagged :

Good Links for Continuous integration with Team City and MSBuild

rajeshkumar created the topic: Good Links for Continuous integration with Team City and MSBuild
Continuous integration with Team City and MSBuild

bjarte.com/post/continuous-integration-with-team-city-and-msb
Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

Tagged :

Github VCS connection – List remote refs failed: javax.net.ssl.SSLHand

rajeshkumar created the topic: Github VCS connection – List remote refs failed: javax.net.ssl.SSLHand
I am facing same issues while connecting with github…

Test connection failed in Airvata :: compile
List remote refs failed: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

I am wondering as yesterday it was working without any issues but now its not working any more…..

-Rajesh
Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

rajeshkumar replied the topic: Github VCS connection – List remote refs failed: javax.net.ssl.SSLHand
Updated…..
I was using https mode of gihub url which is not working and throwing same error as below but when i moved to ssh

eg. git@github.com:scmgalaxy/airavata.git
along with
user name – git
Uploaded key options from team city in which pvt key has been added. it works!!!

I will troubleshoot later point of time, why https is not working suddenly.
Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

Tagged : /

Help with MSbuild 4 and custom tasks

rajeshkumar created the topic: Help with MSbuild 4 and custom tasks
I’m trying to build a custom task using the Task base class in Microsoft.Build.Utilitieis.v4.0. I have the task built and compiled just fine but I get this error

C:\sandbox\c-wundram\msbuild\TalTrade.Importer\TestImporterTask\TestImporterTas
k.csproj(58,5): error MSB4062: The “Importer” task could not be loaded from the
assembly C:\sandbox\c-wundram\msbuild\TalTrade.Importer\TalTrade.Importer\bin\
debug\TalTrade.Importer.dll. Confirm that the declaration is corre
ct, that the assembly and all its dependencies are available, and that the task
contains a public class that implements Microsoft.Build.Framework.ITask.

However the path is correct, and the class which subclasses Task is public. I tried checking the binding using fuslogvw, and it doesn’t appear to even attempt to load my assembly. Does anyone have any ideas of what might be going wrong? The only depenendencies my assembly has is on the framework, and on the TFS 2010 APIs.
Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

boris replied the topic: Re:Help with MSbuild 4 and custom tasks
Hiho,

As far as I understand, you are *not* talking about Rational BuildForge (or there may be several buildforge names).

If you want to get some answers, you should repost in a more appropriate forum (e.g. MS Build).

Cheers,


boris

Tagged :

Unable to delete user in Build Forge console

rajeshkumar created the topic: Unable to delete user in Build Forge console
Problem(Abstract)
When trying to delete a user in the IBM® Rational® Build Forge® Management Console, the Delete option does not work and the option is disabled.

Symptom
The administrator is not able to delete a user in the console. When attempting to do so, the Delete button is always grayed out and cannot be selected.

Cause
The user to be removed owns a schedule. When a user owns a schedule, then Build Forge prevents the deletion of that user by disabling the Delete function.

Resolving the problem
To delete the user you must first change the owner of the schedule to be someone else, then it can be removed.
Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

Tagged :

A valid Access Group Identifier must be specified in buildforge

scmuser created the topic: A valid Access Group Identifier must be specified in buildforge
I am getting following error while copy library in buidforge library …

A valid Access Group Identifier must be specified.

Please help?

rajeshkumar replied the topic: A valid Access Group Identifier must be specified in buildforge
Solution there in IBM site too…as below;

Cause

The pass/fail notify access groups are set to blank when you did not import the access groups.

Resolving the problem

You need to set the pass/fail notify access groups to valid access groups or set them to “None”.

After that you will be able to copy the library.
Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

Tagged :