Forum Stats

  • 3,853,655 Users
  • 2,264,249 Discussions
  • 7,905,426 Comments

Discussions

XML encoding throws error in OAG-11.1.2.4.0

Dear Friends,

I created simple encryption policy (copying the default encryption policy embeded in OAG).

while testing am getting following error.

Configure XML-Encryption Settings filter passed .

Apply XML Encryption filter failed with certificate failure.How can I fix this

POST /jdev/encryption HTTP/1.1

Host: localhost:8066

User-Agent: Gateway

Content-Length: 268

Connection: close

X-CorrelationID: Id-414dec590f000000000000005e8e4a38 1

Content-Type: text/xml;

charset="utf-8"

<?xml version="1.0" encoding="utf-8"?>

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">

<soap:Body xmlns:m="http://www.example.org/stock">

<m:GetStockPriceResponse>

<m:Price>81.0</m:Price>

</m:GetStockPriceResponse>

</soap:Body>

</soap:Envelope>

ERROR    10/22/17, 11:48:18.471            java exception:

com.vordel.circuit.CircuitAbortException: No certificate retrieved for Selector Expression for encryption recipient [Default Recipient]

at com.vordel.circuit.crypt.XMLEncryptionProcessor.setupRecipientParams(XMLEncryptionProcessor.java:392)

at com.vordel.circuit.crypt.XMLEncryptionProcessor.setupEncryptionParams(XMLEncryptionProcessor.java:295)

at com.vordel.circuit.crypt.XMLEncryptionProcessor.invoke(XMLEncryptionProcessor.java:87)

at com.vordel.circuit.InvocationEngine.invokeFilter(InvocationEngine.java:151)

at com.vordel.circuit.InvocationEngine.invokeCircuit(InvocationEngine.java:43)

at com.vordel.circuit.InvocationEngine.recordCircuitInvocation(InvocationEngine.java:277)

at com.vordel.circuit.InvocationEngine.processMessage(InvocationEngine.java:240)

at com.vordel.circuit.SyntheticCircuitChainProcessor.invoke(SyntheticCircuitChainProcessor.java:65)

at com.vordel.dwe.http.HTTPPlugin.processRequest(HTTPPlugin.java:409)

at com.vordel.dwe.http.HTTPPlugin.invokeDispose(HTTPPlugin.java:420)

at com.vordel.dwe.http.HTTPPlugin.invoke(HTTPPlugin.java:140)

ERROR    10/22/17, 11:48:18.471    The message [Id-424dec59d80f4c3336ed0690] logged Failure at 10.22.2017 11:48:18,470 with log description: XML encryption failed

ERROR    10/22/17, 11:48:18.471    Filter that caused failure: 2.Apply XML Encryption

ERROR    10/22/17, 11:48:18.471    Policy 'jdevEncrypt' {

ERROR    10/22/17, 11:48:18.471            Filter '1.Configure XML-Encryption Settings' Status: PASSED

ERROR    10/22/17, 11:48:18.471            Filter '2.Apply XML Encryption' Status: FAILED

ERROR    10/22/17, 11:48:18.471    }

ERROR    10/22/17, 11:48:18.471    2.Apply XML Encryption filter failed

DATA        HTTP/1.1 500 Internal Server Error

Date: Sun, 22 Oct 2017 07:48:18 GMT

Server: Gateway

Connection: close

X-CorrelationID: Id-424dec59d80f4c3336ed0690 0

Host: localhost:8066

User-Agent: Gateway

Content-Type: text/xml; charset="utf-8"

<?xml version="1.0" encoding="utf-8"?><Envelope>

<Header/>

<Body>

<Fault>

<faultcode>env:Server</faultcode>

<faultstring/>

<detail type="faultDetails"/>

</Fault>

</Body>

</Envelope>

Regards,

jdev

Tagged: