Commit graph

40 commits

Author SHA1 Message Date
Nafer Sanabria
3e016e7887 Update the maximum serializer identifier reserved for Akka 2017-03-07 18:45:45 -05:00
Konrad `ktoso` Malawski
d306700feb =doc Make it easier to disable Java serialization, #22283 (#22315)
* one single config option to disable it completely
* improve security documentation

Co-authored-by: Patrik Nordwall <patrik.nordwall@gmail.com>
2017-02-16 14:09:04 +01:00
Patrik Nordwall
db74c33130 remove deprecated constructor in serializers, #21423 2017-01-24 13:34:05 +01:00
Philippus Baalman
6c7085252a extended copyright into 2017 2017-01-04 17:37:15 +01:00
Patrik Nordwall
e494ec2183 catch NotSerializableException from deserialization, #20641
* to be able to introduce new messages and still support rolling upgrades,
  i.e. a cluster of mixed versions
* note that it's only catching NotSerializableException, which we already
  use for unknown serializer ids and class manifests
* note that it is not catching for system messages, since that could result
  in infinite resending
2016-12-16 20:14:37 +01:00
Konrad Malawski
e7ed0a2e6b +doc document ByteBufferSerializer for Artery #21601 2016-09-30 16:16:49 +02:00
Endre Sándor Varga
14e0188a1c 21202: Added more serializers for built-in stuff 2016-09-28 12:17:17 +02:00
Patrik Nordwall
d759f738ea add serialization api based on ByteBuffer, #20324
* new trait ByteBufferSerializer with fromBinary and toBinary
  methods that takes ByteBuffer, this can be mixed in to
  existing serializer without breaking compatibility
* implement the ByteBufferSerializer in the ByteArraySerializer
* minor adjustment of the class manifest cache
2016-05-27 12:26:08 +02:00
Wojciech Langiewicz
aa536b6f65 =doc fixed part of scaladoc warnings 2016-03-10 10:51:34 +01:00
Johannes Rudolph
b6cbc7f13a =all remove unused imports 2016-02-23 20:29:22 +01:00
Johan Andrén
62e30b3c08 Update copyrights and links to the new company name #19851 2016-02-23 12:58:39 +01:00
Prayag Verma
b7783968a0 =pro #19068 All copyrights ranges and single years updated to a range ending in 2016 2016-01-25 10:20:30 +01:00
Patrik Nordwall
740f006a38 +act #17576 Support serializer with string manifest
* useful when evolution is needed, e.g. Akka Persistence

* docs, comments, cluster-metrics and cluster-tools serializers
2015-06-01 13:45:31 +02:00
Roland Kuhn
18688fc84b = #17380 fix doc comments for java8 doclint
* actor and cluster-metrics comments
* agent/camel/cluster/osgi/persistence/remote comments
* comments in contrib/persistence-tck/multi-node/typed
2015-05-18 12:51:36 +02:00
Patrik Nordwall
b30e460be7 = #17342 Make 2.4 binary compatible with 2.3
(cherry picked from commit 89af8bdb90)

* remove final identifier in serializers

i* revert/deprecate ProtobufSerializer.ARRAY_OF_BYTE_ARRAY

* adding back compatible empty constructor in serializers

* make FSM.State compatible

* add back ActorPath.ElementRegex

* revert SocketOption changes and add SocketOptionV2
  see a6d3704ef6

* problem filter for ActorSystem and ActorPath

* problem filter for ByteString

* problem filter for deprecated Timeout methods

* BalancingPool companion

* ask

* problem filter for ActorDSL

* event bus

* exclude hasSubscriptions

* exclude some problems in testkit

* boundAddress and addressFromSocketAddress

* Pool nrOfInstances

* PromiseActorRef

* check with 2.3.9

* migration guide note

