Problem with consolidation

Hello Experts !
I'm working with intercompany addon.
When i try send data from branch company into consolidation company i get error meassege : exception userdef="false" type="hard"><message>com.sap.b1i.xcellerator.XcelleratorException: XCE001 Nested exception: com.sap.b1i.bizprocessor.BizProcException: BPE001 Nested exception: com.sap.b1i.utilities.UtilException: UTE001 Nested exception: java.lang.RuntimeException: Termination forced by an xsl:message instruction</message><usermsg/><innermsg>Termination forced by an xsl:message instruction</innermsg></exception>.
I checked test connection for every database. All working fine.
Please tell me, what is the problem ?
BR,
Denis

Hi Denis,
Could you please attach the xml file with this discussion?
Regards,
Agneesh
The intercompany team

Similar Messages

  • Hyperion Strategic Finance problem with consolidation

    Hi,
    I'm currently working with HSF version 11.1.1.1 and i have encountered some problems with the consolidator. I have a group of entities, each one with a different structure (subaccounts, dimensions, etc.) and during the consolidation process there is one (and only one) that doesn't consolidate with the others.
    The only difference between the mentioned entity and the others is that this entity use Debt Scheduler, but i have run tests using Debt Scheduler in the other entities and works perfectly.
    Any ideas?
    Greetings and thanks for your time

    FDM has adapters for loading data to both HFM and HSF. It also gives you built in audit capabilities, a powerful intuitive mapping engine and out of the box validation against HFM. You could use flat file extracts from both HFM and HSF as the sources or certainly in the case of HFM-->HSF integrations you could provide a more seamless end to end process by executing an integration script that executes against the HFM API to integrate the extract step.
    ODI certainly has HFM adapters for loading/extracting data, I'm not sure it has the smae for HSF. With ODI you will have to build the majority of the functionality, especially around mapping, it is definately more technical and not friendly enough if there is significant business community involvement in the BAU process.

  • Having a problem with eBooks in my iTunes library.

    As the title says, I'm having some problems with the iTunes library not reflecting what's actually on the disk.
    I add the ebook and it seems to add ok.  The file gets consolidated into /mymusic/books under the author correctly, but the book is missing from the library.  The book is in ePub format, and seems to have the right file extension and shows up as a file of "ePub" type in windows explorer.
    Any ideas?  Is there a way to re-build the library or a portion of it?

    Hi tony paine,
    Welcome to the Support Communities!
    The article below may be able to help you with this.
    Click on the link to see more details and screenshots. 
    iCloud: Keeping the Junk folder consistent between iCloud Mail and OS X Mail
    http://support.apple.com/kb/HT4911
    Cheers,
    - Judy

  • Problem With Business Object and printing job

    Hello,
    We are encountering a problem with the application "Business Objects FINANCE", and we would need your help quickly.
    In the application , itu2019s impossible to print Consolidated Subsidiaries nor the Securities Held. If we try so, the application freezes and we can't do anything but killing the application via the task manager.
    Though, other states can be printed without problem.
    We tried on several different PCs, and the problem occured equally on each one.
    The version installed is 10.5, and we can do any tests that you think would be useful to diagnose problem.
    Our society is AUBAY SA, and our credential to enter in your support website are : S0005386617
    In attachment youu2019ll find a screenshot of the event viewer from the server where the application is install.
    Thanks in advance for your answer,
    best regards.

    check the export parameters of the event triggering workflow.
    If there is a problem, try instantiating the object in your wf based on the key.
    Also check if the wf is able to import the data.
    regards,
    Sandeep Josyula

  • Problem with subsequent deltas after converting Full requests to Repair.

    Hi All,
    We are working on changing an existing system from loading from multiple extractors directly to a cube to loading each extractor to its own DSO and then combining the data in a 'consolidated' DSO and then on the the cube.
    To avoid downtime in the production system when we do the cut-over we have decided to do full loads of historical data up to Sept 2007 and then do delta loading from then on.
    So the steps so far have been:
    1) Full load of data to low-level DSO's. to 09 2007.
    2) Full load of data to 'consolidated' DSO.
    3) Convert Full requests in consolidated DSO to Repair Full Requests (see SAP Note 689964).
    4) Initialise Without Data Transfer to the 'consolidated' DSO.
    5) Delta Initialise from 10 2007 from the source system to the low-level DSO's.
    6) Delta from low-level DSO to consolidated DSO.
    My problem is with step 6 - no records are loaded into the consolidated DSO after delta load of data to the low-level DSO - the load process runs correctly but tells me that there was no data available.
    Can anybody see if there is a problem with my approach - I thought this was the correct way to convert from full loading to delta loading ?
    A Merry Christmas and a Happy New Year to you all
    Graham

    Hi Siva,
    Thanks for the reply.
    I understand that there is only an active table with a write-optimised DSO - but delta processing should still be possible at the request level
    (SAP Help on Write-Optimized DataStore Objects http://help.sap.com/saphelp_nw2004s/helpdata/en/b6/de1c42128a5733e10000000a155106/frameset.htm)
    Since write-optimized DataStore objects do not have a change log, the system does not create delta (in the sense of a before image and an after image). When you update data into the connected InfoProviders, the system only updates the requests that have not yet been posted.
    In my case the 'new' request loaded into the DSO have not been loaded into the connected InfoProvider, so it should be processed.
    Regards
    Graham

  • I recently downloaded Aperture 3 from itunes. I have a problem with faces.

    I recently downloaded Aperture 3 from itunes. I have a problem with Faces.
    In Faces Mode when a particular face is selected it is wrongly including, from the 11.5k photos in my Aperture library, people with different names and photos where people have deliberately not been named. This happens every few photos between the correctly named ones and makes Faces virtually unuseable.
    I took my 27" imac 2.8 GHz Intel Core i5 to Apple in the Trafford Centre where a patient assistant, Andy spent 2 hours trying to resolve the problem to no avail.
    In his attempts, he consolidated my iphoto library into Aperture and even reinstalled Aperture. He confirms I am using the programme properly.
    Iphoto Faces works perfectly and is used regularly by family, grandchildren etc,. I want to move away from iIphoto and use just Aperture as it is intended.
    Can anybody help.

    I have tried all aspects of the troubleshooting basics including the 1st aid section except the rebuild data basis.
    The Apple assistant at the shop suggested I contact Apple as he couldn't resolve this issue.
    His laptop also suffered a snag I also experience where the left & right hand pointers intermittently stop moving through the photos. I have to come out of Faces and back again for it to resume operating correctly.

  • Problems with transferring iTunes Library to new iMac

    I am having a problem with transferring my iTunes library to my new iMac. I have read many of the suggestions posted in this forum along with numerous articles on other sites. I have not seen anyone describe my exact problem.
    When I got my new iMac, I used Migration Assistant to transfer everything (files, applications, settings, etc.) from my old iMac to the new iMac. On my old iMac, the iTunes music folder (i.e., the actual mp3s) are on an external HD, while the iTunes Library file (the database and xml files) were in the /user/Music/ folder on the old iMac.
    After the Migration Assistant was done, the /user/music/ folder and the library files were copied to the new iMac, but the iTunes music folder was not. It is still on the external HD.
    If I open iTunes on the new iMac, iTunes shows me all of my songs, but if I play one, I get the "song can't be found; do you want to find it" error. In iTunes preferences on the new iMac, the "iTunes music folder location" is the new iMac.
    I have the 2 iMacs connected by a firewire cable, but neither iMac recognizes the other computer as being on the same network. That is, in Finder on the new iMac, I cannot see the external HD of the old iMac.
    I can't change the library location on the old iMac, because the new iMac does not appear in Finder or in the "Change Music Folder Location" dialog box.
    I want to move the music folder (the actual mp3s) from the external HD of the old iMac to the INTERNAL HD of the new iMac. I don't need to keep them on the old IMac, as I will be selling that computer. Of course, I want to keep all my playlists, artwork, etc from the old library.
    Does anyone have a suggestion?
    Thanks.

    Never mind. Figured it out. I attached external HD to new iMac and consolidated. Duh.

  • Problem with a fusion of two companies

    Hi,
    Maybe somebody can help me with my problem with implementing FICO modules in two companies which are soon going to become one company. The fusion will probably take place on 1st january, but it can be posponed as well.
    Everything is prepared to run the common mont-end closing procedures and common planning/budgeting for both companies from the 1st january.
    However, there is a great risk, that the fusion will be delayed.
    In that case I suppose it would be better to enter one separate budget for the leading company and upload the budget of the other company after the fusion takes place. These actions have influence on calculating the manufacturing cost of products. It will certainly be different before and after the fusion.
    Maybe you can advise me on this subject, wheter I should make a common budget for both companies no matter the date of fusion or make a buget in SAP only for the leading company and upload the budget of the other company after the fusion, and then recalculate the manufacturing cost of products.
    Best wishes,
    karol

    Hi,
    As of now the time frame is more than 7 months to the go live date of Jan 01st 2008. Definitely, you would have drawn up a project plan for executing this project.
    In my view if the project is on schedule, at this point of time we can still consider making a consolidated budget after fusion. And the project schedule should be monitored closely as the deadline is coming closer. However, if by Oct 01st 2007 the project is not on schedule and there is a likelihood of delay / postponement, the second option of having a separate budget for each company code can be considered.
    A contingency / back up should be prepared and this should be implemented if the original plan is not working out.
    Thanks
    Murali.

  • Problem with carry forwad

    Hi,
    I have a problem with the carry forward business rule.
    I use a consolidation application and I have checked the dimension requirements against the online help and this document http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c000fc27-8a64-2c10-f289-ed7985b4a6d4?quicklink=index&overridelayout=true and it all is set up as per the documents.
    The script I use to call the business rule is
    *RUN_PROGRAM COPYOPENING
    CATEGORY = %CATEGORY_SET%
    CURRENCY = %CONSOLVIEW_SET%
    TID_RA = %TIME_SET%
    OTHER = [ENTITY=%ENTITY_SET%]
    *ENDRUN_PROGRAM
    The error message I get from the system is
    RUN_LOGIC: Datenquelle in der Anwendung LEGAL nicht gefunden fehlgeschlagen
    which translates as
    RUN_LOGIC Datasource not found in application LEGAL
    I have also tried to define a specific datasource in the script by running it like this
    *RUN_PROGRAM COPYOPENING
    CATEGORY = %CATEGORY_SET%
    CURRENCY = %CONSOLVIEW_SET%
    TID_RA = %TIME_SET%
    DATASRC = LOAD
    OTHER = [ENTITY=%ENTITY_SET%]
    *ENDRUN_PROGRAM
    This generated the same error.
    Thanks for your help.

    Your first script logic was probably fine, but it sounds like there is something wrong with your application. Is it possible that one of the following is the case?:
    1. You don't have a datasource dimension in your LEGAL application, or you have a dimension that you have called DATASRC but it is not a datasource type dimension.
    2. Your datasource dimension doesn't have property DATASRC_TYPE or another required property defined.
    3. Your datasource dimension doesn't have a member with the required DATASRC_TYPE property value.
    In addition to the instructions you link to, the help is pretty decent: [http://help.sap.com/saphelp_bpc75_nw/helpdata/en/c1/28639f8d964561b3f6f9d459a6f312/frameset.htm]
    Ethan

  • I can not get my i-tunes to play correctly, problem with library I think.

    I have had this problem for a really long time and I don't know how to fix it. I can open my i-tunes but when I click to play a song it freezes up and says "i-tunes1 not responding." the only way I can get i-tunes to work is to go into programs and repair it.
    I think it is a problem with my library, because I have a folder named i-tunes with my songs in it and a folder named i-tunes1 with my i-tunes library and i-tunes media folder in it. There is nothing in my i-tunes media folder. I have tried consolidating my library and stuff but nothing seems to work. Any suggestions?

    How many computers  do you have authorized to use your Apple ID. There is a limit of 5 computers. Mobile devices are counted differently from computers.
    Please see Authorize your Mac or PC using iTunes.

  • Problems with DHCP and virtual PC connected to an AP in autonomous mode

    I've a virtual machine (Windows 7) on my MacBook running on VMWare Fusion 6 running in bridge mode and can't get an IP address from my DHCP server. NAT mode in VMWare is working, but not an option.
    I've tracked down the problem with Wireshark to the DHCP Offer that is dropped by the Cisco AP:
    On the LAN side I've captured the packets and could see that the DHCP-DISCOVER from the Windows client was answered by the DHCP server with a DHCP-OFFER (all these packets are broadcasts in the same layer 2 network), but the OFFER was not forwarded by the 1142 AP running in autonomous mode, version 15.2(4)JA.
    The problem looks to be similar to a previous discussion with WLCs where a solution is available meanwhile, see:
    https://supportforums.cisco.com/discussion/11350776/dhcp-issue-inside-vm-connected-wireless-network
    http://www.cisco.com/c/en/us/td/docs/wireless/controller/7-4/configuration/guides/consolidated/b_cg74_CONSOLIDATED/b_cg74_CONSOLIDATED_chapter_01110010.html#ID2828
    Is there any solution for APs running in autonomous mode?
    Jan

    It's already a while ago, but recently I got a new router at home and have upgraded the AP to 15.3(3)JAB as well. I'm not sure what the exact reason was, but the problem reappeared. I'm a Mac user and need the bridging mode at home for my home automation system that only comes with some windows tools. Therefore I spend some time to figure out more details and was able to solve the problem.
    It turned out, that the AP needs to get an IP address by DHCP, otherwise the Windows machine never gets an IP address. I was able to see the DHCP discover broadcast from my virtual Windows PC as well as the DHCP offer from my home router. Even the packets from the DHCP relay agent (the AP with ip-helper) and the reply packet from the home router were shown with a DHCP debug on the AP and also with Wireshark on the LAN, but these broadcasts were not forwarded to wireless client. I've used Wireshark to capture packets on the WLAN adapter of my Macbook to verify that these packets were dropped on the AP and not on the Macbook with VMware Fusion. For some unknown reason the AP (acting as a bridge!) does not forward these broadcasts to the wireless client. 
    After playing around it turned out, that it WORKS if the AP itself is configured as a DHCP client and does not have a static address AND there is a DHCP entry for my virtual Windows PC like this:
    ip dhcp pool Macbook
     host 192.168.128.44 255.255.255.0
     client-identifier 0100.5056.1234.56
     dns-server 192.168.128.1
     default-router 192.168.128.1
     domain-name home.local
    It's a bit weird that the AP itself needs to be a DHCP client and I can't explain why, but this setup works for me. I like to keep the DHCP server on my home router, so I've only added this DHCP reservation on the AP. 

  • 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