Solaris 10 crashes while running find command

I have set up solaris 10 on an intel machine. When I run "find" command the system crashes.
Please Help
Thanks in advance

Hi please help me I almost despair,
I have experienced the same problem. When I try to find a file without specifying location (using the shortcut on default desktop in JDS with mouse) the application crashes.
Thereafter I'm not even able to shut down the system as the mouse doesn't seem to react anymore (can point but not click).
I was logged on as root. However maybe it matters that I only just installed Solaris 10 and as I'm a complete beginner with Solaris I don't know if any post-installation configuration is required. Furthermore the same happens with the "Desktop Overview" shortcut (the book icon with the questionmark that appears by default after new installation).
I have chosen the default installation.
System info:
nforce4 motherboard, 2GB RAM
Athlon 64 3800+ x2
Asus geforce 6600gt, driver not yet installed
D-link DWL-G520 wireless pci card, Atheros driver not yet installed (from opensolaris.org)
IDE hard drive for SOLARIS 10
SATA Raid 0 of 2 drives on sil3114 for WIN XP
It would be very kind if someone could help me. I installed Solaris as Ithought it was more stable than Win but probably I am just doing something wrong.

Similar Messages

  • FSCT tool gives a Controller time out while Run Client command

    Hello,
    I am getting a Controller time out error while run client command. I turned on network discovery and start all the services but stil see the time out error;
    DNS Client
    Functional Discovery Resource Publication
    UPnP Device Host
    SSDP Discovery
    I would appreciate prompt assistance on this.
    Thanks,
    Praveen

    Hi,
    Please disable the firewall on my clients, server and turn on "Network discovery" and "File and printer sharing" settings to check the results.
    For more detailed information, please refer to the thread below:
    SCT tool gives a Controller time out while Run Client command
    http://social.technet.microsoft.com/Forums/en-US/a48ae67b-9a9d-4509-9c9c-5d3a468f2cad/fsct-tool-gives-a-controller-time-out-while-run-client-command?forum=fsct
    Best Regards,
    Mandy 
    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.

  • Help please! [using Runtime.exec() to run find command in UNIX]

    Hi guys! im trying to use exec() to run the UNIX find command
    that my application uses. As you can see from my sample code, the find command finds all files ending with html in my home directory. Unfortunately when I run the program it doesn't give me an output, but when I run it on the shell in the same directory as this code is saved, it works perfectly fine.
    Could someone please help me on this one. Many thanks! =)
    import java.io.*;
    import java.lang.String;
    public class RunCommand {
            public static void main(String[] args) {
                    try {
                            String[] command = {"find", "~/", "-name",
                                            "*.html", "-print"};
                            String find_str;
                            Process find_proc = Runtime.getRuntime().exec(
                                            command);
                            DataInputStream find_in = new DataInputStream(
                                            find_proc.getInputStream());
                            try {
                                    while ((find_str = find_in.readLine())
                                                                    != null) {
                                            System.out.println(find_str);
                            } catch (IOException e) {
                                    System.exit(0);
                    } catch (IOException e1) {
                            System.err.println(e1);
                            System.exit(1);
                    System.exit(0);
    }

    I don't see anythi obvious. In both catch blocks, call printSckTrace on the exception yhou caught.
    I think the real culprit is the ~ though.
    ~ is interpreted by some (most?) shells to men home dir. However, when you just exec a command, you don't have a shell to do that interpretation for you, so it's looking for a directory that's literally named ~.
    Either exec a shell (read the man pages for the shell of your choice, but for zsh I think it's "/bin/zsh -c find ~ blah blah blah) or else just put the actual path to your home directory into the string you pass to exec. You can get that from System.getProperty("user.home").

  • Problem while running dos command from java program

    Dear friends,
    I need to terminate a running jar file from my java program which is running in the windows os.
    For that i have an dos command to find process id of java program and kill by using tskill command.
    Command to find process id is,
    wmic /output:ProcessList.txt process where "name='java.exe'" get commandline,processid
    This command gives the ProcessList.txt file and it contains the processid. I have to read this file to find the processid.
    when i execute this command in dos prompt, it gives the processid in the ProcessList.txt file. But when i execute the same command in java program it keeps running mode only.
    Code to run this command is,
    public class KillProcess {
         public static void main(String args[]) {
              KillProcess kProcess = new KillProcess();
              kProcess.getRunningProcess();
              kProcess = new KillProcess();
              kProcess.readProcessFile();
         public void getRunningProcess() {
              String cmd = "wmic /output:ProcessList.txt process where \"name='java.exe'\" get commandline,processid";
              try {
                   Runtime run = Runtime.getRuntime();
                   Process process = run.exec(cmd);
                   int i = process.waitFor();
                   String s = null;
                   if(i==0) {
                        BufferedReader stdInput = new BufferedReader(new
                               InputStreamReader(process.getInputStream()));
                        while ((s = stdInput.readLine()) != null) {
                         System.out.println("--> "+s);
                   } else {
                        BufferedReader stdError = new BufferedReader(new
                               InputStreamReader(process.getErrorStream()));
                        while ((s = stdError.readLine()) != null) {
                         System.out.println("====> "+ s);
                   System.out.println("Running process End....");
              } catch(Exception e) {
                   e.printStackTrace();
         public String readProcessFile() {
              System.out.println("Read Process File...");
              File file = null;
              FileInputStream fis = null;
              BufferedReader br = null;
              String pixieLoc = "";
              try {
                   file = new File("ProcessList.txt");
                   if (file.exists() && file.length() > 0) {
                        fis = new FileInputStream(file);
                        br = new BufferedReader(new InputStreamReader(fis, "UTF-16"));
                        String line;
                        while((line = br.readLine()) != null)  {
                             System.out.println(line);
                   } else {
                        System.out.println("No such file");
              } catch (Exception e) {
                   e.printStackTrace();
              return pixieLoc;
    }     when i remove the process.waitFor(), then while reading the ProcessList.txt file, it says "No such file".
    if i give process.waitFor(), then it's in running mode and program is not completed.
    Colud anyone please tell me how to handle this situation?
    or Is there anyother way to kill the one running process in windows from java program?
    Thanks in advance,
    Sathish

    Hi masijade,
    The modified code is,
    class StreamGobbler extends Thread
        InputStream is;
        String type;
        StreamGobbler(InputStream is, String type)
            this.is = is;
            this.type = type;
        public void run()
            try
                InputStreamReader isr = new InputStreamReader(is, "UTF-16");
                BufferedReader br = new BufferedReader(isr);
                String line=null;
                while ( (line = br.readLine()) != null)
                    System.out.println(type + ">" + line);
                } catch (IOException ioe)
                    ioe.printStackTrace(); 
    public class GoodWindowsExec
        public static void main(String args[])
            try
                String osName = System.getProperty("os.name" );
                String[] cmd = new String[3];
                 if( osName.equals( "Windows 95" ) )
                    cmd[0] = "command.com" ;
                    cmd[1] = "/C" ;
                    cmd[2] = "wmic process where \"name='java.exe'\" get commandline,processid";
                } else {
                    cmd[0] = "cmd.exe" ;
                    cmd[1] = "/C" ;
                    cmd[2] = "wmic process where \"name='java.exe'\" get commandline,processid";
                Runtime rt = Runtime.getRuntime();
                System.out.println("Execing " + cmd[0] + " " + cmd[1]
                                   + " " + cmd[2]);
                Process proc = rt.exec(cmd);
                System.out.println("Executing.......");
                // any error message?
                StreamGobbler errorGobbler = new
                    StreamGobbler(proc.getErrorStream(), "ERROR");           
                          // any output?
              StreamGobbler outputGobbler = new
                    StreamGobbler(proc.getInputStream(), "OUTPUT");
                          // kick them off
                errorGobbler.start();
                outputGobbler.start();
                // any error???
                int exitVal = proc.waitFor();
                System.out.println("ExitValue: " + exitVal);       
            } catch (Throwable t)
                t.printStackTrace();
    }when i execute the above code, i got output as,
    Execing cmd.exe /C wmic process where "name='java.exe'" get commandline,processid
    and keeps in running mode only.
    If i execute the same command in dos prompt,
    CommandLine
    ProcessId
    java -classpath ./../lib/StartApp.jar;./../lib; com.abc.middle.startapp.StartAPP  2468
    If i modify the command as,
    cmd.exe /C wmic process where "name='java.exe'" get commandline,processid  > 123.txt
    and keeps in running mode only.
    If i open the file when program in running mode, no contents in that file.
    If i terminte the program and if i open the file, then i find the processid in that file.
    Can you help me to solve this issue?

  • Error while running ComponentTool command line

    Hi ,
    I am getting following exception while running command line component tool in linux
    ./ComponentTool --list
    csPathUnableToFindParameter(IdcProductName,$IdcResourcesDir/core/config/defaultconfig-$IdcProductName.cfg)
    Please give some pointer to get out of this issue
    Thanks
    Hari
    Edited by: Hari on Apr 2, 2012 4:04 AM

    Hi Jonathan,
    configFileList value is ConfigFileList=$IdcResourcesDir/core/config/defaultconfig-$IdcProductName.cfg
    we have following files in core/config directory
    defaultconfig.cfg launcher-aix.cfg launcher-hpux64.cfg launcher-hpux-ia.cfg launcher-linux-s390.cfg launcher-solaris64.cfg launcher-solaris-x86.cfg
    defaultconfig-idccs.cfg launcher.cfg launcher-hpux.cfg launcher-linux64.cfg launcher-linux-s390x.cfg launcher-solaris-amd64.cfg launcher-win32.cfg
    launcher-aix64.cfg launcher-freebsd.cfg launcher-hpux-ia64.cfg launcher-linux.cfg launcher-osx.cfg launcher-solaris.cfg launcher-windows-amd64.cfg
    Thanks
    Hari

  • 2012 Retina Mac Book Pro (Mountain Lion) crashes while using Finder

    I used the Migration Assistant to move over my settings and file from a 2009 Mac Book Pro to a brand new Retina version. Everything was working well until, on the first day, I needed to use the finder to search for photo files on the hard drive. I am updated to the moset current OS X 10.8.2. My old computer was not giving me this problem. I have used to disc utility to check and repair permission. It doesn't matter if I have ten applications open and running or none. It only crashes while searching in the Finder while using the space bar to preview. Thanks for any help on this!

    You should also ask this in the MacBook Pro forum. This is the forum for the 13” white and black plastic MacBooks that were discontinued in 2010. You should also post this question there to increase your chances of getting an answer.
    https://discussions.apple.com/community/notebooks/macbook_pro

  • Error while running Snapshot Command

    We have Create a MDX Query in Model Designer to display Revenue and Demand Plan units from Demand cube.
    SELECT{ [FiscalCalendar].[FiscalCalendar]} ON COLUMNS,
    { CROSSJOIN({ [Product].[Product] },
    { [Measures].[Revenue Plan],
    [Measures].[Demand Plan Units] })}
    ON ROWS FROM [Demand] QUERY PROPERTIES flattenColumns=true
    and while running a query it is giving correct Output
    Row Count: 2
    Product Measures FiscalCalendar
    Product Revenue Plan $3,777,202,750.00
    Product Demand Plan Units 7,515,860
    On we Logging into Isadmin environment and run a snapshot command which gives error.
    Admin> snapshot data using query test (Our Query name)
    it does not work and gives error, please suggest a valid way to run this command.

    We ran into this, too. It was filed as a bug and will be fixed in the PS1 release (11.1.2.1). Oracle wouldn't commit to a release date tho. As this is core functionality, it would be good if you raised it with Oracle support. This will make it easier to lobby for a patch.
    Edited by: matt on Dec 29, 2010 4:23 PM

  • Adobe Reader XI crashes when using find (command F)

    I have a Mac with intel 10.9 and Adobe crashes everytime I use find. I get the pinwheel loading symbol and then Adobe ALWAYS crashes. Is there a way I can fix this?

    This problem has not been addressed for a long time.  Every time it happened, I reported it.  Each time I had to start activity monitor and force quit Adobe reader.  I uninstalled and reinstalled Adobe Reader and the problem persisted  
    I did find a bypass.
    Open the Applications folder
    Select Adobe Reader
    Right click and move Adobe Reader to Trash
    Find a PDF file in the finder and double click.
    The PDF file will open in Preview and the Find command will work.
    I will check back periodically to see if Adobe had fixed the problem.  So far I have not found any feature unique to Adobe Reader that I cannot live without

  • Running find command cause multiple exceptions.

    I have been playing around with the differences 'between' ls and 'find' commands.
    # find / -type d
    If I run this code with Arch Linux as the main OS, it stalls the OS intermittently and this type of output is displayed.
    http://i107.photobucket.com/albums/m297 … 095343.jpg
    Note: In VirtualBox this code runs fine.
    -- mod edit: read the Forum Etiquette and only post thumbnails http://wiki.archlinux.org/index.php/For … s_and_Code [jwr] --

    @OP sorry for hijacking your thread
    Well, the errors are going to stderr, so you might as well send stdout to /dev/null in your examples. And unfortunately it doesn't work when run as non-root:
    $ find / -xdev >/dev/null
    find: `/usr/share/polkit-1/rules.d': Permission denied
    $ find / -xdev -ignore_readdir_race >/dev/null
    find: `/usr/share/polkit-1/rules.d': Permission denied
    Edit: also it's not "Permission denied" errors being masked avoided in your examples anyway, which is probably the real reason it doesn't work as non-root. But thanks for playing
    Edit2: Thanks, internets:
    find / -type d ! -readable ! -executable -prune -o -print
    Last edited by alphaniner (2015-03-16 19:49:09)

  • GoToMeeting crashes while running Maverick

    Is anyone else having issues with GoToMeeting (6.1.1) while running Maverick?

    Known problem in some cases.  I'm researching an issue that is similar.  Here's an article.  I'm not sure which Macbook pro you have:
    http://support.citrixonline.com/en_US/meeting/knowledge_articles/000138065?title =Mac+10.9+Crashes+When+Using+GoToMeeting%2C+GoToWebinar+and+GoToTraining%7D
    Eric

  • Error while running pdeploy command

    Hi all sun one portal gurus,
    Here i m trying to run pdeploy command to deploy the portlet application packaged into a war file
    After running It gives me output as follows
    Empty File. Request ignored
    Deploying to IWS.
    I don't know where i m missing or doing wrong.
    is there any other way to deploy a portlet application ?
    Thanks in advance
    all reply will be appriciated.
    ~Neeraj

    We ran into this, too. It was filed as a bug and will be fixed in the PS1 release (11.1.2.1). Oracle wouldn't commit to a release date tho. As this is core functionality, it would be good if you raised it with Oracle support. This will make it easier to lobby for a patch.
    Edited by: matt on Dec 29, 2010 4:23 PM

  • Getting errors while running cpio command on software download

    i am trying to run cpio command on BPEL Process Manager (10.1.2.0.2) downloaded software and getting below error.
    $ cpio -icdmv < as_hpux_parisc_integration_101202_disk1.cpio
    Out of phase--get help
    Perhaps the "-c" option shouldn't be used
    i tryed without the c option
    $ cpio -idmv < as_hpux_parisc_integration_101202_disk1.cpio
    Out of phase--get help
    Perhaps the "-c" option should be used
    I download 5 times and had problems all the time .this is on HP 11.23. I tryed with rest of the softwares from oracle site and I am successful

    no luck
    $ cpio -idv < as_hpux_parisc_integration_101202_disk1.cpio
    Out of phase--get help
    Perhaps the "-c" option should be used

  • Getting errors while running cpio command on software downloaded

    i am trying to run cpio command on BPEL Process Manager (10.1.2.0.2) downloaded software and getting below error.
    $ cpio -icdmv < as_hpux_parisc_integration_101202_disk1.cpio
    Out of phase--get help
    Perhaps the "-c" option shouldn't be used
    i tryed without the c option
    $ cpio -idmv < as_hpux_parisc_integration_101202_disk1.cpio
    Out of phase--get help
    Perhaps the "-c" option should be used
    I tryed to download 5 times this is on HP 11.23. I tryed for rest of the softwares from oracle site and I am successful

    no luck
    $ cpio -idv < as_hpux_parisc_integration_101202_disk1.cpio
    Out of phase--get help
    Perhaps the "-c" option should be used

  • Want to disable the password while running rsh command on solaris 10

    Hi,
    After executing rsh command it is asking for a password. I want to login to a target machine with rsh command through the scripts which it shouldnot ask for a password. It will be appreciated if anyone can help me in solving out this issue?

    Please type:
    echo "+" > /.rhosts
    or
    echo "%host name of the machine you want to connect%" > /.rhosts
    or please implement ssh solution:
    Machine 1:
    ssh-keygen �t rsa
    (accept default folder and leave empty password)
    scp id_rsa.pub root@%ip_Machine2%:/root/.ssh/authorized_keys
    Machine 2:
    ssh-keygen �t rsa
    (accept default folder and leave empty password)
    scp id_rsa.pub root@%ip_Machine1%:/root/.ssh/authorized_keys
    Regards,
    Daniel

  • Tomcat crashes while running servlet chat in IE

    Hi all!
    I've seen similar problems posted about three years ago, but I didn't see an answer for it.
    I'd be very grateful if you could help me.
    I'm writing a chat, the code was taken from the J.Hunter "Servlet programming book" O'reilly, "absurdly simple chat", and adjusted (I only need the Http version). It's an applet-servlet chat.
    When executed in IE, Tomcat crashes after a few (usually 5) sent messages. When executed in a debugger (I use Forte, the last available version, 4 update 1) the program works just fine...
    Another question is about debugging an applet, executed in a browser - how do I do this?
    Here is the code for the servlet:
    =================================
    import java.io.*;
    import java.net.*;
    import java.util.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class TryChatServlet extends HttpServlet
    // source acts as the distributor of new messages
    MessageSource source = new MessageSource();
    // doGet() returns the next message. It blocks until there is one.
    public void doGet(HttpServletRequest req, HttpServletResponse res)
    throws ServletException, IOException {
    res.setContentType("text/plain");
    PrintWriter out = res.getWriter();
    // Return the next message (blocking)
    out.println(getNextMessage());
    // doPost() accepts a new message and broadcasts it to all
    // the currently listening HTTP and socket clients.
    public void doPost(HttpServletRequest req, HttpServletResponse res)
    throws ServletException, IOException {
    // Accept the new message as the "message" parameter
    String message = req.getParameter("message");
    // Broadcast it to all listening clients
    if (message != null) broadcastMessage(message);
    // Set the status code to indicate there will be no response
    res.setStatus(res.SC_NO_CONTENT);
    // getNextMessage() returns the next new message.
    // It blocks until there is one.
    public String getNextMessage() {
    // Create a message sink to wait for a new message from the
    // message source.
    return new MessageSink().getNextMessage(source);
    // broadcastMessage() informs all currently listening clients that there
    // is a new message. Causes all calls to getNextMessage() to unblock.
    public void broadcastMessage(String message) {
    // Send the message to all the HTTP-connected clients by giving the
    // message to the message source
    source.sendMessage(message);
    // MessageSource acts as the source for new messages.
    // Clients interested in receiving new messages can
    // observe this object.
    class MessageSource extends Observable {
    public void sendMessage(String message) {
    setChanged();
    notifyObservers(message);
    // MessageSink acts as the receiver of new messages.
    // It listens to the source.
    class MessageSink implements Observer {
    String message = null; // set by update() and read by getNextMessage()
    // Called by the message source when it gets a new message
    synchronized public void update(Observable o, Object arg) {
    // Get the new message
    message = (String)arg;
    // Wake up our waiting thread
    notify();
    // Gets the next message sent out from the message source
    synchronized public String getNextMessage(MessageSource source) {
    // Tell source we want to be told about new messages
    source.addObserver(this);
    // Wait until our update() method receives a message
    while (message == null) {
    try { wait(); } catch (Exception ignored) { }
    // Tell source to stop telling us about new messages
    source.deleteObserver(this);
    // Now return the message we received
    // But first set the message instance variable to null
    // so update() and getNextMessage() can be called again.
    String messageCopy = message;
    message = null;
    return messageCopy;
    =============================
    The code for the applet is
    =============================
    import java.applet.*;
    import java.awt.*;
    import java.io.*;
    import java.net.*;
    import java.util.*;
    public class TryChatApplet extends Applet implements Runnable {
    TextArea text;
    Label label;
    TextField input;
    Thread thread;
    String user;
    public void init() {
    // Check if this applet was loaded directly from the filesystem.
    // If so, explain to the user that this applet needs to be loaded
    // from a server in order to communicate with that server's servlets.
    URL codebase = getCodeBase();
    if (!"http".equals(codebase.getProtocol())) {
    System.out.println();
    System.out.println("*** Whoops! ***");
    System.out.println("This applet must be loaded from a web server.");
    System.out.println("Please try again, this time fetching the HTML");
    System.out.println("file containing this servlet as");
    System.out.println("\"http://server:port/file.html\".");
    System.out.println();
    System.exit(1); // Works only from appletviewer
    // Browsers throw an exception and muddle on
    // Get this user's name from an applet parameter set by the servlet
    // We could just ask the user, but this demonstrates a
    // form of servlet->applet communication.
    user = getParameter("user");
    if (user == null) user = "anonymous";
    // Set up the user interface...
    // On top, a large TextArea showing what everyone's saying.
    // Underneath, a labeled TextField to accept this user's input.
    text = new TextArea();
    text.setEditable(false);
    label = new Label("Say something: ");
    input = new TextField();
    input.setEditable(true);
    setLayout(new BorderLayout());
    Panel panel = new Panel();
    panel.setLayout(new BorderLayout());
    add("Center", text);
    add("South", panel);
    panel.add("West", label);
    panel.add("Center", input);
    public void start() {
    thread = new Thread(this);
    thread.start();
    String getNextMessage() {
    String nextMessage = null;
    while (nextMessage == null) {
    try {
    URL url = new URL(getCodeBase(), "/servlet/TryChatServlet");
    HttpMessage msg = new HttpMessage(url);
    InputStream in = msg.sendGetMessage();
    DataInputStream data = new DataInputStream(
    new BufferedInputStream(in));
    nextMessage = data.readLine();
    catch (SocketException e) {
    // Can't connect to host, report it and wait before trying again
    System.out.println("Can't connect to host: " + e.getMessage());
    try { Thread.sleep(5000); } catch (InterruptedException ignored) { }
    catch (FileNotFoundException e) {
    // Servlet doesn't exist, report it and wait before trying again
    System.out.println("Resource not found: " + e.getMessage());
    try { Thread.sleep(5000); } catch (InterruptedException ignored) { }
    catch (Exception e) {
    // Some other problem, report it and wait before trying again
    System.out.println("General exception: " +
    e.getClass().getName() + ": " + e.getMessage());
    try { Thread.sleep(1000); } catch (InterruptedException ignored) { }
    return nextMessage + "\n";
    public void run() {
    while (true) {
    text.appendText(getNextMessage());
    public void stop() {
    thread.stop();
    thread = null;
    void broadcastMessage(String message) {
    message = user + ": " + message; // Pre-pend the speaker's name
    try {
    URL url = new URL(getCodeBase(), "/servlet/TryChatServlet");
    HttpMessage msg = new HttpMessage(url);
    Properties props = new Properties();
    props.put("message", message);
    msg.sendPostMessage(props);
    catch (SocketException e) {
    // Can't connect to host, report it and abandon the broadcast
    System.out.println("Can't connect to host: " + e.getMessage());
    catch (FileNotFoundException e) {
    // Servlet doesn't exist, report it and abandon the broadcast
    System.out.println("Resource not found: " + e.getMessage());
    catch (Exception e) {
    // Some other problem, report it and abandon the broadcast
    System.out.println("General exception: " +
    e.getClass().getName() + ": " + e.getMessage());
    public boolean handleEvent(Event event) {
    switch (event.id) {
    case Event.ACTION_EVENT:
    if (event.target == input) {
    broadcastMessage(input.getText());
    input.setText("");
    return true;
    return false;
    =====================================
    HttpMessage
    ======================================
    import java.io.*;
    import java.net.*;
    import java.util.*;
    public class HttpMessage {
    URL servlet = null;
    String args = null;
    public HttpMessage(URL servlet) {
    this.servlet = servlet;
    // Performs a GET request to the previously given servlet
    // with no query string.
    public InputStream sendGetMessage() throws IOException {
    return sendGetMessage(null);
    // Performs a GET request to the previously given servlet.
    // Builds a query string from the supplied Properties list.
    public InputStream sendGetMessage(Properties args) throws IOException {
    String argString = ""; // default
    if (args != null) {
    argString = "?" + toEncodedString(args);
    URL url = new URL(servlet.toExternalForm() + argString);
    // Turn off caching
    URLConnection con = url.openConnection();
    con.setUseCaches(false);
    return con.getInputStream();
    // Performs a POST request to the previously given servlet
    // with no query string.
    public InputStream sendPostMessage() throws IOException {
    return sendPostMessage(null);
    // Performs a POST request to the previously given servlet.
    // Builds post data from the supplied Properties list.
    public InputStream sendPostMessage(Properties args) throws IOException {
    String argString = ""; // default
    if (args != null) {
    argString = toEncodedString(args); // notice no "?"
    URLConnection con = servlet.openConnection();
    // Prepare for both input and output
    con.setDoInput(true);
    con.setDoOutput(true);
    // Turn off caching
    con.setUseCaches(false);
    // Work around a Netscape bug
    con.setRequestProperty("Content-Type",
    "application/x-www-form-urlencoded");
    // Write the arguments as post data
    DataOutputStream out = new DataOutputStream(con.getOutputStream());
    out.writeBytes(argString);
    out.flush();
    out.close();
    return con.getInputStream();
    // Converts a Properties list to a URL-encoded query string
    private String toEncodedString(Properties args) {
    StringBuffer buf = new StringBuffer();
    Enumeration names = args.propertyNames();
    while (names.hasMoreElements()) {
    String name = (String) names.nextElement();
    String value = args.getProperty(name);
    buf.append(URLEncoder.encode(name) + "=" + URLEncoder.encode(value));
    if (names.hasMoreElements()) buf.append("&");
    return buf.toString();
    Those files are the only files needed to execute the program.

    The whole Tomcat crashes, and no exception
    displayed.
    Do I have to write the log file, or it's kept by
    Tomcat itself?yes, tomcat writes a log file, you find it in the tomcat dir. but it's just very highlevel. Having a look in it could help.
    Is there a way to write a log file by myself?sure. you could get the log file from tomcat by getting it from the ServletContext:
    ServletContext = getServletContext();
    ServletContext.log("text to log");
    When I view the output window in Forte, it doesn't
    even write that Tomcat crashed.
    I use Tomcat that is installed with the last version
    of Forte(Sun 1 Studio, update 1), I guess it's the
    last version of Tomcat also.No. The lastest is 4.1.12 and i guess it's 4.0.4 with forte.
    Get Tomcat standalone from jakarta.apache.org and try to run your servlet with the standalone tomcat. this could help since i also expirenced problems sometimes with the forte-integrated tomcat.

Maybe you are looking for

  • [SOLVED]openbox-xdgmenu and setting up

    hey guys ive installed openbox-xdgmenu. ( yes i read the wiki, im still confused ), ive added as suggested after installation <menu id="xdg-apps" label="Applications" execute="openbox-xdgmenu /etc/xdg/menus/applications.menu" /> To the top area of my

  • Analog Input Error

    Dear Sir, I was trying to install my NI DAQ card PCI6024E and LabVIEW 6i. Operating System in Windows NT. After installation, when I was trying to test the device using Test Panels, it gave errors(Error Code 10609). May I request you to help me in re

  • Where can I buy the Orange U300s?

    Is anyone stocking the U300s yet? Also, is it just me or is the subject column in this forum area to narrow? 

  • SAP Business Connector 4.8 and Webmethods EDI Package WmEDI

    Hello, we want to upgrade our SAP Business Connector to 4.8 and need to install the EDI package provided by Webmethods earlier. We now figured out, that the EDI package is not provided anymore for download in the SAP Service Marketplace. Any idea, ho

  • Dynamic Contact Layout problem

    I have a set of Contact records coming into CRMOD via an ERP integration flow. User are NOT allowed to make any changes to these Contact records. Users can create new Contact records and are allowed to edit these. My plan was to use Contact Type to b