run the Idoc function in the data file returned by the service of GET_FILE

Hello

I'm new to this forum, so thank you in advance for any help and forgive me of any error with the post.

I'm trying to force the execution of a custom Idoc function in a data file Complutense University of MADRID, when this data file is requested from the University Complutense of MADRID through service GET_FILE.

The custom Idoc function is implemented as a filter of the computeFunction type. One of the datafile has appealed to my custom Idoc function:
* < name wcm:element = "MainText" > [! - $myIdocFunction ()-] < / wcm:element > *.

The data file is then downloaded with CRMI via service GET_FILE, but the Idoc function is not called.

I tried to implement another filter Idoc type sendDataForServerResponse or sendDataForServerResponseBytes, that store objects cached responseString and responseBytes, personalized in order to look for any call to my function in the response object Idoc, eventually run the Idoc function and replace the output of the Idoc in the response. But this kind of filter will never run.

The Idoc function myIdocFunction is executed correctly when I use WCM_PLACEHOLDER service to get a RegionTemplate (file .hcsp) associated with the data file. In this case, the fact RegionTemplate refers to the element of "MainText" data file with <!-$wcmElement ("MainText")->. But I need to make it work also with service GET_FILE.

I use version 11.1.1.3.0 UCM.

Any suggestion?
Thank you very much
Francesco

Hello

Thank you very much for your help and sorry for this late reply.

Your trick to activate the complete detailed follow-up was helpful, because I found out I could somehow use the filter prepareForFileResponse for my purpose and I could also have related to the implementation of the native filter pdfwatermark. PdfwFileFilter .

I managed to set up a filter whose purpose is to force the Idoc assessment of a predefined list of functions Idoc on the output returned by the service GET_FILE. Then I paste the code I have written, in which case it may be useful for other people. In any case, know that this filter can cause performance problems, which must be considered carefully in your own use cases.

First set the filter in the set of filters in file .hda from your device:

Filters @ResultSet

4

type

location

parameter

loadOrder

prepareForFileResponse

mysamplecomponent. ForceIdocEvaluationFilter

null

1

@end

Here is a simplified version of the implementation of the filter:

/ public class ForceIdocEvaluationFilter implements FilterImplementor {}

public int doFilter (workspace ws, linking DataBinder, ExecutionContext ctx) survey DataException, ServiceException {}

Service string = binder.getLocal ("IdcService");

String dDocName = binder.getLocal ("dDocName");

Boolean isInternalCall = Boolean.parseBoolean (binder.getLocal ("isInternalCall"));

If ((ctx instanceof FileService) & service.equals ("GET_FILE") &! isInternalCall) {}

FileService fileService = ctx (FileService);

checkToForceIdocEvaluation (dDocName, fileService);

}

continue with other filters

Back to CONTINUE;

}

' Private Sub checkToForceIdocEvaluation (String dDocName, FileService fileService) throws DataException, ServiceException {}

PrimaryFile file = IOUtils.getContentPrimaryFile (dDocName);

Ext = FileUtils.getExtension (primaryFile.getPath ());

If (ext.equalsIgnoreCase ("xml")) {}

forceIdocEvaluation (primaryFile, fileService);

}

}

forceIdocEvaluation Private Sub (file primaryFile FileService fileService) throws ServiceException {}

String multiplesContent = IOUtils.readStringFromFile (primaryFile);

Replacement ForceIdocEvaluationPatternReplacer = new ForceIdocEvaluationPatternReplacer (fileService);

String replacedContent = replacer.replace (fileContent);

If (replacer.isMatchFound ()) {}

setNewOutputOfService (fileService, replacedContent);

}

}

' Private Sub setNewOutputOfService (FileService fileService, String newOutput) throws ServiceException {}

File newOutputFile = IOUtils.createTemporaryFile ("xml");

IOUtils.saveFile (newOutput, newOutputFile);

fileService.setFile (newOutputFile.getPath ());

}

}

public class IOUtils {}

public static getContentPrimaryFile (String dDocName) survey DataException, ServiceException {queue

DataBinder serviceBinder = new DataBinder();

serviceBinder.m_isExternalRequest = false;

serviceBinder.putLocal ("IdcService", "GET_FILE");

serviceBinder.putLocal ("dDocName", dDocName);

serviceBinder.putLocal ("RevisionSelectionMethod", "Latest");

serviceBinder.putLocal ("isInternalCall", "true");

ServiceUtils.executeService (serviceBinder);

String vaultFileName = DirectoryLocator.computeVaultFileName (serviceBinder);

String vaultFilePath = DirectoryLocator.computeVaultPath (vaultFileName, serviceBinder);

return new File (vaultFilePath);

}

