[ 
https://issues.apache.org/jira/browse/OOZIE-1755?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Robert Kanter resolved OOZIE-1755.
----------------------------------

    Resolution: Duplicate

> Docs Example for oozie.jms.producer.connection.properties is wrong
> ------------------------------------------------------------------
>
>                 Key: OOZIE-1755
>                 URL: https://issues.apache.org/jira/browse/OOZIE-1755
>             Project: Oozie
>          Issue Type: Bug
>          Components: docs
>    Affects Versions: 4.0.0
>            Reporter: Robert Kanter
>              Labels: newbie
>             Fix For: trunk
>
>
> The docs at 
> https://oozie.apache.org/docs/4.0.0/AG_Install.html#Notifications_Configuration
>  has
> {code:xml}
> <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>
> {code}
> However, this results in this exception when running a workflow:
> {noformat}
> 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)
> {noformat}
> The correct value, which oozie-default.xml has, is this:
> {code:xml}
> <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>
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to