NullPointerException all of a sudden...

This used to work just fine, but today, for some reason it doesn't. Everything seems to work since nothing lights up in red or anything in Eclipse. If I write "outputGUI." Eclipse finds the textArea so everything seems to be "connected". Does anyone know why this doesn't work?
final class ServerListener extends Thread{
     private BufferedReader fromServer;
     private ServerGUI outputGUI;
     public ServerListener(BufferedReader fromServer, ServerGUI allClientsGUI) throws IOException{
          this.fromServer = fromServer;
          outputGUI=allClientsGUI;
     public void run(){
          String lineFromServer;
          try{
               while((lineFromServer = fromServer.readLine()) !=null){
                    outputGUI.textArea.append("From Servern: " + lineFromServer + "\n");   //THIS GIVES ME NULLPOINTEREXCEPTION
                    System.out.println(lineFromServer);   //THIS WORKS
          catch(IOException e){
}

outputGUI.textArea.append("From Servern: " + lineFromServer + "\n");So either outpugGUI or outputGUI.textArea is null. Find out which.
catch(IOException e){
}You should not ignore exceptions. At a minimum, you should print out the exception and the stack trace.

Similar Messages

  • I have files that have been on my computer for over a year and all of a sudden they wont open and an error message comes up saying they were improperly downloaded or came in an email attach which is not the case

    I have files that have been on my computer for over a year and I have used them several times and all of a sudden they wont open.  I received an error message saying they are improperly downloaded or came as an email attachement which is not the case.  Please advise

    They seem to be word files - they will open if I choose "open with" microsoft word, but if I double click they don't open they are appearing as PDF on my screen.  I even opened one and then tried to "save as" making sure I chose .doc and they still appear as PDF
    I just created a new document response.doc in word and when I saved to my desktop it appears as a PDF file and I absolutely did not create a PDF or save as PDF it was a simple word
    doc.
    The message says "Adobe reader could not open response.doc because it is either not a supported file type or because the file has been damaged (for example attached in an email and not properly decoded)
    The reader version is I believe the most current, I always update when prompted.  OS is Windows 8

  • Help! I am making an iPhoto book and all of a sudden it will not open and I get a huge error message which is supposedly sent to Apple.  How do I access that site????

    Mac osX 10.6.8
    iBook - old version
    can not access Safari - going through Chrome
    All of a sudden my IBook would not open (100 pages and almost finished)
    Error message sent to Apple - how do I access them??????
    Thank you for any help you can give me
    <Email Edited by Host>

    Do you mean, you have been creating a Photo Book in iPhoto? Or an iBook in iBook Author?
    If you are asking about a photo book in iPhoto, what was the last you did in iPhoto, before the crash happened?  Did you add a page with a map?
    Then you may have a problem with a bug, where adding a route to a map may render the book unreadable.  In that case the best option is to restore the iPhoto library from the last backup you made, before you added the map to the book.
    It is not possible to open the book and to delete the unreadable page. You can only delete the book and start over, if this bug is the reason for the crashes. See for example this link:  Getting rid of problem photo book

  • I have been using Photoshop Elements 8 for years. All of a sudden, the cropping tool changed: I cannot crop vertically or horizontally anymore--only diagonally. This has made it impossible for me to get the photo I want. I hope someone knows how to fix th

    I have been using Elements 8 ever since it came out, and all of a sudden the cropping tool has changed: I can no longer crop horizontally or vertically, only diagonally. The up/down/side arrows have disappeared! Please help if you can, I'm no longer able to make my photos look their best. Thank you in advance.

    Quit the editor (Quit PSE on a mac). Then restart it while holding down ctrl+alt+shift (command+option+shift). Keep the keys down till you see a window asking if you want to delete the settings file. You do.

  • My time capsule all of a sudden disconnected from the wireless system and can no longer be fund by my MacBook Pro. The little lamp on the the capsules has turned off, but it still makes a noice inside,

    My Time capsule did a backup yesterday in the morning without any problem. All of a sudden, it disconnected from the wireles system last night and the little indicator lamp turned off. It still makes a noice, as if a disc was turning inside. The Time Capsule was bought last year in June. Any suggestiom what to do? What happens if I press the little buttom (reset?), will I loose af my backup?

    Do a reset.. power off the TC..
    Hold in reset and power on.. keep holding in reset until it flashes rapidly.. if it turns on at all.
    If you bought it in June.. take it back today.. it is broken.. at a guess.
    Some Gen4 are failing this way.. get Apple to replace it.. even if it is a few days out of warranty it won't be much.

  • All of a sudden I can no longer toggle or clip angles in multiclip sequence

    Hi,
    I've got a project with a number of sequences, videos, angles, etc and all of a sudden I can no longer toggle between angles in the sequence timeline. It was working last night and then stopped and it's still unresponsive. Every time I click to switch an angle or cut to an angle I get the alert beep.
    I am not out of disk space and haven't changed any settings as far as I am aware of.
    Thanks

    Not sure what the deal is...have you added any new software or upgraded/updated anything since this started?
    Have you tried opening an autosave version, to see if it works there?
    Trashed prefs, run disk utility?
    I'm not sure I've ever heard an 'alert beep', so would wonder if the drive is failing.
    Can you be a little more explicit about exactly how it 'stopped working'...were you right in the middle of working on it, or had you stepped away for a bit?
    Have you tried shutting down, then rebooting after 15-20 minutes?

  • In my small office ethernet network all of a sudden one of my imacs cannot be connected to. It can connect to all other computers and can access internet, but as soon as someone tries to connect to that mac, it disconnects from the network. Any ideas

    I have a network of 9 macs that connect via ethernet and a router. All of a sudden one of the macs cannot be connected to. It can connect to all others and the internet, but no one can connect to that one. I have appletalk active and file sharing on, but everytime someone tries to connect to it, it is not on the network. Additionally, the personal file sharing keeps turning off even though I have it locked. Any ideas?

    Hi orangekay
    not sure where you got the idea that I have
    bizarre encrypted filesystem plugins and scripts you have manipulating them all the time
    because I do not have any such running, just normal Applescripts that do tasks that could be done by hand.

  • HP Officejet Pro 8600a all of a sudden is not recognized by only my computer in the house

    Hi, I have 4 laptops in my house. We have all been connected wirelessly to my HP printer for over a year. All of a sudden, for some reason, my computer no longer sees the printer. I have an ASUS. I run Windows 7 with Windows Firewall. My router is a 3 month old Linksys EA3500. I can print from every other printer in the house, and I can also print from my Android Phone. However, when I try to print from my laptop, it now says that it is detecting printer has been turned off.  I have done everything I can think of to fix this. The only changes I recently made were installing Webroot AV program. I can't be 100% certain, but i'm pretty sure I have printed since that installation, and all of the other computers on my network are using Webroot as well with no issues. Hoping for some help. Here's what I've done so far:
    Tried troubleshooting printer via computer. It's gone through the spool service check and whatever else the standard troubleshooting does. It said something about my printer being turned off. It definitely was not, but I unplugged and restarted just to be sure. No fix.
    Noticed IP changed on printer and thought maybe something with static vs dynamic (don't know much about this) so went to "update IP address" on my laptop and updated the info. Checked the router settings info by entering printer's ip in browser. Printer shows connected and ready and all looks good. I pinged the ip and got results. Mac filtering is not enabled so I don't need to deal with that. SSID is not hidden. The 802.11 configuration says that the network type is WPA-PSK with WPA2 and AES selected for encryption. Same as it always has been.
    Double checked to make sure printer was recognizable by my firewall. It is on the accepted list.
    Last resort: I uninstalled the printer software and deleted the device from my laptop. Attempted reinstall, but when it gets to the part where it's supposed to search for the printer it says unable to find. I enter the IP address from the printer and it still cannot find. I enter the host name and it still can't find. Since I uninstalled everything, I can no longer install the printer at all.
    Went to drivers on line and tried using the install via online option. same results. "unable to find printer".
    I unpugged the printer from the wall again, this time for over an hour, hoping it would reset but realizing this probabaly isn't the issue  since every other laptop can print in my house.
    Tried to connect ethernet cable and install printer that way. Plugged one end into router and other into printer as directed on troubleshooting tips. Ran Disk software and it doesn't install the printer. IP address changes on printer when I use ethernet and I am entering new ip accordingly.
    Reset my modem and restarted. Reinitialized my router and then used the software to reconfigure it. did the standard 'wait ten seconds and plug everything back in and reboot computer'. No fix.
    Checked my wireless network adapter setting to make sure I have most updated drivers. I do.
    Deleted every single thing that relates to my printer in every folder and in regedit.
    Tried reinstalling printer both wirelessly and with ethernet. Still unable to find printer either way. 
    I have changed no settings that I can think of since the printer last worked a few weeks ago. As I said, every other computer prints perfectly. The only thing I can think that's different is that all the oher laptops are running Windows 8 and I'm still on 7, but that didn't matter before, and I can print from the HP print software on my phone.
    Please somebody tell me what I'm missing here. I'm going bonkers. Thank you so much to everyone who takes the time to reply on this support forum.
    This question was solved.
    View Solution.

    Well you have done quite a bit.  Let's try here if you haven't.
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c02915280&tmp_task=solveCategory&cc=us&dlc=en&lc...
    Then let's give this a shot.
    These settings are for setting up your wireless printer to stay connected to your router, keep wireless devices better connected and makes your router secure and hack proof.
    1. Set a static IP in the printer (click here) outside the DHCP range of the router (check your manual).
       This is for Linksys routers but can be used for all routers. Verify your DHCP range and change this
       first if needed. More Wireless Printing help is here (Windows solution 4, static IP).
    2. Verify in the printer that 'Auto Off' is disabled.  Use the Embedded Web Server (EWS) by going to the
       printers IP address in your browsers address bar, click Settings Tab/Auto Off. Or use the Printer
       Assistant, Printer Home Page (EWS).
    3. If the printer supports and has IPv6 enabled, turn off IPv6 in the printer.
    4. If needed and you assigned a static IP address, try using 8.8.8.8 for the Manual DNS server and
         8.8.4.4 preferred DNS server.
    In the router: (Refer to your router manual for information)
    5. Use a fixed wireless channel like 1, 6 or 11, never 'auto', try channel 1 first then the rest. 
    6. Set router to 20Mhz only, or 145Mbps depending on router. 
    7. Always use WPA2-AES (Personal) encryption, but you can try ‘mixed’ mode. 
    8. Disable WPS and never use it and disable UPnP for the routers security. Nobody can hack your
       system now and helps with wireless connectivity (if you want to know why, search the web).
    9. If you have a dual band router (2.4Ghz and 5.0Ghz bands), make sure the SSID’s are NOT the same,
       they must be different for all bands, even for any Guest networks.
    10. SSID broadcast must be enabled.
    11. Save all settings. Power off both, wait 2 mins.  Power on router wait 2 mins. 
    12. Power on printer and verify it reconnects to router. 
    Windows 7/8/8.1   Is Network Discovery on or off?
    Control Panel/Network and Internet/Network and Sharing Center/Advanced sharing settings.
    Under Home or Work (current profile) / Network Discovery.
    Select "Turn on network discovery" and save changes.
    Say thanks by clicking the Kudos Thumbs Up to the right in the post.
    If my post resolved your problem, please mark it as an Accepted Solution ...
    I worked for HP but now I'm retired!

  • I can not send email from my iPad .  Have been using it for over a year, all of a sudden I can only receive email.  I have a wifi connection in my home and have a A T &T cellular data plan?

    I can not send email from my iPad .  Have been using it for over a year, all of a sudden I can only receive email.  I have a wifi connection in my home and have a A T &amp;T cellular data plan?

    I have a 1st gen iPhone that I just updated the software to 2.0.2
    Now whenever I press the mail icon it goes to the mail app for about 4 seconds, does nothing, no loading of folders, old messages, nothing.
    Then it reverts back to the home screen. Tried restarting, haven't tried restoring, thought I'd look here first.
    Anyone???

  • Adobe Muse keeps crashing every time I publish any website all of a sudden

    Adobe Muse keeps crashing every time I publish any website all of a sudden. Not just for the website I was working on but now all my websites. It was working perfectly fine and when I hit publish it just crashes. I have multiple copies and different websites and they are all crashing when I try to publish. It seems like it is not an error for just the one website I was working on but the entire program is not functioning correctly. Here's a screen shot of the error.

    Mac or Windows? What's the error that appears? If it's an Apple Crash Report, please copy/paste the first few pages of it here.
    I strongly recommend against it (for multiple reasons below) but if you uninstall Muse, then go to the Creative Cloud Desktop App, and choose "Previous Version" in the Find New Apps section there will be a dropdown arrow next to the Install button. That dropdown will list all versions of Muse.
    If you've saved over top your existing file using the current version, reverting Muse won't work, since older versions cannot open files saved from newer versions. If you've don't significant work in the current version, that will be lost because you'll have to go back to the file as last saved using the prior version of Muse. Finally, there's a significant probability that error/crash is related to content in the file, network configuration, or other outside forces and if that's the case reverting won't avoid the error/crash.
    If you share more info about what error you're encountering, I expect we can determine a workaround/solution.

  • I have an iPad 2 and all of a sudden I have no sound in game apps. I have usual volume in videos and YouTube, I do get volume for games if I plug in headphones. I have switched to screen lock off and on again and I have also done a reset twice.....help :)

    I have an ipad2 and all of a sudden I have stopped getting sound in my game apps. I get normal sound on YouTube and I player and downloaded DVDs. If I plug headphones in then I can get sounds for the games. I have switched the lock screen button off and on again and done a reset twice, can anyone help me with this?

    Check your settings. The iPads have a small switch on the right edge. It can be used as a rotation lock to keep the screen from automatically reorienting itself as you move around, but you need to have the tablet’s settings configured properly. That same switch, right above the volume buttons, can also be set to function instead as a mute button to silence certain types of audio.
    If the switch is set to work as a mute button, you can change its purpose to “screen-rotation lock” by tapping the Settings icon on the home screen. On the Settings screen, tap General on the left side, and on the right side of the screen flick down to “Use Side Switch to.” Tap to select Lock Rotation or Mute to set the button’s function. Even if you set the side switch for your preferred use, you can still mute the Mini or lock the screen. Just double-click the Home button, and when the panel of apps appears along the bottom edge of the screen, flick the row from left to right with your finger. Tap the icon on the far left side of the row to either lock the iPad’s screen or mute the iPad’s alerts, notifications and sound effects. Music, podcasts and video are not muted unless you turn the volume all the way down.
    iPhone: Can't hear through the receiver or speakers
    http://support.apple.com/kb/ts1630
    http://www.atreks.com/app-no-sound-on-ipad-4-%E2%80%93-what-to-do/
    To solve some sound problems, just follow these simple steps
    1. Go to Settings
    2. Tap on General
    3. Tap on Reset
    4. Tap on Reset All Settings
     Cheers, Tom

  • IPhone 5S: does anybody has this problem. During a successful voice call all of a sudden people can't hear me while I can hear them

    iPhone 5S: does anybody has this problem. During a successful voice call all of a sudden people can't hear me while I can hear them. Signal is strong and call quality (me hearing the other) is still very good but it looks as if I’m going on mute while I’m not muting my iPhone. When dropping the call and re-dialing it works fine again. It’s a brand new iPhone 5S but it now happened already 4 or 5 times in 2 days.
    It feels like a hardware/iOS problem and not a network issue. It happend with iOS7.03 but I just see 7.0.4 is available so will install that one now.
    Thanks in advance for feedback
    Best regards,
    Marco

    Hello Jeff,
    Thank you for providing so much detail about the issue you are experiencing with the audio on your iPhone.  I would be concerned too if the audio on my iPhone was not working unless using speaker phone.  I found an article with some steps to take when you are experiencing issues like this:
    iPhone: Can't hear through the receiver or speaker
    http://support.apple.com/kb/TS1630
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • All of a sudden my desktop apps and files went missing.what is the cost of the problem

    all of a sudden, my desktop applications, (i mean the whole applications and files,document in my desktop), went missing .what could be the cost of the problem?

    all of a sudden, my desktop applications, (i mean the whole applications and files,document in my desktop), went missing .what could be the cost of the problem?

  • Premiere Pro CS4. Green video all of a sudden 'application not responding'?

    I was playing something in the timeline or whatever its called, and all of a sudden I get a green screen so I stop the video. I move to another part of the video to try playing there but I cant press play, there is only the square stop button in its place.
    What is happening please someone help me?

    These forums are primarily for Apple's Pro Applications. You may get better answers by posting this question on the Adobe discussion forums or over at Creative Cow.

  • My iphone 5 won't connet to server all of a sudden

    My iphone 5 won't connect to a server all of a sudden and I've reset my settings and turned phone off  and back on and re-entered my password. What should I do now?

    If it makes a sound, that means your computer has seen it, at least, and it's able to connect.
    I'd try the following, in the following order.
    1) With the iPhone disconnected, hold the Sleep/Wake button AND the home button UNTIL the Apple logo appears. After you hold these buttons down, the slide to power off will appear, but ignore that. Then the screen will blank. When you see the Apple logo appear, let go. Once the iPhone restarts fully, plug it into the computer, and see if iTunes will see it.
    2) Repeat #1, but before you plug the phone in, restart your computer. After your computer AND iPhone have fully restarted, open iTunes, then plug your iPhone in.
    3) Download and install iTunes over your existing installation. Restart your computer, then plug your iPhone in.
    4) Uninstall iTunes fully, and ANY Apple related programs (Apple Mobile Device, etc.). Restart your computer, then install iTunes. Restart your computer again, and then open iTunes and connect your iPhone.
    If none of these work, you may have to put your iPhone into either Recovery Mode or DFU mode.

Maybe you are looking for

