Beginners Problem with Z_TUTORIAL1

Hi,
i try to create a web dynpro Z_TUTORIAL1. I edit it with se80, check it and activate it.
Everything is OK.
The URL:
'http://system.hn.company.de:8000/sap/bc/webdynpro/sap/z_tutorial1'
was created.
In C:WINDOWSsystem32driversetchosts i insert the entry:
nn.nnn.nn.nn     system.hn.company.de          # Wedb dynpro Host
nn.nnn.nn.nn = entry in saplogon
When i will execute it, the explorer says: Side cannot be shown.
What mistake have i done?
Thanks for help
regards, Dieter
Edited by: Dieter Gröhn on Apr 4, 2008 11:30 AM

Test your application first using the URL
'http://nn.nnn.nn.nn:8000/sap/bc/webdynpro/sap/z_tutorial1'
This will ensure that there is no problem with the WD application.
If this works the next step would be to figure out why the ip address is not getting resolved from the host name.
The link given by Heidi will help you then.
Thanks,
Alwyn

Similar Messages

  • [SOLVED] Problem with GDM and Gnome3

    Okay, the Topic was more of a trick. Actually I'm havingt two seperate issues; I googled and such, but have not found anything that really answers my question.
    First Issue:
    I have my gdm.service enabled, so it starts on statup. I boot into runlevel 3. Now, whenever I type "startx" the screen becomes black, and after a while I come back into my TTY with something along the lines of "Stopping X server". But without any error, etc. It justs stops. When I know do a systemctl status on my gdm.service, I become that:
    gdm.service - GNOME Display Manager
    Loaded: loaded (/usr/lib/systemd/system/gdm.service; enabled)
    Active: inactive (dead)
    Feb 03 16:47:31 thunderlaptop gdm-simple-slave[475]: WARNING: Failed to give slave programs access to the display. Trying to proceed.
    Feb 03 16:48:22 thunderlaptop gdm-password][623]: pam_unix(gdm-password:auth): authentication failure; logname=(unknown) uid=0 euid=0 tty=:0 ruser= rhost= user=thunderuser
    Feb 03 16:48:33 thunderlaptop gdm-password][626]: pam_unix(gdm-password:session): session opened for user thunderuser by (unknown)(uid=0)
    Feb 03 16:48:33 thunderlaptop gdm-simple-slave[475]: WARNING: Failed to remove slave program access to the display. Trying to proceed.
    Feb 03 17:03:17 thunderlaptop systemd[1]: Stopping GNOME Display Manager...
    Feb 03 17:03:17 thunderlaptop gdm-simple-slave[475]: GLib-GObject-CRITICAL: g_object_ref: assertion `object->ref_count > 0' failed
    Feb 03 17:03:17 thunderlaptop gdm-simple-slave[475]: WARNING: Child process 626 was already dead.
    Feb 03 17:03:17 thunderlaptop gdm-simple-slave[475]: WARNING: Unable to kill session worker process
    Feb 03 17:03:18 thunderlaptop gdm-simple-slave[475]: GLib-GObject-CRITICAL: g_object_unref: assertion `object->ref_count > 0' failed
    Feb 03 17:03:18 thunderlaptop systemd[1]: Stopped GNOME Display Manager.
    After I start it, it puts me into the login screen and I can work just fine with Gnome3. I have no clue where the issuse might be.
    The second is simple to explain - I have no Network symbol in the upper right corner, and Gnome3 says the network service is not compatible with my system.
    Oh, and another issue. When I type something too long, the text does not start a new line in my console resulting in some Visual problems.
    Thanks in advance.
    Last edited by ThunderRush (2013-02-04 12:36:57)

    Blasphemist wrote:
    Isn't GDM starting X and Gnome as it should for you? You shouldn't need to start X unless you want more than one X session. Is that what you are trying to do? After installing Gnome and Gnome-extra, I just use this command to enable GDM. systemctl enable gdm
    What is your networking configuration. The beginners guide has been updated within the last week or two about this due to a change in network interface naming. Please give that a look.
    Which console and shell are you using? Does it have a line wrap configuration option. This is normally automatic but those are my first questions.
    Well, as I said, I start into runlevel 3 and want to start X by myself.
    Yes, I realise that it is not wlan0 anymore, and I know the name of my wlan-interface. It works awesomely fine via wifi-menu <interface>, but gnome3 seems to have struggles? Have not found anything about that.
    I'm using the gnome shell with bash. But the problem occours in a tty2 console as well. I guess it is a problem with .bashrc, but I have no idea what it might be.
    Edit:
    So, the fixes for the problems are...
    1. Reinstall Linux. My Pam was fucked up somewhoe.
    2. systemctl enable NetworkManager and not networkmanager. Please kill me.
    3. I wrote the Colorcodes and escape-characters in a variable and used that in the actual PS1. That fixed it, and the guys over at bash suggest that too.
    Last edited by ThunderRush (2013-02-04 12:36:42)

  • Problem with my MSI P35 Neo MotherBoard [Cannot find harddrive]

    Hi guys.
    So, I've been trying to install Archlinux for a while now, and I've been trying to figure out what problem Is by myself, and I've been asking a bunch of people, but it seems that it's going to a dead end.
    What we figured out, and what we "think" it is, is that the controller on my motherboard does not support the system, and my SATA disk that I am trying to install on.
    What i have tried is that.. I've followed the "beginners guide" to install arch linux, and when i noticed that i got a big problem with my harddrive i asked some people for help, tough we cannot figure out what the problem is..
    Firstly i boot up with my ArchLinux CD.. Then i write km, to change the keyboard layout. Then /arch/setup ofcourse . After that when i try to partitionate and set mountpoints for filsystem it does not show any kind of hardware at all. So i tried to partitionate with gparted and then boot up with Archlinux again to install all my packages etc etc. But it seems like it does not write the information to anything.
    This is a big problem for me cause i really want my Arch distribution to work, so please guys.. Help me!
    EDIT
    Just in case you wanted to know.. My motherboard is a MSI P35 Neo
    Last edited by rahanjam (2008-10-07 14:03:35)

    pointone wrote:*snip*
    I don't have this AHCI option. So i don't know what to do else. Do you know?
    AD28 wrote:*snip*
    Do you mean, that my mobo doesent support linux, and that i cannot have it?

  • [SOLVED] Problem with passwd

    Hey there,
    I came to Arch because I wanted to learn how Linux works and I thought the best way to learn is start from scratch and work my way up to a finished product. Well I've been following the Beginners Guide wiki which has been a good guide to get up and running although it is a little scarce on describing why I was typing these commands and what effect they had... Anyways.
    I can now boot into my new installation and that's the main thing...
    Here's my situation:
    From root I created a new user using "useradd -m -g users -G audio,games,lp,network,optical,power,scanner,storage,video,wheel -s /bin/bash rob"
    I then did "passwd rob" then entered by password twice.
    So my /etc/passwd looks like this:
    I then type "exit" and try and login to rob using my newly set password but it still says my login is incorrect. I then try setting the password yet again from root but I still face the same problem.
    What's going on? What am I doing wrong?
    Many thanks
    Last edited by Robula (2012-11-21 15:41:14)

    Antoine wrote:
    illusionist wrote:Why is there /usr/bash in your /etc/passwd ?
    Yeah. I'm thinking he (mis)typed "-s /usr/bash" instead of "-s /bin/bash" when he created the password.  It doesn't look like put himself in the "users" group either:
    Robula wrote:From root I created a new user using "useradd -m -g users -G audio,games,lp,network,optical,power,scanner,storage,video,wheel -s /bin/bash rob"
    My advice to the OP would be to delete that user and start again, putting himself only in "users" for now. We don't need to be in other groups now, unless we need to be.
    Thank you! I didn't realize I had missed typed /bin/bash as /usr/bash... After correcting this I was able to change my password and login. Such a silly mistake...
    Trilby wrote:
    Robula wrote:I've been following the Beginners Guide wiki ...it is a little scarce on describing why I was typing these commands
    A bit off the main topic - but to address you interest in learning:  I suspect this scarcity is by design.  This is a guide for beginners to get up and running, not necessarily an educational resource.  You will find that for every command it tells you to use, you can also do `man command` and get plenty of additional reading material.
    "man <command>", I've been messing around on and off with Linux for years and I have never come across this gem!
    EDIT: The 'man' command is amazing! I've managed to solve my other problems with netcfg I was having by reading the man file. Thanks a bunch Trilby!
    Thank you all for your replies, patience and helpfulness.
    Last edited by Robula (2012-11-21 15:50:32)

  • Problem with Greek Fonts

    We are a team of Mathematicians from Greece and we are
    beginners of Authorware 7. Our goal is to develop math Quizzes for
    high school students.
    When I select the <Quiz> for the startup menu and the
    Wizard starts, I cannot type Greek fonts (the question or the
    answers for example) only English unfortunately.
    Have anyone any idea what kind of settings I have to do in
    order to accept Greek fonts in the Wizard.
    This problem it’s a big obstacle in our project because
    the questions and the answers must be in Greek.
    I appreciate any helpful advice for this problem.

    "BOSKOS" <[email protected]> wrote in
    message
    news:f51j8q$ge$[email protected]..
    > IF we make my project .exe i have a problem with greek
    fonts in
    > Macromedia Director MX 2004 .Please help me ..
    > thanks.
    hi,
    did you import them into the cast?
    What exactly is the problem?
    Richard

  • Problems with Photoshop cs6 tools

    I just got Photoshop cs6, and I am probably at intermediate level in expertise.  When I try to use the marquee tool, the lasso tool or the quick selection tool on an image, the image just goes black. I have to click back to "Open" on the History the get the actual image back.  I have Windows 7 64 bit. I have never had this problem with other versions of Photoshop.

    Hi there! Because the forum you originally posted in is for beginners trying to learn the basics of Photoshop, I moved your question to the Photoshop General Discussion forum, where you'll get more specialized help.
    To help others help you, please read through this article and provide any additional relevant details.

  • More problems with frames DOH!

    Hokay, so, here is my program:
    import java.awt.*;
    public class ShowAFrame
         public static void main(String args[])
              Frame f;
              String myTitle;
              myTitle = "Test";
              f = new Frame();
              f.setTitle(myTitle);
              f.setSize(500,500);
              f.setIconImage(new ImageIcon("c:/javaprograms/book2.gif").getImage());
              f.show();
    and here is my error message:
    C:\JavaPrograms>javac ShowAFrame.java
    ShowAFrame.java:13: cannot resolve symbol
    symbol : class ImageIcon
    location: class ShowAFrame
    f.setIconImage(new ImageIcon("c:/javaprograms/book2.gif").getImage());
    ................................................... ^
    1 error
    I feel really stupid asking, but since this is a beginners forum, what am i doing wrong?
    btw, the dots are added to manually move the carrot
    Thanks

    hint #1:
    1) When it tells you: "ShowAFrame.java:13: cannot resolve symbol" it's saying that there's a problem with line #13, specifically, that there's a symbol that it doesn't understand.
    2) Look at the carot. What's it pointing to?
    Now, put 1 and 2 together. The compiler is telling you that there's a word on line 13 that it doesn't understand, and then it shows an arrow pointing to a word on line 13. Any guesses as to the culprit?
    hint #2:
    learn about import statments and their purpose

  • Problem with screen size in Premiere Pro CS5?

    I'm making a movie in Premiere Pro CS5 and I've ran into a problem with the screen size. The source screen shows my footage in widescreen (16:9) but my project screen is playing the widescreen footage in standard size (4:3) so it is cutting off some of the footage from the screen. I would like to make my entire project standard size so how do I do that? (Most of the chopped off footage was adjusted in After Effects so does that have anything to do with it?)
    Thanks for any help you can give!

    The properties of the footage are:
    872 x 486
    00;00;25;00, 29.97 fps
    48000 Hz - 32-bit Float - Stereo
    The properties of the sequence are:
    Editing Mode: DV NTSC
    Timebase: 29.97 frames/second
    Video:
    Frame Size: 720 horizontal 480 vertical 4:3
    Pixel Aspect Ratio: D1/DV NTSC (0.9091)
    Fields: Lower Field First
    Display Format: 30fps Drop-frame Timecode
    Audio:
    Sample Rate: 48000 Hz
    Display Format: Audio Samples
    Video Previews:
    Preview File Format: NTSC DV
    Codec: DV NTSC
    Width: 720
    Height: 480
    I'm also quite a beginner at Premiere Pro and basically all the Adobe programs, so are there any good websites (preferably free) that give good help and information for beginners like me?
    Thanks!

  • Any problems with PSE 11

    I'm thinking of getting PSE 11 from Amazon. Currently I have PSE 9. I wonder if there have been anay problems with installation and running from mac users.

    Hi. You’ve posted your question in a forum that is for beginners trying to learn the basics of Photoshop.  I'm moving your question to the Photoshop Elements forum for specialized attention to your situation.

  • Problems with PHCS6 extended - lighting effects (filters)

    What can I do to fix my lighting effects? It blocks the entire program Photoshop CS6 at that moment I click on it.
    I've tried reinstalling the software with no results
    . I would appreciate any help
    Message was edited by: mclarice

    Hi, mjarrott
    My system is Windows 7. (GB Ram 8.00 on a Dell Optplex 980) And Photoshop is my newly purchased in Portuguese, because I'm Brazilian. The problem appears when I try to use the Filters menu - finishes - lighting effects.
    My old version worked just fine ...
    De: mjarrott [email protected]
    Enviada em: quinta-feira, 8 de novembro de 2012 16:16
    Para: mclarice
    Assunto: Problems with PHCS6 extended - lighting effects (filters)
    Re: Problems with PHCS6 extended - lighting effects (filters)
    created by mjarrott <http://forums.adobe.com/people/mjarrott>  in Photoshop for Beginners - View the full discussion <http://forums.adobe.com/message/4833406#4833406

  • Problem with my hand cursor: it shows three little hands

    Hi there,
    I work for many years with CS4 and now suddenly, my hand cursor shows up as three little hands in a row. I don't know what went wrong or how to correct this. Please help
    Bert

    Hi there,
    That works! And my mouse is scrolling a lot smoother too! Thanks a lot! I am very grateful.
    Best Regards
    Bert
    Boteijken 323
    3454 PD De Meern
    Tel:   030-8201164
    Mob: 0655-720309
    Email:  <mailto:[email protected]> [email protected]
    Van: R_Kelly [email protected]
    Verzonden: zaterdag 31 augustus 2013 17:32
    Aan: Roozworks
    Onderwerp: Problem with my hand cursor: it shows three little hands
    Re: Problem with my hand cursor: it shows three little hands
    created by R_Kelly <http://forums.adobe.com/people/R_Kelly>  in Photoshop for Beginners - View the full discussion <http://forums.adobe.com/message/5642784#5642784

  • A problem with threads

    I am trying to implement some kind of a server listening for requests. The listener part of the app, is a daemon thread that listens for connections and instantiates a handling daemon thread once it gets some. However, my problem is that i must be able to kill the listening thread at the user's will (say via a sto button). I have done this via the Sun's proposed way, by testing a boolean flag in the loop, which is set to false when i wish to kill the thread. The problem with this thing is the following...
    Once the thread starts excecuting, it will test the flag, find it true and enter the loop. At some point it will LOCK on the server socket waiting for connection. Unless some client actually connects, it will keep on listening indefinatelly whithought ever bothering to check for the flag again (no matter how many times you set the damn thing to false).
    My question is this: Is there any real, non-theoretical, applied way to stop thread in java safely?
    Thank you in advance,
    Lefty

    This was one solution from the socket programming forum, have you tried this??
    public Thread MyThread extends Thread{
         boolean active = true;          
         public void run(){
              ss.setSoTimeout(90);               
              while (active){                   
                   try{                       
                        serverSocket = ss.accept();
                   catch (SocketTimeoutException ste){
                   // do nothing                   
         // interrupt thread           
         public void deactivate(){               
              active = false;
              // you gotta sleep for a time longer than the               
              // accept() timeout to make sure that timeout is finished.               
              try{
                   sleep(91);               
              }catch (InterruptedException ie){            
              interrupt();
    }

  • Problem with Threads and a static variable

    I have a problem with the code below. I am yet to make sure that I understand the problem. Correct me if I am wrong please.
    Code functionality:
    A timer calls SetState every second. It sets the state and sets boolean variable "changed" to true. Then notifies a main process thread to check if the state changed to send a message.
    The problem as far I understand is:
    Assume the timer Thread calls SetState twice before the main process Thread runs. As a result, "changed" is set to true twice. However, since the main process is blocked twice during the two calls to SetState, when it runs it would have the two SetState timer threads blocked on its synchronized body. It will pass the first one, send the message and set "changed" to false since it was true. Now, it will pass the second thread, but here is the problem, "changed" is already set to false. As a result, it won't send the message even though it is supposed to.
    Would you please let me know if my understanding is correct? If so, what would you propose to resolve the problem? Should I call wait some other or should I notify in a different way?
    Thanks,
    B.D.
    Code:
    private static volatile boolean bChanged = false;
    private static Thread objMainProcess;
       protected static void Init(){
            objMainProcess = new Thread() {
                public void run() {
                    while( objMainProcess == Thread.currentThread() ) {
                       GetState();
            objMainProcess.setDaemon( true );
            objMainProcess.start();
        public static void initStatusTimer(){
            if(objTimer == null)
                 objTimer = new javax.swing.Timer( 1000, new java.awt.event.ActionListener(){
                    public void actionPerformed( java.awt.event.ActionEvent evt){
                              SetState();
        private static void SetState(){
            if( objMainProcess == null ) return;
            synchronized( objMainProcess ) {
                bChanged = true;
                try{
                    objMainProcess.notify();
                }catch( IllegalMonitorStateException e ) {}
        private static boolean GetState() {
            if( objMainProcess == null ) return false;
            synchronized( objMainProcess ) {
                if( bChanged) {
                    SendMessage();
                    bChanged = false;
                    return true;
                try {
                    objMainProcess.wait();
                }catch( InterruptedException e ) {}
                return false;
        }

    Thanks DrClap for your reply. Everything you said is right. It is not easy to make them alternate since SetState() could be called from different places where the state could be anything else but a status message. Like a GREETING message for example. It is a handshaking message but not a status message.
    Again as you said, There is a reason I can't call sendMessage() inside setState().
    The only way I was able to do it is by having a counter of the number of notifies that have been called. Every time notify() is called a counter is incremented. Now instead of just checking if "changed" flag is true, I also check if notify counter is greater than zero. If both true, I send the message. If "changed" flag is false, I check again if the notify counter is greater than zero, I send the message. This way it works, but it is kind of a patch than a good design fix. I am yet to find a good solution.
    Thanks,
    B.D.

  • Problem with threads running javaw

    Hi,
    Having a problem with multi thread programming using client server sockets. The program works find when starting the the application in a console using java muti.java , but when using javaw multi.java the program doesnt die and have to kill it in the task manager. The program doesnt display any of my gui error messages either when the server disconnect the client. all works find in a console. any advice on this as I havent been able to understand why this is happening? any comment would be appreciated.
    troy.

    troy,
    Try and post a minimum code sample of your app which
    does not work.
    When using javaw, make sure you redirect the standard
    error and standard output streams to file.
    Graeme.Hi Graeme,
    I dont understand what you mean by redirection to file? some of my code below.
    The code works fine under a console, code is supposed to exit when the client (the other server )disconnects. the problem is that but the clientworker side of the code still works. which under console it doesnt.
    public class Server{
    ServerSocket aServerSocket;
    Socket dianosticsSocket;
    Socket nPortExpress;
    ClientListener aClientListener;
    LinkedList queue = new LinkedList();
    int port = 0;
    int clientPort = 0;
    String clientName = null;
    boolean serverAlive = true;
    * Server constructor generates a server
    * Socket and then starts a client threads.
    * @param aPort      socket port of local machine.
    public Server(int aPort, String aClientName, int aClientPort){
    port = aPort;
    clientName = aClientName;
    clientPort = aClientPort;
    try{
    // create a new thread
    aServerSocket = new ServerSocket(port) ;
    // connect to the nPortExpress
    aClientListener = new ClientListener(InetAddress.getByName(clientName), clientPort, queue,this);
    // aClientListener.setDaemon(true);
    aClientListener.start();
    // start a dianostic port
    DiagnosticsServer aDiagnosticsServer = new DiagnosticsServer(port,queue,aClientListener);
    // System.out.println("Server is running on port " + port + "...");
    // System.out.println("Connect to nPort");
    catch(Exception e)
    // System.out.println("ERROR: Server port " + port + " not available");
    JOptionPane.showMessageDialog(null, (e.toString()),"ERROR: Server port " + port + " not available", JOptionPane.ERROR_MESSAGE);
    serverAlive = false;
    System.exit(1);
    while(serverAlive&&aClientListener.hostSocket.isConnected()){
    try{
    // connect the client
    Socket aClient = aServerSocket.accept();
    //System.out.println("open client connection");
    //System.out.println("client local: "+ aClient.getLocalAddress().toString());
    // System.out.println("client localport: "+ aClient.getLocalPort());
    // System.out.println("client : "+ aClient.getInetAddress().toString());
    // System.out.println("client port: "+ aClient.getLocalPort());
    // make a new client thread
    ClientWorker clientThread = new ClientWorker(aClient, queue, aClientListener, false);
    // start thread
    clientThread.start();
    catch(Exception e)
    //System.out.println("ERROR: Client connection failure");
    JOptionPane.showMessageDialog(null, (e.toString()),"ERROR: Client connection failure", JOptionPane.ERROR_MESSAGE);
    }// end while
    } // end constructor Server
    void serverExit(){
         JOptionPane.showMessageDialog(null, "Server ","ERROR: nPort Failure", JOptionPane.ERROR_MESSAGE);
         System.exit(1);
    }// end class Server
    *** connect to another server
    public class ClientListener extends Thread{
    InetAddress hostName;
    int hostPort;
    Socket hostSocket;
    BufferedReader in;
    PrintWriter out;
    boolean loggedIn;
    LinkedList queue;      // reference to Server queue
    Server serverRef; // reference to main server
    * ClientListener connects to the host server.
    * @param aHostName is the name of the host eg server name or IP address.
    * @param aHostPort is a port number of the host.
    * @param aLoginName is the users login name.
    public ClientListener(InetAddress aHostName, int aHostPort,LinkedList aQueue,Server aServer)      // reference to Server queue)
    hostName = aHostName;
    hostPort = aHostPort;
    queue = aQueue;
    serverRef = aServer;      
    // connect to the server
    try{
    hostSocket = new Socket(hostName, hostPort);
    catch(IOException e){
    //System.out.println("ERROR: Connection Host Failed");
    JOptionPane.showMessageDialog(null, (e.toString()),"ERROR: Connection to nPort Failed", JOptionPane.ERROR_MESSAGE);     
    System.exit(0);
    } // end constructor ClientListener
    ** multi client connection server
    ClientWorker(Socket aSocket,LinkedList aQueue, ClientListener aClientListener, boolean diagnostics){
    queue = aQueue;
    addToQueue(this);
    client = aSocket;
    clientRef = aClientListener;
    aDiagnostic = diagnostics;
    } // end constructor ClientWorker
    * run method is the main loop of the server program
    * in change of handle new client connection as well
    * as handle all messages and errors.
    public void run(){
    boolean alive = true;
    String aSubString = "";
    in = null;
    out = null;
    loginName = "";
    loggedIn = false;
    while (alive && client.isConnected()&& clientRef.hostSocket.isConnected()){
    try{
    in = new BufferedReader(new InputStreamReader(client.getInputStream()));
    out = new PrintWriter(new OutputStreamWriter(client.getOutputStream()));
    if(aDiagnostic){
    out.println("WELCOME to diagnostics");
    broadCastDia("Connect : diagnostics "+client.getInetAddress().toString());
    out.flush();
    else {       
    out.println("WELCOME to Troy's Server");
    broadCastDia("Connect : client "+client.getInetAddress().toString());
         out.flush();
    String line;
    while(((line = in.readLine())!= null)){
    StringTokenizer aStringToken = new StringTokenizer(line, " ");
    if(!aDiagnostic){
    broadCastDia(line);
    clientRef.sendMessage(line); // send mesage out to netExpress
    out.println(line);
    out.flush();
    else{
    if(line.equals("GETIPS"))
    getIPs();
    else{
    clientRef.sendMessage(line); // send mesage out to netExpress
    out.println(line);
    out.flush();
    } // end while
    catch(Exception e){
    // System.out.println("ERROR:Client Connection reset");
                             JOptionPane.showMessageDialog(null, (e.toString()),"ERROR:Client Connection reset", JOptionPane.ERROR_MESSAGE);     
    try{
    if(aDiagnostic){
    broadCastDia("Disconnect : diagnostics "+client.getInetAddress().toString());
    out.flush();
    else {       
    broadCastDia("Disconnect : client "+client.getInetAddress().toString());
         out.flush();
    // close the buffers and connection;
    in.close();
    out.close();
    client.close();
    // System.out.println("out");
    // remove from list
    removeThreadQueue(this);
    alive = false;
    catch(Exception e){
    // System.out.println("ERROR: Client Connection reset failure");
    JOptionPane.showMessageDialog(null, (e.toString()),"ERROR: Client Connection reset failure", JOptionPane.ERROR_MESSAGE);     
    }// end while
    } // end method run
    * method run - Generates io stream for communicating with the server and
    * starts the client gui. Run also parses the input commands from the server.
    public void run(){
    boolean alive = true;
    try{
    // begin to life the gui
    // aGuiClient = new ClientGui(hostName.getHostName(), hostPort, loginName, this);
    // aGuiClient.show();
    in = new BufferedReader(new InputStreamReader(hostSocket.getInputStream()));
    out = new PrintWriter(new OutputStreamWriter(hostSocket.getOutputStream()));
    while (alive && hostSocket.isConnected()){
    String line;
    while(((line = in.readLine())!= null)){
    System.out.println(line);
    broadCast(line);
    } // end while
    } // end while
    catch(Exception e){
    //     System.out.println("ERRORa Connection to host reset");
    JOptionPane.showMessageDialog(null, (e.toString()),"ERROR: Connection to nPort reset", JOptionPane.ERROR_MESSAGE);
    try{
    hostSocket.close();
         }catch(Exception a){
         JOptionPane.showMessageDialog(null, (a.toString()),"ERROR: Exception", JOptionPane.ERROR_MESSAGE);
    alive = false;
    System.exit(1);
    } // end method run

  • Problem with threads and camera.

    Hi everybody!
    I've a problem with taking snapshot.
    I would like to display a loading screen after it take snapshot ( sometimes i
    have to wait few seconds after i took snapshot. Propably photo is being taken in time where i have to wait).
    I was trying to use threads but i didn't succeed.
    I made this code:
    display.setCurrent(perform);               
            new Thread(new Runnable(){
                public void run() {               
                    while((!performing.isShown()) && (backgroundCamera.isShown())){
                        Thread.yield();
                    notifyAll();
            }).start();
            new Thread(new Runnable(){
                public void run() {
                    try {
                        this.wait();                   
                    } catch(Exception e) {
                        exceptionHandler(e);
                    photo = camera.snapshot();                               
                    display.setCurrent(displayPhoto);
            }).start();This code is sometimes showing performing screen but sometimes no.
    I don't know why. In my opinion performing.isShown() method isn't working correctly.
    Does anyone have some idea how to use threads here?

    Hi,
    I've finally managed to work this fine.
    The code:
           Object o = new Object();
           display.setCurrent(perform);               
            new Thread(new Runnable(){
                public void run() {               
                    while(!performing.isShown()){
                        Thread.yield();
                   synchronized(o) {
                      o.notify();
            }).start();
            new Thread(new Runnable(){
                public void run() {
                    try {
                        synchronized(o) {
                           o.wait(1);
                    } catch(Exception e) {
                        exceptionHandler(e);
                    photo = camera.snapshot();                               
                    display.setCurrent(displayPhoto);
            }).start();

Maybe you are looking for

  • Is there a way to play streaming wmv on iPad through safari?

    Is there a way to play streaming wmv on iPad through safari?

  • L7580 found but does not connect with ver 14 software

    Lenovo R61i LaptopWindows XP SP3.  connecting wirelessly from laptop to router, printer is connected via ethernet cord through a D-Link Dir-655 Router. Updated to Version 14 of all in one driver for L7580.  In set up the setup sees the L7580 on the n

  • Camera Raw 3.7 And DNG 3.7

    Hi. I use Photoshop Cs2 on my PC using Windows XP. Yesterday I down loaded Adobe camera raw 3.7 and DNG 3.7. Now I cannot open my raw files,I get a message saying it is not the right kind of file,also when I convert my raw files to DNG they come into

  • Connecting with a building

    Hi,can anyone help me out, i have three pcs in different rooms, and i have a Cisco work group router, and one of the rooms got an internet connection from a cable modem, and i need to conect the other two rooms so they could access the internet, how

  • User Priveleges

    How can I check if I have the following priveleges for a specific user in Oracle DB: CREATE SESSION, SELECT_CATALOG_ROLE, SELECT ON SYSTEM.SQLPLUS_PRODUCT_PROFILE, SELECT ON SYS.USER$, SELECT ON SYS.LINK$