Wednesday, September 17, 2014

SCAC-50012 - Oracle SOA 11g

This error will occur most of time compiling the BPEL process with java embedded activity, If there is any issue with the java code this exception will be thrown.

We were facing the SCAC-50012 exception with the following code.

String orderID  =  ((oracle.xml.parser.v2.XMLElement) getVariableData("inputVariable","payload",'/client:process/client:input')).getFirstChild().getNodeValue();
String Title=("OrderID: " +orderID);                                        

The actual  issue with the XPATH expression specified within the single quote(copy paste issue), the compilation became successful after converting the single quotes to double quotes.

String orderID  =  ((oracle.xml.parser.v2.XMLElement) getVariableData("inputVariable","payload","/client:process/client:input")).getFirstChild().getNodeValue();
String Title=("OrderID: " +orderID);                                        

Monday, September 1, 2014

Dynamic Endpoint Implementation through DB Table –Oracle SOA

The below document explain the approach to store change the endpoints of the service dynamically.

Download Load_Balancer_Probe_SOA-INFRA.pdf

Friday, August 29, 2014

Programmatically creating Nodes in Adobe CQ

We can programmatically create the nodes in Adobe CQ5, the below code snippet will help us to create the nodes in CQ5.

private static final String DEFAULT_PRODUCTS_PATH = "/etc/commerce/products/sample";

//Get the Resource of the root node
ResourceResolver resolver = request.getResourceResolver();
Resource target = resolver.getResource(DEFAULT_PRODUCTS_PATH);

//Get the session
Session session = resource.getResourceResolver().adaptTo(Session.class);

//Create the Node
Node node = JcrUtil.createPath(DEFAULT_PRODUCTS_PATH+"/"+code, JcrConstants.NT_UNSTRUCTURED, session);

//Set the required properties
node.setProperty("name", "sample");
node.setProperty("description", "sample");

//Save the session;

While creating the NT_UNSTRUCTURED node make sure the parent folder is sling:folder, the node will not be created if the parent node is of type nt::folder.

Friday, July 25, 2014

Thursday, July 24, 2014

Cipher not initialized exception while invoking the Salesforce service through OSB

We are getting the "Cipher not initialized" exception wile invoking the Salesforce services through OSB.

We are able to invoke the URL successfully and able to receive the session id, also this exception was thrown only for a particular sandbox but the all other sandbox invocation is successful.

The "Cipher not initialized" exception will be thrown when there is no common Ciphers available between the client and server while negotiating the SSL communication.

We have raised a case with Salesforce regarding this and receive the response as "We recently upgraded our Cipher suites for SSL. To resolve the issue upgrade latest version of Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files- 6 for JDK1.6 on middleware."

After upgrading the Unlimited Strength Jurisdiction Policy Files in all the servers nodes we are able to invoke the service successfully.

Follow the below steps to resolve the issue

  • Download the Unlimited Strength Jurisdiction Policy Files from Additional Resources" section), for java 1.6 use
  • Unzip the downloaded zip 
  • Copy local_policy.jar and US_export_policy.jar to the $JAVA_HOME/jre/lib/security in all the OSB nodes.
  • Restarts the servers.
Now you will be able to invoke the service successfully.

Tuesday, July 15, 2014

Don't support MessageVariable in fromPart - Oracle SOA 11g

This error will be thrown while invoking the service with Multipart Message type and the receive activity uses the fromPart to retrieve the parts data and assign to a variables created based on message type or invoke activity uses toPart to assign the data to parts based message type variable.

To resolve this whenever retrieving or assigning values to parts in receive/invoke activity through fromPart or toPart use the element based variables instead using the message type based variable.

Multipart Message Support in Oracle BPEL