1 2 Previous Next 19 Replies Latest reply on Feb 25, 2011 7:10 AM by jnhelal Go to original post
      • 15. Re: Unable to set the mail configuration properties in JBPM 4.3
        swiderski.maciej

        it will not work since jbpm.default.cfg.xml has already definition for mail-session so yours will not be taken.

         

        How com it gives null pointer? Please attach full stack trace.

        • 16. Re: Unable to set the mail configuration properties in JBPM 4.3
          viren_agarwal_rsg

          This is the stacktrace

          Exception in thread "main" java.lang.NullPointerException
              at org.jbpm.pvm.internal.processengine.ProcessEngineImpl.checkDb(ProcessEngineImpl.java:152)
              at org.jbpm.pvm.internal.processengine.ProcessEngineImpl.<init>(ProcessEngineImpl.java:105)
              at org.jbpm.pvm.internal.cfg.ConfigurationImpl.buildProcessEngine(ConfigurationImpl.java:92)
              at org.jbpm.api.Configuration.getProcessEngine(Configuration.java:126)
              at org.jbpm.examples.java.JBPMRepository.createProcessEngine(JBPMRepository.java:35)
              at org.jbpm.examples.java.JBPMMailTest.initiateJBPMEngine(JBPMMailTest.java:19)
              at org.jbpm.examples.java.JBPMMailTest.main(JBPMMailTest.java:65)

           

          I did little change in it to get it work . I have included these in xml file

           

          <import resource="jbpm.default.cfg.xml" />
            <import resource="jbpm.businesscalendar.cfg.xml" />
            <import resource="jbpm.tx.hibernate.cfg.xml" />
            <import resource="jbpm.jpdl.cfg.xml" />
            <import resource="jbpm.bpmn.cfg.xml" />
            <import resource="jbpm.identity.cfg.xml" />

           

          Now null pointer is gone but authentication error is still there

           

          How can i override default xml defination

          • 17. Re: Unable to set the mail configuration properties in JBPM 4.3
            viren_agarwal_rsg

            Hey i got it working

            Thanks for your help i removed  <import resource="jbpm.default.cfg.xml" /> and it start working .

             

             

            Thanks & Regards

            Virendra

            • 18. Unable to set the mail configuration properties in JBPM 4.3
              rohya

              hi Maciej,

               

              I am trying to send mail from client machines. I got following error..

              SEVERE: >>org.jbpm.api.JbpmException: could not send email: javax.mail.internet.MimeMessage@eb203b

              >>javax.mail.SendFailedException: Invalid Addresses

              >>com.sun.mail.smtp.SMTPAddressFailedException: 451 Greylisted, please try again in 300 seconds

              >>

              >>          at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1061)

              >>          at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:584)

              >>          at org.jbpm.pvm.internal.email.impl.MailSessionImpl.send(MailSessionImpl.java:51)

              >>          at org.jbpm.jpdl.internal.activity.MailActivity.perform(MailActivity.java:44)

              >>          at org.jbpm.jpdl.internal.activity.JpdlAutomaticActivity.execute(JpdlAutomaticActivity.java:15)

              >>          at org.jbpm.pvm.internal.model.op.ExecuteActivity.perform(ExecuteActivity.java:60)

              >>          at org.jbpm.pvm.internal.model.ExecutionImpl.performAtomicOperationSync(ExecutionImpl.java:656)

              >>...

               

              How to authenticate mail ?? do we need to send mail id , password to mail server?? I am not able to send mail to other domain..

               

              Thanks in advance...

              Rohit

              • 19. Re: Unable to set the mail configuration properties in JBPM 4.3
                jnhelal

                Hi

                 

                I found that, have a look: 

                http://forums.smartertools.com/p/20464/54164.aspx

                1 2 Previous Next