JavaRTS-2.1ea: GettingStarted examples: run-scenarios.sh bug (Ubuntu)

Hi,
Concerning the GettingStarted examples in JavaRTS-2.1ea (the Linux evaluation download).
There seems to be a bug in run-scenarios.sh. If /usr/bin/taskset is the location of `taskset',
PSRSET_CMD2 is never initialized, and
PSRSET_CMD1 is initialized to taskset2 (which does not exist)
Excerpt from run-scenarios.sh:
if [ $OS = "SunOS" ]
then
    PSRSET_CMD1="/usr/sbin/psrset -e 1"
    PSRSET_CMD2="/usr/sbin/psrset -e 1"
else
    if [ -f /bin/taskset ]
    then
     PSRSET_CMD1="/bin/taskset -c 0"
     PSRSET_CMD2="/bin/taskset -c 0,1"
    else
     if [ -f /usr/bin/taskset ]
     then
         PSRSET_CMD1="/usr/bin/taskset1 -c 0"      <--- oops, a typo - taskset1
         PSRSET_CMD1="/usr/bin/taskset2 -c 0,1"   <--- oops, another typo - taskset2 and PSRSET_CMD1
     fi
    fi
fiThis is what happens when I run the scenarios:
sudo ./run-scenarios.sh java ../../bin/java "" GettingStarted.jar
# -- NonDeterministic Run1 --
/usr/bin/taskset2 -c 0,1 java -client -XX:+PrintGC -classpath GettingStarted.jar NonDeterministic 5000 20 10 0 0 max 5000 20 10 0 0 min
./run-scenarios.sh: 270: */usr/bin/taskset2: not found*
# -- NonDeterministic run1 completed
(Could it be the case that few people have noticed this, because perhaps `taskset' is located in /bin/ on most relevant Linux distros (I'm guessing), but I'm using Ubuntu where taskset is located in /usr/bin/ ?)
Regards,
Magnus

Thanks for the bug report. We'll take care of it.
David Holmes

