Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Critical bug: akka 2.1-M1 SILENTLY fails on object unmarshalling when type is not available in classpath
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  11 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
wolfy  
View profile  
 More options Aug 17 2012, 2:33 am
From: wolfy <pshirs...@gmail.com>
Date: Thu, 16 Aug 2012 23:33:06 -0700 (PDT)
Local: Fri, Aug 17 2012 2:33 am
Subject: Critical bug: akka 2.1-M1 SILENTLY fails on object unmarshalling when type is not available in classpath

I've wasted two days before I've found one mysterious problem.

Let we have two independent applications using akka-remote.
One on them has some private enum, containing private field (it's
important!).  And this application send instance of enum mentioned to
another one.

Another application tries to unmarshal message and akka SILENTLY fails. So,
programmer are in doubt: no log messages, no exceptions, not any visible
problem, but target application doesn't receive anything.

This problem doesn't occure when type of passed instance is available in
classpath of the second app, OR then it's enum which doesn't contain any
fields.

Please find full demo attached (full sources, buildable by maven).

To reproduce the problem you should compile application, then run
DummyServerBad, then run DummyClient. You will not see anything in
stdout/stderr of DummyServerBad, and will see timeout exception in stdout
of DummyClient.

Then try to do the same with DummyServerGood (same code, but located in
classpath of DummyClient). In this case message will be received by server
and client will receive answer.

*I think that Akka MUST do some verbose logging on ANY unmarshalling fail,
current behavior is the way to the hell of very-hard-to-debug errors.*

  00_serialization.zip
49K Download

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
√iktor Ҡlang  
View profile   Translate to Translated (View Original)
 More options Aug 17 2012, 3:16 am
From: √iktor Ҡlang <viktor.kl...@gmail.com>
Date: Fri, 17 Aug 2012 09:16:16 +0200
Local: Fri, Aug 17 2012 3:16 am
Subject: Re: [akka-user] Critical bug: akka 2.1-M1 SILENTLY fails on object unmarshalling when type is not available in classpath

Hi,

Set "akka.remote.log-remote-lifecycle-events" to "on" in your config.
These outputs were suppressed because people didn't want to get drowned in
remote logging.

I will clarify the description that property and add this to the FAQ.

Cheers,

--
Viktor Klang

Akka Tech Lead
Typesafe <http://www.typesafe.com/> - The software stack for applications
that scale

Twitter: @viktorklang


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
wolfy  
View profile  
 More options Aug 17 2012, 4:14 am
From: wolfy <pshirs...@gmail.com>
Date: Fri, 17 Aug 2012 01:14:38 -0700 (PDT)
Local: Fri, Aug 17 2012 4:14 am
Subject: Re: [akka-user] Critical bug: akka 2.1-M1 SILENTLY fails on object unmarshalling when type is not available in classpath

Thank you very much for you help, this option made everything clear.

But I think that such option MUST be turned on by default or described in
the first lines of the akka-remoting docs.

It's very easy to produce situation like this and it's very hard to debug
such issues.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
√iktor Ҡlang  
View profile   Translate to Translated (View Original)
 More options Aug 17 2012, 4:50 am
From: √iktor Ҡlang <viktor.kl...@gmail.com>
Date: Fri, 17 Aug 2012 10:50:32 +0200
Local: Fri, Aug 17 2012 4:50 am
Subject: Re: [akka-user] Critical bug: akka 2.1-M1 SILENTLY fails on object unmarshalling when type is not available in classpath

On Fri, Aug 17, 2012 at 10:14 AM, wolfy <pshirs...@gmail.com> wrote:
> Thank you very much for you help, this option made everything clear.

> But I think that such option MUST be turned on by default or described in
> the first lines of the akka-remoting docs.

> It's very easy to produce situation like this and it's very hard to debug
> such issues.

You're right, this thing is new for 2.1-M1, Roland is on the case.

Cheers,

--
Viktor Klang

Akka Tech Lead
Typesafe <http://www.typesafe.com/> - The software stack for applications
that scale

Twitter: @viktorklang


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Johan Nystrom  
View profile  
 More options Sep 26 2012, 4:50 am
From: Johan Nystrom <jtnyst...@gmail.com>
Date: Wed, 26 Sep 2012 01:50:58 -0700 (PDT)
Local: Wed, Sep 26 2012 4:50 am
Subject: Re: [akka-user] Critical bug: akka 2.1-M1 SILENTLY fails on object unmarshalling when type is not available in classpath

