[Building Sakai] Send Private Message ERROR

Steve Swinsburg steve.swinsburg at gmail.com
Sun Dec 16 14:53:28 PST 2012


Hi,

Whats on line 1275 and 1165 of that class? Some data must not be set (ie null) and it is throwing the NPE.
This is 2.8.2 right?

cheers,
Steve


On 17/12/2012, at 9:28 AM, Antonio muñoz alonso <antoniovalenciaspain at hotmail.com> wrote:

> 
> Hi.
> 
> 
> MessageForumsMessageManager forumMessageManager = (MessageForumsMessageManager) ComponentManager.get(MessageForumsMessageManager.class);
>         PrivateMessageManager pmm =  (PrivateMessageManager) ComponentManager.get(PrivateMessageManager.class);
> 
>         PrivateMessage privateMessage = forumMessageManager.createPrivateMessage();
> 
>         
>         privateMessage.setAuthor(getCurrentUserId());
>         privateMessage.setBody("Hello World");
>         privateMessage.setTitle("Hello");
>         privateMessage.setInReplyTo(null);
>         privateMessage.setDeleted(Boolean.FALSE);
>         privateMessage.setDraft(Boolean.FALSE);
>         //privateMessage.setRecipientsAsText(getCurrentUserId());
>         
>         Set users = new HashSet();
>         String id = getCurrentSiteId();
>         users.add(id);
>         
>         
>         //pmm.savePrivateMessage(privateMessage);--- OK 
>         pmm.sendPrivateMessage(privateMessage, users,false); -----ERROR
> 
> caused by: java.lang.NullPointerException
>     at org.sakaiproject.component.app.messageforums.ui.PrivateMessageManagerImpl.buildMessageBody(PrivateMessageManagerImpl.java:1275)
>     at org.sakaiproject.component.app.messageforums.ui.PrivateMessageManagerImpl.sendPrivateMessage(PrivateMessageManagerImpl.java:1165)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 
> 
> 
> 
> 
> public void sendPrivateMessage(PrivateMessage message, Set recipients, boolean asEmail);
> any ideas?. not find any example
> 
> thanks.
> 
> From: antoniovalenciaspain at hotmail.com
> To: steve.swinsburg at gmail.com
> Date: Fri, 14 Dec 2012 22:55:13 +0100
> CC: sakai-dev at collab.sakaiproject.org
> Subject: Re: [Building Sakai] Send Private Message ERROR
> 
> I still failing to send to 2.8.2
> 
> caused by: java.lang.NullPointerException
>     at org.sakaiproject.component.app.messageforums.ui.PrivateMessageManagerImpl.buildMessageBody(PrivateMessageManagerImpl.java:1275)
>     at org.sakaiproject.component.app.messageforums.ui.PrivateMessageManagerImpl.sendPrivateMessage(PrivateMessageManagerImpl.java:1165)
> 
> PrivateMessageManager is instantiated correctly because it can save a message.
> Subject: Re: [Building Sakai] Send Private Message ERROR
> From: steve.swinsburg at gmail.com
> Date: Fri, 14 Dec 2012 11:05:07 +1100
> CC: farreri.sakai at gmail.com; sakai-dev at collab.sakaiproject.org
> To: antoniovalenciaspain at hotmail.com
> 
> Here's what you need to do.
> 
> 1. Change your pom to list 2.8.2 versions
> 2. Ensure your code is written for the 2.8.2 version NOT the 3 version. 
> 3. If Eclipse still has the 3 version on the build path, change it to the 2.8.2 version. Then repeat 2.
> 4. Build and redeploy.
> 
> The API's are different so it will never work unless you make everything the same version.
> 
> 
> 
> On 14/12/2012, at 10:52 AM, Antonio muñoz alonso <antoniovalenciaspain at hotmail.com> wrote:
> 
> caused by: java.lang.NoSuchMethodError: org.sakaiproject.api.app.messageforums.ui.PrivateMessageManager.sendPrivateMessage(Lorg/sakaiproject/api/app/messageforums/PrivateMessage;Ljava/util/Map;Z)V
> But, in msgcnt 2.8.2, the function SendPrivateMessage use Set instead of Map. seems that is still taking the msgcntr 3.
> 
> 
> <scope>provided</scope> in each dependy, I get error "no exist" when deploy.
> 
> 
> 
> 
> 
> Subject: Re: [Building Sakai] Send Private Message ERROR
> From: steve.swinsburg at gmail.com
> Date: Fri, 14 Dec 2012 10:26:59 +1100
> CC: farreri.sakai at gmail.com; sakai-dev at collab.sakaiproject.org
> To: antoniovalenciaspain at hotmail.com
> 
> The dependencies might be being bundled which would cause this. You certainly dont need the help dependency so remove it, and I would add:
> 
> <scope>provided</scope>
> 
> to each other dependency. Then redeploy and restart.
> 
> cheers,
> Steve
> 
> 
> 
> On 14/12/2012, at 10:05 AM, Antonio muñoz alonso <antoniovalenciaspain at hotmail.com> wrote:
> 
> After deploy again, Still gives the same error.
> 
> <dependency>
> 	<groupId>org.sakaiproject.msgcntr</groupId>
> 	<artifactId>messageforums-api</artifactId>
> 	<version>2.8.2</version>
> </dependency>
> 
> <dependency>
> 	<groupId>org.sakaiproject.msgcntr</groupId>
> 	<artifactId>messageforums-hbm</artifactId>
> 	<version>2.8.2</version>
> </dependency>
>     
> <dependency>
> 	<groupId>org.sakaiproject.msgcntr</groupId>
> 	<artifactId>messageforums-help</artifactId>
> 	<version>2.8.2</version>
> </dependency>
> 
>   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> caused by: java.lang.NoSuchMethodError: org.sakaiproject.api.app.messageforums.ui.PrivateMessageManager.sendPrivateMessage(Lorg/sakaiproject/api/app/messageforums/PrivateMessage;Ljava/util/Map;Z)V
>     at org.sakaiproject.logic.SakaiProxyImpl.message(SakaiProxyImpl.java:632)
>     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.apache.wicket.proxy.LazyInitProxyFactory$JdkHandler.invoke(LazyInitProxyFactory.java:414)
> 
> 
> Subject: Re: [Building Sakai] FW: Send Private Message ERROR
> From: steve.swinsburg at gmail.com
> Date: Fri, 14 Dec 2012 09:35:53 +1100
> CC: farreri.sakai at gmail.com; sakai-dev at collab.sakaiproject.org
> To: antoniovalenciaspain at hotmail.com
> 
> Your pom lists msgcntr 3 dependencies but Tomcat has msgnctr 2.8 dependencies. You need to change your pom to be the 2.8 versions.
> 
> 
> On 13/12/2012, at 11:26 PM, Antonio muñoz alonso <antoniovalenciaspain at hotmail.com> wrote:
> 
> but, I add in pom this:
> <dependency>
> 	<groupId>org.sakaiproject.samigo</groupId>
> 	<artifactId>samigo-services</artifactId>
> 	<version>2.9.0-b07</version>
> </dependency>
>          <dependency>
> 	<groupId>org.sakaiproject.samigo</groupId>
> 	<artifactId>samigo-hibernate</artifactId>
> 	<version>2.9.0-b07</version>
> </dependency>
> 
> <dependency>
> 	<groupId>org.sakaiproject.msgcntr</groupId>
> 	<artifactId>messageforums-api</artifactId>
> 	<version>3.0.0-b07</version>
> </dependency>
> 
> <dependency>
> 	<groupId>org.sakaiproject.msgcntr</groupId>
> 	<artifactId>messageforums-hbm</artifactId>
> 	<version>3.0.0-b07</version>
> </dependency>
>     
> <dependency>
> 	<groupId>org.sakaiproject.msgcntr</groupId>
> 	<artifactId>messageforums-help</artifactId>
> 	<version>3.0.0-b07</version>
> </dependency>
>                  
> 
> the packet  .jar, downloaded in .m2/repository.
> I use .jar not found in shared / lib but in .m2
> 
> 
> 
> Date: Thu, 13 Dec 2012 21:43:10 +1100
> Subject: Re: [Building Sakai] FW: Send Private Message ERROR
> From: steve.swinsburg at gmail.com
> To: antoniovalenciaspain at hotmail.com
> CC: farreri.sakai at gmail.com; sakai-dev at collab.sakaiproject.org
> 
> The problem is that you are using the msgcntr 3 API in your code, but in Tomcat it is 2.8. Change your pom to bind to the 2.8 version (same version as what is in your tomcat shared lib - might need to adjust groupId/artifactId), adjust your code to suit and redeploy.
> 
> cheers,
> Steve
> 
> 
> On Thu, Dec 13, 2012 at 9:15 PM, Antonio muñoz alonso <antoniovalenciaspain at hotmail.com> wrote:
> HI
> the function is able to create a message and save,
> but if you send fails, anyone have any examples?.
> 
> the problem is the command sendPrivateMessage
> 
> 
> 
> TOOL/POM:
> <dependencies>
> 		<!-- project dependencies -->
> 		<dependency>
>       		<groupId>org.sakaiproject</groupId>
>       		<artifactId>app-api</artifactId>
>     	</dependency>
>     	
>     	<!-- third party dependencies -->
> 		<dependency>
> 			<groupId>org.apache.wicket</groupId>
> 			<artifactId>wicket</artifactId>
> 		</dependency>
> 		<dependency>
> 			<groupId>org.apache.wicket</groupId>
> 			<artifactId>wicket-spring</artifactId>
>     	</dependency>
> 		<dependency>
> 			<groupId>org.slf4j</groupId>
> 			<artifactId>slf4j-log4j12</artifactId>
> 		</dependency>
> 		<dependency>
> 			<groupId>org.slf4j</groupId>
> 			<artifactId>slf4j-api</artifactId>
> 		</dependency>
> 		<dependency>
> 			<groupId>log4j</groupId>
> 			<artifactId>log4j</artifactId>
> 		</dependency>
> 		<dependency>
> 			<groupId>org.projectlombok</groupId>
> 			<artifactId>lombok</artifactId>
> 		</dependency>
> 		
> 		<!-- Sakai dependencies -->
>        	<dependency>
>            	<groupId>org.sakaiproject.kernel</groupId>
> 			<artifactId>sakai-kernel-api</artifactId>
> 		</dependency>
> 		<dependency>
> 			<groupId>org.sakaiproject.kernel</groupId>
> 			<artifactId>sakai-component-manager</artifactId>
> 		</dependency>
> 		<dependency>
> 			<groupId>org.sakaiproject.kernel</groupId>
> 			<artifactId>sakai-kernel-util</artifactId>
> 		</dependency>
> 		<dependency>
> 			<groupId>org.apache.wicket</groupId>
> 			<artifactId>wicket-extensions</artifactId>
> 			<version>1.4.17</version>
> 		
> 		</dependency>
> 		
> 		
> <dependency>
> 	<groupId>org.openengsb.forks</groupId>
> 	<artifactId>org.odlabs.wiquery</artifactId>
> 	<version>1.2.4.w1</version>
> </dependency>
> 		<dependency>
> 	<groupId>org.sakaiproject.msgcntr</groupId>
> 	<artifactId>messageforums-api</artifactId>
> 	<version>3.0.0-b07</version>
> </dependency>
> 
> <dependency>
> 	<groupId>commons-configuration</groupId>
> 	<artifactId>commons-configuration</artifactId>
> 	<version>1.9</version>
> </dependency>
> 	
> 
> 	</dependencies>
> 	
> 
> 
> Date: Thu, 13 Dec 2012 10:23:09 +1100
> 
> Subject: Re: [Building Sakai] FW: Send Private Message ERROR
> From: steve.swinsburg at gmail.com
> To: antoniovalenciaspain at hotmail.com
> CC: farreri.sakai at gmail.com
> 
> 
> Ok that looks fine. What about your pom?
> 
> 
> On Thu, Dec 13, 2012 at 8:01 AM, Antonio muñoz alonso <antoniovalenciaspain at hotmail.com> wrote:
> Sorry.
> 
> This is the list complete
> 
> accountvalidator-api-2.8.3.jar
> activation-1.1.1.jar
> antlr-2.7.6.jar
> app-api-1.0-SNAPSHOT.jar
> archive-api-1.1.4.jar
> asm-1.5.3.jar
> asm-attrs-1.5.3.jar
> basiclti-help-1.3.4.jar
> castor-1.0.jar
> cglib-2.1_3.jar
> cglib-nodep-2.2.jar
> commons-collections-3.2.1.jar
> commons-dbcp-1.2.2.jar
> commons-fileupload-1.2.2.jar
> commons-io-1.4.jar
> commons-lang-2.5.jar
> commons-pool-1.5.6.jar
> configuration-bundles-2.8.1.jar
> content-copyright-api-2.8.1.jar
> content-help-2.8.1.jar
> contentreview-model-api-2.8.6.jar
> contentreview-service-api-2.8.6.jar
> coursemanagement-api-1.1.3.jar
> coursemanagement-hibernate-model-1.1.3.jar
> dom4j-1.6.1.jar
> ehcache-1.6.1.jar
> emailtemplateservice-api-0.5.4.jar
> entitybroker-api-1.4.3.jar
> geronimo-spec-jms-1.1-rc4.jar
> gradebook-service-api-1.1.3.jar
> gradebook-service-hibernate-1.1.3.jar
> hibernate-3.2.7.ga.jar
> hsqldb-1.8.0.10.jar
> jaxen-1.1-beta-10.jar
> jcr-1.0.jar
> jdbc2_0-stdext-h2.1.8.jar
> jdom-1.0.jar
> jstl-1.1.2.jar
> jta-1.0.1B.jar
> jta-h2.1.8.jar
> login-api-2.8.1.jar
> mail-1.4.3.jar
> messageforums-api-2.8.2.jar
> messageforums-hbm-2.8.2.jar
> messageforums-help-2.8.2.jar
> OkiOSID-2.0.jar
> osp-common-api-2.8.1.jar
> osp-glossary-api-2.8.1.jar
> osp-glossary-help-2.8.1.jar
> osp-integration-api-2.8.1.jar
> osp-matrix-api-2.8.1.jar
> osp-matrix-help-2.8.1.jar
> osp-portal-api-2.8.1.jar
> osp-presentation-api-2.8.1.jar
> osp-presentation-help-2.8.1.jar
> osp-styles-help-2.8.1.jar
> osp-wizard-api-2.8.1.jar
> osp-wizard-help-2.8.1.jar
> pluto-container-1.1.7.jar
> pluto-descriptor-api-1.1.7.jar
> pluto-descriptor-impl-1.1.7.jar
> pluto-taglib-1.1.7.jar
> polls-api-1.4.3.jar
> polls-help-1.4.3.jar
> portlet-api-1.0.jar
> profile2-api-1.4.4.jar
> profile2-help-1.4.4.jar
> profile-api-2.8.3.jar
> profile-component-shared-2.8.3.jar
> quartz-1.6.6.jar
> sakai-announcement-api-2.8.1.jar
> sakai-announcement-help-2.8.1.jar
> sakai-assignment-api-2.8.1.jar
> sakai-assignment-help-2.8.1.jar
> sakai-calendar-api-2.8.1.jar
> sakai-calendar-help-2.8.1.jar
> sakai-chat-api-2.8.1.jar
> sakai-chat-help-2.8.1.jar
> sakai-citations-api-2.8.1.jar
> sakai-common-composite-component-data-1.1.4.jar
> sakai-common-edu-person-api-1.1.4.jar
> sakai-common-manager-api-1.1.4.jar
> sakai-common-type-api-1.1.4.jar
> sakai-component-manager-1.2.6.jar
> sakai-comp-shared-help-2.8.1.jar
> sakai-courier-api-2.8.1.jar
> sakai-gradebook-help-2.8.1.jar
> sakai-help-api-2.8.1.jar
> sakai-help-content-2.8.1.jar
> sakai-kernel-api-1.2.6.jar
> sakai-kernel-private-1.2.6.jar
> sakai-mailarchive-api-2.8.1.jar
> sakai-mailarchive-help-2.8.1.jar
> sakai-message-api-2.8.1.jar
> sakai-metaobj-api-2.8.1.jar
> sakai-metaobj-help-2.8.1.jar
> sakai-news-api-2.8.1.jar
> sakai-podcasts-api-2.8.1.jar
> sakai-podcasts-help-2.8.1.jar
> sakai-portal-api-2.8.1.jar
> sakai-portal-render-api-2.8.1.jar
> sakai-postem-api-2.8.1.jar
> sakai-postem-hbm-2.8.1.jar
> sakai-postem-help-2.8.1.jar
> sakai-presence-api-2.8.1.jar
> sakai-privacy-api-1.1.4.jar
> sakai-privacy-hbm-1.1.4.jar
> sakai-reset-pass-help-2.8.3.jar
> sakai-rights-api-2.8.1.jar
> sakai-roster-api-2.8.1.jar
> sakai-roster-help-2.8.1.jar
> sakai-rwiki-api-2.8.1.jar
> sakai-rwiki-help-2.8.1.jar
> sakai-rwiki-model-2.8.1.jar
> sakai-sections-help-2.8.1.jar
> sakai-siteassociation-api-2.8.1.jar
> sakai-siteassociation-hbm-2.8.1.jar
> sakai-site-help-2.8.1.jar
> sakai-site-manage-api-2.8.1.jar
> sakai-site-manage-hbm-2.8.1.jar
> sakai-site-manage-help-2.8.1.jar
> sakai-syllabus-api-2.8.1.jar
> sakai-syllabus-hbm-2.8.1.jar
> sakai-syllabus-help-2.8.1.jar
> sakai-taggable-api-2.8.1.jar
> sakai-taggable-hbm-2.8.1.jar
> sakai-usermembership-api-2.8.1.jar
> sakai-usermembership-help-2.8.1.jar
> sakai-velocity-tool-api-2.8.1.jar
> sakai-warehouse-api-2.8.1.jar
> sakai-web-api-2.8.1.jar
> sakai-web-help-2.8.1.jar
> samigo-api-2.8.3.jar
> samigo-help-2.8.3.jar
> samigo-hibernate-2.8.3.jar
> samigo-services-2.8.3.jar
> scheduler-api-2.8.2.jar
> scheduler-component-shared-2.8.2.jar
> scheduler-events-model-2.8.2.jar
> search-api-1.3.5.jar
> search-help-1.3.5.jar
> search-model-1.3.5.jar
> sections-api-1.1.3.jar
> sections-model-1.1.3.jar
> shortenedurl-api-1.0.3.jar
> simple-xml-2.3.6.jar
> sitestats-api-2.2.2.jar
> sitestats-help-2.2.2.jar
> sitestats-impl-hib-2.2.2.jar
> spring-2.5.6.SEC02.jar
> spring-webmvc-2.5.6.SEC02.jar
> su-help-2.8.1.jar
> 
> 
> 
> 
> From: antoniovalenciaspain at hotmail.com
> To: steve.swinsburg at gmail.com
> CC: farreri.sakai at gmail.com
> Subject: RE: [Building Sakai] FW: Send Private Message ERROR
> Date: Wed, 12 Dec 2012 21:58:26 +0100
> 
> 
> tomcat/shared/lib 
> 
> sakai-common-edu-person-api-1.1.4.jar
> sakai-common-manager-api-1.1.4.jar
> sakai-common-type-api-1.1.4.jar
> sakai-component-manager-1.2.6.jar
> sakai-comp-shared-help-2.8.1.jar
> sakai-courier-api-2.8.1.jar
> sakai-gradebook-help-2.8.1.jar
> sakai-help-api-2.8.1.jar
> sakai-help-content-2.8.1.jar
> sakai-kernel-api-1.2.6.jar
> sakai-kernel-private-1.2.6.jar
> sakai-mailarchive-api-2.8.1.jar
> sakai-mailarchive-help-2.8.1.jar
> sakai-message-api-2.8.1.jar
> sakai-metaobj-api-2.8.1.jar
> sakai-metaobj-help-2.8.1.jar
> sakai-news-api-2.8.1.jar
> sakai-podcasts-api-2.8.1.jar
> sakai-podcasts-help-2.8.1.jar
> sakai-portal-api-2.8.1.jar
> sakai-portal-render-api-2.8.1.jar
> sakai-postem-api-2.8.1.jar
> sakai-postem-hbm-2.8.1.jar
> sakai-postem-help-2.8.1.jar
> sakai-presence-api-2.8.1.jar
> sakai-privacy-api-1.1.4.jar
> sakai-privacy-hbm-1.1.4.jar
> sakai-reset-pass-help-2.8.3.jar
> sakai-rights-api-2.8.1.jar
> sakai-roster-api-2.8.1.jar
> sakai-roster-help-2.8.1.jar
> sakai-rwiki-api-2.8.1.jar
> sakai-rwiki-help-2.8.1.jar
> sakai-rwiki-model-2.8.1.jar
> sakai-sections-help-2.8.1.jar
> sakai-siteassociation-api-2.8.1.jar
> sakai-siteassociation-hbm-2.8.1.jar
> sakai-site-help-2.8.1.jar
> sakai-site-manage-api-2.8.1.jar
> sakai-site-manage-hbm-2.8.1.jar
> sakai-site-manage-help-2.8.1.jar
> sakai-syllabus-api-2.8.1.jar
> sakai-syllabus-hbm-2.8.1.jar
> sakai-syllabus-help-2.8.1.jar
> sakai-taggable-api-2.8.1.jar
> sakai-taggable-hbm-2.8.1.jar
> sakai-usermembership-api-2.8.1.jar
> sakai-usermembership-help-2.8.1.jar
> sakai-velocity-tool-api-2.8.1.jar
> sakai-warehouse-api-2.8.1.jar
> sakai-web-api-2.8.1.jar
> sakai-web-help-2.8.1.jar
> samigo-api-2.8.3.jar
> samigo-help-2.8.3.jar
> samigo-hibernate-2.8.3.jar
> samigo-services-2.8.3.jar
> scheduler-api-2.8.2.jar
> scheduler-component-shared-2.8.2.jar
> scheduler-events-model-2.8.2.jar
> search-api-1.3.5.jar
> search-help-1.3.5.jar
> search-model-1.3.5.jar
> sections-api-1.1.3.jar
> sections-model-1.1.3.jar
> shortenedurl-api-1.0.3.jar
> simple-xml-2.3.6.jar
> sitestats-api-2.2.2.jar
> sitestats-help-2.2.2.jar
> sitestats-impl-hib-2.2.2.jar
> spring-2.5.6.SEC02.jar
> spring-webmvc-2.5.6.SEC02.jar
> su-help-2.8.1.jar
> 
> 
> CC: farreri.sakai at gmail.com
> From: steve.swinsburg at gmail.com
> Subject: Re: [Building Sakai] FW: Send Private Message ERROR
> Date: Thu, 13 Dec 2012 07:23:54 +1100
> To: antoniovalenciaspain at hotmail.com
> 
> I mean in your pom. Please also send directory listing of the tomcat shared lib directory. 
> 
> Sent from my iPhone
> 
> On 12/12/2012, at 22:00, Antonio muñoz alonso <antoniovalenciaspain at hotmail.com> wrote:
> 
> Code:
> 
> 
> 	public void message(){
> 		System.out.println("a");
> 		MessageForumsMessageManager forumMessageManager = (MessageForumsMessageManager) ComponentManager.get(MessageForumsMessageManager.class);
>  
> 		PrivateMessageManager pmm =  (PrivateMessageManager) ComponentManager.get(PrivateMessageManager.class);
> 	    System.out.println("b");
> 		
> 	    //PrivateMessage privateMessage = forumMessageManager.createPrivateMessage();
> 	    PrivateMessage privateMessage = pmm.createPrivateMessage("fsjdhjsh");
> 
> 	    
> 	    System.out.println("id: "+privateMessage.getId());
> 	    System.out.println("id: " + privateMessage.getUuid());
> 	    
>         privateMessage.setAuthor(getCurrentUserId());
>         privateMessage.setBody("hola esto es una prueba");
> 	    privateMessage.setTitle("Prueba");
> 	    privateMessage.setInReplyTo(null);
> 	    privateMessage.setDeleted(Boolean.FALSE);
> 	   // privateMessage.setId((long)17867);
> 	    privateMessage.setRecipientsAsText(getCurrentUserId());
> 
> 	    
> 	    Map<User,Boolean> map = new HashMap<User,Boolean>();
> 		User user = userDirectoryService.getCurrentUser();
> 		
> 		
> 
> 	    map.put(user, Boolean.FALSE);
>           pmm.sendPrivateMessage(privateMessage, map,false);
>         
> 	    //forumMessageManager.saveMessage(privateMessage,Boolean.FALSE);
> 	  
> 		
> 	}
> 
> CC: farreri.sakai at gmail.com; sakai-msgcntr-team at collab.sakaiproject.org; sakai-dev at collab.sakaiproject.org
> From: steve.swinsburg at gmail.com
> Subject: Re: [Building Sakai] FW: Send Private Message ERROR
> Date: Wed, 12 Dec 2012 08:01:12 +1100
> To: antoniovalenciaspain at hotmail.com
> 
> A directory listing of tomcat/shared/lib would be useful. 
> Also how have you declared the dependency on the messageforums API?
> 
> Sent from my iPhone
> 
> On 12/12/2012, at 4:33, Antonio muñoz alonso <antoniovalenciaspain at hotmail.com> wrote:
> 
> Yes, I use Sakai Maven Archetype.
> I have only created a project, all I have in sakaiProxy functions work correctly unless this.
> 
> Thanks
> 
> 
> Date: Tue, 11 Dec 2012 18:07:08 +0100
> From: farreri.sakai at gmail.com
> To: antoniovalenciaspain at hotmail.com
> CC: steve.swinsburg at gmail.com; sakai-msgcntr-team at collab.sakaiproject.org; sakai-dev at collab.sakaiproject.org
> Subject: Re: [Building Sakai] FW: Send Private Message ERROR
> 
> Hehehe, i assume that you are using the Sakai Maven Archetype, right?Do you have another tool in the APP server that uses org.sakaiproject.logic.SakaiProxy?
> 
> In this case, just rename the classes because the "SakaiProxy" class you're invoking is from other tool ;)
> 
> Miguel
> 
> 
> El 11/12/2012 17:56, Antonio muñoz alonso escribió:
> Hi.
> 
> everything is correct on packages.
> I think it has to be the code.
> 
> Any more ideas?
> 
> 
> Thanks
> 
> Date: Tue, 11 Dec 2012 16:24:42 +0100
> From: farreri.sakai at gmail.com
> To: antoniovalenciaspain at hotmail.com
> CC: steve.swinsburg at gmail.com; sakai-msgcntr-team at collab.sakaiproject.org; sakai-dev at collab.sakaiproject.org
> Subject: Re: [Building Sakai] FW: Send Private Message ERROR
> 
> Check this files in your tomcat installation, and pay special attention to the libraries located in shared\lib (check if you have duplicated jars)
> 
> components\messageforums-components
> shared\lib\messageforums-api-2.8.2.jar
> shared\lib\messageforums-hbm-2.8.2.jar
> shared\lib\messageforums-help-2.8.2.jar
> webapps\messageforums-tool.war
> 
> Regards, Miguel.
> 
> El 11/12/2012 16:15, Antonio muñoz alonso escribió:
> Versión-->2.8.1
> 
> 
> 
> Date: Fri, 7 Dec 2012 07:16:53 +1100
> Subject: Re: [Building Sakai] FW: Send Private Message ERROR
> From: steve.swinsburg at gmail.com
> To: antoniovalenciaspain at hotmail.com
> CC: sakai-msgcntr-team at collab.sakaiproject.org; sakai-dev at collab.sakaiproject.org
> 
> 2.8.0, 2.8.1, 2.8.2 or 2.8-SNAPSHOT? Whatever version you have, make sure theres no older jars in shared/lib. Alternatively, send a directory listing of shared/lib.
> 
> cheers,
> Steve
> 
> 
> On Thu, Dec 6, 2012 at 11:22 PM, Antonio muñoz alonso<antoniovalenciaspain at hotmail.com> wrote:
> Sakai 2.8
> 
> 
> 
> CC: sakai-msgcntr-team at collab.sakaiproject.org; sakai-dev at collab.sakaiproject.org
> From: steve.swinsburg at gmail.com
> Subject: Re: [Building Sakai] FW: Send Private Message ERROR
> Date: Thu, 6 Dec 2012 09:29:48 +1100
> To: antoniovalenciaspain at hotmail.com
> 
> 
> Hi,
> 
> Check shared/lib for old jars related to this app. What version Sakai are you using?
> 
> Cheers,
> Steve
> 
> Sent from my iPad
> 
> On 05/12/2012, at 22:52, Antonio muñoz alonso <antoniovalenciaspain at hotmail.com> wrote:
> 
> 
> 
> 
> Hi
> 
> I get an error when sending a private message
> Map<User,Boolean> mp = new HashMap<User,Boolean>();
>  User user = userDirectoryService.getCurrentUser();
> 
>  mp.put(user, Boolean.FALSE);
>         pmm.sendPrivateMessage(privateMessage, mp,false);
> 
> 
> TRACE:
> caused by: java.lang.NoSuchMethodError: org.sakaiproject.api.app.messageforums.ui.PrivateMessageManager.sendPrivateMessage(Lorg/sakaiproject/api/app/messageforums/PrivateMessage;Ljava/util/Map;Z)V
>     at org.sakaiproject.logic.SakaiProxyImpl.message(SakaiProxyImpl.java:625)
>     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)
> 
> 
> any ideas?
> 
> Thanks.
> _______________________________________________
> 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"
> 
> -- 
> <ATT00001>
>  
> Miguel Carro Pellicer
> Technical Manager - Director técnico
> miguel.carro at samoo.es
> +34 - 673 80 32 69
> Skype: mcpellicer
> www.samoo.es
>  
> Este  correo  y  sus archivos asociados son privados y confidenciales y va dirigido  exclusivamente  a su destinatario. Si recibe este correo sin ser el  destinatario del mismo, le rogamos proceda a su eliminación y lo ponga en  conocimiento del emisor. La difusión por cualquier medio del contenido de  este  correo podría ser sancionada conforme a lo previsto en las leyes españolas, Ley Orgánica 15/1999 de Protección de Datos de Carácter Personal.  No  se autoriza la utilización con fines comerciales o para su incorporación a ficheros automatizados de las direcciones del emisor o del destinatario.”
>  
> This mail and its attached files are confidential and are only and exclusively intended to their addressee. In case you may receive this mail not being its addressee, we beg you to let us know the error by reply and to proceed to destroy it. The circulation by any mean of this mail could be penalised in accordance with the Spanish legislation. Is not allowed the use of both, the transmitter and the addressee’s, address with a commercial aim, or in order to be incorporated to automated data process or to any kind of files. 
>  
> P Antes de imprimir este correo electrónico piense bien si es necesario hacerlo. El medioambiente es cosa de todos.
>  
>  
> 
> -- 
> <image002.jpg>
>  
> Miguel Carro Pellicer
> Technical Manager - Director técnico
> miguel.carro at samoo.es
> +34 - 673 80 32 69
> Skype: mcpellicer
> www.samoo.es
>  
> Este  correo  y  sus archivos asociados son privados y confidenciales y va dirigido  exclusivamente  a su destinatario. Si recibe este correo sin ser el  destinatario del mismo, le rogamos proceda a su eliminación y lo ponga en  conocimiento del emisor. La difusión por cualquier medio del contenido de  este  correo podría ser sancionada conforme a lo previsto en las leyes españolas, Ley Orgánica 15/1999 de Protección de Datos de Carácter Personal.  No  se autoriza la utilización con fines comerciales o para su incorporación a ficheros automatizados de las direcciones del emisor o del destinatario.”
>  
> This mail and its attached files are confidential and are only and exclusively intended to their addressee. In case you may receive this mail not being its addressee, we beg you to let us know the error by reply and to proceed to destroy it. The circulation by any mean of this mail could be penalised in accordance with the Spanish legislation. Is not allowed the use of both, the transmitter and the addressee’s, address with a commercial aim, or in order to be incorporated to automated data process or to any kind of files. 
>  
> P Antes de imprimir este correo electrónico piense bien si es necesario hacerlo. El medioambiente es cosa de todos.
>  
>  
> <1.png>
> <2.png>
> <3.png>
> 
> 
> _______________________________________________ sakai-dev mailing list sakai-dev at collab.sakaiproject.orghttp://collab.sakaiproject.org/mailman/listinfo/sakai-dev TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe at collab.sakaiproject.org with a subject of "unsubscribe"

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


More information about the sakai-dev mailing list