Wednesday, July 6, 2016

How to extend domain when servers are deleted from weblogic console

Recently there has been a issue where we have deleted one server from weblogic console.

Now when we want to extent the domain the options to extend are disable as below:


So to enable the option once again follow below points:

1)Go to below location:

<Your_domain>init-info

2)Edit the domain-info.xml and remove the entries for IBR server for example and now I am able to extend the domain for the server.




3) Also

Edit Config-groups.xml with any text editor and remove the following entries of issued server example for IBR shown below:

<group name="IBR-MAIN-APPS">
     <app-deployment name="IBR"/>
   </group>


<server-group name="IBR-MGD-SVRS" processed="true">
     <server-name>IBR_server1</server-name>
   </server-group>


<app-svc-group-mapping>
     <app-svc-group>IBR-MAIN-APPS</app-svc-group>
     <target-server-group>IBR-MGD-SVRS</target-server-group>
   </app-svc-group-mapping>


Issue is that once you delete the server from the console then entries to domain-info.xml is not deleted.

So,to enable the configuration wizard you need to remove the entries so that when you want to extent again it will not find the sever entries and thus allow you to extend.

Thanks


Thursday, December 10, 2015

ice.driver.ImageCaptureDriverException: The file format conflicts with the specified color format. Please re-scan without changing the color type

Today i received a scanner issue while commiting the document from ODC to IPM

The error was :

ice.driver.ImageCaptureDriverException: The file format conflicts with the specified color format. Please re-scan without changing the color type.

I got the below solution that i am sharing here:

Solution:

The File Transfer Mode needs to be set to off.
Click on the "Preferences" link within the dc-client page. (Example: http://CAPTURE_SERVER:CAPTURE_PORT/dc-client )

Set File Transfer Mode to Off.

Thanks
http://oraclefusionmiddleware.in/



Thursday, October 1, 2015

How to commit Document to DOCS using Oracle Documents Cloud service Driver

How to use ODC + Oracle Documents Cloud service Driver to commit documents to Documets cloud service.

With the latest Patch 2  for Capture 11.1.1.9.0 oracle had introduced new Document Cloud Service commit driver.

Using this we can set up commit profile to commit the documents to specific folder in the DOCS.

Few things need to taken care of:

Being that you're accessing a secure site, you need to configure the capture managed server for SSL.

Login to weblogic Console-->Navigate to server-->click on Capture_server

Click on SSL.

 Please see the areas outlined in red in the screen shot below.


 The custom host name verifier should also be set to

weblogic.security.utils.SSLWLSWildcardHostnameVerifier.

===========================


After that login to dc-console and in commit profile choose the driver

Oracle documents cloud service.

Provide the credentials and test.After that chhose the folder where you want to commit.

And then test committing the documets it will work fine.


Thanks



Monday, September 28, 2015

GET_FILE Service Using RIDC

Today i faced issue testing GET_FILE from Generic Soap Port so i tried using RIDC and working fine.

So just though of putting here the sample code
:
package ucm;
import java.io.*;

import oracle.stellent.ridc.*;
import oracle.stellent.ridc.model.*;
import oracle.stellent.ridc.protocol.*;
import oracle.stellent.ridc.protocol.intradoc.*;
import oracle.stellent.ridc.common.log.*;
import oracle.stellent.ridc.model.serialize.*;
import oracle.stellent.ridc.protocol.http.*;

import java.util.List;

/*
* This is a class used to test the basic functionality
* of retrieving a file from Content Server.
*/

public class TestRIDCGetFile {

public static void main(String[] args) {
  // Create a new IdcClientManager
  IdcClientManager manager = new IdcClientManager();
  try {
    // Create a new IdcClient Connection using idc protocol (i.e. socket connection to Content Server)
     IdcClient idcClient = manager.createClient("idc://localhost:4444");
   // Create new context using the 'sysadmin' user
   IdcContext userContext = new IdcContext("sysadmin");
   // Create an HdaBinderSerializer; this is not necessary, but it allows us to serialize the request and response data binders
   //HdaBinderSerializer serializer =
  // new HdaBinderSerializer("UTF-8", idcClient.getDataFactory());
     
  //IdcContext userContext = new IdcContext("weblogic", "Welcome1");
     
  HdaBinderSerializer serializer = new HdaBinderSerializer ("UTF-8", idcClient.getDataFactory ());

   // Databinder for checkin request
   DataBinder dataBinder = idcClient.createBinder();
   dataBinder.putLocal("IdcService", "GET_FILE");
   dataBinder.putLocal("dID", "664");
   dataBinder.putLocal("dDocName", "TRANING000660");
   dataBinder.putLocal("allowInterrupt", "1");

   serializer.serializeBinder(System.out, dataBinder);

   // Create an output stream to output the file received
   FileOutputStream fos = new FileOutputStream("test.txt");
   // Send the request to Content Server
   ServiceResponse response =
   idcClient.sendRequest(userContext, dataBinder);
   // Create an input stream from the response
   InputStream fis = response.getResponseStream();

   // Read the data in 1KB chunks and write it to the file
   byte[] readData = new byte[1024];
   int i = fis.read(readData);

   while (i != -1) {
     fos.write(readData, 0, i);
     i = fis.read(readData);
   }

   // Close the socket connection
   response.close();
   // Don't leave the streams open
   fos.close();
   fis.close();


  } catch (IdcClientException ice) {
   ice.printStackTrace();
  } catch (IOException ioe) {
   ioe.printStackTrace();
  }
}

}

 Thanks

Saturday, September 19, 2015

ADF application Integration with Oracle Documents Cloud Service

Here,

You need to call the AppLink Resource via REST. This gives you a URL which you can drop into an iFrame.

You need to perform some javascript handling that needs to be done when you load an applink url in an iframe.  The appLinkReady event must be handled. In the following code snippets, this was done in a JSP file which is called from the application. Here's the sample JSP file


===========================================================

<%@ page contentType="text/html;charset=UTF-8"%>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <title>view</title>
        <script>
            function OnMessage(evt) {
                /*Created By Sheka 14042015, Attach cloud document to my inline frame*/
                if (evt.data.message === 'appLinkReady') {
                  var iframe = document.getElementById('if1');
                  var iframewindow = iframe.contentWindow ? iframe.contentWindow : iframe.contentDocument.defaultView;
                  var dAppLinkRefreshToken = document.getElementById('refreshTokenField').value;
                  var dAppLinkAccessToken = document.getElementById('accessTokenField').value;
                  var dAppLinkRoleName = document.getElementById('roleField').value;
                  var embedPreview = true;
               
                  var msg = {
                      message : 'setAppLinkTokens', appLinkRefreshToken : dAppLinkRefreshToken, appLinkAccessToken : dAppLinkAccessToken, appLinkRoleName : dAppLinkRoleName, embedPreview : embedPreview
                  };
                  iframewindow.postMessage(msg, '*');
              }
            }
            function assignMessageListener(){
                window.addEventListener('message', OnMessage, false);
            }
        </script>
    </head>
    <body onload="assignMessageListener();">
    <iframe id="if1" src="${sessionScope.frameSource}" width="100%" height="700px"></iframe>
    <input type="hidden" id="frameSourceField" value="${sessionScope.frameSource}" size="500"/>
    <input type="hidden" id="refreshTokenField" value="${sessionScope.refreshToken}" size="500"/>
    <input type="hidden" id="accessTokenField" value="${sessionScope.accessToken}" size="500"/>
    <input type="hidden" id="roleField" value="${sessionScope.role}" size="500"/>
 
    </body>
</html>

==================================================================

In your ADF page fragment , add:


<af:inlineFrame id="mainf" source="/view.jsp"  styleClass="AFStretchWidth"

                                inlineStyle="height:800px"></af:inlineFrame>


===================================================================

Finally, in the managed bean, add:

 public String viewFileAction() {
        FacesContext ctx = getFacesContext();
        HttpSession session = (HttpSession)ctx.getExternalContext().getSession(true);              
        AppLink al = CreateFileAppLink.getFileUrl(getFileId());
              System.out.println(al);
              setFrameSource(al.getAppLinkUrl());
              setRefreshToken(al.getRefreshToken());
              setAccessToken(al.getAccessToken());
              setRole(al.getRole());            
        session.setAttribute("frameSource", getFrameSource());
        session.setAttribute("refreshToken", getRefreshToken());
        session.setAttribute("accessToken", getAccessToken());
        session.setAttribute("role", getRole());
return null;

}

===================================================================


Hope this helps :)

