PubSub Runtime Exception - Scala + Akka

13 messages Options
Embed this post
Permalink
Bryan Germann

PubSub Runtime Exception - Scala + Akka

Reply Threaded More More options
Print post
Permalink
I'm trying to port over the PubSub example to Scala (with Akka), but
get the following runtime exception when I access
http://localhost:9998/foo/bar:

Atmosphere: com.sun.jersey.api.container.ContainerException: Method,
public org.atmosphere.jersey.Broadcastable
  comettest.PubSub.publish(org.atmosphere.cpr.Broadcaster,java.lang.String),
annotated with GET of resource,
  class comettest.PubSub, is not recognized as valid Java method
annotated with @HttpMethod.
Atmosphere:     at
com.sun.jersey.server.impl.model.method.ResourceHttpMethod.<init>(ResourceHttpMethod.java:92)

Any suggestions on how to fix this?

Full output here:
http://paste.pocoo.org/show/149248/

Code here:
http://paste.pocoo.org/show/149249/

Thanks,
Bryan

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Viktor Klang

Re: PubSub Runtime Exception - Scala + Akka

Reply Threaded More More options
Print post
Permalink
After some digging it seems like that's he error message Jersey gives when a parameter cannot be injected.

There can be a couple of different why that's the case,
is the Broadcaster injector present, correctly configured and loaded on Akka boot?

I'm sorry for not being more helpful, Jersey isn't really my domain :/

On Sat, Nov 7, 2009 at 6:13 PM, Bryan Germann <[hidden email]> wrote:
I'm trying to port over the PubSub example to Scala (with Akka), but
get the following runtime exception when I access
http://localhost:9998/foo/bar:

Atmosphere: com.sun.jersey.api.container.ContainerException: Method,
public org.atmosphere.jersey.Broadcastable
 comettest.PubSub.publish(org.atmosphere.cpr.Broadcaster,java.lang.String),
annotated with GET of resource,
 class comettest.PubSub, is not recognized as valid Java method
annotated with @HttpMethod.
Atmosphere:     at
com.sun.jersey.server.impl.model.method.ResourceHttpMethod.<init>(ResourceHttpMethod.java:92)

Any suggestions on how to fix this?

Full output here:
http://paste.pocoo.org/show/149248/

Code here:
http://paste.pocoo.org/show/149249/

Thanks,
Bryan

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]




--
Viktor Klang
| "A complex system that works is invariably
| found to have evolved from a simple system
| that worked." - John Gall

Blog: klangism.blogspot.com
Twttr: twitter.com/viktorklang
Code: github.com/viktorklang
Jeanfrancois Arcand

Re: PubSub Runtime Exception - Scala + Akka

Reply Threaded More More options
Print post
Permalink
In reply to this post by Bryan Germann
Salut,

Bryan Germann wrote:

> I'm trying to port over the PubSub example to Scala (with Akka), but
> get the following runtime exception when I access
> http://localhost:9998/foo/bar:
>
> Atmosphere: com.sun.jersey.api.container.ContainerException: Method,
> public org.atmosphere.jersey.Broadcastable
>   comettest.PubSub.publish(org.atmosphere.cpr.Broadcaster,java.lang.String),
> annotated with GET of resource,
>   class comettest.PubSub, is not recognized as valid Java method
> annotated with @HttpMethod.
> Atmosphere:     at
> com.sun.jersey.server.impl.model.method.ResourceHttpMethod.<init>(ResourceHttpMethod.java:92)

I looked at the jar you send me privately but I can't find the source
code. How do you define the method annotated with @Get?

Thanks

-- Jeanfrancois




>
> Any suggestions on how to fix this?
>
> Full output here:
> http://paste.pocoo.org/show/149248/
>
> Code here:
> http://paste.pocoo.org/show/149249/
>
> Thanks,
> Bryan
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Viktor Klang

Re: PubSub Runtime Exception - Scala + Akka

