POF serialization error

Hi, I get the following error while performing serialization of POF. Help, please

Impossible
to com.tangosol.io.pof.PofBufferWriter$ UserTypeWriter.isEvolvable (PofBufferWriter.java:2753)
to com.tangosol.io.pof.PofBufferWriter$ UserTypeWriter.isEvolvable (PofBufferWriter.java:2753)
to com.tangosol.io.pof.PofBufferWriter$ UserTypeWriter.isEvolvable (PofBufferWriter.java:2753)
to com.tangosol.io.pof.PofBufferWriter$ UserTypeWriter.isEvolvable (PofBufferWriter.java:2753)
to com.tangosol.io.pof.PofBufferWriter$ UserTypeWriter.isEvolvable (PofBufferWriter.java:2753)
to com.tangosol.io.pof.PofBufferWriter$ UserTypeWriter.isEvolvable (PofBufferWriter.java:2753)
to com.tangosol.io.pof.PofBufferWriter$ UserTypeWriter.isEvolvable (PofBufferWriter.java:2753)
to com.tangosol.io.pof.PofBufferWriter$ UserTypeWriter.isEvolvable (PofBufferWriter.java:2753)
to com.tangosol.io.pof.PofBufferWriter$ UserTypeWriter.isEvolvable (PofBufferWriter.java:2753)
to com.tangosol.io.pof.PofBufferWriter$ UserTypeWriter.isEvolvable (PofBufferWriter.java:2753)
to com.tangosol.io.pof.PofBufferWriter$ UserTypeWriter.isEvolvable (PofBufferWriter.java:2753)
to com.tangosol.io.pof.PofBufferWriter$ UserTypeWriter.isEvolvable (PofBufferWriter.java:2753)
to com.tangosol.io.pof.PofBufferWriter$ UserTypeWriter.isEvolvable (PofBufferWriter.java:2753)
to com.tangosol.io.pof.PofBufferWriter$ UserTypeWriter.isEvolvable (PofBufferWriter.java:2753)
to com.tangosol.io.pof.PofBufferWriter$ UserTypeWriter.isEvolvable (PofBufferWriter.java:2753)
to com.tangosol.io.pof.PofBufferWriter$ UserTypeWriter.isEvolvable (PofBufferWriter.java:2753)
to com.tangosol.io.pof.PofBufferWriter$ UserTypeWriter.isEvolvable (PofBufferWriter.java:2753)
to com.tangosol.io.pof.PofBufferWriter$ UserTypeWriter.isEvolvable (PofBufferWriter.java:2753)
to com.tangosol.io.pof.PofBufferWriter$ UserTypeWriter.isEvolvable (PofBufferWriter.java:2753)
to com.tangosol.io.pof.PofBufferWriter$ UserTypeWriter.isEvolvable (PofBufferWriter.java:2753)
to com.tangosol.io.pof.PofBufferWriter$ UserTypeWriter.isEvolvable (PofBufferWriter.java:2753)
to com.tangosol.io.pof.PofBufferWriter$ UserTypeWriter.isEvolvable (PofBufferWriter.java:2753)
to com.tangosol.io.pof.PofBufferWriter$ UserTypeWriter.isEvolvable (PofBufferWriter.java:2753)
to com.tangosol.io.pof.PofBufferWriter$ UserTypeWriter.isEvolvable (PofBufferWriter.java:2753)
to com.tangosol.io.pof.PofBufferWriter$ UserTypeWriter.isEvolvable (PofBufferWriter.java:2753)
to com.tangosol.io.pof.PofBufferWriter$ UserTypeWriter.isEvolvable (PofBufferWriter.java:2753)
to com.tangosol.io.pof.PofBufferWriter$ UserTypeWriter.isEvolvable (PofBufferWriter.java:2753)
to com.tangosol.io.pof.PofBufferWriter$ UserTypeWriter.isEvolvable (PofBufferWriter.java:2753)
to com.tangosol.io.pof.PofBufferWriter$ UserTypeWriter.isEvolvable (PofBufferWriter.java:2753)
to com.tangosol.io.pof.PofBufferWriter$ UserTypeWriter.isEvolvable (PofBufferWriter.java:2753)
to com.tangosol.io.pof.PofBufferWriter$ UserTypeWriter.isEvolvable (PofBufferWriter.java:2753)
to com.tangosol.io.pof.PofBufferWriter$ UserTypeWriter.isEvolvable (PofBufferWriter.java:2753)
to com.tangosol.io.pof.PofBufferWriter$ UserTypeWriter.isEvolvable (PofBufferWriter.java:2753)
to com.tangosol.io.pof.PofBufferWriter$ UserTypeWriter.isEvolvable (PofBufferWriter.java:2753)
to com.tangosol.io.pof.PofBufferWriter$ UserTypeWriter.isEvolvable (PofBufferWriter.java:2753)
to com.tangosol.io.pof.PofBufferWriter$ UserTypeWriter.isEvolvable (PofBufferWriter.java:2753)
to com.tangosol.io.pof.PofBufferWriter$ UserTypeWriter.isEvolvable (PofBufferWriter.java:2753)
to com.tangosol.io.pof.PofBufferWriter$ UserTypeWriter.isEvolvable (PofBufferWriter.java:2753)
to com.tangosol.io.pof.PofBufferWriter$ UserTypeWriter.isEvolvable (PofBufferWriter.java:2753)
to com.tangosol.io.pof.PofBufferWriter$ UserTypeWriter.isEvolvable (PofBufferWriter.java:2753)
to com.tangosol.io.pof.PofBufferWriter$ UserTypeWriter.isEvolvable (PofBufferWriter.java:2753)
to com.tangosol.io.pof.PofBufferWriter$ UserTypeWriter.isEvolvable (PofBufferWriter.java:2753)
to com.tangosol.io.pof.PofBufferWriter$ UserTypeWriter.isEvolvable (PofBufferWriter.java:2753)