Tuesday, July 21, 2015

Standalone URM Integration with Imaging/IPM

URM is nothing more than UCM with an overlay of records management rules. So if you want to integrate URM with IPM.

 We need to create connection in Imaging.For establishing connection with URM ,we need to enable IpmRepository component in URM.

 The IpmRepository component adds functionality to the content server to allow Oracle WebCenter Content: Imaging to store documents and metadata in the content server.

You can download the component from Content server System components which is by default enablein CS.

In case you face issue getting the component .

Let me know. 

Friday, April 3, 2015

How to attach same ADF form to different Human task in BPM

Under your UI project (The first adf form UI that you have created) there will be hwtaskflow.xml.

open hwtaskflow.xml file and copy the following    (this is code for your first Humantask1;in you case it will be something Sales Quote EntryHuman task)

<hwTaskFlow>
<WorkflowName>HumanTask1</WorkflowName>
<TaskDefinitionNamespace>http://xmlns.oracle.com/sample/HumanTask1</TaskDefinitionNamespace>
<TaskFlowId>HumanTask1_TaskFlow</TaskFlowId>
<TaskFlowFileName>WEB-INF/taskFlows/HumanTask1_TaskFlow.xml</TaskFlowFileName>
</hwTaskFlow>

and paste the same in hwtaskflow.xml.

 Now replace <WorkflowName> and <TaskDefinitionNamespace> values with your Humantask2 name and namesspace. then your hwtaskflow.xml should be something like this.

<hwTaskFlow>
<WorkflowName>HumanTask1</WorkflowName>
<TaskDefinitionNamespace>http://xmlns.oracle.com/sample/HumanTask1</TaskDefinitionNamespace>
<TaskFlowId>HumanTask1_TaskFlow</TaskFlowId>
<TaskFlowFileName>WEB-INF/taskFlows/HumanTask1_TaskFlow.xml</TaskFlowFileName>
</hwTaskFlow>
<hwTaskFlow>
<WorkflowName>HumanTask2</WorkflowName>
<TaskDefinitionNamespace>http://xmlns.oracle.com/sample/HumanTask2</TaskDefinitionNamespace>
<TaskFlowId>HumanTask1_TaskFlow</TaskFlowId>
<TaskFlowFileName>WEB-INF/taskFlows/HumanTask1_TaskFlow.xml</TaskFlowFileName>
</hwTaskFlow>