Reply Threaded More More options
Print post
Permalink


On Sat, Nov 7, 2009 at 11:59 PM, Jeanfrancois Arcand <[hidden email]> wrote:
Salut,


Bryan Germann wrote:
I'm trying to port over the PubSub example to Scala (with Akka), but
get the following runtime exception when I access
http://localhost:9998/foo/bar:

Atmosphere: com.sun.jersey.api.container.ContainerException: Method,
public org.atmosphere.jersey.Broadcastable
 comettest.PubSub.publish(org.atmosphere.cpr.Broadcaster,java.lang.String),
annotated with GET of resource,
 class comettest.PubSub, is not recognized as valid Java method
annotated with @HttpMethod.
Atmosphere:     at
com.sun.jersey.server.impl.model.method.ResourceHttpMethod.<init>(ResourceHttpMethod.java:92)

I looked at the jar you send me privately but I can't find the source code. How do you define the method annotated with @Get?


@Path("/")
class PubSub extends Actor {
    @GET
    @Suspend
    @Path("/{topic}")
    @Produces(Array("text/plain;charset=ISO-8859-1"))
    def subscribe(@PathParam("topic") topic: Broadcaster): Broadcastable = {
        new Broadcastable("",topic)
    }

    @GET
    @Path("/{topic}/{message}")
    @Produces(Array("text/plain;charset=ISO-8859-1"))
    @Broadcast
    def publish(@PathParam("topic") topic: Broadcaster,
                @PathParam("message") message: String): Broadcastable = {
        new Broadcastable(message,topic)
    }

    override def receive = { case _ => }
}

 

Thanks

-- Jeanfrancois






Any suggestions on how to fix this?

Full output here:
http://paste.pocoo.org/show/149248/

Code here:
http://paste.pocoo.org/show/149249/

Thanks,
Bryan

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]




--
Viktor Klang
| "A complex system that works is invariably
| found to have evolved from a simple system
| that worked." - John Gall

Blog: klangism.blogspot.com
Twttr: twitter.com/viktorklang
Code: github.com/viktorklang
Jeanfrancois Arcand

Re: PubSub Runtime Exception - Scala + Akka

Reply Threaded More More options
Print post
Permalink


Viktor Klang wrote:

>
>
> On Sat, Nov 7, 2009 at 11:59 PM, Jeanfrancois Arcand
> <[hidden email] <mailto:[hidden email]>> wrote:
>
>     Salut,
>
>
>     Bryan Germann wrote:
>
>         I'm trying to port over the PubSub example to Scala (with Akka), but
>         get the following runtime exception when I access
>         http://localhost:9998/foo/bar:
>
>         Atmosphere: com.sun.jersey.api.container.ContainerException: Method,
>         public org.atmosphere.jersey.Broadcastable
>          comettest.PubSub.publish(org.atmosphere.cpr.Broadcaster,java.lang.String),
>         annotated with GET of resource,
>          class comettest.PubSub, is not recognized as valid Java method
>         annotated with @HttpMethod.
>         Atmosphere:     at
>         com.sun.jersey.server.impl.model.method.ResourceHttpMethod.<init>(ResourceHttpMethod.java:92)
>
>
>     I looked at the jar you send me privately but I can't find the
>     source code. How do you define the method annotated with @Get?
>
>
>
> @Path("/")
> class PubSub extends Actor {
>     @GET
>     @Suspend
>     @Path("/{topic}")
>     @Produces(Array("text/plain;charset=ISO-8859-1"))

Should the @Produce be an array? I think it should be

      @Produce("text/plain;charset=ISO-8859-1")

A+

- Jeanfrancois



>     def subscribe(@PathParam("topic") topic: Broadcaster): Broadcastable = {
>         new Broadcastable("",topic)
>     }
>
>     @GET
>     @Path("/{topic}/{message}")
>     @Produces(Array("text/plain;charset=ISO-8859-1"))
>     @Broadcast
>     def publish(@PathParam("topic") topic: Broadcaster,
>                 @PathParam("message") message: String): Broadcastable = {
>         new Broadcastable(message,topic)
>     }
>
>     override def receive = { case _ => }
> }
>
>
>  
>
>
>     Thanks
>
>     -- Jeanfrancois
>
>
>
>
>
>
>         Any suggestions on how to fix this?
>
>         Full output here:
>         http://paste.pocoo.org/show/149248/
>
>         Code here:
>         http://paste.pocoo.org/show/149249/
>
>         Thanks,
>         Bryan
>
>         ---------------------------------------------------------------------
>         To unsubscribe, e-mail:
>         [hidden email]
>         <mailto:[hidden email]>
>         For additional commands, e-mail:
>         [hidden email]
>         <mailto:[hidden email]>
>
>
>     ---------------------------------------------------------------------
>     To unsubscribe, e-mail: [hidden email]
>     <mailto:[hidden email]>
>     For additional commands, e-mail: [hidden email]
>     <mailto:[hidden email]>
>
>
>
>
> --
> Viktor Klang
> | "A complex system that works is invariably
> | found to have evolved from a simple system
> | that worked." - John Gall
>
> Blog: klangism.blogspot.com <http://klangism.blogspot.com>
> Twttr: twitter.com/viktorklang <http://twitter.com/viktorklang>
> Code: github.com/viktorklang <http://github.com/viktorklang>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Viktor Klang

Re: PubSub Runtime Exception - Scala + Akka

Reply Threaded More More options
Print post
Permalink


On Sun, Nov 8, 2009 at 12:33 AM, Jeanfrancois Arcand <[hidden email]> wrote:


Viktor Klang wrote:



On Sat, Nov 7, 2009 at 11:59 PM, Jeanfrancois Arcand <[hidden email] <mailto:[hidden email]>> wrote:

   Salut,


   Bryan Germann wrote:

       I'm trying to port over the PubSub example to Scala (with Akka), but
       get the following runtime exception when I access
       http://localhost:9998/foo/bar:

       Atmosphere: com.sun.jersey.api.container.ContainerException: Method,
       public org.atmosphere.jersey.Broadcastable
        comettest.PubSub.publish(org.atmosphere.cpr.Broadcaster,java.lang.String),
       annotated with GET of resource,
        class comettest.PubSub, is not recognized as valid Java method
       annotated with @HttpMethod.
       Atmosphere:     at
       com.sun.jersey.server.impl.model.method.ResourceHttpMethod.<init>(ResourceHttpMethod.java:92)


   I looked at the jar you send me privately but I can't find the
   source code. How do you define the method annotated with @Get?



@Path("/")
class PubSub extends Actor {
   @GET
   @Suspend
   @Path("/{topic}")
   @Produces(Array("text/plain;charset=ISO-8859-1"))

Should the @Produce be an array? I think it should be

    @Produce("text/plain;charset=ISO-8859-1")
Salut!

No, it takes an array :(

I strongly suspect it has to do with the broadcaster parameter not being injected properly.
I don't have access to any testbed right now, so I cannot verify, and the error message Jersey gives is rather cryptic :/

Cheers,
 

A+

- Jeanfrancois



   def subscribe(@PathParam("topic") topic: Broadcaster): Broadcastable = {
       new Broadcastable("",topic)
   }

   @GET
   @Path("/{topic}/{message}")
   @Produces(Array("text/plain;charset=ISO-8859-1"))
   @Broadcast
   def publish(@PathParam("topic") topic: Broadcaster,
               @PathParam("message") message: String): Broadcastable = {
       new Broadcastable(message,topic)
   }

   override def receive = { case _ => }
}


 

   Thanks

   -- Jeanfrancois






       Any suggestions on how to fix this?

       Full output here:
       http://paste.pocoo.org/show/149248/