Similar Messages

  • How to Run scenario from the web using HTTP web page?

    Hi guys
    Please let me know How to Run scenario from the web using HTTP web page?
    Regards
    Janakiram

    Hi Janakiram,
    ODI provides web based UI for running the scenarios using Metadata Navigator (read only of ur ODI components) and Lighweight designer (u can edit the mapping here).
    Please explore how to install metadata navigator in ODI and have a look at ODI Setup document for more information.
    Thanks,
    Guru

  • Running scenario in different contexts

    Hello,
    I am running ODI over 2 topologies, 1 for DEV/TEST and the other one for Production which is execution only.
    When I run my scenarios on Production I get the following error message:
    com.sunopsis.core.SnpsInexistantObjectException: There is no connection for this logical schema/context pair:SRC_ERP_BOLINF / DEVELOPEMENT
    The logical schema is indeed not define for the Developement context since we are on Production... Moreover why do I have this error while other scenarios and interfaces are working?
    Can you please advise?
    JF

    Hi JF-
    It seems like some of the variables,procedures or interface points to the DEV context in your package, eventhough you are running execution context as PRDO.
    Please try to maintain a single LOGICAL SCHEMA over the pacakges so that without doing any modification you can switch over the different databases by choosing various contexts.
    For Example,
    LOGICAL SCHEMA : ORA_LSCHEMA
    DEV development_db
    TEST test_db
    PROD prod_db
    Hope this will help you.
    Thanks,
    Saravanan Rajavel

  • ODI 11g error when running scenario from startscen

    Hi,
    I'm getting the following error when trying to run the scenario using a standalone agent:
    org.apache.bsf.BSFException: exception from Jython:
    Traceback (innermost last):
    File "<string>", line 6, in ?
    ImportError: no module named re
         at org.apache.bsf.engines.jython.JythonEngine.exec(JythonEngine.java:146)
         at com.sunopsis.dwg.codeinterpretor.SnpScriptingInterpretor.execInBSFEngine(SnpScriptingInterpretor.java:345)
         at com.sunopsis.dwg.codeinterpretor.SnpScriptingInterpretor.exec(SnpScriptingInterpretor.java:169)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.scripting(SnpSessTaskSql.java:2375)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execScriptingOrders(SnpSessTaskSql.java:1616)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execScriptingOrders(SnpSessTaskSql.java:1581)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java:2755)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java:2515)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatAttachedTasks(SnpSessStep.java:537)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:449)
    Everything runs fine from the Designer. I can execute the scenarion using the agent from Designer no problem.
    Any idea on this error? Sounds like a path error, but I've checked everything.
    Thanks in advance.
    Nick

    I believe i have the answer.
    When are you are triggering via ODI Designer its going and reading from this folder path Oracle_ODI1\oracledi.sdk\lib
    Now there is another Folder called Lib which has the re.py causing which enables Designer to run the re module perfectly.
    When the same scenarios is being called via startscen it reads the Oracle_ODI1\oracledi\agent\lib and here there is Jython.jar is there but Lib which contains the re.py is missing.
    Temporary Solution - Copy the Lib from Oracle_ODI1\oracledi.sdk\lib to Oracle_ODI1\oracledi\agent\lib and call your startscen again .It should work.
    The reason i am calling this a temporary solution is that we would need to modify the odiparams accordingly to read from the right path namely(Lib) and i dont have much time to look at it now. i will look into it later.
    You can try if this works and if you want you can check with metalink if there is proper solution or reach Oracle Support for more appropriate solution or any other experts who have experinced the same can update the solution.

  • Issue with running scenario from command line-RESOLVED

    I have made appropriate changes in the odiparams.bat file and am trying to run the startscen command from the bin directory of the ODI installation on windows XP Pro SP2
    startscen DPRI_SEC_PKG_POP_PRI_SEC_TBLS 001 GLOBAL "-v=2"
    set ODI_SECU_DRIVER=oracle.jdbc.driver.OracleDriver
    set ODI_SECU_URL=jdbc:oracle:thin:@pridb-test-1:1521:PRISBOX
    set ODI_SECU_USER=PRI_MST_TST
    set ODI_SECU_ENCODED_PASS=b1ya.1dDo.cclkh.IVhi5Ovp
    set ODI_SECU_WORK_REP=PRI_WRK_TST
    set ODI_USER=SUPERVISOR
    set ODI_ENCODED_PASS=a7yXIxOwQ4avmSJZia4,79QAp
    Below is the error I get:
    OracleDI: Starting scenario DPRI_SEC_PKG_POP_PRI_SEC_TBLS 001 in context GLOBAL
    com.sunopsis.sql.c: oracle.jdbc.driver.OracleDriver
    at com.sunopsis.sql.SnpsConnection.a(SnpsConnection.java)
    at com.sunopsis.sql.SnpsConnection.connect(SnpsConnection.java)
    at com.sunopsis.dwg.cmd.e.h(e.java)
    at com.sunopsis.dwg.cmd.e.g(e.java)
    at com.sunopsis.dwg.cmd.e.y(e.java)
    at com.sunopsis.dwg.DwgJv.treatCmd(DwgJv.java)
    at com.sunopsis.dwg.DwgJv.main(DwgJv.java)
    at oracle.odi.Agent.main(Agent.java)
    DwgJv.main: Exit. Return code:-1
    Please suggest where I might be going wrong? I've made sure that the repository connections as correct. It is not really telling what is wrong or maybe I don't understand the error message.
    Edited by: user10184763 on Sep 26, 2008 10:50 AM
    ALRIGHT....I picked up the original backed up odiparams.bat file and entered all the information one more time and then it worked...I dont know waht happened..but it worked!! Thanks people!
    Edited by: zebango on Oct 14, 2008 10:39 AM

    Still getting the same error. Work repository name is correct. Passwords freshly encoded. The thing is everytime I run the command agent encode &lt;password&gt; it gives me a new encoded password. Is tht expected behavior??
    bq. C:\Program Files\Oracle\oracledi\oracledi\bin&gt;startscen DPRI_SEC_PKG_POP_PRI_SEC \\ TBLS 001 GLOBAL "-v=2" \\ OracleDI: Starting scenario DPRISEC_PKG_POP_PRI_SEC_TBLS 001 in context GLOBAL \\ ... \\ com.sunopsis.sql.c: sun.jdbc.odbc.JdbcOdbcDriver \\ at com.sunopsis.sql.SnpsConnection.a(SnpsConnection.java) \\ at com.sunopsis.sql.SnpsConnection.connect(SnpsConnection.java) \\ at com.sunopsis.dwg.cmd.e.h(e.java) \\ at com.sunopsis.dwg.cmd.e.g(e.java) \\ at com.sunopsis.dwg.cmd.e.y(e.java) \\ at com.sunopsis.dwg.DwgJv.treatCmd(DwgJv.java) \\ at com.sunopsis.dwg.DwgJv.main(DwgJv.java) \\ at oracle.odi.Agent.main(Agent.java) \\ DwgJv.main: Exit. Return code:-1
    My ODI params.bat for reference. again this Windows XP Prof2
    bq. set ODI_SECU_DRIVER=sun.jdbc.odbc.JdbcOdbcDriver \\ set ODI_SECU_URL=jdbc:oracle:thin:@pridb-test-1:1521:PRISBOX \\ set ODI_SECU_USER=PRI_MST_TST \\ set ODI_SECU_ENCODED_PASS=b1yaZszHYl5dvTmffPVqRhkp \\ set ODI_SECU_WORK_REP=PRI_WRK_TST \\ set ODI_USER=SUPERVISOR \\ set ODI_ENCODED_PASS=a7yXTDTi0KW4pefy2MPpHSuDy
    Any suggestions?

  • Getting SimpleChat.mxml example running in the command-line

    Hi,
    I am working on getting a connection to cocomo working. Unfortunately, the documentation is highly unclear about how to get this running from the command-line(not to mention the example file in flash builder 4 crashes when run...).
    Directly run, this is the error I'm getting:
    $ /Developer/flex_sdk_4/bin/mxmlc cocomo_load.mxml
    Loading configuration file /Developer/flex_sdk_4/frameworks/flex-config.xml
    /Users/vlion/Documents/work/flixn/repos/vss/sandbox/cocomo_load.mxml(72): Error: Could not resolve  to a component implementation.
    /Users/vlion/Documents/work/flixn/repos/vss/sandbox/cocomo_load.mxml(84): Error: Could not resolve  to a component implementation.
    When adding --show-actionscript-warnings=true --strict=true, I get the same warning.
    I have afcs.swc in the directory I'm running this from.
    However, when run with --library-path=., I receive a slew of "could not find resource bundle for local en_US" warnings. Setting the local to en_US doesn't help the matter.
    Reviewing the discussions I found online, this appears to be related to namespace issues. However, it is unclear what the namespace issue is.
    What, exactly, is the problem, and what needs to be set to resolve it?
    Message was edited by: pnathan_: added filename and some readability formatting.

    Hi,
    Thanks for bringing this in notice to us. Since we were not building the examples in command-line with flex 4,  we didn’t see this problem earlier.
    The problem happened because our LCCS components were built with halo component and namespace in flex 3. So, when you are using the spark framework and flex 4, if you do not mention that you also need the halo theme , our components won't work. Flex Builder takes care for it but while doing command-line compiling you need to mention the theme specifically. If you run your current script with Flex 3 sdks, it would have built fine. This has nothing to do with our namespaces or using locale.
    I am attaching a quick ant build script which I used to build our DefaultPods example with Flex 4 sdks( this script file is in same folder as DefaultPods.mxml).
    You can see the build  script and make any changes ( since I used for windows) and let us know if everything works fine for you.
    Thanks again for bringing it to our notice. We will make sure that this gets added to the docs in next-release.
    Thanks
    Regards
    Hironmay Basu
    Here is the Ant Script
        <property name="cocomoSDK.dir" value="$/../../../cocomo" />
        <property name="FlexSDK.dir" location="C:\Program Files\Adobe\Adobe Flash Builder 4\sdks\4.0.0" />
        <property name="mxmlc.jar" location="${FlexSDK.dir}/lib/mxmlc.jar" />
        <property name="cocomo.lib.dir" location="$/../../../cocomo/lib/" />
                    <!launcher>
                            <arg value="-output=$/DefaultPods.swf" />
                            <arg value="-file-specs=$/DefaultPods.mxml" />
                        </java>
            </target>
    </project

  • How to make this example run on IE ?

    for example below :
    * LunarPhasesRB.java requires the following files:
    *    images/image0.jpg
    *    images/image1.jpg
    *    images/image2.jpg
    *    images/image3.jpg
    *    images/image4.jpg
    *    images/image5.jpg
    *    images/image6.jpg
    *    images/image7.jpg
    * It is a modified version of LunarPhases.java that
    * uses radio buttons instead of a combo box.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.net.URL;
    public class LunarPhasesRB implements ActionListener {
        final static int NUM_IMAGES = 8;
        final static int START_INDEX = 3;
        ImageIcon[] images = new ImageIcon[NUM_IMAGES];
        JPanel mainPanel, selectPanel, displayPanel;
        JLabel phaseIconLabel = null;
        public LunarPhasesRB() {
            //Create the phase selection and display panels.
            selectPanel = new JPanel();
            displayPanel = new JPanel();
            //Add various widgets to the sub panels.
            addWidgets();
            //Create the main panel to contain the two sub panels.
            mainPanel = new JPanel();
            mainPanel.setLayout(new BoxLayout(mainPanel, BoxLayout.PAGE_AXIS));
            mainPanel.setBorder(BorderFactory.createEmptyBorder(5,5,5,5));
            //Add the select and display panels to the main panel.
            mainPanel.add(selectPanel);
            mainPanel.add(displayPanel);
         * Get the images and set up the widgets.
        private void addWidgets() {
             * Create a label for displaying the moon phase images and
             * put a border around it.
            phaseIconLabel = new JLabel();
            phaseIconLabel.setHorizontalAlignment(JLabel.CENTER);
            phaseIconLabel.setVerticalAlignment(JLabel.CENTER);
            phaseIconLabel.setVerticalTextPosition(JLabel.CENTER);
            phaseIconLabel.setHorizontalTextPosition(JLabel.CENTER);
            phaseIconLabel.setBorder(BorderFactory.createCompoundBorder(
                BorderFactory.createLoweredBevelBorder(),
                BorderFactory.createEmptyBorder(5,5,5,5)));
            phaseIconLabel.setBorder(BorderFactory.createCompoundBorder(
                BorderFactory.createEmptyBorder(0,0,10,0),
                phaseIconLabel.getBorder()));
         //Create radio buttons with lunar phase choices.
         JRadioButton newButton = new JRadioButton("New");
         newButton.setActionCommand("0");
         newButton.setSelected(true);
         JRadioButton waxingCrescentButton =  new JRadioButton("Waxing Crescent");
         waxingCrescentButton.setActionCommand("1");
         JRadioButton firstQuarterButton = new JRadioButton("First Quarter");
         firstQuarterButton.setActionCommand("2");
         JRadioButton waxingGibbousButton = new JRadioButton("Waxing Gibbous");
         waxingGibbousButton.setActionCommand("3");
         JRadioButton fullButton = new JRadioButton("Full");
         fullButton.setActionCommand("4");
         JRadioButton waningGibbousButton = new JRadioButton("Waning Gibbous");
         waningGibbousButton.setActionCommand("5");
         JRadioButton thirdQuarterButton = new JRadioButton("Third Quarter");
         thirdQuarterButton.setActionCommand("6");
         JRadioButton waningCrescentButton = new JRadioButton("Waning Crescent");
         waningCrescentButton.setActionCommand("7");
         // Create a button group and add the radio buttons.
         ButtonGroup group = new ButtonGroup();
         group.add(newButton);
         group.add(waxingCrescentButton);
         group.add(firstQuarterButton);
         group.add(waxingGibbousButton);
         group.add(fullButton);
         group.add(waningGibbousButton);
         group.add(thirdQuarterButton);
         group.add(waningCrescentButton);
            // Display the first image.
            phaseIconLabel.setIcon(new ImageIcon("images/image0.jpg"));
            phaseIconLabel.setText("");
           //Make the radio buttons appear in a center-aligned column.
            selectPanel.setLayout(new BoxLayout(selectPanel, BoxLayout.PAGE_AXIS));
           selectPanel.setAlignmentX(Component.CENTER_ALIGNMENT);
            //Add a border around the select panel.
            selectPanel.setBorder(BorderFactory.createCompoundBorder(
                BorderFactory.createTitledBorder("Select Phase"),
                BorderFactory.createEmptyBorder(5,5,5,5)));
            //Add a border around the display panel.
            displayPanel.setBorder(BorderFactory.createCompoundBorder(
                BorderFactory.createTitledBorder("Display Phase"),
                BorderFactory.createEmptyBorder(5,5,5,5)));
            //Add image and moon phases radio buttons to select panel.
            displayPanel.add(phaseIconLabel);
           selectPanel.add(newButton);
           selectPanel.add(waxingCrescentButton);
           selectPanel.add(firstQuarterButton);
           selectPanel.add(waxingGibbousButton);
           selectPanel.add(fullButton);
           selectPanel.add(waningGibbousButton);
           selectPanel.add(thirdQuarterButton);
           selectPanel.add(waningCrescentButton);
            //Listen to events from the radio buttons.
           newButton.addActionListener(this);
           waxingCrescentButton.addActionListener(this);
           firstQuarterButton.addActionListener(this);
           waxingGibbousButton.addActionListener(this);
           fullButton.addActionListener(this);
           waningGibbousButton.addActionListener(this);
           thirdQuarterButton.addActionListener(this);
           waningCrescentButton.addActionListener(this);
        // Load the selected image (lazy image loading).
        public void actionPerformed(ActionEvent event) {
           phaseIconLabel.setIcon(new ImageIcon("images/image"
                                  + event.getActionCommand()
                                  + ".jpg"));
         * Create the GUI and show it.  For thread safety,
         * this method should be invoked from the
         * event-dispatching thread.
        private static void createAndShowGUI() {
            //Create a new instance of LunarPhasesRB.
            LunarPhasesRB phases = new LunarPhasesRB();
            //Create and set up the window.
            JFrame lunarPhasesFrame = new JFrame("Lunar Phases");
            lunarPhasesFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            lunarPhasesFrame.setContentPane(phases.mainPanel);
            //Display the window.
            lunarPhasesFrame.pack();
            lunarPhasesFrame.setVisible(true);
        public static void main(String[] args) {
            //Schedule a job for the event-dispatching thread:
            //creating and showing this application's GUI.
            javax.swing.SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                    createAndShowGUI();
    }i know run above example on command line while i don't how to make run on IE ?
    because mostly people are used to look at sth on IE ?
    so i think it's important to runs javacode on IE .
    who can help me ?
    thanks!

    If you want it to execute inside a web browser then you need to convert it to an applet. Alternatively you can investigate Java Web Start.

  • How to make J2EE order (persistence) example run?

    I just used:
    ant
    ant deploy
    and it gave me following error:
    deploy:
         [echo] localhost
         [echo] 8080
         [echo] order
         [echo] C:\glassfishv3\glassfish\docs\javaee-tutorial\examples\bp-project\ma
    in.xml/../../../../../../bin/asadmin.bat
         [echo] order
         [echo] SQL92
         [exec] Deprecated syntax, instead use:
         [exec] asadmin --port 4848 --host localhost deploy [options] ...
         [exec] com.sun.enterprise.admin.cli.CommandException: remote failure: Excep
    tion while loading the app : javax.ejb.EJBException: javax.ejb.CreateException:
    Initialization failed for Singleton ConfigBean
         [exec]
         [exec] Cannot create tables for application order. The expected DDL file or
    der_order_createDDL.jdbc is not available.
         [exec]
         [exec]
         [exec] Command deploy failed.That means without making any changes. Then I included the following in the build.xml taken from roster example:
    <target name="-pre-deploy" unless="netbeans.home" depends="init">
            <antcall target="start-db"/>
        </target>But the problem remains the same. The server.log shows:
    Caused by: javax.ejb.EJBTransactionRolledbackException
         at com.sun.ejb.containers.BaseContainer.mapLocal3xException(BaseContainer.java:2253)
         at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:2053)
         at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:1955)
         at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:198)
         at com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.java:84)
         at $Proxy264.createPart(Unknown Source)
         at order.ejb.__EJB31_Generated__RequestBean__Intf____Bean__.createPart(Unknown Source)
         at order.ejb.ConfigBean.createData(ConfigBean.java:36)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.sun.ejb.containers.interceptors.BeanCallbackInterceptor.intercept(InterceptorManager.java:1006)
         at com.sun.ejb.containers.interceptors.CallbackChainImpl.invokeNext(CallbackChainImpl.java:61)
         at com.sun.ejb.containers.interceptors.CallbackInvocationContext.proceed(CallbackInvocationContext.java:109)
         at com.sun.ejb.containers.interceptors.SystemInterceptorProxy.doCallback(SystemInterceptorProxy.java:133)
         at com.sun.ejb.containers.interceptors.SystemInterceptorProxy.init(SystemInterceptorProxy.java:115)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.sun.ejb.containers.interceptors.CallbackInterceptor.intercept(InterceptorManager.java:961)
         at com.sun.ejb.containers.interceptors.CallbackChainImpl.invokeNext(CallbackChainImpl.java:61)
         at com.sun.ejb.containers.interceptors.InterceptorManager.intercept(InterceptorManager.java:390)
         at com.sun.ejb.containers.interceptors.InterceptorManager.intercept(InterceptorManager.java:373)
         at com.sun.ejb.containers.AbstractSingletonContainer.createSingletonEJB(AbstractSingletonContainer.java:521)
         ... 38 more
    Caused by: javax.ejb.TransactionRolledbackLocalException: Exception thrown from bean
         at com.sun.ejb.containers.BaseContainer.checkExceptionClientTx(BaseContainer.java:4975)
         at com.sun.ejb.containers.BaseContainer.postInvokeTx(BaseContainer.java:4810)
         at com.sun.ejb.containers.StatefulSessionContainer.postInvokeTx(StatefulSessionContainer.java:1656)
         at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:2004)
         ... 62 more
    Caused by: javax.ejb.EJBException: Object: order.entity.Part@63b596 is not a known entity type.
         at order.ejb.RequestBean.createPart(RequestBean.java:53)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at org.glassfish.ejb.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1056)
         at org.glassfish.ejb.security.application.EJBSecurityManager.invoke(EJBSecurityManager.java:1128)
         at com.sun.ejb.containers.BaseContainer.invokeTargetBeanMethod(BaseContainer.java:4087)
         at com.sun.ejb.containers.BaseContainer.__intercept(BaseContainer.java:5272)
         at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:5252)
         at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:190)
         ... 60 moreTo tell you the truth every example of the J2EE tutorials have some problems and can't be run smoothly. I can't run them as is and have to spent time figuring out what went wrong. Can anyone point out what went wrong?
    Thanks.
    Edited by: amishera2006 on Aug 1, 2010 8:26 PM

    Just remembered. The examples in other places like spring/hibernate, GWT, Android all works smoothly as it gets. And they all work exactly as they claim in their documentation. I think those companies give the coders more money than oracle/sun that is why they are not motivated enough to test their stuff before releasing.

  • Syntax to run scenario from comand line

    Can some one give me the syntax to run a scenario from the command line using an agent.

    According with OracleDI Getting Started (page 61):
    Run the Scenario from an OS Command
    1. Open an MS-DOS command prompt window or a console in UNIX.
    2. In the Oracle Data Integrator installation folder, open the "bin" directory.
    3. Enter the following command:
    startscen LOAD_SALES_ADMINISTRATION 001 GLOBAL "-v=2"
    Note: The parameters for the startscen command are:
    - Scenario name
    - Scenario version
    - Scenario context
    - Logging level
    These parameters are separated by spaces.
    4. When execution is finished, the command prompt should look like this:
    C:\oracledi\bin>startscen LOAD_SALES_ADMINISTRATION 001 GLOBAL "-
    v=2"
    Oracle Data Integrator: Starting scenario
    LOAD_SALES_ADMINISTRATION 001 in context GLOBAL ...
    06/27/2005 11:33:05 AM(main): Creating session for
    scenario:LOAD_SALES_ADMINISTRATION - 001
    06/27/2005 11:33:06 AM(main): Session : 14003 is running
    06/27/2005 11:33:16 AM(main): Session : 14003 finished with
    return code : 0
    DwgJv.main: Exit. Return code:0
    But I got same error (in UNIX):
    ./startscen.sh FLOW9 001 Development -Name=LOCALHOST_20910
    OracleDI: Starting scenario FLOW9 001 in context Development ...
    com.sunopsis.core.SnpsInexistantObjectException: SnpContext.getContextByCode : SnpContext does not exist
    at com.sunopsis.dwg.dbobj.SnpContext.getContextByCode(SnpContext.java)
    at com.sunopsis.dwg.cmd.DwgCommandScenario.b(DwgCommandScenario.java)
    at com.sunopsis.dwg.cmd.DwgCommandScenario.treatCommand(DwgCommandScenario.java)

  • Running scenario using a agent

    Hi ,
    I have 2 setups.
    1.Developement
    Master Repository - MASTER
    Work Repository of type Developement -DEMODEV
    2.Production
    Master Repository - MASTEREXEC
    Work Repository of type Execution - DEVEXEC1
    Now in the Production , i have imported my Master Environment and explicitly imported the scenarios.Now , when im trying to run my scenarios in the Work Repository of type Execution , using Agent , its throwing the error as
    +"Warning connecting to Agent localagent: work repository DEVEXEC is not bound to the master repository"+
    I checked my ODIPARAMS.BAT , there in my WORK Repository name , is showing the Work Repository of type Development .
    Can someone suggest

    Hi,
    These are the important setting in ODIPARAMS, marked --- needs to changed also password must be encoded using endode.bat/encode.sh
    Check the settings.
    REM #
    REM # Repository Connection Information
    REM #
    set ODI_MASTER_DRIVER=oracle.jdbc.OracleDriver --------
    set ODI_MASTER_URL=jdbc:oracle:thin:@localhost:1521:orcl -----
    set ODI_MASTER_USER=MASTER -------
    set ODI_MASTER_ENCODED_PASS=fDyaHfX7g6bzWIlVorSg ----
    REM #
    REM # User credentials for agent startup program
    REM #
    set ODI_SUPERVISOR=SUPERVISOR ---
    set ODI_SUPERVISOR_ENCODED_PASS=fDyaHfX7g6bzWIlVorSg ---
    REM #
    REM # User credentials for ODI tools
    REM #
    set ODI_USER=%ODI_SUPERVISOR%
    set ODI_ENCODED_PASS=%ODI_SUPERVISOR_ENCODED_PASS%
    REM #
    REM # Work Repository Name
    REM #
    set ODI_SECU_WORK_REP=WORKREP1 ----

  • Xcode 4.2 Example runs once then stuck

    I was having an issue, so I went back to a book example and found the same problem.  I am trying to create a very simple NSDictionary application under Cocoa.  At an early point I tried 'build and run' and it worked to bring up the screen I am constructing.  However, when I stop that run, and then repeat build and run, it never shows the screen.  It comes up with the following message and seems to be in a loop from there.  The number seems to be an almost random number.  I am sure it is a novice error, but it is stopping all progress!  Any help would be appreciated.
    tty /dev/ttys000
    [Switching to process 4792 thread 0x0]

    Thanks.  The code is pretty short, so I am including it all.  It really is beginner level.  I am sure I just need an experienced eye to point out some mis-direction on my part.  Thanks for any coaching I can get.  I only wrote the first method and added a line to the init method.  It has occurred to me that perhaps this has something to do with the upgrade from Xcode 3.x to Xcode 4.2.  The book example I am following was written to Xcode 3.  The book examples had similar errors with NSDictionary and NSArray examples.
    Document.h
    #import <Cocoa/Cocoa.h>
    @interface Document : NSDocument
        NSMutableDictionary *mainDictionary;
        IBOutlet NSTextField *kRefInField;
        IBOutlet NSTextField *dataInField;
    - (IBAction)storeRefAndData: (id)sender;
    @end
    Document.m
    #import "Document.h"
    @implementation Document
    - (IBAction)storeRefAndData: (id)sender
        NSString *kRefToStore = [kRefInField stringValue];
        NSString *dataToStore = [dataInField stringValue];
        [mainDictionary setValue:dataToStore forKey:kRefToStore];
    - (id)init
        self = [super init];
        if (self) {
            // Add your subclass-specific initialization here.
            // If an error occurs here, return nil.
            mainDictionary = [[NSMutableDictionary alloc] init];
        return self;
    - (NSString *)windowNibName
        // Override returning the nib file name of the document
        // If you need to use a subclass of NSWindowController or if your document supports multiple NSWindowControllers, you should remove this method and override -makeWindowControllers instead.
        return @"Document";
    - (void)windowControllerDidLoadNib:(NSWindowController *)aController
        [super windowControllerDidLoadNib:aController];
        // Add any code here that needs to be executed once the windowController has loaded the document's window.
    - (NSData *)dataOfType:(NSString *)typeName error:(NSError **)outError
         Insert code here to write your document to data of the specified type. If outError != NULL, ensure that you create and set an appropriate error when returning nil.
        You can also choose to override -fileWrapperOfType:error:, -writeToURL:ofType:error:, or -writeToURL:ofType:forSaveOperation:originalContentsURL:error: instead.
        NSException *exception = [NSException exceptionWithName:@"UnimplementedMethod" reason:[NSString stringWithFormat:@"%@ is unimplemented", NSStringFromSelector(_cmd)]userInfo:nil];
        @throw exception;
        return nil;
    - (BOOL)readFromData:(NSData *)data ofType:(NSString *)typeName error:(NSError **)outError
        Insert code here to read your document from the given data of the specified type. If outError != NULL, ensure that you create and set an appropriate error when returning NO.
        You can also choose to override -readFromFileWrapper:ofType:error: or -readFromURL:ofType:error: instead.
        If you override either of these, you should also override -isEntireFileLoaded to return NO if the contents are lazily loaded.
        NSException *exception = [NSException exceptionWithName:@"UnimplementedMethod" reason:[NSString stringWithFormat:@"%@ is unimplemented", NSStringFromSelector(_cmd)]userInfo:nil];
        @throw exception;
        return YES;
    + (BOOL)autosavesInPlace
        return YES;
    @end
    Re: [Switching to process 2576 thread 0x0] 

  • Does anyone know the reason about the J2EE example running erro?

    I want to run the JMS simple example on J2EE 1.4 SDK with Application Server 8.2 on Windows. Under instruction of tutorial of J2EE 1.4 update 7.
    I follow the insturction of the J2EE tutuorial step by step, http://java.sun.com/j2ee/1.4/docs/tutorial/doc/index.html (in chapter 33, -Writing Simple JMS Client Applications), but when I excute the "Running the client" step - "Run the SimpleProducer program, sending three messages to the queue jms/Queue:" with command "appclient -client SimpleProducer.jar jms/Queue 3", there is exception appear in the command line -
    "Destination name is jms/Queue
    JNDI API lookup failed: javax.naming.NameNotFoundException
    javax.naming.NameNotFoundException"
    not the expect line:
    "Destination name is jms/Queue
    Sending message: This is message 1
    Sending message: This is message 2
    Sending message: This is message 3
    I have check the steps I have done carefully and make sure without any problem, and no different with the instruction, and then I restart the Application server again and delete all the steps then repeat again, the same result!
    Does anyone have meet the same probleme? Or could anyone tell me how to resolve the problem? Thank you!

    Installing a SIM card will never rectify the device being in recovery mode.
    Put the device in DFU mode and attempt to restore it as new via iTunes.  Google "DFU mode" for instructions.

  • Running scenario in DOS batch

    Hello,
    I created a scenario. From there I create a batch file like this:
    echo on
    start C:\OraHome_1\oracledi\bin\startscen SCEN_PKG_PFINPLN 001 ODI_DEVCONTEXT
    ::CLS+EXIT to close window and finish
    CLS
    EXIT
    When I run the batch file, I get this DOS window saying this: "The system cannot find the path specified. OracleDI: Starting scenario SCEN_PKG_PFINPLN 001 in context ODI_DEVCONTEXT...'oracle.odi.agent' is not recognized as an internal or external comman, operable problem or batch file.
    If I open a dos window and navigate to the folder above and put in the syntax C:\OraHome_1\oracledi\bin\startscen SCEN_PKG_PFINPLN 001 ODI_DEVCONTEXT, I'm able to run it fine. I'm not sure why this happens
    Any suggestion is appreciated

    Try this instead of one single line -start C:\OraHome_1\oracledi\bin\startscen SCEN_PKG_PFINPLN 001 ODI_DEVCONTEXT
    echo on
    cd C:\OraHome_1\oracledi\bin
    c:
    start startscen SCEN_PKG_PFINPLN 001 ODI_DEVCONTEXT

  • Error While Running Scenario-Wrong Return Process Code

    Hi ,
    We have Main Package having 2 packages scenarios in it.
    1.Main Package
    2.First Pckg- Scenario1,Scenario2,Scenario3
    3.Second Pckg-Scenario1,Scenario2
    When i am running Main Package Scenario i am getting error as "Wrong Return Process Code" on unix procedure which is basically for rmoving header and trailer information and placing in flat file.
    But if i run the Main package with only First Package Sscenarios seperately (Scenario1,Scenario2,Scenario3) then it is running properly.
    Can anybody help me on it.
    Thanks
    Ashwini

    i am performing cold backup cloning on R12.0.0
    it is single node to single node clonning.
    I have performed perl adcfgclone on dbTier itis successfull.
    Now i am running on appsTier
    my database and listner are up and running
    perl adcfgclone appsTier
    It has given error stating tht failed to execute adclone. and see logfile i had seen that logfile of ApplyApplTop and i got this error their.
    Along with it is is also showing error code 25600

  • Example of scenarios for all MTS strategies?

    Hi Experts,
    Can any one tell me in which scenarios, we have to use the strategies 50,40,10,11,30 & 60?
    Please dont send any sap library or any steps to exicute the process, as I knew.
    Please explain in your own 3 words.
    I have little bit confusion about these strategies & want some clear points.
    Expecting valuable reply.
    Regards,
    Imran

    Dear,
    Please refer my reply from this link,
    [Planning Strategy Usage|Re: Industry wise planning strategy usage]
    Regards,
    R.Brahmankar
    Edited by: R Brahmankar on Mar 27, 2009 3:04 PM

Maybe you are looking for

  • Attaching an Apple Remote to a MacBook?

    I've seen pictures of the iMac online and the Apple Remote looks like it's attached to the right side of the monitor. Is there a way to attach the remote to a white MacBook or did someone use velcro in the iMac picture? ; ) Thanks...

  • Most Common Interview questions... help needed

    Hello, I have an interview coming up for a BEA WebLogic developer position. Please let me know what are the most common questions could be for WebLogic (including Portal, Integration, Workshop, and WLServer)if any one knows/or has a list or somethin.

  • Macbook pro's screen won't turn on

    Macbook pro 2014 13inch won't turn on.my ssd was almost full.1 GB or less available .I didn't turn my macbook on for 2 days and now it wont start .when I press power button I can hear the chime and it gets heated after few minutes from the base .and

  • "An unknown service exception occurred" error when attempting to change Microsoft account

    I am trying to change the e-mail address of my Microsoft account I use to access MSDN. On the "My Account" page I select the "Change Microsoft Account for this subscription" link and enter the temporary passphrase as prompted. After I hit 'next' I re

  • JPA and Entities without setter methods

    Hello, maybe a stupid question: I have an entity without a setter methods in order to make it immutable after creation. I�ve written all JPA annotations on method level - here on the getter method. I�ve got the error msg that the setter is required.