servicemix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ramon Buckland (JIRA)" <j...@apache.org>
Subject [jira] Issue Comment Edited: (SM-1700) unable to set connection URI on sender
Date Mon, 01 Dec 2008 01:44:05 GMT

    [ https://issues.apache.org/activemq/browse/SM-1700?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=47721#action_47721
] 

rbuckland edited comment on SM-1700 at 11/30/08 5:42 PM:
--------------------------------------------------------------

patch supplied to fix issue (see attachments above)

To manually create your own 2008.01 replace (using this current 2008.02 version)

1. svn co http://svn.apache.org/repos/asf/servicemix/components/bindings/servicemix-mail/trunk
2. mod pom.xml as follows

Index: pom.xml
===================================================================
--- pom.xml     (revision 721938)
+++ pom.xml     (working copy)
@@ -26,7 +26,7 @@
-  <version>2008.02-SNAPSHOT</version>
+  <version>2008.02</version>
@@ -41,7 +41,7 @@
-    <servicemix-shared-version>2008.02-SNAPSHOT</servicemix-shared-version>
+    <servicemix-shared-version>2008.01</servicemix-shared-version>

3. Now mvn clean install and copy the target/servicemix-mail-2008.02-installer.zip, replacing
your 2008.01 version. 
(Not throroughly tested of course.)

      was (Author: rbuckland):
    patch supplied to fix issue

To manually create your own 2008.01 replace (using this current 2008.02 version)

1. svn co http://svn.apache.org/repos/asf/servicemix/components/bindings/servicemix-mail/trunk
2. mod pom.xml as follows

Index: pom.xml
===================================================================
--- pom.xml     (revision 721938)
+++ pom.xml     (working copy)
@@ -26,7 +26,7 @@
-  <version>2008.02-SNAPSHOT</version>
+  <version>2008.02</version>
@@ -41,7 +41,7 @@
-    <servicemix-shared-version>2008.02-SNAPSHOT</servicemix-shared-version>
+    <servicemix-shared-version>2008.01</servicemix-shared-version>

3. Now mvn clean install and copy the target/servicemix-mail-2008.02-installer.zip, replacing
your 2008.01 version. 
(Not throroughly tested of course.)
  
> unable to set connection URI on sender
> --------------------------------------
>
>                 Key: SM-1700
>                 URL: https://issues.apache.org/activemq/browse/SM-1700
>             Project: ServiceMix
>          Issue Type: Bug
>          Components: servicemix-mail
>    Affects Versions: 3.3
>         Environment: Linux 2.6.27 / JDK 6
>            Reporter: Darren Davison
>            Assignee: Lars Heinemann
>             Fix For: servicemix-mail-2008.02
>
>         Attachments: servicemix-mail-diff.txt
>
>
> Not sure whether the component is officially released yet, but I obtained it from the
snapshot repo today to test it.  I created the skeleton project from the archetype using:
> mvn archetype:create -DarchetypeGroupId=org.apache.servicemix.tooling -DarchetypeArtifactId=servicemix-mail-service-unit
-DarchetypeVersion=2008.01-SNAPSHOT -DartifactId=tutorial-mail-su -DremoteRepositories=http://people.apache.org/repo/m2-snapshot-repository
> I edited xbean.xml to look as follows for the sender endpoint (SMTP server needs no authorisation):
>     <mail:sender service="tut:mail" 
>                  endpoint="sender"
>                  sender="servicemix@example.com"
>                  receiver="me@somewhere.else"
>                  debugMode="false" 
>                  connection="smtp://mail.example.com" />                 
> When I try to deploy, I get the following within the error output:
> <loc-message>Error creating bean with name 'org.apache.servicemix.mail.MailSenderEndpoint#0'
defined in file [/opt/apache-servicemix-3.3/data/smx/service-assemblies/tutorial-sa/version_2/sus/servicemix-mail/tutorial-mail-su/xbean.xml]:
Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException;
nested PropertyAccessExceptions (1) are:
> PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property
'connection' threw exception; nested exception is java.lang.NullPointerException</loc-message>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message