[Building Sakai] BBB Tool IndexOutOfBounds issue

Steve Swinsburg steve.swinsburg at gmail.com
Fri Feb 17 13:47:12 PST 2012


Hmm, with the code up in github I hope things don't get out of sync…




On 18/02/2012, at 8:44 AM, Bryan Holladay wrote:

> It looks like it was already committed
> 
> https://github.com/blindsidenetworks/bigbluebutton-sakai/blob/master/bbb-tool/impl/src/java/org/sakaiproject/bbb/impl/BBBAPIWrapper.java
> 
> 
> 
> On Fri, Feb 17, 2012 at 4:40 PM, Steve Swinsburg
> <steve.swinsburg at gmail.com> wrote:
>> Hi Daniel,
>> 
>> I reported this the other day at:
>> https://jira.sakaiproject.org/browse/BBB-67
>> 
>> IMO it shouldn't bring the whole tomcat down if it can't find the config, so
>> this would be a welcome fix.
>> 
>> cheers,
>> Steve
>> 
>> On 18/02/2012, at 12:31 AM, Daniel Merino wrote:
>> 
>> Hi again.
>> 
>> I have managed to solve this looking at the last version of
>> BBBAPIWrapper.java (
>> https://github.com/blindsidenetworks/bigbluebutton-sakai/blob/master/bbb-tool/impl/src/java/org/sakaiproject/bbb/impl/BBBAPIWrapper.java
>> ) where the line which throws the exception is tested for not being empty or
>> null.
>> 
>> So, in this line at BBBAPIWrapper.java:
>> 
>> api = bbbProxyMap.get(liveUrls.get(0));
>> 
>> pasting these lines instead make the problem dissapear:
>> 
>>  if (liveUrls != null && liveUrls.size() > 0) {
>>     api = bbbProxyMap.get(liveUrls.get(0));
>> }
>> 
>> though I'm not sure about what I have just changed... and my liveUrls.size()
>> is, in fact, 0.
>> 
>> I haven't found neither this change in any JIRA ticket, just to know if I
>> should do more changes, so any hint or suggestion are welcomed.
>> 
>> Best regards.
>> 
>> Daniel Merino escribió:
>> 
>> Hi everybody.
>> 
>> I have installed BigBlueButton 0.71a over Ubuntu 10.04 and I am trying to
>> install the 1.0.6 version BBB tool in our Sakai 2.7.1, with EntityBroker
>> 1.3.15. Sakai is in other different server with CentOS.
>> 
>> Installation of the tool runs fine with mvn, but when I start Tomcat, I get
>> a IndexOutOfBounds exception in BBBAPIWrapper.java and Tomcat doesn't start.
>> 
>> 2012-02-17 12:41:43,177 ERROR main
>> org.sakaiproject.util.NoisierDefaultListableBeanFactory - Failed to
>> preinstantiate the singleton named
>> org.sakaiproject.bbb.api.BBBMeetingManager. Destroying all Spring beans.
>> org.springframework.beans.factory.BeanCreationException: Error creating bean
>> with name 'org.sakaiproject.bbb.api.BBBMeetingManager' defined in file
>> [/apps/tomcat/tomcat-a/components/bbb-pack/WEB-INF/components.xml]:
>> Invocation of init method failed; nested exception is
>> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
>>         at
>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1338)
>> (...)
>>         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
>> Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
>>         at java.util.ArrayList.RangeCheck(ArrayList.java:547)
>>         at java.util.ArrayList.get(ArrayList.java:322)
>>         at
>> org.sakaiproject.bbb.impl.BBBAPIWrapper.start(BBBAPIWrapper.java:113)
>>         at
>> org.sakaiproject.bbb.impl.BBBMeetingManagerImpl.init(BBBMeetingManagerImpl.java:151)
>> (...)
>> 
>> Looking for information, I can see that in June 2011, Given Shirinda found
>> the same issue and asked about it in this list (
>> http://collab.sakaiproject.org/pipermail/sakai-dev/2011-June/012516.html )
>> but it seems that no solution was published.
>> 
>> Following the instructions of that mail, I have tested that my BBB is
>> running and I can connect to BBB server url with wget.
>> 
>> Please, could you help me?
>> Thanks in advance.
>> Best regards.
>> --
>> Daniel Merino Echeverría
>> daniel.merino at unavarra.es
>> Gestor de teleformación - Centro Superior de Innovación Educativa.
>> Tfno: 948-168489 - Universidad Pública de Navarra.
>> 
>> 
>> --
>> Daniel Merino Echeverría
>> daniel.merino at unavarra.es
>> Gestor de teleformación - Centro Superior de Innovación Educativa.
>> Tfno: 948-168489 - Universidad Pública de Navarra.
>> --
>> Si eres rico, el Gobierno protege cada euro que ganas y cada cosa que robas.
>> (Accepted)
>> _______________________________________________
>> sakai-dev mailing list
>> sakai-dev at collab.sakaiproject.org
>> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>> 
>> TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe at collab.sakaiproject.org
>> with a subject of "unsubscribe"
>> 
>> 
>> 
>> _______________________________________________
>> sakai-dev mailing list
>> sakai-dev at collab.sakaiproject.org
>> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>> 
>> TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe at collab.sakaiproject.org
>> with a subject of "unsubscribe"



More information about the sakai-dev mailing list