Threaded Blocking FTP Call

Hello all
I've recently implemented a program that will FTP some files across a network using the com.enterprisedt.net.ftp.FTPClient class and package from www.enterprisedt.com.
Thus I know this might be a question for them but I was wondering why my GUI (and all of my other threads) lock up while I'm connected to the FTP server. I'm not very familiar with dealing with FTP ... but I have numerous times successfully implemented various different program threads.
Anyone have any similar experiences?

I've tried to thread out the Gui seperately andd it still seems to happen. I will check out that tutorial but I wanted to ask if this had anything to do with it. During my FTP transferring, I make calls to the GUI in a certain way.
Here's how I do that:
Step 1
I make a gui object thats a variable of the Main class.
Step 2
I have a static "Displayer" class that takes a few JTextAreas and a JTextField (that is passed via a Vector from the gui object). This static class has its own local static variables of each of the Swing Components passed to it.
Step 3
During my FTP transfer session, I make static calls with data to the "Displayer" class.
However, I never see them (cuz it is locked up). Everyones diagnosis thus far is dead on. So I guess another question would be ... are there differences to threading out a gui thread .. versus say a database information exchanger thread?
I start my

Similar Messages

  • Block Unknown Call / SMS

    Everything that I have read suggests the you cannot block individual 'spam' calls or text .. is this is the case, it's not acceptable.
    I have a Blackberry Z30 .. there MUST be a way to block individual calls or text. You can on other makes of phones so why not a Blackerry Z30. You can block all calls, but that's a little overkill.
    I have been a loyal user of Blackberry phones over the past 6 years, if this cannot be resolved soon, when my current contract is up, I will be switching to another make ..
    Please advise ..
    Thanks

    In your  BlackBerry World, check out Call Blocker Pro
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Thread blocking on java.nio.charset.CoderResult

    Hello all,
    I have a multi-threaded app which does some fairly intestive string operations (basically extracts text from documents for indexing a search system).
    I am seeing a massive bottleneck around the java.nio.charset.CoderResult class. When profiling, I see a whole stack of threads blocking on (waiting for) a monitor on this java.nio.charset.CoderResult class. Seems to be a result of string encoding/decoding (I am often encoding strings as UTF-8).
    Anyone know why the JVM would want my threads to sync on this class? It's creating a huge performance issue for my app. Approximately 15% of ALL the processing time is spent waiting for this class.
    Help!

    I would guess that you're using some of the static methods in the CoderResult class. The static methods CoderResult.unmappableCache(), CoderResult.malformedForLength() and CoderResult.malformedCache all use a static inner class called Cache. Its get() method is synchronized on Cache.class. Since the Cache inner-class is static, any part of your multi-threaded application that goes through the Cache.get() method is going to be waiting for the lock on Cache.class.
    Could you create a CoderResult instance for each thread? That would mean that there would be a different static Cache class for each thread, reducing the number of threads competing for the Cache.class lock.
    I'd have to see some of your code to give a better answer.
    Brian

  • Thread Problem - (Thread Blocking Problems?)

    Hi Friends
    In my program while using thread i found a problem in this code .
    In this whlie running the 'msg' was printen only after all 5 inputs are given .
    why i was not getting output after one input.why the thread out was waiting for remaining threads input.
    my code is
    import java.io.*;
    class MyThread extends Thread
      BufferedReader bin;
       MyThread()
         super();
         start();
       public void run()
          try
           bin=new BufferedReader(new InputStreamReader(System.in));
           String msg=bin.readLine();
           System.out.println(msg);
          catch(IOException e)
             System.out.println(e);
    public class Threads
         public static void main(String args[])
              for(int i=0;i<5;i++)
                new MyThread();
    }

    Hi Friends
    In my program while using thread i found a problem
    em in this code .
    In this whlie running the 'msg' was printen only
    after all 5 inputs are given .
    why i was not getting output after one input.why
    hy the thread out was waiting for remaining threads
    input.Probably because of how the scheduler was rotating among the threads while waiting for input and queueing up output.
    When you call readLine, that thread blocks until a line is available. So it probably goes to the next thread's readLine, and so on. All threads are probably blocked waiting for input before you enter a single character.
    Something inside the VM has to coordinate the interaction with the console, and between that and your threads, the out stuff just doesn't get a chance to display right away.
    In general, you can't predict the order of execution of separate threads.

  • How can I block unwanted calls? (Besides Do Not Call List)

    We just moved into our new home and have Verizon's home phone service (and everything else). In less than the month we've been here we've been BOMBARDED by HUNDREDS of solicitors! Half are non-profits, half biz/telemarketers.They're all unwanted (I don't even do charities over the phone). I've never been so overwhelmed with unwanted calls before! (Must be a California thing? We just moved here from Seattle). Our number is on the National Do Not Call registry, but of course that doesn't stop the non-profits, charities and politicians from calling (they're excluded). Nor does it stop the ones who just don't care. I see that Verizon no longer provides the option of blocking unwanted numbers, and it also discontinued the Do Not Disturb feature. There used to be other options from many of the various phone providers to block all calls except those on a pre-approved list of your choosing. Why aren't these options available to us anymore???
    I'm thinking... with all this advanced technology...  there MUST be some way to block all those unwanted calls!!??!!
    Does anyone have any suggestions?
    Thanks!

    Hello rednorsk
    There are a couple of options, including one that is on done through your account online, or by calling customer service and requesting the block.  Customer Service can tell you how many of these blocks can be done for free, and whether you will need a specific plan to cover more.
    Here is a thread on just your issue.
    Regards,
    ElizabethS

  • Weblogic 10 jsp compliation thread block problem

    hi
    i am using weblogic 10 and jdk1.5.
    My application is deployed in ear format, with 2 wars, and 20 ejbs.
    The ear works ok with weblogic 8.1.
    In the application , one war passes the request to another war, that's the workflow....
    Now when the request is passed on the second war, a jsp is supposed to open....but the application get stuck there.
    The call is like this in a servlet....
         reqDisp = req.getRequestDispatcher("/newIndex.jsp");
    reqDisp.forward(req, res);
    The new index jsp is not opened....there is no problem with it it comiples ok....i check with weblogic appc...and it is working on weblogic 8.1.
    when i stop the server...the log gives me following exception info.
    "ExecuteThread: '12' for queue: 'default'" daemon prio=6 tid=0x2b8edad0 nid=0xc1
    0 in Object.wait() [0x2da1e000..0x2da1fb64]
    at java.lang.Object.wait(Native Method)
    - waiting on <0x07f94608> (a javelin.client.JobWaiter)
    at java.lang.Object.wait(Object.java:474)
    at javelin.client.JobWaiter.blockUntilFinished(JobWaiter.java:45)
    - locked <0x07f94608> (a javelin.client.JobWaiter)
    at javelin.client.ClientUtilsImpl.build(ClientUtilsImpl.java:838)
    at weblogic.servlet.jsp.JavelinxJSPStub.compilePage(JavelinxJSPStub.java:248)
    at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:200)
    at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:164)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:235)
    - locked <0x07ef8220> (a weblogic.servlet.jsp.JavelinxJSPStub)
    at weblogic.servlet.internal.ServletStubImpl.onAddToMapException(ServletStubImpl.java:391)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:309)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
    at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:503)
    at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:245)
    at LCDisplayController.handleProcessing(Unknown Source)
    at DisplayControllerServlet.doPost(Unknown Source)
    at DisplayControllerServlet.doGet(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:226)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:124)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
    at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:503)
    at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:245)
    at com.orbitech.workflow.servlet.WFAppListController.openWorkitem(WFAppListController.java:793)
    at com.orbitech.workflow.servlet.WFAppListController.processRequest(WFAppListController.java:102)
    at com.orbitech.workflow.servlet.WFAppController.doProcessRequest(WFAppController.java:97)
    at com.orbitech.workflow.servlet.WFAppController.doGet(WFAppController.java:64) at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
    i think the there is thread blocking and the jsp is not getting compiled or smthing....
    i am unable to understnd the exception....
    any help, suggestion ? thanks in advance.

    We are using jBPM and Hibernate in our application which runs fine on other java application servers. On Weblogic we were getting an error:
    org.hibernate.HibernateException: Errors in named queries: GraphSession...........
    By adding:
    <container-descriptor>
    <prefer-web-inf-classes>true</prefer-web-inf-classes>
    </container-descriptor>
    to our weblogic.xml, Weblogic used our Hibernate3 and antl-2.7.6 .jar files which resolved this issue but created multiple CompilationException errors in many .jsp's. (as follows)
    Error 500--Internal Server Error
    weblogic.servlet.jsp.CompilationException: Failed to compile JSP /WEB-INF/jsp/struts/dashboards/portfolio_chart.jsp
    portfolio_chart.jsp:1:1: The validator class: "org.apache.taglibs.standard.tlv.JstlCoreTLV" has failed with the following exception: "java.lang.ClassCastException: weblogic.xml.jaxp.RegistrySAXParserFactory".
    <%@ taglib uri="/jstl-core" prefix="c" %>
    ^---------------------------------------^
    portfolio_chart.jsp:1:1: The validator class: "com.primavera.pvweb.taglib.JSMessageTagLibraryValidator" has failed with the following exception: "java.lang.ClassCastException: weblogic.xml.jaxp.RegistrySAXParserFactory".
    <%@ taglib uri="/jstl-core" prefix="c" %>
    ^---------------------------------------^
         at weblogic.servlet.jsp.JavelinxJSPStub.compilePage(JavelinxJSPStub.java:298)
         at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:216)
         at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:165)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:235)
         at weblogic.servlet.internal.ServletStubImpl.onAddToMapException(ServletStubImpl.java:394)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:309)
    Is this a Weblogic bug ?

  • Future.get and the event despatch thread blocking

    neeeyaaarghhhh
    been tying myself in knots thinking about this
    Following one of the java tech tips I've been using Callable and Future objects when I want to return a result from a task, in my case it's usually some file processing
    So I have a file chooser gui, I select a file and launch my Callable and await the result in Future.get...
    Now the problem is... Future.get I understand blocks the calling thread until the computation / work in the Callable is done and the result returned. In this case the blocked thread will be the event despatch thread... which causes problems as during my file reading I have a JProgressBar running and updating. Well at least I did, now it doesn't show up at all as all the updates to the JProgressBar via invokeLater are queued (as event despatch thread is blocked) until after the work thread has finished
    How do I launch a Callable, await the result and have some limited gui activity as the task progresses? The only solution I've found is to have the ProgressBar in a modal dialog, to block out the rest of the gui like this whilst I do the work in the event despatch thread (and drop the idea of threading altogether)
    Is my mental modal of how worker threads should spin off from the event thread flawed or am I just missing some 1 line command?

    In the situation of updating the gui, you usually want to pass some sort of callback object to the asynchronous code and have that callback method run on the gui event thread.
    public class GuiClass {
    public void handleResult(Object data);
    public void startTask() {
      threadpool.execute(new Runnable() {
        public void run() {
          // ... do asynch work ...
          final Object myResult = ...;
          SwingUtilities.invokeLater(new Runnable() {
            public void run() {
              handleResult(myResult);
    }In this code, the startTask method is called on the gui thread. it starts some async work on the threadpool. when finished, the asynch task queues the result to be handled back on the gui thread. the handleResult method is called later on the gui thread with the final result. thus, no blocking of the gui thread.
    The Callable interface is great for when the invoking thread needs to wait for a result, but you pretty much never want to do this with the gui thread.

  • How to block a caller

    Hi, i am getting a call from an 0800 6121695 number every day. They hang up after 2 rings but it is very annoying an dwould like to stop them. Does anyone know how to block these calls pleade?

    There is no way you can block a call from an iPhone. You can talk to your carrier and ask if they can block the number, or you can create a short track of silence and assign that as a ringtone to that number only. Then the phone will still ring but you won't hear it.
    That number appears to be a sweatshop pushing the Postcode Lottery, by the way, in case you didn't know. In this thread:
    http://www.whophonedme.co.uk/08006121695
    folks claim that you can call them back and there's an option to be removed from their call list. Whether that would work or not I don't know.
    Regards.

  • I am recieving calls from a solicitor. Show up as no caller Id. I want to block all calls that do not show caller Id. Can I do that? I am on the do not call list

    How do I block all in coming calls that do not show on my caller Id. Phone says "no caller id" This particular call is from a place selling septic tank cleaner. They leave an automated voice mail. They are calling me over and over. I am on the national do not call list but that's no help. Because the caller id doesn't show anything I can't even report them.
    I remember in the past calling a number and before my call would go thru I would have to enter my phone number so the party I was calling knew who was calling them. That is what I want to do. I want to block all calls from "no caller id" "number unavailable" Just FYI my phone is an IPHONE 5 and I am on Verizon.
    Any help would be appreciated.
    Thanks

        itbitybob, good day!
    Thank you for taking the time to reach out to us today. I know how frustrating it can be getting phone calls from "no caller id" numbers. We do have an option that is called Family Base that will allow you to block unknown numbers, private numbers, or caller id. This link will provide you with the full details of this option. http://vz.to/1gIklla I hope this is able to answer your question. If you have further questions please feel free to reach back out to us at any time.
    KevinR_VZW
    Please follow us on Twitter @VZWSupport 

  • How can I block 'no caller id' calls from contacting me?

    Over the last couple of days someone has got a hold of my number, and has been calling me with a private number. I want to know if there is a way I can block all calls on my phone that come from a private 'no caller ID' number, and only allow ones that have a caller ID through. I have tried contacting my service provider Telstra which they said the most they can do is put me on the do not call register (which doesn't help my situation at all, as the person isn't a telemarketer). Does anyone have any ideas about how to fix my problem?
    Thanks.
    (I have an iPhone 5 iOS 7.1.1 and my service provider is Telstra Australia)

    There is no Third Party App you can load onto an iPhone that will be allowed to take over your iPhone's Phone without jailbreaking your device (which cannot be discussed here nor would I ever recommend doing it).
    One feature you can use is the Do Not Disturb feature.  You can set it to allow calls from your Favorites then add all of your people to your favorites, but that is not quite what you are asking for.

  • Blocking ole call

    Is there a way to do a "blocking ole call", i.e. making the calling code stop until the ole-application has exited? I start Word and load a document and then do stuff the file after the user has exited.
    I tried using a blocking host command with callback on the document but it had an annoying cmd windows always visible and I would like to avoid digging into the registry to find the word executable.
    BTW: what is the difference between OLE2 and CLIENT_OLE2?

    client_ole is the implementation of OLE interaction
    in WebUtil. When moving your apps the Web, all
    previous client-server ole calls would occur on the
    server. With attaching WebUtil and a simple search
    and replace action you can make it work on the Web
    then. I am misunderstanding something or aren't the 9i/10g OLE2 calls already happening on the client? At least the stuff I have tried with OLE2 pops up the application on the client and not on the AS-machine.
    From teh top of my head, I think that the host
    command in WebUtil allows you to do host command
    calls on the client without popping up a DOS window.Yes, but the problem is that i need the window (I run the filename and let windows take care of the rest through extension association), but I would just like to make it more invisible to the user.
    -Nik

  • IPhone Safari block all calls

    iPhone Safari block all calls
    When i goin to internet in Safari or AppStore at iPhone, people dont colled me..
    Internet(1) + phone talk(2) = only (1) or (2)!
    I buy iphone becose i ned internet and i must every minute talkin by phone, when people call to me
    But iphone dont work as telephone when i use Internet!
    I`m from russia, my mobile operator MTS
    Letter from MTS operator:
    You may use your iphone only for internet surfing or only use as phone at one time
    iPhone is innovation device of Class B, becouse calls and internet you may use only as 1 and 2... but no 1+2 at once time
    iPhone not device of Class A, and its problem of Apple, who create iPhone,
    sorry but we dont help you.
    People! please help me! =) Pleese>>>
    Say.. When you in Safari, you recieve calls?
    Its really problem of iphone or its problem of my mobile operator? (russia, MTS)
    Thanks

    Thanks for info.. =)
    In russia 3G is comin, in my region 3G and EDGE coming soon.. after NewYear =)
    Now in my region work only gprs... =)
    but 3g is coming..
    SO my operator say, that iphone is a B class phone and its work only with voice only with internet... and dont say about 3g work graet with voice and internet..
    thanks very much =)
    Message was edited by: stek

  • Is there an app for blocking cell calls

    Is there an app for blocking cell calls?

    There is not.  Look to your right under "More Like This" for related discussions.

  • How to Block Unwanted Calls in Nokia 5330

    How can i block unwanted calls/sms in Nokia 5330 TV Mobile Phone??? What supported apps or software can i install???

    Not possible on your S40 phone ..

  • Block External calls h.323 gateway CM4.1(3)

    Is there a way to block external calls from getting through the gateway. The gateway is H.323, Callmanager 4.1(3)

    You can use Class of Restriction on the gateway.
    http://www.cisco.com/en/US/tech/tk652/tk90/technologies_configuration_example09186a008019d649.shtml

Maybe you are looking for