Error: SCAC-50012 when using Java Embedding activity

Hi,
I am just trying to create a file Object as follows:
<bpelx:exec import="java.io.*"/>
<bpelx:exec name="Java_Embedding1" version="1.5" language="java">
<![CDATA[try{  
        addAuditTrailEntry("Hello");   
        File f = new File("file.txt");  
catch(Exception){
e.printTrackTrace();
}]]>
</bpelx:exec>
and getting the Error, am I doing something wrong:
Mar 18, 2013 3:45:18 PM oracle.security.jps.util.JpsUtil disableAudit
INFO: JpsUtil: isAuditDisabled set to true
Mar 18, 2013 3:45:18 PM oracle.security.jps.util.JpsUtil disableAudit
INFO: JpsUtil: isAuditDisabled set to false
Mar 18, 2013 3:45:20 PM oracle.mds
NOTIFICATION: PManager instance is created without multitenancy support as JVM flag "oracle.multitenant.enabled" is not set to enable multitenancy support.
Mar 18, 2013 3:45:23 PM oracle.fabric.common.wsdl.SchemaManager isIncrementalBuildSupported
INFO: XMLSchema incremental build enabled.
Mar 18, 2013 3:45:24 PM com.collaxa.cube.CubeLogger info
INFO: validating "SyncEbizServiceRequestRequestorABCSImpl.bpel" ...
Mar 18, 2013 3:45:24 PM oracle.integration.platform.blocks.FabricConfigManager <clinit>
WARNING: JRF is unable to determine the current application server platform.
Mar 18, 2013 3:45:24 PM oracle.integration.platform.blocks.WLSPlatformConfigurationProvider <clinit>
WARNING: JRF is unable to determine the current application server platform.
node class name com.collaxa.cube.engine.ext.bpel.v1.blocks.BPELSequenceBlock
node class name com.collaxa.cube.engine.ext.bpel.v1.blocks.BPELScopeBlock
node class name com.collaxa.cube.engine.ext.bpel.v1.blocks.BPELCatchAllBlock
node class name com.collaxa.cube.engine.ext.bpel.v1.blocks.BPELCompensationHandlerBlock
node class name com.collaxa.cube.engine.ext.bpel.v1.blocks.BPELSwitchBlock
Mar 18, 2013 3:45:24 PM com.collaxa.cube.CubeLogger info
INFO: Composed "SyncEbizServiceRequestRequestorABCSImpl" in 75.8 milliseconds [nodes 25=0+25, 330.0 nodes/sec]
Mar 18, 2013 3:45:25 PM CubeProcessGenerator compile
WARNING: classpath is: C:\Oracle1\Middleware1\jdeveloper\jdev\extensions\oracle.sca.modeler.jar;C:\Oracle1\Middleware1\jdeveloper\soa\modules\oracle.soa.fabric_11.1.1\fabric-runtime.jar;C:\Oracle1\Middleware1\jdeveloper\soa\modules\oracle.soa.mgmt_11.1.1\soa-infra-mgmt.jar;C:\Oracle1\Middleware1\oracle_common\modules\oracle.fabriccommon_11.1.1\fabric-common.jar;C:\Oracle1\Middleware1\jdeveloper\soa\modules\oracle.soa.bpel_11.1.1\orabpel.jar;C:\Oracle1\Middleware1\jdeveloper\soa\modules\oracle.soa.mediator_11.1.1\mediator_client.jar;C:\Oracle1\Middleware1\oracle_common\modules\oracle.mds_11.1.1\mdsrt.jar;C:\Oracle1\Middleware1\oracle_common\modules\oracle.adf.model_11.1.1\adfbcsvc.jar;C:\Oracle1\Middleware1\oracle_common\modules\oracle.adf.model_11.1.1\adfbcsvc-share.jar;C:\Oracle1\Middleware1\oracle_common\modules\commonj.sdo_2.1.0.jar;C:\Oracle1\Middleware1\modules\org.eclipse.persistence_1.1.0.0_2-1.jar;C:\Oracle1\Middleware1\oracle_common\modules\oracle.webservices_11.1.1\wsclient.jar;C:\Oracle1\Middleware1\oracle_common\modules\oracle.web-common_11.1.1.jar;C:\Oracle1\Middleware1\jdeveloper\lib\aia.jar;;C:\Saikrishna\Development\AIA_Worksapce\HolxSyncEbizServiceRequestRequestorABCSImpl\SCA-INF\classes;C:\Saikrishna\Development\AIA_Worksapce\HolxSyncEbizServiceRequestRequestorABCSImpl\SCA-INF\classes;C:\Saikrishna\Development\AIA_Worksapce\HolxSyncEbizServiceRequestRequestorABCSImpl\SCA-INF\gen-classes;C:\Oracle1\Middleware1\oracle_common\modules\commonj.sdo_2.1.0.jar;C:\Oracle1\Middleware1\oracle_common\modules\oracle.fabriccommon_11.1.1\fabric-common.jar;C:\Oracle1\Middleware1\oracle_common\modules\oracle.xdk_11.1.0\xmlparserv2.jar;C:\Oracle1\Middleware1\jdeveloper\soa\modules\oracle.soa.bpel_11.1.1\bpel1-1-xbeans.jar;C:\Oracle1\Middleware1\jdeveloper\soa\modules\oracle.soa.bpel_11.1.1\orabpel-common.jar;C:\Oracle1\Middleware1\jdeveloper\soa\modules\oracle.soa.bpel_11.1.1\orabpel.jar;C:\Oracle1\Middleware1\jdeveloper\soa\modules\oracle.soa.bpel_11.1.1\bpel_coherence_config.jar;C:\Oracle1\Middleware1\jdeveloper\soa\modules\oracle.soa.bpel_11.1.1\orabpel-exts.jar;C:\Oracle1\Middleware1\jdeveloper\soa\modules\oracle.soa.bpel_11.1.1\thirdparty.jar;C:\Oracle1\Middleware1\jdeveloper\soa\modules\oracle.soa.bpel_11.1.1\bpm-analytics.jar;C:\Oracle1\Middleware1\jdeveloper\soa\modules\oracle.soa.bpel_11.1.1\orabpel-thirdparty.jar;C:\Oracle1\Middleware1\jdeveloper\soa\modules\oracle.soa.bpel_11.1.1\wsif-binding.jar;C:\Oracle1\Middleware1\jdeveloper\soa\modules\oracle.soa.bpel_11.1.1\orabpel-validator.jar;C:\Oracle1\Middleware1\jdeveloper\soa\modules\oracle.soa.bpel_11.1.1\monitor-rt-xbean.jar;C:\Oracle1\Middleware1\jdeveloper\soa\modules\oracle.soa.bpel_11.1.1\oracle.soa.bpmn.jar;C:\Oracle1\Middleware1\jdeveloper\soa\modules\user-patch.jar;C:\Oracle1\Middleware1\jdeveloper\soa\modules\oracle.soa.thirdparty.jar;C:\Oracle1\Middleware1\jdeveloper\uddi\lib\oracle.soa.uddi.jar;C:\Oracle1\Middleware1\jdeveloper\soa\modules\oracle.soa.fabric_11.1.1\bpm-infra.jar;C:\Oracle1\Middleware1\jdeveloper\soa\modules\oracle.soa.fabric_11.1.1\testfwk-xbeans.jar;C:\Oracle1\Middleware1\jdeveloper\soa\modules\oracle.soa.fabric_11.1.1\fabric-ext.jar;C:\Oracle1\Middleware1\jdeveloper\soa\modules\oracle.soa.fabric_11.1.1\soa-infra-scheduler.jar;C:\Oracle1\Middleware1\jdeveloper\soa\modules\oracle.soa.fabric_11.1.1\xmlunit-1.1.jar;C:\Oracle1\Middleware1\jdeveloper\soa\modules\oracle.soa.fabric_11.1.1\fabric-runtime.jar;C:\Oracle1\Middleware1\jdeveloper\soa\modules\oracle.soa.fabric_11.1.1\soa-infra-tools.jar;C:\Oracle1\Middleware1\jdeveloper\soa\modules\oracle.soa.fabric_11.1.1\soa-xpath-exts.jar;C:\Oracle1\Middleware1\jdeveloper\soa\modules\oracle.soa.fabric_11.1.1\oracle-soa-client-api.jar;C:\Oracle1\Middleware1\jdeveloper\soa\modules\oracle.soa.wls.jar;C:\Oracle1\Middleware1\jdeveloper\soa\modules\oracle.soa.fabric_11.1.1\fabric-client.jar;C:\Oracle1\Middleware1\jdeveloper\soa\modules\oracle.soa.fabric_11.1.1\fabric-runtime-ext-was.jar;C:\Oracle1\Middleware1\jdeveloper\soa\modules\oracle.soa.fabric_11.1.1\fabric-runtime-ext-wls.jar;C:\Oracle1\Middleware1\jdeveloper\soa\modules\oracle.soa.fabric_11.1.1\oracle.soa.fabric.jar;C:\Oracle1\Middleware1\jdeveloper\soa\modules\oracle.soa.workflow_11.1.1\bpm-services.jar;C:\Oracle1\Middleware1\jdeveloper\soa\modules\oracle.soa.ext_11.1.1\classes
SCAC-50012
ORABPEL-01005
Failed to compile bpel generated classes.
failure to compile the generated BPEL classes for BPEL process "SyncEbizServiceRequestRequestorABCSImpl" of composite "default/HolxSyncEbizServiceRequestRequestorABCSImpl!1.0"
The class path setting is incorrect.
Ensure that the class path is set correctly. If this happens on the server side, verify that the custom classes or jars which this BPEL process is depending on are deployed correctly. Also verify that the run time is using the same release/version.
Thanks
S

Hi,
Your problem is in the catch block:
catch(Exception){
e.printTrackTrace(); Should be:
catch(Exception e){
e.print*Stack*Trace();
Arik

Similar Messages

  • Getting  Error: SCAC-50012 while using Java Embeding Activity

    Hi,
    I am using Jdeveloper 11.1.1.4.0 . I am using a Java Embedding Activity in my BPEL and when i compile the project, i got one error------Error: SCAC-50012
    The code i am using in Java Embedding activity is
    java.lang.String TraceLogMessage = null;
         java.lang.Boolean tracelogenabled;
    java.lang.String title = (java.lang.String)getVariableData("Title");
    java.lang.String instanceID = (java.lang.String)getVariableData("InstanceID");
    java.lang.String serviceName = (java.lang.String)getVariableData("ServiceName");
    tracelogenabled = oracle.apps.aia.core.eh.logging.AIALogger.isTraceLoggingEnabled("INFO","http://xmlns.oracle.com/ExecuteSalesOrderFulfillmentDeviceUpdateEBF");
    setVariableData("TraceLogEnabled", tracelogenabled);
    if (tracelogenabled.booleanValue())
    TraceLogMessage = "Starting " + serviceName + " Instance: " + instanceID + title; ;
    oracle.apps.aia.core.eh.logging.AIALogger.logTraceMessage("INFO", null ,TraceLogMessage);
    i have imported the following in bpel but there is no luck........
    <bpelx:exec import="java.util.logging.Logger"/>
    <bpelx:exec import="java.util.logging.Level"/>
    <bpelx:exec import="oracle.fabric.logging.LogFormatter"/>
    <bpelx:exec import="org.w3c.dom.*"/>
    <bpelx:exec import="oracle.xml.parser.v2.XMLElement"/>
    <bpelx:exec import="java.util.*"/>
    <bpelx:exec import="java.lang.*"/>
    <bpelx:exec import="java.math.*"/>
    <bpelx:exec import="java.io.*"/>
    <bpelx:exec import="oracle.soa.common.util.Base64Decoder"/>
    Please help me with this......
    Thanks&Regards,
    suman

    Hi Lara,
    Thanks for the responce.......
    I checked the scac log file it contains the following code.
    ---------------------------------------------- scac logfile ----------------------------------------------------
    Mar 15, 2012 5:32:18 PM com.collaxa.cube.CubeLogger info
    INFO: validating "BPELProcess1.bpel" ...
    oracle.jrf.UnknownPlatformException: JRF is unable to determine the current application server platform.
         at oracle.jrf.ServerPlatformSupportFactory.getInstance(ServerPlatformSupportFactory.java:79)
         at oracle.integration.platform.blocks.WLSPlatformConfigurationProvider.<clinit>(WLSPlatformConfigurationProvider.java:44)
         at oracle.integration.platform.blocks.FabricConfigManager.<clinit>(FabricConfigManager.java:154)
         at oracle.integration.platform.blocks.xpath.FabricXPathFunctionResolver.loadXpathFunctions(FabricXPathFunctionResolver.java:282)
         at oracle.integration.platform.blocks.xpath.FabricXPathFunctionResolver.loadXPathConfigFile(FabricXPathFunctionResolver.java:156)
         at oracle.integration.platform.blocks.xpath.FabricXPathFunctionResolver.init(FabricXPathFunctionResolver.java:49)
         at com.collaxa.cube.xml.xpath.BPELXPathFunctionNameResolver.loadFabricXpathFunctions(BPELXPathFunctionNameResolver.java:57)
         at com.collaxa.cube.xml.xpath.BPELXPathFunctionNameResolver.<init>(BPELXPathFunctionNameResolver.java:48)
         at com.collaxa.cube.xml.xpath.BPELXPathFunctionNameResolver.<clinit>(BPELXPathFunctionNameResolver.java:44)
         at com.collaxa.cube.lang.compiler.bpel.XPathExprValidatorVisitor.<init>(XPathExprValidatorVisitor.java:122)
         at com.collaxa.cube.lang.compiler.bpel.AssignValidator.<init>(AssignValidator.java:89)
         at com.collaxa.cube.lang.compiler.bpel.BpelParser.<init>(BpelParser.java:452)
         at com.collaxa.cube.lang.compiler.bpel.BPELValidator.validate(BPELValidator.java:60)
         at com.collaxa.cube.lang.compiler.BPEL1Processor.validate(BPEL1Processor.java:329)
         at com.collaxa.cube.lang.compiler.BPEL1Processor.process(BPEL1Processor.java:153)
         at com.collaxa.cube.lang.compiler.CubeParserHelper.compile(CubeParserHelper.java:47)
         at oracle.fabric.bpel.bpelc.BPELComponentValidator.validate(BPELComponentValidator.java:40)
         at oracle.soa.scac.ValidateComposite.validateComponentTypeServicesReferences(ValidateComposite.java:1117)
         at oracle.soa.scac.ValidateComposite.doValidation(ValidateComposite.java:500)
         at oracle.soa.scac.ValidateComposite.run(ValidateComposite.java:150)
         at oracle.soa.scac.ValidateComposite.main(ValidateComposite.java:135)
    Mar 15, 2012 5:32:23 PM CubeProcessGenerator compile
    WARNING: classpath is: D:\Oracle\Middleware\jdeveloper\jdev\extensions\oracle.sca.modeler.jar;D:\Oracle\Middleware\jdeveloper\soa\modules\oracle.soa.fabric_11.1.1\fabric-runtime.jar;D:\Oracle\Middleware\jdeveloper\soa\modules\oracle.soa.mgmt_11.1.1\soa-infra-mgmt.jar;D:\Oracle\Middleware\oracle_common\modules\oracle.fabriccommon_11.1.1\fabric-common.jar;D:\Oracle\Middleware\jdeveloper\soa\modules\oracle.soa.bpel_11.1.1\orabpel.jar;D:\Oracle\Middleware\jdeveloper\soa\modules\oracle.soa.mediator_11.1.1\mediator_client.jar;D:\Oracle\Middleware\oracle_common\modules\oracle.mds_11.1.1\mdsrt.jar;;C:\JDeveloper\mywork\sampleApplication\JavaEmbed\SCA-INF\classes;C:\JDeveloper\mywork\sampleApplication\JavaEmbed\SCA-INF\classes;C:\JDeveloper\mywork\sampleApplication\JavaEmbed\SCA-INF\gen-classes;D:\Oracle\Middleware\oracle_common\modules\commonj.sdo_2.1.0.jar;D:\Oracle\Middleware\oracle_common\modules\oracle.fabriccommon_11.1.1\fabric-common.jar;D:\Oracle\Middleware\oracle_common\modules\oracle.xdk_11.1.0\xmlparserv2.jar;D:\Oracle\Middleware\jdeveloper\soa\modules\oracle.soa.bpel_11.1.1\bpel1-1-xbeans.jar;D:\Oracle\Middleware\jdeveloper\soa\modules\oracle.soa.bpel_11.1.1\orabpel-common.jar;D:\Oracle\Middleware\jdeveloper\soa\modules\oracle.soa.bpel_11.1.1\orabpel.jar;D:\Oracle\Middleware\jdeveloper\soa\modules\oracle.soa.bpel_11.1.1\bpel_coherence_config.jar;D:\Oracle\Middleware\jdeveloper\soa\modules\oracle.soa.bpel_11.1.1\orabpel-exts.jar;D:\Oracle\Middleware\jdeveloper\soa\modules\oracle.soa.bpel_11.1.1\thirdparty.jar;D:\Oracle\Middleware\jdeveloper\soa\modules\oracle.soa.bpel_11.1.1\bpm-analytics.jar;D:\Oracle\Middleware\jdeveloper\soa\modules\oracle.soa.bpel_11.1.1\orabpel-thirdparty.jar;D:\Oracle\Middleware\jdeveloper\soa\modules\oracle.soa.bpel_11.1.1\wsif-binding.jar;D:\Oracle\Middleware\jdeveloper\soa\modules\oracle.soa.bpel_11.1.1\orabpel-validator.jar;D:\Oracle\Middleware\jdeveloper\soa\modules\oracle.soa.bpel_11.1.1\monitor-rt-xbean.jar;D:\Oracle\Middleware\jdeveloper\soa\modules\oracle.soa.bpel_11.1.1\oracle.soa.bpmn.jar;D:\Oracle\Middleware\jdeveloper\soa\modules\user-patch.jar;D:\Oracle\Middleware\jdeveloper\soa\modules\oracle.soa.thirdparty.jar;D:\Oracle\Middleware\jdeveloper\uddi\lib\oracle.soa.uddi.jar;D:\Oracle\Middleware\jdeveloper\soa\modules\oracle.soa.fabric_11.1.1\bpm-infra.jar;D:\Oracle\Middleware\jdeveloper\soa\modules\oracle.soa.fabric_11.1.1\testfwk-xbeans.jar;D:\Oracle\Middleware\jdeveloper\soa\modules\oracle.soa.fabric_11.1.1\fabric-ext.jar;D:\Oracle\Middleware\jdeveloper\soa\modules\oracle.soa.fabric_11.1.1\soa-infra-scheduler.jar;D:\Oracle\Middleware\jdeveloper\soa\modules\oracle.soa.fabric_11.1.1\xmlunit-1.1.jar;D:\Oracle\Middleware\jdeveloper\soa\modules\oracle.soa.fabric_11.1.1\fabric-runtime.jar;D:\Oracle\Middleware\jdeveloper\soa\modules\oracle.soa.fabric_11.1.1\soa-infra-tools.jar;D:\Oracle\Middleware\jdeveloper\soa\modules\oracle.soa.fabric_11.1.1\soa-xpath-exts.jar;D:\Oracle\Middleware\jdeveloper\soa\modules\oracle.soa.fabric_11.1.1\oracle-soa-client-api.jar;D:\Oracle\Middleware\jdeveloper\soa\modules\oracle.soa.wls.jar;D:\Oracle\Middleware\jdeveloper\soa\modules\oracle.soa.fabric_11.1.1\fabric-client.jar;D:\Oracle\Middleware\jdeveloper\soa\modules\oracle.soa.fabric_11.1.1\fabric-runtime-ext-was.jar;D:\Oracle\Middleware\jdeveloper\soa\modules\oracle.soa.fabric_11.1.1\fabric-runtime-ext-wls.jar;D:\Oracle\Middleware\jdeveloper\soa\modules\oracle.soa.fabric_11.1.1\oracle.soa.fabric.jar;D:\Oracle\Middleware\jdeveloper\soa\modules\oracle.soa.ext_11.1.1\classes;D:\Oracle\Middleware\oracle_common\soa\modules\oracle.soa.mgmt_11.1.1\soa-infra-mgmt.jar
    Please help me how can i solve this issue.
    Thanks&Regards,
    Suman

  • How to use Java Embedding activity, getting error

    Below is a simple code where in I am just assigning input variable to output variable(of type long), using java embedding activity, and I am getting error in Java Embedding Activity step.
    <bpelx:exec name="Java_Embedding_1" language="java" version="1.4">
    <![CDATA[ 
    Element inputValue1 = (Element)getVariableData("inputVariable", "payload","/client:Pooja_BP1ProcessRequest/client:input1");   
    String arg1=inputValue1.getNodeValue(); 
    setVariableData("outputVariable", "payload","/client:Pooja_BP1ProcessResponse/client:result", new Long(arg1));]]>
    </bpelx:exec>
    Runtime Error:
    <runtimeFault xmlns="http://schemas.oracle.com/bpel/extension"><part name="code"><code>java.lang.*NumberFormatException*</code>
    </part><part name="summary"><summary>null</summary>
    </part><part name="detail"><detail>[Ljava.lang.StackTraceElement;@1c50684</detail>
    </part></runtimeFault>
    Could anyone please point out the mistake?

    No, that's not working. Throwing below error.
    faultName: {{http://schemas.xmlsoap.org/ws/2003/03/business-process/}selectionFailure}
    messageType: {}
    parts: {{summary=<summary>XPath query string returns zero node.
    According to BPEL4WS spec 1.1 section 14.3, The assign activity &amp;lt;to&amp;gt; part query should not return zero node.
    Please check the BPEL source at line number "" and verify the &amp;lt;to&amp;gt; part xpath query.
    My output varaible is of type long and there i m creating a Long object using it's constructor which takes in a string, Long(String s)
    Actually, I m not just priniting the input, but i need to perform some calculations also on the inputs, like
    Element inputValue1 = (Element)getVariableData("inputVariable", "payload","/client:Pooja_BP1ProcessRequest/client:input1");  
    Element inputValue2 = (Element)getVariableData("inputVariable", "payload","/client:Pooja_BP1ProcessRequest/client:input2");  
    long arg1=Long.parseLong(inputValue1.getNodeValue());  
    long arg2=Long.parseLong(inputValue2.getNodeValue());  
    long arg3 = arg1+arg2; 
    setVariableData("outputVariable", "payload","/client:Pooja_BP1ProcessResponse/client:result", new Long(arg3));                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How to include Logs/log4j in SOA with out using java embedding activity

    Hi,
    I have a requirement where I need to log the values of a particular variable and need to store it in a new log file. Is there any way to log the details with out using java embedding activity.
    Thanks,

    You can try this.
    http://veejai24.blogspot.co.uk/2008/04/simple-way-to-implement-log4j-in-your.html
    Thanks,
    Vijay

  • Getting error while calling external Jars in BPEL by using Java embedding activity in soa 12c

    Hi,
    I am trying to use an external Jars for the business logic implementation. Here I need to pass XML as input and
    and I expect the "Password " field has to be return.
    Following are the steps I have followed:
    1) Created a java project with sample class and added the external jars into the project "Libraries &Classpath".
    2) Created a jar file out of it.
    3) Created a BPEL project with Java Embedding.
    4)Wrote the java code in java embedding activity.
    4) Added the above created jar file to the BPEL project's lib/jar  and added in SCA-INF/lib project folder as well.
    5) Imported the package with the class as in the jar (e.g <bpelx:exec
    import="pkg.testInterface"/>)
    6) Deploy the BPEL project.
    while deploying the SOA build is sucessful but my depoyment is incomplete.
    error:
    advices will be great....
    Regards,
    Dilip

    Hi,
    Can you confirm if the BPEL Version is 1.1 or 2.0.
    If you are using BPEL 2.0 you need to import the required jar/class file as:
    <import importtype="http://schemas.oracle.com/bpel/extension/java" location="pkg.testInterface"/>
    For BPEL 1.1 the syntax to import other jar/class file is:
    <bpelx:exec import="pkg.testInterface"/>
    If you import the classes in the correct format you will not face any deployment error.

  • Set credential using java embedding activity in SOA11g

    Hi,
    In SOA 10g in java embedding activity we used to set the creadentials like below
    *try {*
    getLocator().lookupProcess("bpelprocess_name").getDescriptor().getPartnerLinkBindings().getPartnerLinkBinding("partnerlink_name").setPropertyValue("basicHeaders",inputvar1);
    *}catch(Throwable ex) {*
    when we try to use the above expression in SOA11g, it doesn't work even after importing mandatory libraries. Pls suggest how to set the security credentials ln SOA11g using Java Embedding.
    Thanks,
    AB

    I can call the service from SOAP UI by providing username and password.Where do you provide username and password in SOAPUI?
    Service endpoint is like : https://myhost.com/ccx/service/hr...It is a SSL call so you need to configure the trust and identity keystore at Weblogic (SOA) server as well. make sure that you have imported the target server's certificate (along with it's CA if any) in your trust store of weblogic. You may refer-
    http://download.oracle.com/docs/cd/E17904_01/web.1111/e13707/identity_trust.htm#i1202182
    If it is two way SSL then the target server will also need your server's certificate in it's trust keystore.
    Regards,
    Anuj

  • Error FRM-92050 when using Java Plug-in in Forms SSO

    Hi All,
    I have the following error with trying to use Java 1.6.0_22 instead of JInitiator:
    FRM92050 failed to connect to the server /forms/lservlet:-1
    Java Exception:
    Java.io.IOException: User does not have proper credentials configured in OID
    In the log "OC4J~OC4J_BI_Forms~default_island~1" , it said:
    oracle.ldap.util.GeneralErrorException: General Error when performing search: Unable to get Default RAD
    Error: Unable to retrive the DB Credentials from OID.
    I'm using 10gAS (10.1.2.3). The Forms SSO with JInitiator 1.3.1.26 works without any error.
    Any idea?

    Sorry this is replicated

  • Java Embedding Activity in 11.1.1.2

    hi all,
    For using a java embedding avtivity in my BPEL Composite project in 11g (11.1.1.2) wat are the JAR files i need to include in my project (in 10g fo using java embedding activity we use jar files like orabpel.jar....).??
    wen i deploy a process with java embedding im getting this issue
    Error(24,40): Failed to compile bpel generated classes.
    failure to compile the generated BPEL classes for BPEL process "BPELProcessageCalc" of composite "default/Project2!1.0"
    The class path setting is incorrect.
    Ensure that the class path is set correctly. If this happens on the server side, verify that the custom classes or jars which this BPEL process is depending on are deployed correctly. Also verify that the run time is using the same release/version.
    any help pls
    Thanks,
    karthik
    Edited by: karthik !! on Mar 13, 2010 1:03 PM

    Hi,
    I have placed the related jars in SCA_INF/lib and recompiled from jdev and deployed it to a SAR file.
    But when i am trying to deploy the SAR from em console to SOA server still the same error is poping up.
    Deploying on "/Farm_SOA_domain/SOA_domain/soa_server1" ...
    Deploying on "/Farm_SOA_domain/SOA_domain/soa_server1" failed!
    Error during deployment: Error occurred during deployment of component: CallOIM to service engine: implementation.bpel for composite: SOAComposite1: ORABPEL-01005
    Failed to compile bpel generated classes.
    failure to compile the generated BPEL classes for BPEL process "CallOIM" of composite "default/SOAComposite1!2.1*da3e25db-154e-46b0-869e-9f33a408f386"
    The class path setting is incorrect.
    Ensure that the class path is set correctly. If this happens on the server side verify that the custom classes or jars which this BPEL process is depending on are deployed correctly. Also verify that the run time is using the same release/version.
    Any pointers will be more helpfull.
    Thanks,
    Sowmya

  • Java Embedding Activity Problem

    Hi,
    Can any one please suggest me i am getting an error message while using java embedding activity.I am getting the error message in server logs.
    Caused by: java.lang.NullPointerException
         at oracle.xml.binxml.BinXMLEncoderImpl.writeElementAttr(BinXMLEncoderImpl.java:2091)
         at oracle.xml.binxml.BinXMLEncoderImpl.startElement(BinXMLEncoderImpl.java:1007)
         at oracle.xml.binxml.BinXMLInfosetWriter.save(BinXMLInfosetWriter.java:206)
         at oracle.xml.parser.v2.XMLElement.writeNodeInfo(XMLElement.java:2959)
         at oracle.xml.parser.v2.XMLNode.writeChildNodes(XMLNode.java:3056)
         at oracle.xml.parser.v2.XMLElement.writeNodeInfo(XMLElement.java:2962)
         at oracle.xml.parser.v2.XMLNode.writeChildNodes(XMLNode.java:3056)
    oracle.fabric.common.FabricInvocationException: java.lang.NullPointerException
         at oracle.integration.platform.instance.InstanceManagerImpl.persistReferenceInstanceBean(InstanceManagerImpl.java:1153)
         at oracle.integration.platform.blocks.adapter.AbstractAdapterBindingComponent.createAndPersistBindingInstance(AbstractAdapterBindingComponent.java:504)
         at oracle.integration.platform.blocks.adapter.AdapterReference.createAndPersistBindingInstance(AdapterReference.java:356)
         at oracle.integration.platform.blocks.adapter.AdapterReference.post(AdapterReference.java:273)
    Thanks,
    Srinivas.

    Use System.out.println() in between your java statements and check the value in the logs. Alternatively, you can use addAuditTrailEntry(), that works similarly as System.out.println() but this prints on Activity itself on BPELConsole.

  • Invocation error in Java Embedding activity of BPEL process in 10g

    Hi,
    I am facing an issue as below in Java embedding activity of BPEL process in 10g...
    Could not invoke: "GTM servlet URL" with verb: POST and context: null
    and the code in java embedding activity is as below...
    // create a new rest invoker stub
    RestInvocation invocation = new RestInvocation();
    org.w3c.dom.Element callOtm_process_InputVariable = (org.w3c.dom.Element)getVariableData("Variable_GTMTransmission");
    // get the result el - so we can derive the namespace needed
    org.w3c.dom.Element callOtm_process_OutputVariable = (org.w3c.dom.Element)getVariableData("Variable_GTMTransmissionAck");
    String GTMURL = "GTM servlet URL";
    try
    callOtm_process_OutputVariable = invocation.invoke
    (callOtm_process_InputVariable, "GET", GTMURL, null,
    callOtm_process_OutputVariable.getNamespaceURI());
    setVariableData("Variable_GTMTransmissionAck", callOtm_process_OutputVariable);
    } finally
    addAuditTrailEntry(invocation.getAuditAsString());
    If anybody is aware of this error, please help me to resolve this issue.
    Thanks in advance.

    Try copy the code from java embedding and paste it to eclipse and run it from there. you will find the exact issue.
    Thanks

  • How to use the Java embedding activity in BPel

    hi all,
    How to use the java embedding activity in BPEL
    pls can u provide sample example

    1 Use [Oracle BPEL Process Manager Client Java API Reference|http://download-uk.oracle.com/docs/cd/B31017_01/integrate.1013/b28986/overview-summary.html] and especially [com.collaxa.cube.engine.ext|http://download-uk.oracle.com/docs/cd/B31017_01/integrate.1013/b28986/com/collaxa/cube/engine/ext/BaseBPELXExecLet.html]
    Instead of System.Out.println use addAuditTrailEntry(java.lang.String message)
    2. If you want to import a package write in code (Source View) of bpel process
    +<bpelx:exec import="package_name"/>+ for example +<bpelx:exec import="java.util.regex.Matcher"/>+
    example 1:
    String bodyAsString;
    StringBuffer myStringBuffer = new StringBuffer();
    try {
    bodyAsString = (String)getVariableData("BodyString");
    addAuditTrailEntry("bodyAsString1: "+ bodyAsString);
    Pattern pattern = Pattern.compile("goodDay");
    Matcher matcher= pattern.matcher(bodyAsString);
    while (matcher.find()) {   
    matcher.appendReplacement(myStringBuffer, "shitDay");
    matcher.appendTail(myStringBuffer);
    bodyAsString = myStringBuffer.toString();
    addAuditTrailEntry("bodyAsString2: "+ bodyAsString);
    } catch (Exception ex) {
    addAuditTrailEntry("Failed+bodyAsString",ex.getMessage());
    I put in code (Source View) the following
    <bpelx:exec import="java.util.regex.Matcher"/>
    <bpelx:exec import="java.util.regex.Pattern"/>
    example2:
    Object temp;
    try {
    temp = ((XMLElement)getVariableData("inputVariable","payload","/ns2:FiscalisMessage/ns2:Body")).getChildNodes().item(1);
    setVariableData("AdjReceipt",temp);
    addAuditTrailEntry("ok",temp.toString());
    catch (Exception ex) {
    addAuditTrailEntry("Failed :",ex);
    I put in code (Source View) the following
    <bpelx:exec import="oracle.xml.parser.v2.XMLElement"/>

  • Urgent: Issue with Java Embedding Activity

    Hi All,
    I wrote below code in Java Embedding activity and tried to pass an input paramter to String SR, but i am getting SCAC-50012 Error, some one please help me in this issue
    IAgileSession m_session = null;
    IAdmin admin = null;
    IAgileClass cls = null;
    String username="XXXX";
    String password="XXXXX";
    String URL="XXXXXXX";
    String sr=getVariableData("inputVariable","payload","/client:process/client:input");
    try {
    HashMap params = new HashMap();
    params.put(AgileSessionFactory.USERNAME, username);
    params.put(AgileSessionFactory.PASSWORD, password);
    AgileSessionFactory instance = AgileSessionFactory.getInstance(URL);
    m_session = instance.createSession(params);
    admin = m_session.getAdminInstance();
    cls = admin.getAgileClass( "ProblemReport" );
    IServiceRequest psr = (IServiceRequest)m_session.createObject( "ProblemReport", sr);
    psr.setValue(ServiceRequestConstants.ATT_COVER_PAGE_DESCRIPTION, "KB-Test-20121299");
    } catch (APIException e) {
    e.printStackTrace();
    } finally {
    m_session.close();
    Also, I imported all Jar and class files into BPEL.

    Hi,
    Now the it is compiling perfectly, but when i am passing input parameter in em it is failing at bpel process.
    This is the bpel code
    <?xml version = "1.0" encoding = "UTF-8" ?>
    <!--
    Oracle JDeveloper BPEL Designer
    Created: Tue Dec 11 13:59:57 EST 2012
    Author: *********************
    Type: BPEL 1.1 Process
    Purpose: One Way BPEL Process
    -->
    <process name="BPELProcess1"
    targetNamespace="http://xmlns.oracle.com/AgileTest/Testing123/BPELProcess1"
    xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
    xmlns:client="http://xmlns.oracle.com/AgileTest/Testing123/BPELProcess1"
    xmlns:ora="http://schemas.oracle.com/xpath/extension"
    xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
    xmlns:bpelx="http://schemas.oracle.com/bpel/extension"
    xmlns:aia="http://www.oracle.com/XSL/Transform/java/oracle.apps.aia.core.xpath.AIAFunctions"
    xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20"
    xmlns:bpel2="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
    xmlns:oraext="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc"
    xmlns:dvm="http://www.oracle.com/XSL/Transform/java/oracle.tip.dvm.LookupValue"
    xmlns:hwf="http://xmlns.oracle.com/bpel/workflow/xpath"
    xmlns:ids="http://xmlns.oracle.com/bpel/services/IdentityService/xpath"
    xmlns:bpm="http://xmlns.oracle.com/bpmn20/extensions"
    xmlns:xdk="http://schemas.oracle.com/bpel/extension/xpath/function/xdk"
    xmlns:xref="http://www.oracle.com/XSL/Transform/java/oracle.tip.xref.xpath.XRefXPathFunctions"
    xmlns:ldap="http://schemas.oracle.com/xpath/extension/ldap">
    <!--
    PARTNERLINKS
    List of services participating in this BPEL process
    -->
    <partnerLinks>
    <!--
    The 'client' role represents the requester of this service. It is
    used for callback. The location and correlation information associated
    with the client role are automatically set using WS-Addressing.
    -->
    <partnerLink name="bpelprocess1_client" partnerLinkType="client:BPELProcess1" myRole="BPELProcess1Provider"/>
    </partnerLinks>
    <!--
    VARIABLES
    List of messages and XML documents used within this BPEL process
    -->
    <variables>
    <!-- Reference to the message passed as input during initiation -->
    <variable name="inputVariable" messageType="client:BPELProcess1RequestMessage"/>
    </variables>
    <!--
    ORCHESTRATION LOGIC
    Set of activities coordinating the flow of messages across the
    services integrated within this business process
    -->
    <sequence name="main">
    <!-- Receive input from requestor. (Note: This maps to operation defined in BPELProcess1.wsdl) -->
    <receive name="receiveInput" partnerLink="bpelprocess1_client" portType="client:BPELProcess1" operation="process" variable="inputVariable" createInstance="yes"/>
    <assign name="Assign1">
    <copy>
    <from variable="inputVariable" part="payload"
    query="/client:process/client:input"/>
    <to variable="inputVariable" part="payload"
    query="/client:process/client:input"/>
    </copy>
    </assign>
    <bpelx:exec import="org.w3c.dom.Element"/>
    <bpelx:exec import="com.agile.api.APIException"/>
    <bpelx:exec import="com.agile.api.AgileSessionFactory"/>
    <bpelx:exec import="com.agile.api.IAdmin"/>
    <bpelx:exec import="com.agile.api.IAgileClass"/>
    <bpelx:exec import="oracle.xml.parser.v2.*"/>
    <bpelx:exec import="com.agile.api.IAgileSession"/>
    <bpelx:exec import="com.agile.api.IServiceRequest"/>
    <bpelx:exec import="com.agile.api.ServiceRequestConstants"/>
    <bpelx:exec import="java.util.HashMap"/>
    <bpelx:exec import="testing123.JavaAPITesting.*"/>
    <bpelx:exec import="oracle.soa.common.util.Base64Encoder"/>
    <bpelx:exec import="java.util.*"/>
    <bpelx:exec import="java.lang.*"/>
    <bpelx:exec import="java.math.*"/>
    <bpelx:exec name="Java_Embedding1" version="1.5" language="java">
    <![CDATA[IAgileSession m_session = null;  
                IAdmin admin = null;  
                IAgileClass cls = null;   
                String username="****";
                String password="*******";
                String URL="*****************************************";
                String sr=(String)getVariableData("inputVariable","payload","/client:process/client:input"); 
                try { 
                        HashMap params = new HashMap(); 
                        params.put(AgileSessionFactory.USERNAME, username);
                        params.put(AgileSessionFactory.PASSWORD, password);
                        AgileSessionFactory instance = AgileSessionFactory.getInstance(URL);
                        m_session = instance.createSession(params); 
                        admin = m_session.getAdminInstance(); 
                        cls = admin.getAgileClass( "ProblemReport" ); 
                        IServiceRequest psr = (IServiceRequest)m_session.createObject( "ProblemReport", sr); 
                        psr.setValue(ServiceRequestConstants.ATT_COVER_PAGE_DESCRIPTION, "KB-Test-20121299"); 
                } catch (APIException e) { 
    e.printStackTrace();
    } finally { 
    m_session.close();
    }]]>
    </bpelx:exec>
    </sequence>
    </process>

  • Cannot use Java Embedding in Jdeveloper 11.4

    Hi,
    I am using Jdeveloper 11.1.1.4.0 . I am using a Java Embedding Activity in my BPEL and when i compile the project, the error which is coming is SCAC 50012. The same is working in 11.1.1.3.0 Jdeveloper Version.
    The code i am using in Java Embedding activity is
    Logger logger = Logger.getLogger("oracle.soa.Logger");
    LogFormatter.configFormatter(logger);     
    String var1 = ((oracle.xml.parser.v2.XMLElement) getVariableData("inputVariable","payload","/client:process/client:input")).getFirstChild().getNodeValue();
    logger.info("Message from Logging level:Info"+var1 );
    Please help me with this...
    Thanks,
    N
    Edited by: Naresh on Jul 13, 2011 10:47 AM

    I got the Java Embedding Activity working...,I used the following imports in my BPEL....
    <bpelx:exec import="java.util.logging.Logger"/>
    <bpelx:exec import="java.util.logging.Level"/>
    <bpelx:exec import="oracle.fabric.logging.LogFormatter"/>
    <bpelx:exec import="org.w3c.dom.*"/>
    <bpelx:exec import="oracle.xml.parser.v2.XMLElement"/>
    <bpelx:exec import="java.util.*"/>
    <bpelx:exec import="java.lang.*"/>
    <bpelx:exec import="java.math.*"/>
    <bpelx:exec import="java.io.*"/>
    <bpelx:exec import="oracle.soa.common.util.Base64Decoder"/>
    Hope this helps anyone who have been struggling like me before...
    Thanks,
    N

  • Error SCAC 50012

    Buildfile: C:\Oracle\Middleware\jdeveloper\bin\ant-sca-compile.xml
    scac:
    [scac] Validating composite "C:\JDeveloper\mywork\DairyEvent\DairyEvent\composite.xml"
    [scac] Setting BPELC option 'classpath' to C:\Oracle\Middleware\jdeveloper\jdev\extensions\oracle.sca.modeler.jar;C:\Oracle\Middleware\jdeveloper\soa\modules\oracle.soa.fabric_11.1.1\fabric-runtime.jar;C:\Oracle\Middleware\jdeveloper\soa\modules\oracle.soa.mgmt_11.1.1\soa-infra-mgmt.jar;C:\Oracle\Middleware\oracle_common\modules\oracle.fabriccommon_11.1.1\fabric-common.jar;C:\Oracle\Middleware\jdeveloper\soa\modules\oracle.soa.bpel_11.1.1\orabpel.jar;C:\Oracle\Middleware\jdeveloper\soa\modules\oracle.soa.mediator_11.1.1\mediator_client.jar;C:\Oracle\Middleware\oracle_common\modules\oracle.mds_11.1.1\mdsrt.jar;;C:\JDeveloper\mywork\DairyEvent\DairyEvent\SCA-INF\classes
    [scac] BPEL 2.0 validation of "DairyEvent_Bpel" took 283.9 milliseconds
    [scac] error: location {ns:composite}: SCAC-50012
    Plz let me know that the problem is
    Thanks in advance

    This error is generally because of some issue with java embedding activity used in the bpel.
    Just check in the bpel if any java class is being used in the java embedding activity.
    If yes, then you need to import that class in bpel file and include that jar in the classpath along with placing that jar in SCA-INF/lib folder.

  • Error:SCAC-50012 while deploiyng BPEL from JDeveloper 11.1.1.5

    Hi,
    Jdeveloper encounter Error: SCAC-50012 after I add correlation into BPEL. Process (asynchronous) is very simple 2 invokes and 1 pick with onMessage and onAlarm branches.
    When I remove correlation set from pick (onMessage which receives an event) activity problem disappear.
    What can I do to add correlation and cancel this error?
    12.3.2012 15:28:53 oracle.fabric.common.wsdl.SchemaManager isIncrementalBuildSupported
    INFO: XMLSchema incremental build enabled.
    12.3.2012 15:28:59 com.collaxa.cube.CubeLogger info
    INFO: validating "process.bpel" ...
    oracle.jrf.UnknownPlatformException: JRF is unable to determine the current application server platform.
         at oracle.jrf.ServerPlatformSupportFactory.getInstance(ServerPlatformSupportFactory.java:79)
         at oracle.integration.platform.blocks.WLSPlatformConfigurationProvider.<clinit>(WLSPlatformConfigurationProvider.java:44)
         at oracle.integration.platform.blocks.FabricConfigManager.<clinit>(FabricConfigManager.java:155)
         at oracle.integration.platform.blocks.xpath.FabricXPathFunctionResolver.loadXpathFunctions(FabricXPathFunctionResolver.java:271)
         at oracle.integration.platform.blocks.xpath.FabricXPathFunctionResolver.loadXPathConfigFile(FabricXPathFunctionResolver.java:153)
         at oracle.integration.platform.blocks.xpath.FabricXPathFunctionResolver.init(FabricXPathFunctionResolver.java:51)
         at com.collaxa.cube.xml.xpath.BPELXPathFunctionNameResolver.loadFabricXpathFunctions(BPELXPathFunctionNameResolver.java:57)
         at com.collaxa.cube.xml.xpath.BPELXPathFunctionNameResolver.<init>(BPELXPathFunctionNameResolver.java:48)
         at com.collaxa.cube.xml.xpath.BPELXPathFunctionNameResolver.<clinit>(BPELXPathFunctionNameResolver.java:44)
         at com.collaxa.cube.lang.compiler.bpel.XPathExprValidatorVisitor.<init>(XPathExprValidatorVisitor.java:122)
         at com.collaxa.cube.lang.compiler.bpel.AssignValidator.<init>(AssignValidator.java:89)
         at com.collaxa.cube.lang.compiler.bpel.BpelParser.<init>(BpelParser.java:452)
         at com.collaxa.cube.lang.compiler.bpel.BPELValidator.validate(BPELValidator.java:60)
         at com.collaxa.cube.lang.compiler.BPEL1Processor.validate(BPEL1Processor.java:329)
         at com.collaxa.cube.lang.compiler.BPEL1Processor.process(BPEL1Processor.java:153)
         at com.collaxa.cube.lang.compiler.CubeParserHelper.compile(CubeParserHelper.java:47)
         at oracle.fabric.bpel.bpelc.BPELComponentValidator.validate(BPELComponentValidator.java:40)
         at oracle.soa.scac.ValidateComposite.validateComponentTypeServicesReferences(ValidateComposite.java:1117)
         at oracle.soa.scac.ValidateComposite.doValidation(ValidateComposite.java:500)
         at oracle.soa.scac.ValidateComposite.run(ValidateComposite.java:150)
         at oracle.soa.scac.ValidateComposite.main(ValidateComposite.java:135)
    Thanks for advance.

    Hi, maybe these two posts can help u:
    Error when deploying AIA Demo BPEL project to SAR file
    http://11gsoasuite.blogspot.com/2011/09/jrf-is-unable-to-determine-current.html
    best
    rolando

Maybe you are looking for

  • Can I print on non-USB printers connected to Ethernet hub?

    I just connected an Airport Extreme base station to my DSL modem and pre-existing ethernet hub. (The old hub connects my old G4 running OS 9.2 to an HP 5MP laser printer and a Canon Pixma IP 4000.) Then I booted my brand new MacBook 13 and establishe

  • Extension of connecting mater and child tables

    Initial Question: Need help in SQL : I have master table name called : AA Data is having : Date Display Name ===================== 10/3/2009 Q3 2009 1/3/2010 Q4 2009 1/13/2010 Q1 2010 4/4/2009 Q1 2009 7/4/2009 Q2 2009 I have Child Table =============

  • Nikon D700   FX format RAW download

    Have just purchased new Nikon D700 and want to download RAW images in FX format but all I Get is private/var/folders/pF/pF0rjz5lHAudOVgkt-Dmxk+TI/-Tmp-/iPhoto/DSC_0069.NEF Anyone any ideas please

  • Cannot create new presets in AME CC 2014

    Whenever I go into AME CC 2014 and try and create a new preset, this is what I see: Strange Adobe Media Encoder CC 2014 Bug - YouTube. Also, whenever I quit AME, even when it's running idle, just sitting there not doing anything, I always get the une

  • Rescue and Recovery 4.5: Boot Environment does not list Backups on USB Drive

    Hello, I have a fresh installed Windows 7 on a X 230 and am now setting up my backup. The notebook came without an OS so I installed Win7, all drivers and the Thinkvantage Software myself. Then I made a backup with Rescue and Recovery 4.5 to an exter