public static String readStringFromFile (File sourceFile) throws ServiceException {}

try {}

return FileUtils.loadFile (sourceFile.getPath (), null, new String [] {"UTF - 8"});

} catch (IOException e) {}

throw new ServiceException (e);

}

}

Public Shared Sub saveFile (String source, destination of the file) throws ServiceException {}

FileUtils.writeFile (source, destination, "UTF - 8", 0, "is not save file" + destination);

}

public static getTemporaryFilesDir() leader throws ServiceException {}

String idcDir = SharedObjects.getEnvironmentValue ("IntradocDir");

String tmpDir = idcDir + "custom/MySampleComponent";

FileUtils.checkOrCreateDirectory (tmpDir, 1);

return new File (tmpDir);

}

public static createTemporaryFile (String fileExtension) leader throws ServiceException {}

try {}

The file TmpFile = File.createTempFile ("tmp", "." + fileExtension, IOUtils.getTemporaryFilesDir ());

tmpFile.deleteOnExit ();

return tmpFile;

} catch (IOException e) {}

throw new ServiceException (e);

}

}

}

Public MustInherit class PatternReplacer {}

Private boolean matchFound = false;

public string replace (CharSequence sourceString) throws ServiceException {}

Matcher m = expand () .matcher (sourceString);

StringBuffer sb = new StringBuffer (sourceString.length ());

matchFound = false;

While (m.find ()) {}

matchFound = true;

String matchedText = m.group (0);

String replacement = doReplace (matchedText);

m.appendReplacement (sb, Matcher.quoteReplacement (replacement));

}

m.appendTail (sb);

Return sb.toString ();

}

protected abstract String doReplace(String textToReplace) throws ServiceException;

public abstract Pattern getPattern() throws ServiceException;

public boolean isMatchFound() {}

Return matchFound;

}

}

SerializableAttribute public class ForceIdocEvaluationPatternReplacer extends PatternReplacer {}

private ExecutionContext ctx;

idocPattern private model;

public ForceIdocEvaluationPatternReplacer (ExecutionContext ctx) {}

This.ctx = ctx;

}

@Override

public getPattern() model throws ServiceException {}

If (idocPattern == null) {}

List of the functions = SharedObjects.getEnvValueAsList ("forceidocevaluation.functionlist");

idocPattern = IdocUtils.createIdocPattern (functions);

}

Return idocPattern;

}

@Override

protected String doReplace(String idocFunction) throws ServiceException {}

Return IdocUtils.executeIdocFunction (ctx, idocFunction);

}

}

public class IdocUtils {}

public static String executeIdocFunction (ExecutionContext ctx, String idocFunction) throws ServiceException {}

idocFunction = convertIdocStyle (idocFunction, IdocStyle.ANGULAR_BRACKETS);

PageMerger activeMerger = (PageMerger) ctx.getCachedObject("PageMerger");

try {}

String output = activeMerger.evaluateScript (idocFunction);

return output;

} catch (Exception e) {}

throw the new ServiceException ("cannot run the Idoc function" + idocFunction, e);

}

}

public enum IdocStyle {}

ANGULAR_BRACKETS,

SQUARE_BRACKETS

}

public static String convertIdocStyle (String idocFunction, IdocStyle destinationStyle) {}

String result = null;

Switch (destinationStyle) {}

case ANGULAR_BRACKETS:

result = idocFunction.replace ("[!-$","<$").replace("--]", "$="">" "]");

break;

case SQUARE_BRACKETS:

result = idocFunction.replace ("<$", "[!--$").replace("$="">", "-] '");

break;

}

return the result;

}

public static model createIdocPattern ( list idocFunctions) throws ServiceException {}

If (idocFunctions.isEmpty ()) throw new ServiceException ("list of Idoc functions to create a template for is empty");

StringBuffer patternBuffer = new StringBuffer();

model prefix

patternBuffer.append ("(\\ [\\!--|)")<>

Features GOLD - ed list

for (int i = 0; i)

patternBuffer.append (idocFunctions.get (i));

If (i

}

model suffix

patternBuffer.append ("") (. +?) (--\\]|\\$>)");

String pattern = patternBuffer.toString ();

log.trace ("Functions return Idoc model", model);

Return Pattern.compile (pattern);

}

}

public class ServiceUtils {}

Private Shared Workspace getSystemWorkspace()}

Workspace workspace = null;

WsProvider provider = Providers.getProvider ("SystemDatabase");

If (null! = wsProvider) {}

workspace = wsProvider.getProvider ((workspace));

}

Returns the workspace;

}

getFullUserData private static UserData (String userName, cxt ExecutionContext, workspace ws) throws DataException, ServiceException {}

