BundleException: Timed Out
I use OSGi and I create bundle called Server, which contains three classes and one of them is the bundle activator. I will publich the code of the three classes and then will write my problem. So the first class is calles "ServerThread" :
public class ServerThread extends Thread implements Constants {
private Socket socket;
private DataInputStream serverDataIn;
private DataOutputStream serverDataOut;
private int intCommand;
private HashMap statusHash;
public ServerThread(Socket socket) {
this.socket = socket;
public void run() {
try {
serverDataOut = new DataOutputStream(socket.getOutputStream());
serverDataIn = new DataInputStream(socket.getInputStream());
} catch (Exception ioe) {
ioe.printStackTrace();
try {
intCommand = serverDataIn.readInt();
} catch (IOException ioe) {
ioe.printStackTrace();
if (intCommand == LOGIN) {
String name = "";
String pass = "";
try {
name = serverDataIn.readUTF();
pass = serverDataIn.readUTF();
} catch (IOException e) {
e.printStackTrace();
if (!name.equals("") & !pass.equals("")) {
statusHash.put(name, ONLINE);
System.out.println("The user" + name + "is added in the statusHash");
try {
serverDataOut.writeInt(LOGIN);
serverDataOut.writeBoolean(true);
} catch (IOException e) {
e.printStackTrace();
if (intCommand == SEND_MESSAGE) {
String receiver = "";
String message = "";
try {
receiver = serverDataIn.readUTF();
message = serverDataIn.readUTF();
} catch (IOException e) {
e.printStackTrace();
if (!receiver.equals("") & !message.equals("")
& Integer.parseInt(statusHash.get(receiver).toString()) == ONLINE) {
System.out.println("Send message successful");
try {
serverDataOut.writeInt(SEND_MESSAGE);
serverDataOut.writeBoolean(true);
} catch (IOException e) {
e.printStackTrace();
===========================================================
The second class is :
public class OpenSocket extends Thread {
private static final int port = 8081;
private ServerSocket serverSocket;
private Socket socketServ;
private ServerThread serverThread = new ServerThread(socketServ);
public void run() {
try {
serverSocket = new ServerSocket(port);
System.out.println("Server port : " + port);
System.out.println("serverSocket : " + serverSocket);
} catch (IOException ioe) {
ioe.printStackTrace();
while (true) {
try {
socketServ = serverSocket.accept();
} catch (IOException e) {
e.printStackTrace();
serverThread.start();
===========================================================
And the Activator class is :
public class ServerActivator implements BundleActivator {
OpenSocket openSocket = new OpenSocket();
public void start(BundleContext arg0) throws Exception {
// TODO Auto-generated method stub
System.out.println("ServerActivator.start()");
openSocket.start();
public void stop(BundleContext arg0) throws Exception {
// TODO Auto-generated method stub
openSocket.stop();
===========================================================
So my problem is that when I install the bundle and start it, is thrown BundleException: Timed Out. Can someone tell me why this happens ?
I know. What I can't understand is how that code threw a BundleException when it doesn't even compile.
Similar Messages
-
Troubleshooting help needed: My iMac keeps crashing and restarting with a notice: "Spinlock application timed out" What can I do?
Launch the Console application in any of the following ways:
☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
☞ Open LaunchPad. Click Utilities, then Console in the page that opens.
Select the most recent panic log under System Diagnostic Reports. Post the contents — the text, please, not a screenshot. In the interest of privacy, I suggest you edit out the “Anonymous UUID,” a long string of letters, numbers, and dashes in the header and body of the report, if it’s present (it may not be.) Please don't post shutdownStall, spin, or hang reports. -
Request timed out.- Error while opening a item in Blog
Hi,
We have a blog in our share point portal which was running properly before few days.
We get Request Timed out error while opening an item in the blog. The list contains about
3500 items
[HttpException (0x80004005): Request timed out.]
We were able to create a new item but not able to view the item.
When we check the server SQLSERVR.EXE takes more than 90% of the CPU Usage.
Please let me know how to resolve this issue.
Thanks,
VanithaHi,
According to your description, Please check the RAM allocated to your SQL server. MOSS server needs 2GB RAM
to preform well. SQL requires 2GB RAM for optimum performance.
Messages like this are mainly due to lack of RAM Allocation.
Best Regards
David Hu -
Hi
I am working on IBM AIX, Oracle 10.2.0.4 version.
Here I got the TNS-12535 error while running a report at particular time. (i.e 8:30 PM to 10:00 PM PST). But aftter this particular time it runs good.
There is no errors found in alert log file. The below is the error found in the sqlnet.log file.
Please help me to resolve this...
Time: 18-FEB-2011 17:05:53
Tracing not turned on.
Tns error struct:
ns main err code: 12535
TNS-12535: TNS:operation timed out
ns secondary err code: 12560
nt main err code: 505
TNS-00505: Operation timed out
nt secondary err code: 78
nt OS err code: 0
Client address: (ADDRESS=(PROTOCOL=tcp)(HOST=host_name)(PORT=1521))
nt OS err code: 0
ThanksHi,
Nothing to investigate at the application side, there is everything to investigate at the network side.
Check the below points.
- is there any firewall in play
- is there any Network Address Translation into play
- have the correct ports been opened in the firewall
- is Oracle using random return ports (by default Oracle always uses 2 tcp/ip ports, the first one fixed, and configured in tnsnames.ora, the actual communication takes place on a radom port. If that is a problem at your site you need to fix that)
- You need to run netstat -r to identify which ports are actually used.
- Pavan kumar N -
I purchased 2 new email, adresses a few weeks ago. Both were fine but a few days ago I was stopped sending and stopped receiving emails on the one. The message comes up on my screen "connection to SMTP server (followed by my email adress) timed out. That does not mean a thing to me. What should I do please?
Thankyou.
I had been asked by ICANN some days ago to do something but I thought it was a scam so ignored it. Most other users I have spoken to have never heard of ICANN or been asked to 'register' with them or whatever. Anyway, post writing to you I have now 'registered' with them . When I now click on my incoming email adress it just says "failed to connect to server" but why it fails I do not know. -
As of yesterday, I am receiving e-mails fine; however, unable to send. Everytime I try to send an e-mail, I get "Sending of message failed. The message could not be sent because the connection to SMTP server (my mail address) timed out. Try again or contact your network administrator.
I received help from lunarpages (they host my domain); however, they were unable to resolve the issue. They suggested something is blocking IP, or need to update Thunderbird, or there's a firewall there...
Help!!!
My clients are waiting for responses to e-mails!
Thank you.To diagnose problems with Thunderbird, try one of the following:
*Restart Thunderbird with add-ons disabled (Thunderbird Safe Mode). On the Help menu, click on "Restart with Add-ons Disabled". If Thunderbird works like normal, there is an Add-on or Theme interfering with normal operations. You will need to re-enable add-ons one at a time until you locate the offender.
*Restart the operating system in '''[http://en.wikipedia.org/wiki/Safe_mode safe mode with Networking]'''. This loads only the very basics needed to start your computer while enabling an Internet connection. Click on your operating system for instructions on how to start in safe mode: [http://windows.microsoft.com/en-us/windows-8/windows-startup-settings-including-safe-mode Windows 8], [http://windows.microsoft.com/en-us/windows/start-computer-safe-mode#start-computer-safe-mode=windows-7 Windows 7], [http://windows.microsoft.com/en-us/windows/start-computer-safe-mode#start-computer-safe-mode=windows-vista Windows Vista], [http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/boot_failsafe.mspx?mfr=true" Windows XP], [http://support.apple.com/kb/ht1564 OSX]
; If safe mode for the operating system fixes the issue, there's other software in your computer that's causing problems. Possibilities include but not limited to: AV scanning, virus/malware, background downloads such as program updates. -
I get the message" Your time has timed out" when i try to log on my apple id. Can you please help me?
I get the message" Your time has timed out" when i try to log on my apple id. Can you please help me?
-
Trying to update ipad2 software. Keep getting message that network connection timed out. Don't know how to cancel the firewall
Im getting the same thing...
-
Cannot login to Facebook on my iPhone 5 iOS 8.1 - Connection timed out - Error signing in
The other day, I had logged out of Facebook on my iPhone, and when I tried logging back in, it wouldn't let me. When I try to log in through the settings page, it stays on verifying for a while and says "Error signing in" and tells me there is no internet connection and when I try logging in through the facebook app, it says "Connection timed out" and asks me to make sure i have an active internet connection. The fact is my internet is working, and I can log in to facebook through safari, but not my app.
And one more thing. I have tried most of the methods mentioned in the forums. I have spent the last 2 days trying all of them from trying to create a new account using the old details, remove the phone number from facebook and try again, hard reboot by pressing the home and power buttons, resetting network and privacy settings, and reinstalling the app about 3-4 times. None of these work.
I'd be grateful if somebody can help me out with this .
Phone specs: iPhone 5, 16GB memory, iOS 8.1Dear Sir,
I did some research about your subject and I found these, please check it out
iPhone stuck on Apple logo!!! PLEASE HELP!
It may help you
<Link Edited By Host> -
When i try to update my iphone with the new software, it will give me a message that says connection time timed out, and then it says some other little things about a network not having a connection. i checked all of that and it is all fine. Im not sure why it is not working. i even restarted my laptop, all of my stuff is up to date. Does any one have any sollutions or any advice? Please and thank you!
This is asked and answered mnay times every day. The forum search abr is on the right side of this page.
Disable your firewall/security software. -
I am using iPhone 3GS. It is currently updated to IOS4.3. I am trying to update the OS to IOS5 on iTunes. It downloads the software, but it gives an error - network timed out. I have tried this multiple times. But, the end result is same.
Please help & advise as how I can upgrade the iPhone to IOS5.Temporarily turn off or disable your firewall and anti-virus software and try the download again.
Stedman -
How to download iOS 6 on iPhone 4??. Keeps saying "verification fAiled. Request has timed out"
Try try again. Thre server are heavily loaded. The connection dropped becasue the computer thinks it waited to long. Disabling your security software on the computer can help resolve this too.
-
I'm looking for a solution to my recent itunes problem....I select my song to purchase, agree with agreement, and then it says on the screen "your session has timed out".....This is a new ....I asked Support for advice and they said it was my computer? Any advice I would appreciate.
Im having the same problem,,, someone please help!!!!!
-
When I type in my redeem code, it says my session has timed out. How do I fix that?
Me too and I can't download games from AppStore they said that the apple Id isn't in the iTunes what can I do? Please reply
-
I have an itunes account on my PC and have downloaded Kindle and iBook with no problem, but when I try and use that acct id on my iPad the system says I cannot access the store. However, when I try to create a new id the system comes up and tells me that I am from Canada, which is always nice to know in case I ever forget, and when I acknowledge that screen, it immediately tells me the session has timed out. What am I doing wrong? Willingly admit I am not at all knowledgable in the Apple world. Thanks for any help you can give..
Carmell-
When I've had a similar problem, it was because I was accessing the iTunes store from a device I hadn't used before, such as when I upgraded from an iPad 1 to the iPad 2. It was a little confusing to me until I figured it out.
All I had to do was use the ID of my existing account and play along with the iTunes store. As I recall, it asked for my password twice, and the security code from the back of my credit card. After that, downloads proceeded as before.
Fred
Maybe you are looking for
-
"A plugin is needed to display this content", how do I get my computer to do this?
I am trying to open a video file for my online class. When I click on the file, a gray box appears and reads "a plugin is needed to display this content". How do I get my computer to open the video. I have a MAC and zero knowledge of how to fix probl
-
Connect to HDTV: Which input to use on TV?
I'd like to connect my 1.25 GHz iMac G4 to my new LCD HDTV (LG LC2D). The TV has the following input choices: HDMI and HDMI (DVI) [currently occupied by cable box and DVD player] RGB (PC) [I think this is a standard VGA jack] RS-232C AV (audio/video)
-
Does anybody have a best practice approach to implement the tranyport system (site model / adress book) in financial consolidation 7.5? Regards Udo
-
Question about Domain | Muse as Subscription (not a Cloud Member Yet)
Hi everyone, right now I have Muse bought on a basis of a "yearly subscription". I was wondering if this includes a hosting option via Business Catalyst? Or do I even have more than one possible hosting option? And where do I find these settings in
-
Spotlight/Finder Search not finding files in search
Hello everyone, When I do a search for a file, any file or folder in fact, that exists in any of the system folders or the /library and user/library folders, they NEVER appear in the search results. Could someone please explain to me, for example, wh