       Code here:
       http://paste.pocoo.org/show/149249/

       Thanks,
       Bryan

       ---------------------------------------------------------------------
       To unsubscribe, e-mail:
       [hidden email]
       <mailto:[hidden email]>

       For additional commands, e-mail:
       [hidden email]
       <mailto:[hidden email]>



   ---------------------------------------------------------------------
   To unsubscribe, e-mail: [hidden email]
   <mailto:[hidden email]>

   For additional commands, e-mail: [hidden email]
   <mailto:[hidden email]>





--
Viktor Klang
| "A complex system that works is invariably
| found to have evolved from a simple system
| that worked." - John Gall

Blog: klangism.blogspot.com <http://klangism.blogspot.com>
Twttr: twitter.com/viktorklang <http://twitter.com/viktorklang>
Code: github.com/viktorklang <http://github.com/viktorklang>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]




--
Viktor Klang
| "A complex system that works is invariably
| found to have evolved from a simple system
| that worked." - John Gall

Blog: klangism.blogspot.com
Twttr: twitter.com/viktorklang
Code: github.com/viktorklang
Jeanfrancois Arcand

Re: PubSub Runtime Exception - Scala + Akka

Reply Threaded More More options
Print post
Permalink


Viktor Klang wrote:

>
>
> On Sun, Nov 8, 2009 at 12:33 AM, Jeanfrancois Arcand
> <[hidden email] <mailto:[hidden email]>> wrote:
>
>
>
>     Viktor Klang wrote:
>
>
>
>         On Sat, Nov 7, 2009 at 11:59 PM, Jeanfrancois Arcand
>         <[hidden email]
>         <mailto:[hidden email]>
>         <mailto:[hidden email]
>         <mailto:[hidden email]>>> wrote:
>
>            Salut,
>
>
>            Bryan Germann wrote:
>
>                I'm trying to port over the PubSub example to Scala (with
>         Akka), but
>                get the following runtime exception when I access
>                http://localhost:9998/foo/bar:
>
>                Atmosphere:
>         com.sun.jersey.api.container.ContainerException: Method,
>                public org.atmosphere.jersey.Broadcastable
>                
>         comettest.PubSub.publish(org.atmosphere.cpr.Broadcaster,java.lang.String),
>                annotated with GET of resource,
>                 class comettest.PubSub, is not recognized as valid Java
>         method
>                annotated with @HttpMethod.
>                Atmosphere:     at
>              
>          com.sun.jersey.server.impl.model.method.ResourceHttpMethod.<init>(ResourceHttpMethod.java:92)
>
>
>            I looked at the jar you send me privately but I can't find the
>            source code. How do you define the method annotated with @Get?
>
>
>
>         @Path("/")
>         class PubSub extends Actor {
>            @GET
>            @Suspend
>            @Path("/{topic}")
>            @Produces(Array("text/plain;charset=ISO-8859-1"))
>
>
>     Should the @Produce be an array? I think it should be
>
>         @Produce("text/plain;charset=ISO-8859-1")
>
> Salut!
>
> No, it takes an array :(

Hum the Java version have:

>     @GET
>     @Suspend
>     @Path("/{topic}")
>     @Produces("text/plain;charset=ISO-8859-1")
>     public Broadcastable subscribe(@PathParam("topic") Broadcaster topic) {
>         return new Broadcastable("",topic);
>     }

where is my mistake :-)

Thanks!

-- Jeanfrancois


>
> I strongly suspect it has to do with the broadcaster parameter not being
> injected properly.
> I don't have access to any testbed right now, so I cannot verify, and
> the error message Jersey gives is rather cryptic :/
>
> Cheers,
>  
>
>
>     A+
>
>     - Jeanfrancois
>
>
>
>            def subscribe(@PathParam("topic") topic: Broadcaster):
>         Broadcastable = {
>                new Broadcastable("",topic)
>            }
>
>            @GET
>            @Path("/{topic}/{message}")
>            @Produces(Array("text/plain;charset=ISO-8859-1"))
>            @Broadcast
>            def publish(@PathParam("topic") topic: Broadcaster,
>                        @PathParam("message") message: String):
>         Broadcastable = {
>                new Broadcastable(message,topic)
>            }
>
>            override def receive = { case _ => }
>         }
>
>
>          
>
>            Thanks
>
>            -- Jeanfrancois
>
>
>
>
>
>
>                Any suggestions on how to fix this?
>
>                Full output here:
>                http://paste.pocoo.org/show/149248/
>
>                Code here:
>                http://paste.pocoo.org/show/149249/
>
>                Thanks,
>                Bryan
>
>              
>          ---------------------------------------------------------------------
>                To unsubscribe, e-mail:
>                [hidden email]
>         <mailto:[hidden email]>
>                <mailto:[hidden email]
>         <mailto:[hidden email]>>
>
>                For additional commands, e-mail:
>                [hidden email]
>         <mailto:[hidden email]>
>                <mailto:[hidden email]
>         <mailto:[hidden email]>>
>
>
>
>          
>          ---------------------------------------------------------------------
>            To unsubscribe, e-mail:
>         [hidden email]
>         <mailto:[hidden email]>
>            <mailto:[hidden email]
>         <mailto:[hidden email]>>
>
>            For additional commands, e-mail:
>         [hidden email]
>         <mailto:[hidden email]>
>            <mailto:[hidden email]
>         <mailto:[hidden email]>>
>
>
>
>
>
>         --
>         Viktor Klang
>         | "A complex system that works is invariably
>         | found to have evolved from a simple system
>         | that worked." - John Gall
>
>         Blog: klangism.blogspot.com <http://klangism.blogspot.com>
>         <http://klangism.blogspot.com>
>         Twttr: twitter.com/viktorklang <http://twitter.com/viktorklang>
>         <http://twitter.com/viktorklang>
>         Code: github.com/viktorklang <http://github.com/viktorklang>
>         <http://github.com/viktorklang>
>
>
>     ---------------------------------------------------------------------
>     To unsubscribe, e-mail: [hidden email]
>     <mailto:[hidden email]>
>     For additional commands, e-mail: [hidden email]
>     <mailto:[hidden email]>
>
>
>
>
> --
> Viktor Klang
> | "A complex system that works is invariably
> | found to have evolved from a simple system
> | that worked." - John Gall
>
> Blog: klangism.blogspot.com <http://klangism.blogspot.com>
> Twttr: twitter.com/viktorklang <http://twitter.com/viktorklang>
> Code: github.com/viktorklang <http://github.com/viktorklang>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Paul Sandoz

Re: PubSub Runtime Exception - Scala + Akka

Reply Threaded More More options
Print post
Permalink
In reply to this post by Viktor Klang
Some javascript/style in this post has been disabled (why?)

On Nov 7, 2009, at 7:41 PM, Viktor Klang wrote:

After some digging it seems like that's he error message Jersey gives when a parameter cannot be injected.



Yes, i think that is the case because a version of Atmosphere is used without the Broadcaster support. I need to improve the logging in this respect.

The clue is here:

INF [20091106-23:26:28.749] application: Adding the following classes declared in META-INF/services/jersey-server-components to the resource configuration:
INF [20091106-23:26:28.749] application:   class org.atmosphere.jersey.BroadcasterInjector
INF [20091106-23:26:28.749] application:   class org.atmosphere.jersey.BroadcasterLookupInjector
INF [20091106-23:26:28.749] application:   class org.atmosphere.jersey.AtmosphereResourceInjector
INF [20091106-23:26:28.749] application:   class org.atmosphere.jersey.AtmosphereResourceConfigurator
INF [20091106-23:26:28.749] application:   class org.atmosphere.core.BroadcasterInjector
INF [20091106-23:26:28.749] application:   class org.atmosphere.core.BroadcasterLookupInjector
INF [20091106-23:26:28.749] application:   class org.atmosphere.core.AtmosphereResourceInjector
INF [20091106-23:26:28.749] application:   class org.atmosphere.core.AtmosphereResourceConfigurator

There is no entry declared for:

  org.atmosphere.jersey.AtmosphereProviders$BroadcasterProvider

which supports the Broadcaster for parameters.

Also there is something suspicious about the above which indicates there are two Atmosphere jars in the classpath, because there is some repetition.

Paul.

There can be a couple of different why that's the case,
is the Broadcaster injector present, correctly configured and loaded on Akka boot?

I'm sorry for not being more helpful, Jersey isn't really my domain :/

On Sat, Nov 7, 2009 at 6:13 PM, Bryan Germann <[hidden email]> wrote:
I'm trying to port over the PubSub example to Scala (with Akka), but
get the following runtime exception when I access
http://localhost:9998/foo/bar:

Atmosphere: com.sun.jersey.api.container.ContainerException: Method,
public org.atmosphere.jersey.Broadcastable
 comettest.PubSub.publish(org.atmosphere.cpr.Broadcaster,java.lang.String),
annotated with GET of resource,
 class comettest.PubSub, is not recognized as valid Java method
annotated with @HttpMethod.
Atmosphere:     at
com.sun.jersey.server.impl.model.method.ResourceHttpMethod.<init>(ResourceHttpMethod.java:92)

Any suggestions on how to fix this?

Full output here:
http://paste.pocoo.org/show/149248/

Code here:
http://paste.pocoo.org/show/149249/

Thanks,
Bryan

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]




--
Viktor Klang
| "A complex system that works is invariably
| found to have evolved from a simple system
| that worked." - John Gall

Blog: klangism.blogspot.com
Twttr: twitter.com/viktorklang
Code: github.com/viktorklang

Viktor Klang

Re: PubSub Runtime Exception - Scala + Akka

Reply Threaded More More options
Print post
Permalink
In reply to this post by Jeanfrancois Arcand

I think it's varargs playing tricks, mate!

On Nov 8, 2009 1:04 AM, "Jeanfrancois Arcand" <[hidden email]> wrote:



Viktor Klang wrote:

> > > > On Sun, Nov 8, 2009 at 12:33 AM, Jeanfrancois Arcand <[hidden email] <mailto:[hidden email]..

Hum the Java version have:

   @GET
   @Suspend
   @Path("/{topic}")
   @Produces("text/plain;charset=ISO-8859-1")
   public Broadcastable subscribe(@PathParam("topic") Broadcaster topic) {
       return new Broadcastable("",topic);
   }

where is my mistake :-)

Thanks!

-- Jeanfrancois


> > I strongly suspect it has to do with the broadcaster parameter not being injected properly. > I ...

>        <mailto:[hidden email]>> > > > > > >        --        Viktor Klang >   ...

--------------------------------------------------------------------- To unsubscribe, e-mail: user...

Viktor Klang

Re: PubSub Runtime Exception - Scala + Akka

Reply Threaded More More options
Print post
Permalink
In reply to this post by Paul Sandoz

Thanks for confirming, Paul.

Is BroadcastProvider present in 0.4-SNAPSHOT at all?

On Nov 8, 2009 8:33 AM, "Paul Sandoz" <[hidden email]> wrote:


On Nov 7, 2009, at 7:41 PM, Viktor Klang wrote: > After some digging it seems like that's he error ...

Yes, i think that is the case because a version of Atmosphere is used without the Broadcaster support. I need to improve the logging in this respect.

The clue is here:

