You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@oozie.apache.org by "Robert Kanter (JIRA)" <ji...@apache.org> on 2014/03/24 21:36:42 UTC

[jira] [Updated] (OOZIE-1755) Docs Example for oozie.jms.producer.connection.properties is wrong

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

Robert Kanter updated OOZIE-1755:
---------------------------------

    Assignee:     (was: Robert Kanter)
      Labels: newbie  (was: )

> 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 have
> {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)