Ejbc command problem

Following environment is set with my setenv.cmd script.
set WL_HOME=c:\bea\wlserver6.0
set JAVA_HOME=c:\bea\jdk130
set classpath=c:\bea\jdk130\lib\tools.jar;c:\bea\wlserver6.0\lib\weblogic_sp.jar;c:\bea\wlserver6.0\lib\weblogic.jar;
set path=c:\bea\wlserver6.0\bin;c:\bea\jdk130\bin;
Following message appears when i'm running java weblogic.ejbc command
weblogic.xml.process.ProcessorFactoryException: Could not locate processor for public id="-//sun microsystems,inc.//dtd enterprise javabeans 1.1//en"
     at weblogic.xml.process.ProcessorFactory.getProcessor(ProcessorFactory.java:181)
     at weblogic.xml.process.ProcessorFactory.getProcessor(ProcessorFactory.java:164)
     at weblogic.ejb20.dd.xml.DDUtils.loadDeploymentDescriptor(DDUtils.java:65)
     at weblogic.ejb20.dd.xml.DDUtils.loadDeploymentDescriptor(DDUtils.java:47)
     at weblogic.ejb20.dd.xml.DDUtils.loadDeploymentDescriptor(DDUtils.java:38)
     at weblogic.ejbc20.runBody(ejbc20.java:665)
     at weblogic.utils.compiler.Tool.run(Tool.java:81)
     at weblogic.ejbc.main(ejbc.java:20)
plz. help

Please check whether the DTD location in your ejb-jar.xml is
<!DOCTYPE ejb-jar PUBLIC '-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN' 'http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd'>
and in weblogic-ejb-jar.xml is
<!DOCTYPE weblogic-ejb-jar PUBLIC '-//BEA Systems, Inc.//DTD WebLogic 5.1.0 EJB//EN' 'http://www.bea.com/servers/wls510/dtd/weblogic-ejb-jar.dtd'>
hope this helps.
regards,
Abhishek.

