WSO2 AM(1.10.0和2.1.0)上传模式文件错误

时间:2017-02-28 02:04:32

标签: wso2 wso2-am

将架构XSD文件上载到资源浏览/ _system / config。

时出现异常

p1

p2

简单的xsd文件:

enter image description here

错误日志:

TID: [-1234] [] [2017-02-28 14:57:47,746] ERROR {org.wso2.carbon.registry.resource.ui.processors.AddResourceProcessor} -  File upload failed.  {org.wso2.carbon.registry.resource.ui.processors.AddResourceProcessor}

org.apache.axis2.AxisFault:无法添加资源/_system/config/validation.xsd。执行处理程序链时发生异常。空值     at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:531)     at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:370)     at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:445)     在org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:225)     在org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)     在org.wso2.carbon.registry.resource.stub.ResourceAdminServiceStub.addResource(ResourceAdminServiceStub.java:4818)     在org.wso2.carbon.registry.resource.ui.clients.ResourceServiceClient.addResource(ResourceServiceClient.java:683)     在org.wso2.carbon.registry.resource.ui.processors.AddResourceProcessor.execute(AddResourceProcessor.java:175)     at org.wso2.carbon.ui.transports.fileupload.AbstractFileUploadExecutor.executeGeneric(AbstractFileUploadExecutor.java:104)     at org.wso2.carbon.ui.transports.fileupload.FileUploadExecutorManager $ CarbonXmlFileUploadExecHandler.execute(FileUploadExecutorManager.java:392)     at org.wso2.carbon.ui.transports.fileupload.FileUploadExecutorManager $ FileUploadExecutionHandlerManager.startExec(FileUploadExecutorManager.java:276)     at org.wso2.carbon.ui.transports.fileupload.FileUploadExecutorManager.execute(FileUploadExecutorManager.java:125)     在org.wso2.carbon.ui.transports.FileUploadServlet.doPost(FileUploadServlet.java:57)     在javax.servlet.http.HttpServlet.service(HttpServlet.java:646)     在javax.servlet.http.HttpServlet.service(HttpServlet.java:727)     在org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:37)     在org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)     在org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)     在org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)     在javax.servlet.http.HttpServlet.service(HttpServlet.java:727)     在org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)     在org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)     在org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)     在org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)     在org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)     在org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)     在org.wso2.carbon.ui.filters.CSRFPreventionFilter.doFilter(CSRFPreventionFilter.java:88)     在org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)     在org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)     在org.wso2.carbon.ui.filters.CRLFPreventionFilter.doFilter(CRLFPreventionFilter.java:59)     在org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)     在org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)     at org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:61)     在org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)     在org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)     在org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)     在org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)     在org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504)     在org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)     在org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)     at org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:99)     at org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve $ 1.invoke(CarbonTomcatValve.java:47)     在org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:57)     at org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)     在org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:62)     at org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:159)     在org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)     at org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:57)     在org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)     在org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:421)     在org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1074)     at org.apache.coyote.AbstractProtocol $ AbstractConnectionHandler.process(AbstractProtocol.java:611)     在org.apache.tomcat.util.net.NioEndpoint $ SocketProcessor.doRun(NioEndpoint.java:1739)     在org.apache.tomcat.util.net.NioEndpoint $ SocketProcessor.run(NioEndpoint.java:1698)     在java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)     at java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:617)     at org.apache.tomcat.util.threads.TaskThread $ WrappingRunnable.run(TaskThread.java:61)     在java.lang.Thread.run(Thread.java:745)

最新版本2.1.0中发生了同样的错误。

2.1.0

2.1.0 error

1 个答案:

答案 0 :(得分:0)

您必须将媒体类型设置为text / plain。