Re: SVN and mailing lit moved

2013-01-27 Thread Maxim Solodovnik
do we still need dependencies.xml?


On Mon, Jan 28, 2013 at 10:31 AM, Maxim Solodovnik wrote:

> one issue I have found:
> mail archives are still in the incubator:
> http://mail-archives.apache.org/mod_mbox/incubator-openmeetings-user/
>
>
> On Mon, Jan 28, 2013 at 9:57 AM, seba.wag...@gmail.com <
> seba.wag...@gmail.com> wrote:
>
>> I think mailing list could take a while cause the mail servers have not
>> yet the correct DNS for openmeetings.apache.org
>> At least gmail does not know the svn yet.
>>
>> The build bots need an update to point to the correct SVN too.
>> The svnpubscript for our website might need an update.
>> All links on the website should be already relative, but
>>
>> Actually everything should be set up now. We just need to fix those
>> things that are needed now. And as far as I understood INFRA team they
>> think they are done and the rest is possible to be done either by the PMC
>> (or the PMC-chair)
>>
>> Sebastian
>>
>>
>> 2013/1/28 seba.wag...@gmail.com 
>>
>> Hi,
>>>
>>> please update your SVN URL:
>>> https://svn.apache.org/repos/asf/openmeetings/
>>>
>>> the SVN is already moved by the INFRA team.
>>> I guess you can do in Subclipse SVN-Relocate to switch without checking
>>> out or doing anything. But making a patch just in case might be useful if
>>> you have local changes :)
>>>
>>> Could you send an email to:
>>> u...@openmeetings.apache.org
>>> dev@openmeetings.apache.org
>>> priv...@openmeetings.apache.org
>>>
>>> Or answer something that I write to that list to check if it works!
>>> When we have more info we can check about the rest and publish it to the
>>> mailing lists.
>>>
>>> Thanks!
>>>
>>> --
>>> Sebastian Wagner
>>> https://twitter.com/#!/dead_lock
>>> http://www.webbase-design.de
>>> http://www.wagner-sebastian.com
>>> seba.wag...@gmail.com
>>>
>>
>>
>>
>> --
>> Sebastian Wagner
>> https://twitter.com/#!/dead_lock
>> http://www.webbase-design.de
>> http://www.wagner-sebastian.com
>> seba.wag...@gmail.com
>>
>
>
>
> --
> WBR
> Maxim aka solomax
>



-- 
WBR
Maxim aka solomax


Re: SVN and mailing lit moved

2013-01-27 Thread Maxim Solodovnik
another weird link: http://www.apache.org/dist/incubator/openmeetings/KEYS


On Mon, Jan 28, 2013 at 10:33 AM, Maxim Solodovnik wrote:

> do we still need dependencies.xml?
>
>
> On Mon, Jan 28, 2013 at 10:31 AM, Maxim Solodovnik 
> wrote:
>
>> one issue I have found:
>> mail archives are still in the incubator:
>> http://mail-archives.apache.org/mod_mbox/incubator-openmeetings-user/
>>
>>
>> On Mon, Jan 28, 2013 at 9:57 AM, seba.wag...@gmail.com <
>> seba.wag...@gmail.com> wrote:
>>
>>> I think mailing list could take a while cause the mail servers have not
>>> yet the correct DNS for openmeetings.apache.org
>>> At least gmail does not know the svn yet.
>>>
>>> The build bots need an update to point to the correct SVN too.
>>> The svnpubscript for our website might need an update.
>>> All links on the website should be already relative, but
>>>
>>> Actually everything should be set up now. We just need to fix those
>>> things that are needed now. And as far as I understood INFRA team they
>>> think they are done and the rest is possible to be done either by the PMC
>>> (or the PMC-chair)
>>>
>>> Sebastian
>>>
>>>
>>> 2013/1/28 seba.wag...@gmail.com 
>>>
>>> Hi,
>>>>
>>>> please update your SVN URL:
>>>> https://svn.apache.org/repos/asf/openmeetings/
>>>>
>>>> the SVN is already moved by the INFRA team.
>>>> I guess you can do in Subclipse SVN-Relocate to switch without checking
>>>> out or doing anything. But making a patch just in case might be useful if
>>>> you have local changes :)
>>>>
>>>> Could you send an email to:
>>>> u...@openmeetings.apache.org
>>>> dev@openmeetings.apache.org
>>>> priv...@openmeetings.apache.org
>>>>
>>>> Or answer something that I write to that list to check if it works!
>>>> When we have more info we can check about the rest and publish it to
>>>> the mailing lists.
>>>>
>>>> Thanks!
>>>>
>>>> --
>>>> Sebastian Wagner
>>>> https://twitter.com/#!/dead_lock
>>>> http://www.webbase-design.de
>>>> http://www.wagner-sebastian.com
>>>> seba.wag...@gmail.com
>>>>
>>>
>>>
>>>
>>> --
>>> Sebastian Wagner
>>> https://twitter.com/#!/dead_lock
>>> http://www.webbase-design.de
>>> http://www.wagner-sebastian.com
>>> seba.wag...@gmail.com
>>>
>>
>>
>>
>> --
>> WBR
>> Maxim aka solomax
>>
>
>
>
> --
> WBR
> Maxim aka solomax
>



-- 
WBR
Maxim aka solomax


Re: SVN and mailing lit moved

2013-01-27 Thread Maxim Solodovnik
additional email need to be checked: user-espa...@openmeetings.apache.org


On Mon, Jan 28, 2013 at 10:38 AM, seba.wag...@gmail.com <
seba.wag...@gmail.com> wrote:

> I guess dist area needs a separated cleanup. As those files are mirrored
> on all Apache mirrors worldwide.
> I have not read the docs about that yet.
>
> Sebastian
>
>
> 2013/1/28 Maxim Solodovnik 
>
>> another weird link:
>> http://www.apache.org/dist/incubator/openmeetings/KEYS
>>
>>
>> On Mon, Jan 28, 2013 at 10:33 AM, Maxim Solodovnik 
>> wrote:
>>
>>> do we still need dependencies.xml?
>>>
>>>
>>> On Mon, Jan 28, 2013 at 10:31 AM, Maxim Solodovnik >> > wrote:
>>>
>>>> one issue I have found:
>>>> mail archives are still in the incubator:
>>>> http://mail-archives.apache.org/mod_mbox/incubator-openmeetings-user/
>>>>
>>>>
>>>> On Mon, Jan 28, 2013 at 9:57 AM, seba.wag...@gmail.com <
>>>> seba.wag...@gmail.com> wrote:
>>>>
>>>>> I think mailing list could take a while cause the mail servers have
>>>>> not yet the correct DNS for openmeetings.apache.org
>>>>> At least gmail does not know the svn yet.
>>>>>
>>>>> The build bots need an update to point to the correct SVN too.
>>>>> The svnpubscript for our website might need an update.
>>>>> All links on the website should be already relative, but
>>>>>
>>>>> Actually everything should be set up now. We just need to fix those
>>>>> things that are needed now. And as far as I understood INFRA team they
>>>>> think they are done and the rest is possible to be done either by the PMC
>>>>> (or the PMC-chair)
>>>>>
>>>>> Sebastian
>>>>>
>>>>>
>>>>> 2013/1/28 seba.wag...@gmail.com 
>>>>>
>>>>> Hi,
>>>>>>
>>>>>> please update your SVN URL:
>>>>>> https://svn.apache.org/repos/asf/openmeetings/
>>>>>>
>>>>>> the SVN is already moved by the INFRA team.
>>>>>> I guess you can do in Subclipse SVN-Relocate to switch without
>>>>>> checking out or doing anything. But making a patch just in case might be
>>>>>> useful if you have local changes :)
>>>>>>
>>>>>> Could you send an email to:
>>>>>> u...@openmeetings.apache.org
>>>>>> dev@openmeetings.apache.org
>>>>>> priv...@openmeetings.apache.org
>>>>>>
>>>>>> Or answer something that I write to that list to check if it works!
>>>>>> When we have more info we can check about the rest and publish it to
>>>>>> the mailing lists.
>>>>>>
>>>>>> Thanks!
>>>>>>
>>>>>> --
>>>>>> Sebastian Wagner
>>>>>> https://twitter.com/#!/dead_lock
>>>>>> http://www.webbase-design.de
>>>>>> http://www.wagner-sebastian.com
>>>>>> seba.wag...@gmail.com
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Sebastian Wagner
>>>>> https://twitter.com/#!/dead_lock
>>>>> http://www.webbase-design.de
>>>>> http://www.wagner-sebastian.com
>>>>> seba.wag...@gmail.com
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> WBR
>>>> Maxim aka solomax
>>>>
>>>
>>>
>>>
>>> --
>>> WBR
>>> Maxim aka solomax
>>>
>>
>>
>>
>> --
>> WBR
>> Maxim aka solomax
>>
>
>
>
> --
> Sebastian Wagner
> https://twitter.com/#!/dead_lock
> http://www.webbase-design.de
> http://www.wagner-sebastian.com
> seba.wag...@gmail.com
>



-- 
WBR
Maxim aka solomax


Re: SVN and mailing lit moved

2013-01-27 Thread Maxim Solodovnik
I'm going to update all links, already updated lots :)


On Mon, Jan 28, 2013 at 10:45 AM, seba.wag...@gmail.com <
seba.wag...@gmail.com> wrote:

> I already checked the list command and forwared it to alvaro. He is the
> moderator of the list. I don't speak spanish anyhow :)
>
> Sebastian
>
>
> 2013/1/28 Maxim Solodovnik 
>
>> additional email need to be checked: user-espa...@openmeetings.apache.org
>>
>>
>> On Mon, Jan 28, 2013 at 10:38 AM, seba.wag...@gmail.com <
>> seba.wag...@gmail.com> wrote:
>>
>>> I guess dist area needs a separated cleanup. As those files are mirrored
>>> on all Apache mirrors worldwide.
>>> I have not read the docs about that yet.
>>>
>>> Sebastian
>>>
>>>
>>> 2013/1/28 Maxim Solodovnik 
>>>
>>>> another weird link:
>>>> http://www.apache.org/dist/incubator/openmeetings/KEYS
>>>>
>>>>
>>>> On Mon, Jan 28, 2013 at 10:33 AM, Maxim Solodovnik <
>>>> solomax...@gmail.com> wrote:
>>>>
>>>>> do we still need dependencies.xml?
>>>>>
>>>>>
>>>>> On Mon, Jan 28, 2013 at 10:31 AM, Maxim Solodovnik <
>>>>> solomax...@gmail.com> wrote:
>>>>>
>>>>>> one issue I have found:
>>>>>> mail archives are still in the incubator:
>>>>>> http://mail-archives.apache.org/mod_mbox/incubator-openmeetings-user/
>>>>>>
>>>>>>
>>>>>> On Mon, Jan 28, 2013 at 9:57 AM, seba.wag...@gmail.com <
>>>>>> seba.wag...@gmail.com> wrote:
>>>>>>
>>>>>>> I think mailing list could take a while cause the mail servers have
>>>>>>> not yet the correct DNS for openmeetings.apache.org
>>>>>>> At least gmail does not know the svn yet.
>>>>>>>
>>>>>>> The build bots need an update to point to the correct SVN too.
>>>>>>> The svnpubscript for our website might need an update.
>>>>>>> All links on the website should be already relative, but
>>>>>>>
>>>>>>> Actually everything should be set up now. We just need to fix those
>>>>>>> things that are needed now. And as far as I understood INFRA team they
>>>>>>> think they are done and the rest is possible to be done either by the 
>>>>>>> PMC
>>>>>>> (or the PMC-chair)
>>>>>>>
>>>>>>> Sebastian
>>>>>>>
>>>>>>>
>>>>>>> 2013/1/28 seba.wag...@gmail.com 
>>>>>>>
>>>>>>> Hi,
>>>>>>>>
>>>>>>>> please update your SVN URL:
>>>>>>>> https://svn.apache.org/repos/asf/openmeetings/
>>>>>>>>
>>>>>>>> the SVN is already moved by the INFRA team.
>>>>>>>> I guess you can do in Subclipse SVN-Relocate to switch without
>>>>>>>> checking out or doing anything. But making a patch just in case might 
>>>>>>>> be
>>>>>>>> useful if you have local changes :)
>>>>>>>>
>>>>>>>> Could you send an email to:
>>>>>>>> u...@openmeetings.apache.org
>>>>>>>> dev@openmeetings.apache.org
>>>>>>>> priv...@openmeetings.apache.org
>>>>>>>>
>>>>>>>> Or answer something that I write to that list to check if it works!
>>>>>>>> When we have more info we can check about the rest and publish it
>>>>>>>> to the mailing lists.
>>>>>>>>
>>>>>>>> Thanks!
>>>>>>>>
>>>>>>>> --
>>>>>>>> Sebastian Wagner
>>>>>>>> https://twitter.com/#!/dead_lock
>>>>>>>> http://www.webbase-design.de
>>>>>>>> http://www.wagner-sebastian.com
>>>>>>>> seba.wag...@gmail.com
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Sebastian Wagner
>>>>>>> https://twitter.com/#!/dead_lock
>>>>>>> http://www.webbase-design.de
>>>>>>> http://www.wagner-sebastian.com
>>>>>>> seba.wag...@gmail.com
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> WBR
>>>>>> Maxim aka solomax
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> WBR
>>>>> Maxim aka solomax
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> WBR
>>>> Maxim aka solomax
>>>>
>>>
>>>
>>>
>>> --
>>> Sebastian Wagner
>>> https://twitter.com/#!/dead_lock
>>> http://www.webbase-design.de
>>> http://www.wagner-sebastian.com
>>> seba.wag...@gmail.com
>>>
>>
>>
>>
>> --
>> WBR
>> Maxim aka solomax
>>
>
>
>
> --
> Sebastian Wagner
> https://twitter.com/#!/dead_lock
> http://www.webbase-design.de
> http://www.wagner-sebastian.com
> seba.wag...@gmail.com
>



-- 
WBR
Maxim aka solomax


Re: SVN and mailing lit moved

2013-01-27 Thread Maxim Solodovnik
I have performed massive links update. All remaining links need to be
updated later and more carefully


On Mon, Jan 28, 2013 at 10:46 AM, seba.wag...@gmail.com <
seba.wag...@gmail.com> wrote:

> website does also correctly works already. So the svnpubscript already
> points to the new location in the SVN
> thx to INFRA :)
>
> Sebastia
>
>
> 2013/1/28 seba.wag...@gmail.com 
>
> I already checked the list command and forwared it to alvaro. He is the
>> moderator of the list. I don't speak spanish anyhow :)
>>
>> Sebastian
>>
>>
>> 2013/1/28 Maxim Solodovnik 
>>
>>> additional email need to be checked:
>>> user-espa...@openmeetings.apache.org
>>>
>>>
>>> On Mon, Jan 28, 2013 at 10:38 AM, seba.wag...@gmail.com <
>>> seba.wag...@gmail.com> wrote:
>>>
>>>> I guess dist area needs a separated cleanup. As those files are
>>>> mirrored on all Apache mirrors worldwide.
>>>> I have not read the docs about that yet.
>>>>
>>>> Sebastian
>>>>
>>>>
>>>> 2013/1/28 Maxim Solodovnik 
>>>>
>>>>> another weird link:
>>>>> http://www.apache.org/dist/incubator/openmeetings/KEYS
>>>>>
>>>>>
>>>>> On Mon, Jan 28, 2013 at 10:33 AM, Maxim Solodovnik <
>>>>> solomax...@gmail.com> wrote:
>>>>>
>>>>>> do we still need dependencies.xml?
>>>>>>
>>>>>>
>>>>>> On Mon, Jan 28, 2013 at 10:31 AM, Maxim Solodovnik <
>>>>>> solomax...@gmail.com> wrote:
>>>>>>
>>>>>>> one issue I have found:
>>>>>>> mail archives are still in the incubator:
>>>>>>> http://mail-archives.apache.org/mod_mbox/incubator-openmeetings-user/
>>>>>>>
>>>>>>>
>>>>>>> On Mon, Jan 28, 2013 at 9:57 AM, seba.wag...@gmail.com <
>>>>>>> seba.wag...@gmail.com> wrote:
>>>>>>>
>>>>>>>> I think mailing list could take a while cause the mail servers have
>>>>>>>> not yet the correct DNS for openmeetings.apache.org
>>>>>>>> At least gmail does not know the svn yet.
>>>>>>>>
>>>>>>>> The build bots need an update to point to the correct SVN too.
>>>>>>>> The svnpubscript for our website might need an update.
>>>>>>>> All links on the website should be already relative, but
>>>>>>>>
>>>>>>>> Actually everything should be set up now. We just need to fix those
>>>>>>>> things that are needed now. And as far as I understood INFRA team they
>>>>>>>> think they are done and the rest is possible to be done either by the 
>>>>>>>> PMC
>>>>>>>> (or the PMC-chair)
>>>>>>>>
>>>>>>>> Sebastian
>>>>>>>>
>>>>>>>>
>>>>>>>> 2013/1/28 seba.wag...@gmail.com 
>>>>>>>>
>>>>>>>> Hi,
>>>>>>>>>
>>>>>>>>> please update your SVN URL:
>>>>>>>>> https://svn.apache.org/repos/asf/openmeetings/
>>>>>>>>>
>>>>>>>>> the SVN is already moved by the INFRA team.
>>>>>>>>> I guess you can do in Subclipse SVN-Relocate to switch without
>>>>>>>>> checking out or doing anything. But making a patch just in case might 
>>>>>>>>> be
>>>>>>>>> useful if you have local changes :)
>>>>>>>>>
>>>>>>>>> Could you send an email to:
>>>>>>>>> u...@openmeetings.apache.org
>>>>>>>>> dev@openmeetings.apache.org
>>>>>>>>> priv...@openmeetings.apache.org
>>>>>>>>>
>>>>>>>>> Or answer something that I write to that list to check if it works!
>>>>>>>>> When we have more info we can check about the rest and publish it
>>>>>>>>> to the mailing lists.
>>>>>>>>>
>>>>>>>>> Thanks!
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> Sebastian Wagner
>>>>>>>>> https://twitter.com/#!/dead_lock
>>>>>>>>> http://www.webbase-design.de
>>>>>>>>> http://www.wagner-sebastian.com
>>>>>>>>> seba.wag...@gmail.com
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> Sebastian Wagner
>>>>>>>> https://twitter.com/#!/dead_lock
>>>>>>>> http://www.webbase-design.de
>>>>>>>> http://www.wagner-sebastian.com
>>>>>>>> seba.wag...@gmail.com
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> WBR
>>>>>>> Maxim aka solomax
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> WBR
>>>>>> Maxim aka solomax
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> WBR
>>>>> Maxim aka solomax
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Sebastian Wagner
>>>> https://twitter.com/#!/dead_lock
>>>> http://www.webbase-design.de
>>>> http://www.wagner-sebastian.com
>>>> seba.wag...@gmail.com
>>>>
>>>
>>>
>>>
>>> --
>>> WBR
>>> Maxim aka solomax
>>>
>>
>>
>>
>> --
>> Sebastian Wagner
>> https://twitter.com/#!/dead_lock
>> http://www.webbase-design.de
>> http://www.wagner-sebastian.com
>> seba.wag...@gmail.com
>>
>
>
>
> --
> Sebastian Wagner
> https://twitter.com/#!/dead_lock
> http://www.webbase-design.de
> http://www.wagner-sebastian.com
> seba.wag...@gmail.com
>



-- 
WBR
Maxim aka solomax


Re: SVN and mailing lit moved

2013-01-28 Thread Maxim Solodovnik
I'm not very familiar with "relocate" so I did clean checkout :)


On Mon, Jan 28, 2013 at 3:19 PM, Alexey Ghenov  wrote:

> Hello,
>
> When i trying to relocate openmeetings to new repo adress in eclipse
> it giving me this error:
>
> switch --relocate
> https://svn.apache.org/repos/asf/incubator/openmeetings/trunk/singlewebapp
> https://svn.apache.org/repos/asf/openmeetings/trunk/singlewebapp
> /home/alexey/workspaceee/Openmeetings
> Invalid relocation
> svn: Invalid relocation destination:
> 'https://svn.apache.org/repos/asf/openmeetings/trunk/singlewebapp'
> (does not point to target)
>
> Should i delete and rebuild project?
>
> Thancks for your attention, Alexey.
>
> 2013/1/28, Maxim Solodovnik :
> > I have performed massive links update. All remaining links need to be
> > updated later and more carefully
> >
> >
> > On Mon, Jan 28, 2013 at 10:46 AM, seba.wag...@gmail.com <
> > seba.wag...@gmail.com> wrote:
> >
> >> website does also correctly works already. So the svnpubscript already
> >> points to the new location in the SVN
> >> thx to INFRA :)
> >>
> >> Sebastia
> >>
> >>
> >> 2013/1/28 seba.wag...@gmail.com 
> >>
> >> I already checked the list command and forwared it to alvaro. He is the
> >>> moderator of the list. I don't speak spanish anyhow :)
> >>>
> >>> Sebastian
> >>>
> >>>
> >>> 2013/1/28 Maxim Solodovnik 
> >>>
> >>>> additional email need to be checked:
> >>>> user-espa...@openmeetings.apache.org
> >>>>
> >>>>
> >>>> On Mon, Jan 28, 2013 at 10:38 AM, seba.wag...@gmail.com <
> >>>> seba.wag...@gmail.com> wrote:
> >>>>
> >>>>> I guess dist area needs a separated cleanup. As those files are
> >>>>> mirrored on all Apache mirrors worldwide.
> >>>>> I have not read the docs about that yet.
> >>>>>
> >>>>> Sebastian
> >>>>>
> >>>>>
> >>>>> 2013/1/28 Maxim Solodovnik 
> >>>>>
> >>>>>> another weird link:
> >>>>>> http://www.apache.org/dist/incubator/openmeetings/KEYS
> >>>>>>
> >>>>>>
> >>>>>> On Mon, Jan 28, 2013 at 10:33 AM, Maxim Solodovnik <
> >>>>>> solomax...@gmail.com> wrote:
> >>>>>>
> >>>>>>> do we still need dependencies.xml?
> >>>>>>>
> >>>>>>>
> >>>>>>> On Mon, Jan 28, 2013 at 10:31 AM, Maxim Solodovnik <
> >>>>>>> solomax...@gmail.com> wrote:
> >>>>>>>
> >>>>>>>> one issue I have found:
> >>>>>>>> mail archives are still in the incubator:
> >>>>>>>>
> http://mail-archives.apache.org/mod_mbox/incubator-openmeetings-user/
> >>>>>>>>
> >>>>>>>>
> >>>>>>>> On Mon, Jan 28, 2013 at 9:57 AM, seba.wag...@gmail.com <
> >>>>>>>> seba.wag...@gmail.com> wrote:
> >>>>>>>>
> >>>>>>>>> I think mailing list could take a while cause the mail servers
> >>>>>>>>> have
> >>>>>>>>> not yet the correct DNS for openmeetings.apache.org
> >>>>>>>>> At least gmail does not know the svn yet.
> >>>>>>>>>
> >>>>>>>>> The build bots need an update to point to the correct SVN too.
> >>>>>>>>> The svnpubscript for our website might need an update.
> >>>>>>>>> All links on the website should be already relative, but
> >>>>>>>>>
> >>>>>>>>> Actually everything should be set up now. We just need to fix
> >>>>>>>>> those
> >>>>>>>>> things that are needed now. And as far as I understood INFRA team
> >>>>>>>>> they
> >>>>>>>>> think they are done and the rest is possible to be done either by
> >>>>>>>>> the PMC
> >>>>>>>>> (or the PMC-chair)
> >>>>>>>>>
> >>>>>>

Re: SOAP/REST Web Services returned an unexpected HTTP status of: 500

2013-01-28 Thread Maxim Solodovnik
The list of up to date methods can be found here:
http://openmeetings.apache.org/RoomService.html

I can take a look in which revision the method was removed ...


On Mon, Jan 28, 2013 at 5:46 PM, Vieri  wrote:

> [sorry, sent to old ML e-mail address]
>
> Hi,
>
> I'm starting to use SOAP/REST and I've successfully logged in but if I try
> to create a room I get the following error:
>
> Your call to OpenMeetings Web Services returned an unexpected HTTP status
> of: 500 Request
> http://mydomain.com:5080/openmeetings/services/RoomService/addRoomWithModerationQuestionsAudioTypeAndHideOptions?SID=61734a50033099d4b8ce5f7cd5c0980e&name=TESTroom&roomtypes_id=1&comment=TEST+conference+room&numberOfPartizipants=25&ispublic=true&appointment=false&isDemoRoom=false&demoTime=0&isModeratedRoom=false&allowUserQuestions=true&isAudioOnly=false&hideTopBar=false&hideChat=false&hideActivitiesAndActions=false&hideFilesExplorer=false&hideActionsMenu=false&hideScreenSharing=false&hideWhiteboard=false
>
> The log shows:
>
> DEBUG 01-28 11:31:37.858 Usermanagement.java 286544 230
> org.apache.openmeetings.data.user.Usermanagement
> [http-bio-0.0.0.0-5080-exec-7] - Login user SID :
> 61734a50033099d4b8ce5f7cd5c0980e Stored Permanent :false
> DEBUG 01-28 11:31:38.189 Usermanagement.java 286875 243
> org.apache.openmeetings.data.user.Usermanagement
> [http-bio-0.0.0.0-5080-exec-7] - debug SIZE: 1
> DEBUG 01-28 11:31:38.301 ManageCryptStyle.java 286987 38
> org.apache.openmeetings.utils.crypt.ManageCryptStyle
> [http-bio-0.0.0.0-5080-exec-7] - getInstanceOfCrypt:
> org.apache.openmeetings.utils.crypt.ManageCryptStyle@91dd8c
> DEBUG 01-28 11:31:38.303 ManageCryptStyle.java 286989 43
> org.apache.openmeetings.utils.crypt.ManageCryptStyle
> [http-bio-0.0.0.0-5080-exec-7] - configKeyCryptClassName:
> org.apache.openmeetings.utils.crypt.MD5Implementation
> DEBUG 01-28 11:31:38.343 Sessionmanagement.java 287029 220
> org.apache.openmeetings.data.basic.Sessionmanagement
> [http-bio-0.0.0.0-5080-exec-7] - updateUser User: 1 ||
> 61734a50033099d4b8ce5f7cd5c0980e
> DEBUG 01-28 11:31:38.403 Sessionmanagement.java 287089 240
> org.apache.openmeetings.data.basic.Sessionmanagement
> [http-bio-0.0.0.0-5080-exec-7] - Found session to update:
> 61734a50033099d4b8ce5f7cd5c0980e userId: 1
> DEBUG 01-28 11:31:38.500 Usermanagement.java 287186 280
> org.apache.openmeetings.data.user.Usermanagement
> [http-bio-0.0.0.0-5080-exec-7] - loginUser
> [org.apache.openmeetings.persistence.beans.domain.Organisation_Users@20]
> DEBUG 01-28 11:31:38.502 Usermanagement.java 287188 282
> org.apache.openmeetings.data.user.Usermanagement
> [http-bio-0.0.0.0-5080-exec-7] - loginUser size 1
> ERROR 01-28 11:31:38.607 AxisEngine.java 287293 207
> org.apache.axis2.engine.AxisEngine [http-bio-0.0.0.0-5080-exec-8] - The
> endpoint reference (EPR) for the Operation not found is
> /openmeetings/services/RoomService/addRoomWithModerationQuestionsAudioTypeAndHideOptions?SID=61734a50033099d4b8ce5f7cd5c0980e&name=TESTroom&roomtypes_id=1&comment=TEST+conference+room&numberOfPartizipants=25&ispublic=true&appointment=false&isDemoRoom=false&demoTime=0&isModeratedRoom=false&allowUserQuestions=true&isAudioOnly=false&hideTopBar=false&hideChat=false&hideActivitiesAndActions=false&hideFilesExplorer=false&hideActionsMenu=false&hideScreenSharing=false&hideWhiteboard=false
> and the WSA Action = null. If this EPR was previously reachable, please
> contact the server administrator.
> org.apache.axis2.AxisFault: The endpoint reference (EPR) for the Operation
> not found is
> /openmeetings/services/RoomService/addRoomWithModerationQuestionsAudioTypeAndHideOptions?SID=61734a50033099d4b8ce5f7cd5c0980e&name=TESTroom&roomtypes_id=1&comment=TEST+conference+room&numberOfPartizipants=25&ispublic=true&appointment=false&isDemoRoom=false&demoTime=0&isModeratedRoom=false&allowUserQuestions=true&isAudioOnly=false&hideTopBar=false&hideChat=false&hideActivitiesAndActions=false&hideFilesExplorer=false&hideActionsMenu=false&hideScreenSharing=false&hideWhiteboard=false
> and the WSA Action = null. If this EPR was previously reachable, please
> contact the server administrator.
> at
> org.apache.axis2.engine.DispatchPhase.checkPostConditions(DispatchPhase.java:115)
> ~[axis2-jar-1.7.0-SNAPSHOT.jar:na]
> at org.apache.axis2.engine.Phase.invoke(Phase.java:324)
> ~[axis2-jar-1.7.0-SNAPSHOT.jar:na]
> at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:250)
> ~[axis2-jar-1.7.0-SNAPSHOT.jar:na]
> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:156)
> ~[axis2-jar-1.7.0-SNAPSHOT.jar:na]
> at
> org.apache.axis2.transport.http.util.RESTUtil.invokeAxisEngine(RESTUtil.java:242)
> [axis2-transport-http-bundle-1.7.0-SNAPSHOT.jar:na]
> at
> org.apache.axis2.transport.http.util.RESTUtil.processURLRequest(RESTUtil.java:184)
> [axis2-transport-http-bundle-1.7.0-SNAPSHOT.jar:na]
> at
> org.apache.axis2.transport.http.AxisServlet$RestRequestProcessor.proce

Re: SVN and mailing lit moved

2013-01-28 Thread Maxim Solodovnik
our mailing list group has name "openmeetings.incubator.apache.org"

http://mail-archives.apache.org/mod_mbox/


On Mon, Jan 28, 2013 at 4:09 PM, Maxim Solodovnik wrote:

> I'm not very familiar with "relocate" so I did clean checkout :)
>
>
> On Mon, Jan 28, 2013 at 3:19 PM, Alexey Ghenov wrote:
>
>> Hello,
>>
>> When i trying to relocate openmeetings to new repo adress in eclipse
>> it giving me this error:
>>
>> switch --relocate
>> https://svn.apache.org/repos/asf/incubator/openmeetings/trunk/singlewebapp
>> https://svn.apache.org/repos/asf/openmeetings/trunk/singlewebapp
>> /home/alexey/workspaceee/Openmeetings<https://svn.apache.org/repos/asf/openmeetings/trunk/singlewebapp/home/alexey/workspaceee/Openmeetings>
>> Invalid relocation
>> svn: Invalid relocation destination:
>> 'https://svn.apache.org/repos/asf/openmeetings/trunk/singlewebapp'
>> (does not point to target)
>>
>> Should i delete and rebuild project?
>>
>> Thancks for your attention, Alexey.
>>
>> 2013/1/28, Maxim Solodovnik :
>> > I have performed massive links update. All remaining links need to be
>> > updated later and more carefully
>> >
>> >
>> > On Mon, Jan 28, 2013 at 10:46 AM, seba.wag...@gmail.com <
>> > seba.wag...@gmail.com> wrote:
>> >
>> >> website does also correctly works already. So the svnpubscript already
>> >> points to the new location in the SVN
>> >> thx to INFRA :)
>> >>
>> >> Sebastia
>> >>
>> >>
>> >> 2013/1/28 seba.wag...@gmail.com 
>> >>
>> >> I already checked the list command and forwared it to alvaro. He is the
>> >>> moderator of the list. I don't speak spanish anyhow :)
>> >>>
>> >>> Sebastian
>> >>>
>> >>>
>> >>> 2013/1/28 Maxim Solodovnik 
>> >>>
>> >>>> additional email need to be checked:
>> >>>> user-espa...@openmeetings.apache.org
>> >>>>
>> >>>>
>> >>>> On Mon, Jan 28, 2013 at 10:38 AM, seba.wag...@gmail.com <
>> >>>> seba.wag...@gmail.com> wrote:
>> >>>>
>> >>>>> I guess dist area needs a separated cleanup. As those files are
>> >>>>> mirrored on all Apache mirrors worldwide.
>> >>>>> I have not read the docs about that yet.
>> >>>>>
>> >>>>> Sebastian
>> >>>>>
>> >>>>>
>> >>>>> 2013/1/28 Maxim Solodovnik 
>> >>>>>
>> >>>>>> another weird link:
>> >>>>>> http://www.apache.org/dist/incubator/openmeetings/KEYS
>> >>>>>>
>> >>>>>>
>> >>>>>> On Mon, Jan 28, 2013 at 10:33 AM, Maxim Solodovnik <
>> >>>>>> solomax...@gmail.com> wrote:
>> >>>>>>
>> >>>>>>> do we still need dependencies.xml?
>> >>>>>>>
>> >>>>>>>
>> >>>>>>> On Mon, Jan 28, 2013 at 10:31 AM, Maxim Solodovnik <
>> >>>>>>> solomax...@gmail.com> wrote:
>> >>>>>>>
>> >>>>>>>> one issue I have found:
>> >>>>>>>> mail archives are still in the incubator:
>> >>>>>>>>
>> http://mail-archives.apache.org/mod_mbox/incubator-openmeetings-user/
>> >>>>>>>>
>> >>>>>>>>
>> >>>>>>>> On Mon, Jan 28, 2013 at 9:57 AM, seba.wag...@gmail.com <
>> >>>>>>>> seba.wag...@gmail.com> wrote:
>> >>>>>>>>
>> >>>>>>>>> I think mailing list could take a while cause the mail servers
>> >>>>>>>>> have
>> >>>>>>>>> not yet the correct DNS for openmeetings.apache.org
>> >>>>>>>>> At least gmail does not know the svn yet.
>> >>>>>>>>>
>> >>>>>>>>> The build bots need an update to point to the correct SVN too.
>> >>>>>>>>> The svnpubscript for our website might need an update.
>> >>>>>>>

Re: getRooms - Mapping qname not fond

2013-01-28 Thread Maxim Solodovnik
Try this one:
http://openmeetings.apache.org/JabberService.html#getAvailableRooms


On Mon, Jan 28, 2013 at 9:19 PM, Vieri  wrote:

> Hi,
>
> I would like to list ALL rooms.
>
> If I call getRooms or getRoomsWithCurrentUsers I get this error:
>
> [ERROR] [http-bio-0.0.0.0-5080-exec-10]
> org.apache.axis2.rpc.receivers.RPCMessageReceiver -
> org.apache.axis2.AxisFault: Mapping qname not fond for the package:
> org.apache.openmeetings.data.beans.basic
>
> If I use getRoomsPublic I get a listing. However, this call is apparently
> only for audience and conference rooms. It won't list all rooms.
>
> I could use getRoomTypes + getRoomsWithCurrentUsersByListAndType but I
> would have to iterate through each Type.
> Is that the way to do it?
>
> Why can't I simply call getRooms?
>
> Thanks,
>
> Vieri
>
>


-- 
WBR
Maxim aka solomax


Re: SOAP/REST Web Services returned an unexpected HTTP status of: 500

2013-01-28 Thread Maxim Solodovnik
Fixed
Please see revision 1439503.


On Mon, Jan 28, 2013 at 9:11 PM, Vieri  wrote:

> Hi,
>
> Well, it's the same list I was looking at and as you can see it's still
> there:
>
>
> http://openmeetings.apache.org/RoomService.html#addRoomWithModerationQuestionsAudioTypeAndHideOptions
>
> Why was it removed?
>
> Thanks,
>
> Vieri
>
> --- On Mon, 1/28/13, Maxim Solodovnik  wrote:
>
> > The list of up to date methods can be
> > found here:
> > http://openmeetings.apache.org/RoomService.html
> >
> > I can take a look in which revision the method was removed
> > ...
> >
> >
> > On Mon, Jan 28, 2013 at 5:46 PM, Vieri 
> > wrote:
> >
> > > [sorry, sent to old ML e-mail address]
> > >
> > > Hi,
> > >
> > > I'm starting to use SOAP/REST and I've successfully
> > logged in but if I try
> > > to create a room I get the following error:
> > >
> > > Your call to OpenMeetings Web Services returned an
> > unexpected HTTP status
> > > of: 500 Request
> > >
> http://mydomain.com:5080/openmeetings/services/RoomService/addRoomWithModerationQuestionsAudioTypeAndHideOptions?SID=61734a50033099d4b8ce5f7cd5c0980e&name=TESTroom&roomtypes_id=1&comment=TEST+conference+room&numberOfPartizipants=25&ispublic=true&appointment=false&isDemoRoom=false&demoTime=0&isModeratedRoom=false&allowUserQuestions=true&isAudioOnly=false&hideTopBar=false&hideChat=false&hideActivitiesAndActions=false&hideFilesExplorer=false&hideActionsMenu=false&hideScreenSharing=false&hideWhiteboard=false
> > >
> > > The log shows:
> > >
> > > DEBUG 01-28 11:31:37.858 Usermanagement.java 286544
> > 230
> > > org.apache.openmeetings.data.user.Usermanagement
> > > [http-bio-0.0.0.0-5080-exec-7] - Login user SID :
> > > 61734a50033099d4b8ce5f7cd5c0980e Stored Permanent
> > :false
> > > DEBUG 01-28 11:31:38.189 Usermanagement.java 286875
> > 243
> > > org.apache.openmeetings.data.user.Usermanagement
> > > [http-bio-0.0.0.0-5080-exec-7] - debug SIZE: 1
> > > DEBUG 01-28 11:31:38.301 ManageCryptStyle.java 286987
> > 38
> > > org.apache.openmeetings.utils.crypt.ManageCryptStyle
> > > [http-bio-0.0.0.0-5080-exec-7] - getInstanceOfCrypt:
> > >
> > org.apache.openmeetings.utils.crypt.ManageCryptStyle@91dd8c
> > > DEBUG 01-28 11:31:38.303 ManageCryptStyle.java 286989
> > 43
> > > org.apache.openmeetings.utils.crypt.ManageCryptStyle
> > > [http-bio-0.0.0.0-5080-exec-7] -
> > configKeyCryptClassName:
> > > org.apache.openmeetings.utils.crypt.MD5Implementation
> > > DEBUG 01-28 11:31:38.343 Sessionmanagement.java 287029
> > 220
> > > org.apache.openmeetings.data.basic.Sessionmanagement
> > > [http-bio-0.0.0.0-5080-exec-7] - updateUser User: 1 ||
> > > 61734a50033099d4b8ce5f7cd5c0980e
> > > DEBUG 01-28 11:31:38.403 Sessionmanagement.java 287089
> > 240
> > > org.apache.openmeetings.data.basic.Sessionmanagement
> > > [http-bio-0.0.0.0-5080-exec-7] - Found session to
> > update:
> > > 61734a50033099d4b8ce5f7cd5c0980e userId: 1
> > > DEBUG 01-28 11:31:38.500 Usermanagement.java 287186
> > 280
> > > org.apache.openmeetings.data.user.Usermanagement
> > > [http-bio-0.0.0.0-5080-exec-7] - loginUser
> > >
> > [org.apache.openmeetings.persistence.beans.domain.Organisation_Users@20]
> > > DEBUG 01-28 11:31:38.502 Usermanagement.java 287188
> > 282
> > > org.apache.openmeetings.data.user.Usermanagement
> > > [http-bio-0.0.0.0-5080-exec-7] - loginUser size 1
> > > ERROR 01-28 11:31:38.607 AxisEngine.java 287293 207
> > > org.apache.axis2.engine.AxisEngine
> > [http-bio-0.0.0.0-5080-exec-8] - The
> > > endpoint reference (EPR) for the Operation not found
> > is
> > >
> >
> /openmeetings/services/RoomService/addRoomWithModerationQuestionsAudioTypeAndHideOptions?SID=61734a50033099d4b8ce5f7cd5c0980e&name=TESTroom&roomtypes_id=1&comment=TEST+conference+room&numberOfPartizipants=25&ispublic=true&appointment=false&isDemoRoom=false&demoTime=0&isModeratedRoom=false&allowUserQuestions=true&isAudioOnly=false&hideTopBar=false&hideChat=false&hideActivitiesAndActions=false&hideFilesExplorer=false&hideActionsMenu=false&hideScreenSharing=false&hideWhiteboard=false
> > > and the WSA Action = null. If this EPR was previously
> > reachable, please
> > > contact the server administr