+1.
I am just starting out with Akka and remoting and I think I was bitten by
this. It seems that NotSerializableExceptions were not showing up until I
turned on this flag, and as a result messages were silently dropped.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
√iktor Ҡlang  
View profile  
 More options Sep 26 2012, 6:10 am
From: √iktor Ҡlang <viktor.kl...@gmail.com>
Date: Wed, 26 Sep 2012 12:10:34 +0200
Local: Wed, Sep 26 2012 6:10 am
Subject: Re: [akka-user] Critical bug: akka 2.1-M1 SILENTLY fails on object unmarshalling when type is not available in classpath

On Wed, Sep 26, 2012 at 10:50 AM, Johan Nystrom <jtnyst...@gmail.com> wrote:
> +1.
> I am just starting out with Akka and remoting and I think I was bitten by
> this. It seems that NotSerializableExceptions were not showing up until I
> turned on this flag, and as a result messages were silently dropped.

It wasn't fixed in M2?

--
Viktor Klang

Akka Tech Lead
Typesafe <http://www.typesafe.com/> - The software stack for applications
that scale

Twitter: @viktorklang


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Johan Nystrom  
View profile  
 More options Sep 27 2012, 10:44 pm
From: Johan Nystrom <jtnyst...@gmail.com>
Date: Thu, 27 Sep 2012 19:44:15 -0700 (PDT)
Local: Thurs, Sep 27 2012 10:44 pm
Subject: Re: [akka-user] Critical bug: akka 2.1-M1 SILENTLY fails on object unmarshalling when type is not available in classpath

I'm not completely confident about what I'm doing since I'm just starting
out, but I'm using akka-2.1-M2, and only after I turned on this
configuration flag did I start seeing messages of this kind:
[ERROR] [09/28/2012 11:40:24.143] [friedrich-4]
[NettyRemoteTransport(akka://friedr...@10.100.60.120:2552)]
RemoteServerError@akka://friedr...@10.100.60.120:2552]
Error[java.io.InvalidClassException: friedrich.testapp.ConcurDataIn; local
class incompatible: stream classdesc serialVersionUID =
2377218481518568126, local class serialVersionUID = 1711786384086678932]

Johan


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Johan Nystrom  
View profile  
 More options Sep 27 2012, 11:03 pm
From: Johan Nystrom <jtnyst...@gmail.com>
Date: Thu, 27 Sep 2012 20:03:44 -0700 (PDT)
Local: Thurs, Sep 27 2012 11:03 pm
Subject: Re: [akka-user] Critical bug: akka 2.1-M1 SILENTLY fails on object unmarshalling when type is not available in classpath

Actually, please disregard the comment I just posted, I was using M1, not
M2. Thanks.

Johan


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
√iktor Ҡlang  
View profile  
 More options Sep 28 2012, 4:34 am
From: √iktor Ҡlang <viktor.kl...@gmail.com>
Date: Fri, 28 Sep 2012 10:33:57 +0200
Local: Fri, Sep 28 2012 4:33 am
Subject: Re: [akka-user] Critical bug: akka 2.1-M1 SILENTLY fails on object unmarshalling when type is not available in classpath

So we're cool?

--
Viktor Klang

Akka Tech Lead
Typesafe <http://www.typesafe.com/> - The software stack for applications
that scale

Twitter: @viktorklang


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Johan Nystrom  
View profile  
 More options Sep 30 2012, 8:52 pm
From: Johan Nystrom <jtnyst...@gmail.com>
Date: Sun, 30 Sep 2012 17:52:21 -0700 (PDT)
Local: Sun, Sep 30 2012 8:52 pm
Subject: Re: [akka-user] Critical bug: akka 2.1-M1 SILENTLY fails on object unmarshalling when type is not available in classpath

It seems so. I don't have these problems with M2. Sorry to raise a false
alarm.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
√iktor Ҡlang  
View profile  
 More options Sep 30 2012, 9:35 pm
From: √iktor Ҡlang <viktor.kl...@gmail.com>
Date: Mon, 1 Oct 2012 03:35:14 +0200
Local: Sun, Sep 30 2012 9:35 pm
Subject: Re: [akka-user] Critical bug: akka 2.1-M1 SILENTLY fails on object unmarshalling when type is not available in classpath

On Mon, Oct 1, 2012 at 2:52 AM, Johan Nystrom <jtnyst...@gmail.com> wrote:
> It seems so. I don't have these problems with M2. Sorry to raise a false
> alarm.

Np. Happy hAkking!

--
Viktor Klang

Akka Tech Lead
Typesafe <http://www.typesafe.com/> - The software stack for applications
that scale

Twitter: @viktorklang


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »