Uploaded image for project: 'ServiceMix Components'
  1. ServiceMix Components
  2. SMXCOMP-1

unable to set connection URI on sender

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • servicemix-mail-2009.01
    • servicemix-mail-2008.01
    • servicemix-mail
    • None
    • Linux 2.6.27 / JDK 6

    Description

      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>

      Attachments

        1. servicemix-mail-diff.txt
          1 kB
          Ramon Buckland

        Activity

          People

            lhein Lars Heinemann
            darren.davison Darren Davison
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: