General Socket error

I hope someone can help with this. I use a TCP socket client in my application. It works pretty well, but it seems to be about 30 calls on a TCP socket and then up a "General Socket error." This puts the unit in a State that usually requires a restart of the phone before it will resume communication socket. My code is below. Any ideas or suggestions are greatly appreciated.

OK, I hope that someone can offer a better solution, but after a few tries, here is what is happening. I am struck these calls taken very quickly. Too fast, in fact, the garbage collector release resources appropriately. If I call system.GC() periodically, resources are released as soon as I need them to be. I realize that I should allow the system to take care of garbage collection for me, but my requirements are such that it is not possible. I also realize that Blackberry is not an ideal platform for my needs, but I have to work within the limits that I gave.

Based on my code, if anyone can provide a better way to deal with this that force the garbage collection, I really appreciate it.

Tags: BlackBerry Developers

Similar Questions

  • General Socket error on torch Simulator

    Argh...

    I used the storm Simulator to test my application.  I can read and write very well http and Sockets. Now I download the Simulator for the torch and I get "General Socket error" on all network access.  I looked in the debugging that I can't find something different.

    Ideas?

    Mark,

    Sorry I just thought of it.  He had something to do with my VPN DNS resolution.  I just used the IP address and I'm good.

    Thank you.

  • Consume Webservice - java.io.IOException: General socket error

    Hey,.

    I'm trying to consume a webservice ( www.webservicex.net, but also tried other forecasts) with a smart blackberry phone, but I still have a java.io.IOException.

    I generated stubs with the Java Wireless Toolkit 2.5.2. Now, I call the heel of the Java application.

    My MDS is running and are configured for use with my proxy. I can view each page with the built-in browser.

    The call of the stub works like this:

    public class BB_WeatherStart extends MainScreen {
    
       public BB_WeatherStart() throws RemoteException {
        com.weather.WeatherForecasts weather = null;
        WeatherForecastSoap_Stub stub = new WeatherForecastSoap_Stub();
        weather = stub.getWeatherByZipCode("10024");
    
        LabelField longi = new LabelField();
        longi.setText("Longitüde" + weather.getLongitude());
        add(longi);
    
        LabelField status = new LabelField();
        status.setText("Status" + weather.getStatus());
        add(status);
       }
    
    }
    

    The instantiation of the stub works, but the call of the method getWeatherByZipCode returns this exception.

    This is the code for the method:

    public com.weather.WeatherForecasts getWeatherByZipCode(java.lang.String zipCode) throws java.rmi.RemoteException {
    
       Object[] inputObject = new Object[1];
       inputObject[0] = zipCode;
    
       Operation op = Operation.newInstance(_qname_GetWeatherByZipCode, _type_GetWeatherByZipCode, _type_GetWeatherByZipCodeResponse);
       _prepOperation(op);
       op.setProperty(Operation.SOAPACTION_URI_PROPERTY, "http://209.162.186.60/GetWeatherByZipCode;deviceSide=true");
    
       Object resultObj;
       try {
          resultObj = op.invoke(inputObject);
       } catch (JAXRPCException e) {
        throw e;
       }
    
    //Snip.. the Rest of the method is never reached ;)
    
    }
    

    The Exception is thrown in the call to op.invoke (inputObject);

    I also tried the hostname instead of IP address, but then I get a j "" ava.io.IOException: bad DNS address "and if I try without the"; " deviceSide = true' I get the message "Local port: 19780 APN:"rim.net.gprs"APN username: password 'null' AFN: there is no connection"null"

    Thanks for your help

    Tina

    After watching a little I don't think that the original problem was with the connection I think it is related to a null value returned by the web service.  I generated a set of stubs from the web service, you were using and tried with the same result as you.  I got a version of 4.5 and made some settings (I don't specifically know who he was) and the error has become ' java.rmi.MarshalException: nillable not element of array in response type is not met. ".  Went up to version 4.7 and here it works very well.  If you run this with a test tool web service call, you see a null of WeatherData to the bottom element which is the likely culprit.  I read somewhere that BB do not have NULL values in some earlier versions.

    hope that helps.

    T

  • General socket error please help urgent

    Hello

    I do the http connection call following webservice.

    http://maps.google.com/maps/api/staticmap?center=Berkeley,CA&zoom=14&size=400x400&sensor=false
    

    the code is as follows,

    HttpConnection conn = (HttpConnection), Connector.open (url);

    InputStream in = conn.openInputStream ();

    If (responseCode is HttpConnection.HTTP_OK) int inChar.

    {

    final StringBuffer inBuffer = new StringBuffer() ;

             While ((inChar = in.read ())! = - 1).

    inBuffer.append)

    inChar Char));

    in. Close();

    }

    This code worked fine yesterday, today, I get 200 responsecode but get the general exception taken during playback.

    If I use some other webservice it also works very well.

    pls pls help

    Here seems to be nothing wrong with the link.

    I would recommend that you do not open the InputStream, until you have the response code and I was looking at using IOUtilities.streamToBytes rather than you StringBuffer loop, but here the noise.

    Is your problem on a device or a Simulator?

  • No Socket error 11001 and error no Ox800CCC0D

    means socket error 11001 and 0x800CCC0D No error and how do I fix it. Whenever I connect to windows mail I get this message.   Its does not not my incoming emails, but cannot send messages, also problems causig enter the windows messaging

    Thanks t.

    my mistake put .au in post, shows the degree of fatigue, I. I wish it were easy.

    account has been/is ok put in place without the .au

    am able to send at least. now, the difficulty of the reception...

    Check the account name on the general tab of your account properties window;
    1. it must be the same as your e-mail address.
    2. it can BE
        * E-mail address is removed from the privacy *     (without .au)
    or,* address email is removed from the privacy * (with .in but NOT .com)
    but not the combination of the two.

    You have account: 'mail.bigpond.com.au'.  I think this is why the error message says : host 'mail.bigpond.com.au' is not found.

    t-4-2... keep guessing.

  • Windows live ID:0x800CCC0E, 10060 socket error - impossible to send/receive email using Windows Live Mail

    could not send email, now I can't send or receive email.  I contacted my IP to see if it was a problem on their end, and it wasn't. Help, please!

    Looks like you are running in a block of 25 port.
    As a general rule, the owner of port 25 SMTP server you use must be the same as the entity that provides your Internet connection at the moment. To learn more about this issue, see anti-spam
     
    The workarounds available when sending abroad are the following:
     
    1. use webmail to send (via your browser).
    2. ask your ISP if they have one port other than '25' for SMTP.
    3. If you use the same connection away from home frequently,
    Replace with the SMTP belonging in this regard. It's a bit
    difficult, but if you want to go this route, I can provide more details.
    4. If you frequently send to multiple locations, get a free Gmail account,
    Configure it to POP access, set up in Windows Mail and use it to
    your shipment of household chores. Gmail uses port 465 for SMTP, which is not blocked
    as port 25 is.
     
    Gary van, Microsoft MVP (Mail)
    ------------------------------------------------------

    'Law Gal' wrote in the new message: * e-mail address is removed from the privacy... *

    Here is the error I get.  I'm on a laptop, wireless.  My thing of mail server does not use SSL.

    I can't SEND mail via Windows Live, but I can receive.

    The connection to the server has failed.

    Are subject: Roberts - t/c Nancy Stacy (925) 939-4367'
    Server: 'mail.hsimonsonlaw.com '.
    Windows Live Mail error ID: 0x800CCC0E
    Protocol: SMTP
    Port: 25
    Secure (SSL): No.
    Socket error: 10060

    Gary van, MVP (Mail)

  • Satellite L30: CFSServ "Windows Socket error.

    Hello

    Every time I try to go on internet, this warning sign appears (a yellow triangle with an exclamation mark inside) saying CFSServ "Windows socket error.
    It allows me to go on my internet (what is broadband) gave me solutions such as put the Windows XP CD in the CD drive and repair of each file, but the thing is, I never gave me a cd of Windows XP in the first place! As soon as I opened the box and set up the laptop, there is no CD of windows xp.
    (I'm typing this from my desktop computer) I wish that all solutions on how to get rid of this problem.

    Thanks to all who help.

    Post edited by: ringmaster164

    First you get a Toshiba Recovery CD and not an original Windows OS CD.
    In this case, if you want you can retrieve the whole OS. All Toshiba drivers are preinstalled on the image.

    Now to the error:
    cfsserv.exe is a process belonging to Toshiba ConfigFree utility and search wireless devices.
    However, malware often use the names of valid program to try to hide themselves. So, please run a full scan with Ad-Aware in making sure you have the latest definitions file.

    If it doesn t work I recommend the ConfigFree tool for some audit settings.

  • UFT 11.51 - general lance error on the key word: "Browser(). Navigating. "

    product name: UFT v.11.51

    OS: win 7 64 bit + IE 8

    error message: 'General error' on the line at: Browser ("abc"). Navigate ("url")

    Until today it worked OK, but after that I changed the URL for the DataTable value he started lifting General execution error. What is strange, after that I changed it to the url of the General error appears again

    I googled a couple solutions and tried but without success. Here is the list of what I've tried so far:

    1)

    Restart the UFT, IE, all OS

    2)

    DescribeResult (err.number) in the debug gives me nothing (currently I don't know the exact message because iam trying to reinstall UFT)

    (3) i google solution running quicktestprofessional.bat file under directory Bin should help, but I have not found this MISS installation file under...

    What else can I try?

    Thank you for your time and knowledge.

    Hi all

    I found the solution here:

    http://www.joecolantonio.com/wp-content/uploads/2011/08/IERefreshIssue.PDF

    In my case it was handicapped addon in IE: class Manager BHO, so when I enabled it, everything works fine!

  • Message "General Extraction error location ARE 1"

    I have the means to go to the Bowling game and was able to play until a few days ago, I got the error "General Extraction location ARE 1" and I can't get in the game.  I looked online to see what this error is and he can't find where.  I contacted Pogo, where I had the game and Oberon Media, the creators of the game and can help find a solution to my problem.  The only thing I've done to my computer, it's do all the updates of Java, windows and McAfee (my virus program).  I have windows XP.  Any help would be appreciated.

    Hi Jack,
    Thanks a lot for your answer.  I deleted all records of three in the C drive and not seen any sign of the game in my computer so I re-installed.  The re - install put the shortcut on my desktop, so I tried to go in there and got the same 'general Extraction error location ES 1' and the game will not load.  Went through the start menu and tried and received the same message.  I returned to my computer > lecteurC > program files > oberon media > way to go Bowling and open this folder.  The record was filled of records and other icons, so I started to search in folders.  There is an icon that says 'Way to go Bowling Application Electronic Arts' and when I clicked on that, load the game and I was able to play the game.  Because I didn't get into the game this way, whenever I play, I went back to this icon and click right and found the 'send to the office', so I did.  When I click on it on my desk, the game loads and I can play.  I deleted the shortcut that was created during installation and use the one I sent to the desktop and can play now.  Don't know what past or why, I'm so happy I can play this game.

    Thank you

    Vickie1712

  • The host 'SMTP' could not be found. Please check that you have entered the server name correctly. _ subject 'Report issue', account: 'POP3', server: 'SMTP', Protocol: SMTP, Port: 25, secure (SSL): no, Socket error: 11001, error number: 0x800CCC0D

    The host 'SMTP' could not be found. Please check that you have entered the server name correctly.
    'Report issue', account: 'POP3', server: 'SMTP', Protocol: SMTP, Port: 25, secure (SSL): no, Socket error: 11001, error number: 0x800CCC0D.
    I'm answering an ad on craigslist and Windows Live continues to appear, but will not send my email I can be reached at * address email is removed from the privacy * or 614-499-1541.
    Thank you
    Stephen lawless

    Your post has nothing to do with Windows Update.

    You're not even close to have properly configured your e-mail account in Windows Live Mail.

    You will find support for Win7 e-mail Clients in this forum: http://social.answers.microsoft.com/Forums/en-US/w7network/threads

    You will find support for Windows Live Mail in this public newsgroup:
    http://www.Microsoft.com/communities/newsgroups/list/en-us/default.aspx?DG=Microsoft.public.Windows.live.mail.desktop

    Through your News Reader:
    News://msnews.Microsoft.com/Microsoft.public.Windows.live.mail.desktop

    ~ Robear Dyer (PA Bear) ~ MS MVP (that is to say, mail, security, Windows & Update Services) since 2002 ~ WARNING: MS MVPs represent or work for Microsoft

  • When I try to log the p2p soulseek site, I get the error message "connection failed: socket error.» change the connection settings. How can I fix it?

    "socket error".

    When I try to log the p2p soulseek site, I get the error message "connection failed: socket error.» change the connection settings. How can I fix it? Is - this type of error called a winsock error?  It keeps happening to me on this site. What I've read, it happens when you make changes to a program before concluding that under its weight. Could it happen because I'm deleting files, I don't think that will be completed while the other files are D/Ling? That's what I'm doing wrong? I found a solution to correct an error in Winsock that is to enter the "command prompt" and type "netsh winsock. Will this work? (I'm sorry I have so many questions in this post, but I have had TO KNOW!!)

    Hello

    I suggest you send the question here for best support about the issue.

  • Get a connection error 421 4.4.2 dropped due to the socket error in exchange 2010

    We get an error while sending an e-mail to a particular connection 421 4.4.2 abandoned due to the socket error in exchange 2010

    Hi jussainkothari_412,

    Thanks for posting your question in the Microsoft answers Forum. Any questions on Exchange, please visit the following link:

    http://social.technet.Microsoft.com/forums/en-us/category/ExchangeServer/

  • Window Live Mail Error 0x800CCC0E socket error 10060

    I am trying to send emails with windows live mail but continue to receive error messages

    Server: SMTP.cranberrys.co.uk

    SMTP Protocol

    Port 25

    Not secure (SSL)

    10060 socket error

    I can receive emails, but cannot send, can anyone help?

    The feedback forum is to post your comments on the web site of Microsoft Answers, only not to ask questions of Windows Live Mail.

    Windows Live Mail questions belong here: http://windowslivehelp.com/product.aspx?productid=15

    The likely cause is that you are not properly authenticating to the outgoing server, you use the wrong port or if you use the wrong encryption.  Ask your email service provider you should use.

  • Protocol: SMTP, Port: 25025, secure (SSL): no, Socket error: 10060, error number: 0x800CCC0E

    I can get express to send emails that is my mistake:

    The connection to the server has failed. Account: 'POP3', server: 'mail.punkcarter.com ',.
    Protocol: SMTP, Port: 25025, secure (SSL): no, Socket error: 10060, error number: 0x800CCC0E

    I don't know anything about your PunkCarter mail server, but I don't know any server that requires you to use the port 25025. What happens if you change 2525? It's a number with some servers of viable port.

  • General extraction error location es1

    I just got a new laptop.  I played on IWin on my old laptop.  When I tried to download games on the new laptop, I get this error message.   General extraction error location es1

    Hi biehlel,

    (a) what operating system do you have?
     
    (b) you try to download the game via Internet Explorer? Or install the game from the CD/DVD/flash drive?
    Uninstall versions of java and reinstall them.
     
    Check this link, it may help, if you are referring to the installation of the game through CD/DVD.
    http://social.answers.Microsoft.com/forums/en-us/vistagaming/thread/33c530ab-07bc-4b94-8bdf-431ddbcf0c72
     
    IWin seems to be an online game.
     
     
    Post back with the State.
    Aziz Nadeem - Microsoft Support

Maybe you are looking for

  • Why Windows high contrast doesn't work anymore since Firefox 29 and the theme of the Australia?

    In firefox, 28 and all versions before that when I had Windows High Contrast active firefox would also be in high contrast. This would make black Web pages and all the text would become white. Because of my disability which makes it much easier for m

  • Tecra A8 - HARD drive Protection service does not work under Vista

    HelloAfter Vista installation professional in my Service for the Protection of the drive HARD A8 - 185 has stopped working, I need to update the software HDD P.S. Shock Sensor but can not find anywhere. Someone knows how to fix this? Help me please :

  • Lenovo Z50 - 70 gel random error

    Hello! I just bought a Lenovo Z50-70 (840 M, i5, 1 to SSHD), and I have a very annoying problem. Installed Win 8.1 Pro with drivers from the DVD. All right, it is not all errors in the Manager devices, but random computer crashes (the cursor does not

  • Impossible to install MSE because the PC is infected

    I can't install MSE because my PC is infected.  How do I scan and fix the PC without booting the operating system?

  • InDesign crashes during lunch

    Could´t resist the pun...When I take a break for lunch and is away from the computer for maybe 30-40 minutes, InDesign will be crushed when I come back. It happens to almost every day and I think that it is connected to the network. But I also use Ac