[jira] [Resolved] (OPENMEETINGS-2055) uploading MP3

2019-04-11 Thread Maxim Solodovnik (JIRA)


 [ 
https://issues.apache.org/jira/browse/OPENMEETINGS-2055?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Maxim Solodovnik resolved OPENMEETINGS-2055.

   Resolution: Fixed
Fix Version/s: (was: 4.0.8)
   5.0.0-M2
   4.0.9

Should be fixed

Please verify using build 585+ from here: 
https://builds.apache.org/view/M-R/view/OpenMeetings/job/OpenMeetings%204.0.x/

Or from here 
https://builds.apache.org/view/M-R/view/OpenMeetings/job/openmeetings

> uploading MP3
> -
>
> Key: OPENMEETINGS-2055
> URL: https://issues.apache.org/jira/browse/OPENMEETINGS-2055
> Project: Openmeetings
>  Issue Type: Bug
>  Components: Import/Export
>Affects Versions: 4.0.8
> Environment: Ubuntu 14.04 12 GB ram quad core processor
>Reporter: Horace Miles
>Assignee: Maxim Solodovnik
>Priority: Major
> Fix For: 4.0.9, 5.0.0-M2
>
> Attachments: image-2019-04-10-03-01-42-577.png
>
>
> When uploading MP3 or MP4 files, after approximately 60 seconds I get the 
> connection has been lost.
> I have changed the config/jee-container.xml
>value="1"/>   to ' .>'
> after this happens, I have the option to reload, which creates a new user in 
> the room.  The fill does not show up in the uploaded folder.  I have to 
> restart red5-ubdeb2 restart  to get rid of the ghosted users and 
> additionally, sometimes the file I was trying to upload will also show after 
> the restart.  I have hundreds of files to upload and I would really like to 
> make this work smoothly has I have other users waiting to use openmeetings.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (OPENMEETINGS-2055) uploading MP3

2019-04-11 Thread ASF subversion and git services (JIRA)


[ 
https://issues.apache.org/jira/browse/OPENMEETINGS-2055?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16815377#comment-16815377
 ] 

ASF subversion and git services commented on OPENMEETINGS-2055:
---

Commit 705cbe340e97e6cc9c60207739d8bdf6787a930b in openmeetings's branch 
refs/heads/master from Maxim Solodovnik
[ https://gitbox.apache.org/repos/asf?p=openmeetings.git;h=705cbe3 ]

[OPENMEETINGS-2055] uploaded files are converted in separate thread


> uploading MP3
> -
>
> Key: OPENMEETINGS-2055
> URL: https://issues.apache.org/jira/browse/OPENMEETINGS-2055
> Project: Openmeetings
>  Issue Type: Bug
>  Components: Import/Export
>Affects Versions: 4.0.8
> Environment: Ubuntu 14.04 12 GB ram quad core processor
>Reporter: Horace Miles
>Assignee: Maxim Solodovnik
>Priority: Major
> Fix For: 4.0.8
>
> Attachments: image-2019-04-10-03-01-42-577.png
>
>
> When uploading MP3 or MP4 files, after approximately 60 seconds I get the 
> connection has been lost.
> I have changed the config/jee-container.xml
>value="1"/>   to ' .>'
> after this happens, I have the option to reload, which creates a new user in 
> the room.  The fill does not show up in the uploaded folder.  I have to 
> restart red5-ubdeb2 restart  to get rid of the ghosted users and 
> additionally, sometimes the file I was trying to upload will also show after 
> the restart.  I have hundreds of files to upload and I would really like to 
> make this work smoothly has I have other users waiting to use openmeetings.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[openmeetings] branch master updated: [OPENMEETINGS-2055] uploaded files are converted in separate thread

2019-04-11 Thread solomax
This is an automated email from the ASF dual-hosted git repository.

solomax pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/openmeetings.git


The following commit(s) were added to refs/heads/master by this push:
 new 705cbe3  [OPENMEETINGS-2055] uploaded files are converted in separate 
thread
705cbe3 is described below

commit 705cbe340e97e6cc9c60207739d8bdf6787a930b
Author: Maxim Solodovnik 
AuthorDate: Thu Apr 11 19:03:40 2019 +0700

[OPENMEETINGS-2055] uploaded files are converted in separate thread
---
 .../web/room/sidebar/UploadDialog.html |   1 +
 .../web/room/sidebar/UploadDialog.java | 190 ++---
 2 files changed, 131 insertions(+), 60 deletions(-)

diff --git 
a/openmeetings-web/src/main/java/org/apache/openmeetings/web/room/sidebar/UploadDialog.html
 
b/openmeetings-web/src/main/java/org/apache/openmeetings/web/room/sidebar/UploadDialog.html
index 718749e..8cdc7a2 100644
--- 
a/openmeetings-web/src/main/java/org/apache/openmeetings/web/room/sidebar/UploadDialog.html
+++ 
b/openmeetings-web/src/main/java/org/apache/openmeetings/web/room/sidebar/UploadDialog.html
@@ -38,6 +38,7 @@



+   



diff --git 
a/openmeetings-web/src/main/java/org/apache/openmeetings/web/room/sidebar/UploadDialog.java
 
b/openmeetings-web/src/main/java/org/apache/openmeetings/web/room/sidebar/UploadDialog.java
index 886bdae..9e1834c 100644
--- 
a/openmeetings-web/src/main/java/org/apache/openmeetings/web/room/sidebar/UploadDialog.java
+++ 
b/openmeetings-web/src/main/java/org/apache/openmeetings/web/room/sidebar/UploadDialog.java
@@ -31,8 +31,12 @@ import org.apache.openmeetings.db.entity.file.BaseFileItem;
 import org.apache.openmeetings.db.entity.file.FileItem;
 import org.apache.openmeetings.util.process.ProcessResult;
 import org.apache.openmeetings.util.process.ProcessResultList;
+import org.apache.openmeetings.web.app.Application;
+import org.apache.openmeetings.web.app.WebSession;
 import org.apache.openmeetings.web.room.RoomPanel;
 import org.apache.openmeetings.web.util.upload.BootstrapFileUploadBehavior;
+import org.apache.wicket.ThreadContext;
+import org.apache.wicket.ajax.AbstractAjaxTimerBehavior;
 import org.apache.wicket.ajax.AjaxRequestTarget;
 import org.apache.wicket.ajax.form.AjaxFormSubmitBehavior;
 import org.apache.wicket.ajax.form.OnChangeAjaxBehavior;
@@ -53,38 +57,101 @@ import 
org.apache.wicket.request.resource.JavaScriptResourceReference;
 import org.apache.wicket.spring.injection.annot.SpringBean;
 import org.apache.wicket.util.lang.Bytes;
 import org.apache.wicket.util.string.Strings;
+import org.apache.wicket.util.time.Duration;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
 import com.googlecode.wicket.jquery.core.Options;
 import com.googlecode.wicket.jquery.ui.widget.dialog.AbstractFormDialog;
 import com.googlecode.wicket.jquery.ui.widget.dialog.DialogButton;
+import com.googlecode.wicket.jquery.ui.widget.progressbar.ProgressBar;
 import com.googlecode.wicket.kendo.ui.panel.KendoFeedbackPanel;
 
 public class UploadDialog extends AbstractFormDialog {
private static final long serialVersionUID = 1L;
private static final Logger log = 
LoggerFactory.getLogger(UploadDialog.class);
private final KendoFeedbackPanel feedback = new 
KendoFeedbackPanel("feedback", new Options("button", true));
-   private final Form form;
+   private final Form form = new Form<>("form");
private DialogButton upload;
private DialogButton cancel;
-   private final FileUploadField uploadField;
-   private final HiddenField fileName;
+   private final FileUploadField uploadField = new FileUploadField("file", 
new IModel>() {
+   private static final long serialVersionUID = 1L;
+
+   @Override
+   public void setObject(List object) {
+   //no-op
+   }
+
+   @Override
+   public List getObject() {
+   return new ArrayList<>();
+   }
+   }) {
+   private static final long serialVersionUID = 1L;
+
+   @Override
+   protected boolean forceCloseStreamsOnDetach() {
+   return false;
+   }
+   };
+   private final HiddenField fileName = new HiddenField<>("name", 
Model.of(""));
private final CheckBox toWb = new CheckBox("to-wb", Model.of(false));
private final WebMarkupContainer cleanBlock = new 
WebMarkupContainer("clean-block");
private final CheckBox cleanWb = new CheckBox("clean-wb", 
Model.of(false));
private final RoomFilePanel roomFiles;
private final RoomPanel room;
+
@SpringBean
private FileProcessor processor;
@SpringBean
private FileItemLogDao fileLogDao;
 
+   private final 

[openmeetings] branch 4.0.x updated: [OPENMEETINGS-2055] uploaded files are converted in separate thread

2019-04-11 Thread solomax
This is an automated email from the ASF dual-hosted git repository.

solomax pushed a commit to branch 4.0.x
in repository https://gitbox.apache.org/repos/asf/openmeetings.git


The following commit(s) were added to refs/heads/4.0.x by this push:
 new cdfc097  [OPENMEETINGS-2055] uploaded files are converted in separate 
thread
cdfc097 is described below

commit cdfc097100cb45cb89ac11359d4b6ecdbcdf81ce
Author: Maxim Solodovnik 
AuthorDate: Thu Apr 11 19:03:40 2019 +0700

[OPENMEETINGS-2055] uploaded files are converted in separate thread
---
 .../web/room/sidebar/UploadDialog.html |   1 +
 .../web/room/sidebar/UploadDialog.java | 188 ++---
 2 files changed, 129 insertions(+), 60 deletions(-)

diff --git 
a/openmeetings-web/src/main/java/org/apache/openmeetings/web/room/sidebar/UploadDialog.html
 
b/openmeetings-web/src/main/java/org/apache/openmeetings/web/room/sidebar/UploadDialog.html
index 718749e..8cdc7a2 100644
--- 
a/openmeetings-web/src/main/java/org/apache/openmeetings/web/room/sidebar/UploadDialog.html
+++ 
b/openmeetings-web/src/main/java/org/apache/openmeetings/web/room/sidebar/UploadDialog.html
@@ -38,6 +38,7 @@



+   



diff --git 
a/openmeetings-web/src/main/java/org/apache/openmeetings/web/room/sidebar/UploadDialog.java
 
b/openmeetings-web/src/main/java/org/apache/openmeetings/web/room/sidebar/UploadDialog.java
index 3678c06..48add86 100644
--- 
a/openmeetings-web/src/main/java/org/apache/openmeetings/web/room/sidebar/UploadDialog.java
+++ 
b/openmeetings-web/src/main/java/org/apache/openmeetings/web/room/sidebar/UploadDialog.java
@@ -33,8 +33,12 @@ import org.apache.openmeetings.db.entity.file.BaseFileItem;
 import org.apache.openmeetings.db.entity.file.FileItem;
 import org.apache.openmeetings.util.process.ProcessResult;
 import org.apache.openmeetings.util.process.ProcessResultList;
+import org.apache.openmeetings.web.app.Application;
+import org.apache.openmeetings.web.app.WebSession;
 import org.apache.openmeetings.web.room.RoomPanel;
 import org.apache.openmeetings.web.util.upload.BootstrapFileUploadBehavior;
+import org.apache.wicket.ThreadContext;
+import org.apache.wicket.ajax.AbstractAjaxTimerBehavior;
 import org.apache.wicket.ajax.AjaxRequestTarget;
 import org.apache.wicket.ajax.form.AjaxFormSubmitBehavior;
 import org.apache.wicket.ajax.form.OnChangeAjaxBehavior;
@@ -54,34 +58,95 @@ import org.apache.wicket.model.Model;
 import org.apache.wicket.request.resource.JavaScriptResourceReference;
 import org.apache.wicket.util.lang.Bytes;
 import org.apache.wicket.util.string.Strings;
+import org.apache.wicket.util.time.Duration;
 import org.red5.logging.Red5LoggerFactory;
 import org.slf4j.Logger;
 
 import com.googlecode.wicket.jquery.core.Options;
 import com.googlecode.wicket.jquery.ui.widget.dialog.AbstractFormDialog;
 import com.googlecode.wicket.jquery.ui.widget.dialog.DialogButton;
+import com.googlecode.wicket.jquery.ui.widget.progressbar.ProgressBar;
 import com.googlecode.wicket.kendo.ui.panel.KendoFeedbackPanel;
 
 public class UploadDialog extends AbstractFormDialog {
private static final long serialVersionUID = 1L;
private static final Logger log = 
Red5LoggerFactory.getLogger(UploadDialog.class, getWebAppRootKey());
private final KendoFeedbackPanel feedback = new 
KendoFeedbackPanel("feedback", new Options("button", true));
-   private final Form form;
+   private final Form form = new Form<>("form");
private DialogButton upload;
private DialogButton cancel;
-   private final FileUploadField uploadField;
-   private final HiddenField fileName;
+   private final FileUploadField uploadField = new FileUploadField("file", 
new IModel>() {
+   private static final long serialVersionUID = 1L;
+
+   @Override
+   public void setObject(List object) {
+   //no-op
+   }
+
+   @Override
+   public List getObject() {
+   return new ArrayList<>();
+   }
+   }) {
+   private static final long serialVersionUID = 1L;
+
+   @Override
+   protected boolean forceCloseStreamsOnDetach() {
+   return false;
+   }
+   };
+   private final HiddenField fileName = new HiddenField<>("name", 
Model.of(""));
private final CheckBox toWb = new CheckBox("to-wb", Model.of(false));
private final WebMarkupContainer cleanBlock = new 
WebMarkupContainer("clean-block");
private final CheckBox cleanWb = new CheckBox("clean-wb", 
Model.of(false));
private final RoomFilePanel roomFiles;
private final RoomPanel room;
+   private final AbstractAjaxTimerBehavior timer = new 
AbstractAjaxTimerBehavior(Duration.ONE_SECOND) {
+   private static final long 

[jira] [Commented] (OPENMEETINGS-2055) uploading MP3

2019-04-11 Thread ASF subversion and git services (JIRA)


[ 
https://issues.apache.org/jira/browse/OPENMEETINGS-2055?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16815363#comment-16815363
 ] 

ASF subversion and git services commented on OPENMEETINGS-2055:
---

Commit cdfc097100cb45cb89ac11359d4b6ecdbcdf81ce in openmeetings's branch 
refs/heads/4.0.x from Maxim Solodovnik
[ https://gitbox.apache.org/repos/asf?p=openmeetings.git;h=cdfc097 ]

[OPENMEETINGS-2055] uploaded files are converted in separate thread


> uploading MP3
> -
>
> Key: OPENMEETINGS-2055
> URL: https://issues.apache.org/jira/browse/OPENMEETINGS-2055
> Project: Openmeetings
>  Issue Type: Bug
>  Components: Import/Export
>Affects Versions: 4.0.8
> Environment: Ubuntu 14.04 12 GB ram quad core processor
>Reporter: Horace Miles
>Assignee: Maxim Solodovnik
>Priority: Major
> Fix For: 4.0.8
>
> Attachments: image-2019-04-10-03-01-42-577.png
>
>
> When uploading MP3 or MP4 files, after approximately 60 seconds I get the 
> connection has been lost.
> I have changed the config/jee-container.xml
>value="1"/>   to ' .>'
> after this happens, I have the option to reload, which creates a new user in 
> the room.  The fill does not show up in the uploaded folder.  I have to 
> restart red5-ubdeb2 restart  to get rid of the ghosted users and 
> additionally, sometimes the file I was trying to upload will also show after 
> the restart.  I have hundreds of files to upload and I would really like to 
> make this work smoothly has I have other users waiting to use openmeetings.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (OPENMEETINGS-2055) uploading MP3

2019-04-11 Thread Horace Miles (JIRA)


[ 
https://issues.apache.org/jira/browse/OPENMEETINGS-2055?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16815348#comment-16815348
 ] 

Horace Miles commented on OPENMEETINGS-2055:


Your welcome i you need some to test for you just let me know.

> uploading MP3
> -
>
> Key: OPENMEETINGS-2055
> URL: https://issues.apache.org/jira/browse/OPENMEETINGS-2055
> Project: Openmeetings
>  Issue Type: Bug
>  Components: Import/Export
>Affects Versions: 4.0.8
> Environment: Ubuntu 14.04 12 GB ram quad core processor
>Reporter: Horace Miles
>Assignee: Maxim Solodovnik
>Priority: Major
> Fix For: 4.0.8
>
> Attachments: image-2019-04-10-03-01-42-577.png
>
>
> When uploading MP3 or MP4 files, after approximately 60 seconds I get the 
> connection has been lost.
> I have changed the config/jee-container.xml
>value="1"/>   to ' .>'
> after this happens, I have the option to reload, which creates a new user in 
> the room.  The fill does not show up in the uploaded folder.  I have to 
> restart red5-ubdeb2 restart  to get rid of the ghosted users and 
> additionally, sometimes the file I was trying to upload will also show after 
> the restart.  I have hundreds of files to upload and I would really like to 
> make this work smoothly has I have other users waiting to use openmeetings.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Comment Edited] (OPENMEETINGS-2055) uploading MP3

2019-04-11 Thread Horace Miles (JIRA)


[ 
https://issues.apache.org/jira/browse/OPENMEETINGS-2055?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16815173#comment-16815173
 ] 

Horace Miles edited comment on OPENMEETINGS-2055 at 4/11/19 8:10 AM:
-

Maxim here is what I have found out.  

I am uploading .mp3s they are being converted to .mp4s this process is taking 
roughly 5 minutes for a 120-150 Mb file.

Warn 04-11 08:19:44.498 o.a.w.p.PageAccessSynchronizer:144 [sing - stopping] - 
Thread "Websocket background processing - stopping failed to acquire lock to 
page with id '13', atempted for 1 minute out of the allowed 1 minute.  The 
thread that holds the lock has name 'http-nios-0.0.0.0-55080-exec-5'.

ERROR 04-11 00:22:08.450 o.a.w.DefaultExceptionMapper:170 [0.0-5080-exec-4]  
Unexpected error occured org.apach.wicket.page.CouldNotLockPageExceptionMapper: 
 Could not lock page 13.  Attempt lasted 1 minute.

 

I hope this helps you.


was (Author: hormiles):
Maxim here is what I have found out.  

I am uploading .mp3s they are being converted to .mp4s this process is taking 
roughly 5 minutes for a 120-150 Mb file.

Warn 04-11 08:19:44.498 o.a.w.p.PageAccessSynchronizer:144 [sing - stopping] - 
Thread "Websocket background processing - stopping faile to acquire lock t page 
with id '13', atempted fo r1 minute out of the allowed 1 minute.  The thre that 
holds the lock has name 'http-nios-0.0.0.0-55080-exec-5'.

ERROR 04-11 00:22:08.450 o.a.w.DefaultExceptionMapper:170 [0.0-5080-exec-4]  
Unexpected error occured org.apach.wicket.page.CouldNotLockPageExceptionMapper: 
 Could not lock page 13.  Attempt lasted 1 minute.

 

I hope this helps you.

> uploading MP3
> -
>
> Key: OPENMEETINGS-2055
> URL: https://issues.apache.org/jira/browse/OPENMEETINGS-2055
> Project: Openmeetings
>  Issue Type: Bug
>  Components: Import/Export
>Affects Versions: 4.0.8
> Environment: Ubuntu 14.04 12 GB ram quad core processor
>Reporter: Horace Miles
>Assignee: Maxim Solodovnik
>Priority: Major
> Fix For: 4.0.8
>
> Attachments: image-2019-04-10-03-01-42-577.png
>
>
> When uploading MP3 or MP4 files, after approximately 60 seconds I get the 
> connection has been lost.
> I have changed the config/jee-container.xml
>value="1"/>   to ' .>'
> after this happens, I have the option to reload, which creates a new user in 
> the room.  The fill does not show up in the uploaded folder.  I have to 
> restart red5-ubdeb2 restart  to get rid of the ghosted users and 
> additionally, sometimes the file I was trying to upload will also show after 
> the restart.  I have hundreds of files to upload and I would really like to 
> make this work smoothly has I have other users waiting to use openmeetings.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (OPENMEETINGS-2055) uploading MP3

2019-04-11 Thread Horace Miles (JIRA)


[ 
https://issues.apache.org/jira/browse/OPENMEETINGS-2055?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16815173#comment-16815173
 ] 

Horace Miles commented on OPENMEETINGS-2055:


Maxim here is what I have found out.  

I am uploading .mp3s they are being converted to .mp4s this process is taking 
roughly 5 minutes for a 120-150 Mb file.

Warn 04-11 08:19:44.498 o.a.w.p.PageAccessSynchronizer:144 [sing - stopping] - 
Thread "Websocket background processing - stopping faile to acquire lock t page 
with id '13', atempted fo r1 minute out of the allowed 1 minute.  The thre that 
holds the lock has name 'http-nios-0.0.0.0-55080-exec-5'.

ERROR 04-11 00:22:08.450 o.a.w.DefaultExceptionMapper:170 [0.0-5080-exec-4]  
Unexpected error occured org.apach.wicket.page.CouldNotLockPageExceptionMapper: 
 Could not lock page 13.  Attempt lasted 1 minute.

 

I hope this helps you.

> uploading MP3
> -
>
> Key: OPENMEETINGS-2055
> URL: https://issues.apache.org/jira/browse/OPENMEETINGS-2055
> Project: Openmeetings
>  Issue Type: Bug
>  Components: Import/Export
>Affects Versions: 4.0.8
> Environment: Ubuntu 14.04 12 GB ram quad core processor
>Reporter: Horace Miles
>Assignee: Maxim Solodovnik
>Priority: Major
> Fix For: 4.0.8
>
> Attachments: image-2019-04-10-03-01-42-577.png
>
>
> When uploading MP3 or MP4 files, after approximately 60 seconds I get the 
> connection has been lost.
> I have changed the config/jee-container.xml
>value="1"/>   to ' .>'
> after this happens, I have the option to reload, which creates a new user in 
> the room.  The fill does not show up in the uploaded folder.  I have to 
> restart red5-ubdeb2 restart  to get rid of the ghosted users and 
> additionally, sometimes the file I was trying to upload will also show after 
> the restart.  I have hundreds of files to upload and I would really like to 
> make this work smoothly has I have other users waiting to use openmeetings.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)