1 Reply Latest reply on Apr 8, 2012 11:35 PM by gaohoward

    examples, queue is not found though it is in config

    rgupta75

      All my examples have trouble connecting to the exampleQueue.

      I cannot find the error (config looks okay)

      This is the same stack trace I get with most examnples

       

      compile:

           [echo] src.example.dir=C:\Users\RAVI\Documents\learning\heartland\software\hornetq-2.2.5.Final\examples\jms\queue\src

          [javac] Compiling 6 source files to C:\Users\RAVI\Documents\learning\heartland\software\hornetq-2.2.5.Final\examples\jms\queue\build\classes

          [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.5

          [javac] 1 warning

       

      runExample:

           [java] serverProps = -XX:+UseParallelGC -Xms256M -Xmx256M -XX:+AggressiveOpts -XX:+UseFastAccessorMethods -Dcom.sun.management.jmxremote -Djava.util.logging.config.file=C:\Users\RAVI\Documents\learning\heartland\software\hornetq-2

      Final\examples\common/config/logging.properties -Djava.naming.factory.initial=org.jnp.interfaces.NamingContextFactory -Djava.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces

           [java] Apr 08, 2012 3:29:15 PM org.hornetq.common.example.HornetQExample run

           [java] INFO: hornetq.example.runServer is true

           [java] Apr 08, 2012 3:29:15 PM org.hornetq.common.example.HornetQExample startServer

           [java] INFO: starting server with config 'server0' logServerOutput true

           [java] HornetQServer_0 err:[main] 15:29:16,187 WARNING [org.hornetq.core.deployers.impl.FileConfigurationParser]  AIO wasn't located on this platform, it will fall back to using pure Java NIO. If your platform is Linux, install Li

      to enable the AIO journal

           [java] HornetQServer_0 err:[main] 15:29:16,439 INFO [org.hornetq.core.server.impl.HornetQServerImpl]  live server is starting with configuration HornetQ Configuration (clustered=false,backup=false,sharedStore=true,journalDirectory

      /journal,bindingsDirectory=data/bindings,largeMessagesDirectory=data/largemessages,pagingDirectory=data/paging)

           [java] HornetQServer_0 err:[main] 15:29:16,440 INFO [org.hornetq.core.server.impl.HornetQServerImpl]  Waiting to obtain live lock

           [java] HornetQServer_0 err:[main] 15:29:16,464 INFO [org.hornetq.core.persistence.impl.journal.JournalStorageManager]  Using NIO Journal

           [java] HornetQServer_0 err:[main] 15:29:16,476 WARNING [org.hornetq.core.server.impl.HornetQServerImpl]  Security risk! It has been detected that the cluster admin user and password have not been changed from the installation defa

      Please see the HornetQ user guide, cluster chapter, for instructions on how to do this.

           [java] HornetQServer_0 err:[main] 15:29:16,619 INFO [org.hornetq.core.server.impl.FileLockNodeManager]  Waiting to obtain live lock

           [java] HornetQServer_0 err:[main] 15:29:16,620 INFO [org.hornetq.core.server.impl.FileLockNodeManager]  Live Server Obtained live lock

           [java] HornetQServer_0 err:[main] 15:29:17,489 INFO [org.hornetq.core.server.impl.HornetQServerImpl]  trying to deploy queue jms.queue.exampleQueue

           [java] HornetQServer_0 err:[main] 15:29:17,692 INFO [org.hornetq.core.remoting.impl.netty.NettyAcceptor]  Started Netty Acceptor version 3.2.3.Final-r${buildNumber} localhost:5445 for CORE protocol

           [java] HornetQServer_0 err:[main] 15:29:17,694 INFO [org.hornetq.core.server.impl.HornetQServerImpl]  Server is now live

           [java] HornetQServer_0 err:[main] 15:29:17,694 INFO [org.hornetq.core.server.impl.HornetQServerImpl]  HornetQ Server version 2.2.5.Final (HQ_2_2_5_FINAL_AS7, 121) [4680d31c-81ca-11e1-a6af-0024d7c52f1c] started

           [java] HornetQServer_0 out:STARTED::

           [java] Apr 08, 2012 3:29:17 PM org.hornetq.common.example.HornetQExample getContext

           [java] INFO: using server0\client-jndi.properties for jndi

           [java] Sent message: This is a text message

           [java] javax.jms.InvalidDestinationException: Queue jms.queue.exampleQueue does not exist

           [java]     at org.hornetq.core.protocol.core.impl.ChannelImpl.sendBlocking(ChannelImpl.java:286)

           [java]     at org.hornetq.core.client.impl.ClientSessionImpl.internalCreateConsumer(ClientSessionImpl.java:1685)

           [java]     at org.hornetq.core.client.impl.ClientSessionImpl.createConsumer(ClientSessionImpl.java:461)

           [java]     at org.hornetq.core.client.impl.ClientSessionImpl.createConsumer(ClientSessionImpl.java:427)

           [java]     at org.hornetq.core.client.impl.DelegatingSession.createConsumer(DelegatingSession.java:188)

           [java]     at org.hornetq.jms.client.HornetQSession.createConsumer(HornetQSession.java:537)

           [java]     at org.hornetq.jms.client.HornetQSession.createConsumer(HornetQSession.java:383)

           [java]     at org.hornetq.jms.client.HornetQSession.createConsumer(HornetQSession.java:353)

           [java]     at org.hornetq.jms.example.QueueExample.runExample(QueueExample.java:72)

           [java]     at org.hornetq.common.example.HornetQExample.run(HornetQExample.java:76)

           [java]     at org.hornetq.jms.example.QueueExample.main(QueueExample.java:35)

           [java] Caused by: HornetQException[errorCode=100 message=Queue jms.queue.exampleQueue does not exist]

           [java]     ... 11 more

           [java]

           [java] #####################

           [java] ###    FAILURE!   ###

           [java] #####################

           [java] Java Result: 1

       

      BUILD FAILED

      C:\Users\RAVI\Documents\learning\heartland\software\hornetq-2.2.5.Final\examples\jms\queue\build.xml:22: The following error occurred while executing this line:

      C:\Users\RAVI\Documents\learning\heartland\software\hornetq-2.2.5.Final\examples\common\build.xml:156: Example org.hornetq.jms.example.QueueExample failed

       

      Total time: 4 seconds

      Done