INF [20091106-23:26:28.749] application: Adding the following classes declared in META-INF/services/jersey-server-components to the resource configuration:
INF [20091106-23:26:28.749] application:   class org.atmosphere.jersey.BroadcasterInjector
INF [20091106-23:26:28.749] application:   class org.atmosphere.jersey.BroadcasterLookupInjector
INF [20091106-23:26:28.749] application:   class org.atmosphere.jersey.AtmosphereResourceInjector
INF [20091106-23:26:28.749] application:   class org.atmosphere.jersey.AtmosphereResourceConfigurator
INF [20091106-23:26:28.749] application:   class org.atmosphere.core.BroadcasterInjector
INF [20091106-23:26:28.749] application:   class org.atmosphere.core.BroadcasterLookupInjector
INF [20091106-23:26:28.749] application:   class org.atmosphere.core.AtmosphereResourceInjector
INF [20091106-23:26:28.749] application:   class org.atmosphere.core.AtmosphereResourceConfigurator

There is no entry declared for:

  org.atmosphere.jersey.AtmosphereProviders$BroadcasterProvider

which supports the Broadcaster for parameters.

Also there is something suspicious about the above which indicates there are two Atmosphere jars in the classpath, because there is some repetition.

Paul.

> There can be a couple of different why that's the case, > is the Broadcaster injector present, c...

Jeanfrancois Arcand

Re: PubSub Runtime Exception - Scala + Akka

Reply Threaded More More options
Print post
Permalink
Salut,

Viktor Klang wrote:
> Thanks for confirming, Paul.
>
> Is BroadcastProvider present in 0.4-SNAPSHOT at all?
>

Nope, it was added for 0.4.1 :-)

A+

-- jeanfrancois


>> On Nov 8, 2009 8:33 AM, "Paul Sandoz" <[hidden email]
>> <mailto:[hidden email]>> wrote:
>>
>>
>> On Nov 7, 2009, at 7:41 PM, Viktor Klang wrote: > After some digging
>> it seems like that's he error ...
>>
>> Yes, i think that is the case because a version of Atmosphere is used
>> without the Broadcaster support. I need to improve the logging in this
>> respect.
>>
>> The clue is here:
>>
>> INF [20091106-23:26:28.749] application: Adding the following classes declared in META-INF/services/jersey-server-components to the resource configuration:
>> INF [20091106-23:26:28.749] application:   class org.atmosphere.jersey.BroadcasterInjector
>> INF [20091106-23:26:28.749] application:   class org.atmosphere.jersey.BroadcasterLookupInjector
>> INF [20091106-23:26:28.749] application:   class org.atmosphere.jersey.AtmosphereResourceInjector
>> INF [20091106-23:26:28.749] application:   class org.atmosphere.jersey.AtmosphereResourceConfigurator
>> INF [20091106-23:26:28.749] application:   class org.atmosphere.core.BroadcasterInjector
>> INF [20091106-23:26:28.749] application:   class org.atmosphere.core.BroadcasterLookupInjector
>> INF [20091106-23:26:28.749] application:   class org.atmosphere.core.AtmosphereResourceInjector
>> INF [20091106-23:26:28.749] application:   class org.atmosphere.core.AtmosphereResourceConfigurator
>>
>> There is no entry declared for:
>>
>>   org.atmosphere.jersey.AtmosphereProviders$BroadcasterProvider
>>
>> which supports the Broadcaster for parameters.
>>
>> Also there is something suspicious about the above which indicates
>> there are two Atmosphere jars in the classpath, because there is some
>> repetition.
>>
>> Paul.
>>
>> > There can be a couple of different why that's the case, > is the
>> Broadcaster injector present, c...
>>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Viktor Klang

Re: PubSub Runtime Exception - Scala + Akka

Reply Threaded More More options
Print post
Permalink

So akka is most likely using 0.4-SNAPSHOT so thats why it doesnt work : )

On Nov 9, 2009 12:07 AM, "Jeanfrancois Arcand" <[hidden email]> wrote:

Salut,

Viktor Klang wrote: > > Thanks for confirming, Paul. > > Is BroadcastProvider present in 0.4-SNAPS...

