8 Replies Latest reply: May 29, 2012 1:22 AM by 916127 RSS

    Getting  Error: SCAC-50012 while using Java Embeding Activity

    916888
      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
        • 2. Re: Getting  Error: SCAC-50012 while using Java Embeding Activity
          346356
          Hi

          Have you checked out the scac log files in the SCA-INF/classes directory of your JDev project? There could be vital information in these telling you what the problem is.

          Regards

          Lars
          • 3. Re: Getting  Error: SCAC-50012 while using Java Embeding Activity
            916888
            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
            • 4. Re: Getting  Error: SCAC-50012 while using Java Embeding Activity
              346356
              Hi

              I can't see aia.jar in your classpath, and your Java embedding is using it. So, once you have this JAR in your project, you should be able to remove your import statements in BPEL (unless you have other Java embedding activities needing it). Also, make sure to add this jar under Tools -> Preferences -> SOA in JDev so you can use the AIA xpath extension functions.

              Regards

              Lars
              • 5. Re: Getting  Error: SCAC-50012 while using Java Embeding Activity
                916888
                Hi Lars,

                I have added the aia.jar file. my project is successfully compiled and deployed.

                Thank you very much.

                could you please tell me where we can check this TraceLogMessage.I am using this code for the Auditing purpose.

                ________________________________________

                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);

                }

                ______________________________________________________

                Thanks&Regards,
                Suman

                Edited by: 913885 on Mar 16, 2012 1:48 AM
                • 6. Re: Getting  Error: SCAC-50012 while using Java Embeding Activity
                  346356
                  Hi

                  The exact location of these file may vary, depending on how the system was set up. However, they would normally end up in the same directory as the rest of the SOA server logs. The log files is named something with the word 'aia' in it. I don't have access to an AIA system at the moment, so I can't check the exact name for you.

                  Regards

                  Lars
                  • 7. Re: Getting  Error: SCAC-50012 while using Java Embeding Activity
                    932454
                    can anyone please tell me where can i get the aia.jar i searched for it but i did not get it from web
                    • 8. Re: Getting  Error: SCAC-50012 while using Java Embeding Activity
                      916127
                      C:\Oracle\Middleware\jdeveloper\lib