0

Asynchron Upload works only in debug

asked 2016-10-19 22:45:53 +0800

DrFrank gravatar image DrFrank
39 1

updated 2016-10-19 22:47:46 +0800

Hi all..

I'm trying to develop an asynchronous upload for big file.

At this end, I use a thread, in this way:

stream = media.getStreamData(); THIS STARTS A THREAD LIKE THIS:

final Thread my_proccess = new Thread(new Runnable() {

@Override public void run() {

//VERY VERY LONG PROCESS using stream

} });

my_proccess.start();

The problem is that under Eclispe, in debug mode, the process starts in asynchronous way.

If I deploy the same code in production environment, to uplaod process is not asynchronous (the stream seems uploaded before the thread starts) and the uplaod windows appear (the windows with the "fake path" c:\fakepath.....).

I'm using zk version 8.0.1.1 on tomcat 8.0.9 (the same in debug and production).

Any suggestion?

delete flag offensive retag edit
Be the first one to answer this question!
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2016-10-19 22:45:53 +0800

Seen: 12 times

Last updated: Oct 19 '16

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More