我正在尝试在gov中编辑资源名称(必填字段)。注册表4.6.0并获得下面给出的错误。造成这种情况的原因是什么,解决方案是什么?我找不到任何文档说明如何编辑资源而不会出现此错误。
由于
[2014-02-19 13:44:19,892] ERROR {org.wso2.carbon.governance.generic.ui.utils.Man
ageGenericArtifactUtil} - Failed to add/edit artifact details. Exception occurr
ed while trying to invoke service method editArtifact
org.apache.axis2.AxisFault: Exception occurred while trying to invoke service me
thod editArtifact
at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.j
ava:531)
at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(
OutInAxisOperation.java:367)
at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisO
peration.java:413)
at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(Out
InAxisOperation.java:224)
at org.apache.axis2.client.OperationClient.execute(OperationClient.java:
149)
at org.wso2.carbon.governance.generic.stub.ManageGenericArtifactServiceS
tub.editArtifact(ManageGenericArtifactServiceStub.java:4000)
at org.wso2.carbon.governance.generic.ui.clients.ManageGenericArtifactSe
rviceClient.editArtifact(ManageGenericArtifactServiceClient.java:109)
at org.wso2.carbon.governance.generic.ui.utils.ManageGenericArtifactUtil
.addArtifactContent(ManageGenericArtifactUtil.java:64)
at org.apache.jsp.generic.add_005fajaxprocessor_jsp._jspService(org.apac
he.jsp.generic.add_005fajaxprocessor_jsp:95)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
.java:403)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:4
92)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:378)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
at org.wso2.carbon.ui.JspServlet.service(JspServlet.java:155)
at org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:80)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
at org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(Con
textPathServletAdaptor.java:37)
at org.eclipse.equinox.http.servlet.internal.ServletRegistration.service
(ServletRegistration.java:61)
at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(P
roxyServlet.java:128)
at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyS
ervlet.java:68)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
at org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(Delegati
onServlet.java:68)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:305)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:210)
at org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(Charact
erSetFilter.java:61)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:222)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:123)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authentica
torBase.java:472)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:171)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:99)
at org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(C
ompositeValve.java:178)
at org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTo
mcatValve.java:47)
at org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoa
derValve.java:56)
at org.wso2.carbon.apimgt.interceptor.valve.APIManagerInterceptorValve.i
nvoke(APIManagerInterceptorValve.java:101)
at org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(T
omcatValveContainer.java:47)
at org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValv
e.java:141)
at org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.inv
oke(CarbonStuckThreadDetectionValve.java:156)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:
936)
at org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(Ca
rbonContextCreatorValve.java:52)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:407)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp
11Processor.java:1004)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(
AbstractProtocol.java:589)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoin
t.java:1653)
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:724)
答案 0 :(得分:0)
正如您所发现的那样,通过在https://wso2.org/jira/browse/REGISTRY-2033应用补丁,可以解决此 。
正如我从附带的补丁中看到的那样,您应该将补丁应用于以下组件:
如果查看wso2greg-4.6.0/repository/components/plugins/
,您会看到它使用org.wso2.carbon.governance.api_4.2.1.jar
您应该可以签出上面的组件,应用补丁并构建它。
然后,您可以将新构建的jar作为补丁复制到wso2greg-4.6.0/repository/components/patches/patchXXXX/
,其中XXXX
是补丁号。
最好将目标目录中的jar重命名为与插件中的jar名称匹配。
即。 org.wso2.carbon.governance.api-4.2.1.jar
- > org.wso2.carbon.governance.api_4.2.1.jar
重新启动服务器时,将应用修补程序。您可以检查插件中jar的md5sum
以确保正确应用补丁。
我希望这会有所帮助。