我关注link
在wso2is中创建了XACML策略。
从wso2AM访问创建了一个POST类型的功能。
在wso2AM存储中发送请求时出错
我通过注释第二个“ / test” URL行来更新“ jndi.properties”文件。
那之后我遇到了错误。
[2019-01-14 22:28:24,365]错误-评估策略org.wso2.carbon.identity.entitlement.proxy.exception.EntitlementProxyException时发生EntitlementMediator错误:无法使用空Axis2配置上下文初始化EntitlementServiceStub。在org.wso2.carbon.identity.entitlement.proxy.soap.basicAuth.BasicAuthEntitlementServiceClient.org java:122),位于org.wso2.carbon.identity.entitlement.proxy.PEPProxy.getDecision(PEPProxy.java:94),位于org.wso2.carbon.identity.entitlement.proxy.PEPProxy.getDecision(PEPProxy.java:66)在org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:108)在org.wso2.carbon.identity.entitlement.mediator.EntitlementMediator.mediate(EntitlementMediator.java:185)在org.apache.synapse.mediators org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:158)上的.AbstractListMediator.mediate(AbstractListMediator.java:70)在org.wso2.carbon.apimgt.gateway.handlers.ext.APIManagerExtensionHandler.mediate (APIManagerExtensionHandler.java:66)在org.wso2.carbon.apimg org.apache.synapse.rest.API.process(API.java:325)处的t.gateway.handlers.ext.APIManagerExtensionHandler.handleRequest(APIManagerExtensionHandler.java:75)在org.apache.synapse.rest.RESTRequestHandler.dispatchToAPI( org.apache.synapse.rest.RESTRequestHandler.process(RESTRequestHandler.java:69)处org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:303)处的RESTRequestHandler.java:90) .synapse.core.axis2.SynapseMessageReceiver.receive(SynapseMessageReceiver.java:92)位于org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)位于org.apache.synapse.transport.passthru.ServerWorker.processNonEntityEnclosingRESTHandler (ServerWorker.java:337)位于org.apache.synapse.transport.passthru.ServerWorker.processEntityEnclosingRequest(ServerWorker.java:383)位于org.apache.synapse.transport.passthru.ServerWorker.run(ServerWorker.java:151) org.apache.axis2.transport.base.threads.NativeWorkerPool $ 1.run(NativeWorkerPool.java:172)在java.util.c oncurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)at java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:617)at java.lang.Thread.run(Thread.java:745)[2019-01-01 -14 22:28:24,402]信息-JMSConnectionFactory JMS ConnectionFactory:jmsEventPublisher初始化了[2019-01-14 22:28:24,429]信息-LogMediator状态=执行默认的“故障”序列,ERROR_CODE = 0,ERROR_MESSAGE =在评估时发生错误策略[2019-01-14 22:28:25,476]错误-JMSConnectionFactory使用属性从{{port.jms.ConcurrentPublishers = allow,java.naming.provider.url = repository / conf}从JMS CF获取连接时出现错误:jmsEventPublisher /jndi.properties,java.naming.factory.initial=org.wso2.andes.jndi.PropertiesFileInitialContextFactory,transport.jms.DestinationType=topic,transport.jms.ConnectionFactoryJNDIName=TopicConnectionFactory,transport.jms.Destination=throttleData} javax.jms .JMSException:创建连接时出错:无法连接在org.wso2.andes.client.AMQConnectionFactory.createConnection(AMQConnectionFactory.java:346)在org.wso2.andes.client.AMQConnectionFactory.createConnection(AMQConnectionFactory.java:53)在org.wso2.carbon.event.output.adapter org.wso2.carbon.event.output.adapter.jms.internal.util.JMSConnectionFactory.createConnection(JMSConnectionFactory.java:268)位于org.wso2的.jms.internal.util.JMSUtils.createConnection(JMSUtils.java:387) org上的.carbon.event.output.adapter.jms.internal.util.JMSConnectionFactory $ PoolableJMSConnectionFactory.makeObject(JMSConnectionFactory.java:356)在org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)在org .wso2.carbon.event.output.adapter.jms.internal.util.JMSConnectionFactory.getConnectionFromPool(JMSConnectionFactory.java:286)位于org.wso2.carbon.event.output.adapter.jms.internal.util.JMSMessageSender.send( org.wso2.carbon.event.output.adapter.jms.JMSEventAdapter $ JMSSender.run(JMSEventAdapter.java:284)上的JMSMessageSender.java:86)位于java.util.concurrent.FutureTask.run(FutureTask.java:266)的java.util.concurrent.Executors $ RunnableAdapter.call(Executors.java:511)位于java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java: 1142)at java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:617)at java.lang.Thread.run(Thread.java:745)原因:org.wso2.andes.AMQConnectionFailureException:无法连接在org.wso2.andes.client.AMQConnection。(AMQConnection.java:485)在org.wso2.andes.client.AMQConnectionFactory.createConnection(AMQConnectionFactory.java:328)...还有13 [2019-01-14 22: 28:25,482]错误-JMSConnectionFactory使用属性:{transport.jms.ConcurrentPublishers = allow,java.naming.provider.url = repository / conf / jndi.properties,java.naming.factory从JMS CF获取连接:jmsEventPublisher .initial = org.wso2.andes.jndi.PropertiesFileInitialContextFactory,transport.jms.DestinationType = topic,transport.jms.ConnectionFactoryJNDIName = TopicConnecti onFactory,transport.jms.Destination = throttleData} org.wso2.carbon.event.output.adapter.core.exception.OutputEventAdapterRuntimeException:从JMS CF获取连接时出错:jmsEventPublisher使用以下属性:{transport.jms.ConcurrentPublishers = allow, java.naming.provider.url = repository / conf / jndi.properties,java.naming.factory.initial = org.wso2.andes.jndi.PropertiesFileInitialContextFactory,transport.jms.DestinationType = topic,transport.jms.ConnectionFactoryJNDIName = TopicConnectionFactory, org.wso2.carbon.event.output.adapter.jms.internal.util.JMSConnectionFactory.handleException(JMSConnectionFactory.java:197)上的org.wso2.carbon.event.output.adapter上的transport.jms.Destination = throttleData}。 org.org.wso2.carbon.event.output.adapter.jms.internal.util.JMSConnectionFactory $ PoolableJMSConnectionFactory.makeObject(JMSConnectionFactory.java:356)处的jms.internal.util.JMSConnectionFactory.createConnection(JMSConnectionFactory.java:278) apache.commons.pool.impl.GenericObjectPo org.wso2.carbon.event.output的ol.borrowObject(GenericObjectPool.java:1181)位于org.wso2.carbon.event.output.adapter.jms.internal.util.JMSConnectionFactory.getConnectionFromPool(JMSConnectionFactory.java:286) org.wso2.carbon.event.output.adapter.jms.JMSEventAdapter $ JMSSender.run(JMSEventAdapter.java:284)上的adapter.jms.internal.util.JMSMessageSender.send(JMSMessageSender.java:86)在java.util上。 java.util.concurrent.FutureTask.run(FutureTask.java:266)上的java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)上的current.Executors $ RunnableAdapter.call(Executors.java:511) java.lang.Thread.run(Thread.java:745)上的.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:617)原因:javax.jms.JMSException:创建连接时出错:无法在组织处连接org.wso2.andes.client.AMQConnectionFactory.createConnection(AMQConnectionFactory.java:53)在.wso2.andes.client.AMQConnectionFactory.createConnection(AMQConnectionFactory.java:346) org.wso2.carbon.event.output.adapter.jms.internal.util.JMSConnectionFactory.createConnection(JMSConnectionFactory)上的so2.carbon.event.output.adapter.jms.internal.util.JMSUtils.createConnection(JMSUtils.java:387) .java:268)...还有10个原因:org.wso2.andes.AMQConnectionFailureException:无法在org.wso2.andes.client的org.wso2.andes.client.AMQConnection。(AMQConnection.java:485)连接.AMQConnectionFactory.createConnection(AMQConnectionFactory.java:328)...还有13个[2019-01-14 22:28:25,486]错误-org.wso2.carbon.event.output.adapter.jms上的JMSMessageSender java.lang.NullPointerException org.wso2.carbon.event.output.adapter.jms.JMSEventAdapter $ JMSSender.run(JMSEventAdapter.java:284)的.internal.util.JMSMessageSender.send(JMSMessageSender.java:88)在java.util.concurrent.Executors java.util.concurrent.FutureTask.run(FutureTask.java:266)处的$ RunnableAdapter.call(Executors.java:511)在java.util处的java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)处的$ RunnableAdapter.call(Executors.java:511)合作ncurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:617)at java.lang.Thread.run(Thread.java:745)