|
本帖最后由 lilinuo_2011 于 2012-1-5 11:10 编辑
对一个QC9.0中已经完成测试的项目,想把其中的内容集成到svn中,在QC9.0中对该项目启动版本控制,发现会报出如下的错误:
Messages:
Failed to Do VCSAction;
Failed to perform VCS Action;
Stack Trace:
com.mercury.td.vc_plugin.vcutil.CVcException: Plugin failed to delete vc project.
You don't have rights to Add Element
at CTdJavaPlugIn.addElement(CTdJavaPlugIn.java:454)
at com.mercury.td.vc_plugin.PluginExtTo2Adapter.addElement(PluginExtTo2Adapter.java:44)
at com.mercury.td.tdserver.api.logics.vc.VcToolConnector.addElement(VcToolConnector.java:396)
at com.mercury.td.tdserver.api.logics.vc.CAbsVcLogic.addToVc(CAbsVcLogic.java:618)
wrapped in com.mercury.optane.core.CTdException: Failed to add element to version control data base...
at com.mercury.td.tdserver.api.logics.vc.CAbsVcLogic.addToVc(CAbsVcLogic.java:646)
at com.mercury.td.tdserver.api.logics.vc.CAbsVcLogic.addElementsToVc(CAbsVcLogic.java:560)
wrapped in com.mercury.optane.core.CTdException: Failed to add elements to version control data base...
at com.mercury.td.tdserver.api.logics.vc.CAbsVcLogic.addElementsToVc(CAbsVcLogic.java:569)
at com.mercury.td.tdserver.api.logics.vc.VcAdministration.addProjectElementsToVc(VcAdministration.java:426)
wrapped in com.mercury.optane.core.CTdException: Failed to add elements to project
at com.mercury.td.tdserver.api.logics.vc.VcAdministration.addProjectElementsToVc(VcAdministration.java:433)
at com.mercury.td.tdserver.api.logics.vc.VcAdministration.enableVersionControlDb(VcAdministration.java:174)
wrapped in com.mercury.optane.core.CTdException: Failed to enable version control data base...
at com.mercury.td.tdserver.api.logics.vc.VcAdministration.enableVersionControlDb(VcAdministration.java:193)
at com.mercury.td.tdserver.proxy.CQcProxy.createVcsDb(CQcProxy.java:43)
at com.mercury.qcproxy.CQcRemoteProxy.createVcsDb(CQcRemoteProxy.java:81)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
wrapped in java.lang.reflect.InvocationTargetException
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:324)
at com.mercury.optane.core.jndiproxy.CAbsJndiProxy.callRemoteMethod(CAbsJndiProxy.java:117)
wrapped in com.mercury.optane.core.CTdException:
at com.mercury.optane.core.jndiproxy.CAbsJndiProxy.callRemoteMethod(CAbsJndiProxy.java:167)
at com.mercury.optane.core.jndiproxy.CAbsJndiProxy.callRemoteMethod(CAbsJndiProxy.java:79)
at com.mercury.qcproxy.CQcJndiProxy.activateMethodWithCallback(CQcJndiProxy.java:147)
at com.mercury.qcproxy.CQcJndiProxy.createVcsDb(CQcJndiProxy.java:47)
at com.mercury.td.saserver.api.logics.CProjectLogic.doVcsAction(CProjectLogic.java:571)
wrapped in com.mercury.optane.core.CTdException: Failed to perform VCS Action
at com.mercury.td.saserver.api.logics.CProjectLogic.doVcsAction(CProjectLogic.java:600)
at com.mercury.td.saserver.web.CTdSiteAdminServlet.redirectDoVCSAction(CTdSiteAdminServlet.java:437)
at sun.reflect.GeneratedMethodAccessor155.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.mercury.optane.core.web.CAbsServlet.executeFunction(CAbsServlet.java:554)
wrapped in com.mercury.optane.core.CTdException: Failed to Do VCSAction
at com.mercury.optane.core.web.CAbsServlet.executeFunction(CAbsServlet.java:560)
at com.mercury.optane.core.web.CAbsServlet.processRequest(CAbsServlet.java:535)
at com.mercury.optane.core.web.CAbsServlet.doPost(CAbsServlet.java:418)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:153)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.valves.FastCommonAccessLogValve.invoke(FastCommonAccessLogValve.java:481)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
at java.lang.Thread.run(Thread.java:534)
难道只能在新建项目时就对该项目启动版本控制才行吗?
上面的问题只是在下图中选择“Yes”时碰到的,但是如果我选择“No”的话,虽然项目还是能够启动版本控制成功的,但是当你登录启动版本控制的项目时发现从此无法再更改之前已有的测试用例了,因为这些测试用例没有在svn中check in过,这种情况又该如何解决呢?
|
|