[Building Sakai] FW: Yaft question

Adrian Fish a.fish at lancaster.ac.uk
Thu Nov 17 02:12:23 PST 2011


It only shows the latest five messages by default, may that be it? I 
need to make that configurable from sakai.properties, at the moment it's 
fixed at five.

Cheers,
Adrian.

On 17/11/2011 10:02, Anders Nordkvist wrote:
>
> Hi,
>
> I run the 1.1 -> 1.2 sql question and got the table. Now it's working 
> again thanks J
>
> One problem however is that I can't get the synoptic to work. In my 
> attachment you can see a picture of a user's messages on his home 
> workspace.
>
> I have created several sites with yaft but yaft forums with posts in 
> them won't show up! I have modified the sakai.properties according to 
> my previous mail further down. Any ideas?
>
> Regards
>
> Anders Nordkvist
>
> System administrator
>
> University College of Skövde
>
> Sweden
>
> *From:*Adrian Fish [mailto:a.fish at lancaster.ac.uk]
> *Sent:* den 17 november 2011 10:30
> *To:* Anders Nordkvist
> *Cc:* sakai-dev-request at collab.sakaiproject.org
> *Subject:* Re: FW: Yaft question
>
> There are a couple of db scripts in the sql directory under the YAFT 
> source. You'll see a couple of table creates in the 1.1->1.2 script; 
> they should do the trick.
>
> Cheers,
> Adrian.
>
> On 17/11/2011 08:42, Anders Nordkvist wrote:
>
> Hi again,
>
> Sorry I missed to attach a log of the error:
>
> 2011-11-17 09:09:40,691 ERROR http-8080-Processor21 
> org.sakaiproject.yaft.impl.YaftPersistenceManager - Caught exception 
> whilst getting forum.
>
> com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: Table 
> 'sakai.YAFT_DISCUSSION_GROUP' doesn't exist
>
>         at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:936)
>
>         at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2985)
>
>         at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1631)
>
>         at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1723)
>
>         at com.mysql.jdbc.Connection.execSQL(Connection.java:3250)
>
>         at com.mysql.jdbc.Connection.execSQL(Connection.java:3179)
>
>         at com.mysql.jdbc.Statement.executeQuery(Statement.java:1207)
>
>         at 
> org.apache.commons.dbcp.DelegatingStatement.executeQuery(DelegatingStatement.java:208)
>
>         at 
> org.sakaiproject.yaft.impl.YaftPersistenceManager.getDiscussionFromResults(YaftPersistenceManager.java:617)
>
>         at 
> org.sakaiproject.yaft.impl.YaftPersistenceManager.getForumDiscussions(YaftPersistenceManager.java:539)
>
>         at 
> org.sakaiproject.yaft.impl.YaftPersistenceManager.getForum(YaftPersistenceManager.java:187)
>
>         at 
> org.sakaiproject.yaft.impl.YaftPersistenceManager.getForum(YaftPersistenceManager.java:154)
>
>         at 
> org.sakaiproject.yaft.impl.YaftForumServiceImpl.getForum(YaftForumServiceImpl.java:105)
>
>         at 
> org.sakaiproject.yaft.tool.YaftTool.doForumsGet(YaftTool.java:279)
>
>         at org.sakaiproject.yaft.tool.YaftTool.doGet(YaftTool.java:131)
>
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:627)
>
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
>
>         at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
>
>         at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
>
>         at 
> org.sakaiproject.util.RequestFilter.doFilter(RequestFilter.java:597)
>
>         at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
>
> Regards
>
> Anders Nordkvist
>
> System administrator
>
> University College of Skövde
>
> Sweden
>
> *From:*Anders Nordkvist
> *Sent:* den 17 november 2011 09:22
> *To:* 'Adrian Fish'
> *Cc:* 'sakai-dev-request at collab.sakaiproject.org 
> <mailto:sakai-dev-request at collab.sakaiproject.org>'
> *Subject:* RE: Yaft question
>
> Hi and thank you very much for all fixes J
>
> I did encounter one error however with the latest revision. When I 
> created a new forum and then a new topic I got this error (picture).
>
> Regards
>
> Anders Nordkvist
>
> University College of Skövde
>
> Sweden
>
> *From:*Adrian Fish [mailto:a.fish at lancaster.ac.uk] 
> <mailto:[mailto:a.fish at lancaster.ac.uk]>
> *Sent:* den 16 november 2011 16:55
> *To:* Anders Nordkvist
> *Cc:* sakai-dev-request at collab.sakaiproject.org 
> <mailto:sakai-dev-request at collab.sakaiproject.org>
> *Subject:* Re: Yaft question
>
> An update on YAFT and synoptic tools. The 1.2.x branch and trunk now 
> have the synoptic tool activated. All it does is show the last n 
> messages in fora that the viewer has access to.
>
> So, the admin user problem is sorted and the synoptic tool is working 
> hunky dory. I'll take a look at the profile2 problem now.
>
> Cheers,
> Adrian.
>
> On 15/11/2011 11:08, Anders Nordkvist wrote:
>
> Thanks a lot!
>
> We run version 2.7.x of sakai and profile 2 is at 1.3.18!
>
> Regards
>
> Anders
>
> *From:*Adrian Fish [mailto:a.fish at lancaster.ac.uk]
> *Sent:* den 15 november 2011 12:07
> *To:* Anders Nordkvist
> *Cc:* sakai-dev-request at collab.sakaiproject.org 
> <mailto:sakai-dev-request at collab.sakaiproject.org>
> *Subject:* Re: Yaft question
>
> Hi Anders,
>
> First of all, what version of Sakai are you running? I'm asking this 
> so I can get an idea of kernel version, Profile 2 etc. I'll try and 
> replicate the other stuff; I'm doing some work on YAFT at the minute, 
> so a timely email :)
>
> Cheers,
> Adrian.
>
> On 15/11/2011 10:59, Anders Nordkvist wrote:
>
> Hi,
>
> I have a few questions regarding Yaft.
>
> First, how do I enable synoptics for yaft so that a user can see 
> messages on his workspace? I tried to enable it in sakai.properties 
> like this:
>
> # Auto-add synoptic tools to Home (SAK-16747) for default and course sites
>
> wsetup.home.toolids.count=6
>
> wsetup.home.toolids.1=sakai.iframe.site
>
> wsetup.home.toolids.2=sakai.synoptic.announcement
>
> wsetup.home.toolids.3=sakai.summary.calendar
>
> wsetup.home.toolids.4=sakai.synoptic.messagecenter
>
> wsetup.home.toolids.5=sakai.synoptic.chat
>
> wsetup.home.toolids.6=sakai.synoptic.yaft
>
> wsetup.home.toolids.course.count=6
>
> wsetup.home.toolids.course.1=sakai.iframe.site
>
> wsetup.home.toolids.course.2=sakai.synoptic.announcement
>
> wsetup.home.toolids.course.3=sakai.summary.calendar
>
> wsetup.home.toolids.course.4=sakai.synoptic.messagecenter
>
> wsetup.home.toolids.course.5=sakai.synoptic.chat
>
> wsetup.home.toolids.course.6=sakai.synoptic.yaft
>
> Second problem is that if I create a site as a user (not the 
> administrator) the administrator cant view the forums created. I guess 
> it has something to do with permissions but I cant seem to fix it!
>
> The last problem I have is that the profile isn't shown correctly on 
> our dev machine and I get this error in the log:
>
> 2011-11-15 11:50:29,558 ERROR http-8080-Processor25 
> org.sakaiproject.entitybroker.impl.external.SakaiExternalIntegrationProvider 
> - Direct request failure: RuntimeException:Fatal error trying to 
> execute custom action method: image:show:getProfileImage:Direct 
> request failure: RuntimeException:Fatal error trying to execute custom 
> action method: image:show:getProfileImage:
>
> Sakai version: 2.7.x(DEVEL)
>
> Server: sakai-dev.hs.local(sakai-dev) [sakai-dev-1321354083968]
>
> Request URI: /direct/profile/admin/image
>
> Path Info: /profile/admin/image
>
> Context path: /direct
>
> Method: GET
>
> Server: sakai-dev-1321354083968
>
> User agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20100101 
> Firefox/8.0
>
> Browser ID: Win-Mozilla
>
> IP address: 193.10.179.196
>
> User ID: f16b312c-3102-4a69-a11d-af8e516b6498
>
> User EID: nord
>
> User Display ID: nord
>
> Full stacktrace:
>
> RuntimeException:Fatal error trying to execute custom action method: 
> image:show:getProfileImage:
>
> java.lang.RuntimeException: Fatal error trying to execute custom 
> action method: image:show:getProfileImage
>
>         at 
> org.sakaiproject.entitybroker.rest.EntityActionsManager.handleCustomActionExecution(EntityActionsManager.java:231)
>
>         at 
> org.sakaiproject.entitybroker.rest.EntityActionsManager.handleCustomActionRequest(EntityActionsManager.java:96)
>
>         at 
> org.sakaiproject.entitybroker.rest.EntityHandlerImpl.handleEntityAccess(EntityHandlerImpl.java:405)
>
>         at 
> org.sakaiproject.entitybroker.util.servlet.DirectServlet.dispatch(DirectServlet.java:181)
>
>         at 
> org.sakaiproject.entitybroker.servlet.SakaiDirectServlet.dispatch(SakaiDirectServlet.java:144)
>
>         at 
> org.sakaiproject.entitybroker.util.servlet.DirectServlet.handleRequest(DirectServlet.java:152)
>
>         at 
> org.sakaiproject.entitybroker.util.servlet.DirectServlet.service(DirectServlet.java:130)
>
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
>
>         at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
>
>         at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
>
>         at 
> org.sakaiproject.util.RequestFilter.doFilter(RequestFilter.java:658)
>
>         at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
>
>        at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
>
>         at 
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
>
>         at 
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
>
>         at 
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
>
>         at 
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
>
>         at 
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
>
>         at 
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
>
>         at 
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:879)
>
>         at 
> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
>
>         at 
> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
>
>         at 
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
>
>         at 
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
>
>         at java.lang.Thread.run(Thread.java:662)
>
> Caused by: java.lang.reflect.InvocationTargetException
>
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>
>         at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>
>         at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>
>         at java.lang.reflect.Method.invoke(Method.java:597)
>
>         at 
> org.sakaiproject.entitybroker.rest.EntityActionsManager.handleCustomActionExecution(EntityActionsManager.java:206)
>
>         ... 24 more
>
> Caused by: java.lang.NoSuchMethodError: 
> org.sakaiproject.profile2.logic.ProfileLogic.getURLResourceAsBytes(Ljava/lang/String;)Lorg/sakaiproject/profile2/model/ResourceWrapper;
>
>         at 
> org.sakaiproject.profile2.service.ProfileImageServiceImpl.getDefaultImage(ProfileImageServiceImpl.java:192)
>
>         at 
> org.sakaiproject.profile2.service.ProfileImageServiceImpl.getProfileImage(ProfileImageServiceImpl.java:77)
>
>         at 
> org.sakaiproject.profile2.entity.ProfileEntityProviderImpl.getProfileImage(ProfileEntityProviderImpl.java:124)
>
>         ... 29 more
>
> WARN Direct request failure: RuntimeException:Fatal error trying to 
> execute custom action method: image:show:getProfileImage:Direct 
> request failure: RuntimeException:Fatal error trying to execute custom 
> action method: image:show:getProfileImage:
>
> Sakai version: 2.7.x(DEVEL)
>
> Server: sakai-dev.hs.local(sakai-dev) [sakai-dev-1321354083968]
>
> Request URI: /direct/profile/admin/image
>
> Path Info: /profile/admin/image
>
> Context path: /direct
>
> Method: GET
>
> Server: sakai-dev-1321354083968
>
> User agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20100101 
> Firefox/8.0
>
> Browser ID: Win-Mozilla
>
> IP address: 193.10.179.196
>
> User ID: f16b312c-3102-4a69-a11d-af8e516b6498
>
> User EID: nord
>
> User Display ID: nord
>
>  :java.lang.RuntimeException: Fatal error trying to execute custom 
> action method: image:show:getProfileImage
>
> Thank you very much in advance and I hope I got the right email list 
> this time!
>
> Regards Anders Nordkvist
>
> System administrator
>
> University College Of Skövde
>
> Sweden
>
> *From:*Adam Marshall [mailto:adam.marshall at oucs.ox.ac.uk]
> *Sent:* den 8 november 2011 12:06
> *To:* Anders Nordkvist
> *Cc:* Adrian Fish
> *Subject:* RE: Yaft question
>
> Anders
>
> You posted top the wrong list. Sakai-dev would have been better.
>
> Adrian Fish (CC'd) is "Mr Yaft" hopefully he can help
>
> adam
>
> *From:*evaluation-bounces at collab.sakaiproject.org 
> <mailto:evaluation-bounces at collab.sakaiproject.org> 
> [mailto:evaluation-bounces at collab.sakaiproject.org] 
> <mailto:[mailto:evaluation-bounces at collab.sakaiproject.org]> *On 
> Behalf Of *Anders Nordkvist
> *Sent:* 08 November 2011 10:59
> *To:* evaluation at collab.sakaiproject.org 
> <mailto:evaluation at collab.sakaiproject.org>
> *Subject:* [Contrib: Evaluation System] Yaft question
>
> Hi,
>
> We are using 2.7.X version of Sakai. Does anyone know what version of 
> Yaft that works best with this version? I have looked at both the 
> latest tag (1.2) and branch post_2.5 but in their pom files it 
> describes parent version 2.6.x build? And 2.7.0 as trunk build?
>
> Regards Anders Nordkvist
>
> System administrator
>
> University College Of Skövde
>
> Sweden
>
>
>
>
> -- 
> ==================================
> Adrian Fish
> Software Engineer
> B66 Management School
> Lancaster University
> Lancaster
> LA1 4YW
>   
> http://www.sakaiproject.org
> http://confluence.sakaiproject.org/display/YAFT/Yaft
> http://confluence.sakaiproject.org/display/CLOG/Home
> http://confluence.sakaiproject.org/display/BBB/Home
>
> -- 
> ==================================
> Adrian Fish
> Software Engineer
> B66 Management School
> Lancaster University
> Lancaster
> LA1 4YW
>   
> http://www.sakaiproject.org
> http://confluence.sakaiproject.org/display/YAFT/Yaft
> http://confluence.sakaiproject.org/display/CLOG/Home
> http://confluence.sakaiproject.org/display/BBB/Home
>
>
>
> -- 
> ==================================
> Adrian Fish
> Software Engineer
> B66 Management School
> Lancaster University
> Lancaster
> LA1 4YW
>   
> http://www.sakaiproject.org
> http://confluence.sakaiproject.org/display/YAFT/Yaft
> http://confluence.sakaiproject.org/display/CLOG/Home
> http://confluence.sakaiproject.org/display/BBB/Home

-- 
==================================
Adrian Fish
Software Engineer
B66 Management School
Lancaster University
Lancaster
LA1 4YW

http://www.sakaiproject.org
http://confluence.sakaiproject.org/display/YAFT/Yaft
http://confluence.sakaiproject.org/display/CLOG/Home
http://confluence.sakaiproject.org/display/BBB/Home

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20111117/efbda705/attachment.html 


More information about the sakai-dev mailing list