Problem starting a scenario from Unix command line

Hello all, many apologies if this is the wrong section of the forum, if it is and you could direct me to the right section I'd be grateful.
If you're still reading and I am in the right section, I have a problem when using the startscen.sh script to start a scenario.
This is what appears to be the relevant part of the log, I've had to change some values in the output for our security people.
lots of java
FirstUser:SUNOPSIS_INSTALL
IndChange:I
IntJavaName:com.sunopsis.dwg.dbobj.SnpRemRep
IObjects:4600
LastDate:2010-07-20 11:08:31.0
LastUser:SUNOPSIS_INSTALL
ObjName:OBJ_SNPREMREP_4600
SecuPos:110]
java.lang.NullPointerException
08/18/2010 01:53:04 PM(main): SnpsConnection : disconnect : DbUrl : jdbc:oracle:thin:<our host and port data> : User : <our user> : ConnectID : INTERNAL_MASTER0
08/18/2010 01:53:04 PM(main): SnpsConnection : disconnect : After ConnectionLst :
DwgJv.main: Exit. Return code:-1
OracleDI: Starting scenario PKG_PROCESS_FILES 001 in context Global ...
08/18/2010 01:53:05 PM(main): DwgCmd: getUniqueThreadIdentifier : :Before : mThreadIDIncrementCounter : 0
08/18/2010 01:53:05 PM(main): DwgCmd: getUniqueThreadIdentifier : :After : mThreadIDIncrementCounter : 1 : Unique ID : 0
08/18/2010 01:53:06 PM(main): DwgTaskSql.supportTransactions : test transactions capability for :
Oracle JDBC driver
10.1.0.5.0
08/18/2010 01:53:06 PM(main): DwgTaskSql.supportTransactions : test transactions capability for :
Oracle JDBC driver
10.1.0.5.0
08/18/2010 01:53:06 PM(main): SnpsQuery.updateExecStatement : prepare request :
Select BATCH_UPDATE_SIZE, CONNECT_TYPE, CON_NAME, DSERV_NAME, FETCH_ARRAY_SERV, FIRST_DATE, FIRST_USER, IND_JNDI, I_CONNECT, I_HOST, I_TECHNO, I_TXT_JAVA_URL, I_TXT_JNDI_URL, I_TXT_WS_BASE_URL, JAVA_DRIVER, JNDI_AUTHENT, JNDI_FACTORY, JNDI_PROTO, JNDI_PWD, JNDI_RESSOURCE, JNDI_USER, LAST_DATE, LAST_USER, PASS, USER_NAME, WS_DEPLOY_MODE from SNP_CONNECT where SNP_CONNECT.I_CONNECT=?
08/18/2010 01:53:06 PM(main): SnpsQuery.updateExecStatement : prepare request :
Select FIRST_DATE, FIRST_USER, I_CONNECT, LAST_DATE, LAST_USER, REP_ID, REP_NAME, REP_TIMESTAMP, REP_TYPE from SNP_REM_REP where REP_NAME = ?
08/18/2010 01:53:06 PM(main): SnpRemRep.getObjectLst : :
08/18/2010 01:53:06 PM(main): SnpsQuery.updateExecStatement : prepare request :
Select AGENT_NAME, AGENT_NAME2, EXT_VERSION, FIRST_DATE, FIRST_USER, HOST_NAME, HOST_PORT, IND_CHANGE, I_AGENT, LAST_DATE, LAST_USER, MAX_THREAD from SNP_AGENT where AGENT_NAME=?
08/18/2010 01:53:06 PM(main): SnpAgent.getObjectLst : :
[AgentName:@
AgentName2:null
ExtVersion:null
FirstDate:2010-06-22 17:47:34.0
FirstUser:SUPERVISOR
HostName:<out host>
HostPort:<our port>
IndChange:U
IAgent:1000
LastDate:2010-06-23 12:40:32.0
LastUser:SUPERVISOR
MaxThread:1000]
08/18/2010 01:53:06 PM(main): SnpsQuery.updateExecStatement : prepare request :
Select AUT_SUPERVISOR, EXPIRACY_DATE, EXT_VERSION, FIRST_DATE, FIRST_USER, IND_CHANGE, I_TXT_DETAIL, I_WUSER, LAST_DATE, LAST_USER, PASS, USER_EXPIRACY_DATE, WUSER_INIT, WUSER_NAME from SNP_USER where WUSER_NAME=?
08/18/2010 01:53:06 PM(main): SnpUser.getObjectLst : :
[AutSupervisor:1
ExpiracyDate:null
ExtVersion:null
FirstDate:2010-06-21 08:22:32.0
FirstUser:SUNOPSIS_INSTALL
IndChange:I
ITxtDetail:null
IWuser:1999
LastDate:2010-06-21 08:24:44.0
LastUser:SUNOPSIS_INSTALL
Pass:hZyX6tylA1y5R.RcRlQdfp
UserExpiracyDate:null
WuserInit:SU
WuserName:SUPERVISOR]
08/18/2010 01:53:06 PM(main): SnpsQuery.updateExecStatement : prepare request :
Select EXT_VERSION, FIRST_DATE, FIRST_USER, IND_CHANGE, INT_JAVA_NAME, I_OBJECTS, LAST_DATE, LAST_USER, OBJ_NAME, SECU_POS from SNP_OBJECT
08/18/2010 01:53:06 PM(main): SnpObject.getObjectLst : :
[ExtVersion:null
FirstDate:2010-06-21 08:21:48.0
FirstUser:SUNOPSIS_INSTALL
IndChange:I
lots of java
If anyone could shed some light I would be very grateful.
izz

Fantastic! Thankyou for your help. I realise my problem was that I copied jdic.jar into the project folder to save effort, but forgot tray.dll. I had seen tray.dll in that error output, but simply hadn't made the connection - you know how it is after staring at the same problem for a whole evening!
As it is, I only had to copy tray,dll into the project folder and it works fine. :D.
Thanks a lot.

Similar Messages

  • Is it possible to fire an ibot from unix command line?

    Hi,
    Is it possible to fire an ibot from unix command line?
    I am looking to setup a setp in a job in grid control which runs a report in order to create a cached file on the obiee server once a prior step has completed. Is this possible?

    Hi,
    Did you check this?
    is it possible to execute ibot..
    Rgds,
    Dpka

  • How to run Discoverer 10g report from unix command line

    Hello Experts,
    I am aware that discoverer report can run through command line using "dis51usr.exe /connect username/passward@connection_string /opendb "DISCOVERER.<<report name>> /export xls"".
    Can we run discoverer 10g report (stored in database) from server location / unix command line? Is there any command?
    Please assist. Thank you.

    Hi Tamir,
    Can you please mention from where we have to execute/run these commands? After setting enviornmental variable, are these commands run from any location or we have to go to particular server location and then execute (ex. from directory BI or else).
    Thank you.

  • How can I start System Preferences from the command line?

    Hello All,
    I have an issue I'm not quite sure how to solve. I have been tasked within my business environment  with tightening security on a Mac Leopard system and I've been granted Admin Rights to do this on a temporary basis.
    The problem is as follows:
    1) The original Sys Admin that set up this system is gone, no longer available.
    2) He was a Dvorak Keyboard fan and set up the system for a Dvorak Keyboard.
    3) The system actually has a standard Apple keyboard and is marked accordingly, i.e., qwerty (Most Users in the building have stopped using this system altogether - a terrible waste of a good system - even though some of their apps can be run normally (US style qwerty settings). The command line is useless, as is texteditor.app and a few others unless you know Dvorak layout)
    5) When I open System Preferences, the Dvorak keyboard checkbox is grayed out and I cannot change it. There is no lock at the bottom of that particular screen for me to unlock.
    6) Even though I select the US Keyboard at Login, and some apps work accordingly (like MatLab for example) the terminal is borderline useless. I spent over 2 hrs yesterday doing what should have been able to be done in about 30 minutes. I estimate a frustrating and mistake prone additional 8 to 10 hours to do what is normally a a 4 hour job at the command-line.
    7) I do not have the time or desire to re-mark all the keys on the keyboard, particularly since it is not my call to do so, nor do I have the time to re-learn Dvorak touch-typing, and finally I do not want to re-load the entire system. I just want to change the darn keyboard to a standard qwerty keyboard that is somewhat useful in a terminal environment with vi, command line, etc. It's either that or I go mildly insane
    This is frustrating as all get-out. The new Admin logged in and was able to uncheck his Dvorak settings (he is not a UNIX guy, nor is he comfortable om Macs), and we were hoping this was a system wide setting, but No. We re-booted the system, I logged in, still Dvorak, and the checkbox was still grayed out.
    So I figure, short of re-loading the entre system and all the applications necesary, I can either start the Systems Preferences GUI using sudo and hopefully that will change system-wide settings, or I can delete the .AppleSetupDone file and resetup the system (if the keyboard settings are part of the setup) without spending a couple of days reloading everything and re-setting up users, networks, etc.
    Needless to say, I am hoping for the easiest and quickest solution to this extremely frustrating and  aggravating problem.
    Thanks.

    For my situation the following C# code does the job:
        Process.Start(
           @"c:\Program Files\National Instruments\CVI71\cvi.exe",
           @"c:\temp\experiment.c" );
    The file must already exist.

  • Problem opening a file from a command line executed program with args

    I have to run my program from the command prompt like this:
    c:\ java Parser template.txt keyvalue.dat output.txt
    I figured out how to read the args in, and I know they are being assigned to the proper variables. My template.txt, etc are in the same directory that I am in when I run the program. They are also all lowercase, just like the command.
    The only error it throws is the one that I coded (Error opening file template.txt) I would make my message better if I knew what the problem was!!!!
    Any ideas (either for what I'm missing or how to improve my error handling) :\
    Jen

    After catching the exception, call the printStackTrace() to have it print out the error it caught, as well as the file and line number it occured on...

  • Launch background process from unix command line and detect if it is runnin

    in Cocoa, I am able to run unix app by using NSTask, it works fine to me. But I want to do the following:
    1. Start up a background process.
    2. Wait to see if this background process has been launched correctly.
    3. If yes, keep running following codes...
    With NSTask, I cannot make sure when the background process has been launched correctly... and other codes just keep running...
    If I do something like:
    while (bgprocess isRunning)
    }

    What exactly do you mean by "launched correctly"? Do you just care that the process has begun? Do you want to make sure it is still running? Do you want to see if there is some signal emitted (either affirmative "I am running" or absence of a child-died signal)?
    Your isRunning example does appear to be in accord with the NSTask docs for "do blah blah blah while the task is running", but that doesn't seem to be what your description says you want to do. Is "blah blah blah" an idle loop until the task has started, or is it something to do while the task is actually running?
    How about looking up the pid of the child process (processIdentifier for the NSTask) and then check whether that process is still running?

  • Problem - reading an abitrary string from the command line in basic swing

    Hi,
    I'm sorry if this problem is a bit basic, but I've only just started swing in Java. Anyway, I'm trying to adapt a basic swing version of the HelloWorld class. When I try to pass an abitrary string from the command line to the label within the class, I get the following error,
    Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 1
            at week2.HelloWorldSwing_commandline.main(HelloWorldSwing_commandline.java:31)
    Java Result: 1I must be missing something because I can't see where the problem is in the following code.
    import javax.swing.*;
    import java.awt.*;
    public class HelloWorldSwing_commandline {
        String message;
        private static void createAndShowGui(String message){
            JFrame.setDefaultLookAndFeelDecorated(true);
            JFrame frame = new JFrame("HelloWorldSwing");
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            JLabel label = new JLabel(message);
            Container content = frame.getContentPane();
            content.add(label);
            frame.pack();
            frame.setVisible(true);
        public static void main(String[ ] args) {
         createAndShowGui(args[1]);
    }Any help would really be appreciated.

    Hi,
    I've tried changing the index value to O in the main method, but I still get the same error.
    I'm running this in NetBeans 4.1, and when I try to run the class I get the error as listed above.
    Any ideas how to correct this error?
    Thanks

  • Starting the nzrView in listen mode from the command line...

    I want to be able to start the nzrViewer in listen mode when I log into windows and then be able to accept an invite for a collaboration session. When I added a shortcut to the "nzrViewer.exe /listen 5550" to my Startup Folder, it launches the Remote Listener just fine, but when I someone invites me to collaborate a Remote Session, I get an error message "Ticket not provided for Rights Authentication."
    I believe that the problem is when I launch the Viewer from the command line, I'm not authenticated to the Zen server, so it can't verify my Rights.
    Does anyone have a better way to do this? Or do I have to log into ZCC and launch the "Remote Management Listener" from there?

    Originally Posted by mcdonalj
    I want to be able to start the nzrViewer in listen mode when I log into windows and then be able to accept an invite for a collaboration session. When I added a shortcut to the "nzrViewer.exe /listen 5550" to my Startup Folder, it launches the Remote Listener just fine, but when I someone invites me to collaborate a Remote Session, I get an error message "Ticket not provided for Rights Authentication."
    I believe that the problem is when I launch the Viewer from the command line, I'm not authenticated to the Zen server, so it can't verify my Rights.
    Does anyone have a better way to do this? Or do I have to log into ZCC and launch the "Remote Management Listener" from there?
    There has been some updates in the documentation for 10.2.2 about remote control from cmd line.
    Check it out, maybe there is a solution to your problem.
    http://www.novell.com/documentation/...a/bcfqcen.html
    http://www.novell.com/documentation/...a/bn8ptx7.html
    Thomas

  • How to execute unix command line from cocoa?

    how to execute unix command line from cocoa?
    for example, if I want to call "ping" from cocoa, how should I do it? and how can I obtain the return value?
    thank you.
    Power G5 Quad Mac OS X (10.4.3)

    The following article may also help:
    http://cocoadevcentral.com/articles/000025.php
    Mihalis.
    Dual G5 @ 2GHz   Mac OS X (10.4.6)  

  • Help Please: How to invoke unix command lines from java?

    I have read past topics. Those are really helpful, but I still haven't got my job done. I tried the following:
    String command1 = "ls -la > ls1.txt";
    Runtime.getRuntime().exec(command1);
    String command2 = "tcsh -c ls -la > ls2.txt";
    Runtime.getRuntime().exec(command2);
    String command4 = "cp keywords.txt copyversion1.txt";
    Runtime.getRuntime().exec(command4);
    String command5 = "tcsh -c cp keywords.txt copyversion2.txt";
    Runtime.getRuntime().exec(command5);
    String command6 = "tcsh -c 'cp keywords.txt copyversion3.txt'";
    Runtime.getRuntime().exec(command6);
    Only "command4" works. Any input will be greatly appreciated.

    Thank you very much Gautam. Your solution certainly works. If you don't mind, I would like to ask you (or anybody who is willing to answer) something else. I am trying to run other types of unix command lines as well. I thought that the format you gave would work for everything. But it doesn't seem so:
    String command1[] = {"tcsh", "-c", "ls -la > ls1.txt "}; // this works as you suggested
    Runtime.getRuntime().exec(command1);
    String command12[] = {"tcsh", "-c", "lynx -dump http://www.yahoo.com > webpage.txt"}; //working fine.
    Runtime.getRuntime().exec(command12);
    String command10[] = {"tcsh", "-c", "ngram-count -text keywords.txt -lm LM10 &"}; //doesn't work
    Runtime.getRuntime().exec(command10);
    String command[] = {"tcsh", "-c", "/u/drspeech/sun4/bin/ngram-count -text keywords.txt -lm LM0 &"}; // doesn't work
    Runtime.getRuntime().exec(command);
    String command13[] = {"tcsh", "-c", "ngc -text keywords.txt -lm LM13"}; // doesn't work
    Runtime.getRuntime().exec(command13);
    String command8 = "ngram-count -text keywords.txt -lm LM8 &"; //doesn't work
    Runtime.getRuntime().exec(command8);
    String command9 = "/u/drspeech/sun4/bin/ngram-count -text keywords.txt -lm LM9 &"; //doesn't work
    Runtime.getRuntime().exec(command9);
    I tried "commandd1" and "command12". Those worked fine. No problemo. However, there's someting else I need to get done for my job; that is "command10". But it just didn't work. I thought maybe, it's because "ngram-count" is not part of the standard UNIX commands. So, I thought I might just add another alias for it in the ".cshrc" file and call it "ngc" instead. Then I tried to call the alias "ngc" instead. But it didn't work also. Then I thought, maybe, I should call it by referencing it from its original directory "/u/drspeech/sun4/bin/ngram-count". That didn't work either. I tried a couple of other combinations. None worked. I would really like to see how to solve this.

  • Starting the 10G server from the command line

    How do I start the 10G APP SERVER FROM THE COMMAND LINE?

    http://download-west.oracle.com/docs/cd/B10464_01/core.904/b10376/start.htm#1007557
    Documentation library for Application Server 10g. It has a section on starting/stopping

  • Unable to run reports from the unix command line

    hi
    all of a sudden i am unable to run reports ( on App server 10g) either from the unix scripts or from the unix command line. But i can run them from the forms.
    Any one have any idead about this.
    Thank you

    thanks all for replying
    i have set the env variables for the session and it worked. Looks like i have to set the oracle_home and ld_library_path every time ( opening a new putty session) i call sqlldr.
    But in a whole i am trying to run sql loader from the forms. Right now we have Oracle app server 10g which forms 10g version. As oracle app server 10g didnt come with sqlldr, we are copied the sqlldr of database on to app server with different home. after this we can run sqlldr ( on app server ) from unix scripts but not from Forms. Then we opened a qurey with oracle about app server 10g not commig with sqlldr and its remedy . But they said that they dont have specific remedy for that and suggested the same what we did.
    So we came up with java package which does the same funtion as host command and trying to run sqlldr which is on the database( ie replacing the host command in the forms with the database funtion). By using that funtion i am able to run the sqlldr from sql plus but not from forms. I couldnt easily debug it as i wont through any error messages.
    Any one have any idea of this ...
    Thank you

  • How can I import eex files into Applications EUL from the unix command line

    How can I import *.eex and *.dis files into an Applications EUL from the unix command line?
    Thanks

    Hi
    The simple answer is you either have to use the client tool DIS51ADM to import files using the command line (Discoverer Admin is a windows only client tool), or the Java command line which needs a browser.
    In theory if you have a browser running on your Unix box you may be able to use the Java command line to make this work.
    Best wishes
    Michael

  • Problem with running a java program from the command line

    I have this code:
    package pkg;
    import jxl.*;
    import java.io.File;
    public class TestClass {
         public static void main(String[] args) {
              try{
                   Workbook book = Workbook.getWorkbook(new File("d:/testWorkspace/excFile.xls"));
                   Sheet sheet = book.getSheet(0);
                   String s=sheet.getCell(4, 2).getContents();
                   System.out.println(s);     
              }catch (Exception e){System.err.println(e);}
    }I've wrote it in Eclipse, added jxl.jar to the buildpath, and it works fine.
    Then I tried to run it from the command line and I did it like this:
    D:\testWorkspace\testProject\bin> java -cp \jxl.jar pkg.TestClassThe result was:
    Exception in thread "main" java.lang.NoClassDefFoundError: pkg/TestClass
    Caused by: java.lang.ClassNotFoundException: pkg.TestClass
    ...but the file TestClass.class DOES exist in the folder d:\testWorkspace\testProject\bin\pkg\ and the file jxl.jar IS on the root of drive D (like I already wrote, it worked fine inside the Eclipse).
    So, my question is: How to run this code from the command line?
    I have no idea what went wrong.
    Can someone help me, please?

    The current directory is not implied in the classpath.
    D:\testWorkspace\testProject\bin> java -cp .;d:\ pkg.TestClassor
    D:\testWorkspace\testProject\bin> java -cp .;d:\jxl.jar pkg.TestClassI always forget which is right since I never work with jars...

  • Launching Rescue & Recovery from a Command Line

    Question - I would like to know how I can launch Rescue & Recovery from a command line.
    Issue that is prompting the question -  My laptop was sitting in my computer bag overnight. The battery was fully charged. I BELIEVE that it was in suspend mode at the time. When I opened it in the morning, there was a message on the screen saying that a backup had not completed successfully. I then noticed that the battery had run down completely.
    My Plan - I would like to launch Rescue & Recovery (as well as the Defrag utility) from Windows Task Scheduler. If I do, then all schedule tasks will be launched and controlled using the same process. Windows Task Scheduler also provides two key scheduling criteria that the IBM Rescue & Recoverry or the IBM Maintenance Manager utilities do not provide -
    #1 - Run this task only when the PC is on AC power.
    #2 - Run this task ony when the computer is idle (so that it doesn't slow down the PC if I happen to be working on it)
     Background Concerns -
    - Having a backup job automatically start when the computer is in my computer bag will run down my battery when I least expect it.
    - The PC may could also be damaged due to overheating, since the sides of the computer bag  block the ventilation holes.
    Additional Info
    - If I go to the ThinkVantage Productivity Center and select the Quick Link for "Backup Now" this will indeed launch a backup on demand. I assume that selecting this option is calling a specific executable file.
    - However, the only two applicable executable files that I see in the C:\Program Files\Lenovo\Rescue and Recovery directory are "mr_gui.exe" and "wizrr.exe". Both of these files launch an interface that requires the user to make a selection. As a result, it doesn't look as if either of these files would work for unattended operation, unless there is some sort of switch that I can put in that will automatically start the backup process.
    - I called the support line (only once so far), but that particular rep did not know of any way to launch Rescue & Recovery other than from the standard R&R user interfaces.
     Any help is greatly appreciated,
    Mathew

    The correct way to invoke a JSP is to make a request to the Server.
    Normally you would use your browser to do this.
    On a unix system, you can use the wget command to invoke a url without using a browser.

Maybe you are looking for

  • Excel view in ALV Grid---- Urgent

    Hi, On executing sample porgram BCALV_FULLSCREEN_DEMO, we get ALV grid display. After that, on Clicking "<b>Microsoft Excel View(controlshiftF7)</b>" we are getting blanck Excel screen view instead of the field values. I have the same scenario requir

  • How to learn Report development techniques

    Hi experts,                I am a beginner to ABAP.                I want to enhance  my Report developing techniques.                How can i develop it.                Is there any site which will help.                I want to if there are any bo

  • Report /save pdf format

    Hi , I am working in 4.6c , my task is to save the report in pdf file format. Previously it is storing in xls format. Now they want it in PDF format. I have to run to the report, it has to generate a pdf file . How to do it. Thanks, Balamurugan .R

  • Ords freezes randomly

    Red Hat 6.5 Tomcat 6.0.24-64 ORDS 2.0.7.91.15.01 APEX DB 4.2.4.00.08 Configure apex and works fine but ORDS freezes randomly, try to get "wget -d -O /tmp/pedro.lis http://localhost:8080/ords/apex_admin" from server but freeze about 3 minutes and work

  • Print Dialog box and User Code on Reader 10

    Hello, I recently updated to Adobe Reader 10 and when I go to print there is apparently a new adobe print dialog box. Which is ok except that it doesn't seem to get my user code info. When I print using the printer... button it prints fine. But if I