Oracle Content DB Confiuration Assistant spawns java error
Starting CredentialManagerAction_CreateApplicationEntity_Oid
oracle.ifs.common.IfsException: IFS-21028: The current session operation was cancelled
at oracle.ifs.admin.actions.IterateSCsCredentialManagerAction.execute(IterateSCsCredentialManagerAction.java:127)
at oracle.ifs.admin.actions.BaseAppAction.perform(BaseAppAction.java:180)
at oracle.ifs.utils.action.ActionQueue.performActions(ActionQueue.java:303)
at oracle.ifs.utils.action.ActionQueue.run(ActionQueue.java:229)
at java.lang.Thread.run(Thread.java:534)
recording that configuration failed
Exception traces ---->
oracle.ifs.utils.action.ActionFailedException: oracle.ifs.utils.action.ActionFailedException: oracle.ifs.common.IfsException: IFS-21008: Unable to connect to iFS service
oracle.ifs.common.IfsException: IFS-22001: Unable to resolve sort specification
oracle.ifs.common.IfsException: IFS-10417: Unable to derive DatabaseObject name for Attribute NAME of ClassObject CLASSOBJECT
oracle.ifs.common.IfsException: IFS-12214: Unable to get item in collection by name (CLASSOBJECT)
oracle.ifs.common.IfsException: IFS-12201: Unable to resolve collection
oracle.ifs.common.IfsException: IFS-21028: The current session operation was cancelled
at oracle.ifs.admin.tools.schema.SchemaCreator.perform(SchemaCreator.java:309)
at oracle.ifs.utils.action.ActionQueue.performActions(ActionQueue.java:303)
at oracle.ifs.utils.action.ActionQueue.run(ActionQueue.java:229)
at java.lang.Thread.run(Thread.java:534)
oracle.ifs.utils.action.ActionFailedException: oracle.ifs.common.IfsException: IFS-21008: Unable to connect to iFS service
oracle.ifs.common.IfsException: IFS-22001: Unable to resolve sort specification
oracle.ifs.common.IfsException: IFS-10417: Unable to derive DatabaseObject name for Attribute NAME of ClassObject CLASSOBJECT
oracle.ifs.common.IfsException: IFS-12214: Unable to get item in collection by name (CLASSOBJECT)
oracle.ifs.common.IfsException: IFS-12201: Unable to resolve collection
oracle.ifs.common.IfsException: IFS-21028: The current session operation was cancelled
at oracle.ifs.admin.actions.IterateSCsCredentialManagerAction.execute(IterateSCsCredentialManagerAction.java:127)
at oracle.ifs.admin.actions.BaseAppAction.perform(BaseAppAction.java:180)
at oracle.ifs.utils.action.ActionQueue.performActions(ActionQueue.java:303)
at oracle.ifs.utils.action.ActionQueue.run(ActionQueue.java:229)
at java.lang.Thread.run(Thread.java:534)
oracle.ifs.common.IfsException: IFS-21008: Unable to connect to iFS service
oracle.ifs.common.IfsException: IFS-22001: Unable to resolve sort specification
oracle.ifs.common.IfsException: IFS-10417: Unable to derive DatabaseObject name for Attribute NAME of ClassObject CLASSOBJECT
oracle.ifs.common.IfsException: IFS-12214: Unable to get item in collection by name (CLASSOBJECT)
oracle.ifs.common.IfsException: IFS-12201: Unable to resolve collection
oracle.ifs.common.IfsException: IFS-21028: The current session operation was cancelled
at oracle.ifs.server.S_LibrarySession.verifyNotInterrupted(S_LibrarySession.java:18627)
at oracle.ifs.server.S_LibraryObjectSelector.selectObjects(S_LibraryObjectSelector.java:463)
at oracle.ifs.server.S_Selector.getItems(S_Selector.java:384)
at oracle.ifs.common.CachedSelectorCollection.resolveNow(CachedSelectorCollection.java:219)
at oracle.ifs.common.CachedCollection.resolve(CachedCollection.java:321)
at oracle.ifs.common.CachedCollection.getItems(CachedCollection.java:195)
at oracle.ifs.server.S_LibrarySession.getAttributeSortName(S_LibrarySession.java:11315)
at oracle.ifs.common.SortQualifier.resolve(SortQualifier.java:257)
at oracle.ifs.common.SortSpecification.resolveNow(SortSpecification.java:308)
at oracle.ifs.common.SortSpecification.resolve(SortSpecification.java:282)
at oracle.ifs.server.S_LibrarySession.<init>(S_LibrarySession.java:2731)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
at oracle.ifs.server.S_LibraryService.constructSession(S_LibraryService.java:3547)
at oracle.ifs.server.S_LibraryService.connect(S_LibraryService.java:3284)
at oracle.ifs.beans.LibraryService.connect(LibraryService.java:1227)
at oracle.ifs.admin.tools.credential.CredentialManagerConfiguration.run(CredentialManagerConfiguration.java:258)
at oracle.ifs.admin.actions.IterateSCsCredentialManagerAction.execute(IterateSCsCredentialManagerAction.java:122)
at oracle.ifs.admin.actions.BaseAppAction.perform(BaseAppAction.java:180)
at oracle.ifs.utils.action.ActionQueue.performActions(ActionQueue.java:303)
at oracle.ifs.utils.action.ActionQueue.run(ActionQueue.java:229)
at java.lang.Thread.run(Thread.java:534)
configuration failed on Mon Nov 13 12:58:52 MST 2006
Exiting with error code 1
Hi,
Can you drop the three CONTENT schemas from the database (CONTENT, CONTENT$CM, CONTENT$ID) and re-run the installation/configuration assistant and see if the problem reappears.
By the way, what operating system / database combination are you running (for DB server)?
What operating system are you utilizing for Content DB middle tier?
Any reason spring to mind why the exception log would be showing the operation was cancelled? Was the cancel button was pressed?
thanks
Matt.
Similar Messages
-
Content Services Configuration Assistant failde OCS 10.1.2
When it gets to the Oracle Content Services Configuration Assistant, this one fails. Seeing the log file in "home/oracle/product/10.1.2/ocs_1/apps/content/log/ContentMTConfig.log" the problem seems to be in the UploadWorkflowProcessDefinition:
*********************** Starting UploadWorkflowProcessDefinition ***********************
The command log is hidden for security reasons
Command returned an exit code of: 1
Command output:
wferr:
- WFLDRS_FAIL
- WFLDRSD_FAIL MODE=UPLOAD EFFDATE=<null>
- WFLDRSD_PROT_CUST NAME=WFSTD/AND ENTITY=ACTIVITY
Failed = oracle.ifs.utils.action.ActionFailedException: Oracle Workflow Definition Loader 2.6.3.5
wferr:
- WFLDRS_FAIL
- WFLDRSD_FAIL MODE=UPLOAD EFFDATE=<null>
- WFLDRSD_PROT_CUST NAME=WFSTD/AND ENTITY=ACTIVITY
at oracle.ifs.admin.actions.OsCommandAction.processFinished(OsCommandAction.java:135)
at oracle.ifs.admin.actions.ForkProcessAction.perform(ForkProcessAction.java:187)
at oracle.ifs.utils.action.ActionQueue.performActions(ActionQueue.java:303)
at oracle.ifs.utils.action.ActionQueue.run(ActionQueue.java:229)
at java.lang.Thread.run(Thread.java:534)
recording that configuration failed
saving:/home/oracle/product/10.1.2/ocs_1/apps/content/settings/oracle/ifs/utils/common/Settings.properties
iFS configuration failed; the following error occurred:
Exception traces ---->
oracle.ifs.utils.action.ActionFailedException: oracle.ifs.utils.action.ActionFailedException: Oracle Workflow Definition Loader 2.6.3.5
Can someone help me.
Thankshi all,
i've solved the problem by cleanly remove .profile under oracle login directory. not sure whether OUI refers this file during installation. in the new installation, i also use two UNIX users, one for infra tier, another for apps tier. this time, there is no single error reported.
thanks for your attention.
Rgds/ -
I have problem to install SOA suite
Indeed it installs and when it come to complete configuration assistants it shows that one of my components failed.
i tried several times to uninstall/install the SOA suite and it failed in the same stage.
can some one give me some hints?
here is the log file enty:
Trying to check if config_order xml is present
The scratch path is =H:\temp\OraInstall2006-11-23_02-08-30AM
The config_order.xml is null
Lowering thread priority for config tool
Starting to execute configuration assistants
Launched configuration assistant 'Oracle Application Server Configuration Assistant'
Tool type is: Optional.
The command being spawned is: 'F:\dev\oracle\OracleAS_10\jdk\bin\java -cp F:\dev\oracle\OracleAS_10\j2ee\home\applications\ascontrol\ascontrol\WEB-INF\lib\ascontrol.jar;F:\dev\oracle\OracleAS_10\j2ee\home\applications\ascontrol\ascontrol\WEB-INF\lib\log4j-core.jar;F:\dev\oracle\OracleAS_10\jlib\oraclepki.jar;F:\dev\oracle\OracleAS_10\jlib\ojmisc.jar; oracle.sysman.ias.studio.installer.ASControlConfigAssistant -sso true -j2eeinstance home -username oc4jadmin -password *Protected value, not to be logged* -oraclehome F:\dev\oracle\OracleAS_10'
Start output from spawned process:
java.lang.NoClassDefFoundError: oracle/sysman/ias/studio/installer/ASControlConfigAssistant
Exception in thread "main"
End output from spawned process.
Configuration assistant "Oracle Application Server Configuration Assistant" failed
java.lang.NoClassDefFoundError: oracle/sysman/ias/studio/installer/ASControlConfigAssistant
Exception in thread "main"
Result code for launching of configuration assistant is: 1
The OUICA command is launched from F:\dev\oracle\OracleAS_10\oui\bin\ouica.bat.-----------------------------------------------------------------------------
*** Starting OUICA ***
Oracle Home set to F:\dev\oracle\OracleAS_10
Configuration directory is set to F:\dev\oracle\OracleAS_10\cfgtoollogs. All xml files under the directory will be processed
-----------------------------------------------------------------------------please tell me what is Oracle Application Server Configuration Assistant and what effect it will have on my server.
thanksHi all,
I've found a solution to this problem. So far I've been trying the installation through MSTSC by taking administrative control (through /console option). Later, I tried my luck by installing it through Net Meeting which proved to be successful.
Hope you can try the same and ged rid of the installation issues. -
Hi,
I use ridc to check in file into Oracle Center Content server. There is no problem at the beginning. But after running for several days, there is following error.
I must restart my program to solve this issue.
Can anyone help me solve this problem?
Thanks,
Tony
2013-07-11 12:24:31,189 ERROR [BatchEventHandler] com.edocs.common.api.integration.contmgmt.ContentException: oracle.stellent.ridc.protocol.ProtocolEx
ception: java.io.IOException: Input terminated before being able to read line
at com.edocs.common.integration.contmgmt.UCMContentManager.saveContent(UCMContentManager.java:95)
at com.edocs.common.reporting.batch.BatchEventHandler.processBatchRequest(BatchEventHandler.java:284)
at com.edocs.common.reporting.batch.BatchEventHandler.service(BatchEventHandler.java:138)
at com.edocs.common.reporting.tasks.batchprocessor.BatchReportProcessorTask.executeInternal(BatchReportProcessorTask.java:156)
at com.edocs.common.reporting.tasks.batchprocessor.BatchReportProcessorTask.doProcessTask(BatchReportProcessorTask.java:68)
at com.edocs.pwc.tasks.CommonTask.processTask(CommonTask.java:166)
at com.edocs.common.reporting.tasks.batchprocessor.BatchReportProcessorTask_9qwgr6_EOImpl.__WL_invoke(Unknown Source)
at weblogic.ejb.container.internal.SessionRemoteMethodInvoker.invoke(SessionRemoteMethodInvoker.java:40)
at com.edocs.common.reporting.tasks.batchprocessor.BatchReportProcessorTask_9qwgr6_EOImpl.processTask(Unknown Source)
at com.edocs.common.reporting.tasks.batchprocessor.BatchReportProcessorTask_9qwgr6_EOImpl_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.activation.ActivatableServerRef.invoke(ActivatableServerRef.java:85)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:522)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:146)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:518)
at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
Caused by: oracle.stellent.ridc.protocol.ProtocolException: java.io.IOException: Input terminated before being able to read line
at oracle.stellent.ridc.protocol.ServiceResponse.getResponseAsBinder(ServiceResponse.java:149)
at oracle.stellent.ridc.protocol.ServiceResponse.getResponseAsBinder(ServiceResponse.java:108)
at com.edocs.common.integration.contmgmt.UCMContentManager.saveContent(UCMContentManager.java:81)
... 17 more
Caused by: java.io.IOException: Input terminated before being able to read line
at oracle.stellent.ridc.model.serialize.HdaBinderSerializer.readLine(HdaBinderSerializer.java:371)
at oracle.stellent.ridc.model.serialize.HdaBinderSerializer.readToEnd(HdaBinderSerializer.java:335)
at oracle.stellent.ridc.model.serialize.HdaBinderSerializer.parseBinder(HdaBinderSerializer.java:165)
at oracle.stellent.ridc.model.serialize.HdaBinderSerializer.parseBinder(HdaBinderSerializer.java:71)
at oracle.stellent.ridc.protocol.ServiceResponse.getResponseAsBinder(ServiceResponse.java:126)
... 19 more
2013-07-11 12:24:33,005 ERROR [BatchEventHandler] com.edocs.common.api.integration.contmgmt.ContentException: oracle.stellent.ridc.protocol.ProtocolEx
ception: java.io.IOException: Input terminated before being able to read line
at com.edocs.common.integration.contmgmt.UCMContentManager.saveContent(UCMContentManager.java:95)
at com.edocs.common.reporting.batch.BatchEventHandler.processBatchRequest(BatchEventHandler.java:284)
at com.edocs.common.reporting.batch.BatchEventHandler.service(BatchEventHandler.java:138)
at com.edocs.common.reporting.tasks.batchprocessor.BatchReportProcessorTask.executeInternal(BatchReportProcessorTask.java:156)
at com.edocs.common.reporting.tasks.batchprocessor.BatchReportProcessorTask.doProcessTask(BatchReportProcessorTask.java:68)
at com.edocs.pwc.tasks.CommonTask.processTask(CommonTask.java:166)
at com.edocs.common.reporting.tasks.batchprocessor.BatchReportProcessorTask_9qwgr6_EOImpl.__WL_invoke(Unknown Source)
at weblogic.ejb.container.internal.SessionRemoteMethodInvoker.invoke(SessionRemoteMethodInvoker.java:40)
at com.edocs.common.reporting.tasks.batchprocessor.BatchReportProcessorTask_9qwgr6_EOImpl.processTask(Unknown Source)
at com.edocs.common.reporting.tasks.batchprocessor.BatchReportProcessorTask_9qwgr6_EOImpl_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.activation.ActivatableServerRef.invoke(ActivatableServerRef.java:85)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:522)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:146)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:518)
at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
Caused by: oracle.stellent.ridc.protocol.ProtocolException: java.io.IOException: Input terminated before being able to read line
at oracle.stellent.ridc.protocol.ServiceResponse.getResponseAsBinder(ServiceResponse.java:149)
at oracle.stellent.ridc.protocol.ServiceResponse.getResponseAsBinder(ServiceResponse.java:108)
at com.edocs.common.integration.contmgmt.UCMContentManager.saveContent(UCMContentManager.java:81)
... 17 more
Caused by: java.io.IOException: Input terminated before being able to read line
at oracle.stellent.ridc.model.serialize.HdaBinderSerializer.readLine(HdaBinderSerializer.java:371)
at oracle.stellent.ridc.model.serialize.HdaBinderSerializer.readToEnd(HdaBinderSerializer.java:335)
at oracle.stellent.ridc.model.serialize.HdaBinderSerializer.parseBinder(HdaBinderSerializer.java:165)
at oracle.stellent.ridc.model.serialize.HdaBinderSerializer.parseBinder(HdaBinderSerializer.java:71)
at oracle.stellent.ridc.protocol.ServiceResponse.getResponseAsBinder(ServiceResponse.java:126)
... 19 more
2013-07-11 12:24:37,870 ERROR [BatchEventHandler] com.edocs.common.api.integration.contmgmt.ContentException: oracle.stellent.ridc.protocol.ProtocolEx
ception: java.io.IOException: Input terminated before being able to read line
at com.edocs.common.integration.contmgmt.UCMContentManager.saveContent(UCMContentManager.java:95)
at com.edocs.common.reporting.batch.BatchEventHandler.processBatchRequest(BatchEventHandler.java:284)
at com.edocs.common.reporting.batch.BatchEventHandler.service(BatchEventHandler.java:138)
at com.edocs.common.reporting.tasks.batchprocessor.BatchReportProcessorTask.executeInternal(BatchReportProcessorTask.java:156)
at com.edocs.common.reporting.tasks.batchprocessor.BatchReportProcessorTask.doProcessTask(BatchReportProcessorTask.java:68)
at com.edocs.pwc.tasks.CommonTask.processTask(CommonTask.java:166)
at com.edocs.common.reporting.tasks.batchprocessor.BatchReportProcessorTask_9qwgr6_EOImpl.__WL_invoke(Unknown Source)
at weblogic.ejb.container.internal.SessionRemoteMethodInvoker.invoke(SessionRemoteMethodInvoker.java:40)
at com.edocs.common.reporting.tasks.batchprocessor.BatchReportProcessorTask_9qwgr6_EOImpl.processTask(Unknown Source)
at com.edocs.common.reporting.tasks.batchprocessor.BatchReportProcessorTask_9qwgr6_EOImpl_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.activation.ActivatableServerRef.invoke(ActivatableServerRef.java:85)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:522)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:146)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:518)
at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
Caused by: oracle.stellent.ridc.protocol.ProtocolException: java.io.IOException: Input terminated before being able to read line
at oracle.stellent.ridc.protocol.ServiceResponse.getResponseAsBinder(ServiceResponse.java:149)
at oracle.stellent.ridc.protocol.ServiceResponse.getResponseAsBinder(ServiceResponse.java:108)
at com.edocs.common.integration.contmgmt.UCMContentManager.saveContent(UCMContentManager.java:81)
... 17 more
Caused by: java.io.IOException: Input terminated before being able to read line
at oracle.stellent.ridc.model.serialize.HdaBinderSerializer.readLine(HdaBinderSerializer.java:371)
at oracle.stellent.ridc.model.serialize.HdaBinderSerializer.readToEnd(HdaBinderSerializer.java:335)
at oracle.stellent.ridc.model.serialize.HdaBinderSerializer.parseBinder(HdaBinderSerializer.java:165)
at oracle.stellent.ridc.model.serialize.HdaBinderSerializer.parseBinder(HdaBinderSerializer.java:71)
at oracle.stellent.ridc.protocol.ServiceResponse.getResponseAsBinder(ServiceResponse.java:126)
... 19 more
2013-07-11 12:24:39,722 ERROR [BatchEventHandler] com.edocs.common.api.integration.contmgmt.ContentException: oracle.stellent.ridc.protocol.ProtocolEx
ception: java.io.IOException: Input terminated before being able to read line
at com.edocs.common.integration.contmgmt.UCMContentManager.saveContent(UCMContentManager.java:95)
at com.edocs.common.reporting.batch.BatchEventHandler.processBatchRequest(BatchEventHandler.java:284)
at com.edocs.common.reporting.batch.BatchEventHandler.service(BatchEventHandler.java:138)
at com.edocs.common.reporting.tasks.batchprocessor.BatchReportProcessorTask.executeInternal(BatchReportProcessorTask.java:156)
at com.edocs.common.reporting.tasks.batchprocessor.BatchReportProcessorTask.doProcessTask(BatchReportProcessorTask.java:68)
at com.edocs.pwc.tasks.CommonTask.processTask(CommonTask.java:166)
at com.edocs.common.reporting.tasks.batchprocessor.BatchReportProcessorTask_9qwgr6_EOImpl.__WL_invoke(Unknown Source)
at weblogic.ejb.container.internal.SessionRemoteMethodInvoker.invoke(SessionRemoteMethodInvoker.java:40)
at com.edocs.common.reporting.tasks.batchprocessor.BatchReportProcessorTask_9qwgr6_EOImpl.processTask(Unknown Source)
at com.edocs.common.reporting.tasks.batchprocessor.BatchReportProcessorTask_9qwgr6_EOImpl_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.activation.ActivatableServerRef.invoke(ActivatableServerRef.java:85)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:522)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:146)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:518)
at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
Caused by: oracle.stellent.ridc.protocol.ProtocolException: java.io.IOException: Input terminated before being able to read line
at oracle.stellent.ridc.protocol.ServiceResponse.getResponseAsBinder(ServiceResponse.java:149)
at oracle.stellent.ridc.protocol.ServiceResponse.getResponseAsBinder(ServiceResponse.java:108)
at com.edocs.common.integration.contmgmt.UCMContentManager.saveContent(UCMContentManager.java:81)
... 17 more
Caused by: java.io.IOException: Input terminated before being able to read line
at oracle.stellent.ridc.model.serialize.HdaBinderSerializer.readLine(HdaBinderSerializer.java:371)
at oracle.stellent.ridc.model.serialize.HdaBinderSerializer.readToEnd(HdaBinderSerializer.java:335)
at oracle.stellent.ridc.model.serialize.HdaBinderSerializer.parseBinder(HdaBinderSerializer.java:165)
at oracle.stellent.ridc.model.serialize.HdaBinderSerializer.parseBinder(HdaBinderSerializer.java:71)
at oracle.stellent.ridc.protocol.ServiceResponse.getResponseAsBinder(ServiceResponse.java:126)
... 19 moreThe following is my testing code.
package ebilling;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.InputStream;
import java.io.OutputStream;
import java.security.SecureRandom;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.List;
import java.util.Properties;
import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;
import oracle.stellent.ridc.IdcClient;
import oracle.stellent.ridc.IdcClientManager;
import oracle.stellent.ridc.IdcContext;
import oracle.stellent.ridc.model.DataBinder;
import oracle.stellent.ridc.model.DataObject;
import oracle.stellent.ridc.model.DataResultSet;
import oracle.stellent.ridc.model.TransferFile;
import oracle.stellent.ridc.protocol.ServiceResponse;
import org.apache.commons.lang.StringUtils;
public class UCMContentManager {
* Check in a file into a Oracle WebCenter Content Server and return content id of uploaded content item in Oracle WebCenter Content Server.
* @param properties The Oracle WebCenter Content Server connection properties.
* @param contentFile This file will be checked in a Oracle WebCenter Content Server.
* @param path The location path of checked in file in Oracle WebCenter Content Server. This path includes the file name.<br>
* For example, "/folder1/folder2/file1.txt". The "file1.txt" is the file name part. <br>
* The file name will be used as dDocName in Oracle WebCenter Server. It must be unique.<br>
* @throws ContentException The exception when uploading file into Oracle WebCenter Content Server.
* @return The content id of uploaded content item in Oracle WebCenter Content Server.
public String saveContent(Properties properties, File contentFile, String path) throws ContentException{
if(path.endsWith(SLASH)) {
throw new ContentException("Require file name in Content Management Server");
if(!path.startsWith(SLASH)) {
throw new ContentException("The file store path in Content Management Server should be absolute.");
if (path.indexOf("//") != -1) {
path = path.replace("//", SLASH);
String[] paths = path.split(SLASH);
String[] parents = new String[paths.length - 1];
String itemName = paths[paths.length-1];
System.arraycopy(paths, 0, parents, 0, paths.length-1);
ServiceResponse response = null;
try {
IdcClientManager manager = new IdcClientManager();
IdcClient client = manager.createClient(properties.getProperty(URL_PROPERTY));
client.getConfig().setProperty ("http.library", "apache4");
String user = properties.getProperty(USERNAME_PROPERTY);
String pwd = properties.getProperty(PASSWORD_PROPERTY);
IdcContext connectionContext = new IdcContext(user, pwd);
pwd = null;
//create the parent folders if they don't exist
String folderGUID = makeFolders(properties, parents);
//check in the file
DataBinder requestData = client.createBinder();
requestData.putLocal("IdcService", "CHECKIN_UNIVERSAL");
requestData.putLocal("IsJava", "1");
requestData.putLocal("dDocName", itemName);
requestData.putLocal("dDocTitle", itemName);
requestData.putLocal("dDocType", "Binary");
requestData.putLocal("dSecurityGroup", "Public");
requestData.addFile("primaryFile", new TransferFile(contentFile));
response = client.sendRequest(connectionContext, requestData);
DataBinder responseData = response.getResponseAsBinder();
//String did = responseData.getLocal("dID");
String dDocname = responseData.getLocal("dDocName");
closeResponse(response);
//link the file in a folder
requestData = client.createBinder();
requestData.putLocal("IdcService", "FLD_CREATE_FILE");
requestData.putLocal("fParentGUID", folderGUID);
String fileType = "owner";
requestData.putLocal("fFileType", fileType);
requestData.putLocal("dDocName", dDocname);
response = client.sendRequest(connectionContext, requestData);
return dDocname;
} catch (Throwable e) {
throw new ContentException(e);
} finally{
closeResponse(response);
public void deleteContent(Properties properties, String contentId) throws ContentException{
List<String> didList = getDIds(properties, contentId);
contentId = contentId.toUpperCase();
ServiceResponse response = null;
try {
IdcClientManager manager = new IdcClientManager();
IdcClient client = manager.createClient(properties.getProperty(URL_PROPERTY));
client.getConfig().setProperty ("http.library", "apache4");
String user = properties.getProperty(USERNAME_PROPERTY);
String pwd = properties.getProperty(PASSWORD_PROPERTY);
IdcContext connectionContext = new IdcContext(user, pwd);
pwd = null;
DataBinder requestData = null;
for(int i=0; i<didList.size(); i++) {
String did = didList.get(i);
requestData = client.createBinder();
requestData.putLocal("IdcService", "DELETE_DOC");
requestData.putLocal("dDocName", contentId);
requestData.putLocal("dID", did);
response = client.sendRequest(connectionContext, requestData);
closeResponse(response);
//delete parent folder
// try {
// requestData = client.createBinder();
// requestData.putLocal("IdcService", "FLD_DELETE");
// requestData.putLocal("item1", "path:" + parentPath);
// requestData.putLocal("constructDialog", "1");
// response = client.sendRequest(connectionContext, requestData);
// } catch (Exception e) {
// // TODO: handle exception
} catch (Exception e) {
throw new ContentException(e);
} finally {
closeResponse(response);
public int getFileCountInFolder(Properties properties, String path) throws ContentException{
ServiceResponse response = null;
try {
IdcClientManager manager = new IdcClientManager();
IdcClient client = manager.createClient(properties.getProperty(URL_PROPERTY));
client.getConfig().setProperty ("http.library", "apache4");
String user = properties.getProperty(USERNAME_PROPERTY);
String pwd = properties.getProperty(PASSWORD_PROPERTY);
IdcContext connectionContext = new IdcContext(user, pwd);
pwd = null;
DataBinder binder = client.createBinder();
binder.putLocal("IdcService", "FLD_BROWSE");
binder.putLocal("path", path);
response = client.sendRequest(connectionContext, binder);
DataBinder result = response.getResponseAsBinder();
String num = result.getLocal("numFiles");
return Integer.parseInt(num);
catch (Exception e) {
throw new ContentException(e);
} finally {
closeResponse(response);
private String getFolderGUID(Properties properties, String path) throws ContentException {
ServiceResponse response = null;
String tmpFolderGUID = null;
try {
IdcClientManager manager = new IdcClientManager();
IdcClient client = manager.createClient(properties.getProperty(URL_PROPERTY));
client.getConfig().setProperty ("http.library", "apache4");
String user = properties.getProperty(USERNAME_PROPERTY);
String pwd = properties.getProperty(PASSWORD_PROPERTY);
IdcContext connectionContext = new IdcContext(user, pwd);
pwd = null;
DataBinder requestData = client.createBinder();
requestData.putLocal("IdcService", "FLD_INFO");
requestData.putLocal("path", path);
response = client.sendRequest(connectionContext,
requestData);
DataResultSet result = response.getResponseAsBinder().getResultSet("FolderInfo");
tmpFolderGUID = result.getRows().get(0).get("fFolderGUID")
.toString();
if(StringUtils.isBlank(tmpFolderGUID))
tmpFolderGUID = null;
} catch (Exception e) {
} finally {
closeResponse(response);
return tmpFolderGUID;
public boolean deleteFolder(Properties properties, String path) throws ContentException {
if(getFolderGUID(properties, path)==null)
return false;
int fileCount = getFileCountInFolder(properties, path);
ServiceResponse response = null;
if(fileCount==0) {
try {
IdcClientManager manager = new IdcClientManager();
IdcClient client = manager.createClient(properties.getProperty(URL_PROPERTY));
client.getConfig().setProperty ("http.library", "apache4");
String user = properties.getProperty(USERNAME_PROPERTY);
String pwd = properties.getProperty(PASSWORD_PROPERTY);
IdcContext connectionContext = new IdcContext(user, pwd);
pwd = null;
DataBinder binder = client.createBinder();
binder.putLocal("IdcService", "FLD_DELETE");
binder.putLocal("item1", "path:" + path);
binder.putLocal("constructDialog", "1");
response = client.sendRequest(connectionContext, binder);
return true;
catch (Exception e) {
throw new ContentException(e);
} finally {
closeResponse(response);
} else {
return false;
private String buildPath(String[] arr, int i) {
StringBuilder buf = new StringBuilder();
for(int j=0; j<=i; j++) {
buf.append(arr[j]);
buf.append(SLASH);
return buf.toString();
private String makeFolders(Properties properties, String[] paths) throws ContentException{
String folderGUID = "";
ServiceResponse response = null;
try {
IdcClientManager manager = new IdcClientManager();
IdcClient client = manager.createClient(properties.getProperty(URL_PROPERTY));
client.getConfig().setProperty ("http.library", "apache4");
String user = properties.getProperty(USERNAME_PROPERTY);
String pwd = properties.getProperty(PASSWORD_PROPERTY);
IdcContext connectionContext = new IdcContext(user, pwd);
pwd = null;
String parentFolderGUID = null;
for(int i=0; i<paths.length; i++) {
String fullPath = buildPath(paths, i);
DataBinder requestData = null;
parentFolderGUID = folderGUID;
folderGUID = getFolderGUID(properties, fullPath);
boolean exists = folderGUID!=null;
DataResultSet result = null;
if(!exists) {
//create new folder
try {
requestData = client.createBinder();
requestData.putLocal("IdcService", "FLD_CREATE_FOLDER");
requestData.putLocal("fParentGUID", parentFolderGUID);
requestData.putLocal("fFolderName", paths[i]);
response = client.sendRequest(connectionContext, requestData);
} finally {
closeResponse(response);
//retrieve folderGUID of new folder
folderGUID = getFolderGUID(properties, fullPath);
} catch (Throwable e) {
throw new ContentException(e);
} finally{
closeResponse(response);
return folderGUID;
public List<String> getDIds(Properties properties, String contentId) throws ContentException{
contentId = contentId.toUpperCase();
List<String> didList = new ArrayList<String>();
ServiceResponse response = null;
try {
IdcClientManager manager = new IdcClientManager();
IdcClient client = manager.createClient(properties.getProperty(URL_PROPERTY));
client.getConfig().setProperty ("http.library", "apache4");
String user = properties.getProperty(USERNAME_PROPERTY);
String pwd = properties.getProperty(PASSWORD_PROPERTY);
IdcContext connectionContext = new IdcContext(user, pwd);
pwd = null;
DataBinder requestData = null;
requestData = client.createBinder();
requestData.putLocal("IdcService", "GET_SEARCH_RESULTS");
requestData.putLocal("SortField", "dInDate");
requestData.putLocal("SortType", "DESC");
requestData.putLocal("QueryText", "dDocName <matches> `" + contentId +"`");
response = client.sendRequest(connectionContext, requestData);
DataBinder result = response.getResponseAsBinder();
DataResultSet resultSet = result.getResultSet("SearchResults");
for (DataObject dataObject : resultSet.getRows()) {
// System.out.println("ID : " + dataObject.get("dID")+" dDocName : "
// + dataObject.get("dDocName") + " Title : " + dataObject.get("dDocTitle")
// + " Author : " + dataObject.get("dDocAuthor") + " Security Group : "
// + dataObject.get("dSecurityGroup"));
String did = dataObject.get("dID");
didList.add(did);
//break;
} catch (Exception e) {
throw new ContentException(e);
} finally{
closeResponse(response);
return didList;
* Get the file content represented by contentId from a Oracle WebCenter Content Server.
* The return value is the input stream of retrieved file content.
* @param properties The Oracle WebCenter Content Server connection properties.
* @param contentId The Content ID for the content item in Oracle WebCenter Content Server.
* @throws ContentException The exception when retrieving content from Oracle WebCenter Content Server.
* @return The input stream of retrieved file content.
public InputStream retrieveContent(Properties properties, String contentId) throws ContentException{
try {
return new FileInputStream(retrieveContentFile(properties, contentId));
} catch (Throwable e) {
throw new ContentException(e);
public File retrieveContentFile(Properties properties, String contentId) throws ContentException {
contentId = contentId.toUpperCase();
ServiceResponse response = null;
try {
IdcClientManager manager = new IdcClientManager();
IdcClient client = manager.createClient(properties.getProperty(URL_PROPERTY));
client.getConfig().setProperty ("http.library", "apache4");
String user = properties.getProperty(USERNAME_PROPERTY);
String pwd = properties.getProperty(PASSWORD_PROPERTY);
IdcContext connectionContext = new IdcContext(user, pwd);
pwd = null;
DataBinder binder = client.createBinder();
binder.putLocal("IdcService", "GET_FILE");
//binder.putLocal("dID", dID);
binder.putLocal("dDocName", contentId);
binder.putLocal("RevisionSelectionMethod", "Latest");
response = client.sendRequest(connectionContext, binder);
InputStream in = null;
OutputStream out = null;
String edxhome = System.getProperty("edx.home");
File tmpParent = new File(edxhome);
tmpParent = new File(tmpParent, "Output");
tmpParent = new File(tmpParent, "tmp");
tmpParent.mkdirs();
File tmpFile = File.createTempFile("down_", "_ucm", tmpParent);
tmpFile.deleteOnExit();
try {
in = response.getResponseStream();
out = new FileOutputStream(tmpFile);
byte[] buf = new byte[1024];
int read = -1;
while((read = in.read(buf))!=-1) {
out.write(buf, 0, read);
} finally{
try {
if(in!=null)
in.close();
} catch (Exception e2) {
try {
if(out!=null)
out.close();
} catch (Exception e2) {
return tmpFile;
} catch (Throwable e) {
throw new ContentException(e);
} finally{
closeResponse(response);
private void closeResponse(ServiceResponse response) {
if(response!=null) {
try {
response.close();
} catch (Exception e) {
private static final String SLASH = "/";
private static final String URL_PROPERTY = "contentServerURL";
private static final String USERNAME_PROPERTY = "contentServerUser";
private static final String PASSWORD_PROPERTY = "contentServerPassword";
static volatile boolean flag = false;
static class UploadTask implements Runnable{
public void run() {
try {
while(!flag) {
UCMContentManager manager = new UCMContentManager();
Properties properties = new Properties();
properties.put(URL_PROPERTY, "https://slc402124:16201/cs/idcplg");
properties.put(USERNAME_PROPERTY, "weblogic");
properties.put(PASSWORD_PROPERTY, "weblogic1");
File contentFile = new File("C:/toding/mypro/UCM/test.txt");
String parentPath = "/new/test/multiThreadUpload/";
String location = makePath(parentPath);
manager.saveContent(properties, contentFile, location);
System.out.println(location);
Thread.sleep(5000);
} catch (Exception e) {
e.printStackTrace();
flag = true;
public static void main(String[] args) throws Exception{
ThreadPoolExecutor executor = new ThreadPoolExecutor(10, 10, 60, TimeUnit.SECONDS,
new LinkedBlockingQueue<Runnable>());
for(int i=0; i<10; i++) {
UploadTask uploadTask = new UploadTask();
executor.execute(uploadTask);
while(!flag) {
Thread.sleep(5000);
executor.shutdown();
public static String makePath(String parentPath) {
StringBuilder buf = new StringBuilder();
buf.append(parentPath);
if(!parentPath.endsWith("/")) {
buf.append("/");
Calendar rightNow = Calendar.getInstance();
String pattern = "yyyyMMdd";
SimpleDateFormat simDateForm = new SimpleDateFormat(pattern);
String dateStr = simDateForm.format((rightNow).getTime());
pattern = "HHmmssSSS";
simDateForm = new SimpleDateFormat(pattern);
String timeStr = simDateForm.format((rightNow).getTime());
buf.append(dateStr);
buf.append("/");
buf.append(timeStr);
buf.append("_");
buf.append(random.nextInt(10000));
String finalLocation = buf.toString();
return finalLocation;
private static SecureRandom random = new SecureRandom(); -
Oracle application server 10.1.3.1.0 install - JAVA error
Hi Everyone,
I am trying to Install Oracle Application Server 10.1.3.1.0 on 32 bit Red Hat Enterprise Linux Server release 5.8 (Tikanga)
When running the Installer, I use the -ignoreSysPrereqs option because 10.1.3.1.0 is only supported with Linux Server 4, I believe. But I know people have installed it on Linux 5.7 and 5.8
anyways, Oracle application server gets installed and asks me to run root.sh. I run root.sh and then hit the OK button to proceed,
At this point, it tries to run the configuration assistant and fails right away with the following error:
Starting to execute configuration assistants
Launched configuration assistant 'Oracle Application Server Configuration Assistant'
Tool type is: Optional.
The command being spawned is: '/u01/app/oracle/product/10.1.3.1/jdk/bin/java -cp /u01/app/oracle/product/10.1.3.1/j2ee/home/applications/ascontrol/ascontrol/WEB-INF/lib/ascontrol.jar:/u01/app/oracle/product/10.1.3.1/j2ee/home/applications/ascontrol/ascontrol/WEB-INF/lib/log4j-core.jar:/u01/app/oracle/product/10.1.3.1/jlib/oraclepki.jar:/u01/app/oracle/product/10.1.3.1/jlib/ojmisc.jar: oracle.sysman.ias.studio.installer.ASControlConfigAssistant -sso false -j2eeinstance home -username oc4jadmin -password Protected value, not to be logged -oraclehome /u01/app/oracle/product/10.1.3.1'
Start output from spawned process:
Exception in thread "main" java.lang.NoClassDefFoundError: oracle/sysman/ias/studio/installer/ASControlConfigAssistant
End output from spawned process.
Configuration assistant "Oracle Application Server Configuration Assistant" failed
Exception in thread "main" java.lang.NoClassDefFoundError: oracle/sysman/ias/studio/installer/ASControlConfigAssistant
Any ideas? am i missing a library or environment variable?
ThanksI have now set the following environment variables
ORACLE_BASE
ORACLE_HOME
TNS_ADMIN
PATH
JAVA HOME
and now when I try to run opmnctl startall, I get:
opmnctl: starting opmn and all managed processes...
globalInitNLS: NLS boot file not found or invalid
-- default linked-in boot block used
main: NLS initialization failed!!
globalInitNLS: NLS boot file not found or invalid
-- default linked-in boot block used
main: NLS initialization failed!!
globalInitNLS: NLS boot file not found or invalid
-- default linked-in boot block used
main: NLS initialization failed!!
opmnctl: opmn start failed. -
Trying to Install RMS application 13.2.2 and I get past the pre-installation checks and when I get to the Data Source details and enter the data source details with the check box checked to validate the schema/Test Data Source I get the following error:
Error Connecting to database URL jdbc:oracle:oci:@rmsdbtst as user rms13 java.lang.Exception:UnsatisfiedLinkError encountered when using the Oracle driver. Please check that the library path is set up properly or switch to the JDBC thin client oracle/jdbc/driver/T2CConnection.getLibraryVersioNumber()
Checks performed:
RMS Application code location and directory contents:
[oracle@test-rms-app application]$ pwd
/binary_files/STAGING_DIR/rms/application
[oracle@test-rms-app application]$ ls -ltr
total 144
-rw-r--r-- 1 oracle oinstall 272 Dec 7 2010 version.properties
-rw-r--r-- 1 oracle oinstall 405 Jan 16 2011 expected-object-counts.properties
-rw-r--r-- 1 oracle oinstall 892 May 13 2011 ant.install.properties.sample
-rw-r--r-- 1 oracle oinstall 64004 Jun 6 2011 build.xml
drwxr-xr-x 9 oracle oinstall 4096 Jun 16 2011 rms13
drwxr-xr-x 3 oracle oinstall 4096 Jun 16 2011 installer-resources
drwxr-xr-x 3 oracle oinstall 4096 Jun 16 2011 antinstall
drwxr-xr-x 2 oracle oinstall 4096 Jun 16 2011 ant-ext
drwxr-xr-x 5 oracle oinstall 4096 Jun 16 2011 ant
-rw-r--r-- 1 oracle oinstall 11324 Dec 18 09:18 antinstall-config.xml.ORIG
-rwxr-xr-x 1 oracle oinstall 4249 Dec 18 10:01 install.sh
drwxr-xr-x 4 oracle oinstall 4096 Dec 18 10:06 common
-rw-r--r-- 1 oracle oinstall 16244 Dec 19 10:37 antinstall-config.xml
-rw-r--r-- 1 oracle oinstall 689 Dec 19 10:37 ant.install.log
[oracle@test-rms-app application]$
Application installation:
[oracle@test-rms-app application]$ ./install.sh
THIS IS the driver directory
Verified $ORACLE_SID.
Verified SQL*Plus exists.
Verified write permissions.
Verified formsweb.cfg read permissions.
Verified Registry.dat read permissions.
Verified Java version 1.4.2.x or greater. Java version - 1.6.0
Verified Tk2Motif.rgb settings.
Verified frmcmp_batch.sh status.
WARNING: Oracle Enterprise Linux not detected. Some components may not install properly.
Verified $DISPLAY - 172.16.129.82:0.0.
This installer will ask for your "My Oracle Support" credentials.
Preparing installer. This may take a few moments.
Your internet connection type is: NONE
Integrating My Oracle Support into the product installer workflow...
[move] Moving 1 file to /binary_files/STAGING_DIR/rms/application
Installer preparation complete.
MW_HOME=/u01/app/oracle/Middleware/NewMiddleware1034
ORACLE_HOME=/u01/app/oracle/Middleware/NewMiddleware1034/as_1
ORACLE_INSTANCE=/u01/app/oracle/Middleware/NewMiddleware1034/asinst_1
DOMAIN_HOME=/u01/app/oracle/Middleware/NewMiddleware1034/user_projects/domains/rmsClassDomain
WLS_INSTANCE=WLS_FORMS
ORACLE_SID=rmsdbtst
JAVA_HOME=/u01/app/oracle/jrockit-jdk1.6.0_45-R28.2.7-4.1.0
Launching installer...
To make sure I have connectivity from the app server to the database (on a database server) here are the steps followed:
[oracle@test-rms-app application]$ tnsping rmsdbtst
TNS Ping Utility for Linux: Version 11.1.0.7.0 - Production on 19-DEC-2013 10:41:40
Copyright (c) 1997, 2008, Oracle. All rights reserved.
Used parameter files:
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = test-rms-db.vonmaur.vmc)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SID = rmsdbtst)))
OK (0 msec)
[oracle@test-rms-app application]$
[oracle@test-rms-app application]$ sqlplus rms13@rmsdbtst
SQL*Plus: Release 11.1.0.7.0 - Production on Thu Dec 19 10:46:18 2013
Copyright (c) 1982, 2008, Oracle. All rights reserved.
Enter password:
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
[oracle@test-rms-app application]$
[oracle@test-rms-app application]$ ping test-rms-db
PING test-rms-db.vonmaur.vmc (192.168.1.140) 56(84) bytes of data.
64 bytes from test-rms-db.vonmaur.vmc (192.168.1.140): icmp_seq=1 ttl=64 time=0.599 ms
64 bytes from test-rms-db.vonmaur.vmc (192.168.1.140): icmp_seq=2 ttl=64 time=0.168 ms
64 bytes from test-rms-db.vonmaur.vmc (192.168.1.140): icmp_seq=3 ttl=64 time=0.132 ms
64 bytes from test-rms-db.vonmaur.vmc (192.168.1.140): icmp_seq=4 ttl=64 time=0.158 ms
64 bytes from test-rms-db.vonmaur.vmc (192.168.1.140): icmp_seq=5 ttl=64 time=0.135 ms
--- test-rms-db.vonmaur.vmc ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4001ms
rtt min/avg/max/mdev = 0.132/0.238/0.599/0.181 ms
[oracle@test-rms-app application]$
[oracle@test-rms-app application]$ uname -a
Linux test-rms-app.vonmaur.vmc 2.6.18-128.el5 #1 SMP Wed Jan 21 08:45:05 EST 2009 x86_64 x86_64 x86_64 GNU/Linux
[oracle@test-rms-app application]$
[oracle@test-rms-app application]$ cat /etc/*-release
Enterprise Linux Enterprise Linux Server release 5.3 (Carthage)
Red Hat Enterprise Linux Server release 5.3 (Tikanga)
[oracle@test-rms-app application]$
The database is created and all the batch file scripts have been successfully deployed. Now working on the application server. The Weblogic server is installed and 11g forms and reports are installed successfully.
Any help would be helpful.
Thanks,
Ram.Please check MOS Notes:
FAQ: RWMS 13.2 Installation and Configuration (Doc ID 1307639.1) -
Error while Setting Up Oracle Content Server to Send Jobs to Oracle IBR
Hi,
I am trying to configure Oracle Content Server to send jobs to IBR.
I am using following version of UCM:
11gR1-11.1.1.3.0-idcprod1-100505T121221 (Build:7.3.0.180)
Both UCM and IBR are using same WAS domain. Installed on Windows server 2008.
1.I have started both manged servers for UCM and IBR.
2.Then by browsing IBR console http://vpunvfpctnsz-07:16250/ibr/ , i have changed the
Incoming Socket Connection Address Security Filter:
127.0.0.1|0:0:0:0:0:0:0:1|<<my.server.IP.address>>
3.Enabled DAMConverter component on IBR
4.Restarted IBR.
5.Created an outgoing provider on UCM content server as follows:
Provider Name: IBR
Provider Description: Provider for IBR
Provider Type: outgoing
Provider Class: intradoc.provider.SocketOutgoingProvider
Provider Connection: intradoc.provider.SocketOutgoingConnection
Instance Name: VPUNVFPCTN955099yscom16250 << same as IBR server name >>
Server Host Name: vpunvfpctnsz-07
HTTP Server Address:
Server Port: 16250
Relative Web Root: /ibr/
Conversion Options: Handles Inbound Refinery Conversion Jobs
Refinery read-only mode: False
Maximum Jobs to Queue: 1000
It is showing following status:
Connection State: This remains "good" when i click on test and after some time chages to "down".
Connection Error: Unable to communicate with refinery provider IBR; it does not resolve to a valid IBR. Exception type is 'java.lang.Throwable'.
Did i miss any step?
Please suggest.
Thanks and regards,
MinalHi
Server Port: 16250
This should be the value of IntradocServerPort for IBR server .
By default it is 5555 .
Replace 16250 with 5555 (if you have not changed it ) .
Save the changes , restart UCM managed server .
Test to see if the error shows up .
Hope it helps .
Thanks
Srinath -
Error in Jdev with connection to Oracle Content Server
Hi,
I have installed my Oracle Content server on a remote linux machine and using Apache webserver with it.
I am using Jdev drop 8 build 2d and creating an application trying to connect to the Content server creating a Content repository connection of repository type 'Oracle Content Server' and it tests successfully. I use this connection on my jspx page with Document Library.
The jspx runs properly using the connection .
But after this if I try to work with the connection object ,say use it on anoither page, it shows loading but does nothing further. If I go to the connection properties and test again it fails with message 'Test failed : null' and gives an error message as below while closing the properties window:
Performing action Properties...http:// from oracle.jdeveloper.appresources.ApplicationResourcesWindow
oracle.webcenter.content.internal.dt.connection.wizard.AdapterConfigPanel:Mar 19, 2010 2:07:34 PM oracle.webcenter.content.internal.dt.connection.wizard.AdapterConfigPanel validateConfig
WARNING: Invalid Configuration Parameters
java.lang.NullPointerException
at oracle.adf.share.HashMapScopeAdapter.get(HashMapScopeAdapter.java:89)
at oracle.webcenter.framework.service.Utility.getApplicationNameWithVersion(Utility.java:1047)
at oracle.webcenter.framework.service.SensorUtils.getApplicationName(SensorUtils.java:235)
at oracle.webcenter.framework.service.SensorUtils.getSensorGroup(SensorUtils.java:111)
at oracle.webcenter.content.internal.SensorUtil.preOperation(SensorUtil.java:59)
at oracle.webcenter.content.internal.SensorUtil.preOperation(SensorUtil.java:42)
at oracle.vcr.jam.JamRepository.login(JamRepository.java:678)
at oracle.vcr.jam.JamRepository.login(JamRepository.java:849)
at oracle.webcenter.content.internal.dt.connection.RepositoryDescriptor.test(RepositoryDescriptor.java:226)
at oracle.webcenter.content.internal.dt.connection.wizard.AdapterConfigPanel$ValidateActionListener$1.doWork(AdapterConfigPanel.java:1270)
at oracle.ide.dialogs.ProgressRunnable.run(ProgressRunnable.java:161)
at oracle.ide.dialogs.ProgressBar.run(ProgressBar.java:655)
at java.lang.Thread.run(Thread.java:619)
Uncaught exception
java.lang.NullPointerException
o.adf.share.HashMapScopeAdapter.get(HashMapScopeAdapter.java:89)
o.webcenter.framework.service.Utility.getApplicationNameWithVersion(Utility.java:1047)
o.webcenter.framework.service.SensorUtils.getApplicationName(SensorUtils.java:235)
o.webcenter.framework.service.SensorUtils.getSensorGroup(SensorUtils.java:111)
o.webcenter.content.internal.SensorUtil.preOperation(SensorUtil.java:59)
o.webcenter.content.internal.SensorUtil.preOperation(SensorUtil.java:42)
o.vcr.jam.JamRepository.login(JamRepository.java:678)
o.vcr.jam.JamRepository.login(JamRepository.java:849)
o.webcenter.content.SessionPool.getSession(SessionPool.java:137)
o.webcenter.content.internal.model.rc.ContentDirContext.listInternal(ContentDirContext.java:414)
o.webcenter.content.internal.model.rc.ContentDirContext.listBindings(ContentDirContext.java:381)
o.webcenter.content.internal.model.rc.ContentDirContext.listBindings(ContentDirContext.java:375)
o.j.rescat2.nodes.RepositoryRootNode.loadCache(RepositoryRootNode.java:143)
o.j.rescat2.nodes.ExtendedGenericNode$1.run(ExtendedGenericNode.java:296)
j.lang.Thread.run(Thread.java:619)
If I restart my Jdev and test connection again (without any changes to the connection) it succeeds but fails again after running the application.
Please let me know what is wrong here?No suggestions?
-
Oracle Content unexpected error
Hello.
When I try to OCS Content Services, on my server, to appear me the following message:
http://myserver/content/app/explorerPage.jspx
Error: unexpected error. To try again.
May you explain me which is the origin of the error and how resolve it ?
Thanks in advance.
Antonino SanacoriThanks for that,
Now I have too much information....
A hugestack dump which I'm having trouble interpreting.
It starts like this
07/03/05 22:43:06.958 content: [oracle.ifs.server.IdmCredentialManagerUtilities] [37] INFO: Property File = /home/oracle/product/10.1.3.2.0/OracleAS_1/content/settings/userrole_content.properties
07/03/05 22:43:07.410 content: [oracle.ifs.web.application.EcmViewHandler] [37] SEVERE: Error during rendering
ORACLE.FDK.AuthenticationError:ORACLE.FDK.InvalidCredentials
at oracle.ifs.fdk.FdkException.getInstance(FdkException.java:189)
at oracle.ifs.fdk.FdkException.getInstance(FdkException.java:81)
at oracle.ifs.fdk.impl.SessionPool.getSession(SessionPool.java:238)
at oracle.ifs.fdk.impl.FdkUserSessionImpl.pinSession(FdkUserSessionImpl.java:828)
at oracle.ifs.fdk.impl.FdkUserSessionImpl.<init>(FdkUserSessionImpl.java:152)
and ends like this
at oracle.ias.opmn.optic.OpmnQuery.getProc(OpmnQuery.java:709)
at oracle.oc4j.admin.jmx.shared.Oc4jOpmnRmiDomain.getOc4jProcs(Oc4jOpmnRmiDomain.java:592)
... 106 more
FdkException Details: oracle.ifs.fdk.FdkException: ErrorCode = ORACLE.FDK.AuthenticationError; DetailedErrorCode
07/03/05 22:43:08.200 content: = ORACLE.FDK.InvalidCredentials; Cause = IFS-21008: Unable to connect to iFS service; ServerStackTraceId = ; Info = null; Entries = null
I've put the whole thing here....
http://www.mechos.net/log.txt
I can't see where to start with this. Anyone got any clues ?
Cheers,
Donald. -
Java error in Oracle Help Demo
Hi,
I'm trying to get the Oracle help demo to work on a weblogic server (version 10.2.3) but I get a Java error when when I attempt to navigate to the test page at http://server:port/ohw-rcf-demo
I've checked the dependencies for the thin demo and the weblogic server I'm using has them.
I get the same error if I try the thick demo.
Log entry below
Server Name: WLS_FORMS
Log Name: ServerLog
Message: [ServletContext@8383527[app:ohw-rcf-demo-thin module:ohw-rcf-demo path:/ohw-rcf-demo spec-version:2.5]] Servlet failed with Exception java.lang.RuntimeException: Cannot find FacesContext at javax.faces.webapp.UIComponentClassicTagBase.getFacesContext(UIComponentClassicTagBase.java:1855) at javax.faces.webapp.UIComponentClassicTagBase.setJspId(UIComponentClassicTagBase.java:1672) at jsp_servlet._helppages.__main_jspx._jspService(__main_jspx.java:78) at weblogic.servlet.jsp.JspBase.service(JspBase.java:34) at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227) at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125) at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292) at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:326) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3592) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121) at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2202) at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2108) at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1432) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201) at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
Date: Mar 4, 2010 8:30:09 AM EST
Subsystem: HTTP
Message ID: BEA-101020
Severity: Error
Machine: niringa04-z012
Server: WLS_FORMS
Thread: [ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)'
User ID: <WLS Kernel>
Transaction ID: (No value specified)
Context ID: (No value specified)
Detail: [ServletContext@8383527[app:ohw-rcf-demo-thin module:ohw-rcf-demo path:/ohw-rcf-demo spec-version:2.5]] Servlet failed with Exception
Cause: An unexpected error occurred.
Action: Check the exception for exact error message.
Thanks, TonyRe-install fixed this
-
Hi Members,
I am getting the oracle.forms.engine.Main not found.java.lang.ClassNotFoundException error when trying to access Oracle forms using APEX 2.2.1 and SSO.
load:class.oracle.forms.engine.Main not found
The forms have been compiled, forms path setup properly and the setup required to run forms seems to be right. Jinitiator has also been installed.
I have searched the forums and tried everything. I have checked jinitiator settings, cleared cache and even reinstalled it. Do you have any experience with this error? Appreciate any answers. Thanks.
Ravi.Dear Friends,
I was also facing the same problem. to solve this, i have uninstalled Oracle Jinitiator. Cleared all the temporary internet files & cookies. Then while running the form, when it asks to install JInitiator, i have specified a different path for jinitiator, For Example, By default it asks for C:\programfiles, i have changed it to c:\manish directory.
This has solved my problem. Probably this also help you.
Regards,
Manish Trivedi,
India -
Error when i try to open the Oracle content server workflow administrator
i have installed the Oracle content server 10g r3 , but when i tried to open the workflow administrator tool i got the following error message during "loading cached tables" process, although i have made all the required steps in the installation manual ; the error is
"Unable to start the application work-flow. failed to initialize . the database table list was empty using a catalog of (null) and schema 'UCMADMIN'. you may need to configure the database schema explicitly using the configuration entry databaseschmemaname "
does anyone know what might be the problem ?
Thanks
Edited by: user11120147 on Jun 22, 2010 2:22 AMIt seems that I have specified to manually create the required tables and roles during the installation steps, so I manually run the required SQL scripts which include (creating tables, creating roles, creating users , etc..), and after have successfully login to the workflow administration tool .
Regards -
We migrated from EP6 SP2 P27 to NW04 SP9 and upgraded to SPS 12. When we go to Content Admin --> KM Content, we get a java error: java.lang.NullPointerException at com.sapportals.wcm.repository.manager.taxonomy.TaxonomyRepositoryManager.getSupportedOptions(TaxonomyRepositoryManager.java:239)
The previous EP6 had indexes and TREX; however, TREX indexes are not migrated and they did not have Taxonomies. But for some reason the error has to do with repository manager.
We have this in escalation, but support is not available until tomorrow and the customer needs to go live ASAP.
Anyone have ideas of how to rectify this error. We have OSS Note 2009277 for reference.
LelandHi
redploying par com.sapportals.wcm.repository.manager.taxonomy.TaxonomyRepositoryManager and then again cleaning it and redploying it through pcd browser can help and do a search for the par file com.sapportals.wcm.repository.manager.taxonomy.TaxonomyRepositoryManager in usr directory and then redploy.
With regards
subrato kundu -
The java error which i meet in the oracle 11g when i using jdm
I have finish a java data mining program,it can work in oracle 10g.But now ,i have to apply this program in oracle 11g.
What should i do to make it still work in oracle 11g?
The jar have been replaced with 11g's jar.But when i debug the program,the BuildTask's m_ programName is still "dmsys.build_program" and it should be "sys.build_program".
Then when run to the executeTask,the Error occurred.
**************the error**********************************
19:19:55,734 DEBUG AprioriExecuteUtil:248 - ---------------------------------------------------
19:19:55,734 DEBUG AprioriExecuteUtil:249 - --- Build Model ---
19:19:55,734 DEBUG AprioriExecuteUtil:250 - ---------------------------------------------------
19:21:52,328 ERROR AprioriExecuteUtil:114 - executeError:
java.lang.ArrayIndexOutOfBoundsException: 0
at oracle.dmt.jdm.task.OraBuildTask.mapJobArgs(OraBuildTask.java:410)
at oracle.dmt.jdm.base.OraTask.retrieveObjectFromDatabase(OraTask.java:535)
at oracle.dmt.jdm.base.OraTask.removeTaskContents(OraTask.java:229)
at oracle.dmt.jdm.base.OraTask.removeObjectFromDatabase(OraTask.java:214)
at oracle.dmt.jdm.resource.OraPersistanceManagerImpl.removeObject(OraPersistanceManagerImpl.java:297)
at oracle.dmt.jdm.resource.OraConnection.removeObject(OraConnection.java:389)
at oracle.dmt.jdm.OraMiningObject.saveObjectInDatabase(OraMiningObject.java:150)
at oracle.dmt.jdm.resource.OraPersistanceManagerImpl.saveObject(OraPersistanceManagerImpl.java:245)
at oracle.dmt.jdm.resource.OraConnection.saveObject(OraConnection.java:383)
at com.hollycrm.hollysp.datanalysis.datamining.util.AprioriExecuteUtil.executeTask(AprioriExecuteUtil.java:324)
at com.hollycrm.hollysp.datanalysis.datamining.util.AprioriExecuteUtil.buildModel(AprioriExecuteUtil.java:303)
at com.hollycrm.hollysp.datanalysis.datamining.util.AprioriExecuteUtil.execute(AprioriExecuteUtil.java:108)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
So,if there someone know the reason,please tell me how to solve this error.Thank you!!!!Thanks for your response!
The JDK version is 1.6.0_02.
DB version is 11.2.0.1.0.
This is the code.
public class AprioriExecuteUtil {
private static Logger logger=Logger.getLogger(AprioriExecuteUtil.class);
* 连接数据库对象
private static Connection m_dmeConn;
private static ConnectionFactory m_dmeConnFactory;
* 在进程中使用的工厂对象
private static PhysicalDataSetFactory m_pdsFactory;
private static PhysicalAttributeFactory m_paFactory;
private static AssociationSettingsFactory m_assoFactory;
private static RulesFilterFactory m_filterFactory;
private static BuildTaskFactory m_buildFactory;
* 全局常量
private static DecimalFormat m_df = new DecimalFormat("##.####");
* modelId:数据挖掘模型Id
private String modelId = "";
*<p>Title: execute</p>
*<p>Description:执行数据挖掘,响应页面上的执行按钮</p>
* @param @return 设定文件
* @return String 返回类型
* @throws
public String execute(){
try{
dataminingManager().updateModelById(modelId, "schedule", "10");
dataminingManager().updateModelById(modelId, "startTime", DateUtil.getNow());
dataminingManager().updateModelById(modelId, "endTime", "");
dataminingManager().deleteModelRules(modelId,"TblSpModelRulesAr");
m_dmeConnFactory = new OraConnectionFactory();
ConnectionSpec connSpec = m_dmeConnFactory.getConnectionSpec();
connSpec.setURI("jdbc:oracle:thin:@"+SystemParamUtil.getSystemParameValue("数据挖掘.数据库.地址"));
connSpec.setName(SystemParamUtil.getSystemParameValue("数据挖掘.数据库.用户名"));
connSpec.setPassword(SystemParamUtil.getSystemParameValue("数据挖掘.数据库.密码"));
m_dmeConn = m_dmeConnFactory.getConnection(connSpec);
clean();
initFactories();
prepareData();
dataminingManager().updateModelById(modelId, "schedule","20");
buildModel();
dataminingManager().updateModelById(modelId, "schedule","100");
dataminingManager().updateModelById(modelId, "endTime", DateUtil.getNow());
clean();
return null;
}catch(Exception e) {
logger.error("executeError:",e);
return "error";
finally {
try {
m_dmeConn.close();
} catch(Exception e) {
logger.error("closeConnectError:",e);
return "error";
*<p>Title: clean</p>
*<p>Description:清理所有之前构造的临时表</p>
* @param 设定文件
* @return void 返回类型
* @throws
public void clean(){
java.sql.Connection dbConn = ((OraConnection)m_dmeConn).getDatabaseConnection();
Statement stmt = null;
try{
stmt = dbConn.createStatement();
StringBuffer sql = new StringBuffer("select object_name from dba_objects where object_type in('TABLE','VIEW') and object_name like '%DM$%' ");
sql.append("and owner = '").append(SystemParamUtil.getSystemParameValue("数据挖掘.数据库.用户名")).append("'");
logger.info(sql.toString());
ResultSet rs = stmt.executeQuery(sql.toString());
while(rs.next()){
try{
stmt.executeUpdate("DROP VIEW "+rs.getString("object_name"));
}catch(SQLException e){}
try{
stmt.executeUpdate("DROP VIEW SALES_TRANS_CUST_V");
} catch(SQLException e) {}
try{
stmt.executeUpdate("DROP VIEW SALES_TRANS_CUST_AR_V");
} catch(SQLException e) {}
try {
m_dmeConn.removeObject("arModel_jdm", NamedObject.model );
}catch(JDMException e) {}
try {
m_dmeConn.removeObject("arSettings_jdm", NamedObject.buildSettings );
}catch(JDMException e) {}
try {
m_dmeConn.removeObject("arBuildData_jdm", NamedObject.physicalDataSet );
}catch(JDMException e) {}
try {
m_dmeConn.removeObject("arBuildTask_jdm", NamedObject.task );
}catch(JDMException e) {}
}catch(SQLException e) {
logger.error("cleanViewError:",e);
}finally{
try {
stmt.close();
}catch(Exception e){
logger.error("closeConnectError:",e);
*<p>Title: initFactories</p>
*<p>Description:初始化挖掘使用的工厂</p>
* @param @throws JDMException 设定文件
* @return void 返回类型
* @throws
public void initFactories() throws JDMException{
m_pdsFactory = (PhysicalDataSetFactory)m_dmeConn.getFactory("javax.datamining.data.PhysicalDataSet");
m_paFactory = (PhysicalAttributeFactory)m_dmeConn.getFactory("javax.datamining.data.PhysicalAttribute");
m_assoFactory = (AssociationSettingsFactory)m_dmeConn.getFactory("javax.datamining.association.AssociationSettings");
m_buildFactory = (BuildTaskFactory)m_dmeConn.getFactory("javax.datamining.task.BuildTask");
m_filterFactory = (RulesFilterFactory)m_dmeConn.getFactory("javax.datamining.association.RulesFilter");
*<p>Title: prepareData</p>
*<p>Description:准备数据</p>
* @param @throws Exception 设定文件
* @return void 返回类型
* @throws
public void prepareData() throws Exception{
logger.debug("---------------------------------------------------");
logger.debug("--- Prepare Data ---");
logger.debug("---------------------------------------------------");
this.createBuildData();
this.executeColumnFormatTransformation();
*<p>Title: createBuildData</p>
*<p>Description:用之前选择的产品构造视图</p>
* @param @throws Exception 设定文件
* @return void 返回类型
* @throws
public void createBuildData() throws Exception{
logger.debug("Create build data view...");
java.sql.Connection dbConn = ((OraConnection)m_dmeConn).getDatabaseConnection();
PreparedStatement pStmt = null;
String custProductTableName= SystemParamUtil.getSystemParameValue("数据挖掘.订购关系表.表名");
TblSpDataMiningModel dataMiningmodel = dataminingManager().getDataMiningModel(modelId);
StringBuffer createView = new StringBuffer("CREATE VIEW SALES_TRANS_CUST_V AS SELECT cp.user_no as USER_NO, cp.product_id as PRODUCT_ID, 1 has_it ");
createView.append(" from ").append(custProductTableName).append(" cp ");
createView.append(" where cp.area_code = '").append(dataMiningmodel.getArea()).append("' GROUP BY USER_NO, PRODUCT_ID");
logger.debug(createView.toString());
pStmt = dbConn.prepareStatement(createView.toString());
pStmt.execute();
public void executeColumnFormatTransformation() throws Exception{
logger.debug("Execute column format transformation...");
StringBuffer createNestedColumn = new StringBuffer("CREATE VIEW SALES_TRANS_CUST_AR_V as ");
createNestedColumn.append(" SELECT D.USER_NO,CAST(MULTISET(SELECT DM_Nested_Numerical(C.PRODUCT_ID, has_it) FROM SALES_TRANS_CUST_V C ");
createNestedColumn.append(" WHERE C.USER_NO = D.USER_NO) AS DM_Nested_Numericals) CUSTPRODS FROM SALES_TRANS_CUST_V D group by D.USER_NO");
java.sql.Connection dbConn = ((OraConnection)m_dmeConn).getDatabaseConnection();
PreparedStatement pStmt = null;
logger.debug(createNestedColumn.toString());
pStmt = dbConn.prepareStatement(createNestedColumn.toString());
pStmt.execute();
*<p>Title: buildModel</p>
*<p>Description:建立模型</p>
* @param @throws JDMException 设定文件
* @return void 返回类型
* @throws
public void buildModel() throws Exception{
logger.debug("---------------------------------------------------");
logger.debug("--- Build Model ---");
logger.debug("---------------------------------------------------");
PhysicalDataSet buildData = m_pdsFactory.create( "SALES_TRANS_CUST_AR_V", false );
PhysicalAttribute pa = m_paFactory.create("USER_NO", AttributeDataType.integerType, PhysicalAttributeRole.caseId );
buildData.addAttribute(pa);
m_dmeConn.saveObject("arBuildData_jdm", buildData, false );
AssociationSettings buildSettings = m_assoFactory.create();
//计算支持度和可信度以及最多分析多少个产品
/*java.sql.Connection dbConn = ((OraConnection)m_dmeConn).getDatabaseConnection();
PreparedStatement pStmt = null;
String custProductTableName= SystemParamUtil.getSystemParameValue("数据挖掘.订购关系表.表名");
TblSpDataMiningModel dataMiningModel = dataminingManager().getDataMiningModel(modelId);
StringBuffer sql = new StringBuffer("select (trunc((count(*) /(count(distinct user_no) * count(distinct product_id))) * 50,2.2)) as destiny ");
sql.append(" from ").append(custProductTableName).append(" cp ");
sql.append(" where cp.area_desc = '").append(dataMiningModel.getArea()).append("'");
logger.debug(sql.toString());
pStmt = dbConn.prepareStatement(sql.toString());
ResultSet res = pStmt.executeQuery();
Float density = 0F;
while(res.next()){
density = res.getFloat("destiny");
if(density!=0){
buildSettings.setMinSupport(density);
buildSettings.setMinConfidence(density);
logger.debug("density = "+density);
}else{
buildSettings.setMinSupport(10f);
buildSettings.setMinConfidence(10f);
sql = new StringBuffer("select round(avg(COUNT(product_id))) as maxLength ");
sql.append(" from ").append(custProductTableName).append(" cp ");
sql.append(" where cp.area_desc = '").append(dataMiningModel.getArea()).append("' group by user_no ");
logger.debug(sql.toString());
pStmt = dbConn.prepareStatement(sql.toString());
res = pStmt.executeQuery();
int maxProductLength = 0;
while(res.next()){
maxProductLength = res.getInt("maxLength");
if(maxProductLength != 0 && maxProductLength >= 2){
buildSettings.setMaxRuleLength(maxProductLength);
logger.debug("maxProductLength = "+maxProductLength);
}else{
buildSettings.setMaxRuleLength(3);
logger.debug("maxProductLength = "+maxProductLength+" change to 3");
buildSettings.setMinSupport(1);
buildSettings.setMinConfidence(10);
buildSettings.setMaxRuleLength(3);
m_dmeConn.saveObject("arSettings_jdm", buildSettings, true );
BuildTask buildTask = m_buildFactory.create("arBuildData_jdm","arSettings_jdm","arModel_jdm");
buildTask.setDescription("arBuildTask_jdm" );
executeTask(buildTask,"arBuildTask_jdm");
AssociationModel model = (AssociationModel)m_dmeConn.retrieveObject("arModel_jdm", NamedObject.model);
if(buildSettings == null){
throw new Exception("Failure to restore build settings.");
}else{
displayAssociationRules( model );
*<p>Title: executeTask</p>
*<p>Description:执行任务</p>
* @param @param taskObj
* @param @param taskName
* @param @return
* @param @throws JDMException 设定文件
* @return boolean 返回类型
* @throws
public boolean executeTask(Task taskObj, String taskName) throws JDMException {
boolean isTaskSuccess = false;
m_dmeConn.saveObject(taskName, taskObj, true);
ExecutionHandle execHandle = m_dmeConn.execute(taskName);
logger.debug(taskName + " is started, please wait. ");
ExecutionStatus status = execHandle.waitForCompletion(Integer.MAX_VALUE);
isTaskSuccess = status.getState().equals(ExecutionState.success);
if( isTaskSuccess ) {
logger.debug(taskName + " is successful.");
} else {
logger.debug(taskName + " is failed.\nFailure Description: " +
status.getDescription() );
return isTaskSuccess;
247*******************the buildTask's m_programName is “dmsys.build_program” but it should be "sys.build_program" when i contact the 11g.I have tried many ways to compile the program,but it still can't be changed.
270*******************m_dmeConn.saveObject(taskName, taskObj, true);
the error:java.lang.ArrayIndexOutOfBoundsException: 0
If you need the data table
These are the sql :
-- Create table
create table TBL_MINING_CUST_HB
mobile_tele_no VARCHAR2(40),
area VARCHAR2(4),
user_dinner VARCHAR2(200),
re_flag VARCHAR2(2),
re_type VARCHAR2(40),
is_3gzd VARCHAR2(2),
arpu NUMBER,
net_on_duration NUMBER,
if_ring VARCHAR2(2),
if_gprs VARCHAR2(2),
gprs_fee NUMBER,
if_gprs_free VARCHAR2(2),
if_gprs_pkg VARCHAR2(2),
sms_fee NUMBER,
if_sms_free VARCHAR2(2),
if_sms_pkg VARCHAR2(2),
mms_fee NUMBER,
if_mms_pkg VARCHAR2(2),
if_mms_free VARCHAR2(2),
sen_fee NUMBER,
sen_in_fee NUMBER,
sen_out_fee NUMBER,
sen_free NUMBER,
sen_fact NUMBER,
one_cnt_10010 NUMBER,
three_cnt_10010 NUMBER,
one_cancel_business VARCHAR2(4000),
three_cancel_business VARCHAR2(4000),
sp VARCHAR2(4000)
tablespace CSS_APP
pctfree 10
initrans 1
maxtrans 255
storage
initial 64
next 1
minextents 1
maxextents unlimited
-- Add comments to the columns
comment on column TBL_MINING_CUST_HB.mobile_tele_no
is '电话号码';
comment on column TBL_MINING_CUST_HB.area
is '地市';
comment on column TBL_MINING_CUST_HB.user_dinner
is '用户套餐';
comment on column TBL_MINING_CUST_HB.re_flag
is '是否融合业务;1-是;0-否';
comment on column TBL_MINING_CUST_HB.re_type
is '套餐类别;2G后付费、2GOCS、3G后付费、3GOCS';
comment on column TBL_MINING_CUST_HB.is_3gzd
is '是否为3G终端(1-是,0非)';
comment on column TBL_MINING_CUST_HB.arpu
is 'ARPU;单位:元';
comment on column TBL_MINING_CUST_HB.net_on_duration
is '在网时长;单位:月';
comment on column TBL_MINING_CUST_HB.if_ring
is '是否开通炫铃功能,1-是;0-否';
comment on column TBL_MINING_CUST_HB.if_gprs
is '是否开通GPRS功能,1-是;0-否';
comment on column TBL_MINING_CUST_HB.gprs_fee
is 'GPRS流量使用情况;单位: M';
comment on column TBL_MINING_CUST_HB.if_gprs_free
is '套餐内是否自带优惠或赠送流量;1-是;0-否';
comment on column TBL_MINING_CUST_HB.if_gprs_pkg
is '是否定制优惠流量包;1-是;0-否';
comment on column TBL_MINING_CUST_HB.sms_fee
is '短信使用情况;单位:条';
comment on column TBL_MINING_CUST_HB.if_sms_free
is '套餐内是否自带优惠或赠送短信;1-是;0-否';
comment on column TBL_MINING_CUST_HB.if_sms_pkg
is '是否定制优惠短信包;1-是;0-否';
comment on column TBL_MINING_CUST_HB.mms_fee
is '彩信使用情况;单位:条';
comment on column TBL_MINING_CUST_HB.if_mms_pkg
is '是否定制优惠彩信包;1-是;0-否';
comment on column TBL_MINING_CUST_HB.if_mms_free
is '套餐内是否自带优惠或赠送彩信;1-是;0-否';
comment on column TBL_MINING_CUST_HB.sen_fee
is '本地长途合计分钟数;单位:分钟';
comment on column TBL_MINING_CUST_HB.sen_in_fee
is '本地长途省内长途;单位:分钟';
comment on column TBL_MINING_CUST_HB.sen_out_fee
is '本地长途省际长途;单位:分钟';
comment on column TBL_MINING_CUST_HB.sen_free
is '本地通话时长本地优惠分钟数;单位:分钟';
comment on column TBL_MINING_CUST_HB.sen_fact
is '本地通话时长实际使用分钟数:单位:分钟';
comment on column TBL_MINING_CUST_HB.one_cnt_10010
is '1月内拨打10010次数';
comment on column TBL_MINING_CUST_HB.three_cnt_10010
is '3月内拨打10010次数';
comment on column TBL_MINING_CUST_HB.one_cancel_business
is '1月内取消的增值业务';
comment on column TBL_MINING_CUST_HB.three_cancel_business
is '3月内取消的增值业务名称';
comment on column TBL_MINING_CUST_HB.sp
is '已开通的增值业务名称';
-- Create table
create table TBL_MINING_CUST_PRODUCT_HB
product_name VARCHAR2(1000),
product_id VARCHAR2(40),
user_no NUMBER,
area_code VARCHAR2(8)
tablespace CSS_APP
pctfree 10
initrans 1
maxtrans 255
storage
initial 16
next 1
minextents 1
maxextents unlimited
-- Create/Recreate indexes
create bitmap index IDX_PRODUCT_ID on TBL_MINING_CUST_PRODUCT_HB (PRODUCT_ID)
tablespace CSS_APP
pctfree 10
initrans 2
maxtrans 255
storage
initial 64K
next 1M
minextents 1
maxextents unlimited
create bitmap index IDX_USER_NO on TBL_MINING_CUST_PRODUCT_HB (USER_NO)
tablespace CSS_APP
pctfree 10
initrans 2
maxtrans 255
storage
initial 64K
next 1M
minextents 1
maxextents unlimited
-- Create table
create table TBL_MINING_PRODUCT_HB
product_name VARCHAR2(1000),
product_id VARCHAR2(30) not null,
coverage_rate NUMBER
tablespace CSS_APP
pctfree 10
initrans 1
maxtrans 255
storage
initial 16
next 1
minextents 1
maxextents unlimited
-- Add comments to the columns
comment on column TBL_MINING_PRODUCT_HB.product_name
is '产品名称';
comment on column TBL_MINING_PRODUCT_HB.product_id
is '产品ID';
comment on column TBL_MINING_PRODUCT_HB.coverage_rate
is '产品覆盖率=某一个产品的购买总数/所有产品的购买总数';
-- Create/Recreate primary, unique and foreign key constraints
alter table TBL_MINING_PRODUCT_HB
add constraint PK_PRODUCT_ID primary key (PRODUCT_ID)
using index
tablespace CSS_APP
pctfree 10
initrans 2
maxtrans 255
storage
initial 64K
next 1M
minextents 1
maxextents unlimited
Thanks! -
Hi all,
I tried to update oracle_logo.gif in forms jar which is in f90all_jinit jar. I placed my icon in forms\oracle\forms\icons and renamed it as oracle_logo.gif while removing the existing one. Then I did jar the forms and placed that in f90all_jinit and again did jar f90all_jinit. Then, I placed this in ORACLE-HOME/forms90/java. When I tried to run the form...the form could not open and the java console shows this..
Loading http://<MACHINE_NAME>:8888/forms90/java/f90all_jinit.jar from JAR cache
load: class oracle.forms.engine.Main not found.java.lang.ClassNotFoundException: java.io.IOException: open HTTP connection failed. at sun.applet.AppletClassLoader.getBytes(Unknown Source) at sun.applet.AppletClassLoader.access$100(Unknown Source) at sun.applet.AppletClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at sun.applet.AppletClassLoader.findClass(Unknown Source) at sun.plugin.security.PluginClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.applet.AppletClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.applet.AppletClassLoader.loadCode(Unknown Source) at sun.applet.AppletPanel.createApplet(Unknown Source) at sun.plugin.AppletViewer.createApplet(Unknown Source) at sun.applet.AppletPanel.runLoader(Unknown Source) at sun.applet.AppletPanel.run(Unknown Source) at java.lang.Thread.run(Unknown Source)
Can anyone guide me on how to get rid of this error ? Strange thing is that I've removed that f90all_jinit.jar and placed back the existing one (I took backup). But still it's showing the same error and not opening the form. I could and can not do anything without this error corrected.
Please suggest me as soon as possible...
thank you
madhu.Dear Friends,
I was also facing the same problem. to solve this, i have uninstalled Oracle Jinitiator. Cleared all the temporary internet files & cookies. Then while running the form, when it asks to install JInitiator, i have specified a different path for jinitiator, For Example, By default it asks for C:\programfiles, i have changed it to c:\manish directory.
This has solved my problem. Probably this also help you.
Regards,
Manish Trivedi,
India
Maybe you are looking for
-
To use Entity Bean or Oracle stored Package?
Currently, in my project, Weblogic8.1 and Oracle is used, but lots of business logic is implemented using Oracle stored Packages, many of these packages have a package level readonly lookup table(like index-by table or nested table), which is populat
-
How to link a custom BADI with standard report.
Hi All, I have a requirement to create a Custom BADI and to link it through the Standard Program. How to do this. As i cannot modify Standard Program. I have put some checks in custom BADI, which i want to be done before anyone runs standard program.
-
Screen flashes and pixellates in stripes when I turn it on or move it?
Hi people, So I have a Macbook Pro that I bought in 2009. Recently, it has started to flash in stripes and fade to white. It usually does this a few times when I turn it on/open it after being closed. Then it tends to be fine. Anyway it is sort of an
-
Iphoto will not open my videos
TO OPEN A VIDEO FROM IPHOTO, I MUST NOW RIGHT CLICK, SELECT FILE INFO USE THAT LIST OF FILES TO OPEN THE VIDEO, WHY
-
Hi there I am very new to Dreamweaver working on an existing website. I have one page that is giving me problems.The web page itself is displaying just fine. In Dreamweaver, I am viewing with a split page, code on top and design on the bottom. The de