473,396 Members | 2,033 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Why the app gives receive failed message?

108 100+
I am running an app that sends a query to a server and the server returns a string query back. Using the received query, the client formats the string and converts it to URL. Then, loads a map using this url. However, after client receives the string query and formats it, it displays receive failed ..
Why is it giving this msg?

Expand|Select|Wrap|Line Numbers
  1.  
  2. public void run() {
  3.         try {
  4.             System.out.println("Sending message...");
  5.             stringItem.setText(stringItem.getText() + "1");
  6.             sendMessage("Query,map,$,start,211,Arsenal,!");
  7.            stringItem.setText(stringItem.getText() + "2");
  8.             String unformattedurl = receiveMessage();
  9.             stringItem.setText(stringItem.getText() + "3");
  10.             stringItem.setText(unformattedurl);
  11.              System.out.println("Receiving message..."+unformattedurl);
  12.             String url = getURL(unformattedurl);
  13.             System.out.println("formatted url is.."+url);
  14.             connection.close();
  15.              //url = "http://maps.google.com/maps/api/staticmap?center=100,20&zoom=14&size=500x400&format=JPEG&maptype=roadmap&sensor=false";
  16.             //URL = getURL(unformattedurl);
  17.             URL = url;
  18.  
  19.             stringItem.setText(stringItem.getText() + 6);
  20.             //Imageloader imageloader=new Imageloader(stringItem,item,url);
  21.             System.out.println("Loading image...");
  22.  
  23.                     try {System.out.println("Thread1...");
  24.                        // stringItem.setText(URL);
  25.                     stringItem.setText(stringItem.getText() + 7);
  26.                         System.out.println("Thread2...");
  27.                        // stringItem.setText(stringItem.getText() + URL);
  28.                          image .setImage( loadImage(URL) );
  29.                          stringItem.setText(stringItem.getText() + 8);
  30.                          System.out.println("Thread3...");
  31.                         //item.setImage(image);
  32.                         //mItem.setLabel(mItem.toString());
  33.                         //stringItem.setText(stringItem.getText() + ioe.getMessage());
  34.                     } catch (Exception ex) {
  35.                        stringItem.setText(stringItem.getText() + "Err1"+ex.getMessage());
  36.                         System.out.println("ThreadError..."+ex.getMessage());
  37.                     }
  38.  
  39.  
  40.  
  41.         } catch (Exception ex) {
  42.             stringItem.setText(stringItem.getText()+"Error2 " + ex.getMessage());
  43.         }
  44.  
  45.     }
  46.  
  47.  
Feb 26 '11 #1
0 968

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: charly | last post by:
Whenever I try to open a project I get a message that the Web Access Failed. It then gives me an address like g:\inetpub\wwwroot\WebApplication1 even though I browse to the project at a...
12
by: Sven Groot | last post by:
I have a Windows Service application that acts as if it's an SMTP server. Outlook connects to this service, which is always running on the localhost. This works fine most of the time. However,...
5
by: daniel.shaya | last post by:
I'll try and keep this brief so in a nutshell: I have large distributed java system running on a Windows 2003 server (4cpu 8Gb memory). Periodically the following exceptions occurs in the...
0
by: Mike | last post by:
Ok so heres the code.. for some reason I kept getting the no permissions message, so I attempted to add the workgroup file. Now I get the "Authentication Failed" message. This is a secure...
2
by: Peter | last post by:
Hello Thanks for reviewing my question. I am writing a shared Office AddIn that uses a couple of user controls on a form and from time to time I receive this error "COM Interop registration...
0
by: Simon Jefferies | last post by:
Hello, I'm trying to create a new ASP. NET Web Application project, when I enter a name and press OK i get the following: Web Access Failed. The default web access mode for this project is...
7
by: Simon Jefferies | last post by:
Hello, I'm trying to create a new ASP. NET Web Application project, when I enter a name and press OK i get the following: Web Access Failed. The default web access mode for this project is...
0
by: Mike9900 | last post by:
I had vss team suite evaluation and it was expired, but after removing it and installing vss pro it gives this error and closes. Is there a way to fix this bug? I have deleted all the possible...
1
by: rockdale | last post by:
Hi, all I am coding a asp.net application as user data entry and report interface. We also have another C#.net appplication (a server) does some other stuff, my webserver can send and receive...
2
by: bernd | last post by:
Hi netties, posted this in a different group already, which seems to be inappropriate. I create a message queue with msgget(), sent a 5-byte message to it with msgsnd() and try to receive the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.