Hello

I guess that you have a cyclical reference in your object graph. You can activate references, a feature that we've added coherence 3.7.1 ([url http://www.youtube.com/watch?v=qepCoiMICeQ&feature=youtube_gdata] here's the screencast), or modify your serialization code to delete the call from cyclical Serialization.

Thank you
Harvey

Published by: Harvey Raja January 9, 2012 09:39

Tags: Fusion Middleware

Similar Questions

  • POF serialization tests

    Hello

    I would write an integration POF serialization test.

    Is it possible to get together to serialize all objects, that I have named cache?
    Or I have to start two nodes (in two class loaders) in my test?

    If you want to just test your classes POF serialization, you can simply serialize, deserialize and verify the results

    for example

    MyPofClass original = new MyPofClass();
    // populate fields of original
    
    // Serialize to Binary
    ConfigurablePofContext pofContext = new ConfigurablePofContext("name of pof config file .xml");
    Binary binary = ExternalizableHelper.toBinary(original, pofCOntext);
    
    // Deserialize back to original class
    MyPofClass deserialized = ExternalizableHelper.fromBinary(binary, pofContext);
    
    // now do some asserts to check that the fields in the original match the fields in the deserialized instance
    

    I usually do this test for all, but the classes simpler POF, I write.

    JK

  • POF serialization of a collection

    I'm trying pof serialize a std::vector of objects and send it via expand cache where I should be able to recover my vector in a form of collection of java. What is the best way to do it. C++ STL consistency is nice!

    Published by: dadashy on October 15, 2010 01:39

    Hi Dadashy,

    Coherence C++ includes no direct support for POF serialize a std::vector, but it is possible to get what you want without too much effort. The fist thing you should do is to ensure that there are POF serializers for the type of element in the vector T, before to worry about serialization of a 'collection' of Ts, see http://download.oracle.com/docs/cd/E15357_01/coh.360/e15726/cpp_integrationobj.htm#BAJJEDIE for more information about how to perform this step.

    Once you have made your POF Ts serializable, you can realize that you could choose to apply the same technique to make std::vector POF serializable. Although this approach might work, she would not reach your desired effect, which would act as a collection of Java on the other side. To do this, you have a few options. By far the simplest option is to browse your std::vector and copy items in one of the various implementations of collection that are provided with consistent C++, coherence::util:ArrayList aka CircularArrayList would be a good candidate. A more complex, but potentially more effective alternative would be to write a std::vector wrapper that implements the coherence::util:Collection or coherence::util:List. The later approach is certainly more complex, but if your items T extend coherence::lang:Object or use the coherence::lang:Managed, then it offers performance benefits over simply copy the content in an ArrayList.

    With two approaches you will end up with an object that implements the interface coherence::util:Collection, and this can be written to the stream via PofWrite::writeCollection POF and materialize on the coast of Java as a java.util.Collection. Obviously, the process must be reversed during deserialization, but both of the above techniques work perfectly for deserialization as well.

    Mark
    The Oracle coherence

  • Substitution of pof serialization in subclasses?

    When subclassing a class to support serialization POF how would I know what I can pass for extra items that are added by the subclass of the index property assuming that I don't have the source code of the superclass (or the information exists in the javadoc of the superclass)?

    For example, it is possible to read the last index of the property is used in the stream (PofWriter) somehow?

    I tried to find something in the interface PofContext and PofWriter, but do not see anything that looked relevant...

    Examples of situations were this would be the case, for example, create a custom filter by using a consistency when built in filter as a base class.

    Or have I missed something obvious about how to manage the subclassing and POF serialization which makes it a non-issue?

    Best regards
    Magnus

    MagnusE wrote:
    Thank you for the VERY quick response Robert - I've hardly posted before you answered :-)

    I think it sounds a bit fragile to depend on documntation for it (on the other hand, most of the cases to extend the classes isn't the source to are more or less fragile!).

    Because it sounds not to complicated to provide a method that returns the index property more high so far used the stream (or y at - there some inherent problem with this solution?) I prefer this solution simply document.

    Hi Magnus,

    On the contrary.

    IMHO, documentation of the first index for the property that a subclass can use is the one right way to do it.
    This is because it is perfectly valid to encode null values by not writing anything to the PofWriter. Therefore, it is possible that the index of the property that was last written is not the biggest one that can always be used, whereby cases you can just simply continue value, following the one that was written last, because it depends on the State of the superclass and therefore it is not constant, even if the mapping index of the property attributes should not depend on State. At least the intention of the specification and the sense of ongoing development are that the mapping is constant and dependencies will be most likely introduced in future versions (sorry, can't say something more specific about it, yet).

    In regard to her also provides the method which returns this CONSTANT value, which can also be requested, but the last written property index is not a good candidate for your application.

    For Evolvable filmmakers, it's even more complicated, because all the properties of later versions more follow all the properties of the previous versions, otherwise they end up in the rest and so Evolvable cannot function as it should. It also means that all the properties of all the subclasses of later versions of implementation must have more large index of property than all previous versions of implementation properties.

    So for implementers Evolvable, the first index of the property that a subclass can use for each version of the implementation needs to be documented separately.

    In fact, this is also a theoretical problem, because it also means that the superclass must contain information from all of the subclasses, which is impossible to do correctly when the subclass is another supplier and not the seller of the superclass. The seller of the superclass may allocate a big gap for the properties of the subclass, but when another attribute is added to a later version of the superclass, it is theoretically possible that the gap is not enough.

    Best regards

    Robert

  • Aggregators and POF serialization

    Hello

    We have a problem where we have to find the "Top N" of something - for example, "go and find the 5 widgits albums IDs in terms of sales.

    Where a Widgit's...

    Widgit ID, Description, number of unit sold

    To do this, I wrote an aggregator. I had this work very well when I got the value of N hardcoded.

    So I wanted to make sure the customer can place the value of N, i.e....

    AGGR TopNWidgitsAggregator = new TopNWidgitsAggregator (100); You can find the top 100

    We use so of course, I need to serialize and deserialize my attribute of "N" POF.

    I extend AbstractAggregator, the only way I could do it was by substituting the writeExternal and readExternal methods...

    @Override
    Public Sub readExternal (in PofReader) throws IOException {}
    super.readExternal (in);
    n = in.readInt (3);
    }

    @Override
    Public Sub writeExternal (PofWriter out) throws IOException {}
    super.writeExternal (out);
    out.writeInt (3, n);
    }

    It all works very well. The only thing I don't like it is I had to hardcode the value '3 '. I discovered that I had to use '3' by accessing AbstractAggregator.readExternal in Eclipse and then work the methods of 'reading' how he plays against the serializer.

    (In fact, now I think, my value should probably be 2 because the AbstractAggregator starts at index 0 of the POF)

    It's a bit ugly and she wondered if there was another way to do it.

    If this isn't the case, I would have thought that the AbstractAggregator would have provided a constant (called NEXT_POF_FIELD or something) so that you wouldn't hardcode the number '3' (or 2!) everywhere.

    I'm doing something wrong?

    Thanks in advance,

    -Bret

    Bret Calvey wrote:
    Hello

    We have a problem where we have to find the "Top N" of something - for example, "go and find the 5 widgits albums IDs in terms of sales.

    Where a Widgit's...

    Widgit ID, Description, number of unit sold

    To do this, I wrote an aggregator. I had this work very well when I got the value of N hardcoded.

    So I wanted to make sure the customer can place the value of N, i.e....

    AGGR TopNWidgitsAggregator = new TopNWidgitsAggregator (100); You can find the top 100

    We use so of course, I need to serialize and deserialize my attribute of "N" POF.

    I extend AbstractAggregator, the only way I could do it was by substituting the writeExternal and readExternal methods...

    @Override
    Public Sub readExternal (in PofReader) throws IOException {}
    super.readExternal (in);
    n = in.readInt (3);
    }

    @Override
    Public Sub writeExternal (PofWriter out) throws IOException {}
    super.writeExternal (out);
    out.writeInt (3, n);
    }

    It all works very well. The only thing I don't like it is I had to hardcode the value '3 '. I discovered that I had to use '3' by accessing AbstractAggregator.readExternal in Eclipse and then work the methods of 'reading' how he plays against the serializer.

    (In fact, now I think, my value should probably be 2 because the AbstractAggregator starts at index 0 of the POF)

    It's a bit ugly and she wondered if there was another way to do it.

    If this isn't the case, I would have thought that the AbstractAggregator would have provided a constant (called NEXT_POF_FIELD or something) so that you wouldn't hardcode the number '3' (or 2!) everywhere.

    I'm doing something wrong?

    Thanks in advance,

    -Bret

    Hi Bret,

    I don't know if it is 3 or 2 out of my head. It would be really good if classes described their use of POF property (in my frame of generator of PofSerializer I actually generate annotations with the last id of property is used).

    However, from there 3.6 is a way to make this kind of properly.

    PofReader/PofWriter interface defines a method createNestedPofReader (int) /createNestedPofWriter, (int) which can be used to start a POF stream embedded which you can pass to the method of the superclass readExternal/writeExternal methods. In this way, you control the assignment of POF the property id.

    public YourAggregator extends AbstractAggregator {
    
           // constructor and empty constructor are omitted, but you still need both of them
    
         @Override
         public void readExternal(PofReader reader) throws IOException {
    
              PofReader inner = reader.createNestedPofReader(0);
    
              super.readExternal(inner);
    
              // you can start with 1, 0 was taken by the inner pof stream
              reader.readInt(1);
         }
    
         @Override
         public void writeExternal(PofWriter writer) throws IOException {
    
              PofWriter inner = writer.createNestedPofWriter(0);
    
              super.writeExternal(inner);
    
              // you can start with 1, 0 was taken by the inner pof stream
              writer.writeInt(1, 6);
         }
    
    }
    

    You should be aware, but that by using a stream of nested data POF resumes a few bytes more compared to simply know what property id you need to start with.

    Best regards

    Robert

    Published by: robvarga on May 2, 2012 20:34

  • Establishment of extractors when pof serialization is enabled

    We are currently trying to move our app to XmlBean as the serialization mechanism to Pof. I am facing some problems with the Juicers we currently have in our application. To use serialization POF, we are implementing the PofSerializer Interface.

    I have an extractor like this:

    SerializableAttribute public class TransactionExtractor extends AbstractExtractor {}

    private public static final long serialVersionUID = 1 L;

    @Override
    public extracted Object (Object obj) {}
    The transaction transaction = null;
    If {(obj instanceof trade)
    Trade trade = obj (trade);
    transaction = new Transaction();
    transaction.setPrice (Trade.getPrice ());
    }
    return the transaction;
    }

    }

    ----------------

    The object 'Transaction' is:

    Transaction/public class extends XmlBean {}
    price Double private;

    {} public Double getPrice()
    return of the price;
    }

    {} public void setPrice (Double rate)
    This.Price = price;
    }

    }

    --------------------------------------------

    Now I run the following test case:

    String key = "key";
    NamedCache cache = CacheFactory.getCache (this.getClass () .getName ());
    cache.put (key, createTrade());

    Map queryResultMap = cache.invokeAll (new AlwaysFilter(), new ExtractorProcessor (new TransactionExtractor()));
    Transaction transaction = queryResultMap.get (key) (Transaction);
    assertNotNull (transaction);


    This test scenario pass without any problems. I expect it to fail because the Extractor is not portable. It is not necessary that my portable Extractor (TransactionExtractor)? Or is that what happens in the same JVM and therefore there was no need to serialize and deserialize?

    If I want to do this extractor a PofExtractor, will be something like this work or do I do something too:

    SerializableAttribute public class TransactionExtractor extends PofExtractor {}

    ----
    }

    Published by: starting October 11, 2011 02:07

    Published by: starting October 11, 2011 02:07

    Published by: starting October 11, 2011 02:08

    Hi beginner,

    If you run your test in a single machine virtual JAVA then the TransactionExtractor will not need to be serialized and therefore to pass your test.

    It is a very common problem where developers run their tests in a single JAVA virtual machine, and then everything falls during the first time they try a real cluster. There are different ways to test the code of consistency in a cluster. The best I've found is to start a group of several nodes of consistency all isolated in a single JAVA virtual machine.

    According to the consistency that you use, there is little in the last Commons code incubator that works with 3.7 that allows you to build and perform (run) several nodes in a cluster for testing. I recently sent a few additions to this code to Oracle to allow the "nodes" to run embedded in a single JAVA virtual machine. This allows system/acceptance tests coded as unit tests and run a test suite in single JVM without the danger of the orphaned process left lying around if your tests are dying. I don't know if or when this code could get into a real release of incubator but all the world wants to he can have. It could probably be back-door to older versions too.

    JK

    Published by: Jonathan.Knight on October 11, 2011 11:04

  • The components of repetitive serialization error

    Just, I was working on a project and first encountered an error and struck me out of the application.

    Screen Shot 2016-07-08 at 4.23.02 PM.png

    Now I can no longer open this project but other projects always open. Recovery, he did does not either.

    Running on Mac OS X El Capitan 10.11.5 Pro.

    First release using 2015.0.1. Impossible to pass at this time because it is in a University and software is not connected to the creative Cloud.

    Please help because I'm on a deadline in this edition, and it's a very big project. I can try using another computer as most of the elements are on external drives, but I prefer not to go through this. Thank you!

    What seems to work with these is just copy and paste to a new sequence that I finally did compared to the overall project of duplication. Still don't know why it is specific to each sequence but that seems to be work around at the moment.

  • Some serialization errors

    I want to serialize a few video clips one by one. The next load when the previous one has completed its range of time and raises an event. Each video clip load and complete its time and discharge line. But actually even after unloading, it continues on event dispatching

    dispatchEvent (new Event ("animationComplete"));

    main Game.as.

    package location {}

    import flash.display.MovieClip;

    import flash.events. *;

    import flash.display.Loader;

    import flash.display.LoaderInfo;

    Game/public class extends MovieClip {}

    elements of the game

    var preloader: Preloader.

    var intro: Intro;

    var startGame:StartGame;

    var: help;

    var gamePlay:GamePlay;

    var looseScreen:LooseScreen;

    var winScreen:WinScreen;

    var: result;

    var curElement: String;

    public void Game() {}

    This.preloader = New Preloader();

    This.Intro = new Intro();

    this.startGame = new StartGame();

    This.Help = new Help();

    this.gamePlay = new GamePlay();

    this.looseScreen = new LooseScreen();

    this.winScreen = new WinScreen();

    This.Result = new result ();

    curElement = "preloader";

    stage.addChild (preloader);

    Preloader.x = 100;

    Preloader.y = 100;

    preloader.addEventListener ("animationComplete", nextElement);

    }

    public void nextElement(e:Event):void {}

    trace ("next item called..." + curElement);

    If (curElement == "preloader") {}

    Intro

    preloader.removeEventListener ("animationComplete", nextElement);

    stage.removeChild (preloader);

    curElement = "intro";

    stage.addChild (intro);

    Intro.x = 100;

    Intro.y = 150;

    intro.addEventListener ("animationComplete", nextElement);

    } Else if (curElement == "intro") {}

    startGame

    intro.removeEventListener ("animationComplete", nextElement);

    stage.removeChild (intro);

    curElement = "startGame";

    stage.addChild (startGame);

    startGame.x = 100;

    startGame.y = 200;

    startGame.addEventListener ("animationComplete", nextElement);

    } Else if (curElement == "startGame") {}

    Help

    startGame.removeEventListener ("animationComplete", nextElement);

    stage.removeChild (startGame);

    curElement = 'help ';

    stage.addChild (help);

    Help.x = 100;

    Help.y = 250;

    help.addEventListener ("animationComplete", nextElement);

    } Else if (curElement == 'help') {}

    gamePlay

    help.removeEventListener ("animationComplete", nextElement);

    stage.removeChild (help);

    curElement = "gamePlay".

    stage.addChild (gamePlay);

    gamePlay.x = 100;

    gamePlay.y = 300;

    gamePlay.addEventListener ("animationComplete", nextElement);

    } Else if (curElement == "gamePlay") {}

    looseScreen

    gamePlay.removeEventListener ("animationComplete", nextElement);

    stage.removeChild (gamePlay);

    curElement = "looseScreen";

    stage.addChild (looseScreen);

    looseScreen.x = 100;

    looseScreen.y = 350;

    looseScreen.addEventListener ("animationComplete", nextElement);

    } Else if (curElement == "looseScreen") {}

    winScreen

    looseScreen.removeEventListener ("animationComplete", nextElement);

    stage.removeChild (looseScreen);

    curElement = "winScreen;

    stage.addChild (winScreen);

    winScreen.x = 100;

    winScreen.y = 400;

    winScreen.addEventListener ("animationComplete", nextElement);

    } Else if (curElement == 'winScreen') {}

    result / top 10

    winScreen.removeEventListener ("animationComplete", nextElement);

    stage.removeChild (winScreen);

    curElement = 'result '.

    stage.addChild (result);

    result.x = 100;

    result.y = 450;

    preloader.addEventListener ("animationComplete", nextElement);

    } else {}

    result.removeEventListener ("animationComplete", nextElement);

    stage.removeChild (result);

    curElement = "intro";

    stage.addChild (intro);

    Intro.x = 100;

    Intro.y = 150;

    intro.addEventListener ("animationComplete", nextElement);

    }

    }

    }

    }

    Example of code for a class of movie clip is

    Class Result.As.

    package location {}

    import flash.display.MovieClip;

    import flash.events. *;

    Result/public class extends MovieClip {}

    public void result () {}

    the constructor code

    addEventListener (Event.ENTER_FRAME, checkFrame);

    }

    function regarderME (): void {}

    trace ("playme...");

    }

    public void checkFrame(e:Event):void {}

    trace ("frames >" + this.currentFrame);

    if(this.totalFrames == This.currentFrame) {}

    trace ("shipping result... event animation complete");

    dispatchEvent (new Event ("animationComplete"));

    }

    }

    }

    }

    //////////////////////////////////////////

    In the output, it shows that everyone is raising the event even after having been removed from the scene.

    //////////// output /////////////////

    regarderME...

    13556 > 13556

    all shipping event of Preloader animation...

    next item called preloader...

    send event from intro... animation complete

    next item called intro...

    send event from intro... animation complete

    all shipping StartGame event animations...

    next item called startGame...

    send event from intro... animation complete

    all shipping StartGame event animations...

    all shipping help event animations...

    next item called... help

    send event from intro... animation complete

    all shipping StartGame event animations...

    all shipping help event animations...

    all shipping event GamePlay animations...

    next item called gamePlay...

    send event from intro... animation complete

    all shipping StartGame event animations...

    all shipping help event animations...

    all shipping event GamePlay animations...

    all animations dispatch LooseScreen event...

    send event from intro... animation complete

    all shipping StartGame event animations...

    all shipping help event animations...

    all shipping event GamePlay animations...

    all animations dispatch LooseScreen event...

    send event from intro... animation complete

    all shipping StartGame event animations...

    all shipping help event animations...

    all shipping event GamePlay animations...

    all animations dispatch LooseScreen event...

    send event from intro... animation complete

    all shipping StartGame event animations...

    all shipping help event animations...

    all shipping event GamePlay animations...

    all animations dispatch LooseScreen event...

    send event from intro... animation complete

    all shipping StartGame event animations...

    all shipping help event animations...

    all shipping event GamePlay animations...

    all animations dispatch LooseScreen event...

    You must remove the enterFrame event listener when you are finished with checkFrame().

    --

    Kenneth Kawamoto

    http://www.materiaprima.co.UK/

  • Why we need Java class in c ++ pof serialization

    Hello
    I'm really confused why we need Java class that implements PortableObject to support complex c objects ++. If we do not use for questions or entry in the application processors, we cannot keep the object as a byte serialized format and we cannot recover in the deserialization of c ++.

    Please share your thoughts if there is a way, if we can skip any Java implementation.

    Kind regards
    Sura

    Try to make the default public constructor method in your class of the car.

    Like this

    Public Car()
    {
    }

  • Stand-alone serialization POF

    Hello

    Is it possible to use POF serialization out of consistency? We must send the cached data between our renderfarm coherence and a report, via JMS server. We thought THAT POF would be a good way to keep sizes down, since all our cache objects implement the PortableObject interface. However, I can't find how to access a serializer / deserializer.

    Thank you
    Matt

    Published by: 899446 on March 8, 2012 07:28

    We played with this idea a few years back, hope my memory still good.

    You can create a ConfigurablePofContext with the pof configuration file. Then, you can use it to serialize/deserialize. Or if you want, you can even get a PofSerializer specific if you know th pof id.

    Not sure on any license question, however.

  • Spread POF and C++ clients

    Hello

    I get below error when you try to connect a client C++ via Extend config with a Server Cache Java POF.
    Any suggestions? Note that this server is 3.6 the customer is 3.6.1; could not find a 3.6.0 C++ client.

    Thank you
    Adrian

    Error on the client:

    Oracle Coherence for C++ Version 3.6.1.0 Build 19854
    RTC Linux x 64 version g ++ Release
    Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.

    error: coherence::net: e-mail: ConnectionException: could not establish a connection to one of the following addresses: {...}; Make sure that the configuration of addresses item "remote control" contains an address and a port of a TcpAcceptor running
    to virtual void coherence::component:util:TcpInitiator:TcpConnection:open () (TcpInitiator.cpp:602)
    consistency: component::util::TcpInitiator::TcpConnection::open()
    consistency: component::util::Initiator::ensureConnection()
    consistency: component::net::extend::RemoteCacheService::openChannel()
    consistency: component::net::extend::RemoteService::doStart()
    consistency: component::net::extend::RemoteService::start()
    to coherence::component:util:SafeService:startService(coherence::lang::TypedHandle<coherence::net::Service>) const
    consistency: component::util::SafeService::restartService() const
    to coherence::component:util:SafeService:ensureRunningServiceInternal (bool) const
    consistency: component::util::SafeService::start()
    at coherence::net:DefaultConfigurableCacheFactory:configureService(coherence::lang::TypedHandle<coherence::run::xml::XmlElement_const>)
    at coherence::net:DefaultConfigurableCacheFactory:ensureService(coherence::lang::String::StringHandle<coherence::lang::String_const>)
    at coherence::net:
    at coherence::net:
    at coherence::net:DefaultConfigurableCacheFactory:ensureCache(coherence::lang::String::StringHandle<coherence::lang::String_const>)
    at coherence::net:CacheFactory:getCache(coherence::lang::String::StringHandle<coherence::lang::String_const>)
    at __gxx_personality_v0
    in __libc_start_main
    the thread 'hand '.

    On the Cache Server, I see the following:

    [java] 2011-04-13 23:10:23.567/135.805 Oracle coherence GE 3.6.0.0 < error > (thread = Proxy: ExtendTcpProxyService:TcpAcceptor, Member = 1): an exception occurred while decoding of a Service Message = Proxy: ExtendTcpProxyService:TcpAcceptor from: TcpConnection (Id = null, Open = true, LocalAddress =..., RemoteAddress =...): java.lang.IllegalStateException: TcpAcceptor {name = Proxy: ExtendTcpProxyService:TcpAcceptor, State = (SERVICE_STARTED), ThreadCount = 5, HungThreshold = 0, TaskTimeout = 0, = Codec Codec (Format = POF), PingInterval = 0} {PingTimeout = 0 RequestTimeout = 0, SocketProvider = SystemSocketProvider, LocalAddress = [/...], ListenBacklog = 0, BufferPoolIn = BufferPool (BufferSize = 2 KB, BufferType = DIRECT, capacity = unlimited), BufferPoolOut = BufferPool (BufferSize = 2 KB, BufferType = DIRECT, capacity = unlimited)} has not been configured with a PofContext; This channel cannot decode the coded POF user types
    [java] at com.tangosol.coherence.component.net.extend.Channel.getPofSerializer(Channel.CDB:25)
    [java] at com.tangosol.io.pof.PofBufferReader.readAsObject(PofBufferReader.java:3299)
    [java] at com.tangosol.io.pof.PofBufferReader.readObject(PofBufferReader.java:2604)
    [java] at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Peer$ MessageFactory$ OpenConnectionRequest.readExternal (Peer.CDB:6)
    [java] at com.tangosol.coherence.component.net.extend.Codec.decode(Codec.CDB:29)
    [java] at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Peer.decodeMessage(Peer.CDB:25)
    [java] at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Peer.onNotify(Peer.CDB:47)
    [java] at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:42)
    [java] at java.lang.Thread.run(Thread.java:619)


    Here is the configuration on the client:

    <>cache-config
    < default >
    POF < serializer > < / serializer >
    < / default >
    < cache-system-mapping >
    <>cache-mapping
    < name of cache - > * < / cache-name >
    < scheme name > expand-dist < / system-name >
    < / cache-mapping >
    < / cache-system-mapping >
    <>- cached patterns
    < remote-cache-system >
    < scheme name > expand-dist < / system-name >
    < service name > ExtendTcpCacheService < / service-name >
    < initiator-config >
    <>tcp-initiator
    <>remote addresses
    > the socket address <
    < system-property address = "tangosol.coherence.proxy.address" >... < / address >
    < port system-property = "tangosol.coherence.proxy.port" > 9099 < / port >
    < / socket-address >
    < / remote-address >
    < connect-timeout > 10 s < / connect-timeout >
    < / tcp-initiator >
    < outgoing-message Manager >
    < request-timeout > s 5 < / timeout request >
    < / Manager of outbound messages >
    < / initiator-config >
    < / remote-cache-system >
    < / cache-plans >
    < / cache-config >

    On the cache server configuration:

    <>cache-config
    < cache-system-mapping >
    <>cache-mapping
    < name of cache - > * < / cache-name >
    < scheme name > eclipselink-distributed-gridcache < / system-name >
    < / cache-mapping >
    < / cache-system-mapping >
    <>- cached patterns
    < distributed plan >
    < scheme name > eclipselink-distributed-gridcache < / system-name >
    <!-THIS IS NECESSARY FOR the LOCKING OF the EXPAND CLIENTS at THE MEMBER LEVEL NOT LEVEL-> THREAD
    Member of < lease-granularity > < / lease-granularity >
    < service name > EclipseLinkJPAGridCache < / service-name >
    < serializer >
    > class name < com.tangosol.io.pof.ConfigurablePofContext < / class name >
    < init-params >
    < init-param >
    Type string < param > < / param-type >
    META-INF/poc-pof - config.xml < param-value > < / param-value >
    < / init-param >
    < / init-params >
    < / serializer >
    < number > 8 threads < / thread count >
    < support-map-plan >
    < local plan >
    < Unit Calculator > BINARY < / Unit-Calculator >
    <-> 1048576 uniting factor < / unit factor >
    < / local plan >
    < / support-map-plan >
    < autostart > true < / autostart >
    < / distributed plan >
    <!--> client proxy IS PRESENT for THE C++
    < proxy-system >
    < service name > ExtendTcpProxyService < / service-name >
    < serializer >
    > class name < com.tangosol.io.pof.ConfigurablePofContext < / class name >
    < init-params >
    < init-param >
    Type string < param > < / param-type >
    META-INF/poc-pof - config.xml < param-value > < / param-value >
    < / init-param >
    < / init-params >
    < / serializer >
    < number of threads > 5 < / thread count >
    < Acceptor-config >
    <>tcp-Acceptor
    < address - >
    < address >... < / address >
    < port > 9099 < / port >
    < / local-address >
    < / tcp-Acceptor >
    < / Acceptor-config >
    <!-this is necessary to be able to question-> locks
    <>proxy-config
    < proxy cache-service >
    < active locking > true < / active locking >
    < / cache-service-proxy >
    < / proxy-config >
    < autostart > true < / autostart >
    < / proxy-system >
    < / cache-plans >
    < / cache-config >

    Hi Adrien,.

    A few notes:

    (1) you must place your configuration item in the configuration item :

    
    
    
    
    
      
        
          *
          eclipselink-distributed-gridcache
        
      
      
        
          eclipselink-distributed-gridcache
          
          member
          EclipseLinkJPAGridCache
          
            com.tangosol.io.pof.ConfigurablePofContext
            
              
                String
                META-INF/poc-pof-config.xml
              
            
          
          8
          
            
              BINARY
              1048576
            
          
          true
        
        
        
          ExtendTcpProxyService
          5
          
            
              com.tangosol.io.pof.ConfigurablePofContext
              
                
                  String
                  META-INF/poc-pof-config.xml
                
              
            
            
              
                
    ....
    9099
    true true

    (2) you are currently connected to a 3.6.0 a 3.6.1 proxy client. In general, this is not supported. Former clients can connect to the new proxy, but new customers can connect to the old proxy.

    Hope this helps,
    Jason

  • POF-config file is not validated?

    I misspelled pof-config. XML as below

    < pof-config >
    < include > coherence-pof - config.xml < / include > <! - wrong place - >
    < user-type-list >
    <!--good place-->
    Type < user >
    < type id > 1002 < / id-type >
    < class name - >
    org.mylab.domain.Customer
    < / class name >
    < serializer >
    < class name - >
    org.mylab.serializer.CustomerSerializer
    < / class name >
    < / serializer >
    < / user type >
    < / user-type-list >
    < / pof-config >

    But the consistency server up not exceptional during startup, but a serialization error after updated cache operation. I expect consistency server to validate the configuration at startup files.

    Hi Chris,

    Coherence does not validate one of its XML configuration files. You can consider this a good thing or a bad thing depending on your point of view. Personally I think it's a good thing because it means that I can put my own XML config files. Indeed the incubator project made good use of it.

    The best thing to do is to configure your IDE to validate files using the DTD files in the jar for consistency.

    JK

  • POF and objects in a schema-TCP ExternalizableLite extend unique proxy

    We have a cluster that contains objects that implement ExternalizableLite generally (and some that implement Serializable) and I would like to start to make progress on POF (currently using 3.3.1/389p10)

    I have configured our extend TCP client config initiator and Acceptor-config with the POF serializer server recommended:

    < serializer >
    > class name < com.tangosol.io.pof.ConfigurablePofContext < / class name >
    < / serializer >

    My new POF object works just fine with this Setup, however my ExternalizableLite of existing objects today fail to serialize, exception:

    Exception in thread "main" (Wrapped: error encoding) java.lang.IllegalArgumentException: unknown user type: *.
    at com.tangosol.io.pof.ConfigurablePofContext.getUserTypeIdentifier(ConfigurablePofContext.java:395)
    at com.tangosol.io.pof.ConfigurablePofContext.getUserTypeIdentifier(ConfigurablePofContext.java:384)
    at com.tangosol.coherence.component.comm.Channel.getUserTypeIdentifier(Channel.CDB:7)

    I came across "com.tangosol.io.pof.ExternalizableLitePofSerializer" which, at first glance, seems to be close to what we need. that is, it will allow our tcp proxy manage the ExternalizableLite and the PortableObject of POF. However, I am concerned about the warning of javadoc for ExternalizableLitePofSerializer:

    ======
    WARNING: This implementation does not correctly handle all possible ExternalizableLite implementations. It will be probably supported more simple ExternalizableLite implementations which read and write their properties is a similar way to a good implementation of the PortableObject interface. Incompatibilities are likely when the user types I/O binary level don't direct (or indirect) through flow DataInput and DataOutput objects passed to ExternalizableLite.readExternal (java.io.DataInput) and ExternalizableLite.writeExternal (java.io.DataOutput) methods respectively. Note that the methods of assistance on ExternalizableHelper are conscious POF and so safe to use methods, writeExternal and readExternal methods.
    ======

    Does that mean if my ExternalizableLite did something with DataInput and DataOutput directly, for example:

    Public Sub readExternal (DataInput dataInput) throws IOException {}
    x = dataInput.readDouble (); Cannot use ExternalizableHelper as it does not support double
    }

    Public Sub writeExternal (DataOutput dataOutput) throws IOException {}
    dataOutput.writeDouble (x); Cannot use ExternalizableHelper as it does not support double
    }

    It is not safe to use ExternalizableLitePofSerializer?

    What are my options? How can I configure my Proxy TCP accept objects as POF and ExternalizableLite?

    Hello

    You can use a SafeConfigurablePofContext your serializer as it was designed to handle the scenario you describe.

    It is recommended that as soon as the migration of the Externalize to POF, you move to the use of ConfigurablePofContext. Take all the advantages of performance in Pof.

    Thank you
    / Charlie

    Coherence development team

  • vCO 5.5.2 and vCAC 6.1 plugin error REST API

    Hello

    I get an error when you try to make applicants vCAC 6.1 REST API calls of vCO 5.5.2 for the items in the catalog.  This same code works very well with the vCAC 6.0.1 plugin.

    Error:

    Data serialization error. (Workflow: Test vCAC remains / Scriptable task (item1) #24)

    Code:

    var point = {'@type': 'CatalogItemRequest',}

    "catalogItemRef": {"id": "3e6c3f13-6ea0-4da5-8bac-d8cb27e64f24"},

    "Organization": {"tenantRef": "vcacadmin"}

    {"subtenantRef": "e931debb-6200-40e5-89a7-01d35d0cc306"},

    "requestedFor": "[email protected]",

    "State": "SUBJECT."

    "requestNumber": 0.

    "requestData": {"items": []}

    {"key": "provider-blueprintId', 'value': {'type': 'string', 'value':"catalogItem.id"}}.

    {"key": "provider-provisioningGroupId', 'value': {'type':"string","value":"e931debb-6200-40e5-89a7-01d35d0cc306"}},

    {"key": "requestedFor', 'value': {'type':"string","value":"[email protected]"}},

    {'key': 'provider - VirtualMachine.CPU.Count', 'value': {'type': 'integer', 'value': 1}},

    {'key': 'provider - VirtualMachine.Memory.Size', 'value': {'type': 'integer', 'value': 1024}},

    {'key': 'provider - VirtualMachine.LeaseDays', 'value': {'type': 'integer', 'value': 0}},

    {"key": "provider-__Notes', 'value': {'type': 'string', 'value': 'Test'}},

    {'key': 'provider - VirtualMachine.Disk0.Size', 'value': {'type': 'string', 'value': '40'}},

    {{[{"key": 'provider - VirtualMachine.Disk1.Size', 'value': {'type': 'string', 'value': '8'}}]}}

    var catalogRest = vcac.createRestClient (vCACCAFEServicesEnum.CATALOG_SERVICE);

    var answer = catalogRest.post("consumer/requests",item);

    vCAC 6.0.x plugin expects a json object in the call to rest.

    6.1 plugin expects a value of json string.

    This will do the trick:

    var response = catalogRest.post ("consumer/queries", JSON.stringify (item));

  • using POF in C++ client

    I've never used C++ extend before clients.

    One of our developers is going to use C++ extend clients and enjoy using POF Serialization.
    I told him I need a corresponding Java class to store data in the storage node, but he told me that we cannot if you use POF.

    He's right?

    Yes.

    Usage PofSerializers (external serializers) now also documentation, check out the customer guide for C++:

    "If however you want to use more advanced features of consistency, such as queries or processors of entry you write Java code."

    See the documentation for more details...

    Serge

Maybe you are looking for

  • Want 5660: want manual user for printer HP 5660

    I just got this printer and would like some instructions on how it works.  That is to say: how to change printer of color to B & W or vice versa.  How to set up for printing images on smaller print - etc.

  • lost all the Favorites on the desktop during the installation of firefox?

    I do not know the good termonology, but before when I had firefox as my search engine and Web page, I had a list of favorite sites, which I clicked on and they all the appeared. Don't more, why? at the top left of the page web was also a back arrow.

  • Z560 - replacement ODD with 2nd HARD drive?

    Hello It's a Z560 and I want to replace the optical drive with a 2nd hard drive. I've already done some research, but it seems, as if only thinkpad users want a 2nd HDD ;-) Anyone know what kind of framework is necessary for a disk 2.5 "HARD? Kind re

  • Upgrade to ssd on t530 void my warranty?

    Hello Lenovo discussions. I recently ordered a crucial m500 to my new t530, still under warranty. The new ssd will void the warranty I have? Thank you

  • Get the component "hour" of a 1 d waveform

    Hi all I am a 1 d waveform data analysis (just have a single column on the .txt file), data produced a curve that should be analysed a two point point and get the integration. My problem is that the component "HOUR" of the waveform is not this preven