If (null == ws) {}

WS = getSystemWorkspace();

}

UserData userData is UserStorage.retrieveUserDatabaseProfileDataFull (name of user, ws, null, cxt, true, true);.

ws.releaseConnection ();

return userData;

}

public static executeService (DataBinder binder) Sub survey DataException, ServiceException {}

get a connection to the database

Workspace workspace = getSystemWorkspace();

Look for a value of IdcService

String cmd = binder.getLocal ("IdcService");

If (null == cmd) {}

throw new DataException("!csIdcServiceMissing");

}

get the service definition

ServiceData serviceData = ServiceManager.getFullService (cmd);

If (null == serviceData) {}

throw new DataException (LocaleUtils.encodeMessage ("!")) csNoServiceDefined", null, cmd));

}

create the object for this service

The service = ServiceManager.createService (serviceData.m_classID, workspace, null, Binder, serviceData);

String userName = 'sysadmin ';

UserData fullUserData = getFullUserData (username, service, workspace);

service.setUserData (fullUserData);

Binder.m_environment.put ("REMOTE_USER", username);

try {}

init service do not return HTML

service.setSendFlags (true, true);

create the ServiceHandlers and producers

service.initDelegatedObjects ();

do a safety check

service.globalSecurityCheck ();

prepare for service

service.preActions ();

run the service

service.doActions ();

} catch (ServiceException e) {}

} {Finally

service.cleanUp (true);

If (null! = workspace) {}

workspace.releaseConnection ();

}

}

}

}

Tags: Fusion Middleware