  • Advice on A video editing system please

    Hi, I'm a serious hobbyist/user of a lot of the Adobe family, PS, Illustrator and more recently Premiere Pro.  I've got a Cloud membership package. My question is this (and I know there will be the full spectrum of kit here from very high-end to low-

  • Iphone 6 plus shipment concerns

    Hello Everyone, I was wondering if anyone, anyone at all has heard anything about updated stock that apple in sending out to AT&T (the carrier I pre ordered through) to distribute on the 19th. I woke up and pre ordered mine by 3:02am eastern time and

  • Internet works in VM but not native OS

    I am running an Ubuntu 9.04 virtual machine in VirtualBox on my Macbook pro. As I understand, VirtualBox tricks the guest OS to think there's an wired ethernet connection and redirects traffic through the hosts' connection. So I find it very strange

  • Upload file in to file system using Apex

    Hi... I have tried UTL_FILE to upload file in Directory. But First i have to upload file in Table in BLOB datatype and then copy it to file system using BFILE. I have to store files in file system as per requirements. I want to upload file directly t

  • Error when activating - "cannot resolve symbol"

    Hi everybody! I created a WebDynpro DC referencing some other DC's, one of them containing some generated Enterprise Connector classes. A local build works fine, the WebDynpro looks and works as expected when deployed to our J2EE server. When I activ