Similar Messages

  • About the ejbc command(repost, more detail info)

    Hi all,
    I have posted the problem before and still didn't resolved.
    The problem is:
    One stateless session ejb deployed on the iAS server,running ok. After added
    a method, I used the ejbc -iiop -sl <home> <remote> <bean class> to compile
    it, but it always said: (where the getErrMsg() was the newly added method,no
    special setting(such as transaction etc.) required for it,just a simple
    business method)
    ejb_stub_MessageLogger.java:7: class
    com.iaspec.bmx.hub.ejb.msglogger.ejb_stub_MessageLogger must be declared
    abstract. It does not define java.util.HashMap getErrMsg() from interface
    com.iaspec.bmx.hub.ejb.msglogger.MessageLogger.
    But after I use iAS deploytool to reconstruct the ejb from scratch and
    deployed it to iAS, I run the ejbc command again, it's ok now!!! Why?
    Does anyone have experience of it?
    plus: I don't want to use iAS deploytool any more, it's so cumbersome:(
    Johnson Lee

    Hi all,
    The problem has been resovled. But it's still very strange!
    After I copied these modified classes to the location in iAS where I
    deployed the ejb to, or delete the ejb from iAS, the ejbc command run OK.
    Is this an ejbc bug?
    Johnson Lee
    "Johnson Lee" <[email protected]> wrote in message
    news:9hf3ja$[email protected]..
    Hi all,
    I have posted the problem before and still didn't resolved.
    The problem is:
    One stateless session ejb deployed on the iAS server,running ok. Afteradded
    a method, I used the ejbc -iiop -sl <home> <remote> <bean class> tocompile
    it, but it always said: (where the getErrMsg() was the newly addedmethod,no
    special setting(such as transaction etc.) required for it,just a simple
    business method)
    ejb_stub_MessageLogger.java:7: class
    com.iaspec.bmx.hub.ejb.msglogger.ejb_stub_MessageLogger must be declared
    abstract. It does not define java.util.HashMap getErrMsg() from interface
    com.iaspec.bmx.hub.ejb.msglogger.MessageLogger.
    But after I use iAS deploytool to reconstruct the ejb from scratch and
    deployed it to iAS, I run the ejbc command again, it's ok now!!! Why?
    Does anyone have experience of it?
    plus: I don't want to use iAS deploytool any more, it's so cumbersome:(
    Johnson Lee

  • Error while using "ejbc" command....

    Hi,
    I got the following errors when I use the ejbc Command in weblogic6.1 using ant tool to run a Bean Managed Entity Beans.I've also attached the two descriptor files(ejb-jar.xml and weblogic-ejb-jar.xml) and make file build.xml.
    ejbc:
    [java]
    [java] ERROR: Error from ejbc: In EJB AccountBean, the primary key class must implement the method boolean equals(Object other).
    [java] ERROR: Error from ejbc: In EJB AccountBean, the primary key class must implement the method public int hashCode().
    [java] ERROR: ejbc found errors
    [java] Java Result: 1
    ejb-jar.xml
    <?xml version="1.0"?>
    <!DOCTYPE ejb-jar PUBLIC
    '-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN'
    'http://java.sun.com/dtd/ejb-jar_2_0.dtd'>
    <ejb-jar>
    <enterprise-beans>
    <entity>
    <ejb-name>AccountBean</ejb-name>
    <home>com.testejb.AccountHome</home>
    <remote>com.testejb.Account</remote>
    <ejb-class>com.testejb.AccountBean</ejb-class>
    <persistence-type>Bean</persistence-type>
    <prim-key-class>com.testejb.AccountPK</prim-key-class>
    <reentrant>False</reentrant>
    </entity>
    </enterprise-beans>
    <assembly-descriptor>
    <container-transaction>
    <method>
    <ejb-name>AccountBean</ejb-name>
    <method-name>*</method-name>
    </method>
    <trans-attribute>Required</trans-attribute>
    </container-transaction>
    </assembly-descriptor>
    </ejb-jar>
    weblogic-ejb-jar.xml
    <?xml version="1.0"?>
    <!DOCTYPE weblogic-ejb-jar PUBLIC
    '-//BEA Systems, Inc.//DTD WebLogic 6.0.0 EJB//EN'
    'http://www.bea.com/servers/wls600/dtd/weblogic-ejb-jar.dtd'>
    <weblogic-ejb-jar>
    <weblogic-enterprise-bean>
    <ejb-name>AccountBean</ejb-name>
    <jndi-name>AccountHome</jndi-name>
    </weblogic-enterprise-bean>
    </weblogic-ejb-jar>
    build.xml
    project name="beanManaged" default="all" basedir=".">
    <!-- set global properties for this build -->
    <property environment="env"/>
    <property file="../../../../examples.properties"/>
    <property name="source" value="."/>
    <property name="build" value="${source}/build"/>
    <property name="dist" value="${source}/dist"/>
    <target name="all" depends="clean, init, compile_ejb, jar_ejb, ejbc "/>
    <target name="init">
    <!-- Create the time stamp -->
    <tstamp/>
    <!-- Create the build directory structure used by compile
    and copy the deployment descriptors into it-->
    <mkdir dir="${build}"/>
    <mkdir dir="${build}/META-INF"/>
    <mkdir dir="${dist}"/>
    <copy todir="${build}/META-INF">
    <fileset dir="${source}">
    <include name="*.xml"/>
    <exclude name="build.xml"/>
    </fileset>
    </copy>
    </target>
    <!-- Compile ejb classes into the build directory (jar preparation) -->
    <target name="compile_ejb">
    <javac srcdir="${source}" destdir="${build}"
    includes="Account.java, AccountHome.java, AccountException.java, AccountPK.java, AccountBean.java"/>
    </target>
    <!-- Make a standard ejb jar file, including XML deployment descriptors -->
    <target name="jar_ejb" depends="compile_ejb">
    <jar jarfile="${dist}/src.jar"
    basedir="${build}">
    </jar>
    </target>
    <!-- Run ejbc to create the deployable jar file -->
    <target name="ejbc" depends="jar_ejb">
    <java classname="weblogic.ejbc" fork="yes">
    <sysproperty key="weblogic.home" value="${WL_HOME}"/>
    <arg line="-compiler javac ${dist}/src.jar d:/bea/wlserver6.1/config/mydomain/applications/AbeanManaged.jar"/>
    <classpath>
    <pathelement path="${WL_HOME}/lib/weblogic_sp.jar;${WL_HOME}/lib/weblogic.jar"/>
    </classpath>
    </java>
    </target>
    <target name="clean">
    <delete dir="${build}"/>
    <delete dir="${dist}"/>
    </target>
    </project>
    Expecting your reply
    Thanks & Regards
    Venkatesh

    Gee, this is just a guess but how about defining methods equals() and hashCode() in your pk class?
    ps
    The color of George Washington's white horse was white.

  • SQL Command problem in Application Express 3.2.0.00.27

    To Oracle Application Express Development Team,
    Yesterday I installed Oracle Application Express 3.2.0.00.27.
    While doing my r&d, I came across one problem in SQL Command.
    For example I wanted to run sql "select * from tab"
    When I checked "Autocommit" checkbox it worked fine.
    But when I unchecked the "Autocommit" checkbox it gave me following error:
    ORA-01003: no statement parsed
    Please check post
    http://www.oraclebrains.com/2009/03/sql-command-problem-in-application-express-3200027/ for more details.
    Cheers

    I can't find the log file (a good indication that something went wrong)
    Here's the transcript of the session...
    SQL> startup upgrade
    ORACLE instance started.
    Total System Global Area 599785472 bytes
    Fixed Size 1288820 bytes
    Variable Size 264242572 bytes
    Database Buffers 331350016 bytes
    Redo Buffers 2904064 bytes
    Database mounted.
    Database opened.
    SQL> @apxpatch.sql
    PL/SQL procedure successfully completed.
    PL/SQL procedure successfully completed.
    Wrote file apxset.sql
    PL/SQL procedure successfully completed.
    PL/SQL procedure successfully completed.
    SQL>
    SQL> @apxldimg.sql
    PL/SQL procedure successfully completed.
    Enter value for 1: C:\Documents and Settings\jtench\Desktop\My Downloads\Oracle\apex_3.2.1
    old 1: create directory APEX_IMAGES as '&1/apex/images'
    new 1: create directory APEX_IMAGES as 'C:\Documents and Settings\jtench\Desktop\My Downloads\Oracle\apex_3.2.1/apex/images'
    Directory created.
    PL/SQL procedure successfully completed.
    PL/SQL procedure successfully completed.
    PL/SQL procedure successfully completed.
    Commit complete.
    timing for: Load Images
    Elapsed: 00:03:30.03
    Directory dropped.
    SQL>

  • Unable to run ejbc command!!!

    I am compiling my ejbs and after jarring the classes and META-INF when i run the ejbc <jarfilename> <outjarname> thit says
    'ejbc' is not recognized as an internal or external command,
    operable program or batch file.
    how do i set the classpath and path to run the ejbc command......am using weblogic 8.1 version and jdk1.3

    Add the weblogic server's bin directory to your PATH. You will need to a couple of WLS jars to the CLASSPATH. There might be something in the installation/setup documentation that tells you all this. I have only used WLS 5.1 and 7.0.

  • PL/SQL Procedure Calling Java Host Command Problem

    This is my first post to this forum so I hope I have chosen the correct one for my problem. I have copied a java procedure to call Unix OS commands from within a PL/SQL procedure. This java works well for some OS commands (Eg ls -la) however it fails when I call others (eg env). Can anyone please give me some help or pointers?
    The java is owned by sys and it looks like this
    CREATE OR REPLACE AND COMPILE JAVA SOURCE NAMED "ExecCmd" AS
    //ExecCmd.java
    import java.io.*;
    import java.util.*;
    //import java.util.ArrayList;
    public class ExecCmd {
    static public String[] runCommand(String cmd)
    throws IOException {
    // set up list to capture command output lines
    ArrayList list = new ArrayList();
    // start command running
    System.out.println("OS Command is: "+cmd);
    Process proc = Runtime.getRuntime().exec(cmd);
    // get command's output stream and
    // put a buffered reader input stream on it
    InputStream istr = proc.getInputStream();
    BufferedReader br = new BufferedReader(new InputStreamReader(istr));
    // read output lines from command
    String str;
    while ((str = br.readLine()) != null)
    list.add(str);
    // wait for command to terminate
    try {
    proc.waitFor();
    catch (InterruptedException e) {
    System.err.println("process was interrupted");
    // check its exit value
    if (proc.exitValue() != 0)
    System.err.println("exit value was non-zero: "+proc.exitValue());
    // close stream
    br.close();
    // return list of strings to caller
    return (String[])list.toArray(new String[0]);
    public static void main(String args[]) throws IOException {
    try {
    // run a command
    String outlist[] = runCommand(args[0]);
    for (int i = 0; i < outlist.length; i++)
    System.out.println(outlist);
    catch (IOException e) {
    System.err.println(e);
    The PL/SQL looks like so:
    CREATE or REPLACE PROCEDURE RunExecCmd(Command IN STRING) AS
    LANGUAGE JAVA NAME 'ExecCmd.main(java.lang.String[])';
    I have granted the following permissions to a user who wishes to run the code:
    drop public synonym RunExecCmd
    create public synonym RunExecCmd for RunExecCmd
    grant execute on RunExecCmd to FRED
    grant javasyspriv to FRED;
    Execute dbms_java.grant_permission('FRED','java.io.FilePermission','/bin/env','execute');
    commit
    Execute dbms_java.grant_permission('FRED','java.io.FilePermission','/opt/oracle/live/9.0.1/dbs/*','read, write, execute');
    commit
    The following test harness has been used:
    Set Serverout On size 1000000;
    call dbms_java.set_output(1000000);
    execute RunExecCmd('/bin/ls -la');
    execute RunExecCmd('/bin/env');
    The output is as follows:
    SQL> Set Serverout On size 1000000;
    SQL> call dbms_java.set_output(1000000);
    Call completed.
    SQL> execute RunExecCmd('/bin/ls -la');
    OS Command is: /bin/ls -la
    total 16522
    drwxrwxr-x 2 ora9sys dba 1024 Oct 18 09:46 .
    drwxrwxr-x 53 ora9sys dba 1024 Aug 13 09:09 ..
    -rw-r--r-- 1 ora9sys dba 40 Sep 3 11:35 afiedt.buf
    -rw-r--r-- 1 ora9sys dba 51 Sep 3 09:52 bern1.sql
    PL/SQL procedure successfully completed.
    SQL> execute RunExecCmd('/bin/env');
    OS Command is: /bin/env
    exit value was non-zero: 127
    PL/SQL procedure successfully completed.
    Both commands do work when called from the OS command line.
    Any help or assistance would be really appreciated.
    Regards,
    Bernard.

    Kamal,
    Thanks for that. I have tried to use getErrorStream and it does give me more info. It appears that some of the commands cannot be found. I suspected that this was the case but I am not sure about how this can be as they all appear to reside in the same directory with the same permissions.
    What is more confusing is output like so:
    SQL> Set Serverout On size 1000000;
    SQL> call dbms_java.set_output(1000000);
    Call completed.
    SQL> execute RunExecCmd('/usr/bin/id');
    OS Command is: /usr/bin/id
    exit value was non-zero: 1
    id: invalid user name: ""
    PL/SQL procedure successfully completed.
    SQL> execute RunExecCmd('/usr/bin/which id');
    OS Command is: /usr/bin/which id
    /usr/bin/id
    PL/SQL procedure successfully completed.
    Regards,
    Bernard

  • Custom command problems on Mac OS X

    I am seeing a problem with custom context commands in our custom connector that is also reproducible with the sample FTP connector shipped with the SDK.  I am using Adobe Drive 3.2.0.41 on Mac OS X 10.8.2
    For my test I am connecting to a FTP server and attempting to run the "File Properties" command from a file's Adobe Drive menu in Finder.  When I first start Drive and connect, the command works and the "File Properties" dialog appears as expected.  However, if I disconnect, reconnect, then browse back to the file and attempt the command again, the File Properties dialog does not appear.  The Finder window does kind of "grey out" as if another dialog is about to be shown, but it never is. I don't see any kind of error messages in the CS5ServiceManager logs. 
    If I disconnect, close Drive, kill the AdobeDriveCS5 and CS5ServiceManager processes with Activity Monitor, and then restart Drive and reconnect, the custom commands work again.
    Has anyone else experienced these kinds of problems with custom commands on Mac OS after a disconnect/reconnect cycle?
    Thanks,
    Brian

    Our only other environment we could set up was on Mac OS 10.7.5, and we could not reproduce the issue.  Based on that it would appear to be something new with Mac OS 10.8.

  • Host Command Problems on 9i Unix

    I am using web froms 9i running on a Unix server with 9iasr2. I am trying to manipulate files on the server not the client. I have tried:
    host('rm -f /mypath/filename.txt')
    host('rm -f /mypath/filename.txt',NO_SCREEN)
    host('touch /mypath/filename.txt')
    host('touch /mypath/filename.txt', NO_SCREEN)
    host('mv /mypath/file1.txt /mypath/file2.txt')
    The file I am trying to delete is one that was transfered using the webutil file transfer.
    I have tried to check the status with:
    IF NOT Form_Success THEN
         Message('Error -- Message not sent.');
    ELSE
         Message('Message Sent.');
    END IF;
    I always get back 'Error...'
    The directories have permission open to everyone. Therefore I would of expected no problems with doing a touch to create a file.
    Any ideas?

    Thanks Ino. That was it, the full path for the unix command itself was missing. I knew it was something simple. =)

  • InDesign command problems

    I work with Adobe CS 5. Using Configurator 3, I have created a panel in InDesign for the commands I use most often. However, I have run into the following problems:
    Some commands (e.g., Margins and Columns or Span Columns and some others) give me only a split-second flash of (presumably) a dialogue box but then nothing more.
    Some commands don't ever respond.
    Some commands work at first, but then, if I edit or recreate the panel, some of the previously working commands (e.g., Insert Hair Space, Clear Overrides, and some others) simply
    stop working.
    Also, I have tried to use some Widgets, but they never show up (e.g., the horizontal rule or the rectangular container). No color adjustments seem to be available for the panel, and nothing adjusts automatically.
    Some commands that I find inside InDesign -- such as the Balance Columns or Unbalance Columns commands that should be available on the control panel -- don't show up in searches on either word.
    I can edit a panel and sometimes get some of the previously working functions back, by removing them and placing them again. But that doesn't work every time (and is annoying to have to do), and even this does not help the commands that have never responded or which only flash me and then are gone. Nor does completely trashing the original panel and recreating from scratch fix the latter condition, though sometimes when I do this, some of the commands that have occasionally worked will again work in the new panel. But usually, some others that worked previously, now won't.
    SUMMARY: It seems the commands that WILL work, won't work consistently. And the ones that never worked yet, never will.
    Configurator 3 seems to be a great idea -- I was very happy to find it the other day, and the presentation video I watched about its upgrades for CS6 seemed encouraging. But so far, it does not seem like an idea whose time has come ... unless there is something I'm doing wrong or some reason why some commands don't work in CS5. If this is the case, please let me know. I also use Photoshop extensively and wanted to create a panel for it, but I'm not going to bother if Configurator 3 is truly so inconsistent as it seems.
    Does anyone have any thoughts, advice or experience with the program along the above lines?

    I'm sorry to hear that. If possible, could you send you panel to [email protected]? I will have a look.
    Do you make sure that you selected InDesign CS5/CS5.5 when creating panel for InDesign CS5?

  • Tux Commander Problem

    Hi,
    i have a problem with tux commander, while browsing my system directories works just fine, whenever i try to click on the application menus i get an error that says:
    An Unhandled exception has occured
    invalid floating point operation
    and my entire desktop locks. I use GNOME if that helps and i installed tuxcmd from community version 0.5.70-1.
    Can anyone help?

    I'm running LXDE with openbox.
    Same error (i think) with doublecmd-git from AUR when clicked on configuration - options:
    [eee@701 ~]$ doublecmd
    Start watching
    [WARNING] Out of OEM specific VK codes, changing to unassigned
    [WARNING] Out of unassigned VK codes, assigning $FF
    Double Commander 0.4.6 alpha
    Revision: 2753M
    Build: 2010/04/26
    Lazarus: 0.9.29-23335
    Free Pascal: 2.4.0
    Platform: i386-Linux-gtk2
    This program is free software released under terms of GNU GPL 2
    (C)opyright 2006-2009 Koblov Alexander ([email protected])
    and contributors (see about dialog)
    Executable directory: /opt/doublecmd/
    Loading configuration...
    Loading icon theme DCTheme
    Theme hicolor not found.
    Creating TFileSystemFileSource
    TColumnsFileView.Create components
    TColumnsFileView.Create components
    frmMain.frmMainShow
    Language dir: /opt/doublecmd/language/
    TApplication.HandleException Access violation
    Stack trace:
    $B744A1FE
    $082AE9AC
    $081D997B
    $081D8BEA
    $0819796C
    $08197565
    $081984DA
    $08197A61
    $08197565
    $081984DA
    $08196601
    $08273985
    $0823FB2E
    $0823EEDC
    $0823EE4F
    $08197565
    $081984DA
    frmMain.Destroy
    Destroying TFileSystemFileSource when refcount=0
    WARNING: TLCLComponent.Destroy with LCLRefCount>0. Hint: Maybe the component is processing an event?
    [eee@701 ~]$

  • Jdk1.2.2 java commands problem on win98, win2000 and XP

    To Whom It May Concern:
    I have just bought a new PC and made 3 partitions on the hard drive, each of them has 10G space, to installed 3 operation systems on each of these partitions, win98se, win2000 and XP. Then I installed jdk1.2.2 on each of these operation systems. However, when I go into the �\jdk1.2.2\bin directory and run the executable commands, eg. javac and java etc., get the following different error messages on different operating systems. I have spent a lot of time on trying to fix these problems, however, no any luck. It will be very appreciated if you super expert can have some help on them.
    win98se
    After run the javac command, get the following error message displayed on a prompt with a Close and a Details buttons.
    This program has performed an illegal operation and will be shut down.
    If the problem persists, contact the program verdor.
    After click the Details button, get the following message:
    JAVA caused an invalid page fault in
    module SYMCJIT.DLL at 019f:500bf974.
    Registers:
    EAX=00000e03 CS=019f EIP=500bf974 EFLGS=00010206
    EBX=006539a0 SS=01a7 ESP=0063f894 EBP=00000e7f
    ECX=0000009f DS=01a7 ESI=00000e7f FS=3557
    EDX=00000003 ES=01a7 EDI=05110010 GS=0000
    Bytes at CS:EIP:
    f3 a5 ff 24 95 48 42 0c 50 8d 49 00 8d 74 31 fc
    Stack dump:
    500bf8c7 0000027f 500c42b0 5007cc24 05110010 00000e7f 0000027f 007608c0 00000283 006a81a8 006539a0 0063f940 006539e8 05110010 006539a0 00000e7f
    win2000
    After run the javac command, get the following error message displayed on a prompt with a OK button.
    java.exe has generated errors and will be closed by Windows. You will need to restart the program.
    An error log is being created.
    XP
    After run the javac command, get the following error message displayed on a prompt with a Send Error Report and Don't Send buttons.
    java.exe has encountered a problem and needs to close. We are sorry for the inconvenience.
    If you were in the middle of something, the informaiton you were working on might be lost.
    Please tell Micorsoft about this problem.
    We have created an error report that you can send to us. We will treat this report as confidential and enonymous.
    To see what this error report contains, click here.
    thanks and regards!
    ZhiCheng

    http://java-virtual-machine.net/tech-faq.html
    is a great link.
    It claims to have a newer, fixed version of problem DLL, SYMCJIT.DLL . Try that.
    The page has an Intel link that is out-of -date. The current Intel link is
    http://support.intel.com/support/processors/pentium4/sb/CS-007990.htm
    "CPUID detection for Intel� Pentium� 4 processor system"
    In two lines, they recommend:
    dir /s SYMCJIT.DLL
    ren SYMCJIT.DLL SYMCJIT.OLD
    Of course, Java will run slower, but JIT is a machine-specific concept and this *.DLL was coded to fail if it did not recognize the CPU type. Maybe not a great decision, but there you are.

  • Unknown command problem

    hi my problem is that i am creating a maze game. the maze is a 2d array of integers. and fed in threw a reader and loaded.
    static void play(){
    try {
    //creates a buffered reader
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    //boolean varible is set to true when the program is running until exit is typed
    boolean running = true;
    while (running){
    //a new String varible which is used for input
    String line = in.readLine();
    //when the game is being played a line string says you typed. + line
    //the +line is what the user typed
    System.out.println("You typed "+line);
    //if the user types south call the south method;
    if(line.startsWith("south")){
    south();
    //if the user types east call the east method
    else if(line.startsWith("east")){
    east();
    //if the user types west call the west method
    else if(line.startsWith("west")){
    west();
    //if the user types north then call the north method
    //this is not case sensitive
    else if(line.equalsIgnoreCase("north")){
    north();
    // check if they have reached the goal
    if(currentX == goalX && currentY == goalY)
    System.out.println("You have reached the goal!");
    //print out the maze after each turn(this was only used for testing purposes)
    print();
    //if the user types exit then change the value of running to false and exit the java console
    //it also calls the equalsIgnoreCase this method will allow entry in any case
    if (line.equalsIgnoreCase("exit")){
    running = false;
    // else
    //          System.out.print( "Unknown command: " + line );
    the problem is that if the user types in an invalid command i want to display this error message.
    when i run the program however i get the error every time even though the move happens the error message is still displayed. i only want the error message to display when an invalid command is typed
    i am a beginner so please use basic language.
    thanks jon

    Use the code formatting tags when you post code.
    hi my problem is that i am creating a maze gameTrue, if you weren't creating a game, you'd probably have no problem.
    threw a readerWhere did you throw it?
    i am a beginner so please use basic language. Put your "unknown command output" and exit check blocks directly after the check for "north"

  • Unix command problem

    Sometimes I'll use the 'bg' command to run a process in the background so I can do other tasks in the same terminal window.
    For some reason, I still get the output of the process even though I said BG, not FG (foreground, of course).
    My roomate runs Linux and he doesn't have this problem, does this make sense to anyone?

    Let me make sure that I understand correctly. I assume that you start a job, then type ctrl-z to suspend it and then type bg to put it into the background.
    If so, and if you are getting output to the screen, then I would conclude that the screen is still the standard output device. What I would do is redirect the output to a file. In fact, you can start the job in background mode. If your process is myjob, then this command
    myjob > outfile &
    will send the output from myjob to the file outfile and the "&" puts the job into the background.
    I hope this helps.
    EMAC G4 1.0 GHz   Mac OS X (10.4.4)  

  • C# using TransactionScope with sqlite command problem

    I have a sqlite data table named Customers. And I use few functions to change customer's data like name, TP, address, Email etc.
    Here are my functions.
    changeName(int id, string newName);
    chgangeTP(int id, string newTP);
    changeAddress(int id, string newAddress);
    changeEmail(int id, string newEmail);
    changeNotes(int id, string newNotes);
    But the problem is if user wants to change both Name and Address at once, he calls both changeName() and changeAddress() functions.
    But the the database file could still be locked when the program calls the second function changeTP().
    So I searched about this and found that TransactionScope could solve this problem.
    Q. I want to know, If I write something like below, would it make sure the commands won't edit the Address while database is locked for change the name ?
    using (SQLiteConnection con = new SQLiteConnection(conString))
    con.Open();
    using (TransactionScope scope1 = new TransactionScope())
    SQLiteCommand commandToChangeName = new SQLiteCommand();
    commandToChangeName.Connection = con;
    commandToChangeName.CommandText = changeNameQuery;
    commandToChangeName.ExecuteNonQuery();
    scope1.Complete();
    using (TransactionScope scope2 = new TransactionScope())
    SQLiteCommand commandToChangeAddress = new SQLiteCommand();
    commandToChangeAddress.Connection = con;
    commandToChangeAddress.CommandText = changeAddressQuery;
    commandToChangeAddress.ExecuteNonQuery();
    scope2.Complete();

    Hi friend,
    SQLite is a third-party software library. This is out of our support. Please ask their official forum
    http://www.sqlite.org/support.html for help. Thanks for your understanding.
    Best regards,
    Kristin
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • At User-command Problem

    Dear Friends
    i have big problem
    below i saved my program code.
    SET PF-STATUS 'SD012_MENU2'. its button also coming to the display screen, my problem is when i click on the "New Remarks" button (FUNC01) i want to call another screen
    but i unable to trigger the any kind of events i done in the screen
    i used AT USER-COMMAND  also but problem still there
    please look this and let me know how can i solve this problem.
    1. Selection Screen (Customer Menu 01) when click on the button ALV list Displaying
    2. In ALV list (Customer Menu 02)  when click on the button list Displaying (list with write statment)
    3. In list (Customer menu 03) when click on the button i want to call screen but in this part any button not working (only display)
    Thanks in advance
    Hope,
      you can understand about my problem. 
    *&      Form  CREATE_REMARKS
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM CREATE_REMARKS .
    *  BREAK ITNR.
      LOOP AT IT_ALLOCATION2 INTO WA_ALLOCATION2.
        IF WA_ALLOCATION2-FLAG = 'X' AND WA_ALLOCATION2-DOCTP = 'LP'.
          SELECT  VBELN POSNR SEQNO CNGDATE CNGTIME CNGUSER REMAK
            INTO  CORRESPONDING FIELDS OF TABLE IT_ZSD012_002
            FROM  ZSD012_002
            WHERE VBELN EQ WA_ALLOCATION2-EBELN
            AND   POSNR EQ WA_ALLOCATION2-POSNR.
          IF SY-SUBRC = 0.
            SET PF-STATUS 'SD012_MENU2'.
            PERFORM WRITE_REMARKS.
            CALL SCREEN '1012' STARTING AT 5 5 .
          ELSE.
            CALL SCREEN 1012 STARTING AT 5 5 .
          ENDIF.
        ENDIF.
      ENDLOOP.
    ENDFORM.                    " CREATE_REMARKS

    Hi,
    Try this
    Create a PF Status,say you have created 'SD012_MENU2'.
    In this PF STATUS create one button.
    Now while using call function 
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
       EXPORTING
         i_callback_program                = sy-repid
         i_callback_pf_status_set          = 'SD012_MENU2'
         i_callback_user_command           = 'C_USER_COMMAND'
         is_layout                         = er_layout
         it_fieldcat                       = t_fieldcat
        TABLES
          t_outtab                          = t_final
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    FORM SD012_MENU2 USING p_extab TYPE slis_t_extab.
      SET PF-STATUS 'SD012_MENU2'.
    ENDFORM. " STATUS
    FORM c_user_command  USING r_ucomm LIKE sy-ucomm
                                                    rs_selfield TYPE slis_selfield.
      IF  sy-ucomm EQ 'POST'.  here post is button name
      PERFORM something.     here you want to go to some other screen.
      ENDIF.
    ENDFORM.

Maybe you are looking for

  • Firefox for Mac preferences shows .qif file format for quicken as "quicktime image format"-wrong application and won't let me select anything else

    Post to Firefox forum; Oct.2011 Re: Quicken 2007; Mac OS 10.5 Problem: can't import or download Qif format files into quicken from bofa or Chase. Mac can't recognize; how do I set preferences in Firefox (or Safari). https://support.mozilla.com/en-US/

  • HT201269 second hand iPhone 5 help please.

    If I buy a second hand iPhone 5 (unblocked) on ios 6 and the previous owner doesn't have/won't give me/can't give me his Apple ID is there anyway I can use this phone?

  • SSH to non standard port

    Hi, We have some routers that we SSH to on a port other than 22. Is there a way in Ciscoworks to configure it to use a different port for some devices? Is CiscoWorks using the perl SSH module as I see a file ssh.pm which could possibly be used to con

  • Include VAT Tax in PO

    Dear Sir, i want to apply VAT 12.5% , 4% & 10% in PO so please suggest me what i have do. Thanks & Regards Sachin Deshmukh

  • Some C3 problems

    hi, i just bought this phone and i can't configure or use Communities, it always says "Network connection problem. Try again later." i'm thinking it's trying to use WLAN or something else except the internet access from Vodafone (the only access to t