emacarron / mybatis

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

Strange behaviour #158

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Version: 3.0.2

I have developed a Swing Application with Netbeans 6.9.1 on Linux platform.
If I run or debug code is all ok.
But when I run it on a Windows platform I have sql error on a Insert method: a 
getter method of my bean returns null, my db not permit that field can be null. 
I'm sure that attribute is not null.
If I debug code on Windows with Netbeans 6.9.1 it works, if I run it gives the 
error. If I disable lazyLoading runs correctly ...
How can it be possible?
What do you need to examine the problem?
Thank you 
Alfredo

What is the expected output? What do you see instead?

Please provide any additional information below.

Original issue reported on code.google.com by i...@alfredomarchini.it on 23 Oct 2010 at 10:44

GoogleCodeExporter commented 9 years ago
Hi,
I have some news,
the problem is lazyloading = true, 
because now the customer use the application without errors on windows platform.
In fact now my getter method returns not null value.
Bye

Original comment by i...@alfredomarchini.it on 25 Oct 2010 at 9:28

GoogleCodeExporter commented 9 years ago
Hi Alfredo,
in order to obtain quicker replies, we suggest you to post these kind of 
questions on the user mailing list[1] instead of in the issue tracker, where 
should be reported defects only.

[1] http://groups.google.com/group/mybatis-user

Original comment by simone.t...@gmail.com on 1 Nov 2010 at 1:16

GoogleCodeExporter commented 9 years ago
Hi Simone,
I think this is defect, because lazyloading is not working correctly.
There's something wrong, I think the problem may be a race condition,
because in debug mode all works correctly, the error affects only in run mode 
on windows platform (on Linux it works in both modes).
Bye

Original comment by i...@alfredomarchini.it on 2 Nov 2010 at 9:19