teamcity throws exception when building android intellij project.

Hi, I'm trying to use teamcity to build our android projects. The projects are .idea based, and when I select the project path then hit parse, teamcity throws the following error. Not sure how to go about this. I also attached the offending .idea folder in case anyone wants to take a look at it. Thanks!

Unexpected Error

This was not supposed to happen. Please provide the error details to your TeamCity server maintainer.
If you maintain this TeamCity installation please report this error to JetBrains.

Error message: javax.servlet.jsp.JspException: javax.servlet.jsp.JspException: javax.servlet.ServletException: javax.servlet.ServletException: javax.servlet.jsp.JspException: javax.el.ELException: Cannot convert Library Android 2.3.3 Platform, used=true, pathToLibrary=%Android_SDK% Patterns: platforms/android-%API_Level%/android.jar platforms/android-%API_Level%/data/res/** tools/support/annotations.jar path to jdk=%Android_SDK% api-level=%API_Level%Library Android 2.3.3 Platform_JDK_1_6, used=true, pathToLibrary=%env.JAVA_HOME% Patterns: jre/lib/*.jar path to jdk=%env.JAVA_HOME%External annotations patterns: %teamcity.tool.idea%/lib/jdkAnnotations.jar of type class jetbrains.buildServer.ideaSettings.AndroidSDK to class jetbrains.buildServer.ideaSettings.JavaSdk
TeamCity: 8.0.4 (build 27616)
Operating system: Linux (3.8.0-33-generic, amd64)
Java: 1.7.0_45-b18 (Oracle Corporation)
Servlet container: Apache Tomcat/7.0.37

Trace: javax.servlet.jsp.JspException: javax.servlet.jsp.JspException: javax.servlet.jsp.JspException: javax.servlet.ServletException: javax.servlet.ServletException: javax.servlet.jsp.JspException: javax.el.ELException: Cannot convert Library Android 2.3.3 Platform, used=true, pathToLibrary=%Android_SDK%
Patterns:
platforms/android-%API_Level%/android.jar
platforms/android-%API_Level%/data/res/**
tools/support/annotations.jar
path to jdk=%Android_SDK%
api-level=%API_Level%Library Android 2.3.3 Platform_JDK_1_6, used=true, pathToLibrary=%env.JAVA_HOME%
Patterns:
jre/lib/*.jar
path to jdk=%env.JAVA_HOME%External annotations patterns:
%teamcity.tool.idea%/lib/jdkAnnotations.jar of type class jetbrains.buildServer.ideaSettings.AndroidSDK to class jetbrains.buildServer.ideaSettings.JavaSdk
     at org.apache.jsp.tag.webp.container_tag$Helper.invoke(container_tag.java:365)
     at org.apache.jsp.tag.webchangeRequest_tag.doTag(webchangeRequest_tag.java:107)
     at org.apache.jsp.tag.webp.container_tag._jspx_meth_bs_005fchangeRequest_005f0(container_tag.java:240)
     at org.apache.jsp.tag.webp.container_tag.doTag(container_tag.java:161)
     at org.apache.jsp.admin.editRunParams_jsp._jspService(editRunParams_jsp.java:202)
     at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
     at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
     at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
     at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
     at jetbrains.spring.web.TeamCityJSPServletImpl.access$001(TeamCityJSPServletImpl.java:3)
     at jetbrains.spring.web.TeamCityJSPServletImpl$1.apply(TeamCityJSPServletImpl.java)
     at jetbrains.buildServer.util.Util.doUnderContextClassLoader(Util.java:68)
     at jetbrains.spring.web.TeamCityJSPServletImpl.service(TeamCityJSPServletImpl.java:5)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
     at jetbrains.spring.web.JspController.doHandle(JspController.java:10)
     at jetbrains.buildServer.controllers.BaseController.handleRequestInternal(BaseController.java:73)
     at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
     at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
     at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:790)
     at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:719)
     at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:644)
     at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:560)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
     at jetbrains.buildServer.maintenance.TeamCityDispatcherServlet.service(TeamCityDispatcherServlet.java:21)
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
     at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749)
     at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:487)
     at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:412)
     at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:339)
     at org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel(InternalResourceView.java:238)
     at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:250)
     at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1047)
     at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:817)
     at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:719)
     at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:644)
     at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:560)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
     at jetbrains.buildServer.maintenance.TeamCityDispatcherServlet.service(TeamCityDispatcherServlet.java:21)
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
     at jetbrains.buildServer.web.ParametersProviderCalculationContextFilter.doFilter(ParametersProviderCalculationContextFilter.java:2)
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
     at jetbrains.buildServer.web.DisableSessionIdFromUrlFilter.doFilter(DisableSessionIdFromUrlFilter.java:2)
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
     at jetbrains.buildServer.web.DiagnosticFilter.doFilter(DiagnosticFilter.java:69)
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
     at jetbrains.buildServer.web.ResponseFragmentFilter.doFilter(ResponseFragmentFilter.java:4)
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
     at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
     at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
     at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1686)
     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
     at java.lang.Thread.run(Thread.java:744)
Caused by: javax.servlet.jsp.JspException: javax.servlet.jsp.JspException: javax.servlet.ServletException: javax.servlet.ServletException: javax.servlet.jsp.JspException: javax.el.ELException: Cannot convert Library Android 2.3.3 Platform, used=true, pathToLibrary=%Android_SDK%
Patterns:
platforms/android-%API_Level%/android.jar
platforms/android-%API_Level%/data/res/**
tools/support/annotations.jar
path to jdk=%Android_SDK%
api-level=%API_Level%Library Android 2.3.3 Platform_JDK_1_6, used=true, pathToLibrary=%env.JAVA_HOME%
Patterns:
jre/lib/*.jar
path to jdk=%env.JAVA_HOME%External annotations patterns:
%teamcity.tool.idea%/lib/jdkAnnotations.jar of type class jetbrains.buildServer.ideaSettings.AndroidSDK to class jetbrains.buildServer.ideaSettings.JavaSdk
     at org.apache.jsp.tag.webp.container_tag$Helper.invoke(container_tag.java:365)
     at org.apache.jsp.tag.webchangeRequest_tag.doTag(webchangeRequest_tag.java:107)
     at org.apache.jsp.tag.webp.container_tag._jspx_meth_bs_005fchangeRequest_005f1(container_tag.java:260)
     at org.apache.jsp.tag.webp.container_tag.access$1(container_tag.java:245)
     at org.apache.jsp.tag.webp.container_tag$Helper.invoke2(container_tag.java:296)
     at org.apache.jsp.tag.webp.container_tag$Helper.invoke(container_tag.java:354)
     ... 67 more
Caused by: javax.servlet.jsp.JspException: javax.servlet.ServletException: javax.servlet.ServletException: javax.servlet.jsp.JspException: javax.el.ELException: Cannot convert Library Android 2.3.3 Platform, used=true, pathToLibrary=%Android_SDK%
Patterns:
platforms/android-%API_Level%/android.jar
platforms/android-%API_Level%/data/res/**
tools/support/annotations.jar
path to jdk=%Android_SDK%
api-level=%API_Level%Library Android 2.3.3 Platform_JDK_1_6, used=true, pathToLibrary=%env.JAVA_HOME%
Patterns:
jre/lib/*.jar
path to jdk=%env.JAVA_HOME%External annotations patterns:
%teamcity.tool.idea%/lib/jdkAnnotations.jar of type class jetbrains.buildServer.ideaSettings.AndroidSDK to class jetbrains.buildServer.ideaSettings.JavaSdk
     at org.apache.jsp.admin.editRunParams_jsp$Helper.invoke(editRunParams_jsp.java:2202)
     at org.apache.jsp.tag.webp.container_tag$Helper.invoke3(container_tag.java:328)
     at org.apache.jsp.tag.webp.container_tag$Helper.invoke(container_tag.java:357)
     ... 72 more
Caused by: javax.servlet.ServletException: javax.servlet.ServletException: javax.servlet.jsp.JspException: javax.el.ELException: Cannot convert Library Android 2.3.3 Platform, used=true, pathToLibrary=%Android_SDK%
Patterns:



Attachment(s):
bad_idea.tar
2 comments
Comment actions Permalink

bump this. Really need help from the  dev team.

0
Comment actions Permalink

Looks like this issue: http://youtrack.jetbrains.com/issue/TW-32756

You can download latest nightly build (8.0.5 eap) where this problem is fixed from our ftp:
ftp://ftp.intellij.net/pub/.teamcity/nightly/8.0.x/

0

Please sign in to leave a comment.