* explicit exclude of final class problems
2015-05-11 21:11:52 +02:00
Julian Tescher
00f6a58e7c Changes all occurances of Typesafe copyright to extend to 2015 2015-03-10 14:12:19 -07:00
Andrei Pozolotin
6332f888ce +all #16632 Make serialization identifiers configurable in reference.conf 2015-03-05 11:55:05 -06:00
Adam Voss
cce29dfa51 Changes all occurances of Typesafe copyright to extend to 2014. 2014-02-04 21:20:09 -06:00
Roland
bcfbea42c1 fix formatting of Java API in doc comments + genjavadoc 0.3 2013-03-07 09:05:55 +01:00
Viktor Klang
adfeb2c1f0 #2879 - updating copyright info 2013-01-09 11:38:00 +01:00
Viktor Klang
146834832d #2810 - Adding a Java API for JavaSerializer.currentSystem + added tests 2012-12-18 01:25:21 +01:00
Viktor Klang
88bc75daf0 #2499 - Adding ByteArraySerializer and change ReflectiveDynamicAccess to use Class.forName with classloader instead of classloader loadClass directly. 2012-09-27 00:59:33 +02:00
Viktor Klang
94e71b7a18 Huge refactor + preparing for binary compatibility, last stretch for akka-actor.jar... 2012-05-18 19:25:43 +02:00
Viktor Klang
69195dae1f Stab at rectifying the TypedActor Serialization issue 2012-02-20 11:06:12 +01:00
Roland
09897459d6 fix up Java API for serializers (both use and implement) 2012-02-10 12:45:22 +01:00
Roland
d2f28a06cd Merge remote-tracking branch 'origin/master' into wip-1750-remove-ReflectiveAccess-∂π 2012-02-10 11:41:47 +01:00
Roland
dca309c535 incorporate Patrik’s feedback
- rename to DynamicAccess
- rename to createInstanceFor / createClassFor
- fix a few little things
2012-02-10 11:36:23 +01:00
Roland
b193bcee04 incorporate Viktor’s review 2012-02-09 19:26:02 +01:00
Roland
2ce47d6bb5 Bye-bye ReflectiveAccess, introducing PropertyMaster, see #1750
- PropertyMaster is the only place in Akka which calls
  ClassLoader.getClass (apart from kernel, which might be special)
- all PropertyMaster methods (there are only three) take a ClassManifest
  of what is to be constructed, and they verify that the obtained object
  is actually compatible with the required type

Other stuff:
- noticed that I had forgotten to change to ExtendedActorSystem when
  constructing Extensions by ExtensionKey (damn you, reflection!)
- moved Serializer.currentSystem into JavaSerializer, because that’s the
  only one needing it (it’s only used in readResolve() methods)
- Serializers are constructed now with one-arg constructor taking
  ExtendedActorSystem (if that exists, otherwise no-arg as before), to
  allow JavaSerializer to do its magic; possibly necessary for others as
  well
- Removed all Option[ClassLoader] signatures
- made it so that the ActorSystem will try context class loader, then
  the class loader which loaded the class actually calling into
  ActorSystem.apply, then the loader which loaded ActorSystemImpl
- for the second of the above I added a (reflectively accessed hopefully
  safe) facility for getting caller Class[_] objects by using
  sun.reflect.Reflection; this is optional an defaults to None, e.g. on
  Android, which means that getting the caller’s classloader is done on
  a best effort basis (there’s nothing we can do because a StackTrace
  does not contain actual Class[_] objects).
- refactored DurableMailbox to contain the owner val and use that
  instead of declaring that in all subclasses
2012-02-09 11:56:43 +01:00
Patrik Nordwall
9c8c0d42c5 Add @SerialVersionUID to Serializable classes. See #1786
* @SerialVersionUID(1L)
* UntypedActorFactory serialization, and test
* Removed Serializable from Serializers
2012-02-07 10:05:54 +01:00
Viktor Klang
149fbea5a7 Updating Copyright as per #1660 2012-01-19 18:21:06 +01:00
Viktor Klang
fbb7cb20a1 Adding Java docs for Serialization, and discovered some flaws with the Java API, that have been fixed 2011-12-30 22:06:41 +01:00
Viktor Klang
e78739f7e5 Adding more docs to Serialization and making sure that the Protobuf stuff gets its manifests 2011-12-30 14:15:27 +01:00
Viktor Klang
cffe60bf43 Closing #1584 and #1585 2011-12-30 14:15:26 +01:00
Peter Vlugter
340ed11de5 Reformat with scalariform 2011-07-26 18:33:59 +12:00
Viktor Klang
fe1051af30 Adding some ScalaDoc to the Serializer 2011-07-19 19:28:17 +02:00
Viktor Klang
bb558c03f4 Switching to Serializer.Identifier for storing within ZK 2011-07-19 17:17:04 +02:00
Viktor Klang
e06983e989 Optimizing serialization of TypedActor messages by adding an identifier to all Serializers so they can be fetched through that at the other end 2011-07-19 14:20:18 +02:00
Viktor Klang
9d71be7778 Updating copyright section to Typesafe Inc. etc 2011-07-14 16:03:08 +02:00
Debasish Ghosh
40d1ca6da2 Issue #595: Pluggable serializers - basic implementation 2011-06-07 06:36:21 +05:30