Similar Questions

  • Error code: 0x84BC089B, you try to run the service pack 1 for SQL Server

    Original title: Error Code: 0x84BC089B

    Received error code: 0x84BC089B tries to run the service pack 1 for SQL Server Express 2008R2.

    Hello J lesow,

    The question you have posted is related to SQL server and would be better suited on the TechNet support forum. I suggest you to post the question on the following link.

    http://social.technet.Microsoft.com/forums/en-us/category/SQLServer

  • When windows starts, the user name is not displayed, almost all programs do not work, or I get a message saying that they do not have authorization to run the service

    When windows starts the user name is not displayed, almost all programs do not work, or I get a message saying that they have permission to run the service, sometimes windows not loading some programs of initialization and I can't turn off the pc by using the start menu, when it arrives, sometimes everything works normally when I turn on the pc except of my antivirus (avast!) and firewall (comodo) , they are responsible, but avast! said that the service is disabled and when I him there is a message saying that he had ceased to maximize or in an inconsistent state and comodo said that the application of the agent is not running.

    My Windows is XP Professional SP3.

    Thanks in advance.
    (Sorry for my English)

    * original title - I have starting problems I've ever had and I can't find a TomTom.*

    Salvation exodus REV,

    You did it of any material changes or software on the computer before this problem?

    I recommend you to uninstall Avast! & Comodo temporarily from Add / Remove Programs. Later, check to see if the problem persists.

    To uninstall Avast!, you can use utility aswClear to uninstall Avast!.

    For more information, refer to this link: Uninstall Utility

    You can not install Comodo since Avast! has a built-in & antivirus firewall.

    Hope the helps of information.
    Please post back and we do know.

  • Cannot run the service method "run the Html Conversion" - dynamic converter problem

    Hello

    We are facing the sub question for dynamic conversion. We have Oracle COE 11.1.1.8 Linux

    Installing the last group of patches Patch 19991981 : OUTDOOR 8.4.0.140 OPATCH for PS5, PS6 or PS7

    Always face the question.

    Unable to run the 'runHtmlConversion' of service method. Null pointer is dereferenced. [Details]

    An error has occurred. The stack trace below shows more information.

    ! csUserEventMessage, 410484, dev - wcc.qbe.com.au! csFileServiceReferredToBy, http:// <> <> / cs/idcplg? IdcService = DOC_INFO & dID = 1219 & dDocName = 15393345! csFileServiceUserAgent, Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729 .NET CLR 3.0.30729; Media Center PC 6.0; NET4.0C;. NET4.0E), GET! csUnableToExecMethod, runHtmlConversion! syNullPointerException

    intradoc.common.ServiceException:! csUnableToExecMethod, runHtmlConversion

    * ScriptStack GET_DYNAMIC_CONVERSION_SUB

    3:doSubService, dID = 1219, dDocName = 15393345GET_DYNAMIC_CONVERSION_SUB, dID = 1219, dDocName = 153933453:runHtmlConversion, dID = 1219, dDocName = 15393345

    at intradoc.server.ServiceRequestImplementor.buildServiceException(ServiceRequestImplementor.java:2176)

    at intradoc.server.Service.buildServiceException(Service.java:2404)

    at intradoc.server.Service.createServiceExceptionEx(Service.java:2398)

    at intradoc.server.Service.createServiceException(Service.java:2393)

    at intradoc.server.ServiceHandler.executeAction(ServiceHandler.java:102)

    at intradoc.server.Service.doCodeEx(Service.java:622)

    at intradoc.server.Service.doCode(Service.java:594)

    at intradoc.server.ServiceRequestImplementor.doAction(ServiceRequestImplementor.java:1693)

    at intradoc.server.Service.doAction(Service.java:566)

    at intradoc.server.ServiceRequestImplementor.doActions(ServiceRequestImplementor.java:1483)

    at intradoc.server.Service.doActions(Service.java:561)

    at intradoc.server.ServiceRequestImplementor.executeSubServiceCode(ServiceRequestImplementor.java:1346)

    at intradoc.server.Service.executeSubServiceCode(Service.java:4184)

    at intradoc.server.ServiceRequestImplementor.executeServiceEx(ServiceRequestImplementor.java:1222)

    at intradoc.server.Service.executeServiceEx(Service.java:4179)

    at intradoc.server.Service.executeService(Service.java:4163)

    at intradoc.server.Service.doSubService(Service.java:4073)

    at sun.reflect.GeneratedMethodAccessor370.invoke (unknown Source)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

    at java.lang.reflect.Method.invoke(Method.java:601)

    at intradoc.common.IdcMethodHolder.invokeMethod(IdcMethodHolder.java:86)

    at intradoc.common.ClassHelperUtils.executeMethodEx(ClassHelperUtils.java:310)

    at intradoc.common.ClassHelperUtils.executeMethod(ClassHelperUtils.java:295)

    at intradoc.server.Service.doCodeEx(Service.java:639)

    at intradoc.server.Service.doCode(Service.java:594)

    at intradoc.server.ServiceRequestImplementor.doAction(ServiceRequestImplementor.java:1693)

    at intradoc.server.Service.doAction(Service.java:566)

    at intradoc.server.ServiceRequestImplementor.doActions(ServiceRequestImplementor.java:1483)

    at intradoc.server.Service.doActions(Service.java:561)

    at intradoc.server.ServiceRequestImplementor.executeActions(ServiceRequestImplementor.java:1415)

    at intradoc.server.Service.executeActions(Service.java:547)

    at intradoc.server.ServiceRequestImplementor.doRequest(ServiceRequestImplementor.java:751)

    at intradoc.server.Service.doRequest(Service.java:1976)

    at intradoc.server.ServiceManager.processCommand(ServiceManager.java:486)

    at intradoc.server.IdcServerThread.processRequest(IdcServerThread.java:265)

    at intradoc.idcwls.IdcServletRequestUtils.doRequest(IdcServletRequestUtils.java:1355)

    at intradoc.idcwls.IdcServletRequestUtils.processFilterEvent(IdcServletRequestUtils.java:1732)

    at intradoc.idcwls.IdcIntegrateWrapper.processFilterEvent(IdcIntegrateWrapper.java:223)

    at sun.reflect.GeneratedMethodAccessor292.invoke (unknown Source)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

    at java.lang.reflect.Method.invoke(Method.java:601)

    at idcservlet.common.IdcMethodHolder.invokeMethod(IdcMethodHolder.java:87)

    at idcservlet.common.ClassHelperUtils.executeMethodEx(ClassHelperUtils.java:305)

    at idcservlet.common.ClassHelperUtils.executeMethodWithArgs(ClassHelperUtils.java:278)

    to idcservlet. ServletUtils.executeContentServerIntegrateMethodOnConfig (ServletUtils.java:1680)

    to idcservlet. IdcFilter.doFilter (IdcFilter.java:457)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    to oracle.security.jps.ee.http.JpsAbsFilter$ 1.run(JpsAbsFilter.java:119)

    at java.security.AccessController.doPrivileged (Native Method)

    at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:324)

    at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:460)

    at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)

    at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)

    at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:163)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    to oracle.security.jps.ee.http.JpsAbsFilter$ 1.run(JpsAbsFilter.java:119)

    at java.security.AccessController.doPrivileged (Native Method)

    at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:324)

    at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:460)

    at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)

    at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)

    at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.wrapRun (WebAppServletContext.java:3730)

    to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.run (WebAppServletContext.java:3696)

    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)

    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)

    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2273)

    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2179)

    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1490)

    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)

    at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)

    Caused by: java.lang.NullPointerException

    to dynamicconverter. DynConverterHandler.doConversion (DynConverterHandler.java:1730)

    to dynamicconverter. DynConverterHandler.runHtmlConversion (DynConverterHandler.java:1498)

    at sun.reflect.GeneratedMethodAccessor427.invoke (unknown Source)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

    at java.lang.reflect.Method.invoke(Method.java:601)

    at intradoc.common.IdcMethodHolder.invokeMethod(IdcMethodHolder.java:86)

    at intradoc.common.ClassHelperUtils.executeMethodReportStatus(ClassHelperUtils.java:324)

    at intradoc.server.ServiceHandler.executeAction(ServiceHandler.java:79)

    ... more than 69

    Please help us to solve the problem,

    Thanks in advance.

    Tasks/6 01.23 Manager 17:22:46.296 htmlexport_19 caused by: java.io.IOException: cannot run program "/ u01/app/Middleware/Oracle_ECM1/ILO/linux/lib/contentaccess/htmlexport" (in the directory ' / u01/app/Middleware/Oracle_ECM1/ILO/linux/lib/contentaccess '): = 13, Permission denied error

    The tasks/6 01.23 Manager 17:22:46.296 htmlexport_19 to java.lang.ProcessBuilder.start(ProcessBuilder.java:1042)

    The tasks/6 01.23 Manager 17:22:46.296 htmlexport_19 to intradoc.taskmanager.TaskLauncher.startExe(TaskLauncher.java:177)

    The tasks/6 01.23 Manager 17:22:46.296 htmlexport_19... 2 more

    The tasks/6 01.23 Manager 17:22:46.296 htmlexport_19 caused by: java.io.IOException: error = 13, Permission denied

    The tasks/6 01.23 Manager 17:22:46.296 htmlexport_19 at java.lang.UNIXProcess.forkAndExec (Native Method)

    The tasks/6 01.23 Manager 17:22:46.296 htmlexport_19 to java.lang.UNIXProcess. (UNIXProcess.java:135)

    The tasks/6 01.23 Manager 17:22:46.296 htmlexport_19 to java.lang.ProcessImpl.start(ProcessImpl.java:130)

    The tasks/6 01.23 Manager 17:22:46.296 htmlexport_19 to java.lang.ProcessBuilder.start(ProcessBuilder.java:1023)

    The tasks/6 01.23 Manager 17:22:46.296 htmlexport_19... 3 more

    > taskmanager/6 01.23 17:22:46.297 withdrawal htmlexport_19 launcher for task: htmlexport that has been marked as finished

    Permission denied is the main reason for the error. As you saw command line as well as executable files are evidence of permission denied for user wccadm. If please check or give higher set of permissions for the executables under u01/app/Middleware/Oracle_ECM1/ILO/linux/lib/contentaccess and test it.

  • UCM - BPEL failed to retrieve the form of update process. Cannot run the service

    Hello


    I am trying to integrate the University Complutense of MADRID 10.1.3.3.3 with BPEL 10.1.3.5, I already installed the component of the UCM BPEL and updated the jar files in/custom/BpelIntegration/lib with the pot in BPEL.

    Also define the connection between UCM and BPEL

    the Configuration ID: Local
    Description: Local BPEL
    Domain: by default

    JNDI properties
    First factory of context: oracle.j2ee.rmi.RMIInitialContextFactory
    The provider URL: opmn:ormi://localhost:6105:oc4j_soa / orabpel
    Principal: oc4jadmin
    Identification of security information: *.

    When I test the connection it seems to be valid "JNDI parameters were validated successfully."

    but when I try to create a process with bpel configuration, the following ERROR Message appears:

    Content Server request failed
    Failed to retrieve the form of update process. Unable to run the 'getDeployedProcesses' of service method. (System error: runtime error: java.lang.IllegalStateException: can't replace cause)
    at java.lang.Throwable.initCause(Throwable.java:320)
    to bpelintegration. OracleIntegration.getAllProcesses (OracleIntegration.java:265)
    to bpelintegration. OracleIntegration.getBpelProcesses (OracleIntegration.java:184)
    to bpelintegration. OraBpelHandler.getDeployedProcesses (OraBpelHandler.java:224)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at intradoc.common.IdcMethodHolder.invokeMethod(ClassHelperUtils.java:461)
    at intradoc.common.ClassHelperUtils.executeMethodReportStatus(ClassHelperUtils.java:142)
    at intradoc.server.ServiceHandler.executeAction(ServiceHandler.java:75)
    at intradoc.server.Service.doCodeEx(Service.java:488)
    at intradoc.server.Service.doCode(Service.java:470)
    at intradoc.server.ServiceRequestImplementor.doAction(ServiceRequestImplementor.java:1350)
    at intradoc.server.Service.doAction(Service.java:450)
    at intradoc.server.ServiceRequestImplementor.doActions(ServiceRequestImplementor.java:1191)
    at intradoc.server.Service.doActions(Service.java:445)
    at intradoc.server.ServiceRequestImplementor.executeActions(ServiceRequestImplementor.java:1111)
    at intradoc.server.Service.executeActions(Service.java:431)
    at intradoc.server.ServiceRequestImplementor.doRequest(ServiceRequestImplementor.java:632)
    at intradoc.server.Service.doRequest(Service.java:1709)
    at intradoc.server.ServiceManager.processCommand(ServiceManager.java:357)
    at intradoc.server.IdcServerThread.run (IdcServerThread.java:195))
    + [Details] +.
    + Battery service for this request is - ORABPEL_PROCESS_UPDATE_FORM (* no captured values *) java.lang.IllegalStateException: can't replace cause to java.lang.Throwable.initCause(Throwable.java:320) to bpelintegration. OracleIntegration.getAllProcesses (OracleIntegration.java:265) to bpelintegration. OracleIntegration.getBpelProcesses (OracleIntegration.java:184) to bpelintegration. (OraBpelHandler.getDeployedProcesses(OraBpelHandler.java:224) at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at intradoc.common.IdcMethodHolder.invokeMethod(ClassHelperUtils.java:461) at intradoc.common.ClassHelperUtils.executeMethodReportStatus(ClassHelperUtils.java:142) at intradoc.server.ServiceHandler.executeAction(ServiceHandler.java:75) at intradoc.server.Service.doCodeEx(Service.java:488) at intradoc.server.Service.doCode(Service.java:470) at intradoc.server.ServiceRequestImplementor.doAction(ServiceRequestImplementor.java:1350) at intradoc.server.Service.doAction) Service.java:450) to intradoc.server.ServiceRequestImplementor.doActions(ServiceRequestImplementor.java:1191) to intradoc.server.Service.doActions(Service.java:445) to intradoc.server.ServiceRequestImplementor.executeActions(ServiceRequestImplementor.java:1111) to intradoc.server.Service.executeActions(Service.java:431) to intradoc.server.ServiceRequestImplementor.doRequest(ServiceRequestImplementor.java:632) to intradoc.server.Service.doRequest(Service.java:1709) to intradoc.server.ServiceManager.processCommand(ServiceManager.java:357) to intradoc.server.IdcServerThread.run(IdcServerThread.java:195) +.



    Can someone help me?

    Thanks in advance

    Carlos Pereira

    Hello

    Workaround for this problem is:

    Copy orabpel - thirdparty.jar/bpel/lib and place it in the folder/custom/BpelIntegration/lib , and add this variable in intradoc.cfg of the CS (stop the content server before performing this change):

    JAVA_CLASSPATH_bpel =/custom/BpelIntegration/lib/orabpel-thirdparty.jar

    Start content server after the steps above have been completed, and then test to see if the problem persists.

    Thank you
    Srinath

  • ESX 3.5: copy files using the service console from a network share to the esx host data store

    Hello

    I wonder. Is there a command that I can run the service console that would allow me to copy a file from a network share on the data store on the esx host?

    Eric

    If sharing is a Windows, you can also use smbclient within the service console and ride sharing.

    André

    * If you found this device or any other answer useful please consider awarding points for correct or helpful answers

  • Run the UCM Service using custom

    Hello

    I was looking for information how to run the service from the Complutense University of MADRID by composing personalized and found some articles about the same:

    http://jonathanhult.com/blog/2012/06/execute-a-service-from-a-Java-filter/

    http://jonathanhult.com/blog/2012/10/who-created-that-site-Studio-section/

    http://www.redstonecontentsolutions.com/5/post/2012/05/executing-a-service-from-aservicehandler.html#sthash.X31M6ZCS.tvlE83Km.DPBS

    I'm new to webcenter content and could not understand above blog stuff correctly. Queries:

    1. we make use of the service of the University Complutense of MADRID to filter, Service or ServiceHandler. Is there a difference in the code required to perform a service?

    2. What is the correct code to run the UCM service?

    No, but your custom component can have html resources (including) and html templates that can contain some iDocScript. And there, you can use this way.

    For the complete list, a service can also directly call subservices just the way it is defined - a personalized service is defined in the .hda file and it can contain a line containing such a call.

    As you are new to the WebCenter content, I recommend you use the component wizard. You must also be familiar with the creation of custom components before you dive into programming (and the functionality of the system as it is, because very often, people develop functionality that is already there).

  • How to use a link to execute an ActionScript function in a SWF file?

    In the Actionscript 3.0 language and components reference > all categories > class TextField > properties > HTML htmlText supported tags table, the description of the anchor tag has this sentence: "you can use the link event causes the link execute an ActionScript function in a SWF file instead of opening a URL. I do not understand how to do this. Can someone tell me how to proceed? Alternatively, can anyone point me to an example or a reference that explains how to run an ActionScript function in a SWF file using the event of links?

    Thank you

    Tim Persinger

    You put a href as you normally would, just by using events: define as follows:

    someTextField.htmlText = "Hello World";
    someTextField.addEventListener (TextEvent.LINK, hwPressed);
    function hwPressed(e:TextEvent) {}
    trace (e.Text);
    }

    will trace "hw".

  • Get the custom IdocScript function contributor data file

    Hello

    I have a requirement to retrieve a number of elements of a given contributor data file. The problem is, I don't know how to retrieve the XML code inside a custom component of IdocScript.

    Given the content of the data contributor file ID, is there an easy way to get the XML file, or do I need to use with a service call?

    Thank you!

    If it's a Java component, why not just get the direct file system XML file? The demand function, you could have a file path in the binder... If not, use the IdcFileDescriptor object:

    https://groups.Yahoo.com/neo/groups/intradoc_users/conversations/topics/25937

  • Date, file name, the stamp

    I looked for hours to get a script that will work in Illustrator CS4 that will put a block of text on the page identification:

    Date, file name and the user name on the document (Council of art)

    I'm not versed in the scripts. Can someone help me?

    You just want to give this review. IM yet to learn this JavaScript stuff and I'm sure it can be cleaned.

    #target illustrator

    main() {} function

    If (app.documents.length == 0) {}

    Alert ("Please have an"Illustrator"document before running this script.");

    return;

    }

    var app.activeDocument = docRef;

    with (docRef) {}

    If (saved == false) save();

    var filePath = path;

    If (inCollection (linked text frames, "cartridge-file'")) {}

    frameA var = textFrames.getByName('titleblock-file');

    frameA.contents = name;

    }

    If (inCollection (linked text frames, "cartridge-path '")) {}

    frameB var = textFrames.getByName('titleblock-path');

    frameB.contents = unescape (fullName);

    }

    If (inCollection (linked text frames, "cartridge-date'")) {}

    frameC var = textFrames.getByName('titleblock-date');

    If (filePath.created! = null) {}

    var creatDate = filePath.created.toString ().split(' ');

    var creatDate = creatDate [1] + "" + creatDate [2] + "" + creatDate [3];

    frameC.contents = creatDate;

    }

    }

    If (inCollection (linked text frames, "cartridge-revised'")) {}

    Var box = textFrames.getByName('titleblock-revised');

    If (filePath.modified! = null) {}

    ModDate var = filePath.modified.toString ().split(' ');

    Var ModDate = ModDate [1] + ' ' + ModDate [2] + ' ' + ModDate [3];

    frameD.contents = ModDate;

    }

    }

    If (inCollection (linked text frames, ' titleblock-editor "")) {}

    War-horse var = textFrames.getByName('titleblock-editor');

    frameE.contents = "Mark Larsen"

    }

    }

    }

    main();

    function inCollection (ObjArr, "stringname") {}

    var x = false;

    for (var i = 0; i)< objarray.length;="" i++)="">

    If (ObjArr [i] .name == stringname) x = true;

    }

    Return x;

    }

  • Apex 4. Run the procedure to recover my files

    Dear all,

    I experience a problem moving my apex application (sss) to a new server.
    I export demand for 3.2 APEX to APEX 4.0 new
    + transfer of data using a simple DB dump (export).

    Everything will work perfectly except our main application functionality, sitting on the workspace of "HR_PRD" that we have a few problems.

    In our DB schema called "HR_REP" I have a table that stores BLOBs for download a document attached to a record of the employee.
    So I created a package that contains the custom procedure to download the files stored in the table "wr_docs".

    URL = http://sphfrapex01.hopfr.net.fr.ch:8080/apex/HR_PROD.wr_apputil.download_my_file?p_file=3655106341169143


    I can download the file whithout any problems and it appears correctly in the report showing all my files.
    BUT when it tries to download... Unfortunately, access to the file does not work on the new APEX 4.0 platform!

    As this sounds like a simple question 'rights', I did several tests...

    I tried to create a simple procedure on my 'old' server called 'TEST' which simply print a simple text:
    HTP. ("test to print something");

    Here, I granted AUDIENCE to perform this procedure.
    It works well on the APEX 3.2 platform when on the new APEX 4.0, refusal to execute the procedure.

    Can you help me please?
    I'm certainly missing something obvious thanks to the GRANT run the TEST at?

    I granted AUDIENCE, so the appeal should work...


    I have to admit, I'm a bit lost here.

    Thanks in advance for your help.
    Philippe Kilchoer

    Hi Philippe,.

    using EPG to APEX? You may have forgotten to update WWV_FLOW_EPG_INCLUDE_MOD_LOCAL to include your procedure. Take a look on

    http://download.Oracle.com/docs/CD/E14373_01/AppDev.32/e13363/up_dn_files.htm#CJACBEHG

    Concerning
    Patrick
    -----------
    My Blog: http://www.inside-oracle-apex.com
    APEX 4.0 Plug-Ins: http://apex.oracle.com/plugins

  • I clicked "forget this site", I can cancel it by running the "System Restore" function to retrieve my story?

    I clicked "forget this site" and I am looking for a way to undo it. I have heard say there is no way to retrieve the history of a particular site, once it has been deleted, but surely, it leaves some kind of record in the system? I read an article that suggested running the "System Restore" feature which gives me the option to "restore my computer to an earlier time" before that some changes have been made. Would this work?

    Hello, windows system restore will not restore the file that contains the history of firefox unfortunately (it's called places.sqlite). you would need a backup of your firefox profile folder to retrieve such data.

    Please also update firefox - the version that you are currently using is outdated and affected by many security vulnerabilities.

    Update to the latest version of Firefox

  • What is READ the array returned by the DAQmx meter? How can I know the two functions DAQmx READ data stream in the same WHILE loop?

    I have a question about the order of execution.  In the WHILE loop, I have two things to measure, period and tension using the DAQmx READ functions for voltage and the meter.  In the end, I want to collect these data as points almost simultaneously as possible, as a pair and then send them together to another piece of code (not shown here) which them will result in some sort of command for an engine.  It would be run, and then I want to perceive the tension and the period at a time later and do the same thing.

    (1.) I'm a little confused on what the meter of the READ function is back because it's a table.  What is a picture of?  I thought that it was up to the value of the individual periods between rising edges.  The output of the counter 1 DBL d's a table. How many elements in this table, and what determines the size of this table?  Are the elements of the array the individual delays between the edges?  How many values are stored in the array by executing?   We take the AVERAGE of the last 15 items, but do not know if we are throwing some of the data or what.  How to understand the composition of this painting?  How can I change the composition of this painting?  Is it possible to measure only one period at a time, for example the time between TWO edges?

    2.) Will this WHILE loop execute as it gathers tension and a "period table ' (remains to be understood by me) by TIME running in a loop?  In particular, we want that the value of the tension associated with the value of the AVERAGE of the period "array", so we can use two data items to create orders of next control every time that the two values are reported.  The structure for the delivery of vi will be attached data in pairs like this?  I understand that one of the READING functions run not before the other function of READING in the WHILE loop.  I want that the period "means" and "strain (Volt) collected at the same pace. This vi will he?

    Thank you

    Dave

    Hi David,

    I suggest including the DAQmx Start Task function. If it does not start before the loop, it starts the loop and work very well, but it is not as fast and efficient. In the model of task status, task wiill go to run the checked each iteration of the loop and then back the time checked running when it restarts.

    The status of the task model: http://zone.ni.com/reference/en-XX/help/370466V-01/mxcncpts/taskstatemodel/

    Kind regards

    Jason D

    Technical sales engineer

    National Instruments

  • How to remove the data files of cRIO

    Please forgive my ignorance, but I don't see how to remove the old a cRIO data files.  I tried to get a functional data logger, and I have some old files of data on the cRIO.  I ftp copies files through IE, but I don't know how to delete the files from the cRIO.

    If you FTP via Windows Explorer, my computer, ftp://adresse IP in the address bar, you should be able to delete the files.

  • How do I encrypt a data file so that only I can retrieve the Info?

    How do I encrypt a data file so that it cannot be read without permission?

    I have a request where the client shouldn't have access to the data that I need to save for troubleshooting purposes.  (there are trade secrets, I want to protect)  My plan is to save a datalog (currently I produce a Spreadsheet tabs-delimited format) whenever the device is running and hide the files where they will not likely be found.  But some sort of encryption or everything at least password protection would be better.

    I never tried to do this before, but thought it would be pretty easy.  Maybe I'm looking all just not in the right places.

    Thank you

    Well, you could look in something like DES, Triple, ESA, etc.  It has libries lying since these writings in LabVIEW.  I'm not sure about the cost.

    If you want a very simple way to protect your data, just reverse all or part of the bits in each byte of the file.  It's super simple and turns a nice ASCII text file noise when read from a text file.

Maybe you are looking for