Java with Derby embedded and threads - problem?

Hello,
been developing java app and recently switched to derby database. At first i insert some data into derby and my app populates fine. However when my app creates a new thread (to do something in background and then updates the derby database) it all goes wrong. The thread is not responding and the database is not updating..
What could this be?
Could this be a database issue with java,jdbc, derby or just threads in general?
It was working before previously with my previous database: MySQL which runs in a separate process but an embedded derby just wont make it happen.

you're probably right that i'm making conclusions early but i've done everything i could and the feeling is like you want to give up. You feel de-motivated.
I've been switching a lot of databases and trying them out and it seems that i can't get it to work with the embedded databases for some reasons. Could it possibly be some other stuff that i'm running in the background.
Because, my background tasks is really heavy:
- it creates a few threads to do tasks which some of them recieve information remotely from other machines, a few loops here and there, a few other threads with starts up a few processes (external exe's) to do some work and finally a few threads to do some calculation & update the database..
But on the brightside i know my app works with my local MySQL database which runs in a separate process. I can also get my app to work with an online database on a hosting site - but the connection is very very slow (20 times as much time it takes to connect, i actually timed it.)

Similar Messages

  • Java Audio Metronome | Timing and Speed Problems

    Hi all,
    I’m starting to work on a music/metronome application in Java and I’m running into some problems with the timing and speed.
    For testing purposes I’m trying to play two sine wave tones at the same time at regular intervals, but instead they play in sync for a few beats and then slightly out of sync for a few beats and then back in sync again for a few beats.
    From researching good metronome programming, I found that Thread.sleep() is horrible for timing, so I completely avoided that and went with checking System.nanoTime() to determine when the sounds should play.
    I’m using AudioSystem’s SourceDataLine for my audio player and I’m using a thread for each tone that constantly polls System.nanoTime() in order to determine when the sound should play. I create a new SourceDataLine and delete the previous one each time a sound plays, because the volume fluctuates if I leave the line open and keep playing sounds on the same line. I create the player before polling nanoTime() so that the player is already created and all it has to do is play the sound when it is time.
    In theory this seemed like a good method for getting each sound to play on time, but it’s not working correctly.
    At the moment this is just a simple test in Java, but my goal is to create my app on mobile devices (Android, iOS, Windows Phone, etc)...however my current method isn’t even keeping perfect time on a PC, so I’m worried that certain mobile devices with limited resources will have even more timing problems. I will also be adding more sounds to it to create more complex rhythms, so it needs to be able to handle multiple sounds going simultaneously without sounds lagging.
    Another problem I’m having is that the max tempo is controlled by the length of the tone since the tones don’t overlap each other. I tried adding additional threads so that every tone that played would get its own thread...but that really screwed up the timing, so I took it out. I would like to have a way to overlap the previous sound to allow for much higher tempos.
    I posted this question on StackOverflow where I got one reply and my response back explains why I went this direction instead of preloading a larger buffer (which is what they recommended). In short, I did try the buffer method first, but I want to also update a “beat counter” visual display and there was no way to know when the hardware was actually playing the sounds from the buffer. I mentioned that on StackOverflow and I also asked a couple more questions regarding the buffer method, but I haven’t received any more responses.
    http://stackoverflow.com/questions/24110247/java-audio-metronome-timing-and-speed-problems
    Any help getting these timing and speed issues straightened out would be greatly appreciated! Thanks.
    Here is my code...
    SoundTest.java
    import java.awt.*; 
    import java.awt.event.*; 
    import javax.swing.*; 
    import javax.swing.event.*; 
    import java.io.*; 
    import javax.sound.sampled.*; 
    public class SoundTest implements ActionListener { 
        static SoundTest soundTest; 
        // ENABLE/DISABLE SOUNDS 
        boolean playSound1  = true; 
        boolean playSound2  = true; 
        JFrame mainFrame; 
        JPanel mainContent; 
        JPanel center; 
        JButton buttonPlay; 
        int sampleRate = 44100; 
        long startTime;  
        SourceDataLine line = null;  
        int tickLength; 
        boolean playing = false; 
        SoundElement sound01; 
        SoundElement sound02; 
        public static void main (String[] args) {        
            soundTest = new SoundTest(); 
            SwingUtilities.invokeLater(new Runnable() { public void run() { 
                soundTest.gui_CreateAndShow(); 
        public void gui_CreateAndShow() { 
            gui_FrameAndContentPanel(); 
            gui_AddContent(); 
        public void gui_FrameAndContentPanel() { 
            mainContent = new JPanel(); 
            mainContent.setLayout(new BorderLayout()); 
            mainContent.setPreferredSize(new Dimension(500,500)); 
            mainContent.setOpaque(true); 
            mainFrame = new JFrame("Sound Test");                
            mainFrame.setContentPane(mainContent);               
            mainFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); 
            mainFrame.pack(); 
            mainFrame.setVisible(true); 
        public void gui_AddContent() { 
            JPanel center = new JPanel(); 
            center.setOpaque(true); 
            buttonPlay = new JButton("PLAY / STOP"); 
            buttonPlay.setActionCommand("play"); 
            buttonPlay.addActionListener(this); 
            buttonPlay.setPreferredSize(new Dimension(200, 50)); 
            center.add(buttonPlay); 
            mainContent.add(center, BorderLayout.CENTER); 
        public void actionPerformed(ActionEvent e) { 
            if (!playing) { 
                playing = true; 
                if (playSound1) 
                    sound01 = new SoundElement(this, "Sound1", 800, 1); 
                if (playSound2) 
                    sound02 = new SoundElement(this, "Sound2", 1200, 1); 
                startTime = System.nanoTime(); 
                if (playSound1) 
                    new Thread(sound01).start(); 
                if (playSound2) 
                    new Thread(sound02).start(); 
            else { 
                playing = false; 
    SoundElement.java
    import java.io.*; 
    import javax.sound.sampled.*; 
    public class SoundElement implements Runnable { 
        SoundTest soundTest; 
        // TEMPO CHANGE 
        // 750000000=80bpm | 300000000=200bpm | 200000000=300bpm 
        long nsDelay = 750000000; 
        long before; 
        long after; 
        long diff; 
        String name=""; 
        int clickLength = 4100;  
        byte[] audioFile; 
        double clickFrequency; 
        double subdivision; 
        SourceDataLine line = null; 
        long audioFilePlay; 
        public SoundElement(SoundTest soundTestIn, String nameIn, double clickFrequencyIn, double subdivisionIn){ 
            soundTest = soundTestIn; 
            name = nameIn; 
            clickFrequency = clickFrequencyIn; 
            subdivision = subdivisionIn; 
            generateAudioFile(); 
        public void generateAudioFile(){ 
            audioFile = new byte[clickLength * 2]; 
            double temp; 
            short maxSample; 
            int p=0; 
            for (int i = 0; i < audioFile.length;){ 
                temp = Math.sin(2 * Math.PI * p++ / (soundTest.sampleRate/clickFrequency)); 
                maxSample = (short) (temp * Short.MAX_VALUE); 
                audioFile[i++] = (byte) (maxSample & 0x00ff);            
                audioFile[i++] = (byte) ((maxSample & 0xff00) >>> 8); 
        public void run() { 
            createPlayer(); 
            audioFilePlay = soundTest.startTime + nsDelay; 
            while (soundTest.playing){ 
                if (System.nanoTime() >= audioFilePlay){ 
                    play(); 
                    destroyPlayer(); 
                    createPlayer();              
                    audioFilePlay += nsDelay; 
            try { destroyPlayer(); } catch (Exception e) { } 
        public void createPlayer(){ 
            AudioFormat af = new AudioFormat(soundTest.sampleRate, 16, 1, true, false); 
            try { 
                line = AudioSystem.getSourceDataLine(af); 
                line.open(af); 
                line.start(); 
            catch (Exception ex) { ex.printStackTrace(); } 
        public void play(){ 
            line.write(audioFile, 0, audioFile.length); 
        public void destroyPlayer(){ 
            line.drain(); 
            line.close(); 

    Thanks but you have never posted reply s0lutions before ?? And F 4 is definitely not 10 times faster as stated before I upgraded !!

  • Hi i have i problem with my iphone and the problem is the security question i have forgot the answers

    Hi i have i problem with my iphone and the problem is the security question i have forgot the answers
    I understand German and Italian i littlebit English

    You need to ask Apple to reset your security questions; this can be done by phoning AppleCare and asking for the Account Security team, or clicking here and picking a method, or if your country isn't listed in either article, filling out and submitting this form.
    They wouldn't be security questions if they could be bypassed without Apple verifying your identity.
    (106626)

  • Getting Java set up - javac and PATH problems..

    Just as the title suggests, I am brand new to Java. I am getting the seemingly "classic" newbie Java error in comman prompt: " 'javac' is not recognized as an internal or external command, operable program or batch file." I have read help sites and threads, and I do believe it must be something wrong with my PATH environments, but I can't figure out what. Also, I have tried several different java versions, so I can only believe that my current version is jdk1.6.0_03 (According to the official website I have 6, Version 3). I am running Windows XP (Service Pack 2).
    Here is the exact text as listed in the variable PATH: C:\ WINNT; C:\ WINNT\ SYSTEM32; C:\ jdk1.6.0_ 03\ bin
    I also have another variable called CLASSPATH, which is: .;C:\Program Files\Java\j2re1.4.2\lib\ext\QTJava.zip
    A friend suggested that I learn with DrJava, because he said that is the way he learned, but of course that only helped with learning some basic code, and it only postponed the problem I am now having to face.
    I know I am utterly useless, and I am sure that whatever alien language I just put up there must be just way off base, but please bear with this poor beginner. Any help is useful, literally any, and I am going to wipe any previous thoughts of what I thought was correct away.

    Are you able to set the PATH without any errors on command line ? Or another best way is to set the path in the user and system variables.
    Go to
    MyComputers->Properties->Advanced (tab)and click the
    Environment VariablesAbove you will see
    User variables
    IF there is already a variable name PATH then add the
    C:\jdk1.6.0_03\binElse
    Click the
    New type PATH as the Variable Name
    and the C:\jdk1.6.0_03\bin as the variable value.
    Re-start your command prompt and check with the javac or java commands.

  • Dynex 32" Flat screen with green lines and audio problem

    I bought thisDynex 32" flat screen in September and it has started to develop problems. It will be on and green lines start forming and go away. Then the sound goes in and out. The green lines come back and the sound works sparsely. I am wondering what is the issue. I have tried unconnected everything; leaving the power off for hours. Somedays it works great or sometimes out of the blue it just craps out but lately I am getting more bad days than good ones. Any help or suggestions would be great. All I got from Dynex was that I had to bring the TV back to BestBuy and have a master technician look at it....

    Sounds like it needs servicing.  If you bought it in September it should still be under the 1 yr manufacturer warranty.  You can bring it into the store with your receipt and have customer service send it to service for you.  It will be returned to the store and can be picked up when service is complete.  I will say, however, warranty service can be lengthy.  Expect to not have your TV for a few weeks.
    If you like posts that I make, be sure to click on the star underneath my name. Thanks!

  • Macbook Pro Freezes with Screen Distortion and other problems...

    So I've had my 13' Macbook Pro for about 9 months and I am encountering problems with it. My Macbook would sometimes freeze at random and the screen would distort as well, also, the screen would react whenever I would move the laptop around by either reverting back to a normal screen (still frozen) or more distortion which leads me to believe that it might have something to do with the hardware. But all this is temporarily solved when I force shut off my laptop (hold the power button for 3 seconds) and restart it. It can start up again with no problem, but this happens again, more early than usual and becomes more consatnt. However this is lessened whenever I don't use my laptop for an extended amount of time, but it does happens again whenever I do use it for some time.
    Another problem I've been encountering is that, at times after I force shut off the laptop, my computer would not turn back on. Instead, the laptop beeps 3 times, pause, then beep 3 times again. I have looked into this and discovered that this means that I have "No Good Banks"..........I have no idea what this means but I guess it means that I might have faulty RAM.
    What I ask is that if anyone has had similar problems and if they know what to do or what exactly what the problem is so that I might be able to do something about it.
    Info about Macbook:
    Processor 2.5 GHz Intel Core i5
    Memory: 4GB 1600 Mhz DDR3

    Bump. Anyone have any ideas on this?
    I "shut it off" last night, but when I turned it on again tomorrow, it turned out it didn't quite shut down?
    It booted to the grey log-in screen, basically.
    I've also come to the realisation that my charger isn't registered (the LED isn't orange/green like it usually is), and I can't get a "battery status" (I'm sure it has another name, I just don't know what it is) when I click on the little button on the left hand side of the laptop. Usually, it would show green dots/LEDS to tell me how far along it's charged, but now I get nothing.
    I get the distinct feeling something's up with my battery, and maybe my RAM (because of the repeated triple beep after shutting down last night).

  • 6500 sup 720 with MPLS, GRE and FWSM problem

    We have 6500 sup 720 with MPLS configured and FWSM in transparent  mode. We also terminate GRE tunnels on the same 6500.
    After implementing the command “mls mpls tunnel-recir” GRE tunnels are hardware switched (which we want them to be), but we don’t have any more connection from locations thru GRE tunnels to servers behind FWSM.
    Does anybody have idea how to solve this problem?

    Hi,
    not sure what you mean exactly.
    the command “mls mpls tunnel-recir” is needed to avoid packets corruption in cases where the Supervisor engine is handling both the GRE header encapsulation and the MPLS label stack imposition. Since it cannot do it in one single shot (without causing random corruption) recirculation is needed. Nevertheless its presence does not influence whether the GRE traffic is handled in hardware or in software. Even without it, IF THE GRE TUNNELS ARE CORRECTLY CONFIGURED (meaning that each GRE tunnels has its unique source address etc.), the traffic is handled in hardware.
    However since you say that after you enabled it you don't have connectivty anymore I suppose that some issue related to recirculation is happening (i.e. traffic ends up in the wrong internal vlan after recirculation).
    Unfortunately the support forum is not meant to help in this case as in-depth troubleshooting is required. For that you need a TAC case.
    regards,
    Riccardo

  • Ipod classic with a new and unique problem

    <post edited by host>
    I have read a number of help topics, forum posts and apples suggestions in fixing problems and have had no luck so I had to start a new topic.
    - Ok, A while ago i was using my ipod one fine 'sunny' day (if that's relevant) and it just went bleap, dead. Wouldnt do anything at all. Eventually when I got it home I reset it and the apple logo would come up whenever I pressed any button, this is still the case. After i reset it, the folder with the lightning image appears then the apple logo and thats all it does, even after charging it. PS: I am using it on windows XP, but have a Mac laptop also if I can use that to my advantage somehow, it doesn't read on there either atm.
    When I try plugging it into the computer it does not come up in itunes. I have reset the ipod, reset the computer, updated itunes (which is exactly the same every update, in terms of anything useful), and have also gone into the drive manager and had a look around.
    When the ipod is plugged in, it comes up 'do not disconnect' then after a while there is a Tick and it says 'ok to disconnect'. meanwhile there is a battery with a lightning bolt moving as though it is charging.
    In the device manager, the ipod appears when I plug it in, but then within about 10 seconds it dissapears and I notice that the ipod has resorted back to the apple logo, almost as if it has self destructed. But then somehow it ends up getting back to the screen with the big Tick and 'ok to disconnect'.
    Now, one time when the ipod appeared in device manager I managed to open it before it dissapeared and it said no driver was installed. I tried to reinstall a driver but obviousely it could not recognise that I had the ipod plugged in.
    I hope I have remembered everything. Please somebody help!

    See the following helps in your case ..........................................................
    If a sad iPod icon or an exclamation point and folder icon appears on your iPod’s screen, or with sounds of clicking or HD whirring, it is usually the sign of a hard drive problem and you have the power to do something about it now. Your silver bullet of resolving your iPod issue – is to restore your iPod to factory settings.
    http://docs.info.apple.com/article.html?artnum=60983
    If you're having trouble, try these steps at different levels one at a time until the issue is resolved. These steps will often whip your iPod back into shape.
    Make sure you do all the following “TRYs”
    A. Try to wait 30 minutes while iPod is charging.
    B. Try another FireWire or USB through Dock Connector cable.
    C. Try another FireWire or USB port on your computer .
    D. Try to disconnect all devices from your computer's FireWire and USB ports.
    E. Try to download and install the latest version of iPod software and iTunes
    http://www.apple.com/itunes/download/
    For old and other versions of iPod updater for window you can get here
    http://www.ipodwizard.net/showthread.php?t=7369
    F. Try these five steps (known as the five Rs) and it would conquer most iPod issues.
    http://www.apple.com/support/ipod/five_rs/
    G. Try to put the iPod into Disk Mode if it fails to appear on the desktop
    http://docs.info.apple.com/article.html?artnum=93651
    If none of these steps address the issue, you may need to go to Intermediate level listed below in logical order. Check from the top of the lists to see if that is what keeping iPod from appearing on your computer in order for doing the Restore.
    Intermediate Level
    A. Try to connect your iPod with another computer with the iPod updater pre-installed.
    B. Still can’t see your iPod, put it in Disk Mode and connect with a computer, instead of doing a Restore on iPod Updater. Go and format the iPod instead.
    For Mac computer
    1. Open the disk utility, hope your iPod appears there (left hand side), highlight it
    2. Go to Tab “Partition”, click either “Delete” or “Partition”, if fails, skip this step and go to 3
    3. Go to Tab “Erase” , choose Volume Format as “MAC OS Extended (Journaled), and click Erase, again if fails, skip it and go to 4
    4. Same as step 3, but open the “Security Options....” and choose “Zero Out Data” before click Erase. It will take 1 to 2 hours to complete.
    5. Eject your iPod and do a Reset
    6. Open the iTunes 7 and click “Restore”
    For Window computer
    Go to folder “My Computer”
    Hope you can see your iPod there and right click on the iPod
    Choose “Format”. Ensure the settings are at “Default” and that “Quick Format” is not checked
    Now select “Format”
    Eject your iPod and do a Reset
    Open the iTunes 7 and click “Restore”
    In case you do not manage to do a “Format” on a window computer, try to use some 3rd party disk utility software, e.g.“HP USB Disk Storage Format Tool”.
    http://discussions.apple.com/thread.jspa?threadID=501330&tstart=0
    C. Windows users having trouble with their iPods should locate a Mac user. In many cases when an iPod won't show up on a PC that it will show up on the Mac. Then it can be restored. When the PC user returns to his computer the iPod will be recognized by the PC, reformatted for the PC, and usable again. By the way, it works in reverse too. A Mac user often can get his iPod back by connecting it to a PC and restoring it.
    Tips
    a. It does not matter whether the format is completed or not, the key is to erase (or partly) the corrupted firmware files on the Hard Drive of the iPod. After that, when the iPod re-connected with a computer, it will be recognized as an fresh external hard drive, it will show up on the iTunes 7.
    b. It is not a difficult issue for a Mac user to find a window base computer, for a PC user, if they can’t find any Mac user, they can go to a nearest Apple Shop for a favor.
    c. You may need to switch around the PC and Mac, try to do several attempts between “Format” and “Restore”
    http://discussions.apple.com/thread.jspa?messageID=2364921&#2364921
    Advance Level
    A. Diagnostic mode solution
    If you have tried trouble shooting your iPod to no avail after all the steps above, chances are your iPod has a hardware problem. The iPod's built-in Diagnostic Mode is a quick and easy way to determine if you have a "bad" iPod.
    You need to restart your iPod before putting it into Diagnostic Mode. Check that your hold switch is off by sliding the switch away from the headphone jack. Toggle it on and off to be safe.
    Press and hold the following combination of buttons simultaneously for approximately 10 seconds to reset the iPod.
    iPod 1G to 3G: "Menu" and "Play/Pause"
    iPod 4G+ (includes Photo, Nano, Video, and Mini): "Menu" and "Select"
    The Apple logo will appear and you should feel the hard drive spinning up. Press and hold the following sequence of buttons:
    iPod 1G to 3G: "REW", "FFW" and "Select"
    iPod 4G+ (includes Photo, Nano, Video, and Mini): "Back" and "Select"
    You will hear an audible chirp sound (3G models and higher) and the Apple logo should appear backwards. You are now in Diagnostic Mode. Navigate the list of tests using "REW" and "FFW". The scroll wheel will not function while in diagnostic mode. For further details on Diagnostic mode can be found at http://www.methodshop.com/mp3/ipodsupport/diagnosticmode/
    Try to do the 5in1, HDD R/W and HDD scan tests. Some successful cases have been reported after the running the few tests under the Diagnostic mode. In case it does not work in your case, and the scan tests reports show some errors then it proves your iPod has a hardware problem and it needs a repairing service.
    B. Format your iPod with a start disk
    I have not tried this solution myself, I heard that there were few successful cases that the users managed to get their iPod (you must put your iPod in disk mode before connecting with a computer) mounted by the computer, which was booted by a system startup disk. For Mac, you can use the Disk Utility (on the Tiger OS system disk), for PC user, you can use the window OS system disk. Try to find a way to reformat your iPod, again it does not matter which format (FAT32, NTFS or HFS+) you choose, the key is to erase the corrupted system files on the iPod. Then eject your iPod and do a Reset to switch out from Disk Mode. Reboot your computer at the normal way, connect your iPod back with it, open the iPod updater, and hopefully your iPod will appear there for the Restore.
    If none of these steps address the issue, your iPod may need to be repaired.
    Consider setting up a mail-in repair for your iPod http://depot.info.apple.com/ipod/
    Or visit your local Apple Retail Store http://www.apple.com/retail/
    In case your iPod is no longer covered by the warranty and you want to find a second repairing company, you can try iPodResQ or ifixit at your own risk
    http://www.ipodresq.com/index.php
    http://www.ifixit.com/
    http://www.rapidrepair.com/shop/g4-ipod-parts.html
    Just in case that you are at the following situation
    Your iPod warranty is expired
    You don’t want to pay any service charges
    You are prepared to buy a new one
    You can’t accept the re-sell value of your broken iPod
    Rather than leave your iPod as paper-weight or throw it away.
    You can try the following, but again, only do it as your last resort and at your own risk.
    Warning !!!! – It may or may not manage to solve your problem, and with a risk that you may further damage your iPod, which end up as an expensive paper weight or you need to pay more higher repairing cost. Therefore, please re-consider again whether you want to try the next level
    Last Resort Level
    1. . Disconnecting the Hard Drive and battery inside the iPod – Warning !! Your iPod warranty will be waived once you open the iPod.
    In Hong Kong there are some electronic shops offering an iPod service for Sad iPod, the first thing they do is to open up the iPod’s case and disconnecting the battery and the Hard Drive from the main board of the iPod. Wait for 5-10 minutes and reconnecting them back. The reason behind which I can think of is to do a fully reset of a processor of the iPod. In case you want do it itself and you believe that you are good on fixing the electronics devices and have experience to deal with small bits of electronic parts, then you can read the following of how to open the iPod case for battery and HDD replacement (with Quicktimes)
    http://eshop.macsales.com/tech_center/index.cfm?page=Video/directory.html
    2.Press the reset button on the Hard Drive inside the iPod – Suggestion from Kill8joy
    http://discussions.apple.com/thread.jspa?messageID=2438774#2438774
    Have I tried these myself? No, I am afraid to do it myself as I am squeamish about tinkering inside electronic devices, I have few experiences that either I broke the parts (which are normally tiny or fragile) or failed to put the parts back to the main case. Therefore, I agree with suggestion to have it fixed by a Pro.
    2. Do a search on Google and some topics on this discussion forum about “Sad iPod”
    Exclamation point and folder and nothing else
    Spank your iPod
    http://www.youtube.com/watch?v=3ljPhrFUaOY
    http://discussions.apple.com/thread.jspa?messageID=3597173#3597173
    Exclamation point and folder and nothing else
    http://discussions.apple.com/thread.jspa?messageID=2831962#2831962
    What should I do with my iPod? Send it or keep it?
    http://discussions.apple.com/thread.jspa?threadID=469080&tstart=0
    Strange error on iPod (probably death)
    http://discussions.apple.com/thread.jspa?threadID=435160&start=0&tstart=0
    Sad Face on iPod for no apparent reason
    http://discussions.apple.com/thread.jspa?threadID=336342&start=0&tstart=0
    Meeting the Sad iPod icon
    http://askpang.typepad.com/relevanthistory/2004/11/meeting_thesad.html#comment-10519524
    Sad faced iPod, but my computer won’t recognize it?
    http://discussions.apple.com/thread.jspa?messageID=2236095#2236095
    iPod Photo: unhappy icon + warranty question
    http://discussions.apple.com/thread.jspa?messageID=2233746#2233746
    4th Gen iPod Users - are we all having the same problem?
    http://discussions.apple.com/message.jspa?messageID=2235623#2235623
    Low Battery, and clicking sounds
    http://discussions.apple.com/thread.jspa?messageID=2237714#2237714
    Sad faced iPod, but my computer won’t recognize it
    http://discussions.apple.com/thread.jspa?messageID=2242018#2242018
    Sad iPod solution
    http://discussions.apple.com/thread.jspa?threadID=412033&tstart=0
    Re: try to restore ipod and it says "can't mount ipod"
    http://discussions.apple.com/thread.jspa?threadID=443659&tstart=30
    iPod making clicking noise and is frozen
    http://discussions.apple.com/thread.jspa?messageID=2420150#2420150
    Cant put it into disk mode
    http://discussions.apple.com/thread.jspa?messageID=3786084#3786084
    I think my iPod just died its final death
    http://discussions.apple.com/thread.jspa?messageID=3813051
    Apple logo & monochrome battery stay
    http://discussions.apple.com/thread.jspa?messageID=3827167#3827167
    My iPod ism’t resetting and isn’t being read by my computer
    http://discussions.apple.com/thread.jspa?messageID=4489387#4489387
    I am not suggesting that you should follow as well, but just read them as your reference. You are the person to make the call.
    Finally, I read a fair comments from dwb, regarding of slapping the back of the iPod multiple times
    Quote “This has been discussed numerous times as a 'fix'. It does work, at least for a while. In fact I remember using the same basic trick to revive Seagate and Quantam drives back in the mid to late 1980's. Why these tiny hard drives go bad I don't know - could be the actuator gets stuck in place or misaligned. Could be the platter gets stuck or the motor gets stuck. 'Stiction' was a problem for drives back in the 80's. Unfortunately the fix can cause damage to the platter so we temporarily fix one problem by creating another. But I know of two instances where a little slap onto the table revived the iPods and they are still worked a year or more later.”UnQuote

  • Delete a table record with eCATT-Script and parameter - PROBLEM

    I will write a eCATT, witch can delete one record in the table. In this case
    it will be a material. The material to delete will be my input parameter.
    You can see on the picture how the structure of the ecatt after recording is.
    <a href="http://www.carsdream.com/ecatt.jpg">Structure of the ecatt after recording....</a>
    I have the following problem:
    For example i will delete the "Material 6". I give as parameter the name of
    this material. ( I don't know the ID.)
    How can i automaticly find the index of the table RECENT, where the naterial
    "Material 6" to find is ?
    Important is, that by the test executing i don't know how many index the
    table RECET have and i don't know under which index "the Material 6" can be
    found.
    If i find the index of this table, my problem will be solved.
    If you can answer that, it will be for me very helpful!

    Helle,
    thanks for your answer.
    I coudn't find the place where i could read this note, but i have book about testig SAP-Solutions and you can find there that:
    "With the basis release of Web AS 6.40, eCATT supports the direct testing of Web Dynpro-based applications. Both Web Dynpro for ABAP and for Java are supported."
    Look the link to SAP-PRESS:
    http://www.sap-press.de/katalog/buecher/htmlleseproben/gp/htmlprobID-58
    So what's the fact ? It's supported or not?
    My application work under Web Dynpro Java, but i think, that the solution of my problem should be similar to the solution for Web Dynpro ABAP, that way i ask the question on this forum.
    I someone knows the solution of my problem, it will be very helpfull for me.
    Thanks

  • Synchronization and threads problem

    Hi, i'm a novice to java.i got an assignement where i'm suppose to emulate a bus actions(picking on and dropping of people).
    It has 4 main class , i'm using netbean as IDE.
    The bus have 5 station(1,2,3,4,5) and goes to them one after another picking up passenger ad dropping them off.It have max capacity of 2 passenger at a time.It's able to pick the first passenger and leave when it reaches the 2nd station and pick the second passenger it hang as if in an infinite loop.
    Here are the classes in use and screenshot depicting the sittuation:
    Bus :
    * Bus.java
    * This class represents the bus,
    * a resource shared by passengers and the control system.
    package busservice;
    import java.util.concurrent.locks.Condition;
    import java.util.concurrent.locks.ReentrantLock;
    class Bus
    public enum Direction{UP, DOWN};
    private int position; // bus's currrent position, i.e. bus stop.
    private int increment; // bus's currrent increment +1 for UP, -1 for DOWN
    private Direction busDirection;// bus's current direction - UP or DOWN
    private int available; // available seats
    private ReentrantLock bus = new ReentrantLock();
    private Condition[] arrive = new Condition[Main.BUS_STOPS+1]; // index 0 unused
    public Bus()
    available = Main.CAPACITY;
    position = 1;
    increment = 1; // Initially travelling in UP direction
    busDirection = Direction.UP;
    System.out.println(Main.spaces(position) + labelledBus()+ " arrives");
    for (int i = 1; i <= Main.BUS_STOPS; i++)
    arrive[i] = bus.newCondition();
    // method called by a passenger wishing to get on the bus at bus stop
    public void getOn(int fromStop)
    bus.lock(); //passenger obtains resource
    try{
    while (position != fromStop || available == 0)
    arrive[fromStop].await();
    arrive[fromStop].signal();
    available--;
    catch(Exception e)
    e.printStackTrace();
    finally{
    bus.unlock();
    bus.notifyAll();
    // Method called by passengers wishing to get off the bus at bus stop.
    public void getOff(int toStop)
    bus.lock();
    try
    while (position != toStop)
    arrive[toStop].await();
    available++; // passenger gets off train
    catch (InterruptedException e)
    e.printStackTrace();
    finally
    bus.unlock();
    // returns a string showing the direction and occupancy status of the bus
    private String labelledBus()
    String emptySeats = "...................".substring(0, available);
    String fullSeats = "*******************".substring(0, Main.CAPACITY - available);
    if (busDirection == Direction.DOWN)
    return ("<BUS["+emptySeats+fullSeats+"]");
    else
    return ("["+fullSeats+emptySeats+"]BUS>");
    // Method called by control system to move bus to next bus stop
    public void move()
    bus.lock();
    try // bus leaves one bus stop and travels to next one
    System.out.println(Main.spaces(position) + labelledBus()+" leaves");
    Thread.sleep(Main.TRAVEL_TIME * 1000);
    position = position + increment;
    System.out.println(Main.spaces(position) + labelledBus()+ " arrives");
    // Reverse direction if at end of route
    if ((busDirection == Direction.UP) && position == Main.BUS_STOPS)
    increment = - increment;
    busDirection = Direction.DOWN;
    else if ((busDirection == Direction.DOWN) && position == 1)
    increment = - increment;
    busDirection = Direction.UP;
    arrive[position].signalAll();
    catch (InterruptedException e)
    e.printStackTrace();
    finally{
    bus.unlock();
    }Controler class
    * Control.java
    * This class implements the bus control system.
    package busservice;
    class Control extends Thread
    private Bus bus;
    private volatile boolean end = false;
    public Control(Bus bus)
    this.bus = bus;
    public void run()
    while (!end)
    try
    sleep(Main.WAIT_TIME * 1000);
    bus.move();
    catch (InterruptedException ex)
    ex.printStackTrace();
    return;
    public void finish()
    end = true;
    }Passenger
    * Passenger.java
    * Implements a bus passenger as an autonomous thread.
    package busservice;
    import java.util.concurrent.CountDownLatch;
    class Passenger extends Thread
    private int id; // unique id, from 1 to Main.PASSENGERS
    private int from, to; // start and end bus stops
    private Bus bus;
    private CountDownLatch CountDown;
    Passenger(int id, int from, int to, Bus bus, CountDownLatch CountDown)
    this.id = id;
    this.from = from;
    this.to = to;
    this.bus = bus;
    this.CountDown = CountDown;
    public void run()
    CountDown.countDown();
    System.out.println(Main.spaces(from) + 'P' + id + " arrives");
    bus.getOn(from);
    System.out.println(Main.spaces(from) + 'P' + id + " gets on");
    bus.getOff(to);
    System.out.println(Main.spaces(to) + 'P' + id + " gets off");
    this.notify();

    * Bus.java
    * This class represents the bus,
    * a resource shared by passengers and the control system.
    package busservice;
    import java.util.concurrent.locks.Condition;
    import java.util.concurrent.locks.ReentrantLock;
    class Bus
    public enum Direction{UP, DOWN};
    private int position; // bus's currrent position, i.e. bus stop.
    private int increment; // bus's currrent increment +1 for UP, -1 for DOWN
    private Direction busDirection;// bus's current direction - UP or DOWN
    private int available; // available seats
    private ReentrantLock bus = new ReentrantLock();
    private Condition[] arrive = new Condition[Main.BUS_STOPS+1]; // index 0 unused
    public Bus()
    available = Main.CAPACITY;
    position = 1;
    increment = 1; // Initially travelling in UP direction
    busDirection = Direction.UP;
    System.out.println(Main.spaces(position) + labelledBus()+ " arrives");
    for (int i = 1; i <= Main.BUS_STOPS; i++)
    arrive[i] = bus.newCondition();
    // method called by a passenger wishing to get on the bus at bus stop
    public void getOn(int fromStop)
    bus.lock(); //passenger obtains resource
    try{
    while (position != fromStop || available == 0)
    arrive[fromStop].await();
    arrive[fromStop].signal();
    available--;
    catch(Exception e)
    e.printStackTrace();
    finally{
    bus.unlock();
    bus.notifyAll();
    // Method called by passengers wishing to get off the bus at bus stop.
    public void getOff(int toStop)
    bus.lock();
    try
    while (position != toStop)
    arrive[toStop].await();
    available++; // passenger gets off train
    catch (InterruptedException e)
    e.printStackTrace();
    finally
    bus.unlock();
    // returns a string showing the direction and occupancy status of the bus
    private String labelledBus()
    String emptySeats = "...................".substring(0, available);
    String fullSeats = "*******************".substring(0, Main.CAPACITY - available);
    if (busDirection == Direction.DOWN)
    return ("<BUS["+emptySeats+fullSeats+"]");
    else
    return ("["+fullSeats+emptySeats+"]BUS>");
    // Method called by control system to move bus to next bus stop
    public void move()
    bus.lock();
    try // bus leaves one bus stop and travels to next one
    System.out.println(Main.spaces(position) + labelledBus()+" leaves");
    Thread.sleep(Main.TRAVEL_TIME * 1000);
    position = position + increment;
    System.out.println(Main.spaces(position) + labelledBus()+ " arrives");
    // Reverse direction if at end of route
    if ((busDirection == Direction.UP) && position == Main.BUS_STOPS)
    increment = - increment;
    busDirection = Direction.DOWN;
    else if ((busDirection == Direction.DOWN) && position == 1)
    increment = - increment;
    busDirection = Direction.UP;
    arrive[position].signalAll();
    catch (InterruptedException e)
    e.printStackTrace();
    finally{
    bus.unlock();
    }Controler class
    * Control.java
    * This class implements the bus control system.
    package busservice;
    class Control extends Thread
    private Bus bus;
    private volatile boolean end = false;
    public Control(Bus bus)
    this.bus = bus;
    public void run()
    while (!end)
    try
    sleep(Main.WAIT_TIME * 1000);
    bus.move();
    catch (InterruptedException ex)
    ex.printStackTrace();
    return;
    public void finish()
    end = true;
    }Passenger
    * Passenger.java
    * Implements a bus passenger as an autonomous thread.
    package busservice;
    import java.util.concurrent.CountDownLatch;
    class Passenger extends Thread
    private int id; // unique id, from 1 to Main.PASSENGERS
    private int from, to; // start and end bus stops
    private Bus bus;
    private CountDownLatch CountDown;
    Passenger(int id, int from, int to, Bus bus, CountDownLatch CountDown)
    this.id = id;
    this.from = from;
    this.to = to;
    this.bus = bus;
    this.CountDown = CountDown;
    public void run()
    CountDown.countDown();
    System.out.println(Main.spaces(from) + 'P' + id + " arrives");
    bus.getOn(from);
    System.out.println(Main.spaces(from) + 'P' + id + " gets on");
    bus.getOff(to);
    System.out.println(Main.spaces(to) + 'P' + id + " gets off");
    this.notify();
    }

  • VGA problem with FiFA 2003 and Audio Problem with NHL2003

    i use onboard VGA
    800 x600for both games
    with no problem
    but for Fifa 2003
    the screen looks so dark...
    all players look like a black people(all  black color hair
    and black face))
    some audio problem with NHL 2003...

    Have you tried the following?
    Adjust monitor settings? i.e. contrast/brightness
    Video settings within the game? Some have gamma or brightness settings.
    Gamma correction in "Display Properties"?
    for starters anyway......

  • Can anyone help with YouTube embed and scrolling problem?

    Hi,
    Whilst working on a mobile version of a site, I've noticed that if you're scrolling through on a device and the area with the YouTube embed is near the top of the screen, it'll suddenly scroll all the way back up to the top of the site. This only seems to happen with the YouTube embed, the rest of the site seems to work fine.
    Anyone else had similar issues?
    The site is www.cowandbell.com/phone
    I'm using an iPhone5 running iOS7 and it's happening in Chrome and Safari.

    Sorry if it sounded like I was telling you to "go away." Far from it: I was trying to point you to the place where you might get an answer most expeditiously. I'm trying to save you time vs. simply having your question sit around unanswered.
    For example, if other Parallels users have had the same problem, the Parallels folks would be the most likely know. I would not assume that"Parallels' answer will inevitably be, "We don't support third-party software."without first asking them.
    You'd be surprised to know how many times folks post questions here about third-party applications and the questions go unanswered, while the answer is actually waiting to be found at the Web site of the third-party app's developer.
    You might also try the HP Web site since it may be a general problem with that set of drivers under Windows.
    Good luck!
    Dr. Smoke
    Author: Troubleshooting Mac® OS X

  • Error code 0x800700B7 with System Restore and Backup problems

    My OS is Vista Ultimate. 2GB RAM. 13GB free space on C Drive. I am unable to use System Restore or Backup and Restore center. When I try to create a Restore Point (or do a backup) error message comes up 'Could not create the scheduled task for the following reason: Cannot create a file when that file already exists. (0x800700B7).' I think (not sure) that these problems came after I was infected with win32:Vitro virus. (No longer any infections showing). I think that my registry may be corrupt or files deleted. Can anyone help please?

    Hi,
    Thank you for your post.
    Based on my research, I would like to suggest the following:
    Note: Please perform a complete system backup first. If any unexpected issue occurs, we can quickly restore the system to the current status.
    1.     Click Start, type regedit in the Start Search box, and then click regedit in the Programs list.
    If you are prompted for an administrator password or for a confirmation, type the password, or click Continue.
    2.     In the navigation pane, locate and then click the following registry subkey:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Schedule\TaskCache
    3.     Right click on this key and select "Export" and save the key to a Flash Drive or other removable storage device.
    4.     Remove the key “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Schedule\TaskCache\Tree\Microsoft\Windows”
    5.     Please reboot the computer and check if the issue reoccurs. If it works, please also reconfigure the Scheduled Task for System restore in Task Scheduler.
    Hope this helps. Thanks.
    Nicholas Li - MSFT

  • 80GB Classic with music, photo, and video problems

    I have had a number of problems since getting my 80gb iPod classic.
    1. Music: I keep finding songs that play perfectly in iTunes, but then stop a few seconds into the song when I play them back on the iPod. The first time this happened, I had to delete the song from iTunes and then rip it back into iTunes from the CD to get it to work. The other songs I haven’t tried to fix yet, but, so far, they are all from CD’s and not downloaded MP3’s. I also noticed that they were all ripped from the CD using an older version of iTunes.
    2. Photos: Very few of the photos I tried to download to the iPod were transferred. I got a message saying they would not work on iPod, but no reason why. They are just simple .jpg files from my camera (Canon Powershot S3 IS). Most of the photos that did get transferred were corrupt. The pictures were all broken up and colors were switched around. I tried changing them to .bmp files and also changing the size to 640x480, and that helped some of them, but not all. The only pictures that worked flawlessly were not photos, they were cartoons.
    3. Video: I have a number of QuickTime videos that work fine in iTunes until I convert them to iPod files. Most of the converted videos showed a blank white screen in thumbnail form in iTunes. When I play them, iTunes only displays a couple of frames, and the sound stutters. They all transferred to the iPod, but every time I tried to play one, the video would crash and the iPod would reset itself.
    I’m thinking about exchanging my iPod for a new one, but I’m afraid that all of the problems are iTunes or Windows Vista related, and I might end up trading a good iPod for a defective one with the same software problems.

    I did find that if I saved all of my photos as bitmaps, resized them to 640x480, and got rid of the dashes in the filenames, that they would work.

  • Iphone 3 with OS4 camera and photos problem

    I updated to OS 4.0.2 and my camera does not work not, nor does the photos page. I had backed them up previously, so I still have them elsewhere, but I cannot take photos now with my iphone 3. I need some help to get it going in the right direction.
    I have reloaded the new OS, and restarted the phone as well, but nothing seems to be working.

    I saw the prompt in iTunes to go back to the previous version if you have problems.
    This is one main issue of doing updates.
    Sometimes it makes things worse when you update the wrong device.
    vs 4 is made for OS4 handset. Not our 3GS.
    Good Luck

Maybe you are looking for