ORABPEL-05250 - Deployment error after embedding java code

hi i am getting the following error when deploying my composite i added embedded java and imported the necessary classes i think but if i take the embedded java out it deploys succsefully :
[09:17:17 PM] Received HTTP response from the server, response code=500
[09:17:17 PM] Error deploying archive sca_getPickFile_rev1.0.jar to partition "default" on server SANDPIT_SOA
[09:17:17 PM] HTTP error code returned [500]
[09:17:17 PM] Error message from server:
There was an error deploying the composite on SANDPIT_SOA: Error occurred during deployment of component: processGetPckFile to service engine: implementation.bpel, for composite: getPickFile: ORABPEL-05250
Error deploying BPEL suitcase.
error while attempting to deploy the BPEL component file "/u01/oracle/FSOAS/product/fmw/user_projects/domains/FSOAS_domain/servers/SANDPIT_SOA/dc/soa_e76b434b-6704-4820-b544-ad56277e0fd9"; the exception reported is: java.lang.RuntimeException: failed to compile execlets of processGetPckFile
This error contained an exception thrown by the underlying deployment module.
Verify the exception trace in the log (with logging level set to debug mode).
[09:17:17 PM] Check server log for more details.
[09:17:17 PM] Error deploying archive sca_getPickFile_rev1.0.jar to partition "default" on server SANDPIT_SOA
[09:17:17 PM] #### Deployment incomplete. ####
[09:17:17 PM] Error deploying archive file:/C:/JDeveloper/mywork/pdfService/getPickFile/deploy/sca_getPickFile_rev1.0.jar
(oracle.tip.tools.ide.fabric.deploy.common.SOARemoteDeployer)

Hi
some times this error comes if the Packages for using JAVA are not i mported into BPEL Weused to get same error but after importing the packages the error usually used to be solved please check whether if the class files which you are using are correctly imported or not
ex
<import location="java.util.Properties"
importType="http://schemas.oracle.com/bpel/extension/java"/>
<import location="java.io.*"
importType="http://schemas.oracle.com/bpel/extension/java"/>