Re: Why is ApplicationAdapter no more using MultiThreadedApplicationAdapter ?

2013-01-28 Thread Maxim Solodovnik
Hello Sebastian,

some time ago I have changed the parent class of ScopeApplicationAdapter to
be MultiThreadedApplicationAdapter (since we should work  multithreaded ...)

yesterday I noticed "ApplicationAdapter extends
MultiThreadedApplicationAdapter" so I revert it back.

Can you please help me with HashMapStore?

I have added the following code to
ConferenceService.getServerForSession(String SID, long roomId) method:

log.debug("-- getServerForSession ENTER\n\t\t\n" +
sessionManager.getSessionStatistics() + "\n\t\t\n");

as a result I can see

the following lines in the log:
clientsByServerAndPublicSID Server null Number of PublicSIDs: XX

where XX is only increasing 

Is it by design? should this hashMap be cleaned up?



On Tue, Jan 29, 2013 at 11:47 AM, seba.wag...@gmail.com <
seba.wag...@gmail.com> wrote:

> Hi Maxim,
>
> I've seen in your latest changes you have refactored the
> ApplicationAdapter to use the basic interface and no more the
> MultiThreadedApplicationAdapter.
>
> What is the reason behind it?
>
> Thanks!
> Sebastian
>
> --
> Sebastian Wagner
> https://twitter.com/#!/dead_lock
> http://www.webbase-design.de
> http://www.wagner-sebastian.com
> seba.wag...@gmail.com
>



-- 
WBR
Maxim aka solomax


Re: Why is ApplicationAdapter no more using MultiThreadedApplicationAdapter ?

2013-01-28 Thread Maxim Solodovnik
I'm also seeing on server restart .


java.lang.NullPointerException: null
at
org.apache.openmeetings.remote.red5.ScopeApplicationAdapter.setUsernameReconnect(ScopeApplicationAdapter.java:1711)
~[openmeetings-2.1.0-SNAPSHOT.jar:na]


Maybe you can suggest what is the proper way of handling it?



On Tue, Jan 29, 2013 at 1:12 PM, Maxim Solodovnik wrote:

> Hello Sebastian,
>
> some time ago I have changed the parent class of ScopeApplicationAdapter
> to be MultiThreadedApplicationAdapter (since we should work  multithreaded
> ...)
>
> yesterday I noticed "ApplicationAdapter extends
> MultiThreadedApplicationAdapter" so I revert it back.
>
> Can you please help me with HashMapStore?
>
> I have added the following code to
> ConferenceService.getServerForSession(String SID, long roomId) method:
>
> log.debug("-- getServerForSession ENTER\n\t\t\n" +
> sessionManager.getSessionStatistics() + "\n\t\t\n");
>
> as a result I can see
>
> the following lines in the log:
> clientsByServerAndPublicSID Server null Number of PublicSIDs: XX
>
> where XX is only increasing 
>
> Is it by design? should this hashMap be cleaned up?
>
>
>
> On Tue, Jan 29, 2013 at 11:47 AM, seba.wag...@gmail.com <
> seba.wag...@gmail.com> wrote:
>
>> Hi Maxim,
>>
>> I've seen in your latest changes you have refactored the
>> ApplicationAdapter to use the basic interface and no more the
>> MultiThreadedApplicationAdapter.
>>
>> What is the reason behind it?
>>
>> Thanks!
>> Sebastian
>>
>> --
>> Sebastian Wagner
>> https://twitter.com/#!/dead_lock
>> http://www.webbase-design.de
>> http://www.wagner-sebastian.com
>> seba.wag...@gmail.com
>>
>
>
>
> --
> WBR
> Maxim aka solomax
>



-- 
WBR
Maxim aka solomax


Re: Why is ApplicationAdapter no more using MultiThreadedApplicationAdapter ?

2013-01-28 Thread Maxim Solodovnik
Sure,

Thanks a lot.
We did sort of performance testing these days: ~7 people came into 1 room
with both audio and video enabled

The server was not very stable on such scenario :( (there were lags in
audio and video, new participants were unable to connect)
I did revert to the previous revision until performance was OK

While this testing we found rev. 1419201 works OK and rev. 1417735 has
performance degradation.
The only major change between these 2 revisions was
ConferenceService.getServerForSession
method, this is why I have added debugging.


increasing of number of publicSID in the cache can be observed by entering
and leaving 1 room by only user
On each entering publicSID count increasing by 3  (not sure if it is
expected behavior or not)

Will wait for your changes :)



On Tue, Jan 29, 2013 at 1:40 PM, seba.wag...@gmail.com <
seba.wag...@gmail.com> wrote:

> Let me check that I have a bunch of changes locally to the SessionStore
> that I have to test before I can commit it.
>
> Sebastian
>
>
> 2013/1/29 Maxim Solodovnik 
>
>> I'm also seeing on server restart .
>>
>>
>> java.lang.NullPointerException: null
>> at
>> org.apache.openmeetings.remote.red5.ScopeApplicationAdapter.setUsernameReconnect(ScopeApplicationAdapter.java:1711)
>> ~[openmeetings-2.1.0-SNAPSHOT.jar:na]
>>
>>
>> Maybe you can suggest what is the proper way of handling it?
>>
>>
>>
>> On Tue, Jan 29, 2013 at 1:12 PM, Maxim Solodovnik 
>> wrote:
>>
>>> Hello Sebastian,
>>>
>>> some time ago I have changed the parent class of ScopeApplicationAdapter
>>> to be MultiThreadedApplicationAdapter (since we should work  multithreaded
>>> ...)
>>>
>>> yesterday I noticed "ApplicationAdapter extends
>>> MultiThreadedApplicationAdapter" so I revert it back.
>>>
>>> Can you please help me with HashMapStore?
>>>
>>> I have added the following code to
>>> ConferenceService.getServerForSession(String SID, long roomId) method:
>>>
>>> log.debug("-- getServerForSession ENTER\n\t\t\n" +
>>> sessionManager.getSessionStatistics() + "\n\t\t\n");
>>>
>>> as a result I can see
>>>
>>> the following lines in the log:
>>> clientsByServerAndPublicSID Server null Number of PublicSIDs: XX
>>>
>>> where XX is only increasing 
>>>
>>> Is it by design? should this hashMap be cleaned up?
>>>
>>>
>>>
>>> On Tue, Jan 29, 2013 at 11:47 AM, seba.wag...@gmail.com <
>>> seba.wag...@gmail.com> wrote:
>>>
>>>> Hi Maxim,
>>>>
>>>> I've seen in your latest changes you have refactored the
>>>> ApplicationAdapter to use the basic interface and no more the
>>>> MultiThreadedApplicationAdapter.
>>>>
>>>> What is the reason behind it?
>>>>
>>>> Thanks!
>>>> Sebastian
>>>>
>>>> --
>>>> Sebastian Wagner
>>>> https://twitter.com/#!/dead_lock
>>>> http://www.webbase-design.de
>>>> http://www.wagner-sebastian.com
>>>> seba.wag...@gmail.com
>>>>
>>>
>>>
>>>
>>> --
>>> WBR
>>> Maxim aka solomax
>>>
>>
>>
>>
>> --
>> WBR
>> Maxim aka solomax
>>
>
>
>
> --
> Sebastian Wagner
> https://twitter.com/#!/dead_lock
> http://www.webbase-design.de
> http://www.wagner-sebastian.com
> seba.wag...@gmail.com
>



-- 
WBR
Maxim aka solomax


Re: SVN and mailing lit moved

2013-01-29 Thread Maxim Solodovnik
Filed issue for INFRA on this

https://issues.apache.org/jira/browse/INFRA-5806

They reply some steps are missing :(



On Mon, Jan 28, 2013 at 9:25 PM, Maxim Solodovnik wrote:

> our mailing list group has name "openmeetings.incubator.apache.org"
>
> http://mail-archives.apache.org/mod_mbox/
>
>
> On Mon, Jan 28, 2013 at 4:09 PM, Maxim Solodovnik wrote:
>
>> I'm not very familiar with "relocate" so I did clean checkout :)
>>
>>
>> On Mon, Jan 28, 2013 at 3:19 PM, Alexey Ghenov wrote:
>>
>>> Hello,
>>>
>>> When i trying to relocate openmeetings to new repo adress in eclipse
>>> it giving me this error:
>>>
>>> switch --relocate
>>>
>>> https://svn.apache.org/repos/asf/incubator/openmeetings/trunk/singlewebapp
>>> https://svn.apache.org/repos/asf/openmeetings/trunk/singlewebapp
>>> /home/alexey/workspaceee/Openmeetings<https://svn.apache.org/repos/asf/openmeetings/trunk/singlewebapp/home/alexey/workspaceee/Openmeetings>
>>> Invalid relocation
>>> svn: Invalid relocation destination:
>>> 'https://svn.apache.org/repos/asf/openmeetings/trunk/singlewebapp'
>>> (does not point to target)
>>>
>>> Should i delete and rebuild project?
>>>
>>> Thancks for your attention, Alexey.
>>>
>>> 2013/1/28, Maxim Solodovnik :
>>> > I have performed massive links update. All remaining links need to be
>>> > updated later and more carefully
>>> >
>>> >
>>> > On Mon, Jan 28, 2013 at 10:46 AM, seba.wag...@gmail.com <
>>> > seba.wag...@gmail.com> wrote:
>>> >
>>> >> website does also correctly works already. So the svnpubscript already
>>> >> points to the new location in the SVN
>>> >> thx to INFRA :)
>>> >>
>>> >> Sebastia
>>> >>
>>> >>
>>> >> 2013/1/28 seba.wag...@gmail.com 
>>> >>
>>> >> I already checked the list command and forwared it to alvaro. He is
>>> the
>>> >>> moderator of the list. I don't speak spanish anyhow :)
>>> >>>
>>> >>> Sebastian
>>> >>>
>>> >>>
>>> >>> 2013/1/28 Maxim Solodovnik 
>>> >>>
>>> >>>> additional email need to be checked:
>>> >>>> user-espa...@openmeetings.apache.org
>>> >>>>
>>> >>>>
>>> >>>> On Mon, Jan 28, 2013 at 10:38 AM, seba.wag...@gmail.com <
>>> >>>> seba.wag...@gmail.com> wrote:
>>> >>>>
>>> >>>>> I guess dist area needs a separated cleanup. As those files are
>>> >>>>> mirrored on all Apache mirrors worldwide.
>>> >>>>> I have not read the docs about that yet.
>>> >>>>>
>>> >>>>> Sebastian
>>> >>>>>
>>> >>>>>
>>> >>>>> 2013/1/28 Maxim Solodovnik 
>>> >>>>>
>>> >>>>>> another weird link:
>>> >>>>>> http://www.apache.org/dist/incubator/openmeetings/KEYS
>>> >>>>>>
>>> >>>>>>
>>> >>>>>> On Mon, Jan 28, 2013 at 10:33 AM, Maxim Solodovnik <
>>> >>>>>> solomax...@gmail.com> wrote:
>>> >>>>>>
>>> >>>>>>> do we still need dependencies.xml?
>>> >>>>>>>
>>> >>>>>>>
>>> >>>>>>> On Mon, Jan 28, 2013 at 10:31 AM, Maxim Solodovnik <
>>> >>>>>>> solomax...@gmail.com> wrote:
>>> >>>>>>>
>>> >>>>>>>> one issue I have found:
>>> >>>>>>>> mail archives are still in the incubator:
>>> >>>>>>>>
>>> http://mail-archives.apache.org/mod_mbox/incubator-openmeetings-user/
>>> >>>>>>>>
>>> >>>>>>>>
>>> >>>>>>>> On Mon, Jan 28, 2013 at 9:57 AM, seba.wag...@gmail.com <
>>> >>>>>>>> seba.wag...@gmail.com> wrote:
>>> >>>>>>>>
>>> >>>>>>>>> I think mailing list could take a while cause the mail servers
>>

Re: get invitation hash for external user

2013-01-29 Thread Maxim Solodovnik
try secureHash instead of invitationHash in the URL


On Tue, Jan 29, 2013 at 4:12 PM, Vieri  wrote:

> Hi,
>
> I have a room with ID=2.
>
> I'm trying to generate invitation hashes (for "unknown" users) so he/she
> can enter the room with a direct URL.
>
> I know I can use the JabberService call getInvitationHash (
> http://openmeetings.apache.org/JabberService.html#getInvitationHash)
> Then all I need to do is direct to
> http://mydomain.com:5080/openmeetings/?invitationHash=
>
> That's fine for general purposes but I'd like to allow/deny certain
> privileges to certain "unknown users" (like if they can be moderators or
> not, if they can record the session or not, if they can upload files, if
> they can specify their own pictureurl,etc).
>
> So I thought I could use the following call:
>
> /services/UserService/setUserObjectAndGenerateRoomHashByURLAndRecFlag
>
> and then direct to:
>
>
> http://mydomain.com:5080/openmeetings/?invitationHash=c7dd3ad669873f5e707aaaea79748fcd
>
> However, when I connect to that url my browser shows:
>
> Error: No invitation available for this invitation code
>
> Could you please give me an example usage of
> setUserObjectAndGenerateRoomHashByURLAndRecFlag or any other call in order
> to generate an invitation hash for any external user NOT present in the OM
> database?
>
> Thanks,
>
> Vieri
>



-- 
WBR
Maxim aka solomax


Re: red5sip and OM integration

2013-01-29 Thread Maxim Solodovnik
red5sip was updated to be compatible with latest OM (2.1)
https://code.google.com/p/red5phone/source/detail?r=69


On Tue, Jan 29, 2013 at 8:59 AM, Jeff Clay <
jeff.c...@infotech-enterprises.com> wrote:

> Is there a way to implement some type of user number or call back system
> to integrate the users in the web portal with the users in the audio
> bridges.
>
> Scenario #1:
> User calls in to audio bridge in asterisk, says name, etc. User is fully
> participating in audio bridge.
> User then logs in as a participant or any other level of user to the web
> session and is given a notice to enter a certain unique passcode into the
> audio bridge.
> Upon entering the unique passcode, the user is then recognized as having
> audio over the phone bridge in the web conference user list.
>
> Scenario #2:
> User logs into web conference, is displayed a pop-up stating that to use
> phone audio to type in their direct number.
> Upon submitting their direct number, a call is initiated from the server
> and joins the user to the audio bridge.
> The system also marks a phone/mic next to users name in the web conference.
>
> This helps to merge the users in the audio bridge and the users in the web
> conference so that you don't have to take two roll-calls and it minimizes
> any other attendee confusion.
>
> I'm pretty good with Asterisk and can configure the call-back contexts,
> and how to pass the call into the conference bridge once the user answers.
> I'm not good at java or web programming.
> I would love to help out making this happen and other Asterisk/SIP
> improvements, I just don't know how to do it all.
>
> Thanks
>
> 
>
> DISCLAIMER:
>
> This email may contain confidential information and is intended only for
> the use of the specific individual(s) to which it is addressed. If you are
> not the intended recipient of this email, you are hereby notified that any
> unauthorized use, dissemination or copying of this email or the information
> contained in it or attached to it is strictly prohibited. If you received
> this message in error, please immediately notify the sender at Infotech and
> delete the original message.
>



-- 
WBR
Maxim aka solomax


Re: Store recording files out of Red5 path

2013-01-30 Thread Maxim Solodovnik
you can link/mount any folder/FS inside OM (with appropriate permissions)


On Thu, Jan 31, 2013 at 1:05 AM, Baskar Rajendran <
baskar.rajend...@gmail.com> wrote:

> Hi
>
> I am facing out of disk space problems so i  want the recording path to be
> configurable from admin end. Is this a right thought to go ahead &
> implement?
> I also doubt if red5 can stream the files or not from a different location
> ?
>
> Thanks
> Baskar
>



-- 
WBR
Maxim aka solomax


Re: Store recording files out of Red5 path

2013-01-30 Thread Maxim Solodovnik
There is no such functionality right now
On Jan 31, 2013 2:05 AM, "Baskar Rajendran" 
wrote:

> yes.. that is one option but i want to isolate files for different
> organizations , so that it can be configurable in an admin tab for the
> usergroup ,
>
> thanks
> baskar
>
> On Wed, Jan 30, 2013 at 11:55 PM, Maxim Solodovnik  >wrote:
>
> > you can link/mount any folder/FS inside OM (with appropriate permissions)
> >
> >
> > On Thu, Jan 31, 2013 at 1:05 AM, Baskar Rajendran <
> > baskar.rajend...@gmail.com> wrote:
> >
> > > Hi
> > >
> > > I am facing out of disk space problems so i  want the recording path to
> > be
> > > configurable from admin end. Is this a right thought to go ahead &
> > > implement?
> > > I also doubt if red5 can stream the files or not from a different
> > location
> > > ?
> > >
> > > Thanks
> > > Baskar
> > >
> >
> >
> >
> > --
> > WBR
> > Maxim aka solomax
> >
>


Re: Store recording files out of Red5 path

2013-01-30 Thread Maxim Solodovnik
There is a check in the code denying downloading of files outside OM. see
no problems with storing :)
On Jan 31, 2013 9:30 AM, "Baskar Rajendran" 
wrote:

> Thanks for the reply maxim , but my question was if we are trying to store
> out of red5 path , will it work fine??  I can implement if it works fine..
>
> -Baskar
>
> On Thu, Jan 31, 2013 at 7:28 AM, Maxim Solodovnik  >wrote:
>
> > There is no such functionality right now
> > On Jan 31, 2013 2:05 AM, "Baskar Rajendran" 
> > wrote:
> >
> > > yes.. that is one option but i want to isolate files for different
> > > organizations , so that it can be configurable in an admin tab for the
> > > usergroup ,
> > >
> > > thanks
> > > baskar
> > >
> > > On Wed, Jan 30, 2013 at 11:55 PM, Maxim Solodovnik <
> solomax...@gmail.com
> > > >wrote:
> > >
> > > > you can link/mount any folder/FS inside OM (with appropriate
> > permissions)
> > > >
> > > >
> > > > On Thu, Jan 31, 2013 at 1:05 AM, Baskar Rajendran <
> > > > baskar.rajend...@gmail.com> wrote:
> > > >
> > > > > Hi
> > > > >
> > > > > I am facing out of disk space problems so i  want the recording
> path
> > to
> > > > be
> > > > > configurable from admin end. Is this a right thought to go ahead &
> > > > > implement?
> > > > > I also doubt if red5 can stream the files or not from a different
> > > > location
> > > > > ?
> > > > >
> > > > > Thanks
> > > > > Baskar
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > > WBR
> > > > Maxim aka solomax
> > > >
> > >
> >
>


Re: Store recording files out of Red5 path

2013-01-30 Thread Maxim Solodovnik
Anybody will be able to download any file from your OS ...
Not sure about playing recordings, this need to be tested
On Jan 31, 2013 9:51 AM, "Baskar Rajendran" 
wrote:

> oh you mean i can remove that code so that we could store out of OM ? , wil
> be able to play the recording if its in out of path...
>
> Thanks
> Baskar
>
> On Thu, Jan 31, 2013 at 8:09 AM, Maxim Solodovnik  >wrote:
>
> > There is a check in the code denying downloading of files outside OM. see
> > no problems with storing :)
> > On Jan 31, 2013 9:30 AM, "Baskar Rajendran" 
> > wrote:
> >
> > > Thanks for the reply maxim , but my question was if we are trying to
> > store
> > > out of red5 path , will it work fine??  I can implement if it works
> > fine..
> > >
> > > -Baskar
> > >
> > > On Thu, Jan 31, 2013 at 7:28 AM, Maxim Solodovnik <
> solomax...@gmail.com
> > > >wrote:
> > >
> > > > There is no such functionality right now
> > > > On Jan 31, 2013 2:05 AM, "Baskar Rajendran" <
> > baskar.rajend...@gmail.com>
> > > > wrote:
> > > >
> > > > > yes.. that is one option but i want to isolate files for different
> > > > > organizations , so that it can be configurable in an admin tab for
> > the
> > > > > usergroup ,
> > > > >
> > > > > thanks
> > > > > baskar
> > > > >
> > > > > On Wed, Jan 30, 2013 at 11:55 PM, Maxim Solodovnik <
> > > solomax...@gmail.com
> > > > > >wrote:
> > > > >
> > > > > > you can link/mount any folder/FS inside OM (with appropriate
> > > > permissions)
> > > > > >
> > > > > >
> > > > > > On Thu, Jan 31, 2013 at 1:05 AM, Baskar Rajendran <
> > > > > > baskar.rajend...@gmail.com> wrote:
> > > > > >
> > > > > > > Hi
> > > > > > >
> > > > > > > I am facing out of disk space problems so i  want the recording
> > > path
> > > > to
> > > > > > be
> > > > > > > configurable from admin end. Is this a right thought to go
> ahead
> > &
> > > > > > > implement?
> > > > > > > I also doubt if red5 can stream the files or not from a
> different
> > > > > > location
> > > > > > > ?
> > > > > > >
> > > > > > > Thanks
> > > > > > > Baskar
> > > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > --
> > > > > > WBR
> > > > > > Maxim aka solomax
> > > > > >
> > > > >
> > > >
> > >
> >
>


Re: Issue with publicSID in memory based session cache

2013-01-30 Thread Maxim Solodovnik
Currently OM is broken (on our side)

Here is the part of stacktrace from OM log:
ERROR 01-31 12:09:40.339 ScopeApplicationAdapter.java 56269 199
org.apache.openmeetings.remote.red5.ScopeApplicationAdapter
[http-nio-0.0.0.0-8088-exec-6] - roomJoin
java.lang.NumberFormatException: For input string: "null"
at
java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
~[na:1.7.0_04]
at java.lang.Long.parseLong(Long.java:441) ~[na:1.7.0_04]
at java.lang.Long.parseLong(Long.java:483) ~[na:1.7.0_04]
at
org.apache.openmeetings.session.ServerUtil.getCurrentServer(ServerUtil.java:76)
~[na:na]
at
org.apache.openmeetings.session.SessionManager.addClientListItem(SessionManager.java:387)
~[na:na]
at
org.apache.openmeetings.remote.red5.ScopeApplicationAdapter.roomConnect(ScopeApplicationAdapter.java:186)
~[na:na]
at
org.red5.server.adapter.MultiThreadedApplicationAdapter.connect(MultiThreadedApplicationAdapter.java:326)
[red5.jar:na]


And part of stacktrace from red5.log:

2013-01-31 12:09:39,669 [NioProcessor-2] INFO
 o.r.s.n.r.codec.RTMPProtocolDecoder - Action xmlcrm.getsessiondata
2013-01-31 12:09:39,794 [NioProcessor-2] INFO
 o.r.s.n.r.codec.RTMPProtocolDecoder - Action _error
2013-01-31 12:09:39,845 [NioProcessor-2] INFO
 o.r.s.n.r.codec.RTMPProtocolDecoder - Action getPublicSID
2013-01-31 12:09:39,857 [NioProcessor-2] ERROR
o.r.server.service.ServiceInvoker - Error executing call: Service: null
Method: getPublicSID Num Params: 0
java.lang.reflect.InvocationTargetException: null
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
~[na:1.7.0_04]
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
~[na:1.7.0_04]
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
~[na:1.7.0_04]
at java.lang.reflect.Method.invoke(Method.java:601) ~[na:1.7.0_04]
at
org.red5.server.service.ServiceInvoker.invoke(ServiceInvoker.java:196)
[red5.jar:na]
at
org.red5.server.service.ServiceInvoker.invoke(ServiceInvoker.java:115)
[red5.jar:na]
at
org.red5.server.net.rtmp.RTMPHandler.invokeCall(RTMPHandler.java:157)
[red5.jar:na]





I'm going to investigate, then will retest publicSID issue


On Thu, Jan 31, 2013 at 10:16 AM, seba.wag...@gmail.com <
seba.wag...@gmail.com> wrote:

> Hi Maxim,
>
> could you describe the use case that you had issue with the session not
> being correctly cleaned up?
>
> Thanks!
> Sebastian
>
> --
> Sebastian Wagner
> https://twitter.com/#!/dead_lock
> http://www.webbase-design.de
> http://www.wagner-sebastian.com
> seba.wag...@gmail.com
>



-- 
WBR
Maxim aka solomax


Re: BaseStreamWriter thread didn't stop

2013-01-30 Thread Maxim Solodovnik
The reason is endless loop because of exception while recording of
something like that.
We should investigate it and get rid of endless loop


On Thu, Jan 31, 2013 at 12:31 PM, Artyom Horuzhenko wrote:

> Hello people!
> I had a situation when BaseStreamWriter thread wasn't stopped on time
> and did nothing, but a user already had stopped recording. Also I got
> many messages to the log: "### Stream not yet written Thread Sleep -
> ...". Does anybody know the possible reason of this issue?
>



-- 
WBR
Maxim aka solomax


Re: Issue with publicSID in memory based session cache

2013-01-30 Thread Maxim Solodovnik
The first issue was with
openmeetings-applicationContext.xml

"null" in serverId was interpreted as String with value "null" (4
characters)

The second issue was with ManageCryptStyle, it was not autowired in
anonymous class

Was tested on 2 machines (Linux+Windows)

continue investigating


On Thu, Jan 31, 2013 at 12:36 PM, seba.wag...@gmail.com <
seba.wag...@gmail.com> wrote:

> Are you sure you are using the default config files and a fresh build?
> Cause I don't have those errors. It seems like your
> openmeetings-applicationContext.xml is outdated or you did not svn update.
>
> Sebastian
>
>
> 2013/1/31 Maxim Solodovnik 
>
>> Currently OM is broken (on our side)
>>
>> Here is the part of stacktrace from OM log:
>> ERROR 01-31 12:09:40.339 ScopeApplicationAdapter.java 56269 199
>> org.apache.openmeetings.remote.red5.ScopeApplicationAdapter
>> [http-nio-0.0.0.0-8088-exec-6] - roomJoin
>> java.lang.NumberFormatException: For input string: "null"
>> at
>> java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
>> ~[na:1.7.0_04]
>> at java.lang.Long.parseLong(Long.java:441) ~[na:1.7.0_04]
>> at java.lang.Long.parseLong(Long.java:483) ~[na:1.7.0_04]
>> at
>> org.apache.openmeetings.session.ServerUtil.getCurrentServer(ServerUtil.java:76)
>> ~[na:na]
>> at
>> org.apache.openmeetings.session.SessionManager.addClientListItem(SessionManager.java:387)
>> ~[na:na]
>> at
>> org.apache.openmeetings.remote.red5.ScopeApplicationAdapter.roomConnect(ScopeApplicationAdapter.java:186)
>> ~[na:na]
>> at
>> org.red5.server.adapter.MultiThreadedApplicationAdapter.connect(MultiThreadedApplicationAdapter.java:326)
>> [red5.jar:na]
>>
>>
>> And part of stacktrace from red5.log:
>>
>> 2013-01-31 12:09:39,669 [NioProcessor-2] INFO
>>  o.r.s.n.r.codec.RTMPProtocolDecoder - Action xmlcrm.getsessiondata
>> 2013-01-31 12:09:39,794 [NioProcessor-2] INFO
>>  o.r.s.n.r.codec.RTMPProtocolDecoder - Action _error
>> 2013-01-31 12:09:39,845 [NioProcessor-2] INFO
>>  o.r.s.n.r.codec.RTMPProtocolDecoder - Action getPublicSID
>> 2013-01-31 12:09:39,857 [NioProcessor-2] ERROR
>> o.r.server.service.ServiceInvoker - Error executing call: Service: null
>> Method: getPublicSID Num Params: 0
>> java.lang.reflect.InvocationTargetException: null
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> ~[na:1.7.0_04]
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>> ~[na:1.7.0_04]
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> ~[na:1.7.0_04]
>> at java.lang.reflect.Method.invoke(Method.java:601) ~[na:1.7.0_04]
>> at
>> org.red5.server.service.ServiceInvoker.invoke(ServiceInvoker.java:196)
>> [red5.jar:na]
>> at
>> org.red5.server.service.ServiceInvoker.invoke(ServiceInvoker.java:115)
>> [red5.jar:na]
>> at
>> org.red5.server.net.rtmp.RTMPHandler.invokeCall(RTMPHandler.java:157)
>> [red5.jar:na]
>>
>>
>>
>>
>>
>> I'm going to investigate, then will retest publicSID issue
>>
>>
>> On Thu, Jan 31, 2013 at 10:16 AM, seba.wag...@gmail.com <
>> seba.wag...@gmail.com> wrote:
>>
>>> Hi Maxim,
>>>
>>> could you describe the use case that you had issue with the session not
>>> being correctly cleaned up?
>>>
>>> Thanks!
>>> Sebastian
>>>
>>> --
>>> Sebastian Wagner
>>> https://twitter.com/#!/dead_lock
>>> http://www.webbase-design.de
>>> http://www.wagner-sebastian.com
>>> seba.wag...@gmail.com
>>>
>>
>>
>>
>> --
>> WBR
>> Maxim aka solomax
>>
>
>
>
> --
> Sebastian Wagner
> https://twitter.com/#!/dead_lock
> http://www.webbase-design.de
> http://www.wagner-sebastian.com
> seba.wag...@gmail.com
>



-- 
WBR
Maxim aka solomax


Re: Issue with publicSID in memory based session cache

2013-01-30 Thread Maxim Solodovnik
Also I believe address is more human-readable value in config than serverId
:)


On Thu, Jan 31, 2013 at 12:47 PM, Maxim Solodovnik wrote:

> The first issue was with
> openmeetings-applicationContext.xml
>
> "null" in serverId was interpreted as String with value "null" (4
> characters)
>
> The second issue was with ManageCryptStyle, it was not autowired in
> anonymous class
>
> Was tested on 2 machines (Linux+Windows)
>
> continue investigating
>
>
> On Thu, Jan 31, 2013 at 12:36 PM, seba.wag...@gmail.com <
> seba.wag...@gmail.com> wrote:
>
>> Are you sure you are using the default config files and a fresh build?
>> Cause I don't have those errors. It seems like your
>> openmeetings-applicationContext.xml is outdated or you did not svn update.
>>
>> Sebastian
>>
>>
>> 2013/1/31 Maxim Solodovnik 
>>
>>> Currently OM is broken (on our side)
>>>
>>> Here is the part of stacktrace from OM log:
>>> ERROR 01-31 12:09:40.339 ScopeApplicationAdapter.java 56269 199
>>> org.apache.openmeetings.remote.red5.ScopeApplicationAdapter
>>> [http-nio-0.0.0.0-8088-exec-6] - roomJoin
>>> java.lang.NumberFormatException: For input string: "null"
>>> at
>>> java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
>>> ~[na:1.7.0_04]
>>> at java.lang.Long.parseLong(Long.java:441) ~[na:1.7.0_04]
>>> at java.lang.Long.parseLong(Long.java:483) ~[na:1.7.0_04]
>>> at
>>> org.apache.openmeetings.session.ServerUtil.getCurrentServer(ServerUtil.java:76)
>>> ~[na:na]
>>> at
>>> org.apache.openmeetings.session.SessionManager.addClientListItem(SessionManager.java:387)
>>> ~[na:na]
>>> at
>>> org.apache.openmeetings.remote.red5.ScopeApplicationAdapter.roomConnect(ScopeApplicationAdapter.java:186)
>>> ~[na:na]
>>> at
>>> org.red5.server.adapter.MultiThreadedApplicationAdapter.connect(MultiThreadedApplicationAdapter.java:326)
>>> [red5.jar:na]
>>>
>>>
>>> And part of stacktrace from red5.log:
>>>
>>> 2013-01-31 12:09:39,669 [NioProcessor-2] INFO
>>>  o.r.s.n.r.codec.RTMPProtocolDecoder - Action xmlcrm.getsessiondata
>>> 2013-01-31 12:09:39,794 [NioProcessor-2] INFO
>>>  o.r.s.n.r.codec.RTMPProtocolDecoder - Action _error
>>> 2013-01-31 12:09:39,845 [NioProcessor-2] INFO
>>>  o.r.s.n.r.codec.RTMPProtocolDecoder - Action getPublicSID
>>> 2013-01-31 12:09:39,857 [NioProcessor-2] ERROR
>>> o.r.server.service.ServiceInvoker - Error executing call: Service: null
>>> Method: getPublicSID Num Params: 0
>>> java.lang.reflect.InvocationTargetException: null
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> ~[na:1.7.0_04]
>>> at
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>>> ~[na:1.7.0_04]
>>> at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>> ~[na:1.7.0_04]
>>> at java.lang.reflect.Method.invoke(Method.java:601) ~[na:1.7.0_04]
>>> at
>>> org.red5.server.service.ServiceInvoker.invoke(ServiceInvoker.java:196)
>>> [red5.jar:na]
>>> at
>>> org.red5.server.service.ServiceInvoker.invoke(ServiceInvoker.java:115)
>>> [red5.jar:na]
>>> at
>>> org.red5.server.net.rtmp.RTMPHandler.invokeCall(RTMPHandler.java:157)
>>> [red5.jar:na]
>>>
>>>
>>>
>>>
>>>
>>> I'm going to investigate, then will retest publicSID issue
>>>
>>>
>>> On Thu, Jan 31, 2013 at 10:16 AM, seba.wag...@gmail.com <
>>> seba.wag...@gmail.com> wrote:
>>>
>>>> Hi Maxim,
>>>>
>>>> could you describe the use case that you had issue with the session not
>>>> being correctly cleaned up?
>>>>
>>>> Thanks!
>>>> Sebastian
>>>>
>>>> --
>>>> Sebastian Wagner
>>>> https://twitter.com/#!/dead_lock
>>>> http://www.webbase-design.de
>>>> http://www.wagner-sebastian.com
>>>> seba.wag...@gmail.com
>>>>
>>>
>>>
>>>
>>> --
>>> WBR
>>> Maxim aka solomax
>>>
>>
>>
>>
>> --
>> Sebastian Wagner
>> https://twitter.com/#!/dead_lock
>> http://www.webbase-design.de
>> http://www.wagner-sebastian.com
>> seba.wag...@gmail.com
>>
>
>
>
> --
> WBR
> Maxim aka solomax
>



-- 
WBR
Maxim aka solomax


Re: Issue with publicSID in memory based session cache

2013-01-30 Thread Maxim Solodovnik
Here is the scenario to reproduce the weird behavior with publicSID:

1) login as user1
2) enter any room
3) do nothing, exit the room
4) repeat steps 2 and 3 5 times
5) open Administration->Connections

Result:clientsByServerAndPublicSID Server null Number of PublicSIDs: *16
*
*
*
I believe number of publicSIDs should be 1

6) do logout
7) do login
8) open Administration->Connections
Result: clientsByServerAndPublicSID Server null Number of PublicSIDs: *16*





On Thu, Jan 31, 2013 at 12:49 PM, Maxim Solodovnik wrote:

> Also I believe address is more human-readable value in config than
> serverId :)
>
>
> On Thu, Jan 31, 2013 at 12:47 PM, Maxim Solodovnik 
> wrote:
>
>> The first issue was with
>> openmeetings-applicationContext.xml
>>
>> "null" in serverId was interpreted as String with value "null" (4
>> characters)
>>
>> The second issue was with ManageCryptStyle, it was not autowired in
>> anonymous class
>>
>> Was tested on 2 machines (Linux+Windows)
>>
>> continue investigating
>>
>>
>> On Thu, Jan 31, 2013 at 12:36 PM, seba.wag...@gmail.com <
>> seba.wag...@gmail.com> wrote:
>>
>>> Are you sure you are using the default config files and a fresh build?
>>> Cause I don't have those errors. It seems like your
>>> openmeetings-applicationContext.xml is outdated or you did not svn update.
>>>
>>> Sebastian
>>>
>>>
>>> 2013/1/31 Maxim Solodovnik 
>>>
>>>> Currently OM is broken (on our side)
>>>>
>>>> Here is the part of stacktrace from OM log:
>>>> ERROR 01-31 12:09:40.339 ScopeApplicationAdapter.java 56269 199
>>>> org.apache.openmeetings.remote.red5.ScopeApplicationAdapter
>>>> [http-nio-0.0.0.0-8088-exec-6] - roomJoin
>>>> java.lang.NumberFormatException: For input string: "null"
>>>> at
>>>> java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
>>>> ~[na:1.7.0_04]
>>>> at java.lang.Long.parseLong(Long.java:441) ~[na:1.7.0_04]
>>>> at java.lang.Long.parseLong(Long.java:483) ~[na:1.7.0_04]
>>>> at
>>>> org.apache.openmeetings.session.ServerUtil.getCurrentServer(ServerUtil.java:76)
>>>> ~[na:na]
>>>> at
>>>> org.apache.openmeetings.session.SessionManager.addClientListItem(SessionManager.java:387)
>>>> ~[na:na]
>>>> at
>>>> org.apache.openmeetings.remote.red5.ScopeApplicationAdapter.roomConnect(ScopeApplicationAdapter.java:186)
>>>> ~[na:na]
>>>> at
>>>> org.red5.server.adapter.MultiThreadedApplicationAdapter.connect(MultiThreadedApplicationAdapter.java:326)
>>>> [red5.jar:na]
>>>>
>>>>
>>>> And part of stacktrace from red5.log:
>>>>
>>>> 2013-01-31 12:09:39,669 [NioProcessor-2] INFO
>>>>  o.r.s.n.r.codec.RTMPProtocolDecoder - Action xmlcrm.getsessiondata
>>>> 2013-01-31 12:09:39,794 [NioProcessor-2] INFO
>>>>  o.r.s.n.r.codec.RTMPProtocolDecoder - Action _error
>>>> 2013-01-31 12:09:39,845 [NioProcessor-2] INFO
>>>>  o.r.s.n.r.codec.RTMPProtocolDecoder - Action getPublicSID
>>>> 2013-01-31 12:09:39,857 [NioProcessor-2] ERROR
>>>> o.r.server.service.ServiceInvoker - Error executing call: Service: null
>>>> Method: getPublicSID Num Params: 0
>>>> java.lang.reflect.InvocationTargetException: null
>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>> ~[na:1.7.0_04]
>>>> at
>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>>>> ~[na:1.7.0_04]
>>>> at
>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>> ~[na:1.7.0_04]
>>>> at java.lang.reflect.Method.invoke(Method.java:601) ~[na:1.7.0_04]
>>>> at
>>>> org.red5.server.service.ServiceInvoker.invoke(ServiceInvoker.java:196)
>>>> [red5.jar:na]
>>>> at
>>>> org.red5.server.service.ServiceInvoker.invoke(ServiceInvoker.java:115)
>>>> [red5.jar:na]
>>>> at
>>>> org.red5.server.net.rtmp.RTMPHandler.invokeCall(RTMPHandler.java:157)
>>>> [red5.jar:na]
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> I'm going to investigate, then will retest publicSID issue
>>>>
>>>>
>>>> On Thu, Jan 31, 2013 at 10:16 AM, seba.wag...@gmail.com <
>>>> seba.wag...@gmail.com> wrote:
>>>>
>>>>> Hi Maxim,
>>>>>
>>>>> could you describe the use case that you had issue with the session
>>>>> not being correctly cleaned up?
>>>>>
>>>>> Thanks!
>>>>> Sebastian
>>>>>
>>>>> --
>>>>> Sebastian Wagner
>>>>> https://twitter.com/#!/dead_lock
>>>>> http://www.webbase-design.de
>>>>> http://www.wagner-sebastian.com
>>>>> seba.wag...@gmail.com
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> WBR
>>>> Maxim aka solomax
>>>>
>>>
>>>
>>>
>>> --
>>> Sebastian Wagner
>>> https://twitter.com/#!/dead_lock
>>> http://www.webbase-design.de
>>> http://www.wagner-sebastian.com
>>> seba.wag...@gmail.com
>>>
>>
>>
>>
>> --
>> WBR
>> Maxim aka solomax
>>
>
>
>
> --
> WBR
> Maxim aka solomax
>



-- 
WBR
Maxim aka solomax


Re: Issue with publicSID in memory based session cache

2013-01-31 Thread Maxim Solodovnik
Ok thanks!
I'll retest today and will let you know


On Fri, Feb 1, 2013 at 11:01 AM, seba.wag...@gmail.com <
seba.wag...@gmail.com> wrote:

> Maxim,
>
> you should be able to re-run your test. I have almost the same
> implementation now again for the memory based session.
> There might be a way of performance increase to have a second map, with
> the "scope" as key:
> Map> clientsByScope
> or
> Map> clientsByScope (in this case the inner Map
> would have the streamid as primary key)
>
> The scope is the only thing that does not change, cause you would need to
> disconnect from red5 to make this parameter changing.
> However I have not implemented it yet.
>
> The other implementation with multiple list would potentially work too,
> but you would have to make some wired copy actions whenever a parameter
> changes that is a key in a map at the same time.
>
> Sebastian
>
>
>
> 2013/2/1 seba.wag...@gmail.com 
>
> ... the roomId is also wrong by the way. You can see it by doing the
>> following:
>> Open two browser tabs and load openmeetings, go with one client in a
>> conference room but _not_ choose any device settings yet and keep the
>> device settings dialog open.
>> Go with the second browser in the admin > UI > connections.
>> You see both clients in the list with the roomId, now click on the one
>> that has no firstname/lastname, compare the publicSID to the other =>
>> different, and roomId is null
>> Now confirm the device settings in the conference room. Go back to the
>> client list, refresh => compared publicSID's => same name, roomId is also
>> set but different?!
>> That is strange.
>>
>> Sebastian
>>
>>
>> 2013/2/1 seba.wag...@gmail.com 
>>
>> Yes,
>>>
>>> I found out the root of the issue. The root is not the HashMap actually,
>>> the root is that we change the publicSID of the RTMP connection that
>>> connects to the SWF10 app dynamically.
>>> The SWF10 rtmp connection intially gets a publicSID assigned, but to
>>> makes sure the client has the same rights like the rtmp-connection to the
>>> SWF8 app, we do overwrite this publicSID with the one from the SWF8 app.
>>> But in the session cache we still have the rtmp-connection / client with
>>> the old publicSID in a list as key (to have fast access). This publicSID is
>>> never cleaned up. That is the issue. I will look into it now.
>>>
>>> Sebastian
>>>
>>>
>>> 2013/1/31 Maxim Solodovnik 
>>>
>>>> Here is the scenario to reproduce the weird behavior with publicSID:
>>>>
>>>> 1) login as user1
>>>> 2) enter any room
>>>> 3) do nothing, exit the room
>>>> 4) repeat steps 2 and 3 5 times
>>>> 5) open Administration->Connections
>>>>
>>>> Result:clientsByServerAndPublicSID Server null Number of
>>>> PublicSIDs: *16*
>>>> *
>>>> *
>>>> I believe number of publicSIDs should be 1
>>>>
>>>> 6) do logout
>>>> 7) do login
>>>> 8) open Administration->Connections
>>>> Result: clientsByServerAndPublicSID Server null Number of PublicSIDs: *
>>>> 16*
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> On Thu, Jan 31, 2013 at 12:49 PM, Maxim Solodovnik <
>>>> solomax...@gmail.com> wrote:
>>>>
>>>>> Also I believe address is more human-readable value in config than
>>>>> serverId :)
>>>>>
>>>>>
>>>>> On Thu, Jan 31, 2013 at 12:47 PM, Maxim Solodovnik <
>>>>> solomax...@gmail.com> wrote:
>>>>>
>>>>>> The first issue was with
>>>>>> openmeetings-applicationContext.xml
>>>>>>
>>>>>> "null" in serverId was interpreted as String with value "null" (4
>>>>>> characters)
>>>>>>
>>>>>> The second issue was with ManageCryptStyle, it was not autowired in
>>>>>> anonymous class
>>>>>>
>>>>>> Was tested on 2 machines (Linux+Windows)
>>>>>>
>>>>>> continue investigating
>>>>>>
>>>>>>
>>>>>> On Thu, Jan 31, 2013 at 12:36 PM, seba.wag...@gmail.com <
>>>>>> seba.wag...@gmail.com> wrote:
>>>>>>
>>>>>>> Are you sure you are using 

Re: Cluster API status

2013-02-03 Thread Maxim Solodovnik
>> What about the chat, I have seen you made some changes to the chat lately
>> Maxim? Is the Chat in the dashboard now in the database?

I add chat to the DB for Wicket only (only global chat for now with small
amount of testing)
I had no plans to change it for Flash app



On Mon, Feb 4, 2013 at 5:36 AM, seba.wag...@gmail.com  wrote:

> I would like to share the progress in the Cluster API.
> For a design overview see:
>
> https://cwiki.apache.org/confluence/display/OPENMEETINGS/Cluster+Master-Slave+overview
>
> Status:
> The database session cache as alternative to the memory session cache does
> work now (with a single server and the serverId commented out in the Spring
> config).
> So you can configure the Client to be stored in memory or in database via
> Spring config.
>
> What needs to be done:
> 1) There are some places in the code where there is a hardcoded "null" for
> the serverId. For example when updateing a Client. This was because in a
> former iteration of the Cluster API "null" meant the Client is on
> "localhost". In the new API, the serverId should be always read from the
> org.apache.openmeetings.session.ServerUtil, which then reads it from the
> Spring config.
> And in the future, when the server is in cluster mode, there is no "null"
> used anymore, serverId null simply means that there is no cluster
> configured.
> It might makes sense to throw an Exception upon startup:
> If serverId == null and serverDao.getServers().size() > 0 => throw
> Exception(" You have to configure a server for this instance to run the
> cluster correctly).
> + the serverId in the Spring config should become the "serverAdress"
>
> 2) There has to be a "clever" clean up job in the client table each time
> the server starts up.
> Cause what can happen now is: If a server is shut down you still have
> entries in the client table. The next time the server is startup, those
> clients are of course no more online. But the server does not know.
> A simply "delete all" will not work, cause in a cluster you will have
> multiple servers writing to the same database, and you can't "delete all"
> because some servers might be still online.
> So this is a bit tricky.
> The idea would be: If the serverId is NULL (meaning no cluster configured)
> It is save to delete all records in the clients-table upon server start
> If the serverId is NOT NULL (cluster mode), then it you can still clean up:
>   - All clients with the serverId of the current server starting up
> (cause no client can be already connected to a server that just boots)
>   - All clients that are assigned to a serverId in the tables "servers"
> that either does not exist or where the server is flaged as "not active".
>   - All clients that have a serverId null
>
> From my point of view those are the most important things for the session.
>
> The other issue is with the whiteboard. Whiteboard is stored in memory too
> (because sync method is involved).
> A conference room is always inside the same node of the server. But what
> could happen is, that the cluster gives the room upon the next day/meeting
> to another server/node in the cluster.
> Then the previously written stuff on the whiteboard would be gone (or by
> random chance if the same server is taken, you might get the same
> whiteboard session object again).
> Short story: The whiteboard session must be made configureable to be in
> database too. And there has to be some clever trick to have only small
> effects to the performance while syncing.
>
> What about the chat, I have seen you made some changes to the chat lately
> Maxim? Is the Chat in the dashboard now in the database?
>
> Sebastian
>
> --
> Sebastian Wagner
> https://twitter.com/#!/dead_lock
> http://www.webbase-design.de
> http://www.wagner-sebastian.com
> seba.wag...@gmail.com
>



-- 
WBR
Maxim aka solomax


Re: SIP integration and "getActiveRoomIds" method

2013-02-03 Thread Maxim Solodovnik
Hello Sebastian,

getActiveRoomIds method is used by red5sip as follows:
red5sip once in 3 seconds calls getActiveRoomIds to get the list of the
rooms with users for which SIP is enabled (in room settings) if such rooms
are found red5sip creates "SIP Transport" user in the room and transfers
audio to the asterisk.

This way OM-Asterist bridge sends audio only while room is not empty


On Mon, Feb 4, 2013 at 10:22 AM, seba.wag...@gmail.com <
seba.wag...@gmail.com> wrote:

> Hi Maxim,
>
> there is a new method "getActiveRoomIds" in the ScopeApplicationAdapter. I
> guess this method is used in the SIP integration.
>
> It internally uses the method "getActiveRoomIdsByServer".
> I have now implemented this method for both caches memory/db (again).
>
> It has been not working for the memory based cache cause I did not know
> SIP integration will use that and for me the roomIds where not of
> interested except for calculating the server load in the cluster.
>
> Do we really need this method? What does it do on SIP side?
>
> Also what is the intend security mechanism for the SIP/RTMP client when
> communicating with OpenMeetings?
> Does the SIP/RTMP client just call methods or does it authenticate somehow?
>
> Thanks!
> Sebastian
> --
> Sebastian Wagner
> https://twitter.com/#!/dead_lock
> http://www.webbase-design.de
> http://www.wagner-sebastian.com
> seba.wag...@gmail.com
>



-- 
WBR
Maxim aka solomax


Re: Cluster API status

2013-02-03 Thread Maxim Solodovnik
I planned to put both global and room chat into DB for Wicket.
I believe we should release what we already got and move to the HTML5
development :)


On Mon, Feb 4, 2013 at 10:43 AM, seba.wag...@gmail.com <
seba.wag...@gmail.com> wrote:

> ok thx,
>
> I guess we can also let the dashboard chat untouched.
> Theoretically there is no need to put it into the database as long as the
> clients initially always connect to the same node (as we did plan).
> But the chat history in the conference room needs to be put into the db as
> it could potentially happen that the next day/meeting the cluster decides
> to put the room on another node.
>
> Sebastian
>
>
> 2013/2/4 Maxim Solodovnik 
>
> > >> What about the chat, I have seen you made some changes to the chat
> > lately
> > >> Maxim? Is the Chat in the dashboard now in the database?
> >
> > I add chat to the DB for Wicket only (only global chat for now with small
> > amount of testing)
> > I had no plans to change it for Flash app
> >
> >
> >
> > On Mon, Feb 4, 2013 at 5:36 AM, seba.wag...@gmail.com <
> > seba.wag...@gmail.com
> > > wrote:
> >
> > > I would like to share the progress in the Cluster API.
> > > For a design overview see:
> > >
> > >
> >
> https://cwiki.apache.org/confluence/display/OPENMEETINGS/Cluster+Master-Slave+overview
> > >
> > > Status:
> > > The database session cache as alternative to the memory session cache
> > does
> > > work now (with a single server and the serverId commented out in the
> > Spring
> > > config).
> > > So you can configure the Client to be stored in memory or in database
> via
> > > Spring config.
> > >
> > > What needs to be done:
> > > 1) There are some places in the code where there is a hardcoded "null"
> > for
> > > the serverId. For example when updateing a Client. This was because in
> a
> > > former iteration of the Cluster API "null" meant the Client is on
> > > "localhost". In the new API, the serverId should be always read from
> the
> > > org.apache.openmeetings.session.ServerUtil, which then reads it from
> the
> > > Spring config.
> > > And in the future, when the server is in cluster mode, there is no
> "null"
> > > used anymore, serverId null simply means that there is no cluster
> > > configured.
> > > It might makes sense to throw an Exception upon startup:
> > > If serverId == null and serverDao.getServers().size() > 0 => throw
> > > Exception(" You have to configure a server for this instance to run the
> > > cluster correctly).
> > > + the serverId in the Spring config should become the "serverAdress"
> > >
> > > 2) There has to be a "clever" clean up job in the client table each
> time
> > > the server starts up.
> > > Cause what can happen now is: If a server is shut down you still have
> > > entries in the client table. The next time the server is startup, those
> > > clients are of course no more online. But the server does not know.
> > > A simply "delete all" will not work, cause in a cluster you will have
> > > multiple servers writing to the same database, and you can't "delete
> all"
> > > because some servers might be still online.
> > > So this is a bit tricky.
> > > The idea would be: If the serverId is NULL (meaning no cluster
> > configured)
> > > It is save to delete all records in the clients-table upon server start
> > > If the serverId is NOT NULL (cluster mode), then it you can still clean
> > up:
> > >   - All clients with the serverId of the current server starting up
> > > (cause no client can be already connected to a server that just boots)
> > >   - All clients that are assigned to a serverId in the tables
> > "servers"
> > > that either does not exist or where the server is flaged as "not
> active".
> > >   - All clients that have a serverId null
> > >
> > > From my point of view those are the most important things for the
> > session.
> > >
> > > The other issue is with the whiteboard. Whiteboard is stored in memory
> > too
> > > (because sync method is involved).
> > > A conference room is always inside the same node of the server. But
> what
> > > could happen is, that the cluster gives the room upon the next
> > day/meeting
> > > to anot

Re: SIP integration and "getActiveRoomIds" method

2013-02-03 Thread Maxim Solodovnik
I believe it will not work for the cluster (nobody ever think about this)
Unfortunately SIP integration still is not very stable :(


On Mon, Feb 4, 2013 at 10:50 AM, seba.wag...@gmail.com <
seba.wag...@gmail.com> wrote:

> Is the red5sip integration intend to work on cluster? I guess
> theoretically you just need to switch the servers host/port part and could
> use a single red5sip instances to handle a complete cluster.
>
> Sebastian
>
>
> 2013/2/4 Maxim Solodovnik 
>
>> Hello Sebastian,
>>
>> getActiveRoomIds method is used by red5sip as follows:
>> red5sip once in 3 seconds calls getActiveRoomIds to get the list of the
>> rooms with users for which SIP is enabled (in room settings) if such rooms
>> are found red5sip creates "SIP Transport" user in the room and transfers
>> audio to the asterisk.
>>
>> This way OM-Asterist bridge sends audio only while room is not empty
>>
>>
>> On Mon, Feb 4, 2013 at 10:22 AM, seba.wag...@gmail.com <
>> seba.wag...@gmail.com> wrote:
>>
>>> Hi Maxim,
>>>
>>> there is a new method "getActiveRoomIds" in the ScopeApplicationAdapter.
>>> I guess this method is used in the SIP integration.
>>>
>>> It internally uses the method "getActiveRoomIdsByServer".
>>> I have now implemented this method for both caches memory/db (again).
>>>
>>> It has been not working for the memory based cache cause I did not know
>>> SIP integration will use that and for me the roomIds where not of
>>> interested except for calculating the server load in the cluster.
>>>
>>> Do we really need this method? What does it do on SIP side?
>>>
>>> Also what is the intend security mechanism for the SIP/RTMP client when
>>> communicating with OpenMeetings?
>>> Does the SIP/RTMP client just call methods or does it authenticate
>>> somehow?
>>>
>>> Thanks!
>>> Sebastian
>>> --
>>> Sebastian Wagner
>>> https://twitter.com/#!/dead_lock
>>> http://www.webbase-design.de
>>> http://www.wagner-sebastian.com
>>> seba.wag...@gmail.com
>>>
>>
>>
>>
>> --
>> WBR
>> Maxim aka solomax
>>
>
>
>
> --
> Sebastian Wagner
> https://twitter.com/#!/dead_lock
> http://www.webbase-design.de
> http://www.wagner-sebastian.com
> seba.wag...@gmail.com
>



-- 
WBR
Maxim aka solomax


Re: Cluster API status

2013-02-03 Thread Maxim Solodovnik
Vasiliy is currently trying to set up old versions of OM and produce the
backups (He going to send email to you)


On Mon, Feb 4, 2013 at 11:01 AM, seba.wag...@gmail.com <
seba.wag...@gmail.com> wrote:

> I would vote to have the backups tested. We will dis-attract a lot of
> people if their backups won't import from old versions. I guess a number of
> people will try to update if they see that OpenMeetings is now Top Level
> Project.
>
> Also the SIP integration seems to be of greatest interest but there are a
> lot of people struggling with it.
> Is SIP production ready? Did you run a test with Irina? Can we do a test
> call somewhere?
>
> Same for cluster, its not production ready yet, so we would need to remove
> that feature from the website.
>
> And then the SWF11 issue with AEC, there are some modifications in the
> build process needed to get a SWF11 app with AEC enabled.
>
> SIP and cluster feature could potentially simply removed from our feature
> list. That would give more time to verify its production readiness.
> AEC feature is also requested but OpenMeetings would be at least possible
> to upgrade from previous versions without that feature.
> But backup feature is essential to release from my point of view. The worst
> case scenario for me is if somebody updates, backup fails and they decide
> to "OpenMeetings is too unstable" and switch back to old version (or not
> use it at all).
> We can see already some mails like that poping up in the mailing list
> because of our semi documentated features.
>
> Sebastian
>
> 2013/2/4 Maxim Solodovnik 
>
> > I planned to put both global and room chat into DB for Wicket.
> > I believe we should release what we already got and move to the HTML5
> > development :)
> >
> >
> > On Mon, Feb 4, 2013 at 10:43 AM, seba.wag...@gmail.com <
> > seba.wag...@gmail.com> wrote:
> >
> > > ok thx,
> > >
> > > I guess we can also let the dashboard chat untouched.
> > > Theoretically there is no need to put it into the database as long as
> the
> > > clients initially always connect to the same node (as we did plan).
> > > But the chat history in the conference room needs to be put into the db
> > as
> > > it could potentially happen that the next day/meeting the cluster
> decides
> > > to put the room on another node.
> > >
> > > Sebastian
> > >
> > >
> > > 2013/2/4 Maxim Solodovnik 
> > >
> > > > >> What about the chat, I have seen you made some changes to the chat
> > > > lately
> > > > >> Maxim? Is the Chat in the dashboard now in the database?
> > > >
> > > > I add chat to the DB for Wicket only (only global chat for now with
> > small
> > > > amount of testing)
> > > > I had no plans to change it for Flash app
> > > >
> > > >
> > > >
> > > > On Mon, Feb 4, 2013 at 5:36 AM, seba.wag...@gmail.com <
> > > > seba.wag...@gmail.com
> > > > > wrote:
> > > >
> > > > > I would like to share the progress in the Cluster API.
> > > > > For a design overview see:
> > > > >
> > > > >
> > > >
> > >
> >
> https://cwiki.apache.org/confluence/display/OPENMEETINGS/Cluster+Master-Slave+overview
> > > > >
> > > > > Status:
> > > > > The database session cache as alternative to the memory session
> cache
> > > > does
> > > > > work now (with a single server and the serverId commented out in
> the
> > > > Spring
> > > > > config).
> > > > > So you can configure the Client to be stored in memory or in
> database
> > > via
> > > > > Spring config.
> > > > >
> > > > > What needs to be done:
> > > > > 1) There are some places in the code where there is a hardcoded
> > "null"
> > > > for
> > > > > the serverId. For example when updateing a Client. This was because
> > in
> > > a
> > > > > former iteration of the Cluster API "null" meant the Client is on
> > > > > "localhost". In the new API, the serverId should be always read
> from
> > > the
> > > > > org.apache.openmeetings.session.ServerUtil, which then reads it
> from
> > > the
> > > > > Spring config.
> > > > > And in the future, when the server is in cluster mode, there is no
> > > &qu

Re: SIP integration and "getActiveRoomIds" method

2013-02-03 Thread Maxim Solodovnik
I'll handle it as soon as I talk to Timur


On Mon, Feb 4, 2013 at 11:42 AM, seba.wag...@gmail.com <
seba.wag...@gmail.com> wrote:

> There is a typo in a method name
> "getVerifyedActiveRoomIds" should be named "getVerifiedActiveRoomIds"
>
> Is it possible to change this method name in the red5sip API?
>
> Thx
> Sebastian
>
>
> 2013/2/4 seba.wag...@gmail.com 
>
> Then we should add some info to our website,
>> like "SIP integration is of beta quality please contact the dev list" or
>> similar.
>>
>> Sebastian
>>
>>
>> 2013/2/4 Maxim Solodovnik 
>>
>>> I believe it will not work for the cluster (nobody ever think about this)
>>> Unfortunately SIP integration still is not very stable :(
>>>
>>>
>>> On Mon, Feb 4, 2013 at 10:50 AM, seba.wag...@gmail.com <
>>> seba.wag...@gmail.com> wrote:
>>>
>>>> Is the red5sip integration intend to work on cluster? I guess
>>>> theoretically you just need to switch the servers host/port part and could
>>>> use a single red5sip instances to handle a complete cluster.
>>>>
>>>> Sebastian
>>>>
>>>>
>>>> 2013/2/4 Maxim Solodovnik 
>>>>
>>>>> Hello Sebastian,
>>>>>
>>>>> getActiveRoomIds method is used by red5sip as follows:
>>>>> red5sip once in 3 seconds calls getActiveRoomIds to get the list of
>>>>> the rooms with users for which SIP is enabled (in room settings) if such
>>>>> rooms are found red5sip creates "SIP Transport" user in the room and
>>>>> transfers audio to the asterisk.
>>>>>
>>>>> This way OM-Asterist bridge sends audio only while room is not empty
>>>>>
>>>>>
>>>>> On Mon, Feb 4, 2013 at 10:22 AM, seba.wag...@gmail.com <
>>>>> seba.wag...@gmail.com> wrote:
>>>>>
>>>>>> Hi Maxim,
>>>>>>
>>>>>> there is a new method "getActiveRoomIds" in the
>>>>>> ScopeApplicationAdapter. I guess this method is used in the SIP 
>>>>>> integration.
>>>>>>
>>>>>> It internally uses the method "getActiveRoomIdsByServer".
>>>>>> I have now implemented this method for both caches memory/db (again).
>>>>>>
>>>>>> It has been not working for the memory based cache cause I did not
>>>>>> know SIP integration will use that and for me the roomIds where not of
>>>>>> interested except for calculating the server load in the cluster.
>>>>>>
>>>>>> Do we really need this method? What does it do on SIP side?
>>>>>>
>>>>>> Also what is the intend security mechanism for the SIP/RTMP client
>>>>>> when communicating with OpenMeetings?
>>>>>> Does the SIP/RTMP client just call methods or does it authenticate
>>>>>> somehow?
>>>>>>
>>>>>> Thanks!
>>>>>> Sebastian
>>>>>> --
>>>>>> Sebastian Wagner
>>>>>> https://twitter.com/#!/dead_lock
>>>>>> http://www.webbase-design.de
>>>>>> http://www.wagner-sebastian.com
>>>>>> seba.wag...@gmail.com
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> WBR
>>>>> Maxim aka solomax
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Sebastian Wagner
>>>> https://twitter.com/#!/dead_lock
>>>> http://www.webbase-design.de
>>>> http://www.wagner-sebastian.com
>>>> seba.wag...@gmail.com
>>>>
>>>
>>>
>>>
>>> --
>>> WBR
>>> Maxim aka solomax
>>>
>>
>>
>>
>> --
>> Sebastian Wagner
>> https://twitter.com/#!/dead_lock
>> http://www.webbase-design.de
>> http://www.wagner-sebastian.com
>> seba.wag...@gmail.com
>>
>
>
>
> --
> Sebastian Wagner
> https://twitter.com/#!/dead_lock
> http://www.webbase-design.de
> http://www.wagner-sebastian.com
> seba.wag...@gmail.com
>



-- 
WBR
Maxim aka solomax


Re: Exception in client regarding SIP integration, wrong reference to room attribute probably

2013-02-04 Thread Maxim Solodovnik
It was incomplete clean-up :(
not it is fixed: Committed revision 1442469.


On Tue, Feb 5, 2013 at 3:54 AM, seba.wag...@gmail.com  wrote:

> There is a reference error in the client, you can see the very first time
> when the exception is thrown it will produce a log like this:
>
> baseConferenceRoom.lzx≈93: reference to undefined property 'sip_enabled'
>
> The issue is that the variable sip_enabled does not exist or the path
> specified is wrong:
> canvas.thishib.sip_enabled
>
> This attribute does not exist at all.
> There is an attribute "sipEnabled" in the Rooms-Entity that is available
> in the client.
> So the path would be:
> canvas.currentRoomObject.sipEnabled to check if that flag is set in the
> Rooms Object of the current meeting. But
> "canvas.thishib.sip_enabled" has no meaning.
>
> Sebastian
> --
> Sebastian Wagner
> https://twitter.com/#!/dead_lock
> http://www.webbase-design.de
> http://www.wagner-sebastian.com
> seba.wag...@gmail.com
>



-- 
WBR
Maxim aka solomax


Re: No foreign columns created by openJPA

2013-02-04 Thread Maxim Solodovnik
It is weird, I was sure OpenJPA should create all PK, FK and Indices :(


On Tue, Feb 5, 2013 at 11:55 AM, seba.wag...@gmail.com <
seba.wag...@gmail.com> wrote:

> Hi,
>
> we are using InnoDB, however OpenJPA does not create a single Foreign key.
> It does already create indice's (at least for some or even the majority).
> But the FK's are not created when the schema is populated to the database.
> Is there any setting we have overseen or is this a desired behaviour
> because of some other requirement?
>
> Thanks!
> Sebastian
> --
> Sebastian Wagner
> https://twitter.com/#!/dead_lock
> http://www.webbase-design.de
> http://www.wagner-sebastian.com
> seba.wag...@gmail.com
>



-- 
WBR
Maxim aka solomax


Re: No foreign columns created by openJPA

2013-02-04 Thread Maxim Solodovnik
So we need to add ForeignKey annotations?
Or maybe we can write to openjpa mailing list first?


On Tue, Feb 5, 2013 at 12:23 PM, seba.wag...@gmail.com <
seba.wag...@gmail.com> wrote:

>
> http://openjpa.apache.org/builds/2.2.1/apache-openjpa/docs/ref_guide_mapping_jpa.html#ref_guide_mapping_jpa_fk
>
>
> 2013/2/5 seba.wag...@gmail.com 
>
> > There is an annotation @ForeignKey that you can set at each attribute.
> > But I also thought it would happen automatically for those attributes
> that
> > are defined as @ManyToOne, @OneToMany or @ManyToMany. Those seem to have
> > also the Indices correctly set. Just FK's missing.
> >
> > Sebastian
> >
> >
> > 2013/2/5 Maxim Solodovnik 
> >
> >> It is weird, I was sure OpenJPA should create all PK, FK and Indices :(
> >>
> >>
> >> On Tue, Feb 5, 2013 at 11:55 AM, seba.wag...@gmail.com <
> >> seba.wag...@gmail.com> wrote:
> >>
> >> > Hi,
> >> >
> >> > we are using InnoDB, however OpenJPA does not create a single Foreign
> >> key.
> >> > It does already create indice's (at least for some or even the
> >> majority).
> >> > But the FK's are not created when the schema is populated to the
> >> database.
> >> > Is there any setting we have overseen or is this a desired behaviour
> >> > because of some other requirement?
> >> >
> >> > Thanks!
> >> > Sebastian
> >> > --
> >> > Sebastian Wagner
> >> > https://twitter.com/#!/dead_lock
> >> > http://www.webbase-design.de
> >> > http://www.wagner-sebastian.com
> >> > seba.wag...@gmail.com
> >> >
> >>
> >>
> >>
> >> --
> >> WBR
> >> Maxim aka solomax
> >>
> >
> >
> >
> > --
> > Sebastian Wagner
> > https://twitter.com/#!/dead_lock
> > http://www.webbase-design.de
> > http://www.wagner-sebastian.com
> > seba.wag...@gmail.com
> >
>
>
>
> --
> Sebastian Wagner
> https://twitter.com/#!/dead_lock
> http://www.webbase-design.de
> http://www.wagner-sebastian.com
> seba.wag...@gmail.com
>



-- 
WBR
Maxim aka solomax


Re: SIP integration and "getActiveRoomIds" method

2013-02-04 Thread Maxim Solodovnik
renamed


On Mon, Feb 4, 2013 at 11:47 AM, seba.wag...@gmail.com <
seba.wag...@gmail.com> wrote:

> Thx!
>
>
> 2013/2/4 Maxim Solodovnik 
>
>> I'll handle it as soon as I talk to Timur
>>
>>
>> On Mon, Feb 4, 2013 at 11:42 AM, seba.wag...@gmail.com <
>> seba.wag...@gmail.com> wrote:
>>
>>> There is a typo in a method name
>>> "getVerifyedActiveRoomIds" should be named "getVerifiedActiveRoomIds"
>>>
>>> Is it possible to change this method name in the red5sip API?
>>>
>>> Thx
>>> Sebastian
>>>
>>>
>>> 2013/2/4 seba.wag...@gmail.com 
>>>
>>> Then we should add some info to our website,
>>>> like "SIP integration is of beta quality please contact the dev list"
>>>> or similar.
>>>>
>>>> Sebastian
>>>>
>>>>
>>>> 2013/2/4 Maxim Solodovnik 
>>>>
>>>>> I believe it will not work for the cluster (nobody ever think about
>>>>> this)
>>>>> Unfortunately SIP integration still is not very stable :(
>>>>>
>>>>>
>>>>> On Mon, Feb 4, 2013 at 10:50 AM, seba.wag...@gmail.com <
>>>>> seba.wag...@gmail.com> wrote:
>>>>>
>>>>>> Is the red5sip integration intend to work on cluster? I guess
>>>>>> theoretically you just need to switch the servers host/port part and 
>>>>>> could
>>>>>> use a single red5sip instances to handle a complete cluster.
>>>>>>
>>>>>> Sebastian
>>>>>>
>>>>>>
>>>>>> 2013/2/4 Maxim Solodovnik 
>>>>>>
>>>>>>> Hello Sebastian,
>>>>>>>
>>>>>>> getActiveRoomIds method is used by red5sip as follows:
>>>>>>> red5sip once in 3 seconds calls getActiveRoomIds to get the list of
>>>>>>> the rooms with users for which SIP is enabled (in room settings) if such
>>>>>>> rooms are found red5sip creates "SIP Transport" user in the room and
>>>>>>> transfers audio to the asterisk.
>>>>>>>
>>>>>>> This way OM-Asterist bridge sends audio only while room is not empty
>>>>>>>
>>>>>>>
>>>>>>> On Mon, Feb 4, 2013 at 10:22 AM, seba.wag...@gmail.com <
>>>>>>> seba.wag...@gmail.com> wrote:
>>>>>>>
>>>>>>>> Hi Maxim,
>>>>>>>>
>>>>>>>> there is a new method "getActiveRoomIds" in the
>>>>>>>> ScopeApplicationAdapter. I guess this method is used in the SIP 
>>>>>>>> integration.
>>>>>>>>
>>>>>>>> It internally uses the method "getActiveRoomIdsByServer".
>>>>>>>> I have now implemented this method for both caches memory/db
>>>>>>>> (again).
>>>>>>>>
>>>>>>>> It has been not working for the memory based cache cause I did not
>>>>>>>> know SIP integration will use that and for me the roomIds where not of
>>>>>>>> interested except for calculating the server load in the cluster.
>>>>>>>>
>>>>>>>> Do we really need this method? What does it do on SIP side?
>>>>>>>>
>>>>>>>> Also what is the intend security mechanism for the SIP/RTMP client
>>>>>>>> when communicating with OpenMeetings?
>>>>>>>> Does the SIP/RTMP client just call methods or does it authenticate
>>>>>>>> somehow?
>>>>>>>>
>>>>>>>> Thanks!
>>>>>>>> Sebastian
>>>>>>>> --
>>>>>>>> Sebastian Wagner
>>>>>>>> https://twitter.com/#!/dead_lock
>>>>>>>> http://www.webbase-design.de
>>>>>>>> http://www.wagner-sebastian.com
>>>>>>>> seba.wag...@gmail.com
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> WBR
>>>>>>> Maxim aka solomax
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Sebastian Wagner
>>>>>> https://twitter.com/#!/dead_lock
>>>>>> http://www.webbase-design.de
>>>>>> http://www.wagner-sebastian.com
>>>>>> seba.wag...@gmail.com
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> WBR
>>>>> Maxim aka solomax
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Sebastian Wagner
>>>> https://twitter.com/#!/dead_lock
>>>> http://www.webbase-design.de
>>>> http://www.wagner-sebastian.com
>>>> seba.wag...@gmail.com
>>>>
>>>
>>>
>>>
>>> --
>>> Sebastian Wagner
>>> https://twitter.com/#!/dead_lock
>>> http://www.webbase-design.de
>>> http://www.wagner-sebastian.com
>>> seba.wag...@gmail.com
>>>
>>
>>
>>
>> --
>> WBR
>> Maxim aka solomax
>>
>
>
>
> --
> Sebastian Wagner
> https://twitter.com/#!/dead_lock
> http://www.webbase-design.de
> http://www.wagner-sebastian.com
> seba.wag...@gmail.com
>



-- 
WBR
Maxim aka solomax


Re: Features that need to be completed for 2.1

2013-02-04 Thread Maxim Solodovnik
let it be me

it is really time for the release :)


On Tue, Feb 5, 2013 at 2:37 PM, Alexei Fedotov wrote:

> [now with correct address]
>
> I'd ask a release manager to decide on feature freeze dates at the
> first place. Then we can proceed with testing and fixing bugs.
>
>
> On Tue, Feb 5, 2013 at 11:34 AM, Alexei Fedotov
>  wrote:
> > Hello folks,
> >
> >> I think a first step towards that would be to decide on a release
> manager
> >
> > Has anyone stepped forward?
> >
> > --
> > With best regards / с наилучшими пожеланиями,
> > Alexei Fedotov / Алексей Федотов,
> > http://dataved.ru/
> > +7 916 562 8095
> >
> >
> > On Tue, Jan 22, 2013 at 2:15 AM, George Kirkham 
> wrote:
> >> Please consider: One feature to include in 2.1 would be enabling Adobe’s
> >> Acoustic Echo Cancelling (AEC).
> >>
> >>
> >>
> >> We have tested this, and it greatly improves end user experience for
> >> meetings (for people whose computers do not support hardware AEC).
> >>
> >>
> >>
> >> Thanks,
> >>
> >>
> >>
> >> George Kirkham
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >> From: seba.wag...@gmail.com [mailto:seba.wag...@gmail.com]
> >> Sent: Tuesday, 22 January 2013 8:24 AM
> >> To: openmeetings-u...@incubator.apache.org
> >> Subject: Re: some questions to recordings and different moodle-sites
> >>
> >>
> >>
> >> Regarding releasing, I think a first step towards that would be to
> decide on
> >> a release manager and about the features that need to be completed for
> 2.1.
> >> I guess we all have a rough idea about what should go into v2.1 but no
> >> concrete consens was made yet IMHO.
> >>
> >> Sebastian
> >>
> >>
> >>
> >> 2013/1/22 Maxim Solodovnik 
> >>
> >> lots of questions :)
> >>
> >>
> >>
> >> 1) openmeetingsModuleKey should be used to separate users/files of
> multiple
> >> CMS connected to one openmeetings (multiple moodles in your case)
> >>
> >> 2) sure you can manage the recordings it is located at
> >> OM_HOME/webapps/openmeetings/streams/hibernate/
> >>
> >> 3) The id in the streams folder id DB id of the recording
> >>
> >> 4) openmeetingsModuleKey acts as "external user type" this is by design
> made
> >> to separate users from multiple CMSes
> >>
> >> 5) this part is tricky, you can use OM system export/import, but in your
> >> case this will create dublicate users/groups/rooms (most probably) and
> there
> >> is no "automatic way" to handle this mess.
> >>
> >>
> >>
> >> I hope we will have release soon, but this question is for Sebastian
> >>
> >>
> >>
> >> On Mon, Jan 21, 2013 at 10:08 PM,  wrote:
> >>
> >> Hello,
> >>
> >> I've some questions about openmeetings in connection with different
> >> moodle-installations. I have installations of openmeetings (1.8, 1.9 and
> >> 2.0) for different moodle-sites. Particularly I am interested in how to
> >> manage conference-recordings of openmeetings. The goal is to have one
> >> openmeetings installation (2.+) for different moodle-sites. My specific
> >> questions are:
> >>
> >> 1. What can I do, to see as an moodle-teacher only the recordings I've
> >> made? The openmeetingsModuleKey seems to have no effect.
> >> 2. How are the recordings playable offline? Is it possible to manage (to
> >> export or to delete) these recordings directly with in openmeetings?
> >> 3. How or where can I find the recordings? What means in that case the
> ID
> >> in the ./streams folder?
> >> 4. Can moodle users and moodle courses be assigned to certain
> >> organizations by the webservice? How can the user groups from various
> >> moodle systems be managed in openmeetings?
> >> 5. How can I migrate (export and import) recordings from old existing
> >> openmeetings installations (1.8 and 1.9) to a new clean 2.0 openmeetings
> >> installation?
> >>
> >> And last but not least:
> >> When will the next version of openmeetings (2.1) expected?
> >>
> >> Thank you for your help,
> >> Michael
> >>
> >>
> >>
> >>
> >>
> >> --
> >> WBR
> >> Maxim aka solomax
> >>
> >>
> >>
> >>
> >> --
> >> Sebastian Wagner
> >> https://twitter.com/#!/dead_lock
> >> http://www.webbase-design.de
> >> http://www.wagner-sebastian.com
> >> seba.wag...@gmail.com
>



-- 
WBR
Maxim aka solomax


Re: SVN and mailing lit moved

2013-02-05 Thread Maxim Solodovnik
@Sebastian are any migration steps still not complete?
mailing list group is still not renamed here
http://mail-archives.apache.org/mod_mbox/
we are still listed as "openmeetings.incubator.apache.org"


On Tue, Jan 29, 2013 at 3:49 PM, Maxim Solodovnik wrote:

> Filed issue for INFRA on this
>
> https://issues.apache.org/jira/browse/INFRA-5806
>
> They reply some steps are missing :(
>
>
>
> On Mon, Jan 28, 2013 at 9:25 PM, Maxim Solodovnik wrote:
>
>> our mailing list group has name "openmeetings.incubator.apache.org"
>>
>> http://mail-archives.apache.org/mod_mbox/
>>
>>
>> On Mon, Jan 28, 2013 at 4:09 PM, Maxim Solodovnik 
>> wrote:
>>
>>> I'm not very familiar with "relocate" so I did clean checkout :)
>>>
>>>
>>> On Mon, Jan 28, 2013 at 3:19 PM, Alexey Ghenov wrote:
>>>
>>>> Hello,
>>>>
>>>> When i trying to relocate openmeetings to new repo adress in eclipse
>>>> it giving me this error:
>>>>
>>>> switch --relocate
>>>>
>>>> https://svn.apache.org/repos/asf/incubator/openmeetings/trunk/singlewebapp
>>>> https://svn.apache.org/repos/asf/openmeetings/trunk/singlewebapp
>>>> /home/alexey/workspaceee/Openmeetings<https://svn.apache.org/repos/asf/openmeetings/trunk/singlewebapp/home/alexey/workspaceee/Openmeetings>
>>>> Invalid relocation
>>>> svn: Invalid relocation destination:
>>>> 'https://svn.apache.org/repos/asf/openmeetings/trunk/singlewebapp'
>>>> (does not point to target)
>>>>
>>>> Should i delete and rebuild project?
>>>>
>>>> Thancks for your attention, Alexey.
>>>>
>>>> 2013/1/28, Maxim Solodovnik :
>>>> > I have performed massive links update. All remaining links need to be
>>>> > updated later and more carefully
>>>> >
>>>> >
>>>> > On Mon, Jan 28, 2013 at 10:46 AM, seba.wag...@gmail.com <
>>>> > seba.wag...@gmail.com> wrote:
>>>> >
>>>> >> website does also correctly works already. So the svnpubscript
>>>> already
>>>> >> points to the new location in the SVN
>>>> >> thx to INFRA :)
>>>> >>
>>>> >> Sebastia
>>>> >>
>>>> >>
>>>> >> 2013/1/28 seba.wag...@gmail.com 
>>>> >>
>>>> >> I already checked the list command and forwared it to alvaro. He is
>>>> the
>>>> >>> moderator of the list. I don't speak spanish anyhow :)
>>>> >>>
>>>> >>> Sebastian
>>>> >>>
>>>> >>>
>>>> >>> 2013/1/28 Maxim Solodovnik 
>>>> >>>
>>>> >>>> additional email need to be checked:
>>>> >>>> user-espa...@openmeetings.apache.org
>>>> >>>>
>>>> >>>>
>>>> >>>> On Mon, Jan 28, 2013 at 10:38 AM, seba.wag...@gmail.com <
>>>> >>>> seba.wag...@gmail.com> wrote:
>>>> >>>>
>>>> >>>>> I guess dist area needs a separated cleanup. As those files are
>>>> >>>>> mirrored on all Apache mirrors worldwide.
>>>> >>>>> I have not read the docs about that yet.
>>>> >>>>>
>>>> >>>>> Sebastian
>>>> >>>>>
>>>> >>>>>
>>>> >>>>> 2013/1/28 Maxim Solodovnik 
>>>> >>>>>
>>>> >>>>>> another weird link:
>>>> >>>>>> http://www.apache.org/dist/incubator/openmeetings/KEYS
>>>> >>>>>>
>>>> >>>>>>
>>>> >>>>>> On Mon, Jan 28, 2013 at 10:33 AM, Maxim Solodovnik <
>>>> >>>>>> solomax...@gmail.com> wrote:
>>>> >>>>>>
>>>> >>>>>>> do we still need dependencies.xml?
>>>> >>>>>>>
>>>> >>>>>>>
>>>> >>>>>>> On Mon, Jan 28, 2013 at 10:31 AM, Maxim Solodovnik <
>>>> >>>>>>> solomax...@gmail.com> wrote:
>>>> >>>>>>>
>>>> >>>>&

Re: svn commit: r1442500 - in /openmeetings/trunk/singlewebapp/src/org/apache/openmeetings: data/user/Usermanagement.java data/user/dao/UsersDao.java ldap/LdapLoginManagement.java

2013-02-05 Thread Maxim Solodovnik
you are right :)
I'll update the DAOs to have anonymous updates :)


On Tue, Feb 5, 2013 at 3:50 PM, seba.wag...@gmail.com  wrote:

> hehe
>
> what makes you think that
>
> public void updateUser(User user) {
> usersDao.update(user, 1l);
> }
>
> is a good idea? Why not 2L or -1L or any other random number?
> I mean: What makes the user with the Id 1 so important that we will by
> default sign up every edit action to his account?
>
> null would make sense. But the update does not allow it. Thats why I've
> added one that has no userId param.
> When we use database generated indexes/sequencers the userId 1 could
> someday not exist at all. So this hardcoded 1L makes me just not happy :)
>
> Sebastian
>
>
> 2013/2/5 
>
> > Author: solomax
> > Date: Tue Feb  5 08:40:25 2013
> > New Revision: 1442500
> >
> > URL: http://svn.apache.org/viewvc?rev=1442500&view=rev
> > Log:
> > Code clean up: Copy/pasted method was removed
> >
> > Modified:
> >
> >
> openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/data/user/Usermanagement.java
> >
> >
> openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/data/user/dao/UsersDao.java
> >
> >
> openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/ldap/LdapLoginManagement.java
> >
> > Modified:
> >
> openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/data/user/Usermanagement.java
> > URL:
> >
> http://svn.apache.org/viewvc/openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/data/user/Usermanagement.java?rev=1442500&r1=1442499&r2=1442500&view=diff
> >
> >
> ==
> > ---
> >
> openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/data/user/Usermanagement.java
> > (original)
> > +++
> >
> openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/data/user/Usermanagement.java
> > Tue Feb  5 08:40:25 2013
> > @@ -1549,7 +1549,7 @@ public class Usermanagement {
> > }
> >
> > public void updateUser(User user) {
> > -   usersDao.update(user);
> > +   usersDao.update(user, 1L);
> > }
> >
> > /**
> >
> > Modified:
> >
> openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/data/user/dao/UsersDao.java
> > URL:
> >
> http://svn.apache.org/viewvc/openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/data/user/dao/UsersDao.java?rev=1442500&r1=1442499&r2=1442500&view=diff
> >
> >
> ==
> > ---
> >
> openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/data/user/dao/UsersDao.java
> > (original)
> > +++
> >
> openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/data/user/dao/UsersDao.java
> > Tue Feb  5 08:40:25 2013
> > @@ -139,17 +139,6 @@ public class UsersDao implements IDataPr
> > return u;
> > }
> >
> > -   public User update(User u) {
> > -   if (u.getUser_id() == null) {
> > -   u.setStarttime(new Date());
> > -   em.persist(u);
> > -   } else {
> > -   u.setUpdatetime(new Date());
> > -   u = em.merge(u);
> > -   }
> > -   return u;
> > -   }
> > -
> > public void delete(User u, long userId) {
> > deleteUserID(u.getUser_id());
> > }
> >
> > Modified:
> >
> openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/ldap/LdapLoginManagement.java
> > URL:
> >
> http://svn.apache.org/viewvc/openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/ldap/LdapLoginManagement.java?rev=1442500&r1=1442499&r2=1442500&view=diff
> >
> >
> ==
> > ---
> >
> openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/ldap/LdapLoginManagement.java
> > (original)
> > +++
> >
> openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/ldap/LdapLoginManagement.java
> > Tue Feb  5 08:40:25 2013
> > @@ -726,7 +726,7 @@ public class LdapLoginManagement {
> >
> > User user = usersDao.get(newUserId);
> > user.setPictureuri(pictureUri);
> > -   usersDao.update(user);
> > +   usersDao.update(user, 1L);
> >
> > } catch (Exception e) {
> > log.error("Error creating user : " +
> > e.getMessage());
> >
> >
> >
>
>
> --
> Sebastian Wagner
> https://twitter.com/#!/dead_lock
> http://www.webbase-design.de
> http://www.wagner-sebastian.com
> seba.wag...@gmail.com
>



-- 
WBR
Maxim aka solomax


Re: svn commit: r1442500 - in /openmeetings/trunk/singlewebapp/src/org/apache/openmeetings: data/user/Usermanagement.java data/user/dao/UsersDao.java ldap/LdapLoginManagement.java

2013-02-05 Thread Maxim Solodovnik
commited


On Tue, Feb 5, 2013 at 3:55 PM, Maxim Solodovnik wrote:

> you are right :)
> I'll update the DAOs to have anonymous updates :)
>
>
> On Tue, Feb 5, 2013 at 3:50 PM, seba.wag...@gmail.com <
> seba.wag...@gmail.com> wrote:
>
>> hehe
>>
>> what makes you think that
>>
>> public void updateUser(User user) {
>> usersDao.update(user, 1l);
>> }
>>
>> is a good idea? Why not 2L or -1L or any other random number?
>> I mean: What makes the user with the Id 1 so important that we will by
>> default sign up every edit action to his account?
>>
>> null would make sense. But the update does not allow it. Thats why I've
>> added one that has no userId param.
>> When we use database generated indexes/sequencers the userId 1 could
>> someday not exist at all. So this hardcoded 1L makes me just not happy :)
>>
>> Sebastian
>>
>>
>> 2013/2/5 
>>
>> > Author: solomax
>> > Date: Tue Feb  5 08:40:25 2013
>> > New Revision: 1442500
>> >
>> > URL: http://svn.apache.org/viewvc?rev=1442500&view=rev
>> > Log:
>> > Code clean up: Copy/pasted method was removed
>> >
>> > Modified:
>> >
>> >
>> openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/data/user/Usermanagement.java
>> >
>> >
>> openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/data/user/dao/UsersDao.java
>> >
>> >
>> openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/ldap/LdapLoginManagement.java
>> >
>> > Modified:
>> >
>> openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/data/user/Usermanagement.java
>> > URL:
>> >
>> http://svn.apache.org/viewvc/openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/data/user/Usermanagement.java?rev=1442500&r1=1442499&r2=1442500&view=diff
>> >
>> >
>> ==
>> > ---
>> >
>> openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/data/user/Usermanagement.java
>> > (original)
>> > +++
>> >
>> openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/data/user/Usermanagement.java
>> > Tue Feb  5 08:40:25 2013
>> > @@ -1549,7 +1549,7 @@ public class Usermanagement {
>> > }
>> >
>> > public void updateUser(User user) {
>> > -   usersDao.update(user);
>> > +   usersDao.update(user, 1L);
>> > }
>> >
>> > /**
>> >
>> > Modified:
>> >
>> openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/data/user/dao/UsersDao.java
>> > URL:
>> >
>> http://svn.apache.org/viewvc/openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/data/user/dao/UsersDao.java?rev=1442500&r1=1442499&r2=1442500&view=diff
>> >
>> >
>> ==
>> > ---
>> >
>> openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/data/user/dao/UsersDao.java
>> > (original)
>> > +++
>> >
>> openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/data/user/dao/UsersDao.java
>> > Tue Feb  5 08:40:25 2013
>> > @@ -139,17 +139,6 @@ public class UsersDao implements IDataPr
>> > return u;
>> > }
>> >
>> > -   public User update(User u) {
>> > -   if (u.getUser_id() == null) {
>> > -   u.setStarttime(new Date());
>> > -   em.persist(u);
>> > -   } else {
>> > -   u.setUpdatetime(new Date());
>> > -   u = em.merge(u);
>> > -   }
>> > -   return u;
>> > -   }
>> > -
>> > public void delete(User u, long userId) {
>> > deleteUserID(u.getUser_id());
>> > }
>> >
>> > Modified:
>> >
>> openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/ldap/LdapLoginManagement.java
>> > URL:
>> >
>> http://svn.apache.org/viewvc/openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/ldap/LdapLoginManagement.java?rev=1442500&r1=1442499&r2=1442500&view=diff
>> >
>> >
>> ==
>> > ---
>> >
>> openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/ldap/LdapLoginManagement.java
>> > (original)
>> > +++
>> >
>> openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/ldap/LdapLoginManagement.java
>> > Tue Feb  5 08:40:25 2013
>> > @@ -726,7 +726,7 @@ public class LdapLoginManagement {
>> >
>> > User user = usersDao.get(newUserId);
>> > user.setPictureuri(pictureUri);
>> > -   usersDao.update(user);
>> > +   usersDao.update(user, 1L);
>> >
>> > } catch (Exception e) {
>> > log.error("Error creating user : " +
>> > e.getMessage());
>> >
>> >
>> >
>>
>>
>> --
>> Sebastian Wagner
>> https://twitter.com/#!/dead_lock
>> http://www.webbase-design.de
>> http://www.wagner-sebastian.com
>> seba.wag...@gmail.com
>>
>
>
>
> --
> WBR
> Maxim aka solomax
>



-- 
WBR
Maxim aka solomax


Re: Build failed in Jenkins: Openmeetings #366

2013-02-05 Thread Maxim Solodovnik
I removed it ...
will wait for the build :)


On Wed, Feb 6, 2013 at 6:49 AM, seba.wag...@gmail.com  wrote:

> I know what this is.
> I bet there is a comma after the last named query in the UserComtact
> entity. Eclipse and Java on osx does not complain. But the jdk on the build
> server does. I often copy paste rows in the named queries adding or
> removing some attribute.
>
> Sebastian
> Am 06.02.2013 12:36 schrieb "Apache Jenkins Server" <
> jenk...@builds.apache.org>:
>
> See 
>>
>> Changes:
>>
>> [solomax] [OPENMEETINGS-525] Font style button visibility fix
>>
>> [solomax] [OPENMEETINGS-526] additional checks while start/stop
>> sharing/recording
>>
>> [solomax] Queries are fixed after renaming
>>
>> [solomax] Import: sipUsers are now imported as expected
>>
>> [solomax] Dao: anonymous update/delete is added
>>
>> [solomax] Code clean up: Copy/pasted method was removed
>>
>> [sebawagner] Adding new config key ldap_user_picture_uri
>>
>> [solomax] SIP: getActiveRoomIds is fixed to correctly return empty list;
>> typo in getRoomModeratorByRoomId is fixed;
>>
>> [solomax] SIP: getActiveRoomIds is fixed to correctly return empty list
>>
>> [sebawagner] OPENMEETINGS-460 Add Beans for storing the white-board in
>> the database
>>
>> [solomax] SIP: clean up old sip
>>
>> [solomax] Import: validation for Crypt class name is added
>>
>> [solomax] Typo in method name is fixed
>>
>> [sebawagner] OPENMEETINGS-460 Restructure address object to be in
>> user-package, rename user and room entities and connected entities in the
>> same package to single Object name. Re-factor all possible queries based on
>> those objects to NamedQueries (some for the user and room are missing).
>> Rename some tables to reflect the new entity names.
>> Backup seems to work fine with the new Entity names.
>>
>> --
>> [...truncated 3560 lines...]
>> [ivy:resolve] downloading
>> https://repository.apache.org/content/groups/public/org/apache/james/apache-mime4j-core/0.8-SNAPSHOT/apache-mime4j-core-0.8-20130205.014959-512.jar...
>> [ivy:resolve] ... (94kB)
>> [ivy:resolve] ... (0kB)
>> [ivy:resolve]   [SUCCESSFUL ]
>> org.apache.james#apache-mime4j-core;0.8-SNAPSHOT!apache-mime4j-core.jar
>> (421ms)
>> [ivy:resolve] downloading
>> https://repository.apache.org/content/groups/public/org/apache/ws/commons/axiom/axiom-impl/1.2.15-SNAPSHOT/axiom-impl-1.2.15-20130203.111643-127-sources.jar...
>> [ivy:resolve]  (170kB)
>> [ivy:resolve] ... (0kB)
>> [ivy:resolve]   [SUCCESSFUL ]
>> org.apache.ws.commons.axiom#axiom-impl;1.2.15-SNAPSHOT!axiom-impl.jar(source)
>> (623ms)
>> [ivy:resolve] downloading
>> https://repository.apache.org/content/groups/public/org/apache/ws/commons/axiom/axiom-impl/1.2.15-SNAPSHOT/axiom-impl-1.2.15-20130203.111643-127-javadoc.jar...
>> [ivy:resolve]
>> .
>> (540kB)
>> [ivy:resolve] ... (0kB)
>> [ivy:resolve]   [SUCCESSFUL ]
>> org.apache.ws.commons.axiom#axiom-impl;1.2.15-SNAPSHOT!axiom-impl.jar(javadoc)
>> (925ms)
>> [ivy:resolve] downloading
>> https://repository.apache.org/content/groups/public/org/apache/ws/commons/axiom/axiom-impl/1.2.15-SNAPSHOT/axiom-impl-1.2.15-20130203.111643-127.jar...
>> [ivy:resolve] . (181kB)
>> [ivy:resolve] ... (0kB)
>> [ivy:resolve]   [SUCCESSFUL ]
>> org.apache.ws.commons.axiom#axiom-impl;1.2.15-SNAPSHOT!axiom-impl.jar(bundle)
>> (735ms)
>> [ivy:resolve] downloading
>> http://repo1.maven.org/maven2/org/apache/geronimo/specs/geronimo-annotation_1.0_spec/1.1/geronimo-annotation_1.0_spec-1.1.jar...
>> [ivy:resolve] .. (11kB)
>> [ivy:resolve] .. (0kB)
>> [ivy:resolve]   [SUCCESSFUL ]
>> org.apache.geronimo.specs#geronimo-annotation_1.0_spec;1.1!geronimo-annotation_1.0_spec.jar
>> (273ms)
>> [ivy:resolve] downloading
>> http://repo1.maven.org/maven2/org/apache/geronimo/specs/geronimo-jaxws_2.2_spec/1.0/geronimo-jaxws_2.2_spec-1.0.jar...
>> [ivy:resolve] ... (58kB)
>> [ivy:resolve] .. (0kB)
>> [ivy:resolve]   [SUCCESSFUL ]
>> org.apache.geronimo.specs#geronimo-jaxws_2.2_spec;1.0!geronimo-jaxws_2.2_spec.jar(bundle)
>> (77ms)
>> [ivy:resolve] downloading
>> https://repository.apache.org/content/groups/public/org/apache/axis2/axis2-saaj/1.7.0-SNAPSHOT/axis2-saaj-1.7.0-20130205.204458-1432.jar...
>> [ivy:resolve] ... (89kB)
>> [ivy:resolve] ... (0kB)
>> [ivy:resolve]   [SUCCESSFUL ]
>> org.apache.axis2#axis2-saaj;1.7.0-SNAPSHOT!axis2-saaj.jar (500ms)
>> [ivy:resolve] downloading
>> https://repository.apache.org/content/groups/public/org/apache/axis2/axis2-metadata/1.7.0-SNAPSHOT/axis2-metadata-1.7.0-20130205.204458-1431.jar...
>> [ivy:resolve] 
>> (422kB)
>> [ivy:resolve] ... (0kB)
>> [ivy:resolve]   [SUCCESSFUL ]
>> org.apache.axis2#axis2-metadata;1.7.0-SNAPSHOT!axis2-metadata.jar (881ms)

Re: No foreign columns created by openJPA

2013-02-05 Thread Maxim Solodovnik
Should I try to add the property? or you will do it yourself?


On Tue, Feb 5, 2013 at 12:46 PM, seba.wag...@gmail.com <
seba.wag...@gmail.com> wrote:

> I think we should investigate a bit further before we start to add this
> annotation
> will ping the openJPA list
>
> Sebastian
>
>
> 2013/2/5 Maxim Solodovnik 
>
> > So we need to add ForeignKey annotations?
> > Or maybe we can write to openjpa mailing list first?
> >
> >
> > On Tue, Feb 5, 2013 at 12:23 PM, seba.wag...@gmail.com <
> > seba.wag...@gmail.com> wrote:
> >
> > >
> > >
> >
> http://openjpa.apache.org/builds/2.2.1/apache-openjpa/docs/ref_guide_mapping_jpa.html#ref_guide_mapping_jpa_fk
> > >
> > >
> > > 2013/2/5 seba.wag...@gmail.com 
> > >
> > > > There is an annotation @ForeignKey that you can set at each
> attribute.
> > > > But I also thought it would happen automatically for those attributes
> > > that
> > > > are defined as @ManyToOne, @OneToMany or @ManyToMany. Those seem to
> > have
> > > > also the Indices correctly set. Just FK's missing.
> > > >
> > > > Sebastian
> > > >
> > > >
> > > > 2013/2/5 Maxim Solodovnik 
> > > >
> > > >> It is weird, I was sure OpenJPA should create all PK, FK and Indices
> > :(
> > > >>
> > > >>
> > > >> On Tue, Feb 5, 2013 at 11:55 AM, seba.wag...@gmail.com <
> > > >> seba.wag...@gmail.com> wrote:
> > > >>
> > > >> > Hi,
> > > >> >
> > > >> > we are using InnoDB, however OpenJPA does not create a single
> > Foreign
> > > >> key.
> > > >> > It does already create indice's (at least for some or even the
> > > >> majority).
> > > >> > But the FK's are not created when the schema is populated to the
> > > >> database.
> > > >> > Is there any setting we have overseen or is this a desired
> behaviour
> > > >> > because of some other requirement?
> > > >> >
> > > >> > Thanks!
> > > >> > Sebastian
> > > >> > --
> > > >> > Sebastian Wagner
> > > >> > https://twitter.com/#!/dead_lock
> > > >> > http://www.webbase-design.de
> > > >> > http://www.wagner-sebastian.com
> > > >> > seba.wag...@gmail.com
> > > >> >
> > > >>
> > > >>
> > > >>
> > > >> --
> > > >> WBR
> > > >> Maxim aka solomax
> > > >>
> > > >
> > > >
> > > >
> > > > --
> > > > Sebastian Wagner
> > > > https://twitter.com/#!/dead_lock
> > > > http://www.webbase-design.de
> > > > http://www.wagner-sebastian.com
> > > > seba.wag...@gmail.com
> > > >
> > >
> > >
> > >
> > > --
> > > Sebastian Wagner
> > > https://twitter.com/#!/dead_lock
> > > http://www.webbase-design.de
> > > http://www.wagner-sebastian.com
> > > seba.wag...@gmail.com
> > >
> >
> >
> >
> > --
> > WBR
> > Maxim aka solomax
> >
>
>
>
> --
> Sebastian Wagner
> https://twitter.com/#!/dead_lock
> http://www.webbase-design.de
> http://www.wagner-sebastian.com
> seba.wag...@gmail.com
>



-- 
WBR
Maxim aka solomax


Re: Build failed in Jenkins: Openmeetings #366

2013-02-05 Thread Maxim Solodovnik
I have changed the mailing list used.
I'm not moderator of mailing list. What should I do to be moderator?


On Wed, Feb 6, 2013 at 10:28 AM, seba.wag...@gmail.com <
seba.wag...@gmail.com> wrote:

> Btw: Build server is using old mailing list. We should change that. It
> seems like accepting those mails does also not reach the mailing list.
> @Maxim Are you moderator of the mailing lists already?
>
> Seb
> Am 06.02.2013 14:57 schrieb "Maxim Solodovnik" :
>
>> I removed it ...
>> will wait for the build :)
>>
>>
>> On Wed, Feb 6, 2013 at 6:49 AM, seba.wag...@gmail.com <
>> seba.wag...@gmail.com> wrote:
>>
>>> I know what this is.
>>> I bet there is a comma after the last named query in the UserComtact
>>> entity. Eclipse and Java on osx does not complain. But the jdk on the build
>>> server does. I often copy paste rows in the named queries adding or
>>> removing some attribute.
>>>
>>> Sebastian
>>> Am 06.02.2013 12:36 schrieb "Apache Jenkins Server" <
>>> jenk...@builds.apache.org>:
>>>
>>>  See <https://builds.apache.org/job/openmeetings/366/changes>
>>>>
>>>> Changes:
>>>>
>>>> [solomax] [OPENMEETINGS-525] Font style button visibility fix
>>>>
>>>> [solomax] [OPENMEETINGS-526] additional checks while start/stop
>>>> sharing/recording
>>>>
>>>> [solomax] Queries are fixed after renaming
>>>>
>>>> [solomax] Import: sipUsers are now imported as expected
>>>>
>>>> [solomax] Dao: anonymous update/delete is added
>>>>
>>>> [solomax] Code clean up: Copy/pasted method was removed
>>>>
>>>> [sebawagner] Adding new config key ldap_user_picture_uri
>>>>
>>>> [solomax] SIP: getActiveRoomIds is fixed to correctly return empty list;
>>>> typo in getRoomModeratorByRoomId is fixed;
>>>>
>>>> [solomax] SIP: getActiveRoomIds is fixed to correctly return empty list
>>>>
>>>> [sebawagner] OPENMEETINGS-460 Add Beans for storing the white-board in
>>>> the database
>>>>
>>>> [solomax] SIP: clean up old sip
>>>>
>>>> [solomax] Import: validation for Crypt class name is added
>>>>
>>>> [solomax] Typo in method name is fixed
>>>>
>>>> [sebawagner] OPENMEETINGS-460 Restructure address object to be in
>>>> user-package, rename user and room entities and connected entities in the
>>>> same package to single Object name. Re-factor all possible queries based on
>>>> those objects to NamedQueries (some for the user and room are missing).
>>>> Rename some tables to reflect the new entity names.
>>>> Backup seems to work fine with the new Entity names.
>>>>
>>>> --
>>>> [...truncated 3560 lines...]
>>>> [ivy:resolve] downloading
>>>> https://repository.apache.org/content/groups/public/org/apache/james/apache-mime4j-core/0.8-SNAPSHOT/apache-mime4j-core-0.8-20130205.014959-512.jar...
>>>> [ivy:resolve] ... (94kB)
>>>> [ivy:resolve] ... (0kB)
>>>> [ivy:resolve]   [SUCCESSFUL ]
>>>> org.apache.james#apache-mime4j-core;0.8-SNAPSHOT!apache-mime4j-core.jar
>>>> (421ms)
>>>> [ivy:resolve] downloading
>>>> https://repository.apache.org/content/groups/public/org/apache/ws/commons/axiom/axiom-impl/1.2.15-SNAPSHOT/axiom-impl-1.2.15-20130203.111643-127-sources.jar...
>>>> [ivy:resolve]  (170kB)
>>>> [ivy:resolve] ... (0kB)
>>>> [ivy:resolve]   [SUCCESSFUL ]
>>>> org.apache.ws.commons.axiom#axiom-impl;1.2.15-SNAPSHOT!axiom-impl.jar(source)
>>>> (623ms)
>>>> [ivy:resolve] downloading
>>>> https://repository.apache.org/content/groups/public/org/apache/ws/commons/axiom/axiom-impl/1.2.15-SNAPSHOT/axiom-impl-1.2.15-20130203.111643-127-javadoc.jar...
>>>> [ivy:resolve]
>>>> .
>>>> (540kB)
>>>> [ivy:resolve] ... (0kB)
>>>> [ivy:resolve]   [SUCCESSFUL ]
>>>> org.apache.ws.commons.axiom#axiom-impl;1.2.15-SNAPSHOT!axiom-impl.jar(javadoc)
>>>> (925ms)
>>>> [ivy:resolve] downloading
>>>> https://repository.apache.org/content/groups/public/org/apache/ws/commons/axiom/axiom-impl/1.2.15-SNAPSHOT/axiom-impl-1.2.15-20130203

Re: No foreign keys created by openJPA

2013-02-05 Thread Maxim Solodovnik
OK, testing it right now :)


On Wed, Feb 6, 2013 at 9:54 AM, seba.wag...@gmail.com  wrote:

> THX Kevin!
>
> @Maxim we should try that!
> Am 06.02.2013 03:59 schrieb "Kevin Sutter" :
>
> Hi Sebastian,
>> There are two ways to get the ForeignKeys automatically processed.
>>
>> > value="buildSchema(ForeignKeys=true)"/>
>>
>> Since you were already using a variation of this property, maybe this is
>> the easiest mechanism.  A very similar capability is provided by the
>> Schema
>> Factory [1]:
>>
>> > value="native(ForeignKeys=true)"/>
>>
>> And, of course, there is the manual means of specifying the ForeignKeys
>> via
>> the @ForeignKey annotation.
>>
>> Hope this helps,
>> Kevin
>>
>> [1]
>>
>> http://people.apache.org/~mikedd/nightly.builds/apache-openjpa-2.3.0-SNAPSHOT/docs/docbook/manual.html#ref_guide_schema_info_factory
>>
>> On Tue, Feb 5, 2013 at 1:07 AM, seba.wag...@gmail.com <
>> seba.wag...@gmail.com
>> > wrote:
>>
>> > We are using MySQL with InnoDB and OpenJPA 2.2.1
>> >
>> > We face an issue in the automatic table schema creation:
>> > Indices are created but no foreign keys.
>> >
>> > We are using this configuration file:
>> >
>> >
>> http://svn.apache.org/viewvc/openmeetings/trunk/singlewebapp/src/META-INF/mysql_persistence.xml?view=markup
>> >
>> > I guess this is all what configures our schema creation:
>> > 
>> >
>> > What I would expect is for example for attributes/mapping like (example
>> 1
>> > simple ManyToOne association):
>> > @ManyToOne(fetch = FetchType.EAGER)
>> > @JoinColumn(name = "roomtypes_id")
>> > private RoomType roomtype;
>> >
>> > That the attribute roomtypes_id will be created together with a FK and
>> and
>> > Indice. However Only Indice is created no FK.
>> >
>> > The same for any attribute that has a ManyToOne or OneToMany or
>> ManyToMany
>> > annotation.
>> >
>> > So the question is:
>> > Is there a config value for SynchronizeMappings that automatically
>> creates
>> > not only the Indices but also the FK's for those relations?
>> > Or do we really need to annotate every attribute with @ForeignKey?
>> >
>> > Bonus question :)
>> > How would that work with a one-sided one-many association without a
>> cross
>> > table?
>> >
>> > For example (example 2 one-sided one-many association)
>> > @OneToMany
>> > @ElementJoinColumn(name = "whiteboarditem_id", referencedColumnName
>> =
>> > "id")
>> > private Collection roomItems;
>> >
>> > If I add:
>> > @ForeignKey(enabled = true)
>> > to example 1 => ForeignKey is created by SchemaTool
>> > to example 2 => ForeignKey is _not_ created by SchemaTool
>> >
>> > How can I make SchemaTool to create FK in example 2?
>> >
>> >
>> > Thanks!
>> > Sebastian
>> > --
>> > Sebastian Wagner
>> > https://twitter.com/#!/dead_lock
>> > http://www.webbase-design.de
>> > http://www.wagner-sebastian.com
>> > seba.wag...@gmail.com
>> >
>>
>


-- 
WBR
Maxim aka solomax


Fwd: No foreign keys created by openJPA

2013-02-05 Thread Maxim Solodovnik
-- Forwarded message --
Date: Wed, Feb 6, 2013 at 11:00 AM
Subject: Re: No foreign keys created by openJPA
Cc: us...@openjpa.apache.org


Hello Kevin,

I just test both properties (added to the persistence.xml) on MySQL 5.5
(InnoDB)
and foreign keys were created only for the fields annotated with
@ForeignKey :(
Is it expected behavior?

openJPA version is 2.2.1

foreign keys were checked with following SQL:
SELECT * FROM information_schema.TABLE_CONSTRAINTS WHERE
information_schema.TABLE_CONSTRAINTS.CONSTRAINT_TYPE = 'FOREIGN KEY';

properties were added to the following xml:
https://svn.apache.org/repos/asf/openmeetings/trunk/singlewebapp/src/META-INF/mysql_persistence.xml


Thanks in advance for your help


On Tue, Feb 5, 2013 at 9:58 PM, Kevin Sutter  wrote:

> Hi Sebastian,
> There are two ways to get the ForeignKeys automatically processed.
>
>  value="buildSchema(ForeignKeys=true)"/>
>
> Since you were already using a variation of this property, maybe this is
> the easiest mechanism.  A very similar capability is provided by the Schema
> Factory [1]:
>
>  value="native(ForeignKeys=true)"/>
>
> And, of course, there is the manual means of specifying the ForeignKeys via
> the @ForeignKey annotation.
>
> Hope this helps,
> Kevin
>
> [1]
>
> http://people.apache.org/~mikedd/nightly.builds/apache-openjpa-2.3.0-SNAPSHOT/docs/docbook/manual.html#ref_guide_schema_info_factory
>
> On Tue, Feb 5, 2013 at 1:07 AM, seba.wag...@gmail.com <
> seba.wag...@gmail.com
> > wrote:
>
> > We are using MySQL with InnoDB and OpenJPA 2.2.1
> >
> > We face an issue in the automatic table schema creation:
> > Indices are created but no foreign keys.
> >
> > We are using this configuration file:
> >
> >
> http://svn.apache.org/viewvc/openmeetings/trunk/singlewebapp/src/META-INF/mysql_persistence.xml?view=markup
> >
> > I guess this is all what configures our schema creation:
> > 
> >
> > What I would expect is for example for attributes/mapping like (example 1
> > simple ManyToOne association):
> > @ManyToOne(fetch = FetchType.EAGER)
> > @JoinColumn(name = "roomtypes_id")
> > private RoomType roomtype;
> >
> > That the attribute roomtypes_id will be created together with a FK and
> and
> > Indice. However Only Indice is created no FK.
> >
> > The same for any attribute that has a ManyToOne or OneToMany or
> ManyToMany
> > annotation.
> >
> > So the question is:
> > Is there a config value for SynchronizeMappings that automatically
> creates
> > not only the Indices but also the FK's for those relations?
> > Or do we really need to annotate every attribute with @ForeignKey?
> >
> > Bonus question :)
> > How would that work with a one-sided one-many association without a cross
> > table?
> >
> > For example (example 2 one-sided one-many association)
> > @OneToMany
> > @ElementJoinColumn(name = "whiteboarditem_id", referencedColumnName =
> > "id")
> > private Collection roomItems;
> >
> > If I add:
> > @ForeignKey(enabled = true)
> > to example 1 => ForeignKey is created by SchemaTool
> > to example 2 => ForeignKey is _not_ created by SchemaTool
> >
> > How can I make SchemaTool to create FK in example 2?
> >
> >
> > Thanks!
> > Sebastian
> > --
> > Sebastian Wagner
> > https://twitter.com/#!/dead_lock
> > http://www.webbase-design.de
> > http://www.wagner-sebastian.com
> > seba.wag...@gmail.com
> >
>



-- 
WBR
Maxim aka solomax



-- 
WBR
Maxim aka solomax


Re: StackOverflowError while starting private chat

2013-02-05 Thread Maxim Solodovnik
According to the latest tests this Exception is reproducible on rev. 1439240
Will try to find out what is wrong


On Wed, Feb 6, 2013 at 6:31 AM, seba.wag...@gmail.com  wrote:

> I might be able to check tonight earliest.
>
> Sebastian
> Am 06.02.2013 01:03 schrieb "Maxim Solodovnik" :
>
> Hello Sebastian,
>>
>> After latest changes (not sure which ones)
>> It is unable to start private chat.
>> If users clicks on start private chat icon
>>
>> Exception caught java.lang.StackOverflowError
>> in o.r.s.net.rtmp.RTMPMinaIoHandler
>>
>> The exception stacktrace is very large and in the middle of it there is a
>> call
>> ScopeApplicationAdapter.sendMessageWithClientByPublicSID (line: 2370)
>>
>>
>> Maybe you know how to handle it?
>> The most weird thing is: the weeks ago this code works just fine
>>
>> Thanks in advance
>> ps I'm continue my investigations
>>
>> --
>> WBR
>> Maxim aka solomax
>>
>


-- 
WBR
Maxim aka solomax


Re: svn commit: r1442844 - /openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/remote/red5/ScopeApplicationAdapter.java

2013-02-05 Thread Maxim Solodovnik
Timur is currently fixing red5sip
and ask me to fix this method

@Timur can you please provide Sebastian with the list of OM methods you are
using?


On Wed, Feb 6, 2013 at 12:57 PM, seba.wag...@gmail.com <
seba.wag...@gmail.com> wrote:

> @Maxim: Who is using
> public synchronized List listRoomBroadcast()
> ?
>
> Cause the LZX client does not use it.
> Is it in use in some red5Sip methods?
> Can we somehow have an overview of the methods that are used from the
> RTPM/SIP client?
>
> Sebastian
>
>
> 2013/2/6 
>
> > Author: solomax
> > Date: Wed Feb  6 05:27:49 2013
> > New Revision: 1442844
> >
> > URL: http://svn.apache.org/viewvc?rev=1442844&view=rev
> > Log:
> > ScopeApplicationAdapter.listRoomBroadcast method return all ids doubled,
> > fixed.
> >
> > Modified:
> >
> >
> openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/remote/red5/ScopeApplicationAdapter.java
> >
> > Modified:
> >
> openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/remote/red5/ScopeApplicationAdapter.java
> > URL:
> >
> http://svn.apache.org/viewvc/openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/remote/red5/ScopeApplicationAdapter.java?rev=1442844&r1=1442843&r2=1442844&view=diff
> >
> >
> ==
> > ---
> >
> openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/remote/red5/ScopeApplicationAdapter.java
> > (original)
> > +++
> >
> openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/remote/red5/ScopeApplicationAdapter.java
> > Wed Feb  6 05:27:49 2013
> > @@ -23,6 +23,7 @@ import java.util.ArrayList;
> >  import java.util.Collection;
> >  import java.util.Date;
> >  import java.util.HashMap;
> > +import java.util.HashSet;
> >  import java.util.Iterator;
> >  import java.util.LinkedList;
> >  import java.util.List;
> > @@ -419,7 +420,7 @@ public class ScopeApplicationAdapter ext
> > }
> >
> >  public synchronized List listRoomBroadcast() {
> > -List broadcastList = new ArrayList();
> > +   HashSet broadcastList = new HashSet();
> >  IConnection current = Red5.getConnectionLocal();
> >  String streamid = current.getClient().getId();
> >  Collection> conCollection =
> > current.getScope().getConnections();
> > @@ -442,13 +443,16 @@ public class ScopeApplicationAdapter ext
> >  // as it will be already triggered
> >  // in the result of this Function
> >  // in the Client
> > -
> >  broadcastList.add(Long.valueOf(rcl.getBroadCastID()).intValue());
> > +   Long id =
> > Long.valueOf(rcl.getBroadCastID());
> > +   if (id != null &&
> > !broadcastList.contains(id)) {
> > +   broadcastList.add(id.intValue());
> > +   }
> >  }
> >  }
> >  }
> >  }
> >  }
> > -return broadcastList;
> > +return new ArrayList(broadcastList);
> >  }
> >
> >
> >
> >
> >
>
>
> --
> Sebastian Wagner
> https://twitter.com/#!/dead_lock
> http://www.webbase-design.de
> http://www.wagner-sebastian.com
> seba.wag...@gmail.com
>



-- 
WBR
Maxim aka solomax


Re: StackOverflowError while starting private chat

2013-02-06 Thread Maxim Solodovnik
The issue is fixed (rev. 1442863)
sorry for disturbing you :(


On Wed, Feb 6, 2013 at 12:29 PM, Maxim Solodovnik wrote:

> According to the latest tests this Exception is reproducible on rev.
> 1439240
> Will try to find out what is wrong
>
>
> On Wed, Feb 6, 2013 at 6:31 AM, seba.wag...@gmail.com <
> seba.wag...@gmail.com> wrote:
>
>> I might be able to check tonight earliest.
>>
>> Sebastian
>> Am 06.02.2013 01:03 schrieb "Maxim Solodovnik" :
>>
>> Hello Sebastian,
>>>
>>> After latest changes (not sure which ones)
>>> It is unable to start private chat.
>>> If users clicks on start private chat icon
>>>
>>> Exception caught java.lang.StackOverflowError
>>> in o.r.s.net.rtmp.RTMPMinaIoHandler
>>>
>>> The exception stacktrace is very large and in the middle of it there is
>>> a call
>>> ScopeApplicationAdapter.sendMessageWithClientByPublicSID (line: 2370)
>>>
>>>
>>> Maybe you know how to handle it?
>>> The most weird thing is: the weeks ago this code works just fine
>>>
>>> Thanks in advance
>>> ps I'm continue my investigations
>>>
>>> --
>>> WBR
>>> Maxim aka solomax
>>>
>>
>
>
> --
> WBR
> Maxim aka solomax
>



-- 
WBR
Maxim aka solomax


Fwd: No foreign keys created by openJPA

2013-02-06 Thread Maxim Solodovnik
I'm afraid the answer below mean we need to annotate everything explicitly

-- Forwarded message --
From: Kevin Sutter 
Date: Wed, Feb 6, 2013 at 9:33 PM
Subject: Re: No foreign keys created by openJPA
To: Maxim Solodovnik 
Cc: us...@openjpa.apache.org


Hi guys,
I didn't see the properties being used in the persistence.xml file that you
posted...

But, in any case, these properties are mainly used for reading foreign key
information from the database.  During the table mapping processing, there
may be some verification of foreign key constraints as well.  This allows
OpenJPA to make more intelligent decisions when submitting SQL statements
in batch to avoid constraint collisions.

If you are looking for explicit foreign key specifications, then you'll
probably have to use the @ForeignKey annotation.

Hope this helps,
Kevin


On Tue, Feb 5, 2013 at 10:00 PM, Maxim Solodovnik wrote:

> Hello Kevin,
>
> I just test both properties (added to the persistence.xml) on MySQL 5.5
> (InnoDB)
> and foreign keys were created only for the fields annotated with
> @ForeignKey :(
> Is it expected behavior?
>
> openJPA version is 2.2.1
>
> foreign keys were checked with following SQL:
> SELECT * FROM information_schema.TABLE_CONSTRAINTS WHERE
> information_schema.TABLE_CONSTRAINTS.CONSTRAINT_TYPE = 'FOREIGN KEY';
>
> properties were added to the following xml:
>
> https://svn.apache.org/repos/asf/openmeetings/trunk/singlewebapp/src/META-INF/mysql_persistence.xml
>
>
> Thanks in advance for your help
>
>
> On Tue, Feb 5, 2013 at 9:58 PM, Kevin Sutter  wrote:
>
>> Hi Sebastian,
>> There are two ways to get the ForeignKeys automatically processed.
>>
>> > value="buildSchema(ForeignKeys=true)"/>
>>
>> Since you were already using a variation of this property, maybe this is
>> the easiest mechanism.  A very similar capability is provided by the
>> Schema
>> Factory [1]:
>>
>> > value="native(ForeignKeys=true)"/>
>>
>> And, of course, there is the manual means of specifying the ForeignKeys
>> via
>> the @ForeignKey annotation.
>>
>> Hope this helps,
>> Kevin
>>
>> [1]
>>
>> http://people.apache.org/~mikedd/nightly.builds/apache-openjpa-2.3.0-SNAPSHOT/docs/docbook/manual.html#ref_guide_schema_info_factory
>>
>> On Tue, Feb 5, 2013 at 1:07 AM, seba.wag...@gmail.com <
>> seba.wag...@gmail.com
>> > wrote:
>>
>> > We are using MySQL with InnoDB and OpenJPA 2.2.1
>> >
>> > We face an issue in the automatic table schema creation:
>> > Indices are created but no foreign keys.
>> >
>> > We are using this configuration file:
>> >
>> >
>> http://svn.apache.org/viewvc/openmeetings/trunk/singlewebapp/src/META-INF/mysql_persistence.xml?view=markup
>> >
>> > I guess this is all what configures our schema creation:
>> > 
>> >
>> > What I would expect is for example for attributes/mapping like (example
>> 1
>> > simple ManyToOne association):
>> > @ManyToOne(fetch = FetchType.EAGER)
>> > @JoinColumn(name = "roomtypes_id")
>> > private RoomType roomtype;
>> >
>> > That the attribute roomtypes_id will be created together with a FK and
>> and
>> > Indice. However Only Indice is created no FK.
>> >
>> > The same for any attribute that has a ManyToOne or OneToMany or
>> ManyToMany
>> > annotation.
>> >
>> > So the question is:
>> > Is there a config value for SynchronizeMappings that automatically
>> creates
>> > not only the Indices but also the FK's for those relations?
>> > Or do we really need to annotate every attribute with @ForeignKey?
>> >
>> > Bonus question :)
>> > How would that work with a one-sided one-many association without a
>> cross
>> > table?
>> >
>> > For example (example 2 one-sided one-many association)
>> > @OneToMany
>> > @ElementJoinColumn(name = "whiteboarditem_id", referencedColumnName
>> =
>> > "id")
>> > private Collection roomItems;
>> >
>> > If I add:
>> > @ForeignKey(enabled = true)
>> > to example 1 => ForeignKey is created by SchemaTool
>> > to example 2 => ForeignKey is _not_ created by SchemaTool
>> >
>> > How can I make SchemaTool to create FK in example 2?
>> >
>> >
>> > Thanks!
>> > Sebastian
>> > --
>> > Sebastian Wagner
>> > https://twitter.com/#!/dead_lock
>> > http://www.webbase-design.de
>> > http://www.wagner-sebastian.com
>> > seba.wag...@gmail.com
>> >
>>
>
>
>
> --
> WBR
> Maxim aka solomax
>




-- 
WBR
Maxim aka solomax


Re: svn commit: r1442500 - in /openmeetings/trunk/singlewebapp/src/org/apache/openmeetings: data/user/Usermanagement.java data/user/dao/UsersDao.java ldap/LdapLoginManagement.java

2013-02-06 Thread Maxim Solodovnik
then you need to update code:
if (userId > 0)
to be
if (userId != null)

to avoid NPE


On Thu, Feb 7, 2013 at 1:00 PM, seba.wag...@gmail.com  wrote:

> Sorry I don't understand it.
> Maybe there might be a misunderstanding.
>
> Usermanagement has now a method:
> usersDao.update(user, -1L);
> -1L is for me almost same random as 1L. But -1L can never exist. Null would
> make sense.
>
> I guess it might make sense to change the update method in the
> IDataProviderDao to "Long userId" instead of "long userId" so that you can
> use "null" as userId. Same for the delete method in the IDataProviderDao.
> That would actually solve all issue from my point of view.
>
> I have modified it just like that now.
>
> Sebastian
>
>
> 2013/2/5 Maxim Solodovnik 
>
> > commited
> >
> >
> > On Tue, Feb 5, 2013 at 3:55 PM, Maxim Solodovnik  > >wrote:
> >
> > > you are right :)
> > > I'll update the DAOs to have anonymous updates :)
> > >
> > >
> > > On Tue, Feb 5, 2013 at 3:50 PM, seba.wag...@gmail.com <
> > > seba.wag...@gmail.com> wrote:
> > >
> > >> hehe
> > >>
> > >> what makes you think that
> > >>
> > >> public void updateUser(User user) {
> > >> usersDao.update(user, 1l);
> > >> }
> > >>
> > >> is a good idea? Why not 2L or -1L or any other random number?
> > >> I mean: What makes the user with the Id 1 so important that we will by
> > >> default sign up every edit action to his account?
> > >>
> > >> null would make sense. But the update does not allow it. Thats why
> I've
> > >> added one that has no userId param.
> > >> When we use database generated indexes/sequencers the userId 1 could
> > >> someday not exist at all. So this hardcoded 1L makes me just not happy
> > :)
> > >>
> > >> Sebastian
> > >>
> > >>
> > >> 2013/2/5 
> > >>
> > >> > Author: solomax
> > >> > Date: Tue Feb  5 08:40:25 2013
> > >> > New Revision: 1442500
> > >> >
> > >> > URL: http://svn.apache.org/viewvc?rev=1442500&view=rev
> > >> > Log:
> > >> > Code clean up: Copy/pasted method was removed
> > >> >
> > >> > Modified:
> > >> >
> > >> >
> > >>
> >
> openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/data/user/Usermanagement.java
> > >> >
> > >> >
> > >>
> >
> openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/data/user/dao/UsersDao.java
> > >> >
> > >> >
> > >>
> >
> openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/ldap/LdapLoginManagement.java
> > >> >
> > >> > Modified:
> > >> >
> > >>
> >
> openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/data/user/Usermanagement.java
> > >> > URL:
> > >> >
> > >>
> >
> http://svn.apache.org/viewvc/openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/data/user/Usermanagement.java?rev=1442500&r1=1442499&r2=1442500&view=diff
> > >> >
> > >> >
> > >>
> >
> ==
> > >> > ---
> > >> >
> > >>
> >
> openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/data/user/Usermanagement.java
> > >> > (original)
> > >> > +++
> > >> >
> > >>
> >
> openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/data/user/Usermanagement.java
> > >> > Tue Feb  5 08:40:25 2013
> > >> > @@ -1549,7 +1549,7 @@ public class Usermanagement {
> > >> > }
> > >> >
> > >> > public void updateUser(User user) {
> > >> > -   usersDao.update(user);
> > >> > +   usersDao.update(user, 1L);
> > >> > }
> > >> >
> > >> > /**
> > >> >
> > >> > Modified:
> > >> >
> > >>
> >
> openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/data/user/dao/UsersDao.java
> > >> > URL:
> > >> >
> > >>
> >
> http://svn.apache.org/viewvc/openmeetings/tr

Re: Upcoming OM release

2013-02-07 Thread Maxim Solodovnik
OK
Here is the issues list:

https://issues.apache.org/jira/issues/?jql=project%20%3D%20OPENMEETINGS%20AND%20fixVersion%20%3D%20%222.1%20Apache%20Release%22%20AND%20status%20in%20(Open%2C%20%22In%20Progress%22%2C%20Reopened%2C%20Resolved)

22 issues (keep growing since I'm sorting issues currently having no "Fix
Version" set)



On Thu, Feb 7, 2013 at 12:43 PM, seba.wag...@gmail.com <
seba.wag...@gmail.com> wrote:

> Great work, especially in our Jira, we have so many issues, its easy to
> loose control of it!
>
> Sebastian
>
>
> 2013/2/7 Maxim Solodovnik 
>
>> Dear All,
>>
>> since nobody vote against me, I'm gonna be Release manager of OM :)
>> It is almost 7 months was passed since last release :(
>>
>> This is why I would like to set upcoming release date to the beginning of
>> March.
>> To achieve this challenging task I would like to claim Feature Freeze!
>>
>> In my next email I'll send the list of issues currently blocking the
>> release and going to send updates to this list regularly.
>>
>> Everybody welcome to add/remove issues to the list.
>> All other issues + all feature requests/improvements will be moved to the
>> 3.0 (not sure yet if we going to release 2.2)
>>
>>
>> --
>> WBR
>> Maxim aka solomax
>>
>
>
>
> --
> Sebastian Wagner
> https://twitter.com/#!/dead_lock
> http://www.webbase-design.de
> http://www.wagner-sebastian.com
> seba.wag...@gmail.com
>



-- 
WBR
Maxim aka solomax


Re: svn commit: r1442500 - in /openmeetings/trunk/singlewebapp/src/org/apache/openmeetings: data/user/Usermanagement.java data/user/dao/UsersDao.java ldap/LdapLoginManagement.java

2013-02-07 Thread Maxim Solodovnik
Maybe you are right,
I just against anonymous updates.
I believe it will be gone as soon as we will move to wicket. In fact all
modifications are made by some user (except for initial import maybe)


On Thu, Feb 7, 2013 at 2:22 PM, seba.wag...@gmail.com  wrote:

> I have changed it now to userId != null .. okay you changed it now already.
> I think that will do its job for now.
>
> Sebastian
>
>
> 2013/2/7 seba.wag...@gmail.com 
>
> > In that sense I think the method
> > IDataProviderDao.get(long id)
> > should also be changed to
> > IDataProviderDao.get(Long id)
> >
> > and in case id == null the method will return null.
> > In that case we have this comparisson only at one place at least.
> >
> > Sebastian
> >
> >
> > 2013/2/7 seba.wag...@gmail.com 
> >
> > I don't understand that comparisson at all.
> >> If you don't know which user is updating you should really set the id to
> >> null.
> >> so: entity.setUpdatedBy(null);
> >> and not just ignoring that paramater. null is a valid value for a
> >> OneToMany relation.
> >> And no matter who the mapping are done, every entity that has a "Long
> >> updatedby" or "User updatedby" is a "nullable" field.
> >>
> >> If anybody does a method call like:
> >> entityXYZDao.update(entity,0)
> >> That is simply wrong and will throw an exception cause a user with Id 0
> >> does not exist. And that is also okay from my point of view.
> >>
> >> Where in our code do we actively use the paradigma/logic to set the
> >> userId to 0?
> >>
> >> Sebastian
> >>
> >>
> >> 2013/2/7 Maxim Solodovnik 
> >>
> >>> then you need to update code:
> >>> if (userId > 0)
> >>> to be
> >>> if (userId != null)
> >>>
> >>> to avoid NPE
> >>>
> >>>
> >>> On Thu, Feb 7, 2013 at 1:00 PM, seba.wag...@gmail.com <
> >>> seba.wag...@gmail.com
> >>> > wrote:
> >>>
> >>> > Sorry I don't understand it.
> >>> > Maybe there might be a misunderstanding.
> >>> >
> >>> > Usermanagement has now a method:
> >>> > usersDao.update(user, -1L);
> >>> > -1L is for me almost same random as 1L. But -1L can never exist. Null
> >>> would
> >>> > make sense.
> >>> >
> >>> > I guess it might make sense to change the update method in the
> >>> > IDataProviderDao to "Long userId" instead of "long userId" so that
> you
> >>> can
> >>> > use "null" as userId. Same for the delete method in the
> >>> IDataProviderDao.
> >>> > That would actually solve all issue from my point of view.
> >>> >
> >>> > I have modified it just like that now.
> >>> >
> >>> > Sebastian
> >>> >
> >>> >
> >>> > 2013/2/5 Maxim Solodovnik 
> >>> >
> >>> > > commited
> >>> > >
> >>> > >
> >>> > > On Tue, Feb 5, 2013 at 3:55 PM, Maxim Solodovnik <
> >>> solomax...@gmail.com
> >>> > > >wrote:
> >>> > >
> >>> > > > you are right :)
> >>> > > > I'll update the DAOs to have anonymous updates :)
> >>> > > >
> >>> > > >
> >>> > > > On Tue, Feb 5, 2013 at 3:50 PM, seba.wag...@gmail.com <
> >>> > > > seba.wag...@gmail.com> wrote:
> >>> > > >
> >>> > > >> hehe
> >>> > > >>
> >>> > > >> what makes you think that
> >>> > > >>
> >>> > > >> public void updateUser(User user) {
> >>> > > >> usersDao.update(user, 1l);
> >>> > > >> }
> >>> > > >>
> >>> > > >> is a good idea? Why not 2L or -1L or any other random number?
> >>> > > >> I mean: What makes the user with the Id 1 so important that we
> >>> will by
> >>> > > >> default sign up every edit action to his account?
> >>> > > >>
> >>> > > >> null would make sense. But the update does not allow it. Thats
> why
> >>> > I&#x

Re: DB is broken after latest refactoring

2013-02-08 Thread Maxim Solodovnik
I'll answer myself: I'm going to rename DB table for User object to be
om_user, so derby will work.
Please rename it to something else if you feel it should have different name


On Fri, Feb 8, 2013 at 12:30 PM, Maxim Solodovnik wrote:

> Hello Sebastian,
>
> It seems like OM is not working with derby DB anymore.
> It seems like it is impossible to create "user" table in derby DB.
>
> I believe we should choose another name for the DB table.
> I'm currently testing with name 'om_user', maybe you have better name in
> mind?
>
> --
> WBR
> Maxim aka solomax
>



-- 
WBR
Maxim aka solomax


Re: Issues need to be sorted before release

2013-02-08 Thread Maxim Solodovnik
1) I'm currently trying to help Timur with SIP (only testing efforts)
Current issue: 8kHz audio is seems to be hardcoded into red5phone and Timur
is trying to enable at least 22kHz

2) I'm going to implement mailQ (the only big java issue in the list)

3) I can help you with modifying the build

4) After Vasiliy will creates the rest backup files, I'll add them to the
build.properties and will close 446

5) I'll update Joomla plugin


namely, mine seems to be:
OPENMEETINGS-327
OPENMEETINGS-446
OPENMEETINGS-431
OPENMEETINGS-528
OPENMEETINGS-378 (or should we move this to 3.0 ?)

I would love if you can handle:
OPENMEETINGS-516
OPENMEETINGS-475
OPENMEETINGS-404 (or should we move this to 3.0 ?)
OPENMEETINGS-377

I can help you with:
OPENMEETINGS-529

I believe we should move OPENMEETINGS-270 to 3.0 just before the release
build since it is very hard to reproduce/find the main cause



On Sat, Feb 9, 2013 at 6:59 AM, seba.wag...@gmail.com  wrote:

> what is the list of issues to be fixed for Version 2.1 that you are
> looking at currently?
> I am searching for the AEC feature. That is only a change in the build
> system from my point of view and could be possible to be resolved for
> version 2.1.
>
> (including CC dev@)
>
> Sebastian
>
>
> 2013/2/8 Maxim Solodovnik 
>
>> Hello Sebastian,
>>
>> can you please take a look at this list:
>>
>> https://issues.apache.org/jira/issues/?jql=project%20%3D%20OPENMEETINGS%20AND%20fixVersion%20%3D%20EMPTY%20AND%20status%20in%20(Open%2C%20%22In%20Progress%22%2C%20Reopened)%20ORDER%20BY%20priority%20DESC
>>
>> I would like to set "Fix Version" for all these issues to "3.0"
>> Maybe you would like to mark some of them as "2.1"
>>
>> --
>> WBR
>> Maxim aka solomax
>>
>
>
>
> --
> Sebastian Wagner
> https://twitter.com/#!/dead_lock
> http://www.webbase-design.de
> http://www.wagner-sebastian.com
> seba.wag...@gmail.com
>



-- 
WBR
Maxim aka solomax


Re: DB is broken after latest refactoring

2013-02-08 Thread Maxim Solodovnik
I guess Derby has no "databases" and might already has table user (built-in)
On Feb 9, 2013 9:44 AM, "seba.wag...@gmail.com" 
wrote:

> It might be possible to correctly put the name in quotes. I cannot believe
> Derby allows no table named "user" at all.
>
> Sebastian
> Am 08.02.2013 18:30 schrieb "Maxim Solodovnik" :
>
>> Hello Sebastian,
>>
>> It seems like OM is not working with derby DB anymore.
>> It seems like it is impossible to create "user" table in derby DB.
>>
>> I believe we should choose another name for the DB table.
>> I'm currently testing with name 'om_user', maybe you have better name in
>> mind?
>>
>> --
>> WBR
>> Maxim aka solomax
>>
>


Re: Free Software Compatibility

2013-02-08 Thread Maxim Solodovnik
Our audio/video components are already on swf10 and we are going to move it
to swf11
I'm afraid gnash is totally incompatible with it :(


On Sat, Feb 9, 2013 at 9:10 AM, Julia Longtin wrote:

> Hi,
>
> I'm a free software developer looking for a meeting/streaming application
> platform that can work with my 100% free software environment. I keep
> running across 'Real Flash Required' in these sites, when trying to do
> business.
>
> I've successfully compiled openmeeting, but the bean for openmeeting
> itsself seems to not want to run.
>
> I was wondering:
> Is there interest in having this software work with the most current
> gnash(and fixing the most current gnash to work with it)?
>
> If so, can i get some assistance getting this application to run?
>
> Thanks in advance,
>
> Julia Longtin
>



-- 
WBR
Maxim aka solomax


Re: DB is broken after latest refactoring

2013-02-08 Thread Maxim Solodovnik
Ah OK,
I hope it will be resolved
I'd like "user" more than om_user :)


On Sat, Feb 9, 2013 at 12:11 PM, seba.wag...@gmail.com <
seba.wag...@gmail.com> wrote:

> And it is not even in the schema builder, its in the SQL query that
> requests the user,
> so the "table" (or actual .dat or whatever files Derby creates and puts
> the data in) are there.
> But the SQL query doesn't work cause IMHO the keyword "user" has to be
> escaped correctly in the query.
> Lets contact the OpenJPA list.
>
> Sebastian
>
>
> 2013/2/9 seba.wag...@gmail.com 
>
> No what I meant was:
>> There have been a number of such issues with Hibernate and OpenJPA in the
>> past, for example you could not create a column with the name "open"
>> because "open" is a reserved word in SQL and Hibernate or OpenJPA did not
>> correctly escape that column name in their schema builder libraries. The
>> same with various fields in Oracle or MySQL. I have been changing the
>> column names a number of times because of that, but later versions of the
>> specific ORM did fix those bugs so you could use the column or table name
>> that you wanted.
>>
>> So I rather think that this error is an issue/bug within OpenJPA and the
>> schema util that creates the database. I don't think that it is a
>> requirement of Apache Derby that you can't use certain strings as table or
>> column name, you simply need to correctly escape them.
>>
>> Sebastian
>>
>>
>>
>> 2013/2/9 Maxim Solodovnik 
>>
>>> I guess Derby has no "databases" and might already has table user
>>> (built-in)
>>> On Feb 9, 2013 9:44 AM, "seba.wag...@gmail.com" 
>>> wrote:
>>>
>>>> It might be possible to correctly put the name in quotes. I cannot
>>>> believe Derby allows no table named "user" at all.
>>>>
>>>> Sebastian
>>>> Am 08.02.2013 18:30 schrieb "Maxim Solodovnik" :
>>>>
>>>>> Hello Sebastian,
>>>>>
>>>>> It seems like OM is not working with derby DB anymore.
>>>>> It seems like it is impossible to create "user" table in derby DB.
>>>>>
>>>>> I believe we should choose another name for the DB table.
>>>>> I'm currently testing with name 'om_user', maybe you have better name
>>>>> in mind?
>>>>>
>>>>> --
>>>>> WBR
>>>>> Maxim aka solomax
>>>>>
>>>>
>>
>>
>> --
>> Sebastian Wagner
>> https://twitter.com/#!/dead_lock
>> http://www.webbase-design.de
>> http://www.wagner-sebastian.com
>> seba.wag...@gmail.com
>>
>
>
>
> --
> Sebastian Wagner
> https://twitter.com/#!/dead_lock
> http://www.webbase-design.de
> http://www.wagner-sebastian.com
> seba.wag...@gmail.com
>



-- 
WBR
Maxim aka solomax


Re: OpenJPA has issues with table name "user" and Apache Derby database

2013-02-09 Thread Maxim Solodovnik
Hello Jesse,
Thanks for the link!

Is there any option to tell OpenJPA to generate derby compatible SQL?


On Sat, Feb 9, 2013 at 8:11 PM, Jesse Farinacci  wrote:

> Greetings,
>
> On Sat, Feb 9, 2013 at 12:15 AM, seba.wag...@gmail.com
>  wrote:
> > we face an issue with OpenJPA 2.2.1 and Derby 10.8.2.2.
> > When there is a table "user" the schema is correctly created
> > with SynchronizeMappings.
> >
> > However making a query in the that database results in:
> > org.apache.openjpa.persistence.PersistenceException: Syntax error:
> > Encountered "user" at line 1, column 888.
>
> http://db.apache.org/derby/docs/10.8/ref/rrefkeywords29722.html
>
> -Jesse
>
> --
> There are 10 types of people in this world, those
> that can read binary and those that can not.
>



-- 
WBR
Maxim aka solomax


Re: error in recording after import

2013-02-09 Thread Maxim Solodovnik
I believe it is caused by minor issue in the test
give me the second I'll fix it


On Sun, Feb 10, 2013 at 8:57 AM, seba.wag...@gmail.com <
seba.wag...@gmail.com> wrote:

> If I comment out the delete action of the imported file I can see in my
> file system some strange files like:
>
> roomFiles\files\db6139abbf3e4525b3e5cf27f4b13904\db6139abbf3e4525b3e5cf27f4b13904.ods
>
> Seems like either the zip'ing or unzip'ing utility does not work proper.
> I am testing on Mac OSx 10.8.2
> and Java 1.6.0_37-b06-434-11M3909
>
> Does the same issue exist on other runtimes too?
>
> Sebastian
>
>
> 2013/2/10 seba.wag...@gmail.com 
>
> > ++ the same for the imported files of the File-Explorer.
> > There are entries in the database, that are assigned to the room_id 7 for
> > the imported user (was userId 1 in the backup file, will be user_id 2
> after
> > the import, when importing through the UI).
> > After the import, I logged in as this user, goto room with Id 7, drag and
> > drop the image and the other file to the whiteboard => both files are not
> > shown, just the "deleted" placeholder.
> >
> > There seems to be a serious issue in the file copy action.
> > Actually by looking at the file section I can see that zero of the files
> > from the backup have been copied from the backup to the corresponding
> > OpenMeetings sections.
> >
> > I guess all issues (recording, profile images and room files) have the
> > same root somewhere in the importer.
> >
> > Sebastian
> >
> >
> > 2013/2/10 seba.wag...@gmail.com 
> >
> > ++ the profile image is not shown in the UI for the imported user.
> >> According to the ZIP there is a profile image for the userId 2, but
> after
> >> the import, if you login as that user,
> >> this imported profile image is not shown, just the default placeholder.
> >>
> >>
> >> 2013/2/10 seba.wag...@gmail.com 
> >>
> >> I imported the backup_v_2_0_0_r1361497.zip
> >>>
> >>> The flvrecording is shown in the Recording UI,
> >>> but if you click on it, the preview image is not shown (deleted
> >>> placeholder instead) and if you click on play the following exception
> is
> >>> shown:
> >>>
> >>> baf3-df6530218516
> >>> [WARN] [NioProcessor-5] org.red5.server.stream.ProviderService -
> >>> Exception attempting to lookup file: flvRecording_1.flv
> >>> java.io.FileNotFoundException: ServletContext resource
> >>> [/streams/hibernate//flvRecording_1.flv] cannot be resolved to URL
> because
> >>> it does not exist
> >>>
> >>> Sebastian
> >>>
> >>> --
> >>> Sebastian Wagner
> >>> https://twitter.com/#!/dead_lock
> >>> http://www.webbase-design.de
> >>> http://www.wagner-sebastian.com
> >>> seba.wag...@gmail.com
> >>>
> >>
> >>
> >>
> >> --
> >> Sebastian Wagner
> >> https://twitter.com/#!/dead_lock
> >> http://www.webbase-design.de
> >> http://www.wagner-sebastian.com
> >> seba.wag...@gmail.com
> >>
> >
> >
> >
> > --
> > Sebastian Wagner
> > https://twitter.com/#!/dead_lock
> > http://www.webbase-design.de
> > http://www.wagner-sebastian.com
> > seba.wag...@gmail.com
> >
>
>
>
> --
> Sebastian Wagner
> https://twitter.com/#!/dead_lock
> http://www.webbase-design.de
> http://www.wagner-sebastian.com
> seba.wag...@gmail.com
>



-- 
WBR
Maxim aka solomax


Re: error in recording after import

2013-02-09 Thread Maxim Solodovnik
Committed revision 171.

I'll double-check things are now better


On Sun, Feb 10, 2013 at 8:59 AM, Maxim Solodovnik wrote:

> I believe it is caused by minor issue in the test
> give me the second I'll fix it
>
>
> On Sun, Feb 10, 2013 at 8:57 AM, seba.wag...@gmail.com <
> seba.wag...@gmail.com> wrote:
>
>> If I comment out the delete action of the imported file I can see in my
>> file system some strange files like:
>>
>> roomFiles\files\db6139abbf3e4525b3e5cf27f4b13904\db6139abbf3e4525b3e5cf27f4b13904.ods
>>
>> Seems like either the zip'ing or unzip'ing utility does not work proper.
>> I am testing on Mac OSx 10.8.2
>> and Java 1.6.0_37-b06-434-11M3909
>>
>> Does the same issue exist on other runtimes too?
>>
>> Sebastian
>>
>>
>> 2013/2/10 seba.wag...@gmail.com 
>>
>> > ++ the same for the imported files of the File-Explorer.
>> > There are entries in the database, that are assigned to the room_id 7
>> for
>> > the imported user (was userId 1 in the backup file, will be user_id 2
>> after
>> > the import, when importing through the UI).
>> > After the import, I logged in as this user, goto room with Id 7, drag
>> and
>> > drop the image and the other file to the whiteboard => both files are
>> not
>> > shown, just the "deleted" placeholder.
>> >
>> > There seems to be a serious issue in the file copy action.
>> > Actually by looking at the file section I can see that zero of the files
>> > from the backup have been copied from the backup to the corresponding
>> > OpenMeetings sections.
>> >
>> > I guess all issues (recording, profile images and room files) have the
>> > same root somewhere in the importer.
>> >
>> > Sebastian
>> >
>> >
>> > 2013/2/10 seba.wag...@gmail.com 
>> >
>> > ++ the profile image is not shown in the UI for the imported user.
>> >> According to the ZIP there is a profile image for the userId 2, but
>> after
>> >> the import, if you login as that user,
>> >> this imported profile image is not shown, just the default placeholder.
>> >>
>> >>
>> >> 2013/2/10 seba.wag...@gmail.com 
>> >>
>> >> I imported the backup_v_2_0_0_r1361497.zip
>> >>>
>> >>> The flvrecording is shown in the Recording UI,
>> >>> but if you click on it, the preview image is not shown (deleted
>> >>> placeholder instead) and if you click on play the following exception
>> is
>> >>> shown:
>> >>>
>> >>> baf3-df6530218516
>> >>> [WARN] [NioProcessor-5] org.red5.server.stream.ProviderService -
>> >>> Exception attempting to lookup file: flvRecording_1.flv
>> >>> java.io.FileNotFoundException: ServletContext resource
>> >>> [/streams/hibernate//flvRecording_1.flv] cannot be resolved to URL
>> because
>> >>> it does not exist
>> >>>
>> >>> Sebastian
>> >>>
>> >>> --
>> >>> Sebastian Wagner
>> >>> https://twitter.com/#!/dead_lock
>> >>> http://www.webbase-design.de
>> >>> http://www.wagner-sebastian.com
>> >>> seba.wag...@gmail.com
>> >>>
>> >>
>> >>
>> >>
>> >> --
>> >> Sebastian Wagner
>> >> https://twitter.com/#!/dead_lock
>> >> http://www.webbase-design.de
>> >> http://www.wagner-sebastian.com
>> >> seba.wag...@gmail.com
>> >>
>> >
>> >
>> >
>> > --
>> > Sebastian Wagner
>> > https://twitter.com/#!/dead_lock
>> > http://www.webbase-design.de
>> > http://www.wagner-sebastian.com
>> > seba.wag...@gmail.com
>> >
>>
>>
>>
>> --
>> Sebastian Wagner
>> https://twitter.com/#!/dead_lock
>> http://www.webbase-design.de
>> http://www.wagner-sebastian.com
>> seba.wag...@gmail.com
>>
>
>
>
> --
> WBR
> Maxim aka solomax
>



-- 
WBR
Maxim aka solomax


Re: Issues need to be sorted before release

2013-02-09 Thread Maxim Solodovnik
There is only 1 Joomla issue with the code contribution, this is why it is
in the list

I saw no issues related to cluster in the JIRA, this is why it is not in
the list
Can you create the issues, so we can sort it and see it is fit into the
time schedule?

The recordings in 1.7 and 1.8 are small, but I was sure it is no problem

@Vasiliy can you check if it has interview recordings or not

I'll add some basic asserts into JUnit test.



On Sun, Feb 10, 2013 at 4:41 AM, seba.wag...@gmail.com <
seba.wag...@gmail.com> wrote:

> I think you can move everything Joomla related, Joomla is a project at
> apache-extras.org.
> So setting any fix version is actually random from my point of view.
>
> I can see no recording files in the 1.8 and 1.7 backup files. They seem to
> be rather small, or exported without the files at all.
> Also they do not contain an interview recording. It would be good if both
> recording types are contained as they have different flags set.
>
> Once the import is done, for me its important not just to see the "import
> complete" message but to do some test, for example: control that there are
> really 2 users in the database, that there is a flvrecording. Control that
> there are 2 FLVRecordings, control that there is a private massage, control
> that there are really files in the recordings section and not just entries
> in the db that have no file.
> I don't know if the overall test will fail if there is an exception in the
> import somewhere. Or for example if the file operation does not detect the
> files.
> Basically the JUnit test should control the same things that you would to
> when you import a backup file:
> Goto the user administration check that the users are there, check the
> orgs, check the rooms, check that there are files in the file section and
> that those files exist (by draging something to the whiteboard), check that
> there are recordings and that those recordings do really exist (by playing
> something).
> Of course you can't check in JUnit by dragging a file to the whiteboard or
> playing in the recording UI, but you can check if the files do exist on the
> file-system with that id referenced in the database.
> So some assertTrue tests in the "TestOldBackups".
> Do you want me to write those tests?
>
> Sebastian
>
>
> 2013/2/10 seba.wag...@gmail.com 
>
> what about the cluster related changes that I plan to do.
>> Should they go into a separated branch or into trunk?
>>
>> Sebastian
>>
>>
>> 2013/2/9 Maxim Solodovnik 
>>
>>> 1) I'm currently trying to help Timur with SIP (only testing efforts)
>>> Current issue: 8kHz audio is seems to be hardcoded into red5phone and
>>> Timur is trying to enable at least 22kHz
>>>
>>> 2) I'm going to implement mailQ (the only big java issue in the list)
>>>
>>> 3) I can help you with modifying the build
>>>
>>> 4) After Vasiliy will creates the rest backup files, I'll add them to
>>> the build.properties and will close 446
>>>
>>> 5) I'll update Joomla plugin
>>>
>>>
>>> namely, mine seems to be:
>>> OPENMEETINGS-327
>>> OPENMEETINGS-446
>>> OPENMEETINGS-431
>>> OPENMEETINGS-528
>>> OPENMEETINGS-378 (or should we move this to 3.0 ?)
>>>
>>> I would love if you can handle:
>>> OPENMEETINGS-516
>>> OPENMEETINGS-475
>>> OPENMEETINGS-404 (or should we move this to 3.0 ?)
>>> OPENMEETINGS-377
>>>
>>> I can help you with:
>>> OPENMEETINGS-529
>>>
>>> I believe we should move OPENMEETINGS-270 to 3.0 just before the release
>>> build since it is very hard to reproduce/find the main cause
>>>
>>>
>>>
>>> On Sat, Feb 9, 2013 at 6:59 AM, seba.wag...@gmail.com <
>>> seba.wag...@gmail.com> wrote:
>>>
>>>> what is the list of issues to be fixed for Version 2.1 that you are
>>>> looking at currently?
>>>> I am searching for the AEC feature. That is only a change in the build
>>>> system from my point of view and could be possible to be resolved for
>>>> version 2.1.
>>>>
>>>> (including CC dev@)
>>>>
>>>> Sebastian
>>>>
>>>>
>>>> 2013/2/8 Maxim Solodovnik 
>>>>
>>>>> Hello Sebastian,
>>>>>
>>>>> can you please take a look at this list:
>>>>>
>>>>> https://issues.apache.org/jira/issues/?jql=project%20%3D%20OPENMEETINGS%20AND%20fixVersion%20%3D%20EMPTY%20AND%20status

Re: error in recording after import

2013-02-09 Thread Maxim Solodovnik
Backup files seems to be corrupted
It has junk instead of folders


On Sun, Feb 10, 2013 at 9:03 AM, Maxim Solodovnik wrote:

> Committed revision 171.
>
> I'll double-check things are now better
>
>
> On Sun, Feb 10, 2013 at 8:59 AM, Maxim Solodovnik wrote:
>
>> I believe it is caused by minor issue in the test
>> give me the second I'll fix it
>>
>>
>> On Sun, Feb 10, 2013 at 8:57 AM, seba.wag...@gmail.com <
>> seba.wag...@gmail.com> wrote:
>>
>>> If I comment out the delete action of the imported file I can see in my
>>> file system some strange files like:
>>>
>>> roomFiles\files\db6139abbf3e4525b3e5cf27f4b13904\db6139abbf3e4525b3e5cf27f4b13904.ods
>>>
>>> Seems like either the zip'ing or unzip'ing utility does not work proper.
>>> I am testing on Mac OSx 10.8.2
>>> and Java 1.6.0_37-b06-434-11M3909
>>>
>>> Does the same issue exist on other runtimes too?
>>>
>>> Sebastian
>>>
>>>
>>> 2013/2/10 seba.wag...@gmail.com 
>>>
>>> > ++ the same for the imported files of the File-Explorer.
>>> > There are entries in the database, that are assigned to the room_id 7
>>> for
>>> > the imported user (was userId 1 in the backup file, will be user_id 2
>>> after
>>> > the import, when importing through the UI).
>>> > After the import, I logged in as this user, goto room with Id 7, drag
>>> and
>>> > drop the image and the other file to the whiteboard => both files are
>>> not
>>> > shown, just the "deleted" placeholder.
>>> >
>>> > There seems to be a serious issue in the file copy action.
>>> > Actually by looking at the file section I can see that zero of the
>>> files
>>> > from the backup have been copied from the backup to the corresponding
>>> > OpenMeetings sections.
>>> >
>>> > I guess all issues (recording, profile images and room files) have the
>>> > same root somewhere in the importer.
>>> >
>>> > Sebastian
>>> >
>>> >
>>> > 2013/2/10 seba.wag...@gmail.com 
>>> >
>>> > ++ the profile image is not shown in the UI for the imported user.
>>> >> According to the ZIP there is a profile image for the userId 2, but
>>> after
>>> >> the import, if you login as that user,
>>> >> this imported profile image is not shown, just the default
>>> placeholder.
>>> >>
>>> >>
>>> >> 2013/2/10 seba.wag...@gmail.com 
>>> >>
>>> >> I imported the backup_v_2_0_0_r1361497.zip
>>> >>>
>>> >>> The flvrecording is shown in the Recording UI,
>>> >>> but if you click on it, the preview image is not shown (deleted
>>> >>> placeholder instead) and if you click on play the following
>>> exception is
>>> >>> shown:
>>> >>>
>>> >>> baf3-df6530218516
>>> >>> [WARN] [NioProcessor-5] org.red5.server.stream.ProviderService -
>>> >>> Exception attempting to lookup file: flvRecording_1.flv
>>> >>> java.io.FileNotFoundException: ServletContext resource
>>> >>> [/streams/hibernate//flvRecording_1.flv] cannot be resolved to URL
>>> because
>>> >>> it does not exist
>>> >>>
>>> >>> Sebastian
>>> >>>
>>> >>> --
>>> >>> Sebastian Wagner
>>> >>> https://twitter.com/#!/dead_lock
>>> >>> http://www.webbase-design.de
>>> >>> http://www.wagner-sebastian.com
>>> >>> seba.wag...@gmail.com
>>> >>>
>>> >>
>>> >>
>>> >>
>>> >> --
>>> >> Sebastian Wagner
>>> >> https://twitter.com/#!/dead_lock
>>> >> http://www.webbase-design.de
>>> >> http://www.wagner-sebastian.com
>>> >> seba.wag...@gmail.com
>>> >>
>>> >
>>> >
>>> >
>>> > --
>>> > Sebastian Wagner
>>> > https://twitter.com/#!/dead_lock
>>> > http://www.webbase-design.de
>>> > http://www.wagner-sebastian.com
>>> > seba.wag...@gmail.com
>>> >
>>>
>>>
>>>
>>> --
>>> Sebastian Wagner
>>> https://twitter.com/#!/dead_lock
>>> http://www.webbase-design.de
>>> http://www.wagner-sebastian.com
>>> seba.wag...@gmail.com
>>>
>>
>>
>>
>> --
>> WBR
>> Maxim aka solomax
>>
>
>
>
> --
> WBR
> Maxim aka solomax
>



-- 
WBR
Maxim aka solomax


Re: No foreign keys created by openJPA

2013-02-09 Thread Maxim Solodovnik
I set no ForeignKey annotations.


On Sun, Feb 10, 2013 at 5:19 AM, seba.wag...@gmail.com <
seba.wag...@gmail.com> wrote:

> @Maxim: Have you already done that locally or should I do that task?
>
> Sebastian
>
>
> 2013/2/10 seba.wag...@gmail.com 
>
> > Yes,
> >
> > from my point of view having:
> >
> >  > value="buildSchema(ForeignKeys=true)"/>
> >  > value="native(ForeignKeys=true)"/>
> >
> > or just:
> >
> > 
> >
> > has simply no effect at all.
> > Attributes with ManyToOne or OneToMany relations have no FKs created in
> > the database. Only Indices.
> > You have to actively annotate every single attribute with @ForeignKey.
> > There is no other way of telling OpenJPA to create a foreign key.
> > The docs also say not much about it:
> >
> >
> http://people.apache.org/~mikedd/nightly.builds/apache-openjpa-2.3.0-SNAPSHOT/docs/docbook/manual.html#ref_guide_mapping_synch
> >
> > You can enable or disable it. An attribute "(ForeignKeys=true)" seems to
> > be not known to the Synchronize mappings.
> > Maybe that would be something like a feature request:
> > "Automatically created ForeignKeys in runtime forward mapping for
> > @ManyToOne relations."
> >
> > In the meantime we will have to annotate every attribute with
> @ForeignKey.
> >
> > Sebastian
> >
> > 2013/2/7 Maxim Solodovnik 
> >
> >> I'm afraid the answer below mean we need to annotate everything
> explicitly
> >>
> >> -- Forwarded message --
> >> From: Kevin Sutter 
> >> Date: Wed, Feb 6, 2013 at 9:33 PM
> >> Subject: Re: No foreign keys created by openJPA
> >> To: Maxim Solodovnik 
> >> Cc: us...@openjpa.apache.org
> >>
> >>
> >> Hi guys,
> >> I didn't see the properties being used in the persistence.xml file that
> >> you
> >> posted...
> >>
> >> But, in any case, these properties are mainly used for reading foreign
> key
> >> information from the database.  During the table mapping processing,
> there
> >> may be some verification of foreign key constraints as well.  This
> allows
> >> OpenJPA to make more intelligent decisions when submitting SQL
> statements
> >> in batch to avoid constraint collisions.
> >>
> >> If you are looking for explicit foreign key specifications, then you'll
> >> probably have to use the @ForeignKey annotation.
> >>
> >> Hope this helps,
> >> Kevin
> >>
> >>
> >> On Tue, Feb 5, 2013 at 10:00 PM, Maxim Solodovnik  >> >wrote:
> >>
> >> > Hello Kevin,
> >> >
> >> > I just test both properties (added to the persistence.xml) on MySQL
> 5.5
> >> > (InnoDB)
> >> > and foreign keys were created only for the fields annotated with
> >> > @ForeignKey :(
> >> > Is it expected behavior?
> >> >
> >> > openJPA version is 2.2.1
> >> >
> >> > foreign keys were checked with following SQL:
> >> > SELECT * FROM information_schema.TABLE_CONSTRAINTS WHERE
> >> > information_schema.TABLE_CONSTRAINTS.CONSTRAINT_TYPE = 'FOREIGN KEY';
> >> >
> >> > properties were added to the following xml:
> >> >
> >> >
> >>
> https://svn.apache.org/repos/asf/openmeetings/trunk/singlewebapp/src/META-INF/mysql_persistence.xml
> >> >
> >> >
> >> > Thanks in advance for your help
> >> >
> >> >
> >> > On Tue, Feb 5, 2013 at 9:58 PM, Kevin Sutter 
> >> wrote:
> >> >
> >> >> Hi Sebastian,
> >> >> There are two ways to get the ForeignKeys automatically processed.
> >> >>
> >> >>  >> >> value="buildSchema(ForeignKeys=true)"/>
> >> >>
> >> >> Since you were already using a variation of this property, maybe this
> >> is
> >> >> the easiest mechanism.  A very similar capability is provided by the
> >> >> Schema
> >> >> Factory [1]:
> >> >>
> >> >>  >> >> value="native(ForeignKeys=true)"/>
> >> >>
> >> >> And, of course, there is the manual means of specifying the
> ForeignKeys
> >> >> via
> >> >> the @ForeignKey annotation.
> >> >>
> >> >> Hope 

Re: error in recording after import

2013-02-09 Thread Maxim Solodovnik
It was created by OM on windows
It is opened correctly under Windows
It is imported correctly under Windows (Windows XP if I'm not mistaken)

Files downloaded from svn are imported flawlwssly on my Windows 7 machine :(

but fails under my Ubuntu


On Sun, Feb 10, 2013 at 9:51 AM, seba.wag...@gmail.com <
seba.wag...@gmail.com> wrote:

> yes that is what I meant.
> But I don't know how it was produced.
> Did he maybe un-pack and re-pack the zips ?
> Cause if I run the backup util, it does correctly produce a ZIP. Unpacking
> it will create folders, not junk.
>
> Sebastian
>
>
>
>
> 2013/2/10 Maxim Solodovnik 
>
> > Backup files seems to be corrupted
> > It has junk instead of folders
> >
> >
> > On Sun, Feb 10, 2013 at 9:03 AM, Maxim Solodovnik  > >wrote:
> >
> > > Committed revision 171.
> > >
> > > I'll double-check things are now better
> > >
> > >
> > > On Sun, Feb 10, 2013 at 8:59 AM, Maxim Solodovnik <
> solomax...@gmail.com
> > >wrote:
> > >
> > >> I believe it is caused by minor issue in the test
> > >> give me the second I'll fix it
> > >>
> > >>
> > >> On Sun, Feb 10, 2013 at 8:57 AM, seba.wag...@gmail.com <
> > >> seba.wag...@gmail.com> wrote:
> > >>
> > >>> If I comment out the delete action of the imported file I can see in
> my
> > >>> file system some strange files like:
> > >>>
> > >>>
> >
> roomFiles\files\db6139abbf3e4525b3e5cf27f4b13904\db6139abbf3e4525b3e5cf27f4b13904.ods
> > >>>
> > >>> Seems like either the zip'ing or unzip'ing utility does not work
> > proper.
> > >>> I am testing on Mac OSx 10.8.2
> > >>> and Java 1.6.0_37-b06-434-11M3909
> > >>>
> > >>> Does the same issue exist on other runtimes too?
> > >>>
> > >>> Sebastian
> > >>>
> > >>>
> > >>> 2013/2/10 seba.wag...@gmail.com 
> > >>>
> > >>> > ++ the same for the imported files of the File-Explorer.
> > >>> > There are entries in the database, that are assigned to the
> room_id 7
> > >>> for
> > >>> > the imported user (was userId 1 in the backup file, will be
> user_id 2
> > >>> after
> > >>> > the import, when importing through the UI).
> > >>> > After the import, I logged in as this user, goto room with Id 7,
> drag
> > >>> and
> > >>> > drop the image and the other file to the whiteboard => both files
> are
> > >>> not
> > >>> > shown, just the "deleted" placeholder.
> > >>> >
> > >>> > There seems to be a serious issue in the file copy action.
> > >>> > Actually by looking at the file section I can see that zero of the
> > >>> files
> > >>> > from the backup have been copied from the backup to the
> corresponding
> > >>> > OpenMeetings sections.
> > >>> >
> > >>> > I guess all issues (recording, profile images and room files) have
> > the
> > >>> > same root somewhere in the importer.
> > >>> >
> > >>> > Sebastian
> > >>> >
> > >>> >
> > >>> > 2013/2/10 seba.wag...@gmail.com 
> > >>> >
> > >>> > ++ the profile image is not shown in the UI for the imported user.
> > >>> >> According to the ZIP there is a profile image for the userId 2,
> but
> > >>> after
> > >>> >> the import, if you login as that user,
> > >>> >> this imported profile image is not shown, just the default
> > >>> placeholder.
> > >>> >>
> > >>> >>
> > >>> >> 2013/2/10 seba.wag...@gmail.com 
> > >>> >>
> > >>> >> I imported the backup_v_2_0_0_r1361497.zip
> > >>> >>>
> > >>> >>> The flvrecording is shown in the Recording UI,
> > >>> >>> but if you click on it, the preview image is not shown (deleted
> > >>> >>> placeholder instead) and if you click on play the following
> > >>> exception is
> > >>> >>> shown:
> > >>> >>>
> > >>> >>> baf3-df6530

Re: error in recording after import

2013-02-09 Thread Maxim Solodovnik
I'm going to investigate this (and maybe simplify file import code)


On Sun, Feb 10, 2013 at 9:59 AM, Maxim Solodovnik wrote:

> It was created by OM on windows
> It is opened correctly under Windows
> It is imported correctly under Windows (Windows XP if I'm not mistaken)
>
> Files downloaded from svn are imported flawlwssly on my Windows 7 machine
> :(
>
> but fails under my Ubuntu
>
>
> On Sun, Feb 10, 2013 at 9:51 AM, seba.wag...@gmail.com <
> seba.wag...@gmail.com> wrote:
>
>> yes that is what I meant.
>> But I don't know how it was produced.
>> Did he maybe un-pack and re-pack the zips ?
>> Cause if I run the backup util, it does correctly produce a ZIP. Unpacking
>> it will create folders, not junk.
>>
>> Sebastian
>>
>>
>>
>>
>> 2013/2/10 Maxim Solodovnik 
>>
>> > Backup files seems to be corrupted
>> > It has junk instead of folders
>> >
>> >
>> > On Sun, Feb 10, 2013 at 9:03 AM, Maxim Solodovnik > > >wrote:
>> >
>> > > Committed revision 171.
>> > >
>> > > I'll double-check things are now better
>> > >
>> > >
>> > > On Sun, Feb 10, 2013 at 8:59 AM, Maxim Solodovnik <
>> solomax...@gmail.com
>> > >wrote:
>> > >
>> > >> I believe it is caused by minor issue in the test
>> > >> give me the second I'll fix it
>> > >>
>> > >>
>> > >> On Sun, Feb 10, 2013 at 8:57 AM, seba.wag...@gmail.com <
>> > >> seba.wag...@gmail.com> wrote:
>> > >>
>> > >>> If I comment out the delete action of the imported file I can see
>> in my
>> > >>> file system some strange files like:
>> > >>>
>> > >>>
>> >
>> roomFiles\files\db6139abbf3e4525b3e5cf27f4b13904\db6139abbf3e4525b3e5cf27f4b13904.ods
>> > >>>
>> > >>> Seems like either the zip'ing or unzip'ing utility does not work
>> > proper.
>> > >>> I am testing on Mac OSx 10.8.2
>> > >>> and Java 1.6.0_37-b06-434-11M3909
>> > >>>
>> > >>> Does the same issue exist on other runtimes too?
>> > >>>
>> > >>> Sebastian
>> > >>>
>> > >>>
>> > >>> 2013/2/10 seba.wag...@gmail.com 
>> > >>>
>> > >>> > ++ the same for the imported files of the File-Explorer.
>> > >>> > There are entries in the database, that are assigned to the
>> room_id 7
>> > >>> for
>> > >>> > the imported user (was userId 1 in the backup file, will be
>> user_id 2
>> > >>> after
>> > >>> > the import, when importing through the UI).
>> > >>> > After the import, I logged in as this user, goto room with Id 7,
>> drag
>> > >>> and
>> > >>> > drop the image and the other file to the whiteboard => both files
>> are
>> > >>> not
>> > >>> > shown, just the "deleted" placeholder.
>> > >>> >
>> > >>> > There seems to be a serious issue in the file copy action.
>> > >>> > Actually by looking at the file section I can see that zero of the
>> > >>> files
>> > >>> > from the backup have been copied from the backup to the
>> corresponding
>> > >>> > OpenMeetings sections.
>> > >>> >
>> > >>> > I guess all issues (recording, profile images and room files) have
>> > the
>> > >>> > same root somewhere in the importer.
>> > >>> >
>> > >>> > Sebastian
>> > >>> >
>> > >>> >
>> > >>> > 2013/2/10 seba.wag...@gmail.com 
>> > >>> >
>> > >>> > ++ the profile image is not shown in the UI for the imported user.
>> > >>> >> According to the ZIP there is a profile image for the userId 2,
>> but
>> > >>> after
>> > >>> >> the import, if you login as that user,
>> > >>> >> this imported profile image is not shown, just the default
>> > >>> placeholder.
>> > >>> >>
>> > >>> >>
>> >

Re: No foreign keys created by openJPA

2013-02-09 Thread Maxim Solodovnik
I saw your commit, great job :)


On Sun, Feb 10, 2013 at 9:45 AM, seba.wag...@gmail.com <
seba.wag...@gmail.com> wrote:

> sorry plz synchronize.
> I have done that now already.
>
> Sebastian
>
>
> 2013/2/10 Maxim Solodovnik 
>
> > I set no ForeignKey annotations.
> >
> >
> > On Sun, Feb 10, 2013 at 5:19 AM, seba.wag...@gmail.com <
> > seba.wag...@gmail.com> wrote:
> >
> > > @Maxim: Have you already done that locally or should I do that task?
> > >
> > > Sebastian
> > >
> > >
> > > 2013/2/10 seba.wag...@gmail.com 
> > >
> > > > Yes,
> > > >
> > > > from my point of view having:
> > > >
> > > >  > > > value="buildSchema(ForeignKeys=true)"/>
> > > >  > > > value="native(ForeignKeys=true)"/>
> > > >
> > > > or just:
> > > >
> > > >  value="buildSchema"/>
> > > >
> > > > has simply no effect at all.
> > > > Attributes with ManyToOne or OneToMany relations have no FKs created
> in
> > > > the database. Only Indices.
> > > > You have to actively annotate every single attribute with
> @ForeignKey.
> > > > There is no other way of telling OpenJPA to create a foreign key.
> > > > The docs also say not much about it:
> > > >
> > > >
> > >
> >
> http://people.apache.org/~mikedd/nightly.builds/apache-openjpa-2.3.0-SNAPSHOT/docs/docbook/manual.html#ref_guide_mapping_synch
> > > >
> > > > You can enable or disable it. An attribute "(ForeignKeys=true)" seems
> > to
> > > > be not known to the Synchronize mappings.
> > > > Maybe that would be something like a feature request:
> > > > "Automatically created ForeignKeys in runtime forward mapping for
> > > > @ManyToOne relations."
> > > >
> > > > In the meantime we will have to annotate every attribute with
> > > @ForeignKey.
> > > >
> > > > Sebastian
> > > >
> > > > 2013/2/7 Maxim Solodovnik 
> > > >
> > > >> I'm afraid the answer below mean we need to annotate everything
> > > explicitly
> > > >>
> > > >> -- Forwarded message --
> > > >> From: Kevin Sutter 
> > > >> Date: Wed, Feb 6, 2013 at 9:33 PM
> > > >> Subject: Re: No foreign keys created by openJPA
> > > >> To: Maxim Solodovnik 
> > > >> Cc: us...@openjpa.apache.org
> > > >>
> > > >>
> > > >> Hi guys,
> > > >> I didn't see the properties being used in the persistence.xml file
> > that
> > > >> you
> > > >> posted...
> > > >>
> > > >> But, in any case, these properties are mainly used for reading
> foreign
> > > key
> > > >> information from the database.  During the table mapping processing,
> > > there
> > > >> may be some verification of foreign key constraints as well.  This
> > > allows
> > > >> OpenJPA to make more intelligent decisions when submitting SQL
> > > statements
> > > >> in batch to avoid constraint collisions.
> > > >>
> > > >> If you are looking for explicit foreign key specifications, then
> > you'll
> > > >> probably have to use the @ForeignKey annotation.
> > > >>
> > > >> Hope this helps,
> > > >> Kevin
> > > >>
> > > >>
> > > >> On Tue, Feb 5, 2013 at 10:00 PM, Maxim Solodovnik <
> > solomax...@gmail.com
> > > >> >wrote:
> > > >>
> > > >> > Hello Kevin,
> > > >> >
> > > >> > I just test both properties (added to the persistence.xml) on
> MySQL
> > > 5.5
> > > >> > (InnoDB)
> > > >> > and foreign keys were created only for the fields annotated with
> > > >> > @ForeignKey :(
> > > >> > Is it expected behavior?
> > > >> >
> > > >> > openJPA version is 2.2.1
> > > >> >
> > > >> > foreign keys were checked with following SQL:
> > > >> > SELECT * FROM information_schema.TABLE_CONSTRAINTS WHERE
> > > >> > information_schema.TABLE_CONSTRAINTS.CONSTRAINT_TYPE = 'FOREIGN

Re: error in recording after import

2013-02-09 Thread Maxim Solodovnik
I'll take care of this on Monday
Thanks for investigation :)


On Sun, Feb 10, 2013 at 10:23 AM, seba.wag...@gmail.com <
seba.wag...@gmail.com> wrote:

> I would suggest:
> We will use "/" and replace the "\" in the path  on windows machines in the
> future when we create the ZIP.
>
> And we could include a little hook in the BackupImport file that does a
> check in the ZIP file of there is any "\" in the path. If yes, we repack
> the ZIP with "/" in the path as File.seperator and continue the import with
> that ZIP file.
>
> What do you think?
>
> Sebastian
>
>
> 2013/2/10 seba.wag...@gmail.com 
>
> > I think our issue is the same as described here:
> >
> >
> http://stackoverflow.com/questions/2549766/create-zip-file-in-windows-and-extract-zip-file-in-linux
> >
> > When you unpack the file you can see that the delimiter between files and
> > folders is "\"
> > as this is the local File.separator on windows.
> > Linux and OSx will not understand that this is a directory.
> >
> > On windows in Line 571 at BackupExport we are using "getCanonicalPath", I
> > guess this would return the path with "\" inside of it.
> > Its a shame that java.io.File doesn't care if the delimiter is "/" or "\"
> > while java.util.zip does.
> > That is shitty :(
> >
> > Sebastian
> >
> >
> > 2013/2/10 seba.wag...@gmail.com 
> >
> > Well I guess the error or issue must be in those two methods:
> >> public void writeZipFile(File directoryToZip, List fileList,
> >> FileOutputStream fos) {
> >> .
> >> }
> >>
> >> public void addToZip(File directoryToZip, File file, ZipOutputStream
> >> zos)
> >> throws FileNotFoundException, IOException {
> >>     .....
> >> }
> >>
> >> That write the ZIP file. Those must contain something platform specific.
> >> Or the java.util.zip.* has a platform dependent bug.
> >>
> >> Sebastian
> >>
> >>
> >> 2013/2/10 Maxim Solodovnik 
> >>
> >>> I'm going to investigate this (and maybe simplify file import code)
> >>>
> >>>
> >>> On Sun, Feb 10, 2013 at 9:59 AM, Maxim Solodovnik <
> solomax...@gmail.com
> >>> >wrote:
> >>>
> >>> > It was created by OM on windows
> >>> > It is opened correctly under Windows
> >>> > It is imported correctly under Windows (Windows XP if I'm not
> mistaken)
> >>> >
> >>> > Files downloaded from svn are imported flawlwssly on my Windows 7
> >>> machine
> >>> > :(
> >>> >
> >>> > but fails under my Ubuntu
> >>> >
> >>> >
> >>> > On Sun, Feb 10, 2013 at 9:51 AM, seba.wag...@gmail.com <
> >>> > seba.wag...@gmail.com> wrote:
> >>> >
> >>> >> yes that is what I meant.
> >>> >> But I don't know how it was produced.
> >>> >> Did he maybe un-pack and re-pack the zips ?
> >>> >> Cause if I run the backup util, it does correctly produce a ZIP.
> >>> Unpacking
> >>> >> it will create folders, not junk.
> >>> >>
> >>> >> Sebastian
> >>> >>
> >>> >>
> >>> >>
> >>> >>
> >>> >> 2013/2/10 Maxim Solodovnik 
> >>> >>
> >>> >> > Backup files seems to be corrupted
> >>> >> > It has junk instead of folders
> >>> >> >
> >>> >> >
> >>> >> > On Sun, Feb 10, 2013 at 9:03 AM, Maxim Solodovnik <
> >>> solomax...@gmail.com
> >>> >> > >wrote:
> >>> >> >
> >>> >> > > Committed revision 171.
> >>> >> > >
> >>> >> > > I'll double-check things are now better
> >>> >> > >
> >>> >> > >
> >>> >> > > On Sun, Feb 10, 2013 at 8:59 AM, Maxim Solodovnik <
> >>> >> solomax...@gmail.com
> >>> >> > >wrote:
> >>> >> > >
> >>> >> > >> I believe it is caused by minor issue in the test
> >>> >> > >> give me the second I'll fix it
> >>&g

Re: error in recording after import

2013-02-09 Thread Maxim Solodovnik
I believe the problem is:
1) we do not put entries for folders into zip file
2) we are using: file.getCanonicalPath() while adding files to the archive

I'll take care of this later
Then I'll try to fix zip file reading



On Sun, Feb 10, 2013 at 10:35 AM, Maxim Solodovnik wrote:

> I'll take care of this on Monday
> Thanks for investigation :)
>
>
> On Sun, Feb 10, 2013 at 10:23 AM, seba.wag...@gmail.com <
> seba.wag...@gmail.com> wrote:
>
>> I would suggest:
>> We will use "/" and replace the "\" in the path  on windows machines in
>> the
>> future when we create the ZIP.
>>
>> And we could include a little hook in the BackupImport file that does a
>> check in the ZIP file of there is any "\" in the path. If yes, we repack
>> the ZIP with "/" in the path as File.seperator and continue the import
>> with
>> that ZIP file.
>>
>> What do you think?
>>
>> Sebastian
>>
>>
>> 2013/2/10 seba.wag...@gmail.com 
>>
>> > I think our issue is the same as described here:
>> >
>> >
>> http://stackoverflow.com/questions/2549766/create-zip-file-in-windows-and-extract-zip-file-in-linux
>> >
>> > When you unpack the file you can see that the delimiter between files
>> and
>> > folders is "\"
>> > as this is the local File.separator on windows.
>> > Linux and OSx will not understand that this is a directory.
>> >
>> > On windows in Line 571 at BackupExport we are using "getCanonicalPath",
>> I
>> > guess this would return the path with "\" inside of it.
>> > Its a shame that java.io.File doesn't care if the delimiter is "/" or
>> "\"
>> > while java.util.zip does.
>> > That is shitty :(
>> >
>> > Sebastian
>> >
>> >
>> > 2013/2/10 seba.wag...@gmail.com 
>> >
>> > Well I guess the error or issue must be in those two methods:
>> >> public void writeZipFile(File directoryToZip, List fileList,
>> >> FileOutputStream fos) {
>> >> .
>> >> }
>> >>
>> >>     public void addToZip(File directoryToZip, File file,
>> ZipOutputStream
>> >> zos)
>> >> throws FileNotFoundException, IOException {
>> >> .
>> >> }
>> >>
>> >> That write the ZIP file. Those must contain something platform
>> specific.
>> >> Or the java.util.zip.* has a platform dependent bug.
>> >>
>> >> Sebastian
>> >>
>> >>
>> >> 2013/2/10 Maxim Solodovnik 
>> >>
>> >>> I'm going to investigate this (and maybe simplify file import code)
>> >>>
>> >>>
>> >>> On Sun, Feb 10, 2013 at 9:59 AM, Maxim Solodovnik <
>> solomax...@gmail.com
>> >>> >wrote:
>> >>>
>> >>> > It was created by OM on windows
>> >>> > It is opened correctly under Windows
>> >>> > It is imported correctly under Windows (Windows XP if I'm not
>> mistaken)
>> >>> >
>> >>> > Files downloaded from svn are imported flawlwssly on my Windows 7
>> >>> machine
>> >>> > :(
>> >>> >
>> >>> > but fails under my Ubuntu
>> >>> >
>> >>> >
>> >>> > On Sun, Feb 10, 2013 at 9:51 AM, seba.wag...@gmail.com <
>> >>> > seba.wag...@gmail.com> wrote:
>> >>> >
>> >>> >> yes that is what I meant.
>> >>> >> But I don't know how it was produced.
>> >>> >> Did he maybe un-pack and re-pack the zips ?
>> >>> >> Cause if I run the backup util, it does correctly produce a ZIP.
>> >>> Unpacking
>> >>> >> it will create folders, not junk.
>> >>> >>
>> >>> >> Sebastian
>> >>> >>
>> >>> >>
>> >>> >>
>> >>> >>
>> >>> >> 2013/2/10 Maxim Solodovnik 
>> >>> >>
>> >>> >> > Backup files seems to be corrupted
>> >>> >> > It has junk instead of folders
>> >>> >> >
>> >>> >> >
>> >>> >> > On Sun, Feb 10, 2013 at 9:03 AM, Maxim Solodovnik &

Re: svn commit: r1444587 - in /openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/servlet/outputhandler: BackupExport.java BackupImportController.java

2013-02-10 Thread Maxim Solodovnik
I'm going to test the export right now :)
it was too late yesterday (~3 AM) :)))


On Mon, Feb 11, 2013 at 3:43 AM, seba.wag...@gmail.com <
seba.wag...@gmail.com> wrote:

> @Maxim: It seems to work fine for me now on the importing side.
> I can't really test the export, as I have no windows machine. However,
> theoretically "wrong" windows export should
>  work fine to import too. We will find that out when we have the import
> automatized via JUnit and integrated it into our nightly build easily.
>
> Great work btw :)
> Cheers!
> Sebastian
>
>
> 2013/2/11 
>
> Author: solomax
>> Date: Sun Feb 10 19:34:47 2013
>> New Revision: 1444587
>>
>> URL: http://svn.apache.org/r1444587
>> Log:
>> Import: both export and import should work as expected now (requires
>> additional testing)
>>
>> Modified:
>>
>> openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/servlet/outputhandler/BackupExport.java
>>
>> openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/servlet/outputhandler/BackupImportController.java
>>
>> Modified:
>> openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/servlet/outputhandler/BackupExport.java
>> URL:
>> http://svn.apache.org/viewvc/openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/servlet/outputhandler/BackupExport.java?rev=1444587&r1=1444586&r2=1444587&view=diff
>>
>> ==
>> ---
>> openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/servlet/outputhandler/BackupExport.java
>> (original)
>> +++
>> openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/servlet/outputhandler/BackupExport.java
>> Sun Feb 10 19:34:47 2013
>> @@ -19,12 +19,11 @@
>>  package org.apache.openmeetings.servlet.outputhandler;
>>
>>  import java.io.File;
>> -import java.io.FileNotFoundException;
>>  import java.io.FileOutputStream;
>>  import java.io.IOException;
>>  import java.io.OutputStream;
>>  import java.io.OutputStreamWriter;
>> -import java.util.ArrayList;
>> +import java.net.URI;
>>  import java.util.Date;
>>  import java.util.List;
>>  import java.util.zip.ZipEntry;
>> @@ -74,8 +73,8 @@ import org.apache.openmeetings.persisten
>>  import org.apache.openmeetings.persistence.beans.flvrecord.FlvRecording;
>>  import org.apache.openmeetings.persistence.beans.poll.PollType;
>>  import org.apache.openmeetings.persistence.beans.poll.RoomPoll;
>> -import org.apache.openmeetings.persistence.beans.room.RoomType;
>>  import org.apache.openmeetings.persistence.beans.room.Room;
>> +import org.apache.openmeetings.persistence.beans.room.RoomType;
>>  import org.apache.openmeetings.persistence.beans.user.PrivateMessage;
>>  import org.apache.openmeetings.persistence.beans.user.State;
>>  import org.apache.openmeetings.persistence.beans.user.User;
>> @@ -383,12 +382,7 @@ public class BackupExport {
>> FileHelper.copyRec(sourceDirRec, targetDirRec);
>> }
>>
>> -   List fileList = new ArrayList();
>> -   log.debug("---Getting references to all files in: "
>> -   + backup_dir.getCanonicalPath());
>> -   getAllFiles(backup_dir, fileList);
>> -   log.debug("---Creating zip file");
>> -   writeZipFile(backup_dir, fileList, new
>> FileOutputStream(filePath));
>> +   writeZipDir(backup_dir, filePath);
>> log.debug("---Done");
>> }
>>
>> @@ -524,57 +518,45 @@ public class BackupExport {
>> }
>> }
>>
>> -   public void getAllFiles(File dir, List fileList) throws
>> IOException {
>> +   private void writeZipDir(File directoryToZip, File f) throws
>> IOException {
>> +   FileOutputStream fos = null;
>> +   ZipOutputStream zos = null;
>> try {
>> -   File[] files = dir.listFiles();
>> -   for (File file : files) {
>> -   fileList.add(file);
>> -   if (file.isDirectory()) {
>> -   // log.debug("directory:" +
>> file.getCanonicalPath());
>> -   getAllFiles(file, fileList);
>> -   } else {
>> -   // log.debug(" file:" +
>> file.getCanonicalPath());
>> +   fos = new FileOutputStream(f);
>> +   zos = new ZipOutputStream(fos);
>> +
>> +   writeZipDir(directoryToZip.toURI(),
>> directoryToZip, zos);
>> +   } finally {
>> +   if (zos != null) {
>> +   try {
>> +   zos.close();
>> +   } catch (IOException e) {
>> +   log.debug("Enexpected error while
>> closing ZipOutputStream", e);
>> }
>> }
>> -  

Re: svn commit: r1444703 - /openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/persistence/beans/sip/asterisk/AsteriskSipUser.java

2013-02-11 Thread Maxim Solodovnik
It was really weird

without "nat=yes" user setting I can hear everybody in the room, but nobody
can hear me :(

The only issue with the OM now is:
if there is lot of users lots of users in the room (5-7) some of them can't
hear some others until "reload" of streams on the client.
Timur told me that according to the log of red5sip there is weird queue of
method calls: newStream gets called twice. Additionally if user has stream
with id 24 and select "reload" the following methods are gets called:
closeStream(25) // NOTE 25 not 24
then
newStream(25)

Maybe you can say what is wrong?



On Tue, Feb 12, 2013 at 2:52 AM, seba.wag...@gmail.com <
seba.wag...@gmail.com> wrote:

> Hi Maxim,
>
> What does two way sound mean?
> Is it a Sip specific thing or do you open several streams?
> Just curious...
>
> THX!
> Seb
> Am 11.02.2013 23:02 schrieb :
>
> > Author: solomax
> > Date: Mon Feb 11 10:01:43 2013
> > New Revision: 1444703
> >
> > URL: http://svn.apache.org/r1444703
> > Log:
> > SIP: nat column is added to sipusers table to enable 2-way sound in SIP.
> >
> > Modified:
> >
> >
> openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/persistence/beans/sip/asterisk/AsteriskSipUser.java
> >
> > Modified:
> >
> openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/persistence/beans/sip/asterisk/AsteriskSipUser.java
> > URL:
> >
> http://svn.apache.org/viewvc/openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/persistence/beans/sip/asterisk/AsteriskSipUser.java?rev=1444703&r1=1444702&r2=1444703&view=diff
> >
> >
> ==
> > ---
> >
> openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/persistence/beans/sip/asterisk/AsteriskSipUser.java
> > (original)
> > +++
> >
> openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/persistence/beans/sip/asterisk/AsteriskSipUser.java
> > Mon Feb 11 10:01:43 2013
> > @@ -98,6 +98,10 @@ public class AsteriskSipUser implements
> > @Element(data=true, required = false)
> > private String md5secret;
> >
> > +   @Column(name = "nat", nullable=false)
> > +   @Element(data=true, required = false)
> > +   private String nat = "yes";
> > +
> > public long getId() {
> > return id;
> > }
> > @@ -217,4 +221,12 @@ public class AsteriskSipUser implements
> > public void setMd5secret(String md5secret) {
> > this.md5secret = md5secret;
> > }
> > +
> > +   public String getNat() {
> > +   return nat;
> > +   }
> > +
> > +   public void setNat(String nat) {
> > +   this.nat = nat;
> > +   }
> >  }
> > \ No newline at end of file
> >
> >
> >
>



-- 
WBR
Maxim aka solomax


Re: Minor bug in backup import in fileexploreritem

2013-02-11 Thread Maxim Solodovnik
Thanks!
I'll take care of it


On Tue, Feb 12, 2013 at 5:02 AM, seba.wag...@gmail.com <
seba.wag...@gmail.com> wrote:

> I found a minor bug in the import of backups:
>
> FileExplorerItems are assigned to the wrong room_id.
>
> It does not matter in that case as those files have been assigned to the
> private section of a user (and the user was converted to the new user_id
> correctly).
>
> It can be reproduced when you import the backup:
> backup_v_2_0_0_r1361497.zip
>
> and then check the table fileexploreritem.
> The imported items are all assigned to the room_id 7. But the room_id 7
> existed already before the import. So this id is not correctly converted to
> a the room_id of the imported room.
>
> Sebastian
> --
> Sebastian Wagner
> https://twitter.com/#!/dead_lock
> http://www.webbase-design.de
> http://www.wagner-sebastian.com
> seba.wag...@gmail.com
>



-- 
WBR
Maxim aka solomax


Re: Minor bug in backup import in fileexploreritem

2013-02-12 Thread Maxim Solodovnik
Fixed: Committed revision 1445102.


On Tue, Feb 12, 2013 at 7:34 AM, Maxim Solodovnik wrote:

> Thanks!
> I'll take care of it
>
>
> On Tue, Feb 12, 2013 at 5:02 AM, seba.wag...@gmail.com <
> seba.wag...@gmail.com> wrote:
>
>> I found a minor bug in the import of backups:
>>
>> FileExplorerItems are assigned to the wrong room_id.
>>
>> It does not matter in that case as those files have been assigned to the
>> private section of a user (and the user was converted to the new user_id
>> correctly).
>>
>> It can be reproduced when you import the backup:
>> backup_v_2_0_0_r1361497.zip
>>
>> and then check the table fileexploreritem.
>> The imported items are all assigned to the room_id 7. But the room_id 7
>> existed already before the import. So this id is not correctly converted
>> to
>> a the room_id of the imported room.
>>
>> Sebastian
>> --
>> Sebastian Wagner
>> https://twitter.com/#!/dead_lock
>> http://www.webbase-design.de
>> http://www.wagner-sebastian.com
>> seba.wag...@gmail.com
>>
>
>
>
> --
> WBR
> Maxim aka solomax
>



-- 
WBR
Maxim aka solomax


Re: Upcoming OM release

2013-02-12 Thread Maxim Solodovnik
Only 10 issues remains :)


On Thu, Feb 7, 2013 at 4:26 PM, Maxim Solodovnik wrote:

> OK
> Here is the issues list:
>
>
> https://issues.apache.org/jira/issues/?jql=project%20%3D%20OPENMEETINGS%20AND%20fixVersion%20%3D%20%222.1%20Apache%20Release%22%20AND%20status%20in%20(Open%2C%20%22In%20Progress%22%2C%20Reopened%2C%20Resolved)
>
> 22 issues (keep growing since I'm sorting issues currently having no "Fix
> Version" set)
>
>
>
> On Thu, Feb 7, 2013 at 12:43 PM, seba.wag...@gmail.com <
> seba.wag...@gmail.com> wrote:
>
>> Great work, especially in our Jira, we have so many issues, its easy to
>> loose control of it!
>>
>> Sebastian
>>
>>
>> 2013/2/7 Maxim Solodovnik 
>>
>>> Dear All,
>>>
>>> since nobody vote against me, I'm gonna be Release manager of OM :)
>>> It is almost 7 months was passed since last release :(
>>>
>>> This is why I would like to set upcoming release date to the beginning
>>> of March.
>>> To achieve this challenging task I would like to claim Feature Freeze!
>>>
>>> In my next email I'll send the list of issues currently blocking the
>>> release and going to send updates to this list regularly.
>>>
>>> Everybody welcome to add/remove issues to the list.
>>> All other issues + all feature requests/improvements will be moved to
>>> the 3.0 (not sure yet if we going to release 2.2)
>>>
>>>
>>> --
>>> WBR
>>> Maxim aka solomax
>>>
>>
>>
>>
>> --
>> Sebastian Wagner
>> https://twitter.com/#!/dead_lock
>> http://www.webbase-design.de
>> http://www.wagner-sebastian.com
>> seba.wag...@gmail.com
>>
>
>
>
> --
> WBR
> Maxim aka solomax
>



-- 
WBR
Maxim aka solomax


Issue with OM per user streams

2013-02-12 Thread Maxim Solodovnik
Hello Sebastian,

sorry for double post, but I would like to gain your attention at the
following problem:


if there is lot of users lots of users in the room (5-7) some of them can't
hear some others until "reload" of streams on the client.
Timur told me that according to the log of red5sip there is weird queue of
method calls: newStream gets called twice. Additionally if user has stream
with id 24 and select "reload" the following methods are gets called:
closeStream(25) // NOTE 25 not 24
then
newStream(25)

Maybe you can say what is wrong?

-- 
WBR
Maxim aka solomax


Re: create new organization/usergroup

2013-02-14 Thread Maxim Solodovnik
I would like to remind about "feature freeze" period we currently have ...
To prepare release we should stop adding new features and perform heavy
refactorings
On Feb 15, 2013 7:06 AM, "seba.wag...@gmail.com" 
wrote:

> Hi Vieri,
>
> sorry but I can't apply that patch 1:1. If you add a new property to the
> admin shell installer, the same option should be available to the
> web-installer (through the Install-Servlet). That is the same for all
> options during installation. The admin installer from command line is only
> an alternative to the Web installer. The only exception for that is the
> backup (as you can install that way without duplicating the user_id 1 that
> you would need if you install via web-installer + goto Admin > Backup and
> run the backup import).
>
> If you create a patch, please right click in Eclipse on the top project and
> make a patch with the project root as reference. Not for each file (some
> subversion plugin will even include binary this way).
>
> If added a WebService call in the UserWebService:
> http://openmeetings.apache.org/UserService.html#addOrganisation
>
> Sebastian
>
>
> 2013/2/15 seba.wag...@gmail.com 
>
> > Is it a SQL? Cause that will not work. You would need to restart red5
> > after each query (and shut down before the query is executed)
> >
> > Sebastian
> > Am 15.02.2013 09:51 schrieb "Vieri" :
> >
> > Re-attaching the patch as it didn't seem to go through...
> >>
> >> --- On Thu, 2/14/13, Vieri  wrote:
> >>
> >> > Hi,
> >> >
> >> > Attaching a quick patch so an admin can create additional
> >> > user groups from the command line.
> >> > Just a thought but maybe the admins could find this useful.
> >> >
> >> > Best option would be to do it via SOAP calls though...
> >> >
> >> > Vieri
> >> >
> >> > --- On Thu, 2/14/13, Vieri 
> >> > wrote:
> >> >
> >> > > Other than using the web UI of
> >> > > course...
> >> > >
> >> > > --- On Thu, 2/14/13, Vieri 
> >> > > wrote:
> >> > >
> >> > > > Hi,
> >> > > >
> >> > > > What is the correct way to create a new
> >> > > organization/user
> >> > > > group?
> >> > > >
> >> > > > Should I simply insert it directly in the
> >> > database
> >> > > (table
> >> > > > 'organisation') or is there a specific SOAP call
> >> > for
> >> > > this?
> >> > > >
> >> > > > Thanks,
> >> > > >
> >> > > > Vieri
> >> > > >
> >> > > >
> >> > >
> >
> >
>
>
> --
> Sebastian Wagner
> https://twitter.com/#!/dead_lock
> http://www.webbase-design.de
> http://www.wagner-sebastian.com
> seba.wag...@gmail.com
>


Re: create new organization/usergroup

2013-02-14 Thread Maxim Solodovnik
Maybe It is better to add base class to each group of such classes i.e.
BaseWebServiceFacade, BaseVelosityServlet extends VelocityViewServlet etc.
And put the code like into them:

public static  T getBean(Class clazz) {
if (ScopeApplicationAdapter.initComplete) {
ApplicationContext context =
WebApplicationContextUtils.getWebApplicationContext(get().getServletContext());
return context.getBean(clazz);
}
return null;
}

I'll try to fix initComplete today


On Fri, Feb 15, 2013 at 7:30 AM, seba.wag...@gmail.com <
seba.wag...@gmail.com> wrote:

> That is true.
> I would like to do one more refactoring :)
>
> I would like to fix all Servlets that load a Bean by a String to load it by
> the class reference.
>
> Example, replace:
> ApplicationContext context = WebApplicationContextUtils
> .getWebApplicationContext(getServletContext());
> return (SessiondataDao) context.getBean("sessionManagement");
>
>
> With:
> return WebApplicationContextUtils
> .getWebApplicationContext(getServletContext())
> .getBean(SessiondataDao.class);
>
> The big advantage is that there is no "bean-name-bundling", so you can
> rename the Beans name in the application context and refactor the code,
> Eclipse will take care about references.
> Currently you would need to do a File based search+replace and fix every
> file manually if you rename the Spring bean.
>
> Is that okay if I commit that change to trunk?
>
> Sebastian
>
>
>
> 2013/2/15 Maxim Solodovnik 
>
> > I would like to remind about "feature freeze" period we currently have
> ...
> > To prepare release we should stop adding new features and perform heavy
> > refactorings
> > On Feb 15, 2013 7:06 AM, "seba.wag...@gmail.com" 
> > wrote:
> >
> > > Hi Vieri,
> > >
> > > sorry but I can't apply that patch 1:1. If you add a new property to
> the
> > > admin shell installer, the same option should be available to the
> > > web-installer (through the Install-Servlet). That is the same for all
> > > options during installation. The admin installer from command line is
> > only
> > > an alternative to the Web installer. The only exception for that is the
> > > backup (as you can install that way without duplicating the user_id 1
> > that
> > > you would need if you install via web-installer + goto Admin > Backup
> and
> > > run the backup import).
> > >
> > > If you create a patch, please right click in Eclipse on the top project
> > and
> > > make a patch with the project root as reference. Not for each file
> (some
> > > subversion plugin will even include binary this way).
> > >
> > > If added a WebService call in the UserWebService:
> > > http://openmeetings.apache.org/UserService.html#addOrganisation
> > >
> > > Sebastian
> > >
> > >
> > > 2013/2/15 seba.wag...@gmail.com 
> > >
> > > > Is it a SQL? Cause that will not work. You would need to restart red5
> > > > after each query (and shut down before the query is executed)
> > > >
> > > > Sebastian
> > > > Am 15.02.2013 09:51 schrieb "Vieri" :
> > > >
> > > > Re-attaching the patch as it didn't seem to go through...
> > > >>
> > > >> --- On Thu, 2/14/13, Vieri  wrote:
> > > >>
> > > >> > Hi,
> > > >> >
> > > >> > Attaching a quick patch so an admin can create additional
> > > >> > user groups from the command line.
> > > >> > Just a thought but maybe the admins could find this useful.
> > > >> >
> > > >> > Best option would be to do it via SOAP calls though...
> > > >> >
> > > >> > Vieri
> > > >> >
> > > >> > --- On Thu, 2/14/13, Vieri 
> > > >> > wrote:
> > > >> >
> > > >> > > Other than using the web UI of
> > > >> > > course...
> > > >> > >
> > > >> > > --- On Thu, 2/14/13, Vieri 
> > > >> > > wrote:
> > > >> > >
> > > >> > > > Hi,
> > > >> > > >
> > > >> > > > What is the correct way to create a new
> > > >> > > organization/user
> > > >> > > > group?
> > > >> > > >
> > > >> > > > Should I simply insert it directly in the
> > > >> > database
> > > >> > > (table
> > > >> > > > 'organisation') or is there a specific SOAP call
> > > >> > for
> > > >> > > this?
> > > >> > > >
> > > >> > > > Thanks,
> > > >> > > >
> > > >> > > > Vieri
> > > >> > > >
> > > >> > > >
> > > >> > >
> > > >
> > > >
> > >
> > >
> > > --
> > > Sebastian Wagner
> > > https://twitter.com/#!/dead_lock
> > > http://www.webbase-design.de
> > > http://www.wagner-sebastian.com
> > > seba.wag...@gmail.com
> > >
> >
>
>
>
> --
> Sebastian Wagner
> https://twitter.com/#!/dead_lock
> http://www.webbase-design.de
> http://www.wagner-sebastian.com
> seba.wag...@gmail.com
>



-- 
WBR
Maxim aka solomax


Re: create new organization/usergroup

2013-02-14 Thread Maxim Solodovnik
the code is copy/pasted from org.apache.openmeetings.web.app.Application it
might be moved to the helper 


On Fri, Feb 15, 2013 at 7:37 AM, Maxim Solodovnik wrote:

> Maybe It is better to add base class to each group of such classes i.e.
> BaseWebServiceFacade, BaseVelosityServlet extends VelocityViewServlet etc.
> And put the code like into them:
>
>  public static  T getBean(Class clazz) {
> if (ScopeApplicationAdapter.initComplete) {
>  ApplicationContext context =
> WebApplicationContextUtils.getWebApplicationContext(get().getServletContext());
> return context.getBean(clazz);
>  }
> return null;
> }
>
> I'll try to fix initComplete today
>
>
> On Fri, Feb 15, 2013 at 7:30 AM, seba.wag...@gmail.com <
> seba.wag...@gmail.com> wrote:
>
>> That is true.
>> I would like to do one more refactoring :)
>>
>> I would like to fix all Servlets that load a Bean by a String to load it
>> by
>> the class reference.
>>
>> Example, replace:
>> ApplicationContext context = WebApplicationContextUtils
>> .getWebApplicationContext(getServletContext());
>> return (SessiondataDao) context.getBean("sessionManagement");
>>
>>
>> With:
>> return WebApplicationContextUtils
>> .getWebApplicationContext(getServletContext())
>> .getBean(SessiondataDao.class);
>>
>> The big advantage is that there is no "bean-name-bundling", so you can
>> rename the Beans name in the application context and refactor the code,
>> Eclipse will take care about references.
>> Currently you would need to do a File based search+replace and fix every
>> file manually if you rename the Spring bean.
>>
>> Is that okay if I commit that change to trunk?
>>
>> Sebastian
>>
>>
>>
>> 2013/2/15 Maxim Solodovnik 
>>
>> > I would like to remind about "feature freeze" period we currently have
>> ...
>> > To prepare release we should stop adding new features and perform heavy
>> > refactorings
>> > On Feb 15, 2013 7:06 AM, "seba.wag...@gmail.com" > >
>> > wrote:
>> >
>> > > Hi Vieri,
>> > >
>> > > sorry but I can't apply that patch 1:1. If you add a new property to
>> the
>> > > admin shell installer, the same option should be available to the
>> > > web-installer (through the Install-Servlet). That is the same for all
>> > > options during installation. The admin installer from command line is
>> > only
>> > > an alternative to the Web installer. The only exception for that is
>> the
>> > > backup (as you can install that way without duplicating the user_id 1
>> > that
>> > > you would need if you install via web-installer + goto Admin > Backup
>> and
>> > > run the backup import).
>> > >
>> > > If you create a patch, please right click in Eclipse on the top
>> project
>> > and
>> > > make a patch with the project root as reference. Not for each file
>> (some
>> > > subversion plugin will even include binary this way).
>> > >
>> > > If added a WebService call in the UserWebService:
>> > > http://openmeetings.apache.org/UserService.html#addOrganisation
>> > >
>> > > Sebastian
>> > >
>> > >
>> > > 2013/2/15 seba.wag...@gmail.com 
>> > >
>> > > > Is it a SQL? Cause that will not work. You would need to restart
>> red5
>> > > > after each query (and shut down before the query is executed)
>> > > >
>> > > > Sebastian
>> > > > Am 15.02.2013 09:51 schrieb "Vieri" :
>> > > >
>> > > > Re-attaching the patch as it didn't seem to go through...
>> > > >>
>> > > >> --- On Thu, 2/14/13, Vieri  wrote:
>> > > >>
>> > > >> > Hi,
>> > > >> >
>> > > >> > Attaching a quick patch so an admin can create additional
>> > > >> > user groups from the command line.
>> > > >> > Just a thought but maybe the admins could find this useful.
>> > > >> >
>> > > >> > Best option would be to do it via SOAP calls though...
>> > > >> >
>> > > >> > Vieri
>> > > >> >
>> > > >> > --- On Thu, 2/14/13, Vieri 
>> > > >> > wrote:
>> > > >> >
>> > > >> > > Other than using the web UI of
>> > > >> > > course...
>> > > >> > >
>> > > >> > > --- On Thu, 2/14/13, Vieri 
>> > > >> > > wrote:
>> > > >> > >
>> > > >> > > > Hi,
>> > > >> > > >
>> > > >> > > > What is the correct way to create a new
>> > > >> > > organization/user
>> > > >> > > > group?
>> > > >> > > >
>> > > >> > > > Should I simply insert it directly in the
>> > > >> > database
>> > > >> > > (table
>> > > >> > > > 'organisation') or is there a specific SOAP call
>> > > >> > for
>> > > >> > > this?
>> > > >> > > >
>> > > >> > > > Thanks,
>> > > >> > > >
>> > > >> > > > Vieri
>> > > >> > > >
>> > > >> > > >
>> > > >> > >
>> > > >
>> > > >
>> > >
>> > >
>> > > --
>> > > Sebastian Wagner
>> > > https://twitter.com/#!/dead_lock
>> > > http://www.webbase-design.de
>> > > http://www.wagner-sebastian.com
>> > > seba.wag...@gmail.com
>> > >
>> >
>>
>>
>>
>> --
>> Sebastian Wagner
>> https://twitter.com/#!/dead_lock
>> http://www.webbase-design.de
>> http://www.wagner-sebastian.com
>> seba.wag...@gmail.com
>>
>
>
>
> --
> WBR
> Maxim aka solomax
>



-- 
WBR
Maxim aka solomax


Re: server sets "initComplete=true" to early

2013-02-14 Thread Maxim Solodovnik
Do you have any steps for this (maybe unstable)?

My stacktrace is starting with
java.lang.Exception: Server not yet initialized, retry in couple of seconds

Which is expected ...


On Fri, Feb 15, 2013 at 7:17 AM, seba.wag...@gmail.com <
seba.wag...@gmail.com> wrote:

> Hi Maxim,
>
> I've seen you've added some code in the ScopeApplicationAdapter when the
> server is inited lately.
>
> In the servlets we check for that variable
> (ScopeApplicationAdapter.initComplete), in order to make sure the server is
> up before we request the bean.
>
> The issue is that you can still provoke a NullPointerException, cause the
> option in the ScopeApplicationAdapter is reached before the
> ApplicationContext is available.
>
> In the past it was possible to make the server stuck in the boot, it never
> really booted when you hit F5 at the right time a number of times.
> I think it is still possible to do that if you penetrate the server hard
> enough as the "initComplete" is true too early.
>
> Do you have an idea where else in the code we could set the flag
> "ScopeApplicationAdapter.initComplete" ? Somewhere later... but I have no
> idea currently where.
>
> You will an exception like this:
> [ERROR] [http-bio-0.0.0.0-5080-exec-18]
> org.apache.axis2.rpc.receivers.RPCMessageReceiver - Exception occurred
> while trying to invoke service method getSession
> java.lang.reflect.InvocationTargetException: null
> at sun.reflect.GeneratedMethodAccessor32.invoke(Unknown Source)
> ~[na:na]
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> ~[na:1.6.0_37]
> at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_37]
> at
> org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:256)
> ~[axis2-jar-1.7.0-SNAPSHOT.jar:na]
> at
> org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:117)
> ~[axis2-jar-1.7.0-SNAPSHOT.jar:na]
> at
> org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
> [axis2-jar-1.7.0-SNAPSHOT.jar:na]
> at
> org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:106)
> [axis2-jar-1.7.0-SNAPSHOT.jar:na]
> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:169)
> [axis2-jar-1.7.0-SNAPSHOT.jar:na]
> at
> org.apache.axis2.transport.http.util.RESTUtil.invokeAxisEngine(RESTUtil.java:242)
> [axis2-transport-http-bundle-1.7.0-SNAPSHOT.jar:na]
> at
> org.apache.axis2.transport.http.util.RESTUtil.processURLRequest(RESTUtil.java:184)
> [axis2-transport-http-bundle-1.7.0-SNAPSHOT.jar:na]
> at
> org.apache.axis2.transport.http.AxisServlet$RestRequestProcessor.processURLRequest(AxisServlet.java:870)
> [axis2-transport-http-bundle-1.7.0-SNAPSHOT.jar:na]
> at
> org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:290)
> [axis2-transport-http-bundle-1.7.0-SNAPSHOT.jar:na]
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
> [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
> [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
> [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
> [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
> at
> org.red5.logging.LoggerContextFilter.doFilter(LoggerContextFilter.java:77)
> [red5.jar:na]
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
> [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
> [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
> [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
> [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
> at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
> [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
> [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
> [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
> at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
> [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
> [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
> at
> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
> [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
> 

Re: server sets "initComplete=true" to early

2013-02-14 Thread Maxim Solodovnik
Sure, this is why I have asked who is going to do the refactoring :)


On Fri, Feb 15, 2013 at 8:34 AM, seba.wag...@gmail.com <
seba.wag...@gmail.com> wrote:

> Sorry but I will overwrite that.
> You've just fixed one Bean getter method. There are around 25 accross our
> code base in several Axis-WebServices, HttpServlets and VelocityViewServlets
>
> Please give me some minutes, I will ping you again.
>
> Sebastian
>
>
>
> 2013/2/15 Maxim Solodovnik 
>
>> Fixed, please see
>>
>> Committed revision 1446418.
>>
>>
>> On Fri, Feb 15, 2013 at 8:09 AM, Maxim Solodovnik 
>> wrote:
>>
>>> The issue is very tricky
>>> Currently the code works as expected:
>>>
>>> if (!ScopeApplicationAdapter.initComplete) {
>>>  throw new Exception("Server not yet initialized, retry in couple of
>>> seconds");
>>> }
>>>
>>> but then 
>>> it is surprisingly being try/catched and "null" is returned ...
>>>
>>> I'm currently fixing the code
>>>
>>>
>>>
>>> On Fri, Feb 15, 2013 at 8:01 AM, seba.wag...@gmail.com <
>>> seba.wag...@gmail.com> wrote:
>>>
>>>> I already started, I just need to refactor it to use a Util class now.
>>>>
>>>> Sebastian
>>>>
>>>>
>>>> 2013/2/15 Maxim Solodovnik 
>>>>
>>>>> OK
>>>>> Are you going to refactor getting beans? Or should I handle it?
>>>>>
>>>>>
>>>>> On Fri, Feb 15, 2013 at 7:57 AM, seba.wag...@gmail.com <
>>>>> seba.wag...@gmail.com> wrote:
>>>>>
>>>>>> yes,
>>>>>>
>>>>>> just hit F5 constantly, for example load this URL
>>>>>> http://localhost:5080/openmeetings/services/UserService/getSession
>>>>>>
>>>>>> And don't wait for the timeout in the browser, just hit f5 constantly
>>>>>> while the server boots... and you will see that exception.
>>>>>>
>>>>>> Sebastian
>>>>>>
>>>>>>
>>>>>> 2013/2/15 Maxim Solodovnik 
>>>>>>
>>>>>>> Do you have any steps for this (maybe unstable)?
>>>>>>>
>>>>>>> My stacktrace is starting with
>>>>>>> java.lang.Exception: Server not yet initialized, retry in couple of
>>>>>>> seconds
>>>>>>>
>>>>>>> Which is expected ...
>>>>>>>
>>>>>>>
>>>>>>> On Fri, Feb 15, 2013 at 7:17 AM, seba.wag...@gmail.com <
>>>>>>> seba.wag...@gmail.com> wrote:
>>>>>>>
>>>>>>>> Hi Maxim,
>>>>>>>>
>>>>>>>> I've seen you've added some code in the ScopeApplicationAdapter
>>>>>>>> when the server is inited lately.
>>>>>>>>
>>>>>>>> In the servlets we check for that variable
>>>>>>>> (ScopeApplicationAdapter.initComplete), in order to make sure the 
>>>>>>>> server is
>>>>>>>> up before we request the bean.
>>>>>>>>
>>>>>>>> The issue is that you can still provoke a NullPointerException,
>>>>>>>> cause the option in the ScopeApplicationAdapter is reached before the
>>>>>>>> ApplicationContext is available.
>>>>>>>>
>>>>>>>> In the past it was possible to make the server stuck in the boot,
>>>>>>>> it never really booted when you hit F5 at the right time a number of 
>>>>>>>> times.
>>>>>>>> I think it is still possible to do that if you penetrate the server
>>>>>>>> hard enough as the "initComplete" is true too early.
>>>>>>>>
>>>>>>>> Do you have an idea where else in the code we could set the flag
>>>>>>>> "ScopeApplicationAdapter.initComplete" ? Somewhere later... but I have 
>>>>>>>> no
>>>>>>>> idea currently where.
>>>>>>>>
>>>>>>>> You will an exception like this:
>>>>>>>> [ERROR] [http-bio-0.0.0.0-5080-exec-18]
>>>>>>

Re: server sets "initComplete=true" to early

2013-02-14 Thread Maxim Solodovnik
>> Its indeed a little bit tricky cause the Axis2 deployed services do not
allow a method like:
public  T

what is the error?
I just refactor this method to be

// package access
 T getBean(Class clazz) throws AxisFault {
return beanUtil.getBean(clazz, getServletContext());
}

and have no issues :(
can I commit that? or it will broke something?



On Fri, Feb 15, 2013 at 8:51 AM, seba.wag...@gmail.com <
seba.wag...@gmail.com> wrote:

> I have committed another version.
> Please review.
> Its indeed a little bit tricky cause the Axis2 deployed services do not
> allow a method like:
> public  T
>
> cause it will try to build a webservice for all public methods in that
> class, and it cannot make a return type for  / Templates.
>
> So I have added this BeanUtil as class reference.
> The other servlets have a Base servlet now, to inject their specific
> ServletContext.
>
> It is arguable if there is really a need for a Base-class for those cases.
> However this is now just the way I did it, feel free to re-structure.
>
> However at least the check:
> if (ScopeApplicationAdapter.initComplete)
> is only done in one place in the code.
>
> Sebasitan
>
>
> 2013/2/15 Maxim Solodovnik 
>
>> Sure, this is why I have asked who is going to do the refactoring :)
>>
>>
>> On Fri, Feb 15, 2013 at 8:34 AM, seba.wag...@gmail.com <
>> seba.wag...@gmail.com> wrote:
>>
>>> Sorry but I will overwrite that.
>>> You've just fixed one Bean getter method. There are around 25 accross
>>> our code base in several Axis-WebServices, HttpServlets and
>>> VelocityViewServlets
>>>
>>> Please give me some minutes, I will ping you again.
>>>
>>> Sebastian
>>>
>>>
>>>
>>> 2013/2/15 Maxim Solodovnik 
>>>
>>>> Fixed, please see
>>>>
>>>> Committed revision 1446418.
>>>>
>>>>
>>>> On Fri, Feb 15, 2013 at 8:09 AM, Maxim Solodovnik >>> > wrote:
>>>>
>>>>> The issue is very tricky
>>>>> Currently the code works as expected:
>>>>>
>>>>> if (!ScopeApplicationAdapter.initComplete) {
>>>>>  throw new Exception("Server not yet initialized, retry in couple of
>>>>> seconds");
>>>>> }
>>>>>
>>>>> but then 
>>>>> it is surprisingly being try/catched and "null" is returned ...
>>>>>
>>>>> I'm currently fixing the code
>>>>>
>>>>>
>>>>>
>>>>> On Fri, Feb 15, 2013 at 8:01 AM, seba.wag...@gmail.com <
>>>>> seba.wag...@gmail.com> wrote:
>>>>>
>>>>>> I already started, I just need to refactor it to use a Util class now.
>>>>>>
>>>>>> Sebastian
>>>>>>
>>>>>>
>>>>>> 2013/2/15 Maxim Solodovnik 
>>>>>>
>>>>>>> OK
>>>>>>> Are you going to refactor getting beans? Or should I handle it?
>>>>>>>
>>>>>>>
>>>>>>> On Fri, Feb 15, 2013 at 7:57 AM, seba.wag...@gmail.com <
>>>>>>> seba.wag...@gmail.com> wrote:
>>>>>>>
>>>>>>>> yes,
>>>>>>>>
>>>>>>>> just hit F5 constantly, for example load this URL
>>>>>>>> http://localhost:5080/openmeetings/services/UserService/getSession
>>>>>>>>
>>>>>>>> And don't wait for the timeout in the browser, just hit f5
>>>>>>>> constantly while the server boots... and you will see that exception.
>>>>>>>>
>>>>>>>> Sebastian
>>>>>>>>
>>>>>>>>
>>>>>>>> 2013/2/15 Maxim Solodovnik 
>>>>>>>>
>>>>>>>>> Do you have any steps for this (maybe unstable)?
>>>>>>>>>
>>>>>>>>> My stacktrace is starting with
>>>>>>>>> java.lang.Exception: Server not yet initialized, retry in couple
>>>>>>>>> of seconds
>>>>>>>>>
>>>>>>>>> Which is expected ...
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On Fri, Feb 15, 2013 at 7:17 AM, seba.wag...@gmail.com <
>>>>>>>>

Re: server sets "initComplete=true" to early

2013-02-14 Thread Maxim Solodovnik
will commit and recheck on other server


On Fri, Feb 15, 2013 at 9:20 AM, Maxim Solodovnik wrote:

> >> Its indeed a little bit tricky cause the Axis2 deployed services do
> not allow a method like:
> public  T
>
> what is the error?
> I just refactor this method to be
>
> // package access
>   T getBean(Class clazz) throws AxisFault {
> return beanUtil.getBean(clazz, getServletContext());
>  }
>
> and have no issues :(
> can I commit that? or it will broke something?
>
>
>
> On Fri, Feb 15, 2013 at 8:51 AM, seba.wag...@gmail.com <
> seba.wag...@gmail.com> wrote:
>
>> I have committed another version.
>> Please review.
>> Its indeed a little bit tricky cause the Axis2 deployed services do not
>> allow a method like:
>> public  T
>>
>> cause it will try to build a webservice for all public methods in that
>> class, and it cannot make a return type for  / Templates.
>>
>> So I have added this BeanUtil as class reference.
>> The other servlets have a Base servlet now, to inject their specific
>> ServletContext.
>>
>> It is arguable if there is really a need for a Base-class for those cases.
>> However this is now just the way I did it, feel free to re-structure.
>>
>> However at least the check:
>> if (ScopeApplicationAdapter.initComplete)
>> is only done in one place in the code.
>>
>> Sebasitan
>>
>>
>> 2013/2/15 Maxim Solodovnik 
>>
>>> Sure, this is why I have asked who is going to do the refactoring :)
>>>
>>>
>>> On Fri, Feb 15, 2013 at 8:34 AM, seba.wag...@gmail.com <
>>> seba.wag...@gmail.com> wrote:
>>>
>>>> Sorry but I will overwrite that.
>>>> You've just fixed one Bean getter method. There are around 25 accross
>>>> our code base in several Axis-WebServices, HttpServlets and
>>>> VelocityViewServlets
>>>>
>>>> Please give me some minutes, I will ping you again.
>>>>
>>>> Sebastian
>>>>
>>>>
>>>>
>>>> 2013/2/15 Maxim Solodovnik 
>>>>
>>>>> Fixed, please see
>>>>>
>>>>> Committed revision 1446418.
>>>>>
>>>>>
>>>>> On Fri, Feb 15, 2013 at 8:09 AM, Maxim Solodovnik <
>>>>> solomax...@gmail.com> wrote:
>>>>>
>>>>>> The issue is very tricky
>>>>>> Currently the code works as expected:
>>>>>>
>>>>>> if (!ScopeApplicationAdapter.initComplete) {
>>>>>>  throw new Exception("Server not yet initialized, retry in couple of
>>>>>> seconds");
>>>>>> }
>>>>>>
>>>>>> but then 
>>>>>> it is surprisingly being try/catched and "null" is returned ...
>>>>>>
>>>>>> I'm currently fixing the code
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Fri, Feb 15, 2013 at 8:01 AM, seba.wag...@gmail.com <
>>>>>> seba.wag...@gmail.com> wrote:
>>>>>>
>>>>>>> I already started, I just need to refactor it to use a Util class
>>>>>>> now.
>>>>>>>
>>>>>>> Sebastian
>>>>>>>
>>>>>>>
>>>>>>> 2013/2/15 Maxim Solodovnik 
>>>>>>>
>>>>>>>> OK
>>>>>>>> Are you going to refactor getting beans? Or should I handle it?
>>>>>>>>
>>>>>>>>
>>>>>>>> On Fri, Feb 15, 2013 at 7:57 AM, seba.wag...@gmail.com <
>>>>>>>> seba.wag...@gmail.com> wrote:
>>>>>>>>
>>>>>>>>> yes,
>>>>>>>>>
>>>>>>>>> just hit F5 constantly, for example load this URL
>>>>>>>>> http://localhost:5080/openmeetings/services/UserService/getSession
>>>>>>>>>
>>>>>>>>> And don't wait for the timeout in the browser, just hit f5
>>>>>>>>> constantly while the server boots... and you will see that exception.
>>>>>>>>>
>>>>>>>>> Sebastian
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> 2013/2/15 Maxim Solodovnik 
>>>>>>>>

Re: Proposed changed for the AEC feature and compilation of SWF11

2013-02-14 Thread Maxim Solodovnik
OK I'll handle 1 and 2 today (or tonight :) )


On Fri, Feb 15, 2013 at 10:48 AM, seba.wag...@gmail.com <
seba.wag...@gmail.com> wrote:

> From my perspective we need to do the following:
> 1) add openlaszlo 4.9.5 to our ivy list to have both runtime environments:
> 4.9 and 4.9.5
> Question: How will ivy behave when you want / force both versions? Cause I
> can imagine Ivy will think that 4.9.5 is sufficient to download.
> But we need also version 4.9 because 4.9.5 does not SWF8 file format
> anymore.
> Any ideas on that?
>
> My roughest idea would be to rename the entire .tgz file so that it will
> treat it as if those or completely different packages.
>
> 2) And then we need to refactor the build.xml to have two openlaszlo
> directories (laszlo.home) options.
> So when compiling the SWF8 stuff it will use openlaszlo4.9 and when it
> compiles to SWF11 it will use openlaszlo 4.9.5
>
> 3) We need to refactor the Audio/Video components. Basically
> in editRecordStreamSWF10.lzx line 240 "getMicrophone" has to be replaced
> with: "getEnhancedMicrophone"
>
> http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/media/Microphone.html
>
> And there has to be checked which of those config values are valid (or
> which ones are important to be added). Cause enhanced microphones have a
> different option set.
>
> Some of those new variables should be made available through the
> config.xml (and old ones removed).
>
>
> @Maxim: If you could take care about 1) + 2) I would be really thankful.
> Issue 3) is basically something I have been testing already.
>
> Thanks!
> Sebastian
>
> --
> Sebastian Wagner
> https://twitter.com/#!/dead_lock
> http://www.webbase-design.de
> http://www.wagner-sebastian.com
> seba.wag...@gmail.com
>



-- 
WBR
Maxim aka solomax


Re: Proposed changed for the AEC feature and compilation of SWF11

2013-02-14 Thread Maxim Solodovnik
Should openlaszlo 4.9.5 or 5.0 should be used?


On Fri, Feb 15, 2013 at 10:50 AM, Maxim Solodovnik wrote:

> OK I'll handle 1 and 2 today (or tonight :) )
>
>
> On Fri, Feb 15, 2013 at 10:48 AM, seba.wag...@gmail.com <
> seba.wag...@gmail.com> wrote:
>
>> From my perspective we need to do the following:
>> 1) add openlaszlo 4.9.5 to our ivy list to have both runtime
>> environments: 4.9 and 4.9.5
>> Question: How will ivy behave when you want / force both versions? Cause
>> I can imagine Ivy will think that 4.9.5 is sufficient to download.
>> But we need also version 4.9 because 4.9.5 does not SWF8 file format
>> anymore.
>> Any ideas on that?
>>
>> My roughest idea would be to rename the entire .tgz file so that it will
>> treat it as if those or completely different packages.
>>
>> 2) And then we need to refactor the build.xml to have two openlaszlo
>> directories (laszlo.home) options.
>> So when compiling the SWF8 stuff it will use openlaszlo4.9 and when it
>> compiles to SWF11 it will use openlaszlo 4.9.5
>>
>> 3) We need to refactor the Audio/Video components. Basically
>> in editRecordStreamSWF10.lzx line 240 "getMicrophone" has to be replaced
>> with: "getEnhancedMicrophone"
>>
>> http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/media/Microphone.html
>>
>> And there has to be checked which of those config values are valid (or
>> which ones are important to be added). Cause enhanced microphones have a
>> different option set.
>>
>> Some of those new variables should be made available through the
>> config.xml (and old ones removed).
>>
>>
>> @Maxim: If you could take care about 1) + 2) I would be really thankful.
>> Issue 3) is basically something I have been testing already.
>>
>> Thanks!
>> Sebastian
>>
>> --
>> Sebastian Wagner
>> https://twitter.com/#!/dead_lock
>> http://www.webbase-design.de
>> http://www.wagner-sebastian.com
>> seba.wag...@gmail.com
>>
>
>
>
> --
> WBR
> Maxim aka solomax
>



-- 
WBR
Maxim aka solomax


Re: Proposed changed for the AEC feature and compilation of SWF11

2013-02-15 Thread Maxim Solodovnik
1) and 2) are done

here is the example of ant target modified to use 4.9.5 compiler and
resulting "BUILD SUCCESSFUL" (32-bit JDK only)













highlighted are parts necessary to use Flex 4.6
In effect since rev. 1446514



On Fri, Feb 15, 2013 at 5:56 PM, Maxim Solodovnik wrote:

> According to this:
> http://www.openlaszlo.org/pipermail/laszlo-dev/2012-July/024933.html
>
> we going to be limited on 32bit JDK :(
>
>
>
> On Fri, Feb 15, 2013 at 5:41 PM, Maxim Solodovnik wrote:
>
>> Flex 4.6 is not included into openlaszlo 5.0. Will use 4.9.5.
>>
>>
>> On Fri, Feb 15, 2013 at 1:47 PM, Maxim Solodovnik 
>> wrote:
>>
>>> ok
>>> I'll check and send you results of this investigation
>>>
>>>
>>> On Fri, Feb 15, 2013 at 1:45 PM, seba.wag...@gmail.com <
>>> seba.wag...@gmail.com> wrote:
>>>
>>>> I think we need Flex 4.6.
>>>> It could be that still this is our branch to use:
>>>> http://svn.openlaszlo.org/openlaszlo/branches/flex4.6/
>>>>
>>>> And as far as I know this branch is a 1:1 copy of the 4.9.5 release.
>>>>
>>>> But lets check OpenLaszlo trunk, maybe somebody has made the changes
>>>> needed to have swf11 and flex 4.6 available.
>>>>
>>>> Sebastian
>>>>
>>>>
>>>> 2013/2/15 seba.wag...@gmail.com 
>>>>
>>>> Plz check what SDK is used internally / what Flex (what version of
>>>>> mxmlc.jar) compiler is used?
>>>>> It might happen that this does not even compile to SWF11.
>>>>> My Internet is currently pretty slow, sorry it would take a while to
>>>>> check that here.
>>>>>
>>>>> Thanks!
>>>>> Sebastian
>>>>>
>>>>>
>>>>> 2013/2/15 Maxim Solodovnik 
>>>>>
>>>>>> http://www.openlaszlo.org/download
>>>>>>
>>>>>>
>>>>>> OpenLaszlo Latest Nightly Builds
>>>>>> points to 5.0b2
>>>>>> I'll use it
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Fri, Feb 15, 2013 at 1:12 PM, seba.wag...@gmail.com <
>>>>>> seba.wag...@gmail.com> wrote:
>>>>>>
>>>>>>> ah sure Raju has set up a new repository.
>>>>>>> If there is a nightly build from that we should use it.
>>>>>>>
>>>>>>> Can you please post the link to it?
>>>>>>> I guess you need a nightly build, building OpenLaszlo from source is
>>>>>>> not so straightforward ... you need a lot of special tools. actually
>>>>>>> without OSX its almost impossible (except you are a cygwin geek)
>>>>>>>
>>>>>>> Sebastian
>>>>>>>
>>>>>>>
>>>>>>> 2013/2/15 Maxim Solodovnik 
>>>>>>>
>>>>>>>> I googled openlaszlo swf 11 and get the post regarding latest
>>>>>>>> openlaszlo from git
>>>>>>>> it is 5.0 currently
>>>>>>>>
>>>>>>>>
>>>>>>>> On Fri, Feb 15, 2013 at 12:59 PM, seba.wag...@gmail.com <
>>>>>>>> seba.wag...@gmail.com> wrote:
>>>>>>>>
>>>>>>>>> Good question.
>>>>>>>>> Basically we have that 4.9.5 version from Raju which is using the
>>>>>>>>> needed flex SDK internally.
>>>>>>>>> I don't know if those changes ever made it into the 5.0 Version,
>>>>>>>>> espacially which flex SDK 5.0 is using internally.
>>>>>>>>> If 5.0 uses a newer SDK and supports swf11 we should use it.
>>>>>>>>>
>>>>>>>>> Seb
>>>>>>>>> Am 15.02.2013 18:28 schrieb "Maxim Solodovnik" <
>>>>>>>>> solomax...@gmail.com>:
>>>>>>>>>
>>>>>>>>> Should openlaszlo 4.9.5 or 5.0 should be used?
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> On Fri, Feb 15, 2013 at 10:50 AM, Maxim Solodovnik <
>>>>>>>>>> solomax...@gmail.com> wrote:
>>>>>>>>>>
>>>>>>>>>>&g

Emails need to be resend

2013-02-15 Thread Maxim Solodovnik
Hello All,

I'm going to implement MailQ to be able to resend emails in case of any
error is occurred.

Currently we have following list of emails:

   1. Meeting reminder (sent by schedule, periodically)
   2. Invitation to the room
   3. Appointment creation/modification/cancellation
   4. User creation
   5. Password reset
   6. Feedback
   7. Add user to the contact list/accept it

I believe all emails from the list above except for 1) should be added to
the mail Q instead of being immediately sent and keep sending until success.

Do you have any concerns/ideas regarding the topic?
I'm going to implement my solution in case there will be no objections :)


-- 
WBR
Maxim aka solomax


Re: Proposed changed for the AEC feature and compilation of SWF11

2013-02-16 Thread Maxim Solodovnik
I have repacked openlaszlo.4.9.5.tgz on windows, this seems to broke
executable bits
right now I have repacked it on Ubuntu should be better, verifiying right
now


On Sun, Feb 17, 2013 at 4:55 AM, seba.wag...@gmail.com <
seba.wag...@gmail.com> wrote:

> If I modify the needed audio/video components I do receive this error
> during build.
>
> -compile.flash:
>  [java] Compiling: main.as3.lzx to maindebug.as3.swf11.swf
>  [java] Exception in thread "main"
> org.openlaszlo.utils.ChainedException: org.openlaszlo.sc.CompilerError:
> Error running external compiler: java.io.IOException: Cannot run program
> "/Users/swagner/Documents/workspaces/openmeetings_zz/Openmeetings/build/openlaszlo46/WEB-INF/flexsdk/4.6.0/bin/mxmlc":
> error=13, Permission denied
>  [java] at
> org.openlaszlo.compiler.SWF9Writer.finish(SWF9Writer.java:561)
>  [java] at
> org.openlaszlo.compiler.ObjectWriter.finish(ObjectWriter.java:536)
>  [java] at
> org.openlaszlo.compiler.Compiler.compile(Compiler.java:485)
>  [java] at
> org.openlaszlo.compiler.Compiler.compile(Compiler.java:210)
>  [java] at org.openlaszlo.compiler.Main.compile(Main.java:408)
>  [java] at org.openlaszlo.compiler.Main.lzc(Main.java:348)
>  [java] at org.openlaszlo.compiler.Main.main(Main.java:109)
>  [java] Caused by: org.openlaszlo.sc.CompilerError: Error running
> external compiler: java.io.IOException: Cannot run program
> "/Users/swagner/Documents/workspaces/openmeetings_zz/Openmeetings/build/openlaszlo46/WEB-INF/flexsdk/4.6.0/bin/mxmlc":
> error=13, Permission denied
>  [java] at
> org.openlaszlo.sc.SWF9Generator.callFlexCompiler(SWF9Generator.java:1204)
>  [java] at
> org.openlaszlo.sc.SWF10Compiler.finishApp(SWF10Compiler.java:70)
>  [java] at
> org.openlaszlo.compiler.SWF9Writer.finish(SWF9Writer.java:545)
>  [java] ... 6 more
>  [java] Caused by: org.openlaszlo.sc.CompilerError: Error running
> external compiler: java.io.IOException: Cannot run program
> "/Users/swagner/Documents/workspaces/openmeetings_zz/Openmeetings/build/openlaszlo46/WEB-INF/flexsdk/4.6.0/bin/mxmlc":
> error=13, Permission denied
>  [java] at
> org.openlaszlo.sc.SWF9Generator.callFlexCompiler(SWF9Generator.java:1204)
>  [java] at
> org.openlaszlo.sc.SWF10Compiler.finishApp(SWF10Compiler.java:70)
>  [java] at
> org.openlaszlo.compiler.SWF9Writer.finish(SWF9Writer.java:545)
>  [java] at
> org.openlaszlo.compiler.ObjectWriter.finish(ObjectWriter.java:536)
>  [java] at
> org.openlaszlo.compiler.Compiler.compile(Compiler.java:485)
>  [java] at
> org.openlaszlo.compiler.Compiler.compile(Compiler.java:210)
>  [java] at org.openlaszlo.compiler.Main.compile(Main.java:408)
>  [java] at org.openlaszlo.compiler.Main.lzc(Main.java:348)
>  [java] at org.openlaszlo.compiler.Main.main(Main.java:109)
>
> BUILD FAILED
>
> My modified build.xml looks like this:
>  depends="compile.laszlo.main.debug.as3">
>
>  inheritRefs="true">
> 
> 
>
> 
> 
> 
> 
> 
> 
> 
>
>  depends="-retrieve-openlaszlo46">
>
>  inheritRefs="true">
> 
> 
>
> 
> 
> 
> 
>
> 
> 
> 
>
>
> I think the XML is correct, the paths point to valid files but I wonder
> why the SWF11 compilation has this issue. I never saw this happen in SWF10
> and the 4.5 SDK.
>
> After doing a manual: chmod +x
> /Users/swagner/Documents/workspaces/openmeetings_zz/Openmeetings/build/openlaszlo46/WEB-INF/flexsdk/4.6.0/bin/mxmlc
>
> Everything seems to be fine.
>
> Sebastian
>
>
> 2013/2/16 seba.wag...@gmail.com 
>
> Thanks! I will test later today.
>>
>> Sebastian
>> Am 16.02.2013 00:18 schrieb "Maxim Solodovnik" :
>>
>> 1) and 2) are done
>>>
>>> here is the example of ant target modified to use 4.9.5 compiler and
>>> resulting "BUILD SUCCESSFUL" (32-bit JDK only)
>>>
>>>  
>>> 
>>>  
>>> >> />
>>>  
>>> 
>>>  
>>> 
>>>  
>>> 
>>> 
>>>
>>> highlighted are parts necessary to use Flex 4.6
>>> In effect since rev. 1446514
>>>
>>>
>>>
>>> On Fri, Feb 15, 2013 at 5:56 PM, Maxim Solodovnik 
>>> wrote:
>>>
>>>> 

Re: Proposed changed for the AEC feature and compilation of SWF11

2013-02-16 Thread Maxim Solodovnik
Maybe it is time to compile it to the maindebug.swf, main.swf, etc?


On Sun, Feb 17, 2013 at 4:55 AM, seba.wag...@gmail.com <
seba.wag...@gmail.com> wrote:

> The new debug URL is now:
> http://localhost:5080/openmeetings/?swf=maindebug.as3.swf11.swf
>
> Sebastian
>
>
> 2013/2/17 seba.wag...@gmail.com 
>
> If I modify the needed audio/video components I do receive this error
>> during build.
>>
>> -compile.flash:
>>  [java] Compiling: main.as3.lzx to maindebug.as3.swf11.swf
>>  [java] Exception in thread "main"
>> org.openlaszlo.utils.ChainedException: org.openlaszlo.sc.CompilerError:
>> Error running external compiler: java.io.IOException: Cannot run program
>> "/Users/swagner/Documents/workspaces/openmeetings_zz/Openmeetings/build/openlaszlo46/WEB-INF/flexsdk/4.6.0/bin/mxmlc":
>> error=13, Permission denied
>>  [java] at
>> org.openlaszlo.compiler.SWF9Writer.finish(SWF9Writer.java:561)
>>  [java] at
>> org.openlaszlo.compiler.ObjectWriter.finish(ObjectWriter.java:536)
>>  [java] at
>> org.openlaszlo.compiler.Compiler.compile(Compiler.java:485)
>>  [java] at
>> org.openlaszlo.compiler.Compiler.compile(Compiler.java:210)
>>  [java] at org.openlaszlo.compiler.Main.compile(Main.java:408)
>>  [java] at org.openlaszlo.compiler.Main.lzc(Main.java:348)
>>  [java] at org.openlaszlo.compiler.Main.main(Main.java:109)
>>  [java] Caused by: org.openlaszlo.sc.CompilerError: Error running
>> external compiler: java.io.IOException: Cannot run program
>> "/Users/swagner/Documents/workspaces/openmeetings_zz/Openmeetings/build/openlaszlo46/WEB-INF/flexsdk/4.6.0/bin/mxmlc":
>> error=13, Permission denied
>>  [java] at
>> org.openlaszlo.sc.SWF9Generator.callFlexCompiler(SWF9Generator.java:1204)
>>  [java] at
>> org.openlaszlo.sc.SWF10Compiler.finishApp(SWF10Compiler.java:70)
>>  [java] at
>> org.openlaszlo.compiler.SWF9Writer.finish(SWF9Writer.java:545)
>>  [java] ... 6 more
>>  [java] Caused by: org.openlaszlo.sc.CompilerError: Error running
>> external compiler: java.io.IOException: Cannot run program
>> "/Users/swagner/Documents/workspaces/openmeetings_zz/Openmeetings/build/openlaszlo46/WEB-INF/flexsdk/4.6.0/bin/mxmlc":
>> error=13, Permission denied
>>  [java] at
>> org.openlaszlo.sc.SWF9Generator.callFlexCompiler(SWF9Generator.java:1204)
>>  [java] at
>> org.openlaszlo.sc.SWF10Compiler.finishApp(SWF10Compiler.java:70)
>>  [java] at
>> org.openlaszlo.compiler.SWF9Writer.finish(SWF9Writer.java:545)
>>  [java] at
>> org.openlaszlo.compiler.ObjectWriter.finish(ObjectWriter.java:536)
>>  [java] at
>> org.openlaszlo.compiler.Compiler.compile(Compiler.java:485)
>>  [java] at
>> org.openlaszlo.compiler.Compiler.compile(Compiler.java:210)
>>  [java] at org.openlaszlo.compiler.Main.compile(Main.java:408)
>>  [java] at org.openlaszlo.compiler.Main.lzc(Main.java:348)
>>  [java] at org.openlaszlo.compiler.Main.main(Main.java:109)
>>
>> BUILD FAILED
>>
>> My modified build.xml looks like this:
>> > depends="compile.laszlo.main.debug.as3">
>>
>> > inheritRefs="true">
>> 
>> 
>>
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>>
>> > depends="-retrieve-openlaszlo46">
>>
>> > inheritRefs="true">
>> 
>> 
>>
>> 
>> 
>> 
>> > />
>>
>> 
>> 
>> 
>>
>>
>> I think the XML is correct, the paths point to valid files but I wonder
>> why the SWF11 compilation has this issue. I never saw this happen in SWF10
>> and the 4.5 SDK.
>>
>> After doing a manual: chmod +x
>> /Users/swagner/Documents/workspaces/openmeetings_zz/Openmeetings/build/openlaszlo46/WEB-INF/flexsdk/4.6.0/bin/mxmlc
>>
>> Everything seems to be fine.
>>
>> Sebastian
>>
>>
>> 2013/2/16 seba.wag...@gmail.com 
>>
>> Thanks! I will test later today.
>>>
>>> Sebastian
>>> Am 16.02.2013 00:18 schrieb "Maxim Solodovnik" :
>>>
>>> 1) and 2) are done
>>>>
>>>> here is the example of ant target modified to use 4.9.5 

Re: Proposed changed for the AEC feature and compilation of SWF11

2013-02-16 Thread Maxim Solodovnik
I simply mean we have very long file names need to be changed all the time
...
it was main.as3.swf10.swf/maindebug.as3.swf10.swf, now it is
maindebug.as3.swf11.swf/maindebug.as3.swf11.swf
maybe it is time to create files with short constant names for swf11 and
leave *swf8* long and ugly :)


On Sun, Feb 17, 2013 at 10:23 AM, seba.wag...@gmail.com <
seba.wag...@gmail.com> wrote:

> *Maybe it is time to compile it to the maindebug.swf, main.swf, etc?*
> What do you mean by that? The SWF8 apps won't simply compile to
> SWF11/ActionScript3 just by changing the build target. That is why we have
> two SWFs and not a single one.
>
> Sebastian
>
>
> 2013/2/17 Maxim Solodovnik 
>
>> Maybe it is time to compile it to the maindebug.swf, main.swf, etc?
>>
>>
>> On Sun, Feb 17, 2013 at 4:55 AM, seba.wag...@gmail.com <
>> seba.wag...@gmail.com> wrote:
>>
>>> The new debug URL is now:
>>> http://localhost:5080/openmeetings/?swf=maindebug.as3.swf11.swf
>>>
>>> Sebastian
>>>
>>>
>>> 2013/2/17 seba.wag...@gmail.com 
>>>
>>> If I modify the needed audio/video components I do receive this error
>>>> during build.
>>>>
>>>> -compile.flash:
>>>>  [java] Compiling: main.as3.lzx to maindebug.as3.swf11.swf
>>>>  [java] Exception in thread "main"
>>>> org.openlaszlo.utils.ChainedException: org.openlaszlo.sc.CompilerError:
>>>> Error running external compiler: java.io.IOException: Cannot run program
>>>> "/Users/swagner/Documents/workspaces/openmeetings_zz/Openmeetings/build/openlaszlo46/WEB-INF/flexsdk/4.6.0/bin/mxmlc":
>>>> error=13, Permission denied
>>>>  [java] at
>>>> org.openlaszlo.compiler.SWF9Writer.finish(SWF9Writer.java:561)
>>>>  [java] at
>>>> org.openlaszlo.compiler.ObjectWriter.finish(ObjectWriter.java:536)
>>>>  [java] at
>>>> org.openlaszlo.compiler.Compiler.compile(Compiler.java:485)
>>>>  [java] at
>>>> org.openlaszlo.compiler.Compiler.compile(Compiler.java:210)
>>>>  [java] at org.openlaszlo.compiler.Main.compile(Main.java:408)
>>>>  [java] at org.openlaszlo.compiler.Main.lzc(Main.java:348)
>>>>  [java] at org.openlaszlo.compiler.Main.main(Main.java:109)
>>>>  [java] Caused by: org.openlaszlo.sc.CompilerError: Error running
>>>> external compiler: java.io.IOException: Cannot run program
>>>> "/Users/swagner/Documents/workspaces/openmeetings_zz/Openmeetings/build/openlaszlo46/WEB-INF/flexsdk/4.6.0/bin/mxmlc":
>>>> error=13, Permission denied
>>>>  [java] at
>>>> org.openlaszlo.sc.SWF9Generator.callFlexCompiler(SWF9Generator.java:1204)
>>>>  [java] at
>>>> org.openlaszlo.sc.SWF10Compiler.finishApp(SWF10Compiler.java:70)
>>>>  [java] at
>>>> org.openlaszlo.compiler.SWF9Writer.finish(SWF9Writer.java:545)
>>>>  [java] ... 6 more
>>>>  [java] Caused by: org.openlaszlo.sc.CompilerError: Error running
>>>> external compiler: java.io.IOException: Cannot run program
>>>> "/Users/swagner/Documents/workspaces/openmeetings_zz/Openmeetings/build/openlaszlo46/WEB-INF/flexsdk/4.6.0/bin/mxmlc":
>>>> error=13, Permission denied
>>>>  [java] at
>>>> org.openlaszlo.sc.SWF9Generator.callFlexCompiler(SWF9Generator.java:1204)
>>>>  [java] at
>>>> org.openlaszlo.sc.SWF10Compiler.finishApp(SWF10Compiler.java:70)
>>>>  [java] at
>>>> org.openlaszlo.compiler.SWF9Writer.finish(SWF9Writer.java:545)
>>>>  [java] at
>>>> org.openlaszlo.compiler.ObjectWriter.finish(ObjectWriter.java:536)
>>>>  [java] at
>>>> org.openlaszlo.compiler.Compiler.compile(Compiler.java:485)
>>>>  [java] at
>>>> org.openlaszlo.compiler.Compiler.compile(Compiler.java:210)
>>>>  [java] at org.openlaszlo.compiler.Main.compile(Main.java:408)
>>>>  [java] at org.openlaszlo.compiler.Main.lzc(Main.java:348)
>>>>  [java] at org.openlaszlo.compiler.Main.main(Main.java:109)
>>>>
>>>> BUILD FAILED
>>>>
>>>> My modified build.xml looks like this:
>>>> >>> depends="compile.laszlo.main.debug.as3">
>>>>
>>>> >>> inheritRefs="true">
>>>> 
>>>>

Re: Proposed changed for the AEC feature and compilation of SWF11

2013-02-16 Thread Maxim Solodovnik
ok
let it have the same name :)


On Sun, Feb 17, 2013 at 10:48 AM, seba.wag...@gmail.com <
seba.wag...@gmail.com> wrote:

> Sure,
>
> I basically don't mind what name the SWFs have.
> Just think its handy to know what version of the file you are looking at.
> Cause if all files have the same name ... you basically see no difference
> in the binary file if its SWF8, SWF10 or SWF11 and the Flash player will
> provide you with no tools to see what SWF format you are looking at.
>
> There are of course some ways to find it out, but they are really odd ...
> like counting some bytes in the sequence of the binary file and stuff like
> that...
>
> Sebastian
>
>
> 2013/2/17 Maxim Solodovnik 
>
>> I simply mean we have very long file names need to be changed all the
>> time ...
>> it was main.as3.swf10.swf/maindebug.as3.swf10.swf, now it is
>> maindebug.as3.swf11.swf/maindebug.as3.swf11.swf
>> maybe it is time to create files with short constant names for swf11 and
>> leave *swf8* long and ugly :)
>>
>>
>> On Sun, Feb 17, 2013 at 10:23 AM, seba.wag...@gmail.com <
>> seba.wag...@gmail.com> wrote:
>>
>>> *Maybe it is time to compile it to the maindebug.swf, main.swf, etc?*
>>> What do you mean by that? The SWF8 apps won't simply compile to
>>> SWF11/ActionScript3 just by changing the build target. That is why we have
>>> two SWFs and not a single one.
>>>
>>> Sebastian
>>>
>>>
>>> 2013/2/17 Maxim Solodovnik 
>>>
>>>> Maybe it is time to compile it to the maindebug.swf, main.swf, etc?
>>>>
>>>>
>>>> On Sun, Feb 17, 2013 at 4:55 AM, seba.wag...@gmail.com <
>>>> seba.wag...@gmail.com> wrote:
>>>>
>>>>> The new debug URL is now:
>>>>> http://localhost:5080/openmeetings/?swf=maindebug.as3.swf11.swf
>>>>>
>>>>> Sebastian
>>>>>
>>>>>
>>>>> 2013/2/17 seba.wag...@gmail.com 
>>>>>
>>>>> If I modify the needed audio/video components I do receive this error
>>>>>> during build.
>>>>>>
>>>>>> -compile.flash:
>>>>>>  [java] Compiling: main.as3.lzx to maindebug.as3.swf11.swf
>>>>>>  [java] Exception in thread "main"
>>>>>> org.openlaszlo.utils.ChainedException: org.openlaszlo.sc.CompilerError:
>>>>>> Error running external compiler: java.io.IOException: Cannot run program
>>>>>> "/Users/swagner/Documents/workspaces/openmeetings_zz/Openmeetings/build/openlaszlo46/WEB-INF/flexsdk/4.6.0/bin/mxmlc":
>>>>>> error=13, Permission denied
>>>>>>  [java] at
>>>>>> org.openlaszlo.compiler.SWF9Writer.finish(SWF9Writer.java:561)
>>>>>>  [java] at
>>>>>> org.openlaszlo.compiler.ObjectWriter.finish(ObjectWriter.java:536)
>>>>>>  [java] at
>>>>>> org.openlaszlo.compiler.Compiler.compile(Compiler.java:485)
>>>>>>  [java] at
>>>>>> org.openlaszlo.compiler.Compiler.compile(Compiler.java:210)
>>>>>>  [java] at org.openlaszlo.compiler.Main.compile(Main.java:408)
>>>>>>  [java] at org.openlaszlo.compiler.Main.lzc(Main.java:348)
>>>>>>  [java] at org.openlaszlo.compiler.Main.main(Main.java:109)
>>>>>>  [java] Caused by: org.openlaszlo.sc.CompilerError: Error running
>>>>>> external compiler: java.io.IOException: Cannot run program
>>>>>> "/Users/swagner/Documents/workspaces/openmeetings_zz/Openmeetings/build/openlaszlo46/WEB-INF/flexsdk/4.6.0/bin/mxmlc":
>>>>>> error=13, Permission denied
>>>>>>  [java] at
>>>>>> org.openlaszlo.sc.SWF9Generator.callFlexCompiler(SWF9Generator.java:1204)
>>>>>>  [java] at
>>>>>> org.openlaszlo.sc.SWF10Compiler.finishApp(SWF10Compiler.java:70)
>>>>>>  [java] at
>>>>>> org.openlaszlo.compiler.SWF9Writer.finish(SWF9Writer.java:545)
>>>>>>  [java] ... 6 more
>>>>>>  [java] Caused by: org.openlaszlo.sc.CompilerError: Error running
>>>>>> external compiler: java.io.IOException: Cannot run program
>>>>>> "/Users/swagner/Documents/workspaces/openmeetings_zz/Openmeeti

Wrong settings for our project in JIRA

2013-02-18 Thread Maxim Solodovnik
Hello Sebastian,

today I noticed we have wrong information on the following page:

https://issues.apache.org/jira/plugins/servlet/project-config/OPENMEETINGS/notifications


We have Category: Incubator
All notification email addresses are in the incubator

I have no rights to fix it, can you handle this?

-- 
WBR
Maxim aka solomax


Re: Wrong settings for our project in JIRA

2013-02-18 Thread Maxim Solodovnik
Great :)
Will wait for reaction :)


On Tue, Feb 19, 2013 at 12:21 PM, seba.wag...@gmail.com <
seba.wag...@gmail.com> wrote:

> Sorry I don't have rights either.
>
> I've send an email to j...@apache.org.
>
> You are now also Jira Administrator.
>
> Sebastian
>
>
> 2013/2/19 Maxim Solodovnik 
>
>> Hello Sebastian,
>>
>> today I noticed we have wrong information on the following page:
>>
>>
>> https://issues.apache.org/jira/plugins/servlet/project-config/OPENMEETINGS/notifications
>>
>>
>> We have Category: Incubator
>> All notification email addresses are in the incubator
>>
>> I have no rights to fix it, can you handle this?
>>
>> --
>> WBR
>> Maxim aka solomax
>>
>
>
>
> --
> Sebastian Wagner
> https://twitter.com/#!/dead_lock
> http://www.webbase-design.de
> http://www.wagner-sebastian.com
> seba.wag...@gmail.com
>



-- 
WBR
Maxim aka solomax


Re: svn commit: r1448019 - /openmeetings/trunk/singlewebapp/ivy.xml

2013-02-19 Thread Maxim Solodovnik
1) svnkit is taken from the repository (svnant is not available in
repositories)
2) smslib is modified by us (critical issue is fixed, we are monitoring it)
3)
https://nexus.reucon.com/content/repositories/opensource-snapshots/org/asteriskjava/asterisk-java/1.0.0.CI-SNAPSHOT
is
unavailable via ivy due to certificate error (something regarding PKIX
error)

I personally prefer to use existing repositories, but it is impossible in
the above cases :(


On Wed, Feb 20, 2013 at 2:53 PM, seba.wag...@gmail.com <
seba.wag...@gmail.com> wrote:

> Hi Maxim,
>
> asterisk java is already in a Maven repository:
> https://nexus.reucon.com
>
>
> https://nexus.reucon.com/content/repositories/opensource-snapshots/org/asteriskjava/asterisk-java/1.0.0.CI-SNAPSHOT/
>
> Same for smslib:
> http://smslib.googlecode.com/svn/maven2/org/smslib/smslib/
>
> and svnkit:
>
> http://maven.tmatesoft.com/content/repositories/releases/org/tmatesoft/svnkit/svnkit/
>
> Those seem to be official Maven repositories that OpenMeetings could use.
> Only svnant does not seem to have a Maven Repo.
> What do you think? It could be really handy to use those repositories as
> you can switch between versions easily.
>
> Sebastian
>
>
> 2013/2/20 
>
> > Author: solomax
> > Date: Wed Feb 20 07:28:33 2013
> > New Revision: 1448019
> >
> > URL: http://svn.apache.org/r1448019
> > Log:
> > SIP: asterisk-java library is added
> >
> > Modified:
> > openmeetings/trunk/singlewebapp/ivy.xml
> >
> > Modified: openmeetings/trunk/singlewebapp/ivy.xml
> > URL:
> >
> http://svn.apache.org/viewvc/openmeetings/trunk/singlewebapp/ivy.xml?rev=1448019&r1=1448018&r2=1448019&view=diff
> >
> >
> ==
> > --- openmeetings/trunk/singlewebapp/ivy.xml (original)
> > +++ openmeetings/trunk/singlewebapp/ivy.xml Wed Feb 20 07:28:33 2013
> > @@ -256,6 +256,9 @@
> >  > conf="openmeetings->*" transitive="false">
> > 
> > 
> > +> rev="1.0.0.CI-20130102.214528-1134" conf="openmeetings->*"
> > transitive="false">
> > +   
> > +   
> >
> > 
> >  > rev="1.0.3" conf="openmeetings.ext->*" transitive="false"/>
> >
> >
> >
>
>
> --
> Sebastian Wagner
> https://twitter.com/#!/dead_lock
> http://www.webbase-design.de
> http://www.wagner-sebastian.com
> seba.wag...@gmail.com
>



-- 
WBR
Maxim aka solomax


Re: svn commit: r1448019 - /openmeetings/trunk/singlewebapp/ivy.xml

2013-02-20 Thread Maxim Solodovnik
the only way of retrieving asterisk-java I can suggest is adding own
keystore for its certificate, I decided to jar file instead (at least for
now)


On Wed, Feb 20, 2013 at 2:57 PM, Maxim Solodovnik wrote:

> 1) svnkit is taken from the repository (svnant is not available in
> repositories)
> 2) smslib is modified by us (critical issue is fixed, we are monitoring it)
> 3)
> https://nexus.reucon.com/content/repositories/opensource-snapshots/org/asteriskjava/asterisk-java/1.0.0.CI-SNAPSHOT
>  is
> unavailable via ivy due to certificate error (something regarding PKIX
> error)
>
> I personally prefer to use existing repositories, but it is impossible in
> the above cases :(
>
>
> On Wed, Feb 20, 2013 at 2:53 PM, seba.wag...@gmail.com <
> seba.wag...@gmail.com> wrote:
>
>> Hi Maxim,
>>
>> asterisk java is already in a Maven repository:
>> https://nexus.reucon.com
>>
>>
>> https://nexus.reucon.com/content/repositories/opensource-snapshots/org/asteriskjava/asterisk-java/1.0.0.CI-SNAPSHOT/
>>
>> Same for smslib:
>> http://smslib.googlecode.com/svn/maven2/org/smslib/smslib/
>>
>> and svnkit:
>>
>> http://maven.tmatesoft.com/content/repositories/releases/org/tmatesoft/svnkit/svnkit/
>>
>> Those seem to be official Maven repositories that OpenMeetings could use.
>> Only svnant does not seem to have a Maven Repo.
>> What do you think? It could be really handy to use those repositories as
>> you can switch between versions easily.
>>
>> Sebastian
>>
>>
>> 2013/2/20 
>>
>> > Author: solomax
>> > Date: Wed Feb 20 07:28:33 2013
>> > New Revision: 1448019
>> >
>> > URL: http://svn.apache.org/r1448019
>> > Log:
>> > SIP: asterisk-java library is added
>> >
>> > Modified:
>> > openmeetings/trunk/singlewebapp/ivy.xml
>> >
>> > Modified: openmeetings/trunk/singlewebapp/ivy.xml
>> > URL:
>> >
>> http://svn.apache.org/viewvc/openmeetings/trunk/singlewebapp/ivy.xml?rev=1448019&r1=1448018&r2=1448019&view=diff
>> >
>> >
>> ==
>> > --- openmeetings/trunk/singlewebapp/ivy.xml (original)
>> > +++ openmeetings/trunk/singlewebapp/ivy.xml Wed Feb 20 07:28:33 2013
>> > @@ -256,6 +256,9 @@
>> > > > conf="openmeetings->*" transitive="false">
>> > 
>> > 
>> > +   > > rev="1.0.0.CI-20130102.214528-1134" conf="openmeetings->*"
>> > transitive="false">
>> > +   
>> > +   
>> >
>> > 
>> > > > rev="1.0.3" conf="openmeetings.ext->*" transitive="false"/>
>> >
>> >
>> >
>>
>>
>> --
>> Sebastian Wagner
>> https://twitter.com/#!/dead_lock
>> http://www.webbase-design.de
>> http://www.wagner-sebastian.com
>> seba.wag...@gmail.com
>>
>
>
>
> --
> WBR
> Maxim aka solomax
>



-- 
WBR
Maxim aka solomax


Re: Audio delays with Flash 11

2013-02-20 Thread Maxim Solodovnik
Fixed for
1) vertical slider: http://svn.apache.org/r1447599
2) green light: http://svn.apache.org/r1447662



On Wed, Feb 20, 2013 at 4:12 PM, Alexei Fedotov wrote:

> If no changes were made to address the last two issues, they were likely
> caused by cached swf. I cannot reproduce them today.
>
> --
> With best regards / с наилучшими пожеланиями,
> Alexei Fedotov / Алексей Федотов,
> http://dataved.ru/
> +7 916 562 8095
>
>
> On Wed, Feb 20, 2013 at 12:46 PM, seba.wag...@gmail.com <
> seba.wag...@gmail.com> wrote:
>
> > *Audio delay causes great user experience problems.*
> > Until we can't switch to RTMPF I am afraid there is no chance of changing
> > or prioritizing audio packets.
> > Also I can't control the video packets or delay them.
> > Basically the audio delay is a bandwidth issue.
> > It might be worth looking into usage of SPEEX codec. But there are
> already
> > some known issues with other features like recording and also SIP
> > integration when SPEEX is used.
> >
> > * Microphone control detaches from video window when used.
> > => I don't understand what you mean with that.
> > * A green lamp at the low left corner does not work (works few seconds
> > after the session starts, and then breaks).
> > => this has to be tested, with the short tests i've done it was fine.
> >
> > Sebastian
> >
> >
> > 2013/2/20 Alexei Fedotov 
> >
> > > I tried to send this yesterday. Seems two issues are already fixed.
> > Thanks!
> > > Still need to do something about audio delay
> > >
> > > 
> > >
> > > Hello Sebastian, folks,
> > >
> > > We have tested today the new flash video client. Here are testing
> > results:
> > >
> > > * Microphone control detaches from video window when used.
> > > * A green lamp at the low left corner does not work (works few seconds
> > > after the session starts, and then breaks).
> > > * [Most important] Audio delay causes great user experience problems.
> > >
> > > Sebastian, is it possible to delay video for the same amount of time?
> > > Or can you remove this audio delay? Or maybe better to have a switch?
> > >
> > > --
> > > With best regards / с наилучшими пожеланиями,
> > > Alexei Fedotov / Алексей Федотов,
> > > http://dataved.ru/
> > > +7 916 562 8095
> > >
> >
> >
> >
> > --
> > Sebastian Wagner
> > https://twitter.com/#!/dead_lock
> > http://www.webbase-design.de
> > http://www.wagner-sebastian.com
> > seba.wag...@gmail.com
> >
>



-- 
WBR
Maxim aka solomax


Re: bug #513

2013-02-21 Thread Maxim Solodovnik
I'm afraid it is impossible to have invitation hash
You only can get publicSID (seems to be not enough, since the issue will
remain for infinite and time range invitations)
You can limit voting to the OM users (disable vote button for invited
guests)


On Thu, Feb 21, 2013 at 4:16 PM, Кочура Иван  wrote:

> Hello. My name is Kochura Ivan. I'm going to fixed a bug https://issues.
> apache.org/jira/browse/OPENMEETINGS-513, using invatedHash. In addition to
> the client id, we must preserve the InvitationHash in the RoomPollAnswers.
> Based on the above, I have a question. How to get a InvitationHash if I
> have only streamid. (in class PollService)
>



-- 
WBR
Maxim aka solomax


Re: bug #513

2013-02-25 Thread Maxim Solodovnik
publicSID is temporary (per session) variable, it is not a good idea to put
it into invitations table.
I believe the best short term solution would be to disable voting
and the best long term solution would be to create "ExternalUser" entity
and store references to it in various types of other tables (or maybe add
additional type of user "external") something like this


On Mon, Feb 25, 2013 at 4:15 PM, Кочура Иван  wrote:

> Using the publicSID is not enough, I checked it.
>
> When a user comes to the invitation, we can retain the publicSID of the
> active user in the table "invitations". So that we can get a invatedHash
> using the publicSID.
>
> Limit voting is not the best idea. In the future, this functionality can be
> useful.
>
> -- Forwarded message --
> From: Artyom Horuzhenko 
> Date: 2013/2/25
> Subject: Fwd: bug #513
> To: kiv.i...@gmail.com
>
>
> -- Forwarded message --
> From: Maxim Solodovnik 
> Date: 2013/2/21
> Subject: Re: bug #513
> To: dev 
>
>
> I'm afraid it is impossible to have invitation hash
> You only can get publicSID (seems to be not enough, since the issue will
> remain for infinite and time range invitations)
> You can limit voting to the OM users (disable vote button for invited
> guests)
>
>
> On Thu, Feb 21, 2013 at 4:16 PM, Кочура Иван  wrote:
>
> > Hello. My name is Kochura Ivan. I'm going to fixed a bug https://issues.
> > apache.org/jira/browse/OPENMEETINGS-513, using invatedHash. In addition
> to
> > the client id, we must preserve the InvitationHash in the
> RoomPollAnswers.
> > Based on the above, I have a question. How to get a InvitationHash if I
> > have only streamid. (in class PollService)
> >
>
>
>
> --
> WBR
> Maxim aka solomax
>



-- 
WBR
Maxim aka solomax


Re: Persian Language Alignment

2013-02-25 Thread Maxim Solodovnik
I'm afraid you need to wait for 3.0 :(
the only other option is to update all labels and change alignment :(


On Mon, Feb 25, 2013 at 10:50 PM, Iman Firouzian
wrote:

>
> Hi,
> As you can see in the picture attached, i have successfully translated
> openmeetings 2.0.0.r1361497-14-07-2012_1108 to persian (Farsi) language but
> the problem is that the text alignment in Farsi is different from English
> language. Here's an example to determine what the problem exactly is:
> ایران قدیمی ترین کشور دنیاست که حداقل 5300 سال قدمت دارد و بعد از ایران به
> ترتیب مصر، کره و چین قرار دارند.
> ایران قدیمی ترین کشور دنیاست که حداقل 5300 سال قدمت دارد و بعد از ایران به
> ترتیب مصر، کره و چین قرار دارند.
> As you can see both above sentences are correct but alignment is incorrect.
> I'm wondering if you'd mind helping me on changing the alignment.
> Thanks!
>
>
> --
>
> Best Regards
> Iman Firouzian
> MSc student in Artificial Intelligence
> Computer and IT engineering Department
> Shahrood University of Technology, Iran




-- 
WBR
Maxim aka solomax


Re: New address book

2013-02-26 Thread Maxim Solodovnik
I like the idea of common address book

but it will NOT work in iframe
so it can be resolved in 3.0 only


On Tue, Feb 26, 2013 at 2:48 PM, Alexei Fedotov wrote:

> Hello folks, Sebastian,
>
> I suggest the new concept for openmeetings. This is not a real innovation,
> just a copy of a newer thing than before.
>
> We will implement a new address book for openmeetings which  looks like
> android address book. I'm writing this to collect your feedback before we
> start coding.
>
> Basicly we add all other contacts below those who already participates in
> the conference. When one drugs and drops offline contact on the board the
> invitation to join the conference is sent via specified channels including
> mail and jabber. For touch interfaces left-to-right gesture on the contact
> does the thing (this already works on my Android). Yes, we start adopting
> the thing for windows 8 pad experience (and get ubuntu pad working as
> well).
>
> All offline contacts are hidden in a tab by default, so the default look
> resembles the one we have now.
>
> The new book will be available in an iframe and will use wicket.
> Android-like call animations will be implemented on the top of jquery (and
> maybe  some other lib in the middle).
>
> Separating the book from the board is another srep in our gradual flash to
> html5 transition.
>
> After we  do basics, further ideas include the following improvements.
>
> It will likely require a lightweight http-tunnelled jabber to be
> implemented on openmeetings side (likely as an independently developed
> apache licensed component jar - independency on the build level will help
> better reuse and testing) to add jabber transport for address book
> invitations. This can help migrating the whole chat to jabber, so
> openmeetings chat will integrate to different im networks. The whole thing
> would help to light a green light for thise who are online and distribute
> invitation urls to tgem via different im networks.
>
> Some other ideas include importing contacts by ldap, from google and social
> networks, managing duplicates.
> Some "special users" do more on receiving invitation. They automatically
> turn on camera and join the meeting. This effectively turns openmeetings
> into video survilliance system. :-) Yet some people may take advance of
> placing cameras in a cafeteria.
>



-- 
WBR
Maxim aka solomax


Re: svn commit: r1450608 - in /openmeetings/trunk/singlewebapp/src/org/apache/openmeetings: data/conference/dao/ persistence/beans/basic/ persistence/beans/room/ remote/ session/ session/store/

2013-02-26 Thread Maxim Solodovnik
Hello Sebastian,

in your instructions to Denis you haven't mention MapStore should be
switched
So I have tested it with HashMapStore ...

I'll revert changes to HashMapStore


On Wed, Feb 27, 2013 at 1:10 PM, seba.wag...@gmail.com <
seba.wag...@gmail.com> wrote:

> Hi Maxim,
>
> I don't understand your changes to the HashMapStore.
>
> Why is there a reference to the ServerUtil in the HashMapStore at all?
> The HashMapStore should only be used if _no_ server is configured at all,
> no cluster, zero :)
>
> So actually getCurrentServer should not be used in the case where you are
> using memory based store (aka "HashMapStore").
>
> And in that sense: public List getRoomsIdsByServer(Server server)
> simply should always return the current list of all roomIds, not a subset
> of it.
> In case of HashMapStore there is no cluster or other server involved, so
> its logically impossible that this function will be called with any server.
>
> But maybe I don't understand the entire scope of the changes that you
> committed.
>
> Sebastian
>
>
> 2013/2/27 
>
>> Author: solomax
>> Date: Wed Feb 27 05:28:29 2013
>> New Revision: 1450608
>>
>> URL: http://svn.apache.org/r1450608
>> Log:
>> SIP: additional NPE check is added
>> Cluster: getServerForSession is refactored to work as expected with no
>> overhead
>>
>> Modified:
>>
>> openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/data/conference/dao/RoomDao.java
>>
>> openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/data/conference/dao/SipDao.java
>>
>> openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/persistence/beans/basic/Server.java
>>
>> openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/persistence/beans/room/Room.java
>>
>> openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/remote/ConferenceService.java
>>
>> openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/session/SessionManager.java
>>
>> openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/session/store/HashMapStore.java
>>
>> Modified:
>> openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/data/conference/dao/RoomDao.java
>> URL:
>> http://svn.apache.org/viewvc/openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/data/conference/dao/RoomDao.java?rev=1450608&r1=1450607&r2=1450608&view=diff
>>
>> ==
>> ---
>> openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/data/conference/dao/RoomDao.java
>> (original)
>> +++
>> openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/data/conference/dao/RoomDao.java
>> Wed Feb 27 05:28:29 2013
>> @@ -75,8 +75,7 @@ public class RoomDao implements IDataPro
>> }
>>
>> public List getPublicRooms() {
>> -   return em.createNamedQuery("getPublicRoomsOrdered",
>> Room.class)
>> -   .getResultList();
>> +   return em.createNamedQuery("getPublicRoomsOrdered",
>> Room.class).getResultList();
>> }
>>
>> public List getSipRooms(List ids) {
>> @@ -96,6 +95,11 @@ public class RoomDao implements IDataPro
>> return q.getResultList();
>> }
>>
>> +   public Long getRoomsCapacityByIds(List ids) {
>> +   return ids == null || ids.isEmpty() ? 0
>> +   : em.createNamedQuery("getRoomsCapacityByIds",
>> Long.class).setParameter("ids", ids).getSingleResult();
>> +   }
>> +
>> private boolean isSipEnabled() {
>> return "yes".equals(cfgDao.getConfValue("red5sip.enable",
>> String.class, "no"));
>> }
>>
>> Modified:
>> openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/data/conference/dao/SipDao.java
>> URL:
>> http://svn.apache.org/viewvc/openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/data/conference/dao/SipDao.java?rev=1450608&r1=1450607&r2=1450608&view=diff
>>
>> ==
>> ---
>> openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/data/conference/dao/SipDao.java
>> (original)
>> +++
>> openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/data/conference/dao/SipDao.java
>> Wed Feb 27 05:28:29 2013
>> @@ -59,6 +59,10 @@ public class SipDao {
>> }
>>
>> private ManagerResponse exec(ManagerAction action) {
>> +   if (connection == null) {
>> +   log.warn("There is no Asterisk configured");
>> +   return null;
>> +   }
>> try {
>> connection.login();
>> ManagerResponse r = connection.sendAction(action);
>> @@ -73,6 +77,10 @@ public class SipDao {
>> }
>>
>> private ResponseEvents execEvent(EventGeneratingAction action) {
>> +   if (connection == null) {
>> +   log.warn("There is no Asterisk configured");
>> +   return null;
>> +   }
>>

Re: svn commit: r1450608 - in /openmeetings/trunk/singlewebapp/src/org/apache/openmeetings: data/conference/dao/ persistence/beans/basic/ persistence/beans/room/ remote/ session/ session/store/

2013-02-26 Thread Maxim Solodovnik
done


On Wed, Feb 27, 2013 at 1:16 PM, Maxim Solodovnik wrote:

> Hello Sebastian,
>
> in your instructions to Denis you haven't mention MapStore should be
> switched
> So I have tested it with HashMapStore ...
>
> I'll revert changes to HashMapStore
>
>
> On Wed, Feb 27, 2013 at 1:10 PM, seba.wag...@gmail.com <
> seba.wag...@gmail.com> wrote:
>
>> Hi Maxim,
>>
>> I don't understand your changes to the HashMapStore.
>>
>> Why is there a reference to the ServerUtil in the HashMapStore at all?
>> The HashMapStore should only be used if _no_ server is configured at all,
>> no cluster, zero :)
>>
>> So actually getCurrentServer should not be used in the case where you are
>> using memory based store (aka "HashMapStore").
>>
>> And in that sense: public List getRoomsIdsByServer(Server server)
>> simply should always return the current list of all roomIds, not a subset
>> of it.
>> In case of HashMapStore there is no cluster or other server involved, so
>> its logically impossible that this function will be called with any server.
>>
>> But maybe I don't understand the entire scope of the changes that you
>> committed.
>>
>> Sebastian
>>
>>
>> 2013/2/27 
>>
>>> Author: solomax
>>> Date: Wed Feb 27 05:28:29 2013
>>> New Revision: 1450608
>>>
>>> URL: http://svn.apache.org/r1450608
>>> Log:
>>> SIP: additional NPE check is added
>>> Cluster: getServerForSession is refactored to work as expected with no
>>> overhead
>>>
>>> Modified:
>>>
>>> openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/data/conference/dao/RoomDao.java
>>>
>>> openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/data/conference/dao/SipDao.java
>>>
>>> openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/persistence/beans/basic/Server.java
>>>
>>> openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/persistence/beans/room/Room.java
>>>
>>> openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/remote/ConferenceService.java
>>>
>>> openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/session/SessionManager.java
>>>
>>> openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/session/store/HashMapStore.java
>>>
>>> Modified:
>>> openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/data/conference/dao/RoomDao.java
>>> URL:
>>> http://svn.apache.org/viewvc/openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/data/conference/dao/RoomDao.java?rev=1450608&r1=1450607&r2=1450608&view=diff
>>>
>>> ==
>>> ---
>>> openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/data/conference/dao/RoomDao.java
>>> (original)
>>> +++
>>> openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/data/conference/dao/RoomDao.java
>>> Wed Feb 27 05:28:29 2013
>>> @@ -75,8 +75,7 @@ public class RoomDao implements IDataPro
>>> }
>>>
>>> public List getPublicRooms() {
>>> -   return em.createNamedQuery("getPublicRoomsOrdered",
>>> Room.class)
>>> -   .getResultList();
>>> +   return em.createNamedQuery("getPublicRoomsOrdered",
>>> Room.class).getResultList();
>>> }
>>>
>>> public List getSipRooms(List ids) {
>>> @@ -96,6 +95,11 @@ public class RoomDao implements IDataPro
>>> return q.getResultList();
>>> }
>>>
>>> +   public Long getRoomsCapacityByIds(List ids) {
>>> +   return ids == null || ids.isEmpty() ? 0
>>> +   : em.createNamedQuery("getRoomsCapacityByIds",
>>> Long.class).setParameter("ids", ids).getSingleResult();
>>> +   }
>>> +
>>> private boolean isSipEnabled() {
>>> return
>>> "yes".equals(cfgDao.getConfValue("red5sip.enable", String.class, "no"));
>>> }
>>>
>>> Modified:
>>> openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/data/conference/dao/SipDao.java
>>> URL:
>>> http://svn.apache.org/viewvc/openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/data/conference/dao/SipDao.java?rev=1450608&r1=1450607&r

  1   2   3   4   5   6   7   8   9   10   >