HELP : "LINUX BASH COMMANDS" Java Native Interface
how can i create a program using Java Native Interface that could run or recognize LINUX BASH COMMANDS
Runtime.getRuntime().exec(<command>); But read this:
http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html
Similar Messages
-
Helpful Linux Bash Scripts for I.T. Admins
I was wondering if you guys had any recommendations for helpful / simple Bash scripts that do helpful tasks in regards to Linux system administration? I have never created or used a Bash shell script but know that many of you guys do. I have no programming experience what so ever so decided to ask if you guys do have one or few scripts that are useful in basic administration tasks, could you please post them or at least point someone who is interested in the right direction?
Thank you so much!I'm no sysadmin but one were to use command-line a lot i would give ZSH a shot. A nicely configured zsh shell can be unbelievably comfortable and is certainly a great tool.
As for scripts I always thought of them as little helpers customized for certain situations. For instance easing repetitive tasks, batching some steps and timing/automating little things. For general purpose I'd probably look at available software first.
Maybe tmux for terminal management, ranger for file management, a tiling window manager for efficiency, ssh and other survaillance/maintenance software? Personally, I'd very much like to hear, too, what software/scripts/.. linux systems admins use to keep the work to a minimum . -
Flex call C ? (like java native interface)
If I have some C program......
Can I change these user interface with FLEX?
how to? can give some document of example??
thanks!!Supposedly Merapi maes it possible to connect AIR apps to native applications,
but in Flex apps I don't think this is possible because of the sandbox.
http://merapiproject.net/
If this post answers your question or helps, please mark it as such.
Greg Lafrance
www.ChikaraDev.com
Flex Development and Support Services -
Java Native Interface Exception Access Violation
Ok i have two programs One that works and one that dosn't
the one that works is a javaMethod that calls a C method. the C method then uses a callsback on a java method that returns an array of integers. that works fine
the Second program uses the same c side code and the same Java Methods from the original are implemented into a program i have that runs a Jframe. anyways when i run this program the Native side does all of its tasks but when its done it crashes Evrything
here is the Native Code
#include <jni.h>
#include "MyNativeInterface.h"
#include <stdio.h>
JNIEXPORT void JNICALL
Java_MyNativeInterface_sayHello(JNIEnv *env, jobject obj)
printf("Hello world!\n");
return;
JNIEXPORT void JNICALL
Java_MyNativeInterface_nativeMethod(JNIEnv *env, jobject obj)
jintArray arr;
jint len;
int *carr;
int i;
jclass cls = (*env)->GetObjectClass(env, obj);
jmethodID mid =
(*env)->GetMethodID(env, cls, "callback", "()[I");
if (mid == NULL) {
return; /* method not found */
printf("In C\n");
arr = (*env)->CallObjectMethod(env, obj, mid);
len = (*env)->GetArrayLength(env,arr);
printf("Array Length = %d\n",len);
carr = (int*)malloc(len);
(*env)->GetIntArrayRegion(env,arr,0,len,(jint*)carr);
for (i=0;i<len;i++)
printf("Array position %d is %d \n",i,carr);
and here is the java class that deals with the native side
import java.util.*;
public class MyNativeInterface extends Object {
private TextAreaDemo gui ;
public MyNativeInterface (TextAreaDemo guiRecieved)
gui = guiRecieved;
static {
System.loadLibrary("hello");
public boolean sendLocoMessage ( byte [] bytesToSend )
try {
System.out.println("number Of Tokens ="+bytesToSend [0]);
} catch (Exception e) {
System.out.println("didn't even get inside2 ok ");
return true;
public void receiveLocoMessage ( byte [] bytesToSend ){
gui.AddMessage ("WOOOOO HOOOOOO");
public native static void sayHello ();
public native void nativeMethod();
private int [] callback() {
int cools [] = new int [32] ;
int i = 0 ;
for (i=0;i<32;i++)
cools [i] = i;
//System.out.println("In Java");
return cools;
the Say Hello Method works just fine
and the array for the C side prints out just fine
then evrything crashes with the following message
An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x6D3276E4
Function=ZIP_Open+0x107
Library=c:\j2sdk1.4.0_01\jre\bin\zip.dll
and a whole BUNCH of current java thread stuff and a list of dynamic libraries.
anyways thanksYour C code asks for the length of the array, then
allocates that many BYTES using malloc. This looks
bogus to me.I agree.
Maybe something like this would be better:
carr = (int*)malloc(len * sizeof jint); -
Is there a way that I can run a snmpwalk / isi devices (to find the status of the disk drives in islon) / any Linux bash command using a 2 state monitor Unix/Linux shell command and target a storage device (Isilon in my case) and not target a Unix/Linux
machine. I tried creating one and it complained saying,
Is there a way I could run a bash command in my isilon storage and use the ouput to determine the state of the monitor? Please let me know
Hari VFor Unix/Linux shell command in Operation Manager to monitor 2 state, you can refer to below link
http://contoso.se/blog/?p=2680
http://stefanroth.net/2012/10/21/scom-2012-linux-two-state-monitor-with-script-in-script/
http://operatingquadrant.com/2012/02/01/opsmgr-2012-unixlinux-authoring-templates-more-information-on-the-shell-command-templates/#more-746
Please remember, if you see a post that helped you please click (Vote As Helpful" and if it answered your question, please click (Mark As Answer). -
hi
It would be helpfull for me if anybody give good reference/ link related JAVA NATIVE ACCESS
i have tried through google and sun search but most of all are java native Interface...
so please
thanks in advanceHello guys,
I have a problem in JNA to create interface method because i must search functions in DLL which have many structures as argument. So i find JNA is difficult but less than JNI.
I would like to give you my specification file and traduce this fonction in the interface of JNA. Please help me !!!!
Here is these C functions :
typedef disco_err (WINAPIV* win_disco_init)(disco_init_conf_t* conf);
typedef enum {
DISCO_ERR_NONE = 0, //!< No error
DISCO_ERR_IO = -1, //!< IO error
DISCO_ERR_DB = -2, //!< Database error
DISCO_ERR_MEM = -3, //!< Memory allocation error
DISCO_ERR_PAR = -4, //!< Invalid parameters
DISCO_ERR_ND = -5, //!< Max number of opened descriptors is
reached
DISCO_ERR_NS = -6, //!< Service not supported
DISCO_ERR_ID = -7, //!< Bad id
DISCO_ERR_FF = -8, //!< Bad file format
DISCO_ERR_EOF = -9, //!< End of file
DISCO_ERR_NOE = -10, //!< No such entity
DISCO_ERR_INT = -11, //!< Database build interrupted
DISCO_ERR_ACCESS = -12, //!< Access denied
DISCO_ERR_EMPTY = -13, //!< Empty information
DISCO_ERR_NO_MORE_RESPONDING_IPOD = -14, //!<no more iPod
DISCO_ERR_OTHER = -30, //!< Other
}disco_err;
typedef struct {
disco_uart_iap_init iap_via_uart;//! Unused
int priority; //!< Priority level of Disco threads
disco_spec_strs_t strs; //!< Special strings configuration
}disco_init_conf_t;
typedef struct {
const char* empty; //!< String for undefined lists elements
const char* root; //!< Name for virtual 'Root' directories
}disco_spec_strs_t;
So it's a real crazy mapping between C and Java. It's too dificult for me. i hope there will be a professional of mapping ? Give me the solution please because i have 20 days to design the modul of my java application.
thanks in advance,
Nicolas. -
Linux net command showing incorrect output if executing from java.
I am trying to execute a net rpc registry on red hat linux box from java using Runtime. I have stored the command in a String variable. When the execute the command from java it throws an error saying that "Invalid registry path" however the same command works fine when executed from linux command terminal.
CODE
import java.io.*;
public class ChkBpower {
public static void main(String[] args) {
checkBpower(128);
public static void checkBpower (int TTL){
int ttl = TTL;
System.out.println("Hello3");
String ip = "20.198.36.28";
String[] reg={"\\","HKLM","\\","SOFTWARE","\\","Marimba"};
System.out.println(reg);
String credentials ="bpwrlab/Administrator%Confmgmt1";//"asiapac/gjagdeosingh%M@nu2281";
String chkBcmd = "net rpc registry enumerate '\\HKLM\\SOFTWARE\\Marimba' -I " + ip + " -U " + credentials ;
String chkBstatus = "net rpc service status cscmarimba -I " + ip + " -U " + credentials + "| grep -b 'service' | awk '{print $4}'";
String startBpower = "net rpc service start cscmarimba -I " + ip + " -U " + credentials;
if (ttl>=100 && ttl<=128){
System.out.println(ttl);
System.out.println(chkBcmd);
try {
Runtime r = Runtime.getRuntime();
Process p = r.exec(chkBcmd);
InputStream stderr = p.getErrorStream();
InputStreamReader isr = new InputStreamReader(stderr);
BufferedReader br = new BufferedReader(isr);
String line = null;
System.out.println("<ERROR>");
System.out.println(br.readLine());
while ( (line = br.readLine()) != null)
System.out.println(line);
System.out.println("</ERROR>");
int exitVal = p.waitFor();
System.out.println("Process exitValue: " + exitVal);
catch (Throwable t)
t.printStackTrace();
}Use exec(String[]), not exec(String), whenever you have argue,nets. Saves all that mucking around and second-guessing and escaping ...
-
Using native interfaces in java
How can you use a native interface in java?
1) By reading the JNI api and writing appropriate code or
2) Stealing some code already done to get you started
(#2 is VERY popular)
And, oddly enough, I have posted 2 articles on here about using JNI in the last few weeks. So, do a search for "smg123 JNI" and you'll find my posts. -
Executing a bash command from Java
I want to execute a bash command from within a Java application on the server. I know how to do simple commands, but this command is killing me. I get nothing back when I send it.
p = Runtime.getRuntime().exec(new String[]{"ps","-ef","","grep","evolution"});
There is also another part where I want the results piped to awk and fetch out the pids. BUt with this not working the rest is a waste for now.
Robbieevgeni00 wrote:
Thank you for assuming the posters' stupidity.I can only see the information that you provide. You didn't say you tried the recommendations.
I read the article and I tried the things he/she is proposing, also the error stream, guess what it outputs: nothing.Maybe you did it wrong. If you didn't do it wrong, then that program you're invoking is poorly written, because it dies in error without producing any error messages.
And I also searched for the exitValue 138, but didn't get much further than that its some system specific value. If you know where I can find more information, I would appreciate if you let me know about it. As jschell pointed out it's probably app specific. You can search the source code and/or documentation of that program to see if they say what 138 means.
Apart from that -- it seems that environment and run directory issues can trip this up. Try checking that stuff out. Maybe your program expects something on the executable PATH that isn't there. Or maybe you're not running it in the working directory that you think you are. -
Problems with Java AQ interface migrating 9i to 10g
Hi!
I've got problems with Java AQ Interface migrating from 9i DB, JDBC, AQ to 10g rel.2 DB, JDBC, AQ
First, i started to occasionally receive NullPointerException in Oracle JDBC 9.2.0.8
java.lang.NullPointerException
at oracle.jdbc.driver.OracleStatement.describe(OracleStatement.java:6439)
at oracle.jdbc.driver.OracleStatement.get_column_index(OracleStatement.java:6203)
at oracle.jdbc.driver.OracleResultSetImpl.findColumn(OracleResultSetImpl.java:1557)
at oracle.jdbc.driver.OracleResultSet.getString(OracleResultSet.java:1543)
at gpnic.messaging.LDAPMessenger.messageFromRS(Unknown Source)
We were using 9.2.0.8 JDBC and 9i and 10g databases.
We decided to go up for 10g r2 JDBC Drivers, and 10.2 AQ but started to get the following errors:
oracle.AQ.AQOracleSQLException: ORA-25216: invalid recipient, either NAME or ADDRESS must be specified
ORA-06512: на "SYS.DBMS_AQIN", line 454
ORA-06512: на line 1
at oracle.AQ.AQOracleQueue.enqueue(AQOracleQueue.java:1267)
at gpnic.comm.messaging.transport.AQTransportAdapter$AQDestanation.send(AQTransportAdapter.java:607)
at gpnic.comm.messaging.transport.OutboundThread.run(OutboundThread.java:83)
I'm specifying address of an agent, but oracle says I am not.
I tried both native AQ and JMS interfaces, bot got the same error. I specify recipient the following way:
'consumer' var contains name of AQ agent and is not null
native AQ interface:
aqSess = AQDriverManager.createAQSession(db_conn);
AQQueue destQ = aqSess.getQueue(schema, queue);
dequeueOptionsOut = new AQDequeueOption();
dequeueOptionsOut.setWaitTime(AQDequeueOption.WAIT_NONE);
dequeueOptionsOut.setConsumerName(consumer);
dequeueOptionsOut.setDequeueMode(AQDequeueOption.DEQUEUE_REMOVE);
dequeueOptionsOut.setNavigationMode(AQDequeueOption.NAVIGATION_FIRST_MESSAGE);
AQMessageProperty mpOut = new AQMessageProperty();
Vector vRecpt = new Vector();
vRecpt.add(new AQAgent(consumer, null, 0));
mpOut.setRecipientList(vRecpt);
AQMessage aqMsg = null;
AQEnqueueOption eOpt = null;
//prepare message
aqMsg = destQ.createMessage();
CLOB chMsg = CLOB.createTemporary(db_conn, true, CLOB.DURATION_SESSION);
chMsg.open(CLOB.MODE_READWRITE);
chMsg.putString(1,msg);
//creating oracle type message
gpnic.db.SDSTypes.SdsMsgT oraMsg = new gpnic.db.SDSTypes.SdsMsgT(chMsg);
AQObjectPayload payload = aqMsg.getObjectPayload();
payload.setPayloadData(oraMsg);
//setting properties
aqMsg.setMessageProperty(mpOut);
//do enqueueOut
eOpt = new AQEnqueueOption();
destQ.enqueue(eOpt, aqMsg); //<- here AQOracleSQLException is thrown
JMS interface to Oracle AQ:
TopicSession session;
TopicConnection connection;
TopicPublisher publisher;
AQjmsAgent[] recipientList;
connection = AQjmsTopicConnectionFactory.createTopicConnection(db_conn);
session = connection.createTopicSession(true, Session.CLIENT_ACKNOWLEDGE);
connection.start();
Topic topic = ((AQjmsSession) session).getTopic(schema, queue);
publisher = session.createPublisher(topic);
recipientList = new AQjmsAgent[1];
recipientList[0] = new AQjmsAgent(consumer, null);
CLOB chMsg = CLOB.createTemporary(db_conn, true, CLOB.DURATION_SESSION);
chMsg.open(CLOB.MODE_READWRITE);
chMsg.putString(1,msg);
//creating oracle type message
gpnic.db.SDSTypes.SdsMsgT oraMsg = new gpnic.db.SDSTypes.SdsMsgT(chMsg);
AdtMessage adtMessage = ((AQjmsSession)session).createAdtMessage();
adtMessage.setAdtPayload(oraMsg);
((AQjmsTopicPublisher) publisher).publish(adtMessage, recipientList); <- here Exception is thrown
We tried the following combinations
9i DB, 9i jdbc, 9i aq - enqueue ok
10g DB, 9i jdbc, 9i aq - enqueue ok
10g DB, 10g jdbc, 10g aq - exception is thrown
Can anyone help?Duplicate post, please check Upgrade 9i to 10g
-
HI,
I have a big problem with Java Native Access when call a function in dll file.
First, I have files xxx.dll,xxx.h (written by my partner) and document for functions.
Second, I am using JNA (java native access) to call the functions.
But, it has some functions that function's result is pass over memory of window.
In document description, it has tow constant: WM_USER = 0x0400, WM_USER_ENV = (WM_USER + 0)
I have just learn, so i don't know about that.
So, my problem is " i don't know how to get result of function that passed over to memory window )
This is my header file: MFSIOCTL.h
// Command
#define CMD_VERSION 'V'
#define CMD_SENSOR 'S'
#define CMD_FLICKER 'L'
#define CMD_GETSTATUS 'A'
#define DEST_1 '1' //front door / Card Reader Flicker Lamp
#define DEST_2 '2' //UPPER FRAME IN POSITION(CDM) / Printer Lamp
#define DEST_3 '3' //Receipt Exit Sensor / Cheque Lamp
#define DEST_4 '4' //Cheque Door Sensor / A4 or Cash Lamp
#define DEST_5 '5' //Bill Hopper Sensor - 2006/06/20 added
#define DEST_ALL '0' //Get all Status
//switch status or FLicker Lamp on/off
#define OPEN '0' //Flicker Off
#define CLOSE '1' //Flicker On
//added at 2004/09/17
#define WM_MFS_IO_OFFSET (WM_USER+0x900)
#define WM_MFS_IO_CHG_EVT (WM_MFS_IO_OFFSET + 0)
extern "C" __declspec(dllexport) BOOL __stdcall MFSIO_Open(HWND hWnd,BYTE comport);
extern "C" __declspec(dllexport) BOOL __stdcall MFSIO_Close(void);
extern "C" __declspec(dllexport) BOOL __stdcall MFSIO_GetVersion(LPSTR lpFWVer,LPSTR lpDLLVer);
extern "C" __declspec(dllexport) BOOL __stdcall MFSIO_LED(BYTE LEDNum,BYTE OnOff);
extern "C" __declspec(dllexport) BYTE __stdcall MFSIO_GetStatus(void);
And this is window message define:
--- Definition of Window Message
: Message is defined in MFSIOCTL.h as bellows.
#define WM_MFS_IO_OFFSET (WM_USER+0x900)
#define WM_MFS_IO_CHG_EVT (WM_MFSS_IO_OFFSET + 0)
MESSAGE WPARAM(Indicator ofDoor or Media) LPARAM(Status of Door or Media)
WM_MFSS_IO_CHG_EVT DEST_1 or OPEN or CLOSE
DEST_2 or
DEST_3 or
DEST_4
Refer to MFSIOCTL.h
In functions, i don't know that they relative with parameters as "WM_MSF_IO_OFFSET, WM_MFS_IO_CHG_EVT'' and parameters use for what?
How to get value of window message?
Please help me. Thank you.
Edited by: QuocTan on Sep 8, 2010 9:31 PM
Edited by: QuocTan on Sep 8, 2010 9:34 PMBut, it has some functions that function's result is pass over memory of window.I have no idea what that means. Please try again in standard English.
In document description, it has two constant: WM_USER = 0x0400, WM_USER_ENV = (WM_USER + 0)
These are Windows constants. I don't understand the relevance.
So, my problem is " i don't know how to get result of function that passed over to memory window)*My* problem is that this is about the 4th time I've read this statement and it doesn't make any sense. What is a 'memory window'? What is 'memory of window'?
#define WM_MFS_IO_OFFSET (WM_USER+0x900)
#define WM_MFS_IO_CHG_EVT (WM_MFS_IO_OFFSET + 0)If these lines are the problem, they have nothing whatsoever to do with JNI or this forum.
In functions, i don't know that they relative with parameters as "WM_MSF_IO_OFFSET, WM_MFS_IO_CHG_EVT'' and parameters use for what?Eh?
How to get value of window message?What?
Please help me.I cannot help either of you until you take the trouble to express yourselves clearly in standard English. Your problem doesn't appear to have anything to do with JNI or JNA. More likely it is an elementary Windows API programming problem, which is irrelevant to this forum and this site. -
Error while running command: "java weblogic.WLST"
I am using Web Logic Server Version: 10.3.3.0.
I have created a script file.when I gave command “java weblogic.WLST”, I get below error:
Exception in thread "main" java.lang.NoClassDefFoundError: weblogic.WLS at gnu.java.lang.MainThread.run(libgcj.so.7rh)
Caused by: java.lang.ClassNotFoundException: weblogic.WLST not found in gnu.gcj.runtime.SystemClassLoader{urls=[file:./], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}} at java.net.URLClassLoader.findClass(libgcj.so.7rh)
at gnu.gcj.runtime.SystemClassLoader.findClass(libgcj.so.7rh)
at java.lang.ClassLoader.loadClass(libgcj.so.7rh)
at java.lang.ClassLoader.loadClass(libgcj.so.7rh)
at gnu.java.lang.MainThread.run(libgcj.so.7rh)
I have created a boot.properties file in the location where my domain is, but that didn’t help.
Contents of boot.properties file:
Password=weblogic1
Username=weblogicHello User,
I am a novice weblogic admin.
I am trying to enroll domain (created before installation of Node Manager) to Node Manager, in the process I got to use:
user_projects/domains/test_domain/bin$ ./setDomainEnv.sh
java weblogic.WLST
but when I use so I am getting the following err
"Exception in thread "main" java.lang.NoClassDefFoundError: weblogic/WLST
Caused by: java.lang.ClassNotFoundException: weblogic.WLST
at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
Could not find the main class: weblogic.WLST. Program will exit. "
I did ./setWLSEnv.sh, and I got my environment has been set, after that I used java weblogic.WLST still ended up with the above error.
Please help me .
Thanks in advance. -
How to execute linux sh command from inside CF
I am using CFMX 7,0,0,91690 Enterprise on Redhat Enterprise Linux 4.9 with Apache webserver 2.0.52. I have a coldfusion template that queries from a Postgresql 8.0 database, copies the data from the queries into a set of files in one folder on the linux server, and then has a CFEXECUTE tag at the very end that calls a bash shell script on the same server. The shell script takes the files from the one folder, merges some of their content together, moves them to another folder, adds header and footer, and sets ownership and permissions. These 2 scripts have been in place and working perfectly for several years now. No changes were made to content, permissions, or ownershop of scripts. Suddenly last Friday the coldfusion script seems to have lost its ability to execute the shell script properly. It does execute it and the shell script attempts to do some of the steps, but the resulting files are missing the content and have the linux environmental variables and their values displayed instead. Clearly its getting an error but that is not being reported back to me. After the CF script ends, if I manually execute the shell script from the linux command line, it works perfectly. I tried giving it more permissions but that did not help. Redhat support suggests I run the script with "sh -x" to get more detailed output for debugging, but I would need to do that from inside the CF script since that is where the problem is. Is it possible to execute a shell script from inside a CF script using a linux "sh" command in some way (instead of the cfexecute, just so I can see debugging info)? Thanks in advance for any suggestions. Julie
Thanks for the suggestion, tried that too:
<cfexecute name="/bin/sh" arguments="-x /bin/siscopy" outputfile="/home/coldfusion/sh_output.txt" timeout="600" />
still didn't work. Script ends with this coldfusion error: Timeout period expired without completion of /bin/sh
It does not complete the task of making the files, and the sh_output.txt file which is supposed to capture the -x output, is empty.
Thanks,
Julie -
Stopping OC4J with a Linux kill command -- is it OK?
Hello All,
Has anyone had any problems with stopping OC4J using the Linux kill command?
Is this the appropriate way to stop OC4J in Linux?
We've had a problem several times where OC4J did not seem to stop completely, and, subsequently, wouldn't start.
I decided to try and avoid using the kill command and instead use the "stop" command employed by MS Windows installations.
But in Linux it produced errors in the oc4j log file.
The stop command I am testing right now in Linux is identical to its counterpart in Windows. It looks like this:
java -jar $ORACLEBI_HOME/oc4j_bi/j2ee/home/admin.jar ormi://localhost:23791 oc4jadmin `~/.ops/.ex oc4jadmin` -shutdown
The `~/.ops/.ex oc4jadmin` part is just a crafty Linux way of hiding the password.
The errors generated in OracleBIData/web/log/javahost.out.log are as follows:
<br>
<br>
<br>
<br>
Mon Apr 27 18:24:14 PDT 2009
Stopping Java Host...
Apr 27, 2009 6:24:14 PM MessageProcessorImpl processMessage
WARNING: Unexpected exception. Connection will be closed
java.io.EOFException
at com.siebel.analytics.web.sawconnect.sawprotocol.SAWProtocol.readInt(SAWProtocol.java:167)
at com.siebel.analytics.javahost.MessageProcessorImpl.processMessage(MessageProcessorImpl.java:133)
at com.siebel.analytics.javahost.Listener$Job.run(Listener.java:223)
at com.siebel.analytics.javahost.standalone.SAJobManagerImpl.threadMain(SAJobManagerImpl.java:205)
at com.siebel.analytics.javahost.standalone.SAJobManagerImpl$1.run(SAJobManagerImpl.java:153)
at java.lang.Thread.run(Thread.java:619)
Apr 27, 2009 6:24:15 PM MessageProcessorImpl processMessage
WARNING: Unexpected exception. Connection will be closed
java.io.EOFException
at com.siebel.analytics.web.sawconnect.sawprotocol.SAWProtocol.readInt(SAWProtocol.java:167)
at com.siebel.analytics.javahost.MessageProcessorImpl.processMessage(MessageProcessorImpl.java:133)
at com.siebel.analytics.javahost.Listener$Job.run(Listener.java:223)
at com.siebel.analytics.javahost.standalone.SAJobManagerImpl.threadMain(SAJobManagerImpl.java:205)
at com.siebel.analytics.javahost.standalone.SAJobManagerImpl$1.run(SAJobManagerImpl.java:153)
at java.lang.Thread.run(Thread.java:619)
waiting for javahost process to complete (pid:28305)
./shutdown.sh: line 51: wait: pid 28305 is not a child of this shell
Apr 27, 2009 6:24:16 PM Startup shutdown
INFO: Server shutdown request received.
Apr 27, 2009 6:24:16 PM Acceptor listen
SEVERE: Server socket was closed.
java.nio.channels.AsynchronousCloseException
at java.nio.channels.spi.AbstractInterruptibleChannel.end(AbstractInterruptibleChannel.java:185)
at sun.nio.ch.ServerSocketChannelImpl.accept(ServerSocketChannelImpl.java:152)
at com.siebel.analytics.javahost.Acceptor.listen(Acceptor.java:92)
at com.siebel.analytics.javahost.ApplicationImpl.listen(ApplicationImpl.java:41)
at com.siebel.analytics.javahost.standalone.Main.listen(Main.java:33)
at com.siebel.analytics.javahost.standalone.Main.main(Main.java:28)
Apr 27, 2009 6:24:16 PM Application listen
INFO: Stopped listening socket port
Apr 27, 2009 6:24:16 PM Application listen
INFO: Closed open sockets
Apr 27, 2009 6:24:16 PM Main listen
INFO: Canceled pending jobs. Exiting
<br>
<br>
<br>
<br>
I have absolutely no idea what these error messages mean.
I saw that there is an option to do a "-shutdown force" as opposed to just "-shutdown". Should I use that?
Or should I revert back to using the Linux kill command?
Thank you very much for any help or insight.
-sbHello All,
The start and stop scripts that I posted earlier in this discussion thread are outdated. In fact, the stop script is wrong.
The ones I am posting below are actually what I am using right now. These are still work in progress, though.
Just wanted to post the correct stuff in case someone is interested.
obistart.sh
<br>
<br>
# Start the BI server.
echo "$(basename "$0"): Now initiating the BI server startup..."
$ORACLEBI_HOME/setup/run-sa.sh start
success=
while \[ ! $success \]
do
status=`tail -1 $ORACLEBI_HOME/server/Log/NQServer.log 2>/dev/null`
\[\[ $status =~ "Oracle BI Server started" \]\] && success=yes
done
echo $status
echo
# Start the presentation server.
echo "$(basename "$0"): Now initiating the presentation server startup..."
$ORACLEBI_HOME/setup/run-saw.sh start
sleep 3
echo
# Start the OC4J server.
echo "$(basename "$0"): Now initiating the OC4J server startup..."
nohup $ORACLEBI_HOME/setup/oc4j -start > $ORACLEBI_HOME/setup/nohup_oc4j_start.out &
echo $! > $ORACLEBI_HOME/setup/nohup_oc4j_start.pid
<br>
<br>
obistop.sh
<br>
<br>
# Stop OBIEE BI server.
echo "$(basename "$0"): Now initiating the BI server shutdown..."
$ORACLEBI_HOME/setup/run-sa.sh stop
sleep 3
echo
# Stop OBIEE Presentation server.
echo "$(basename "$0"): Now initiating the presentation server shutdown..."
$ORACLEBI_HOME/setup/run-saw.sh stop
sleep 3
echo
# Stop OBIEE oc4j application server.
echo "$(basename "$0"): Now initiating the OC4J server shutdown..."
\[\[ -e $ORACLEBI_HOME/setup/nohup_oc4j_stop.out \]\] && rm -f $ORACLEBI_HOME/setup/nohup_oc4j_stop.out
$ORACLEBI_HOME/setup/oc4j -shutdown -port 23791 -password `~/.ops/.ex oc4jadmin` 2>$ORACLEBI_HOME/setup/nohup_oc4j_stop.out
if \[ `grep Error nohup_oc4j_stop.out` \]
then
echo "$(basename "$0"): OC4J shutdown error. The server might be already down. Look in $ORACLEBI_HOME/setup/nohup_oc4j_stop.out for info."
exit 1
fi
oc4j_pid=`cat $ORACLEBI_HOME/setup/nohup_oc4j_start.pid`
cpid=`ps no-headers ppid $oc4j_pid | head -n1 | awk '{print $1}'`
\[\[ -n $cpid \]\] && kill $cpid
\[\[ -n $oc4j_pid \]\] && kill $oc4j_pid
<br>
<br>
Thank you.
-sb -
Adobe Acrobat 9 Pro Crashes When Scanning with Canon DR-4010C Native Interface
When doing a custom scan in Adobe Acrobat Pro 9.2, I need to be able to show the Canon DR-4010C native interface so that it will auto-crop when I am scanning small documents such as receipts, etc. I have another model scanner that does it automatically (a Canon Dr-2510C) but I need that same functionality when I scan with the 4010. I can see the setting when I configure Adobe to use the scanner's native interface however when I choose "auto detection" on the size (in the scanner's interface) and press scan, Adobe immediately crashes. Please help!
Also, your log says: Acrobat.exe, version: 9.0.0.332
Looks like you have not updated Acrobat after install. The current version is 9.4.6. Also try updating Acrobat, Help->Check for updates
Maybe you are looking for
-
Hi, I would like to setup DMZ in my network to access 5 servers from internet. We have total 6 public IP's from service provider. We have firewall ASA 5510 with 4 ports. 1 is used for outisde interface with public IP, another 2 are set in redundant
-
Queue Block (SMQ2) and no GATP invoking for Sales Order
Hi, I am encountering two issues: - Every time I activate any integration model for customer, materials etc. it queues up in SMQ2 in ECC and on processing there it goes to the APO - When I create sales order it does not invoke the GATP screen. Howeve
-
How To Add new fields in report ( S_ALR_87012026 ) output
Dear All Experts , .. I want to add Asset text description in the out but layout of report S_ALR_87012026 please um really need a help thanks for advance .
-
My Iphone charge only last a few hours why?
My iphone only holds a charge for about 6 hours now. I don't know why
-
Can't uninstall Quicktime component
Hi, I'm experiencing problems in trying to install new iTune version. In order to fix that, I would need to uninstall Quicktime. When I try to do that, I can uninstall everything, except for the component "npqtplugin2.dll", because the system tells m