gpt4 book ai didi

java - 通过 Web View 使用 CM API 在 Clearcase 7.1.2 中创建 BranchType 时出错

转载 作者:行者123 更新时间:2023-11-30 07:34:15 25 4
gpt4 key购买 nike

我在 Clearcase 7.1.2 中通过 Web View 使用 CM API 创建 BranchType 时遇到错误

以下是我创建 BranchType 的方法:

static void createBranchType(String branchTypeName, CcProvider provider, String repositoryName) throws WvcmException
{
CcBranchType newBr = provider.ccBranchType(provider.userFriendlySelector(Domain.CLEAR_CASE, Namespace.BRTYPE, branchTypeName, repositoryName));
newBr.doCreateCcBranchType(null, null);
}

运行此代码后,我收到以下异常:

CRVAP0236E (not-allowed): Unable to perform operation makeCcResource (CcBranchType.doCreateCcBranchType) on 'cc.brtype:NewBRJava': operation not allowed. ...com.ibm.rational.stp.ws.schema.ErrorFault: at com.ibm.rational.stp.cs.internal.util.StpExceptionImpl.realException(StpExceptionImpl.java:493) at com.ibm.rational.stp.cs.internal.util.StpExceptionImpl.(StpExceptionImpl.java:572) at com.ibm.rational.stp.client.internal.wsutil.DctMethod$WsException.stpException(DctMethod.java:2398) at com.ibm.rational.stp.client.internal.wsutil.DctMethod.handleErrorFault(DctMethod.java:1763) at com.ibm.rational.stp.client.internal.wsutil.DctMethod.invoke(DctMethod.java:1114) at com.ibm.rational.stp.client.internal.wsutil.DctMethod.invoke(DctMethod.java:848) at com.ibm.rational.stp.client.internal.wsutil.DctMethod.invoke(DctMethod.java:1241) at com.ibm.rational.stp.client.internal.ccrc.CcMkResource.run(CcMkResource.java:67) at com.ibm.rational.stp.client.internal.core.CoreResource.runProtocolOp(CoreResource.java:800) at com.ibm.rational.stp.client.internal.core.CoreResource.runOp(CoreResource.java:746) at com.ibm.rational.stp.client.internal.cc.CcResourceImpl.runCcMkResourceOpInternal(CcResourceImpl.java:669) at com.ibm.rational.stp.client.internal.cc.CcResourceImpl.runCcMkResourceOp(CcResourceImpl.java:630) at com.ibm.rational.stp.client.internal.cc.CcBranchTypeImpl.doCreateCcBranchType(CcBranchTypeImpl.java:52) at Example.createBranchType(Example.java:327) at Example.main(Example.java:271) Caused by: CRVSV0130E No object could be found that allows the requested operation. at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at java.lang.Class.newInstance0(Unknown Source) at java.lang.Class.newInstance(Unknown Source) at org.apache.axis.encoding.ser.BeanDeserializer.(BeanDeserializer.java:120) at org.apache.axis.encoding.ser.BeanDeserializer.(BeanDeserializer.java:106) at com.ibm.rational.stp.ws.schema.ErrorFault.getDeserializer(ErrorFault.java:345) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.axis.encoding.ser.BaseDeserializerFactory.getSpecialized(BaseDeserializerFactory.java:154) at org.apache.axis.encoding.ser.BaseDeserializerFactory.getDeserializerAs(BaseDeserializerFactory.java:84) at org.apache.axis.encoding.DeserializationContext.getDeserializer(DeserializationContext.java:464) at org.apache.axis.encoding.DeserializationContext.getDeserializerForType(DeserializationContext.java:547) at org.apache.axis.message.SOAPFaultDetailsBuilder.onStartChild(SOAPFaultDetailsBuilder.java:157) at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1035) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) at javax.xml.parsers.SAXParser.parse(Unknown Source) at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227) at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696) at org.apache.axis.Message.getSOAPEnvelope(Message.java:424) at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62) at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206) at org.apache.axis.client.Call.invokeEngine(Call.java:2765) at org.apache.axis.client.Call.invoke(Call.java:2748) at org.apache.axis.client.Call.invoke(Call.java:2424) at org.apache.axis.client.Call.invoke(Call.java:2347) at org.apache.axis.client.Call.invoke(Call.java:1804) at com.ibm.rational.stp.ws.teamservice.TeamBindingStub.makeCcResource(TeamBindingStub.java:2956) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.ibm.rational.stp.client.internal.wsutil.DctMethod.invoke(DctMethod.java:1020) ... 10 more

我从 5 天开始就遇到了这个错误。我在 IBM 论坛和 google 上搜索了很多,但仍然没有成功。

提前致谢。

最佳答案

终于解决了。该错误是由于存储库标签不正确造成的。我传递了存储库名称,但它需要方法 userFriendlySelector(Domain.CLEAR_CASE, Namespace.BRTYPE,branchTypeName, repositoryName) 中的存储库标签名称(VOB 标签)。这应该是 VOB 标签。

关于java - 通过 Web View 使用 CM API 在 Clearcase 7.1.2 中创建 BranchType 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35624880/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com