serialization

search for more blogs here

 

"Object not waiting for other to finish its job" posted by ~Ray
Posted on 2008-11-13 12:19:30

Hi everyone,I have two Java classes. One of them is a GUI and the other one is a complex java class with processes that have to work for a little long time. In the GUI when a button is pushed the object of the second class is created and a function of it is called. In this function the program gets stuck in the line "wait();". How can I get rid of this problem? I hope i could express my problem clearly. For i e (I think it will be better if I give an example)*** Class-1 ***Object_2 callFunction();...*********************Class-2 ****void callFunction(){. wait(); // program stops at this point and waits for ever without giving any //error message..} The code is like below.** object 2 **// do some stuff that takes long time to executewait();** end of object 2 **The object2 is waiting for the process to come to an end. The other object(1) that has created this object(2) is supposed to wait for this object(2) too. But it(1) doesn't wait. That is the problem.. Do you recommend me to use notify() instead ??By the way the implementation of the class 2 was written by someone else and it works correctly if its main() function is executed. What i want to do here is to try to call and execute this object from an another object. Edited by: ccelgun on Nov 11. 2007 10:15 PM I have bad news and good news :)Bad news is that problem was not because of the waiting process so this topic was totaly useless. Good news is that i found the problem and fixed it. It was because of the path in which the object 2 was working. I should have changed the path from object 1's path to object 2's path after calling the object 2.. Thanks anyway... And sorry for disturbing..

Forex Groups - Tips on Trading

Related article:
http://forum.java.sun.com/thread.jspa?threadID=5234970

comments | Add comment | Report as Spam


"Avoiding the startup time for webservice xml serialization" posted by ~Ray
Posted on 2008-03-12 23:10:45

In the build tab of a communicate’s properties is an option called “Generate serialization assembly” turn it to “On” to theoretically improve performance. the wsdl is 2 megabytes. Startup takes several minutes before anything happens. And it is mostly the startup time causing problems things go smoothly after that. While trying to alter things I found this single line causing most of the decelerate: And it was only the first time that the webservice was initialized that the delay happened. I started searching and ran across a knowledgebase bind explaining how to create an XmlSerializers assembly. Apparently the XmlSerialization process usually generates code at runtime and this can take a while. The bind explained how to pregenerate this code to deliver startup time later. I tried it it didn’t seem to back up all that much and it was a hurt to fit into the create process. I later found. It was a new feature in net 2.0 that I bequeath hearing about. Then I open. I never noticed it before (maybe because I had to scroll down the properties page) but there was a simple drop drink in Visual Studio for this. Switching it from Auto to On built the assembly automatically! Once enabled build time became much longer and startup times were a little exceed. The change wasn’t as dramatic as I had hoped. I think from here I’m going to create a much smaller specialized web service since I undergo access to the web function forge and we’re only using a handful of the 800 methods available. XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <label> <em> <i> <strike> <strong>

Forex Groups - Tips on Trading

Related article:
http://blog.vorpal.cc/category/development/avoiding-the-startup-time-for-webservice-xml-serialization.html

comments | Add comment | Report as Spam


"Avoiding the startup time for webservice xml serialization" posted by ~Ray
Posted on 2008-03-12 23:10:45

In the build tab of a communicate’s properties is an option called “Generate serialization assembly” turn it to “On” to theoretically improve performance. the wsdl is 2 megabytes. Startup takes several minutes before anything happens. And it is mostly the startup measure causing problems things go smoothly after that. While trying to alter things I found this single line causing most of the decelerate: And it was only the first measure that the webservice was initialized that the decelerate happened. I started searching and ran across a knowledgebase article explaining how to create an XmlSerializers assembly. Apparently the XmlSerialization process usually generates code at runtime and this can act a while. The article explained how to pregenerate this label to save startup time later. I tried it it didn’t seem to help all that much and it was a hurt to fit into the build process. I later open. It was a new feature in net 2.0 that I bequeath hearing about. Then I found. I never noticed it before (maybe because I had to scroll drink the properties summon) but there was a simple drop down in Visual Studio for this. Switching it from Auto to On built the assembly automatically! Once enabled build time became much longer and startup times were a little better. The change wasn’t as dramatic as I had hoped. I think from here I’m going to act a much smaller specialized web service since I undergo access to the web service machine and we’re only using a handful of the 800 methods available. XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>

Forex Groups - Tips on Trading

Related article:
http://blog.vorpal.cc/category/development/avoiding-the-startup-time-for-webservice-xml-serialization.html

comments | Add comment | Report as Spam


"Serialization - ClassNotFound Exception ?!" posted by ~Ray
Posted on 2008-01-01 21:15:35

First hallo every one :Second:i have a problem with deserialization i have here 3 machines talk to each others through objects (Called MessageX) this come about through sockets and Object Input & Output Streams now class MessageX is inside the case of each schedule of the 3 machines but once one of them acquire an disapprove at casting it back to the MessageX type i get a nice Exception saying that ClassNotFound Exception so now does that mean that i cant talk through objects [i guess not] and if i can Object serialization is a way to persist ur objects and it is allowed. It depends upon how u have defined MessageX class. Go through the given link for more details http://java sun com/developer/technicalArticles/Programming/serialization/ if i can how i can overcome the categorise not found exception ?! The machine where you got the exception doesn't have the categorise named in the exception available in its classpath. It's as simple as that. Hi. If you are keeping MessageX categorise in same jar as the executing categorise which tries to cast it. Other wise atleast runthe program in the machine which you got CCE with class path added with the location of MessageX classI hope this will solve your issues.

Forex Groups - Tips on Trading

Related article:
http://forum.java.sun.com/thread.jspa?threadID=5235559

comments | Add comment | Report as Spam


"Object-to-string serialization in .NET, the easy way" posted by ~Ray
Posted on 2007-12-15 15:03:30

Christopher Deckers created this excellent Firefox add-on that radically simplifies DZone voting. It provides a voting widget on any page you visit from DZone letting you choose directly from that page without returning to DZone. Voting has never been easier!

Forex Groups - Tips on Trading

Related article:
http://feeds.dzone.com/~r/dzone/upcoming/~3/184739084/objecttostring_serialization_in_net_the_easy_way.html

comments | Add comment | Report as Spam


"Query Regarding serializable interface." posted by ~Ray
Posted on 2007-12-09 13:37:37

Hi,I undergo a query regarding serializable interface. I understood basic concept of serializable interface. If we are developing application how ordain i identify which class to apply as serializable interface. My assumption is that we undergo to apply serializable interface whenever object is transfered from one communicate to other then only implement serializable interface is this change by reversal?Second assumption is that as we create verbally server align programming i e application which run under hit JVM then there is be to that.. is this change by reversal? Any object that has to "cross the equip" needs to be Serializable. Serializable is just a marker interface indicating objects of a class implementing Serializable can be serialized. The JVM has a standard mechanism for (de)serialization that works quite come up. In case you have special needs you can implement the special readObject() and writeObject() methods. Objects that live within a hit JVM be not be serializable (generally speaking). If you be to send objects from one JVM to another they have to be serializable. Please construe the JAvaDoc for Serializable carefully especially the parts on how objects are re-created when they are deserialized at the receiving end.

Forex Groups - Tips on Trading

Related article:
http://forum.java.sun.com/thread.jspa?threadID=5235832

comments | Add comment | Report as Spam


"Query Regarding serializable interface." posted by ~Ray
Posted on 2007-12-09 13:37:17

Hi,I have a ask regarding serializable interface. I understood basic concept of serializable interface. If we are developing application how will i determine which class to apply as serializable interface. My assumption is that we undergo to implement serializable interface whenever disapprove is transfered from one communicate to other then only apply serializable interface is this correct?Second assumption is that as we create verbally server align programming i e application which run under hit JVM then there is need to that.. is this correct? Any object that has to "cross the equip" needs to be Serializable. Serializable is just a marker interface indicating objects of a class implementing Serializable can be serialized. The JVM has a standard mechanism for (de)serialization that works quite come up. In case you have special needs you can implement the special readObject() and writeObject() methods. Objects that live within a hit JVM need not be serializable (generally speaking). If you be to send objects from one JVM to another they have to be serializable. Please construe the JAvaDoc for Serializable carefully especially the parts on how objects are re-created when they are deserialized at the receiving end.

Forex Groups - Tips on Trading

Related article:
http://forum.java.sun.com/thread.jspa?threadID=5235832

comments | Add comment | Report as Spam


 

 




blogs - aa blogs - air force blogs - aquarius blogs - aries blogs - army blogs - arts blogs - baby blogs - blogs 4 men - blogs 4 women - cancer blogs - capricorn blogs - career change blogs - choice blogs - christmas blogs - cigar blogs - cigarette blogs - cig blogs - coast guard blogs - coffee bean blogs - college baseball blogs - college basketball blogs - college football blogs - colleges blogs - computer blogs - create blogs - dating blogs - elvis blogs - email chat blogs - email pal blogs - enhancement blogs - fall blogs - fha blogs - freedom blogs - friendly blogs - funny blogs - gambler blogs - gemini blogs - her blog - his blog - hockey blogs - join blogs - javas blogs - kid safe blogs - leo blogs - libra blogs - apartments blogs - coffees blogs - horoscopes blogs - life advice blogs - lover blogs - marine blogs - married blogs - military blogs - misc blogs - more money blogs - mortgage blogs - move blogs - movies blogs - musical blogs - navy blogs - new in town blogs - obscure blogs - online date blogs - online game blogs - over 30 blogs - over 40 blogs - over 50 blogs - over 60 blogs - over 70 blogs - over 80 blogs - over 90 blogs - password blogs - pc blogs - mortgages blogs - peoples blogs - pictures blogs - pipe blogs - pisces blogs - poems blogs - poker blogs - police blogs - political blogs radio blogs - read blogs - recreational vehicle blogs - relocation blogs - reserve blogs - rv blogs - safe blogs - scorpio blogs - singles blogs - smokers blogs - smoker blogs - state blogs - state college blogs - taurus blogs - teen advice blogs - teenager blogs - tobacco blogs - tv blogs - vacation blogs - veteran blogs - virgo blogs - virtual blogs - weekly blogs - wingman blogs - word blogs - words blogs - writer blogs - poetry blogs - prescription blogs - sagittarius blogs - straight blogs - summer blogs - gi blogs - hooka blogs - penis enlargement blogs - vfw blogs - casinos blogs - casino blogs - web hosting blogs - hosting blogs - auto blogs - truck blogs - van blogs - suv blogs - 4 wheel blogs - harley blogs - flu blogs - diet blogs - pistols blogs - teenage blogs - lpga blogs - burnable blogs - new tunes blogs - coaching blogs - treasures blogs - trades blogs - nutty blogs - skate blogs - play 21 blogs - weather blogs - poker players - golf blogs - american blogs - football blogs - baseball blogs - hockey blogs - basketball blogs - soccer blogs - cooking blogs - recipe blogs - space blogs - 3d games blogs - barbecue blogs




the serialization archives:

11 articles in 2006-01
22 articles in 2006-02
27 articles in 2006-03
36 articles in 2006-04
27 articles in 2006-05
26 articles in 2006-06
24 articles in 2006-07
18 articles in 2006-08
22 articles in 2006-09
30 articles in 2006-10
22 articles in 2006-11
22 articles in 2006-12
12 articles in 2007-01
12 articles in 2007-02
3 articles in 2007-03
7 articles in 2007-04
11 articles in 2007-05
10 articles in 2007-06
3 articles in 2007-07
1 articles in 2007-09




next page


serialization