Nope, it was added for 0.4.1 :-)

A+

-- jeanfrancois

>> On Nov 8, 2009 8:33 AM, "Paul Sandoz" <[hidden email] <mailto:[hidden email]>> wrote...

--------------------------------------------------------------------- To unsubscribe, e-mail: users-...

Paul Sandoz

Re: PubSub Runtime Exception - Scala + Akka

Reply Threaded More More options
Print post
Permalink
In reply to this post by Jeanfrancois Arcand

On Nov 9, 2009, at 12:07 AM, Jeanfrancois Arcand wrote:

> Salut,
>
> Viktor Klang wrote:
>> Thanks for confirming, Paul.
>> Is BroadcastProvider present in 0.4-SNAPSHOT at all?
>
> Nope, it was added for 0.4.1 :-)
>

We need to log the Atmosphere version number (cannot recall if it is  
in later releases), but we should log something like Akka :-)

INF [20091106-23:26:23.996] akka: ==============================
INF [20091106-23:26:23.996] akka:               __    __
INF [20091106-23:26:23.996] akka:        _____  |  | _|  | _______
INF [20091106-23:26:23.996] akka:        \__  \ |  |/ /  |/ /\__  \
INF [20091106-23:26:23.996] akka:         / __ \|    <|    <  / __ \_
INF [20091106-23:26:23.996] akka:        (____  /__|_ \__|_ \(____  /
INF [20091106-23:26:23.996] akka:             \/     \/    \/     \/
INF [20091106-23:26:23.997] akka:      Running version 0.6
INF [20091106-23:26:23.998] akka: ==============================

Paul.

> A+
>
> -- jeanfrancois
>
>
>>> On Nov 8, 2009 8:33 AM, "Paul Sandoz" <[hidden email] <mailto:[hidden email]
>>> >> wrote:
>>>
>>>
>>> On Nov 7, 2009, at 7:41 PM, Viktor Klang wrote: > After some  
>>> digging it seems like that's he error ...
>>>
>>> Yes, i think that is the case because a version of Atmosphere is  
>>> used without the Broadcaster support. I need to improve the  
>>> logging in this respect.
>>>
>>> The clue is here:
>>>
>>> INF [20091106-23:26:28.749] application: Adding the following  
>>> classes declared in META-INF/services/jersey-server-components to  
>>> the resource configuration:
>>> INF [20091106-23:26:28.749] application:   class  
>>> org.atmosphere.jersey.BroadcasterInjector
>>> INF [20091106-23:26:28.749] application:   class  
>>> org.atmosphere.jersey.BroadcasterLookupInjector
>>> INF [20091106-23:26:28.749] application:   class  
>>> org.atmosphere.jersey.AtmosphereResourceInjector
>>> INF [20091106-23:26:28.749] application:   class  
>>> org.atmosphere.jersey.AtmosphereResourceConfigurator
>>> INF [20091106-23:26:28.749] application:   class  
>>> org.atmosphere.core.BroadcasterInjector
>>> INF [20091106-23:26:28.749] application:   class  
>>> org.atmosphere.core.BroadcasterLookupInjector
>>> INF [20091106-23:26:28.749] application:   class  
>>> org.atmosphere.core.AtmosphereResourceInjector
>>> INF [20091106-23:26:28.749] application:   class  
>>> org.atmosphere.core.AtmosphereResourceConfigurator
>>>
>>> There is no entry declared for:
>>>
>>>  org.atmosphere.jersey.AtmosphereProviders$BroadcasterProvider
>>>
>>> which supports the Broadcaster for parameters.
>>>
>>> Also there is something suspicious about the above which indicates  
>>> there are two Atmosphere jars in the classpath, because there is  
>>> some repetition.
>>>
>>> Paul.
>>>
>>> > There can be a couple of different why that's the case, > is the  
>>> Broadcaster injector present, c...
>>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]