OSB custom Xpath functions

I use custom XPath functions. I put all the associated files in the % OSB_HOME%/config/xpath-functions. It works very well in my development environment which is a unique domain server.

But when I'm deploying on my new UAT environment including a multiple domain server, it gives an error.
My server admin is port 7001 and server run on 8001. Sbconcole located on 7001, I see my custom in the Xquery function window function. I can also click on the test button in the Xquery designer view and it works very well.

But when I activate my proxy and then use the test console to run the proxy it gives an error. Test console running the proxy on the managed server. I guess that enforcement cannot find the custom managed server jar file.

no idea what directory I need to copy the jar file on measurement so tat it works as well in the admin and the managed server?

just a point, when I use fn - bea * functions that it works very well. To me, it is also a custom function. But I noticed that the jar file is not installed in the % OSB_HOME%/config/xpath-functions. no idea what is the name of the jar for fn-functions of bea.

concerning
Roshan

I have built custom functions and tested in the single server, and also an area of OSB in cluster. Fuctions of custom XPath work correctly in two of these area in the console to Test the OSB

I just placed the files xml and jar containing custom under C:\beaplatforms\11g\wls1033\osb11g\config\xpath-functions functions

osbCustomFunctions.xml
osbCustomFunctions.properties
customXPathFunc.jar

You can try to restart the full Domain - Admin servers and managed and test again.

Tags: Fusion Middleware

Similar Questions

  • Can I call a custom outdoor function?

    Can I call a custom outdoor function?

    For example

    //______________________

    var myComp = app.project.activeItem;

    createComps();

    createSolids();

    RenderItems();

    //______________________________

    but these functions are written separately in the current directory .jsx format?

    As a library?

    #include <>?

    You gave the answer to your question: you can use #include 'path/to/file/to/include.jsx '.

    And the path can be absolute or relative to the current folder.

    See the JavaScript ToolGuide for this (it does not appear in the AE script guide since it is common to all applications).

    You can also use $.evalFile (pathToFile), which has more or less the same effect I think.

    Xavier.

  • XPath functions in oracle

    Hello

    Is there a function like fn:local - name (.) in oracle XPATH functions. If so help me wit ha simple example.

    I am new to Oracle & SQL server migration procedure to oracle where script XML procedure taken as input.

    I need to convert under Oracle's SQL Server select statement.

    SELECT converseUID,
    "Distributed."
    Cast (ServiceCalls.Query ('fn:local - name (.)') as varchar (100)).
    1,
    WORK IN PROGRESS. ServiceCalls.value ('(TotalTime) [1] ',' int'),
    WORK IN PROGRESS. ServiceCalls.value ('(Status) [1] ',' varchar (100)');
    WORK IN PROGRESS. ServiceCalls.value ('(Primary_deferred) [1] ',' varchar (20)');
    WORK IN PROGRESS. ServiceCalls.value ('(FromCache) [1] ',' bit').
    @DateTimeStamp
    OF @WIP.nodes('//WIP/gatewayServiceCalls/*') as WIP (ServiceCalls)
    WHERE WIP. ServiceCalls.value ('(startTime) [1] ',' int') <>0

    Thanks in advance.

    The path expression is bad and which is based on the XML code you posted earlier, VARCHAR2 (4000) is not large enough to hold the extracted value.

    You can use the CLOB data type:

    SELECT x.response
    FROM XMLTable(
           '//WIP/gatewayServiceCalls/mqdrop'
           passing v_wip
           columns
             response   clob  path 'Response'
         ) x
    ;
    

    or, if you expect a single value then preference:

    SELECT XMLCast(
             XMLQuery('//WIP/gatewayServiceCalls/mqdrop/Response'
               passing v_wip
               returning content
             )
             as clob
           )
    FROM dual;
    
  • How to use my custom defiend function

    Dear all,

    I simply create a new custom set function that I send him a whole month and return name.
    The function registered successfully. and everything is ok, the newspapers are ok

    My question: how to use my @TOSTRING CDF

    the following code for the java class
    --------------------------------------------------------------------------------
    import java.lang. *;
    Import Java.util;
    import java.text.DateFormatSymbols.
    class toString {}

    public static String fromInt (int m)
    {

    return new DateFormatSymbols () .getShortMonths () [m-1];

    }

    }

    ------------------------------------------------------------------------------


    I tried the following and check syntax result successful and executed, but now


    VAR x = 2;
    'Project status' = @MEMBER (@CONCATENATE (@TOSTRING (x), '200'));


    Please advice

    Try to write a fix and check that @TOSTRING (x) is back, ex:
    DIFFICULTY (@MEMBER (@CONCATENATE (@TOSTRING (x), "200"))
    ;
    ENDFIX;

    Or

    Fix (@Member (@TOSTRING (x)))
    ;
    ENDFIX;

    You will find a line in the newspapers saying:
    Expression [@MEMBER (<>)]...

    See you soon... !!!

  • OSB: Custom political GOSA and java.lang.ClassNotFoundException

    I created a custom policy called MyCustomPolicy. It does virtually nothing, but always succeeds and writes a message on the server output, as "= political Custom called = '.

    I put the implementation of the policy in one archive .jar and place in the lib of the domain directory. Then I imported the policy to the GOSA in the EM console. All servers have been restarted.

    I created a business service and a proxy that leads to the service of the company. In the proxy options, I have attached my policy as OWSM policy links and set the 'WS-Security process header' Yes.


    Now, if I invoke the proxy of the OSB, or via the stand-alone client console, everything works like a charm. The invoke is a success, I get the expected values of business and a message is written to the output of the server by the implementation of the policy.

    Then I create another proxy, a passage through proxy. There is no policy attached to it, and its "process WS-Security header' is set to 'no '. The roads of proxy to the proxy with my custom GOSA policy. I'm changing the header 'doOutboundWss' to 'false', while WS-Security SOAP envelope out don't come not this proxy. There is no need of WS-Security SOAP envelope since my policy don't use it, right?

    When I try to call this proxy, I get "java.lang.ClassNotFoundException: karol.soa.policy.MySuccesAssertionExecutor". But the implementation is in the lib of the domain directory! And it works when I invoke the proxy directly!

    Help, please!


    I'm writing a stack trace:


    < 22 November 2011 14:57:54 THIS > < error > < oracle.wsm.resources.policy > < WSM-01602 > < error loading class karol.soa.policy.MySuccesAssertionExecutor >
    < 22 November 2011 14:57:54 THIS > < error > < oracle.wsm.resources.enforcement > < WSM-07601 > < failed to initialize the WSPolicyExecutor class karol.soa.policy.MySuccesAssertionExecutor. >
    < 22 November 2011 14:57:54 THIS > < error > < oracle.wsm.resources.enforcement > < WSM-07501 > < failure in Oracle WSM Agent processRequest, category = security, function = agent.function.service, = OSBKernel, composite application = null, modelObj = Mediator1_ep, political = null, policyVersion = null, assertionName = null.
    oracle.wsm.common.sdk.WSMException: WSM-07604: internal error during the implementation of the strategies.
    at oracle.wsm.policyengine.impl.runtime.WSPolicyRuntimeExecutor.populateAssertionExecutors(WSPolicyRuntimeExecutor.java:246)
    at oracle.wsm.policyengine.impl.runtime.WSPolicyRuntimeExecutor.populateAssertionExecutors(WSPolicyRuntimeExecutor.java:271)
    at oracle.wsm.policyengine.impl.runtime.WSPolicyRuntimeExecutor.init(WSPolicyRuntimeExecutor.java:154)
    at oracle.wsm.policyengine.impl.PolicyExecutionEngine.getPolicyExecutor(PolicyExecutionEngine.java:137)
    at oracle.wsm.policyengine.impl.PolicyExecutionEngine.execute(PolicyExecutionEngine.java:101)
    at oracle.wsm.agent.WSMAgent.processCommon(WSMAgent.java:915)
    at oracle.wsm.agent.WSMAgent.processRequest(WSMAgent.java:436)
    at oracle.wsm.agent.handler.WSMEngineInvoker.handleRequest(WSMEngineInvoker.java:393)
    at com.bea.wli.sb.security.wss.wsm.WsmInboundHandler.processRequest(WsmInboundHandler.java:147)
    at com.bea.wli.sb.security.wss.WssHandlerImpl.doInboundRequest(WssHandlerImpl.java:223)
    at com.bea.wli.sb.context.BindingLayerImpl.addRequest(BindingLayerImpl.java:271)
    at com.bea.wli.sb.pipeline.MessageProcessor.processRequest(MessageProcessor.java:90)
    to com.bea.wli.sb.pipeline.RouterManager$ 1.run(RouterManager.java:593)
    to com.bea.wli.sb.pipeline.RouterManager$ 1.run(RouterManager.java:591)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
    at com.bea.wli.sb.security.WLSSecurityContextService.runAs(WLSSecurityContextService.java:55)
    at com.bea.wli.sb.pipeline.RouterManager.processMessage(RouterManager.java:590)
    at com.bea.wli.sb.transports.TransportManagerImpl.receiveMessage(TransportManagerImpl.java:375)
    to com.bea.wli.sb.transports.CoLocatedMessageContext$ 1.run(CoLocatedMessageContext.java:162)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
    at weblogic.security.Security.runAs(Security.java:61)
    at com.bea.wli.sb.util.security.SecurityUtils.runAs(SecurityUtils.java:58)
    at com.bea.wli.sb.transports.CoLocatedMessageContext.send(CoLocatedMessageContext.java:157)
    at com.bea.wli.sb.transports.http.wls.HttpTransportProvider.sendMessageAsync(HttpTransportProvider.java:215)
    at sun.reflect.GeneratedMethodAccessor719.invoke (unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    to com.bea.wli.sb.transports.Util$ 1.invoke(Util.java:83)
    to $Proxy110.sendMessageAsync (Unknown Source)
    at com.bea.wli.sb.transports.LoadBalanceFailoverListener.sendMessageAsync(LoadBalanceFailoverListener.java:148)
    at com.bea.wli.sb.transports.LoadBalanceFailoverListener.sendMessageToServiceAsync(LoadBalanceFailoverListener.java:603)
    at com.bea.wli.sb.transports.LoadBalanceFailoverListener.sendMessageToService(LoadBalanceFailoverListener.java:538)
    at com.bea.wli.sb.transports.TransportManagerImpl.sendMessageToService(TransportManagerImpl.java:558)
    at com.bea.wli.sb.transports.TransportManagerImpl.sendMessageAsync(TransportManagerImpl.java:426)
    at com.bea.wli.sb.pipeline.PipelineContextImpl.doDispatch(PipelineContextImpl.java:597)
    at com.bea.wli.sb.pipeline.PipelineContextImpl.dispatch(PipelineContextImpl.java:501)
    at stages.routing.runtime.RouteRuntimeStep.processMessage(RouteRuntimeStep.java:128)
    at com.bea.wli.sb.pipeline.debug.DebuggerRuntimeStep.processMessage(DebuggerRuntimeStep.java:74)
    to com.bea.wli.sb.stages.StageMetadataImpl$ WrapperRuntimeStep.processMessage (StageMetadataImpl.java:346)
    at com.bea.wli.sb.pipeline.RouteNode.doRequest(RouteNode.java:106)
    at com.bea.wli.sb.pipeline.Node.processMessage(Node.java:67)
    at com.bea.wli.sb.pipeline.PipelineContextImpl.execute(PipelineContextImpl.java:922)
    at com.bea.wli.sb.pipeline.Router.processMessage(Router.java:214)
    at com.bea.wli.sb.pipeline.MessageProcessor.processRequest(MessageProcessor.java:99)
    to com.bea.wli.sb.pipeline.RouterManager$ 1.run(RouterManager.java:593)
    to com.bea.wli.sb.pipeline.RouterManager$ 1.run(RouterManager.java:591)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
    at com.bea.wli.sb.security.WLSSecurityContextService.runAs(WLSSecurityContextService.java:55)
    at com.bea.wli.sb.pipeline.RouterManager.processMessage(RouterManager.java:590)
    at com.bea.wli.sb.test.service.ServiceMessageSender.send0(ServiceMessageSender.java:329)
    to com.bea.wli.sb.test.service.ServiceMessageSender.access$ 000 (ServiceMessageSender.java:76)
    to com.bea.wli.sb.test.service.ServiceMessageSender$ 1.run(ServiceMessageSender.java:134)
    to com.bea.wli.sb.test.service.ServiceMessageSender$ 1.run(ServiceMessageSender.java:132)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
    at com.bea.wli.sb.security.WLSSecurityContextService.runAs(WLSSecurityContextService.java:55)
    at com.bea.wli.sb.test.service.ServiceMessageSender.send(ServiceMessageSender.java:137)
    at com.bea.wli.sb.test.service.ServiceProcessor.invoke(ServiceProcessor.java:454)
    at com.bea.wli.sb.test.TestServiceImpl.invoke(TestServiceImpl.java:172)
    at com.bea.wli.sb.test.client.ejb.TestServiceEJBBean.invoke(TestServiceEJBBean.java:167)
    at com.bea.wli.sb.test.client.ejb.TestService_sqr59p_EOImpl.invoke(TestService_sqr59p_EOImpl.java:353)
    at com.bea.wli.sb.test.client.ejb.TestService_sqr59p_EOImpl_WLSkel.invoke (unknown Source)
    at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:589)
    at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:230)
    to weblogic.rmi.internal.BasicServerRef$ 1.run(BasicServerRef.java:477)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
    at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:473)
    at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)

    Caused by: java.lang.ClassNotFoundException: karol.soa.policy.MySuccesAssertionExecutor
    in java.net.URLClassLoader$ 1.run(URLClassLoader.java:202)
    at java.security.AccessController.doPrivileged (Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    to Sun.misc.Launcher$appclassloader$ AppClassLoader.loadClass (Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
    at oracle.wsm.policy.util.Loader.loadClass(Loader.java:368)
    at oracle.wsm.policy.util.Loader.loadClass(Loader.java:388)
    at oracle.wsm.policyengine.impl.runtime.WSPolicyRuntimeExecutor.populateAssertionExecutors(WSPolicyRuntimeExecutor.java:230)
    at oracle.wsm.policyengine.impl.runtime.WSPolicyRuntimeExecutor.populateAssertionExecutors(WSPolicyRuntimeExecutor.java:271)
    at oracle.wsm.policyengine.impl.runtime.WSPolicyRuntimeExecutor.init(WSPolicyRuntimeExecutor.java:154)
    at oracle.wsm.policyengine.impl.PolicyExecutionEngine.getPolicyExecutor(PolicyExecutionEngine.java:137)
    at oracle.wsm.policyengine.impl.PolicyExecutionEngine.execute(PolicyExecutionEngine.java:101)
    at oracle.wsm.agent.WSMAgent.processCommon(WSMAgent.java:915)
    at oracle.wsm.agent.WSMAgent.processRequest(WSMAgent.java:436)
    at oracle.wsm.agent.handler.WSMEngineInvoker.handleRequest(WSMEngineInvoker.java:393)
    at com.bea.wli.sb.security.wss.wsm.WsmInboundHandler.processRequest(WsmInboundHandler.java:147)
    at com.bea.wli.sb.security.wss.WssHandlerImpl.doInboundRequest(WssHandlerImpl.java:223)
    at com.bea.wli.sb.context.BindingLayerImpl.addRequest(BindingLayerImpl.java:271)
    at com.bea.wli.sb.pipeline.MessageProcessor.processRequest(MessageProcessor.java:90)
    to com.bea.wli.sb.pipeline.RouterManager$ 1.run(RouterManager.java:593)
    to com.bea.wli.sb.pipeline.RouterManager$ 1.run(RouterManager.java:591)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
    at com.bea.wli.sb.security.WLSSecurityContextService.runAs(WLSSecurityContextService.java:55)
    at com.bea.wli.sb.pipeline.RouterManager.processMessage(RouterManager.java:590)
    at com.bea.wli.sb.transports.TransportManagerImpl.receiveMessage(TransportManagerImpl.java:375)
    to com.bea.wli.sb.transports.CoLocatedMessageContext$ 1.run(CoLocatedMessageContext.java:162)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
    at weblogic.security.Security.runAs(Security.java:61)
    at com.bea.wli.sb.util.security.SecurityUtils.runAs(SecurityUtils.java:58)
    at com.bea.wli.sb.transports.CoLocatedMessageContext.send(CoLocatedMessageContext.java:157)
    at com.bea.wli.sb.transports.http.wls.HttpTransportProvider.sendMessageAsync(HttpTransportProvider.java:215)
    at sun.reflect.GeneratedMethodAccessor719.invoke (unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    to com.bea.wli.sb.transports.Util$ 1.invoke(Util.java:83)
    to $Proxy110.sendMessageAsync (Unknown Source)
    at com.bea.wli.sb.transports.LoadBalanceFailoverListener.sendMessageAsync(LoadBalanceFailoverListener.java:148)
    at com.bea.wli.sb.transports.LoadBalanceFailoverListener.sendMessageToServiceAsync(LoadBalanceFailoverListener.java:603)
    at com.bea.wli.sb.transports.LoadBalanceFailoverListener.sendMessageToService(LoadBalanceFailoverListener.java:538)
    at com.bea.wli.sb.transports.TransportManagerImpl.sendMessageToService(TransportManagerImpl.java:558)
    at com.bea.wli.sb.transports.TransportManagerImpl.sendMessageAsync(TransportManagerImpl.java:426)
    at com.bea.wli.sb.pipeline.PipelineContextImpl.doDispatch(PipelineContextImpl.java:597)
    at com.bea.wli.sb.pipeline.PipelineContextImpl.dispatch(PipelineContextImpl.java:501)
    at stages.routing.runtime.RouteRuntimeStep.processMessage(RouteRuntimeStep.java:128)
    at com.bea.wli.sb.pipeline.debug.DebuggerRuntimeStep.processMessage(DebuggerRuntimeStep.java:74)
    to com.bea.wli.sb.stages.StageMetadataImpl$ WrapperRuntimeStep.processMessage (StageMetadataImpl.java:346)
    at com.bea.wli.sb.pipeline.RouteNode.doRequest(RouteNode.java:106)
    at com.bea.wli.sb.pipeline.Node.processMessage(Node.java:67)
    at com.bea.wli.sb.pipeline.PipelineContextImpl.execute(PipelineContextImpl.java:922)
    at com.bea.wli.sb.pipeline.Router.processMessage(Router.java:214)
    at com.bea.wli.sb.pipeline.MessageProcessor.processRequest(MessageProcessor.java:99)
    to com.bea.wli.sb.pipeline.RouterManager$ 1.run(RouterManager.java:593)
    to com.bea.wli.sb.pipeline.RouterManager$ 1.run(RouterManager.java:591)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
    at com.bea.wli.sb.security.WLSSecurityContextService.runAs(WLSSecurityContextService.java:55)
    at com.bea.wli.sb.pipeline.RouterManager.processMessage(RouterManager.java:590)
    at com.bea.wli.sb.test.service.ServiceMessageSender.send0(ServiceMessageSender.java:329)
    to com.bea.wli.sb.test.service.ServiceMessageSender.access$ 000 (ServiceMessageSender.java:76)
    to com.bea.wli.sb.test.service.ServiceMessageSender$ 1.run(ServiceMessageSender.java:134)
    to com.bea.wli.sb.test.service.ServiceMessageSender$ 1.run(ServiceMessageSender.java:132)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
    at com.bea.wli.sb.security.WLSSecurityContextService.runAs(WLSSecurityContextService.java:55)
    at com.bea.wli.sb.test.service.ServiceMessageSender.send(ServiceMessageSender.java:137)
    at com.bea.wli.sb.test.service.ServiceProcessor.invoke(ServiceProcessor.java:454)
    at com.bea.wli.sb.test.TestServiceImpl.invoke(TestServiceImpl.java:172)
    at com.bea.wli.sb.test.client.ejb.TestServiceEJBBean.invoke(TestServiceEJBBean.java:167)
    at com.bea.wli.sb.test.client.ejb.TestService_sqr59p_EOImpl.invoke(TestService_sqr59p_EOImpl.java:353)
    at com.bea.wli.sb.test.client.ejb.TestService_sqr59p_EOImpl_WLSkel.invoke (unknown Source)
    at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:589)
    at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:230)
    to weblogic.rmi.internal.BasicServerRef$ 1.run(BasicServerRef.java:477)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
    at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:473)
    at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    >
    < 22 November 2011 14:57:54 THIS > < error > < OSB security > < BEA-387022 > < an error occurred during the processing of incoming request of web service security [error code: SecurityHeaderUnmarshallingError, message-id: 4848636721647463340 - 22cabc16.133cb105c0f.-7e81, proxy: MyProject/ProxyServices/MyProxyService, operation: null]
    -Error message:

    java.lang.ClassNotFoundException: karol.soa.policy.MySuccesAssertionExecutor
    in java.net.URLClassLoader$ 1.run(URLClassLoader.java:202)
    at java.security.AccessController.doPrivileged (Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    to Sun.misc.Launcher$appclassloader$ AppClassLoader.loadClass (Launcher.java:301)
    Truncated. check the log file full stacktrace
    >

    Instead of putting your pot of strategy custom field/lib, can put you in the Weblogic CLASSPATH variable explicitly and test after the restart of the field?

  • 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

  • Migration of custom environments functions

    In our DEV environment (EPM 11.1.2.1 - planning & Essbase) we have about 15 visible CDFs in environmental assessment for an application.
    Of these 15 CDFs 1 has a class name of pwc_date and all the rest are com.hyperion.essbase.cdf.psb.HSPCDFUtils.

    I need to migrate to the UAT.

    How can I do this?

    For what it's worth in DEV - I see pwc_date.class in D:\Oracle\Middleware\EPMSystem11R1\products\Essbase\EssbaseServer\java\udf, but others remain hidden for me!

    Thanks in advance for any help.

    Concerning

    Paul

    The com.hyperion.essbase.cdf.psb.HSPCDFUtils functions are part of the planning and will be installed by default, it is possible to deploy to the planning application when updating "update of the custom functions" - creation and updating of application databases

    For other copy CDF the jar or class file in environments, update udf.policy and record functions.

    See you soon

    John

    http://John-Goodwin.blogspot.com/

  • Lookup - XML () Xpath function defective - internal error XPath

    Hello

    I used lookup - xml () function Xpath to look up values from an XML file.

    When he finds a key in input value it works fine.

    But when he does not find a value for the specified key, it gives the error: internal error xpath.

    Code:

    oraext:Lookup-XML('oramds:/apps/GETSPRIVIFC/lov/ResourceCode.XML','/resource/ResourceCodes/ResourceCode','Name','Value',$input)

    Error:

    < exception class = "com.collaxa.cube.xml.xpath.XPathException" >
    XPath expression cannot run. An error occurs during the processing of the XPath expression
    expression; the expression is
    oraext:Lookup-XML('oramds:/apps/GETSPRIVIFC/lov/ResourceCode.XML','/resource/ResourceCodes/ResourceCode','Name','Value',$input).
    The XPath expression cannot run; the reason was: internal xpath error.
    Check the root cause of detailed described in the text of the exception message and
    Make sure the XPath query is correct.
    < cell >
    < f > com.collaxa.cube.xml.xpath.BPELXPathUtil.evaluate #262 < /f >
    < f > com.collaxa.cube.engine.ext.bpel.v1.wmp.BPEL1AssignWMP.__executeStatements #137 < /f >
    < f > com.collaxa.cube.engine.ext.bpel.common.wmp.BaseBPELActivityWMP.perform #158 < /f >
    < f > com.collaxa.cube.engine.CubeEngine._performActivity #2463 < /f >
    < f > com.collaxa.cube.engine.CubeEngine.handleWorkItem #1115 < /f >
    < f > com.collaxa.cube.engine.dispatch.message.instance.PerformMessageHandler.handleLocal #73 < /f >
    < f > com.collaxa.cube.engine.dispatch.DispatchHelper.handleLocalMessage #220 < /f >
    < f > com.collaxa.cube.engine.dispatch.DispatchHelper.sendMemory #328 < /f >
    < f > com.collaxa.cube.engine.CubeEngine.createAndInvoke #679 < /f >
    < f > com.collaxa.cube.engine.ejb.impl.CubeEngineBean.createAndInvoke #103 < /f >
    < f > com.collaxa.cube.engine.ejb.impl.CubeEngineBean.syncCreateAndInvoke #145 < /f >
    < f > com.collaxa.cube.engine.ejb.impl.bpel.BPELEngineBean.syncCreateAndInvoke #111 < /f >
    < f > sun.reflect.GeneratedMethodAccessor4027.invoke < /f >
    < f > sun.reflect.DelegatingMethodAccessorImpl.invoke #25 < /f >
    < f > java.lang.reflect.Method.invoke #597 < /f >
    < f > com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed #149 < /f >
    < f >... < /f >
    < / stack >
    < / exception >
    < root class = "javax.xml.xpath.XPathExpressionException" >
    internal xpath error
    < cell >
    < f > oracle.xml.xpath.JXPathExpression.evaluate #242 < /f >
    < f > com.collaxa.cube.xml.xpath.BPELXPathUtil.evaluate #240 < /f >
    < f > com.collaxa.cube.engine.ext.bpel.common.BPELWMPHelper.evalFromValue #339 < /f >
    < f > com.collaxa.cube.engine.ext.bpel.v1.wmp.BPEL1AssignWMP.__executeStatements #137 < /f >
    < f > com.collaxa.cube.engine.ext.bpel.common.wmp.BaseBPELActivityWMP.perform #158 < /f >
    < f > com.collaxa.cube.engine.CubeEngine._performActivity #2463 < /f >
    < f > com.collaxa.cube.engine.CubeEngine.performActivity #2334 < /f >
    < f > com.collaxa.cube.engine.CubeEngine.handleWorkItem #1115 < /f >
    < f > com.collaxa.cube.engine.dispatch.message.instance.PerformMessageHandler.handleLocal #73 < /f >
    < f > com.collaxa.cube.engine.dispatch.DispatchHelper.handleLocalMessage #220 < /f >
    < f > com.collaxa.cube.engine.dispatch.DispatchHelper.sendMemory #328 < /f >
    < f > com.collaxa.cube.engine.CubeEngine.endRequest #4350 < /f >
    < f > com.collaxa.cube.engine.CubeEngine.endRequest #4281 < /f >
    < f > com.collaxa.cube.engine.CubeEngine.createAndInvoke #679 < /f >
    < f > com.collaxa.cube.engine.ejb.impl.CubeEngineBean.createAndInvoke #103 < /f >
    < f > com.collaxa.cube.engine.ejb.impl.CubeEngineBean.syncCreateAndInvoke #145 < /f >
    < f >... < /f >
    < / stack >
    < / root >

    This is the expected behavior. It be handled.

    Looks like you are using it for LOV, the best option is DVM.

    Based on the DS, there is an option for defaultValue, if the digital Voltmeter has no value, then the default value is sent back rather the exception.

    DVM:lookupValue(dvmLocation,sourceColumnName,sourceValue,targetColumnName,DefaultValue)

    http://docs.Oracle.com/CD/E15523_01/integration.1111/e10224/bp_appx_functs.htm

    Thank you
    Vijay

  • OSB: Custom properties

    Hallo

    How to define and change properties on OSB?

    Thank you
    Lam

    Create an XML file with the mapping as -



    Anuj
    1234


    Anuj1
    12345

    Load it as a resource to request XQuery on OSB and in mail flow, use assign action to load the content of this XQuery query into a variable. Now you can apply Xpath on this variable to get the desired key value.

    Kind regards
    Anuj

  • OSB custom error message is don't throw in BPEL

    Hello

    I created an error in OSB that is sent to BPEL.

    < env:Envelope = "http://schemas.xmlsoap.org/soap/envelope/" xmlns:env >
    < env:Header / >
    < env:Body >
    < env:Fault >
    ....
    < / env:Fault >
    < / env:Body >
    < / env:Envelope >


    If my tag ERROR in namespace "http://schemas.xmlsoap.org/soap/envelope/"

    message is understood as a fault in BPEL. But if I change namespace, BPEL includes in the response message.

    How can I use my error message personalized with the different namespace as http://schemas.xmlsoap.org/soap/envelope/?

    Kind regards

    SOAP fault has a structure defined and defined namespaces. It provides a space reserved for the custom however data. Just as you can not change the namespace of the envelope of the body, similarly you can not change the namespace of fault (if you want it to be recognized by client applications). All custom data that you want to send in the SOAP fault must be defined as a child of the 'detail' to SOAP fault element. These custom data can have any namespace you want. This custom XML will be the element that you set as an element of fault in your WSDL file

    
    
    
    
    env:Client
    some error string
    somedata
    
    {here you can put your custom XML content in any namespace which you have defined in the WSDL}
    
    
    
    
    
  • [Newbie Q] Custom component function appellant error #1061

    Hello, I am trying to call a public function defined in a custom main application component, get error 1061...

    Here is the code for

    / * generator.mxml * /.

    <? XML version = "1.0" encoding = "utf-8"? >
    < mx:Application
    applicationComplete = "_init (); »
    "" xmlns: my = ' * '.
    xmlns:MX = "http://www.adobe.com/2006/mxml".
    layout = "absolute".
    width = "875.
    height = "635" >
    < mx:Script source = "generator.as" / >
    ...........................
    ..........................
    < mx:VBox >
    < mx:Panel put width = "658" height = "185" layout = "vertical" title = "Banner" id = "pnlBanner" horizontalAlign = "center" verticalAlign = "middle" >
    < / mx:Panel >
    < my: elementList / >
    < / mx:VBox >
    < / mx:HBox >
    < / mx:Canvas >
    < / mx:Application >

    / * generator.as * /.

    ...........................
    ..........................
    private void imageHandler(event:Event):void {}
    the image = new Image();
    aImage.source = img._imgTmp.source;
    aImage.maintainAspectRatio = false;
    aImage.id = "0";
    aImage.x = 0;
    aImage.y = 0;
    aImage.width = img._imgTmp.width;
    aImage.height = img._imgTmp.height;
    pnlBanner.rawChildren.addChild (aImage);
    elementList.addElement ('image', the image);
    }
    ...........................
    ..........................

    /*elementList.mxml*/

    <? XML version = "1.0" encoding = "utf-8"? >
    < mx:TileList xmlns:mx = "http://www.adobe.com/2006/mxml".
    creationComplete = "init (); »
    Click = "clickElement (Event);" »
    dragComplete = "dragElement (event);" »
    allowMultipleSelection = "false".
    dragMoveEnabled = "true".
    dropEnabled = "true".
    dataProvider = "{cllElements}" >
    < mx:Script source = "_elementList.as" / >
    < / mx:TileList >

    /*elementList.as*/

    ActionScript file
    import flash.events.Event;
    Import mx.collections.ArrayCollection;
    private var arrElements:Array = new Array();
    [Mandatory]
    private var cllElements:ArrayCollection = new ArrayCollection (arrElements);
    ................................
    ................................
    public void addElement (type: String, obj:Object): void {}
    cllElements.addItem (obj);
    }
    ................................
    ................................

    I get a compile time error #1061 gravity and Description path location creation time Id resource
    1061: Chiamata a UN metodo called no addElement mediante a re con tipo statico class.    generateur/src/generator.as 65 1243862469015 1900 line

    Sorry for the Italian, BTW the error is in the red line on the generator.as file.

    Any ideas would really be apperciated, because it's for hours trying to guess the reason...

    In fact your class name and the id must be the same. Sorry for my previous suggestion...

    You should try to change it to:

    and

    elementListID.addElement ('image', the image);

    and if they are in the same folder so no need for the import statement.

    -Gerard

  • Custom Javascript functions?

    If I wanted to write a small library of javascript functions that I can reuse for each project, where I place my duties?

    I remember somewhere that I can edit a specific javascript file in Captivate files copy in the published version and have my functions always available. Only, I don't remember where this file is kept.

    HTML5

    You must place an include statement in the file index.html here:

    C:\Program Files\Adobe\Adobe Captivate 8 x64\HTML

    Put your JavaScript here file:

    C:\Program Files\Adobe\Adobe Captivate 8 x64\HTML\assets\js\

    SWF

    Put your scripts in this file:

    C:\Program Files\Adobe\Adobe Captivate 8 x64\Templates\Publish\standard.js

  • Custom Base64Decode function

    Hello

    I cannot convert a base64 image into a BLOB.

    I checked the length of the BLOB before its encoded and is 53924.

    When I run my function to decode the blob, the result is 53923. Because miss me a few data, the image does not.

    What is strange is the smaller the substr, the number of characters who are lost.

    Y at - it something wrong with this function that causes his failure:

    I added both encode and decode function.

    I'd appreciate any help

    Thank you

    Kevin



    ENCODE

    create or replace function base64encode (p_blob in blob)
    return the clob
    is
    t_rv clob.
    t_step pls_integer: = 24573; Make sure you define a multiple of 3 would not exceed the 24573
    t_step pls_integer: = 474;
    Start

    for i from 0... trunc ((dbms_lob.getlength (p_blob) - 1) / t_step)
    loop
    t_rv: = t_rv | utl_raw.cast_to_varchar2 (utl_encode.base64_encode (dbms_lob.substr (p_blob, t_step, I * t_step + 1)));
    end loop;

    return t_rv;
    end;


    DECODE

    create or replace function base64decode (p_clob in clob)
    Returns the BLOB
    is
    t_rv blob.
    v_raw_temp raw (31984);
    t_step pls_integer: = 24573; Make sure you define a multiple of 3 would not exceed the 24573
    t_step pls_integer: = 31984;
    number of ln_num;
    Start

    DBMS_LOB.CREATETEMPORARY (t_rv, true);

    for i from 0... trunc ((dbms_lob.getlength (p_clob)-1) / t_step)
    loop
    v_raw_temp: = utl_encode.base64_decode (utl_raw.cast_to_raw (substr (p_clob, i * t_step + 1, t_step)));
    dbms_output.put_line (utl_raw.length (v_raw_temp));
    DBMS_LOB. WriteAppend (t_rv, utl_raw.length (v_raw_temp), v_raw_temp);
    ln_num: = i;
    end loop;

    -dbms_output.put_line (ln_num);
    return t_rv;
    end;

    Thanks for the great puzzle, Kev.

    Looks like you can be overwriting your base64 data. Just as the use of multiples of 3 bytes to base64_encode (which converts 3 bytes of binary data in 4 bytes of printable characters), you must use multiples of 4 bytes to base64-encoded data to be able to convert 3 bytes binary data. You have probably considered this, using blocks of 31984 bytes (31984 is a multiple of 4).

    However, Oraclle adds the characters/newline carriage return after every 64 characters, encoded in base64 encoding data. This is perfectly valid in base64 encoding and these characters will be ignored during decoding, but they ruin your trick of selection of a multiple of 4 bytes. If there is an odd number of CRLF characters in the piece you decode, the last two bytes of this segment will be not decodable and Oracle reject.

    An example:

    -- Encode a bit of text...
    select utl_raw.cast_to_varchar2 ( utl_encode.base64_encode( utl_raw.cast_to_raw(
    'Just a silly example.. Now you see me, now you dont. Got it?'
    ))) from dual
    

    Returns the following:

    SnVzdCBhIHNpbGx5IGV4YW1wbGUuLiBOb3cgeW91IHNlZSBtZSwgbm93IHlvdSBk
    b250LiBHb3QgaXQ/
    

    Mark the fact that the last part is on a separate line, because the first line ends with a line feed/carriage return. The string that is returned is 82 bytes long, but it contains only 80 characters.

    The first 68 characters of decoding is supposed to return:

    Just a silly example.. Now you see me, now you dont
    

    However, if I would try to decode the first 68 bytes of the string (68 is a multiple of 4), I have actually only converting the first 66 characters:

    -- Decoding 68 bytes
    select utl_raw.cast_to_varchar2 ( utl_encode.base64_decode( utl_raw.cast_to_raw(
    'SnVzdCBhIHNpbGx5IGV4YW1wbGUuLiBOb3cgeW91IHNlZSBtZSwgbm93IHlvdSBk
    b2'
    ))) from dual
    

    that will kill the sense of what I wanted to say:

    Just a silly example.. Now you see me, now you do
    

    It becomes even worse. Because I cut the string encoded in base64, in the middle of a piece of 4 bytes, the next part will start in the middle of this segment, which will leave us with total gibberish:

    çBâv÷B¿C
    

    I think that you can solve this problem by using a multiple of 66 bytes (64 + CRLF) for t_step in the function base64decode, instead of a multiple of 4 bytes.

    Kind regards
    Peter.

  • Validation of DateTime field (without custom management functions)

    Hello

    I need to know how I can validate if a date is correct or not and fail to do something.

    I have a DateTime Field field, with a pattern ' DD / MM / YYYY ', the value appears correctly using the selected template, the problem is validation.


    Now I just that if the date is wrong, teaches an alert to the user, and the focus returns to the DateTime control until you enter a valid value.

    I need something like:

    -Form1.SUBVENCION_O_AYUDA.dateTimeField1: Validate - (JavaScript, client).

    If (this.rawValue! = null & &! test (this.rawValue, ' DD/MM/YYYY')) {}

    xfa.host.setFocus ("this");
    }

    How will I know if the validation is successful or not (without having to implement long-standing management functions)?

    By default, if I put 'validation model messaga' field, a warning message is displayed, but here the emphasis is more and the user can continue to fill the rest of the form, whereas the datetime field is filled with an incorrect value.

    I want to warn the user to continue to fill out the form, if the value in the dateTime field is not valid.

    Any idea?

    Thank you!

    Hello

    If your date may not be formatted correctly against your view model then the formattedValue is equal to the rawValue.

    Thus, in the event output put;

    If (this.rawValue is this.formattedValue)

    {

    App.Alert ("enter a date in the dd/mm/yyyy" format "");

    xfa.host.setFocus (this.somExpression);

    }

    Bruce
  • Custom defined function and "System.out.println".

    Hello

    After some cdf sample looking on the web and bring them to work on my development machine, I was wondering if the many order System.out.println (...) in the java classes indeed out there messages to. I wasn't able to find them in all the log files, I was looking at, IE. or ESSBASE. JOURNAL, or the exemple.log where I was testing the functions.

    Someone at - it an idea where messages from System.out.println (...) Finally end and that there is a log file containing these messages.

    Volker

    Hello

    Try to run essbase in a command window (run it from the start menu or type essbase on windows OS) and not as a service, then you should see the output of the command in the window.

    See you soon

    John
    http://John-Goodwin.blogspot.com/

Maybe you are looking for

  • iOS, 10-6 digit code required.

    Hello I had accidentally turned off access code in iOS10 and now when I turn it on again, it must be 6 digits and there is no option to allow the option of 4 digits as iOS9. Anyone know how I can go back to the option of the 4 digit code? Is the only

  • Save downloads and import bookmarks do not work

    Hi, I have a few problems with firefox lately. First of all, I couldn't save my download. The map is linked to the default Downloads", but I can not change the map option is grayed out. In addition, change the 'ask where to save' option is not helped

  • Qosmio F30-111: no sound after the update of the 3.40 BIOS & Vista installation

    Hello! I have a Qosmio F30-111, originally with Windows MCE and all devices works fine, but I made an update of firmware BIOS to 3.40 (before was a version 1.x). Later, I installed Windows Vista Ultimate and all devices has been recognized very well

  • Cannot install the updates, 800700c error code 1

    Cannot install updates get message failed and 800700c error code 1. required healp please.

  • "Download and install the installer itunes 64-bit instead!"

    Hello. try to download itunes... pop - up box "this itunes Installer is designed for 32-bit Windows version, please download and install the itunes 64-bit Installer instead" Please help me I don't know how to do the same thing Thank you