Similar Messages

  • XPathFactory error in embedded Java code

    Hi,
    I'm getting the following error when executing embedded Java code which does an XPath expression. Does anyone know why this is happening? Thanks.
    [2006/03/13 17:55:22] "{http://schemas.oracle.com/bpel/extension}bindingFault" has been thrown. less
    <bindingFault xmlns="http://schemas.oracle.com/bpel/extension">
    <part name="summary">
    <summary>Operation failed!; nested exception is: java.lang.IllegalArgumentException: XPathFactory#newInstance() failed to create an XPathFactory for the default object model: http://java.sun.com/jaxp/xpath/dom with the XPathFactoryConfigurationException: javax.xml.xpath.XPathFactoryConfigurationException: No XPathFctory implementation found for the object model: http://java.sun.com/jaxp/xpath/dom</summary>
    </part>
    <part name="detail">
    <detail>java.lang.IllegalArgumentException: XPathFactory#newInstance() failed to create an XPathFactory for the default object model: http://java.sun.com/jaxp/xpath/dom with the XPathFactoryConfigurationException: javax.xml.xpath.XPathFactoryConfigurationException: No XPathFctory implementation found for the object model: http://java.sun.com/jaxp/xpath/dom</detail>
    </part>
    </bindingFault>

    Hi,
    Refer the URL :http://help.sap.com/javadocs/pi/SP3/xpi/com/sap/aii/mapping/api/AbstractTransformation.html
    regards,
    ganga

  • Error in embedding java code in Bpel process

    I am calling one of the java snippet in my process which in turn uses the files from some jars.
    But I am getting error :
    <2006-11-07 12:08:51,227> <ERROR> <default.collaxa.cube.engine.bpel> BPELExecution
    java.lang.ExceptionInInitializerError
         at bpel.p0.ExecLetBxExe0.execute(ExecLetBxExe0.java:35)
         at com.collaxa.cube.engine.ext.wmp.BPELXExecWMP.__executeStatements(BPELXExecWMP.java:52)
         at com.collaxa.cube.engine.ext.wmp.BPELActivityWMP.perform(BPELActivityWMP.java:188)
         at com.collaxa.cube.engine.CubeEngine.performActivity(CubeEngine.java:3408)
         at com.collaxa.cube.engine.CubeEngine.handleWorkItem(CubeEngine.java:1836)
         at com.collaxa.cube.engine.dispatch.message.instance.PerformMessageHandler.handleLocal(PerformMessageHandler.java:75)
         at com.collaxa.cube.engine.dispatch.DispatchHelper.handleLocalMessage(DispatchHelper.java:166)
         at com.collaxa.cube.engine.dispatch.DispatchHelper.sendMemory(DispatchHelper.java:252)
         at com.collaxa.cube.engine.CubeEngine.endRequest(CubeEngine.java:5438)
         at com.collaxa.cube.engine.CubeEngine.createAndInvoke(CubeEngine.java:1217)
         at com.collaxa.cube.engine.delivery.DeliveryService.handleInvoke(DeliveryService.java:511)
         at com.collaxa.cube.engine.ejb.impl.CubeDeliveryBean.handleInvoke(CubeDeliveryBean.java:335)
         at ICubeDeliveryLocalBean_StatelessSessionBeanWrapper16.handleInvoke(ICubeDeliveryLocalBean_StatelessSessionBeanWrapper16.java:1796)
         at com.collaxa.cube.engine.dispatch.message.invoke.InvokeInstanceMessageHandler.handle(InvokeInstanceMessageHandler.java:37)
         at com.collaxa.cube.engine.dispatch.DispatchHelper.handleMessage(DispatchHelper.java:125)
         at com.collaxa.cube.engine.dispatch.BaseScheduledWorker.process(BaseScheduledWorker.java:70)
         at com.collaxa.cube.engine.ejb.impl.WorkerBean.onMessage(WorkerBean.java:86)
         at com.evermind.server.ejb.MessageDrivenBeanInvocation.run(MessageDrivenBeanInvocation.java:123)
         at com.evermind.server.ejb.MessageDrivenHome.onMessage(MessageDrivenHome.java:755)
         at com.evermind.server.ejb.MessageDrivenHome.run(MessageDrivenHome.java:928)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
         at java.lang.Thread.run(Thread.java:534)
    Caused by: java.lang.ClassCastException
         at com.misys.eqplus.framework.management.instrumentation.ManagementEvent.<clinit>(ManagementEvent.java:36)
         ... 22 more
    I am putting the jar files in my
    BPEL_INF flder
    and entering it in this in C:\OraBPELPM_1integration\orabpel\domains\default\config\domain
    properties file in C:\OraBPELPM_1\integration\orabpel\domains\default\config
    ear file in C:\OraBPELPM_1\integration\orabpel\system\appserver\oc4j\j2ee\home\applications
    Please help me

    Hello Santosh,
    Are you importing the used java classes using <bpelx:exec import="classname"/>
    Regards,
    Melvin

  • Error while embedding java into BPEL

    Hi Guys,
    I am getting the following error while embedding Java into BPEL.
    Error: C:\unzipjdev\jdev\system\oracle.j2ee.10.1.3.41.57\embedded-oc4j\.client (The system cannot find the file specified)
    i checked for .client content , it is not available in the directory.
    Does anybody know about this?

    could you please provide the java exec code snippet that you use in bpel? there is a sample under samples/references/JavaExec

  • Error in deploying BPEL Process with Embedded Java code

    Hi all,
    I am trying to do a simple sample BPEL Process which invokes a Java class.i have placed the jar file in the classpath and the Process compiles and builds in the BPELDesigner,but when deployed it shows the below error in the BPEL console.The beauty here is it show a success message in the BPEL Designer after deployment.
    <2007-07-19 05:03:07,640> <INFO> <production.collaxa.cube.compiler> validating "C:\OraHome_1\integration\orabpel\domains\production\tmp\.bpel_Employee_1.0.jar\Employee.bpel" ...
    <2007-07-19 05:03:09,187> <ERROR> <production.collaxa.cube.engine.deployment> <CubeProcessFactory::generateProcessClass>
    Process "Employee" (revision "1.0") compilation failed.
    <2007-07-19 05:03:09,187> <ERROR> <production.collaxa.cube.engine.deployment> <CubeProcessLoader::create> Failed to compile classes.
    Failed to compile the generated BPEL classes for "Employee".
    <2007-07-19 05:03:09,187> <ERROR> <production.collaxa.cube.engine.deployment> Process "Employee" (revision "1.0") load FAILED!!
    <2007-07-19 05:03:09,203> <ERROR> <production.collaxa.cube> <BaseCubeSessionBean::logError> Error while invoking bean "domain manager": Error while loading process.
    The process domain encountered the following errors while loading the process "Employee" (revision "1.0"): Failed to compile classes.
    Failed to compile the generated BPEL classes for "Employee".
    If you have installed a patch to the server, please check that the bpelcClasspath domain property includes the patch classes.
    ORABPEL-05215
    Error while loading process.
    The process domain encountered the following errors while loading the process "Employee" (revision "1.0"): Failed to compile classes.
    Failed to compile the generated BPEL classes for "Employee".
    If you have installed a patch to the server, please check that the bpelcClasspath domain property includes the patch classes.
         at com.collaxa.cube.engine.deployment.CubeProcessHolder.bind(CubeProcessHolder.java:1269)
         at com.collaxa.cube.engine.deployment.CubeProcessHolder.loadAndBind(CubeProcessHolder.java:882)
         at com.collaxa.cube.engine.deployment.CubeProcessHolder.loadArchive(CubeProcessHolder.java:824)
         at com.collaxa.cube.engine.CubeEngine.loadProcessArchive(CubeEngine.java:939)
         at com.collaxa.cube.ejb.impl.BPELDomainManagerBean.loadProcessArchive(BPELDomainManagerBean.java:390)
         at IBPELDomainManagerBean_StatelessSessionBeanWrapper34.loadProcessArchive(IBPELDomainManagerBean_StatelessSessionBeanWrapper34.java:2157)
         at com.collaxa.cube.engine.deployment.CubeProcessMonitorWork.run(CubeProcessMonitorWork.java:130)
         at oracle.tip.adapter.fw.jca.work.WorkerJob.go(WorkerJob.java:51)
         at oracle.tip.adapter.fw.common.ThreadPool.run(ThreadPool.java:267)
         at java.lang.Thread.run(Thread.java:534)
    <2007-07-19 05:03:09,234> <ERROR> <production.collaxa.cube.engine.deployment> <CubeProcessMonitorWork::run> Error while loading process archive C:\OraHome_1\integration\orabpel\domains\production\deploy\bpel_Employee_1.0.jar
    ORABPEL-05215
    Error while loading process.
    The process domain encountered the following errors while loading the process "Employee" (revision "1.0"): Failed to compile classes.
    Failed to compile the generated BPEL classes for "Employee".
    If you have installed a patch to the server, please check that the bpelcClasspath domain property includes the patch classes.
         at com.collaxa.cube.engine.deployment.CubeProcessHolder.bind(CubeProcessHolder.java:1269)
         at com.collaxa.cube.engine.deployment.CubeProcessHolder.loadAndBind(CubeProcessHolder.java:882)
         at com.collaxa.cube.engine.deployment.CubeProcessHolder.loadArchive(CubeProcessHolder.java:824)
         at com.collaxa.cube.engine.CubeEngine.loadProcessArchive(CubeEngine.java:939)
         at com.collaxa.cube.ejb.impl.BPELDomainManagerBean.loadProcessArchive(BPELDomainManagerBean.java:390)
         at IBPELDomainManagerBean_StatelessSessionBeanWrapper34.loadProcessArchive(IBPELDomainManagerBean_StatelessSessionBeanWrapper34.java:2157)
         at com.collaxa.cube.engine.deployment.CubeProcessMonitorWork.run(CubeProcessMonitorWork.java:130)
         at oracle.tip.adapter.fw.jca.work.WorkerJob.go(WorkerJob.java:51)
         at oracle.tip.adapter.fw.common.ThreadPool.run(ThreadPool.java:267)
         at java.lang.Thread.run(Thread.java:534)
    Your sugegstions are appreciated..
    Plzz help...
    Regards
    Subramanian

    Hi all..
    Thanks for ur response,but still my problem is not solved...
    Below is the BPEL file and the java class (which isinvoked from the process)
    BPEL FILE
    <!-- Employee -->
    <process name="BusinessTravelProcess" targetNamespace="http://packtpub.com/bpel/travel/" xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/" xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:emp="http://packtpub.com/service/employee/" xmlns:bpelx="http://schemas.oracle.com/bpel/extension">
    <bpelx:exec import="org.w3c.dom.Element"/>
    <bpelx:exec import="com.packtpub.EmployeeStatus"/>
    <partnerLinks>
    <partnerLink name="employeeTravelStatus" partnerLinkType="emp:employeeLT" myRole="employeeTravelStatusService"/>
    </partnerLinks>
    <variables><!-- input for this process -->
    <variable name="EmployeeTravelStatusRequest" messageType="emp:EmployeeTravelStatusRequestMessage"/><!-- output from the Employee Travel Status web service -->
    <variable name="EmployeeTravelStatusResponse" messageType="emp:EmployeeTravelStatusResponseMessage"/>
    </variables>
    <sequence><!-- Receive the initial request for business travel from client -->
    <receive partnerLink="employeeTravelStatus" portType="emp:EmployeeTravelStatusPT" operation="EmployeeTravelStatus" variable="EmployeeTravelStatusRequest" createInstance="yes"/><!-- Prepare the output -->
    <assign>
    <copy>
    <from>
    <travelClass xmlns="http://packtpub.com/service/employee/">Economy
    </travelClass>
    </from>
    <to variable="EmployeeTravelStatusResponse" part="travelClass"/>
    </copy>
    </assign><!-- Invoke the EmployeeStatus Java class instead of web service -->
    <bpelx:exec name="Java_Embedding_1" language="Java" version="1.4"><![CDATA[
    EmployeeStatus e = new EmployeeStatus();
    String firstName = ((Element)getVariableData(
    "EmployeeTravelStatusRequest", "employee",
    "/employee/FirstName")).getNodeValue();
    String lastName = ((Element)getVariableData(
    "EmployeeTravelStatusRequest", "employee",
    "/employee/LastName")).getNodeValue();
    String empStatus = e.getTravelStatus(firstName, lastName);
    addAuditTrailEntry("Employee status is: " + empStatus);
    setVariableData("EmployeeTravelStatusResponse", "travelClass",
    "/travelClass", empStatus);]]>
    </bpelx:exec>
    <reply partnerLink="employeeTravelStatus" portType="emp:EmployeeTravelStatusPT" operation="EmployeeTravelStatus" variable="EmployeeTravelStatusResponse"/>
    </sequence>
    </process>
    Java File:
    package com.packtpub;
    public class EmployeeStatus {
    public String getTravelStatus (String firstName, String lastName) {
    return "Economy";
    }

  • Embedding Java Code(URGENT)

    Hello,
    I'm trying to do the following, I'm trying to embed Java code into my BPEL process, I have read the tutorial that explains how to embed a java code into BPEL(http://www.oracle.com/technology/products/ias/bpel/pdf/orabpel-Training-Segment10.pdf) but unfortunately the tutorial discusses only how to call the Entity Bean but doesnt mention where in folders(directory) should the bean itself be placed, where are the imports.
    I'm going to start with a simple example, a class called Multiplier that has function square, Here is the code for the class:
    //Java Multiplier class
    public class Multiplier{
    public Multiplier(){}
    public int square(int x){
    return x*x; }
    this is code that will be placed in the EXEC(Java code snippet):
    //Java Code Snippet goes here...
    try{
    Object input= getVariableData
    ("input","payload","/JavaCode");
    String parser= input.toString();
    int in= Integer.parseInt(parser);
    Multiplier obj1= new Multiplier();
    int result= obj1.square(in);
    addAuditTrailEntry("The square of the input is:"+result);
    catch(Exception en){
    addAuditTrailEntry(en);
    Where should the multiplier class be located(in which folder in the ecplise)or how will the BPEL refer to it ?
    Shouldnt I import the Multiplier class in the EXEC(snippet) where should that line go?
    Thanks in advance
    Hussam Galal

    After going through the Forum I saw I question similar to mine, and I found out there's an example similar to what I am trying to do at C:\orabpel\samples\references\JavaExec
    I tried to make an example almost exactly like JavaExec and I edited my build.xml to be similar to build.xml of the example but I keep getting this error:
    BUILD FAILED: C:\eclipse-SDK-3.0-win32\eclipse\workspace\Calc\build.xml:28: ORABPEL-00017
    Java compilation failed.
    Failed to compile file(s) "Calc.bpel".
    Exception reported is: Calc.bpel:44: ';' expected.
    Multiplier mult= new Multiplier();
    ^
    1 error
    Please verify that file Calc.bpel is valid java file or if all required libraries are included in your classpath.
    classpath: C:\eclipse-SDK-3.0-win32\eclipse\startup.jar;C:\eclipse-SDK-3.0-win32\eclipse\startup.jar;C:\eclipse-SDK-3.0-win32\eclipse;c:\eclipse-SDK-3.0-win32\eclipse\plugins\bpelz_0.9.10\lib\orabpel-ant.jar;c:\eclipse-SDK-3.0-win32\eclipse\plugins\bpelz_0.9.10\lib\orabpel-boot.jar;c:\eclipse-SDK-3.0-win32\eclipse\plugins\bpelz_0.9.10\lib\orabpel-common.jar;c:\eclipse-SDK-3.0-win32\eclipse\plugins\bpelz_0.9.10\lib\orabpel-thirdparty.jar;c:\eclipse-SDK-3.0-win32\eclipse\plugins\bpelz_0.9.10\lib\orabpel.jar;C:\DOCUME~1\temp_ps\LOCALS~1\Temp\bpelc40446.tmp\BPEL-INF\classes
    Here's the java code in the EXEC(snippet):
    // Java code snippet goes here ...
    com.otn.samples.javaexec.Multiplier
    Multiplier mult= new Multiplier();
    Object obj1= getVariableData("input","payload","/Calc");
    String str= obj1.toString();
    int in= Integer.parseInt(str);
    int result= mult.square(in);
    addAuditTrailEntry("The result is: "+result);
    Finally here's the my build.xml:
    <?xml version="1.0"?>
    <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Run cxant on this file to build, package and deploy the
    Calc BPEL process
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
    <project name="Calc" default="all" basedir=".">
    <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Name of the domain the generated BPEL suitcase will be deployed to
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
         <property name="deploy" value="default"/>
    <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    What version number should be used to tag the generated BPEL archive?
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
    <property name="rev" value="1.0"/>
         <target name="CompileJava">
         <mkdir dir="${basedir}/BPEL-INF/classes"/>
              <javac srcdir="${basedir}/src" destdir="${basedir}/BPEL-INF/classes"/>
         </target>
    <target name="Calc">
    <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    the bpelc task compiles and package BPEL processes into versioned BPEL
    archives (bpel_...jar). See the "Programming BPEL" guide for more
    information on the options of this task.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
    <bpelc home="${home}" rev="${rev}" deploy="${deploy}"/>
    </target>
    <target name="all" depends="CompileJava, Calc"/>
    </project>

  • Embedded Java code with bpelx:exec

    When I embed Java code with bpelx:exec, I would like use classes packaged in a jar file. How do I ensure that the jar file is deployed with the suitcase? I tried adding the library to the JDeveloper project (right-click project, choose properties, libraries), but that did not work.

    Although the tooling does not expose this functionality yet, the bpel packaging and bpelc command line tool support the ability to put a library in BPEL-INF/lib and using it in the exec activity. You can also put classes in BPEL-INF/classes. Please look at:
    [ORACLE_HOME]\integration\orabpel\samples\references\JavaExec for more information.
    -Edwin

  • Shutting off java after faulty java code runs in WinXP

    I would like to know how to shut java off after a webpage with faulty java code is loaded. Ever since the version of Java that introduced "jsched" into the mix, I've had problems with Java on every computer and every install of windows I've had and worked with. If a webpage has faulty code in it, instead of crashing Firefox/Mozilla like the older versions did (in which I could simply reload the browser after it crashes), it makes Firefox inoperable (disabling most of the menu items and making the mouse scroller not work), and continues to run even after Firefox is no longer running. To make matters worse, Java was programmed in such a way that makes it a process that cannot be seen in the task manager. Java's ability to hide its running process quite frankly makes me nervous.
    I'm thankful that the latest version fixed a lot of bugs--the version before this would give me a blue screen of death every time I tried to access the control panel.
    I would like to know how to turn off java once it's running. The only documentation I have been able to find was in relation to a shell in Linux which uses commands that don't work in Windows.

    How do I shut off Java once it is loaded when I'm on a page that doens't have any errors? If I go to a page that requires java, and Java gets loaded, it doesn't automatically quit when I go to another page. Why does Java need to continue running when it's no longer being used? Why should I have to quit and reload Firefox in order to quit Java?
    It would be nice if there was something in Java to shut itself off when it encounters an error instead of requiring a windows restart in order to quit Java since it isn't a separate process, and also something that shuts off Java when there is no longer a webpage in memory that requires Java.

  • PCUI GP Deployment ERROR on Standalone Java Stack

    We are in the midst of deploying the PCUI archive via SDM (also tried JSPM)
    Got the following error
    Aborted: development component 'pcui_gp/isr/cfg'/'sap.com'/'MAIN_ERP05VAL_C'/'2515722'/'0', grouped by software component 'SAPPCUI_GP'/'sap.com'/'MAIN_ERP05VAL_C'/'1000.600.0.13.0.20080516101947''/'0':Caught exception during application deployment from SAP J2EE Engine's deploy service:java.rmi.RemoteException: Error occurred while deploying ear file ./temp/deploy/work/deploying/pcui_gp_isr_cfg.ear. Reason: None of the available containers recognized the components of application sap.com/pcui_gpisrcfg; it is not possible to make deploy. (message ID: com.sap.sdm.serverext.servertype.inqmy.extern.EngineApplOnlineDeployerImpl.performAction(DeploymentActionTypes).REMEXC)
    Deployment of pcui_gp/isr/cfg finished with Error (Duration 12495 ms)
    Starting Deployment of SAPPCUI_GP
    Aborted: software component 'SAPPCUI_GP'/'sap.com'/'MAIN_ERP05VAL_C'/'1000.600.0.13.0.20080516101947''/'0':Failed deployment of SDAs:development component 'pcui_gp/isr/cfg'/'sap.com'/'MAIN_ERP05VAL_C'/'2515722'/'0' : abortedPlease, look at error logs above for more information!
    Deployment of SAPPCUI_GP finished with Error (Duration 6525 ms)
    PCUI Patch level is SP13 (highest). and Java stack is 15
    Even tried starting from PCUI SP1
    This is a Standalone Java Stack. Not Add-In
    HAs anyone had experience deploying PCUI on Standalone Java Stack.
    Any help/pointers appreciated.

    Hi ,
    Please check :
    https://wiki.sdn.sap.com/wiki/display/WDJava/Clusterwideexception-FailedtodeployWebDynprocontentforapplication
    Regards,
    Nibu Antony
    Edited by: Nibu Antony on Dec 13, 2010 2:52 PM

  • Error in a JAVA Code

    Dear Experts,
    I am trying toimplement a JAVA code in SAP NWDS (NetWeaver Develope Studio) and i have imported the necessary jar files also. However there are some errors that I am not able to solve. Below is the JAVA code that i am using
    package JAVAinXSLT;
    import com.sap.aii.mapping.api.AbstractTransformation;
    import com.sap.aii.mapping.api.StreamTransformation;
    import com.sap.aii.mapping.api.StreamTransformationException;
    import java.util.*;
    import java.text.*;
    import com.sap.aii.mapping.api.TransformationInput;
    public class Email extends AbstractTransformation
              public static String getFromEmail(TransformationInput in)throws StreamTransformationException
                        try {
                                  // Read Import Parameters
                               String paramFrom = in.getInputParameters().getString("PARAM_FROM");
                               return paramFrom;
                        catch (Throwable throwable)
                               throwable.printStackTrace();
              public static String getToEmail(TransformationInput in)throws StreamTransformationException
                        try
                                  // Read Import Parameters
                                  String paramTo = in.getInputParameters().getString("PARAM_TO");
                                  return paramTo;
                        catch (Throwable throwable)
                               throwable.printStackTrace();
    The errors that I am getting are:
    1) ERROR: The type Email must implement the inherited abstract method AbstractTransformation.transform(TransformationInput, TransformationOutput)
    This is at public class Email extends AbstractTransformation
    2) ERROR: This method must return a result of type String
    At line public static String getFromEmail(TransformationInput in)throws StreamTransformationException
    3) ERROR: This method must return a result of type String
    At the line public static String getToEmail(TransformationInput in)throws StreamTransformationException
    There seems to be error in declaration.....but I am not able to solve it. So please help me out here
    Thanks,
    Abhishek.

    Hi,
    Refer the URL :http://help.sap.com/javadocs/pi/SP3/xpi/com/sap/aii/mapping/api/AbstractTransformation.html
    regards,
    ganga

  • How to Invoke bpel process which is deployed in weblogic using java code

    Hi
    I want to invoke a BPEL Process which is deployed in Weblogic server using Java code. Please provide me the code snnipet which will be used to connect and then invoke a BPEL Process.

    The simple way would be creating a java client to consume the SOAP webservice interface exposed by the bpel process.
    If you have Oracle Service Registry you can also use UDDI to discover the endpoint at runtime.
    But you can also use direct binding to do that.
    If you search on internet you will find many blog entries about this as well as many related posts here on OTN.
    I can't suggest a specific one, but looking on Google this one seems quite ok: Managing Oracle SOA Environment [10g/11g]: Invoking SOA11g Composite Using Direct Binding Invocation API

  • View Compilation Errors in Embedded Java Activity

    Hi,
    Is there any way to see the compilation errors in the Embedded Java Activity in the BPEL.
    Thanks,
    Ajay

    Hi,
    Exceptions are automatically converted to BPEL faults and thrown back in BPEL.
    But to see some errors , one can use try catch block with audit trail entry in catch block like :
    try {
    catch (Exception e){
    addAuditTrailEntry(e);
    I have not used this so not sure if this will work.
    HTH,
    Ketan

  • ESS - Deployment Error Webdynpro for Java

    Hi All
    To enhance the functionality of CatsApproval (sap.com/msscatapproval), We have created a custom DC and copied the source code from the above DC. After we enhanced the functionality in new DC, we have undeployed the old DC to avoid name clash and deployed the new DC (say xxx_msscatapproval).
    We are getting below error during runtime.
    com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Failed to create deployable object 'sap.com/msscatapproval' since it is not a Web Dynpro object.
    We have found ''sap.com/msscatapproval' text have hard coded in some of the component and we have replaced with the new DC name but Still we r getting error.
    Any help on this is highly appreciated.
    Thanks and Regards
    Anbu K

    For custom WDJ development (even based on delivered ESS) I would try forum
    Webdynpro JAVA
    Web Dynpro Java
    Best wishes
    Stuart

  • Plz help , getting error in my java code

    Can any one tell the reason for this error:
    Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
    is there any size limit for java classes that I am using in my code?
    My code Looks like:
         FileChannel in = null, out = null;
         try {
         in = new FileInputStream(sourceLocation).getChannel();
    System.out.println(in.size() +"RptPageBreak rtn: b 4 read file into buffer, source=" + sourceLocation);
    // read the file into buffer
    // System.out.println("-1 " +in.size() );
    MappedByteBuffer buf = in.map(FileChannel.MapMode.READ_ONLY, 0, in.size());
         //System.out.println("RptPageBreak rtn: AFTER read file into buffer" );
    System.out.println("1: "+ buf.capacity()+" " +in.size() );
    // CharBuffer cb;
                   try {
                        cb = Charset.forName ("UTF-8").decode (buf);
                   } catch (Exception ex) {
                        System.out.println("2:"+ ex.getMessage());
                        ex.printStackTrace();
    System.out.println("2");
    String lines[] = Pattern.compile ("\n").split (cb, 0);
         //System.out.println("RptPageBreak rtn: lines.len=" + lines.length);
         Writer writer = new FileWriter (targetLocation);
         System.out.println("3");
         for (int i = 0, n = lines.length; i < n; i++) {
              // also compare if starts with a CRLF
         if ( ( lines.startsWith("\r\n" + rpt_headg_id) == true ) ||
                   ( lines[i].startsWith("\f" + rpt_headg_id) == true ) ||
    ( lines[i].startsWith(rpt_headg_id) == true ) )
    //if ( lines[i].contains(rpt_headg_id) == true )
         //System.out.println("RptPageBreak rtn: found headg in if loop " + rpt_headg_id );
    writer.write ("1");
    else {
         writer.write (" "); // detail lines shift over 1 by addg a space
    writer.write (lines[i]);
    writer.write ('\n');
    //System.out.println("RptPageBreak rtn: lines[i]=" + i + ' ' + lines[i]);
    writer.close ();
    }catch(Exception e)
         System.out.println("RptPageBreak rtn: Catch Exception: " + e.getMessage() );
         status=false;
    e.printStackTrace();
    finally {
         try {
    if (in != null) in.close();
    if (out != null) out.close();
    status=true;
    catch(Exception e)
         System.out.println("RptPageBreak rtn: Finally-Catch Exception: " + e.getMessage() );
         status=false;
    e.printStackTrace();

    It has nothing to do with classes. It is that you are reading to much info into memory at one time. If you are only going to cycle through the input line for line, anyway, then why don't you simply read the file (or whatever) a line at a time and process it as you read it, rather than loading the entire thing at once?

  • New error after recent java update on Mac

    Hi,
    We run a learning management system that uses LiveConnect to communicate between the elearning module and the LMS.
    Recently all sorts of things started going wrong, around the time of the latest update.
    I just tried it from my Leopard-OS imac running Safari 3.1.2
    Learning modules will no longer launch, and the following errors show up in the console.
    If I launch from Safari, I get:
    Java Plug-in 1.5.0
    Using JRE version 1.5.0_13 Java HotSpot(TM) Client VM
    User home directory = /Users/ellenm1
    network: Loading user-defined proxy configuration…
    network: Done.
    network: Loading proxy configuration from Netscape Navigator…
    network: Done.
    network: Loading direct proxy configuration…
    network: Done.
    network: Proxy Configuration: No proxy
    basic: Cache is enabled
    basic: Location: /Users/ellenm1/Library/Caches/Java/cache/javapi/v1.0
    basic: Maximum size: unlimited
    basic: Compression level: 0
    basic: Referencing classloader: sun.plugin.ClassLoaderInfo@9444d1, refcount=1
    basic: Loading applet/u2026
    basic: Added progress listener: sun.plugin.util.GrayBoxPainter@4ac216
    basic: Initializing applet/u2026
    basic: Referencing classloader: sun.plugin.ClassLoaderInfo@9444d1, refcount=2
    basic: Releasing classloader: sun.plugin.ClassLoaderInfo@9444d1, refcount=1
    basic: Starting applet…
    basic: Loading http://lmserver.com/pathto/apiadapter_lms.jar from cache
    basic: No certificate info, this is unsigned JAR file.
    java.net.MalformedURLException
         at java.net.URL.<init>(URL.java:601)
         at java.net.URL.<init>(URL.java:464)
         at java.net.URL.<init>(URL.java:413)
         at org.adl.lms.client.DocentAPIAdapterApplet.initServlet(Unknown Source)
         at org.adl.lms.client.APIAdapterApplet.init(Unknown Source)
         at org.adl.lms.client.DocentAPIAdapterApplet.init(Unknown Source)
         at sun.applet.AppletPanel.run(AppletPanel.java:380)
         at java.lang.Thread.run(Thread.java:613)
    liveconnect: Java: Obj is <org.adl.lms.client.DocentAPIAdapterApplet>
    liveconnect: Java: method is <public java.util.Properties org.adl.lms.client.DocentAPIAdapterApplet.pingLMS()>
    liveconnect: Java:  method has 0 arguments.
    liveconnect: JavaScript: caller and callee have same origin
    liveconnect: JavaScript: default security policy = http://lmserver.com/pathto/docentisapi.dll/lms,APPSERVER01.ourserver.com,2151/SQN%3D-57596664/
    Exception caught In DocentServletProxy::DoHACPRequest()
    null
    liveconnect: Java: Returning a null

    We're facing the same trouble, we have a very similar stack trace and the error occurs only with Safari v 3.2.1; no firewalls and no domains, the issue is related with this snippet of java applet code compiled against jdk v 1.4.12:
    new PropertyResourceBundle(MyToolbar.class.getResourceAsStream("toolbar.properties"));
    where the execution of getResourceAsStream throws a NPE.
    "toolbar.properties" is a property file within the applet jar, the applet tries to acces such file with the execution of this line but fails.
    This error happens with Safari and Google Chrome,
    while it works fine with IE7, Firefox 2 and 3
    the stacktrace contains the following lines:
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at sun.plugin.javascript.JSInvoke.invoke(Unknown Source)
         at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at sun.plugin.javascript.JSClassLoader.invoke(Unknown Source)
         at sun.plugin.liveconnect.PrivilegedCallMethodAction.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.plugin.liveconnect.SecureInvocation$2.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.plugin.liveconnect.SecureInvocation.CallMethod(Unknown Source)
    hope someone can help
    thanks,
    Paolo

Maybe you are looking for

  • Close a running application from java........

    Hi all I have opened an application say MSWORD from my java class using Runtime.getRuntime(), Now on close button i need to close the application and on the save button of the application i even want to save the application from java command The ques

  • ITunes 7.0 Not Allowing Video Playback

    Ever since upgrading to iTunes 7.0 all the video podcasts and purchased videos from the iTunes store do not play on my Windows XP Pro PC. The sound is fine but the video is just a a bunch of multiple colors and lines. I checked the IDE settings as su

  • Open in another window

    I use Adobe Prof. I want my pdf to open in a separate window. I found I should follow these steps-below- however it doesn't seem to work Edit> preferences> general> internet> uncheck display pdf in brower. When I go to open is show url doesn't exist.

  • Delta between ORACLE 8.0.5 and ORACLE 8.0.6

    I am looking for information that outlines the major differences (bug fixes, enhancements) between ORACLE 8.0.5 and 8.0.6. THanks Joerg null

  • How to export a completed song in Logic 9

    Hi I am new to this forum and quite new to Logic 9 after a break away from mac's for 10 years. I would like to be able to export a full completed song I have done in Logic 9 to share with my producer who also uses Logic 9. Whats the best way to do th