Ahhh, think I know what your problem is - in my example video notice how I start the sending code first... That's because they register the routing with rabbitmq; so perhaps that's the problem here. have you tried doing it with my code exactly as I do in the sample video? I'll check in the morning but there should be any problems with the example. I haven't tested it on windows but there should be no material difference.
As far as I remember you should have no problems using 1.0 as I didn't make any changes to lift-amqp recently... If your still having issues, please post your code - amqp is quite complex so it's difficult to understand exactly the error without eyeballing it. Cheers, Tim Sent from my iPhone On 7 Aug 2009, at 15:23, ph <pkirsa...@gmail.com> wrote: > > This is, actually, where I started. I took your example and compiled; > tried to change dependency on lift from 1.1-snapshot (as it is not in > repo) to 1.0 and to 1.1-M4; neither works. > When I'm trying to create a new instance of class (listener) in scala > console it just hangs, never riches RabbitMQ server. > This is on Windows. Have you tried your code on Windows? > > > On Aug 6, 8:10 pm, Timothy Perrett <timo...@getintheloop.eu> wrote: >> I wrote a fairly extensive blog about how to use the AMQP module - >> please >> take a read of it and watch the video: http://is.gd/CkPX- my >> example is >> also not a webapp, so its just what you want! >> >> The source code is also available which should help you. >> >> Cheers, Tim >> >> On 06/08/2009 23:55, "ph" <pkirsa...@gmail.com> wrote: >> >> >> >> >> >>> I'm trying to use lift-amqp library, so I created a maven test >>> project >>> (not Lift one, but just Scala with dependency to lift). >>> I'm using Eclipse with maven-scala-plugin on Windows. >> >>> I'm using almost exact copy of ExampleStringAMQPSender and >>> ExampleStringAMQPListener. And it behaves very weird: >>> compiling and running from maven (mvn scala:run ...) and jar (java - >>> jar ...) gives runtime error: >>> Exception in thread "main" >>> java.lang.reflect.InvocationTargetException >>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native >>> Method) >>> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown >>> Source) >>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown >>> Source) >>> at java.lang.reflect.Method.invoke(Unknown Source) >>> at com.simontuffs.onejar.Boot.run(Boot.java:306) >>> at com.simontuffs.onejar.Boot.main(Boot.java:159) >>> Caused by: java.lang.VerifyError: (class: net/liftweb/amqp/ >>> AMQPDispatcher, method: loop signature: ( >>> Lscala/List;)V) Can only throw Throwable objects >>> at s38.plm.amqp.listener.<init>(connection.scala:35) >>> at s38.plm.amqp.App$.<init>(App.scala:10) >>> at s38.plm.amqp.App$.<clinit>(App.scala) >>> at s38.plm.amqp.App.main(App.scala) >>> ... 6 more >> >>> Running from Eclipse as Scala application works. >>> Currently I'm using lift version 1.1-M4, but same was with lift 1.0. >> >>> Any thoughts? > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~----------~----~----~----~------~----~------~--~---