Uploaded image for project: 'Oozie'
  1. Oozie
  2. OOZIE-1755

Docs Example for oozie.jms.producer.connection.properties is wrong

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 4.0.0
    • 4.1.0
    • docs

    Description

      The docs at https://oozie.apache.org/docs/4.0.0/AG_Install.html#Notifications_Configuration has

      <property>
         <name>oozie.jms.producer.connection.properties</name>
         <value>
      default=java.naming.factory.initial#org.apache.activemq.jndi.ActiveMQInitialContextFactory;java.naming.provider.url#tcp://localhost:61616
         </value>
      </property>
      

      However, this results in this exception when running a workflow:

      SERVER[rkanter-5.ent.cloudera.com] USER[-] GROUP[-] TOKEN[-] APP[-] JOB[-] ACTION[-] Exception while establishing connection to JMS Server for [JMSConnectionInfo [jndiProperties=
                  default=java.naming.factory.initial#org.apache.activemq.jndi.ActiveMQInitialContextFactory;java.naming.provider.url#tcp://localhost:61616
              ]]
      javax.naming.NameNotFoundException: Name ConnectionFactory is not bound in this Context
      	at org.apache.naming.NamingContext.lookup(NamingContext.java:770)
      	at org.apache.naming.NamingContext.lookup(NamingContext.java:153)
      	at org.apache.naming.SelectorContext.lookup(SelectorContext.java:152)
      	at javax.naming.InitialContext.lookup(InitialContext.java:411)
      	at org.apache.oozie.jms.DefaultConnectionContext.createConnection(DefaultConnectionContext.java:49)
      	at org.apache.oozie.service.JMSAccessorService.createProducerConnectionContext(JMSAccessorService.java:285)
      	at org.apache.oozie.jms.JMSJobEventListener.sendMessage(JMSJobEventListener.java:78)
      	at org.apache.oozie.jms.JMSJobEventListener.serializeJMSMessage(JMSJobEventListener.java:118)
      	at org.apache.oozie.jms.JMSJobEventListener.onWorkflowJobEvent(JMSJobEventListener.java:105)
      	at org.apache.oozie.service.EventHandlerService$EventWorker.invokeJobEventListener(EventHandlerService.java:265)
      	at org.apache.oozie.service.EventHandlerService$EventWorker.run(EventHandlerService.java:238)
      	at org.apache.oozie.service.SchedulerService$2.run(SchedulerService.java:174)
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
      	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)
      	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)
      	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      	at java.lang.Thread.run(Thread.java:744)
      

      The correct value, which oozie-default.xml has, is this:

      <property>
         <name>oozie.jms.producer.connection.properties</name>
         <value>
      java.naming.factory.initial#org.apache.activemq.jndi.ActiveMQInitialContextFactory;java.naming.provider.url#tcp://localhost:61616;connectionFactoryNames#ConnectionFactory
         </value>
      </property>
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              rkanter Robert Kanter
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: