aucd29 / cloning

Automatically exported from code.google.com/p/cloning
Other
0 stars 0 forks source link

API is working on TOMCAT, But failing on Weblogic #35

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Created a deep clone on the object 

What is the expected output? What do you see instead?
Should create the deep clone. Application is crashed.

What version of the product are you using? On what operating system?
1.9.0, on Linux

Please provide any additional information below.
We are using the deepClone on a Hibernate Object, which is working fine on 
Tomcat and Windows OS, but when we deploy same app on Web logic and Unix OS and 
use the page which has the deepclone for 4 or 5 times, it is killing the 
application. And no one can do any thing.

Appreciate your quick soon as matter of urgeny.

Thank you 

Original issue reported on code.google.com by vijayase...@gmail.com on 19 Jun 2014 at 10:16

GoogleCodeExporter commented 9 years ago
If the process is dying, it might be it is cloning a native object or runs out 
of memory or out of stack (in linux i noticed out of stack can sometimes crash 
the jvm). Can you enable debug (cloner.setdebug) and have a look on what gets 
cloned? And maybe also increase thread stack space.

Original comment by kostas.k...@googlemail.com on 19 Jun 2014 at 11:12

GoogleCodeExporter commented 9 years ago
I could not able to find cloner.setdebug method in the API, can you please 
suggest

Original comment by vijayase...@gmail.com on 19 Jun 2014 at 12:04

GoogleCodeExporter commented 9 years ago
Well, I did not turned debuger on, but I saw a fatal error in SSL exception in 
the Logger. This only happens after we introduce this Clonner bit. When we 
comment this clone bit we do not have any issue, running properly. 

Original comment by vijayase...@gmail.com on 19 Jun 2014 at 12:24

GoogleCodeExporter commented 9 years ago
Hi Kostas,
         Just want to tell you, I have a Hibernate Object which has child Objects and for some of the Child Object there is a link to Parent Object, will there be any circular reference problems occur.

Original comment by vijayase...@gmail.com on 19 Jun 2014 at 3:13

GoogleCodeExporter commented 9 years ago
Cloner is aware of cyclic dependencies and will work fine with those. For the 
debugging, there should be a method "dump cloned" or so, will have a look soon

Original comment by kostas.k...@googlemail.com on 19 Jun 2014 at 4:18

GoogleCodeExporter commented 9 years ago
can you please try cloner.setDumpCloned(true) and have a look at the console? 
Even the console on your dev box will do, provided you clone exactly the same 
objects. If you notice it cloning file handlers, streams, hibernate proxies, 
web server proxies etc, then probably you need to cloner.dontClone(class)

Also can you paste the source code of the class(es) you clone? Is it just a few 
or many classes?

Original comment by kostas.k...@googlemail.com on 19 Jun 2014 at 5:07

GoogleCodeExporter commented 9 years ago
I think you are looking another API, because I could not able to find the 
cloner.setDumpCloned(true).

Original comment by vijayase...@gmail.com on 19 Jun 2014 at 7:12

GoogleCodeExporter commented 9 years ago
How are you instantiating cloner?

Original comment by kostas.k...@googlemail.com on 19 Jun 2014 at 7:41

GoogleCodeExporter commented 9 years ago
import com.rits.cloning.Cloner

Cloner cloner = new Cloner()
c.deepClone(<Object>)

Original comment by vijayase...@gmail.com on 19 Jun 2014 at 8:19

GoogleCodeExporter commented 9 years ago
cloner.setDumpCloned(true) should do, doesn't it work?

Original comment by kostas.k...@googlemail.com on 21 Jun 2014 at 7:49

GoogleCodeExporter commented 9 years ago

Original comment by kostas.k...@googlemail.com on 19 Sep 2014 at 10:40