[jira] Commented: (OFBIZ-1415) Thread freeze when executing PreparedStatement with PosgreSQL

2007-11-25 Thread Leon Torres (JIRA)

[ 
https://issues.apache.org/jira/browse/OFBIZ-1415?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12545346
 ] 

Leon Torres commented on OFBIZ-1415:


Scott, thanks!  That seems to be it.  My debugger points to a similar socket 
reading hangup and I did not suspect it could be the terminal cause.

I won't be able to continue investigating as the feature I was working on that 
led me to this was canceled, but I could supply the code to reproduce it.  From 
the thread Scott linked, we might have to consider refining the entity engine a 
little if we get more reports of this happening.

 Thread freeze when executing PreparedStatement with PosgreSQL
 -

 Key: OFBIZ-1415
 URL: https://issues.apache.org/jira/browse/OFBIZ-1415
 Project: OFBiz
  Issue Type: Bug
  Components: framework
Affects Versions: SVN trunk
Reporter: Leon Torres

 I'm getting a hard freeze in a thread when it attempts to executeQuery() 
 using the postgresql Jdbc3 Prepared Statement.  It affects the 
 OrderServices.createPaymentPreference() method.  After extensive probing of 
 the issue, I can't figure out why.   Here's a verbose log of what happens.  
 The thread stops after the last line and never resumes, causing the browser 
 to remain loading indefinitely.  
 I suspect something is going on with BigDecimal or the nature of the insert.  
 Any ideas?
 2007-11-20 12:22:05,985 (http-0.0.0.0-8443-Processor3) [  
 ServiceDispatcher.java:347:INFO ] ### Invoking Sync Service 
 [createOrderPaymentPreference]
 2007-11-20 12:22:06,003 (http-0.0.0.0-8443-Processor3) [   
 SequenceUtil.java:258:INFO ] Got bank of sequenced IDs for 
 [OrderPaymentPreference]; curSeqId=10220, maxSeqId=10230, bankSize=10
 2007-11-20 12:22:06,006 (http-0.0.0.0-8443-Processor3) [  
 GenericEntity.java:389:WARN ] In entity field 
 [OrderPaymentPreference.maxAmount] set the value passed in 
 [java.math.BigDecimal] is not compatible with the Java type of the fi
 eld [Double]
 2007-11-20 12:22:06,008 (http-0.0.0.0-8443-Processor3) [ 
 GenericDAO.java:168:INFO ] ### saving fields [EMAIL PROTECTED], [EMAIL 
 PROTECTED], ModelEntity[OrderP
 [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], 
 ModelEntity[OrderPaymentPreferenc
 [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], 
 [EMAIL PROTECTED], ModelEntity[OrderPaymen
 [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], 
 [EMAIL PROTECTED], Mode
 [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], 
 ModelEntity[OrderPaymentPrefer
 [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED] from entity 
 [GenericEntity:OrderPaymentPreference][createdByUserLogin,DemoSalesManager(java.lang.String)][cr
 eatedDate,2007-11-20 
 12:22:06.007(java.sql.Timestamp)][createdStamp,2007-11-20 
 12:22:06.007(java.sql.Timestamp)][createdTxStamp,2007-11-20 
 12:22:05.187(java.sql.Timestamp)][lastUpdatedStamp,2007-11-20 
 12:22:06.007(java.sql.Timestamp)][l
 astUpdatedTxStamp,2007-11-20 
 12:22:05.187(java.sql.Timestamp)][maxAmount,25.07(java.math.BigDecimal)][orderId,WS1(java.lang.String)][orderPaymentPreferenceId,10220(java.lang.String)][paymentMethodId,1(java.lang.String)][paymentM
 ethodTypeId,CREDIT_CARD(java.lang.String)]
 2007-11-20 12:22:06,009 (http-0.0.0.0-8443-Processor3) [
 SqlJdbcUtil.java:704:INFO ] ### setting field [orderPaymentPreferenceId] of 
 type [String] and fieldtype [1] to [10220]
 2007-11-20 12:22:06,011 (http-0.0.0.0-8443-Processor3) [
 SqlJdbcUtil.java:704:INFO ] ### setting field [orderId] of type [String] and 
 fieldtype [1] to [WS1]
 2007-11-20 12:22:06,012 (http-0.0.0.0-8443-Processor3) [
 SqlJdbcUtil.java:704:INFO ] ### setting field [orderItemSeqId] of type 
 [String] and fieldtype [1] to [null]
 2007-11-20 12:22:06,013 (http-0.0.0.0-8443-Processor3) [
 SqlJdbcUtil.java:704:INFO ] ### setting field [productPricePurposeId] of type 
 [String] and fieldtype [1] to [null]
 2007-11-20 12:22:06,014 (http-0.0.0.0-8443-Processor3) [
 SqlJdbcUtil.java:704:INFO ] ### setting field [paymentMethodTypeId] of type 
 [String] and fieldtype [1] to [CREDIT_CARD]
 2007-11-20 12:22:06,015 (http-0.0.0.0-8443-Processor3) [
 SqlJdbcUtil.java:704:INFO ] ### setting field [paymentMethodId] of type 
 [String] and fieldtype [1] to [1]
 2007-11-20 12:22:06,016 (http-0.0.0.0-8443-Processor3) [
 SqlJdbcUtil.java:704:INFO ] ### setting field [finAccountId] of type [String] 
 and fieldtype [1] to [null]
 2007-11-20 12:22:06,017 (http-0.0.0.0-8443-Processor3) [
 SqlJdbcUtil.java:704:INFO ] ### setting field [securityCode] of type [String] 
 and fieldtype [1] to [null]
 2007-11-20 12:22:06,025 (http-0.0.0.0-8443-Processor3) [
 

[jira] Commented: (OFBIZ-1415) Thread freeze when executing PreparedStatement with PosgreSQL

2007-11-20 Thread Leon Torres (JIRA)

[ 
https://issues.apache.org/jira/browse/OFBIZ-1415?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12544053
 ] 

Leon Torres commented on OFBIZ-1415:


I just noticed it's missing statusId = PAYMENT_NOT_AUTH, which I just added and 
it's still crashing.  I'm going to look into what's happening at the database 
level next.

 Thread freeze when executing PreparedStatement with PosgreSQL
 -

 Key: OFBIZ-1415
 URL: https://issues.apache.org/jira/browse/OFBIZ-1415
 Project: OFBiz
  Issue Type: Bug
  Components: framework
Affects Versions: SVN trunk
Reporter: Leon Torres

 I'm getting a hard freeze in a thread when it attempts to executeQuery() 
 using the postgresql Jdbc3 Prepared Statement.  It affects the 
 OrderServices.createPaymentPreference() method.  After extensive probing of 
 the issue, I can't figure out why.   Here's a verbose log of what happens.  
 The thread stops after the last line and never resumes, causing the browser 
 to remain loading indefinitely.  
 I suspect something is going on with BigDecimal or the nature of the insert.  
 Any ideas?
 2007-11-20 12:22:05,985 (http-0.0.0.0-8443-Processor3) [  
 ServiceDispatcher.java:347:INFO ] ### Invoking Sync Service 
 [createOrderPaymentPreference]
 2007-11-20 12:22:06,003 (http-0.0.0.0-8443-Processor3) [   
 SequenceUtil.java:258:INFO ] Got bank of sequenced IDs for 
 [OrderPaymentPreference]; curSeqId=10220, maxSeqId=10230, bankSize=10
 2007-11-20 12:22:06,006 (http-0.0.0.0-8443-Processor3) [  
 GenericEntity.java:389:WARN ] In entity field 
 [OrderPaymentPreference.maxAmount] set the value passed in 
 [java.math.BigDecimal] is not compatible with the Java type of the fi
 eld [Double]
 2007-11-20 12:22:06,008 (http-0.0.0.0-8443-Processor3) [ 
 GenericDAO.java:168:INFO ] ### saving fields [EMAIL PROTECTED], [EMAIL 
 PROTECTED], ModelEntity[OrderP
 [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], 
 ModelEntity[OrderPaymentPreferenc
 [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], 
 [EMAIL PROTECTED], ModelEntity[OrderPaymen
 [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], 
 [EMAIL PROTECTED], Mode
 [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], 
 ModelEntity[OrderPaymentPrefer
 [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED] from entity 
 [GenericEntity:OrderPaymentPreference][createdByUserLogin,DemoSalesManager(java.lang.String)][cr
 eatedDate,2007-11-20 
 12:22:06.007(java.sql.Timestamp)][createdStamp,2007-11-20 
 12:22:06.007(java.sql.Timestamp)][createdTxStamp,2007-11-20 
 12:22:05.187(java.sql.Timestamp)][lastUpdatedStamp,2007-11-20 
 12:22:06.007(java.sql.Timestamp)][l
 astUpdatedTxStamp,2007-11-20 
 12:22:05.187(java.sql.Timestamp)][maxAmount,25.07(java.math.BigDecimal)][orderId,WS1(java.lang.String)][orderPaymentPreferenceId,10220(java.lang.String)][paymentMethodId,1(java.lang.String)][paymentM
 ethodTypeId,CREDIT_CARD(java.lang.String)]
 2007-11-20 12:22:06,009 (http-0.0.0.0-8443-Processor3) [
 SqlJdbcUtil.java:704:INFO ] ### setting field [orderPaymentPreferenceId] of 
 type [String] and fieldtype [1] to [10220]
 2007-11-20 12:22:06,011 (http-0.0.0.0-8443-Processor3) [
 SqlJdbcUtil.java:704:INFO ] ### setting field [orderId] of type [String] and 
 fieldtype [1] to [WS1]
 2007-11-20 12:22:06,012 (http-0.0.0.0-8443-Processor3) [
 SqlJdbcUtil.java:704:INFO ] ### setting field [orderItemSeqId] of type 
 [String] and fieldtype [1] to [null]
 2007-11-20 12:22:06,013 (http-0.0.0.0-8443-Processor3) [
 SqlJdbcUtil.java:704:INFO ] ### setting field [productPricePurposeId] of type 
 [String] and fieldtype [1] to [null]
 2007-11-20 12:22:06,014 (http-0.0.0.0-8443-Processor3) [
 SqlJdbcUtil.java:704:INFO ] ### setting field [paymentMethodTypeId] of type 
 [String] and fieldtype [1] to [CREDIT_CARD]
 2007-11-20 12:22:06,015 (http-0.0.0.0-8443-Processor3) [
 SqlJdbcUtil.java:704:INFO ] ### setting field [paymentMethodId] of type 
 [String] and fieldtype [1] to [1]
 2007-11-20 12:22:06,016 (http-0.0.0.0-8443-Processor3) [
 SqlJdbcUtil.java:704:INFO ] ### setting field [finAccountId] of type [String] 
 and fieldtype [1] to [null]
 2007-11-20 12:22:06,017 (http-0.0.0.0-8443-Processor3) [
 SqlJdbcUtil.java:704:INFO ] ### setting field [securityCode] of type [String] 
 and fieldtype [1] to [null]
 2007-11-20 12:22:06,025 (http-0.0.0.0-8443-Processor3) [
 SqlJdbcUtil.java:704:INFO ] ### setting field [presentFlag] of type [String] 
 and fieldtype [1] to [null]
 2007-11-20 12:22:06,026 (http-0.0.0.0-8443-Processor3) [
 SqlJdbcUtil.java:704:INFO ] ### setting field [overflowFlag] of type [String] 
 and fieldtype [1] to [null]
 

[jira] Commented: (OFBIZ-1415) Thread freeze when executing PreparedStatement with PosgreSQL

2007-11-20 Thread Leon Torres (JIRA)

[ 
https://issues.apache.org/jira/browse/OFBIZ-1415?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12544068
 ] 

Leon Torres commented on OFBIZ-1415:


When I run the service from the bsh terminal, it doesn't freeze.  When I 
replace the service call in my code with a direct entity.create() operation, it 
freezes.  This leads me to think there is some kind of database deadlock going 
on.  This code is being implemented inside a ccRefund payment processor 
service.  

There's so much stuff going on in the payment gateway code, it's difficult to 
know what the context of database and thread usage is.  Any ideas?

 Thread freeze when executing PreparedStatement with PosgreSQL
 -

 Key: OFBIZ-1415
 URL: https://issues.apache.org/jira/browse/OFBIZ-1415
 Project: OFBiz
  Issue Type: Bug
  Components: framework
Affects Versions: SVN trunk
Reporter: Leon Torres

 I'm getting a hard freeze in a thread when it attempts to executeQuery() 
 using the postgresql Jdbc3 Prepared Statement.  It affects the 
 OrderServices.createPaymentPreference() method.  After extensive probing of 
 the issue, I can't figure out why.   Here's a verbose log of what happens.  
 The thread stops after the last line and never resumes, causing the browser 
 to remain loading indefinitely.  
 I suspect something is going on with BigDecimal or the nature of the insert.  
 Any ideas?
 2007-11-20 12:22:05,985 (http-0.0.0.0-8443-Processor3) [  
 ServiceDispatcher.java:347:INFO ] ### Invoking Sync Service 
 [createOrderPaymentPreference]
 2007-11-20 12:22:06,003 (http-0.0.0.0-8443-Processor3) [   
 SequenceUtil.java:258:INFO ] Got bank of sequenced IDs for 
 [OrderPaymentPreference]; curSeqId=10220, maxSeqId=10230, bankSize=10
 2007-11-20 12:22:06,006 (http-0.0.0.0-8443-Processor3) [  
 GenericEntity.java:389:WARN ] In entity field 
 [OrderPaymentPreference.maxAmount] set the value passed in 
 [java.math.BigDecimal] is not compatible with the Java type of the fi
 eld [Double]
 2007-11-20 12:22:06,008 (http-0.0.0.0-8443-Processor3) [ 
 GenericDAO.java:168:INFO ] ### saving fields [EMAIL PROTECTED], [EMAIL 
 PROTECTED], ModelEntity[OrderP
 [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], 
 ModelEntity[OrderPaymentPreferenc
 [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], 
 [EMAIL PROTECTED], ModelEntity[OrderPaymen
 [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], 
 [EMAIL PROTECTED], Mode
 [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], 
 ModelEntity[OrderPaymentPrefer
 [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED] from entity 
 [GenericEntity:OrderPaymentPreference][createdByUserLogin,DemoSalesManager(java.lang.String)][cr
 eatedDate,2007-11-20 
 12:22:06.007(java.sql.Timestamp)][createdStamp,2007-11-20 
 12:22:06.007(java.sql.Timestamp)][createdTxStamp,2007-11-20 
 12:22:05.187(java.sql.Timestamp)][lastUpdatedStamp,2007-11-20 
 12:22:06.007(java.sql.Timestamp)][l
 astUpdatedTxStamp,2007-11-20 
 12:22:05.187(java.sql.Timestamp)][maxAmount,25.07(java.math.BigDecimal)][orderId,WS1(java.lang.String)][orderPaymentPreferenceId,10220(java.lang.String)][paymentMethodId,1(java.lang.String)][paymentM
 ethodTypeId,CREDIT_CARD(java.lang.String)]
 2007-11-20 12:22:06,009 (http-0.0.0.0-8443-Processor3) [
 SqlJdbcUtil.java:704:INFO ] ### setting field [orderPaymentPreferenceId] of 
 type [String] and fieldtype [1] to [10220]
 2007-11-20 12:22:06,011 (http-0.0.0.0-8443-Processor3) [
 SqlJdbcUtil.java:704:INFO ] ### setting field [orderId] of type [String] and 
 fieldtype [1] to [WS1]
 2007-11-20 12:22:06,012 (http-0.0.0.0-8443-Processor3) [
 SqlJdbcUtil.java:704:INFO ] ### setting field [orderItemSeqId] of type 
 [String] and fieldtype [1] to [null]
 2007-11-20 12:22:06,013 (http-0.0.0.0-8443-Processor3) [
 SqlJdbcUtil.java:704:INFO ] ### setting field [productPricePurposeId] of type 
 [String] and fieldtype [1] to [null]
 2007-11-20 12:22:06,014 (http-0.0.0.0-8443-Processor3) [
 SqlJdbcUtil.java:704:INFO ] ### setting field [paymentMethodTypeId] of type 
 [String] and fieldtype [1] to [CREDIT_CARD]
 2007-11-20 12:22:06,015 (http-0.0.0.0-8443-Processor3) [
 SqlJdbcUtil.java:704:INFO ] ### setting field [paymentMethodId] of type 
 [String] and fieldtype [1] to [1]
 2007-11-20 12:22:06,016 (http-0.0.0.0-8443-Processor3) [
 SqlJdbcUtil.java:704:INFO ] ### setting field [finAccountId] of type [String] 
 and fieldtype [1] to [null]
 2007-11-20 12:22:06,017 (http-0.0.0.0-8443-Processor3) [
 SqlJdbcUtil.java:704:INFO ] ### setting field [securityCode] of type [String] 
 and fieldtype [1] to [null]
 2007-11-20 12:22:06,025 (http-0.0.0.0-8443-Processor3) 

[jira] Commented: (OFBIZ-1415) Thread freeze when executing PreparedStatement with PosgreSQL

2007-11-20 Thread BJ Freeman (JIRA)

[ 
https://issues.apache.org/jira/browse/OFBIZ-1415?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12544070
 ] 

BJ Freeman commented on OFBIZ-1415:
---

need to validate if this is getting to the db and if the db is returning from 
the call.
then you can validate the driver is in fact doing what it is suppose to.
After that it would be considered a problem in ofbiz

 Thread freeze when executing PreparedStatement with PosgreSQL
 -

 Key: OFBIZ-1415
 URL: https://issues.apache.org/jira/browse/OFBIZ-1415
 Project: OFBiz
  Issue Type: Bug
  Components: framework
Affects Versions: SVN trunk
Reporter: Leon Torres

 I'm getting a hard freeze in a thread when it attempts to executeQuery() 
 using the postgresql Jdbc3 Prepared Statement.  It affects the 
 OrderServices.createPaymentPreference() method.  After extensive probing of 
 the issue, I can't figure out why.   Here's a verbose log of what happens.  
 The thread stops after the last line and never resumes, causing the browser 
 to remain loading indefinitely.  
 I suspect something is going on with BigDecimal or the nature of the insert.  
 Any ideas?
 2007-11-20 12:22:05,985 (http-0.0.0.0-8443-Processor3) [  
 ServiceDispatcher.java:347:INFO ] ### Invoking Sync Service 
 [createOrderPaymentPreference]
 2007-11-20 12:22:06,003 (http-0.0.0.0-8443-Processor3) [   
 SequenceUtil.java:258:INFO ] Got bank of sequenced IDs for 
 [OrderPaymentPreference]; curSeqId=10220, maxSeqId=10230, bankSize=10
 2007-11-20 12:22:06,006 (http-0.0.0.0-8443-Processor3) [  
 GenericEntity.java:389:WARN ] In entity field 
 [OrderPaymentPreference.maxAmount] set the value passed in 
 [java.math.BigDecimal] is not compatible with the Java type of the fi
 eld [Double]
 2007-11-20 12:22:06,008 (http-0.0.0.0-8443-Processor3) [ 
 GenericDAO.java:168:INFO ] ### saving fields [EMAIL PROTECTED], [EMAIL 
 PROTECTED], ModelEntity[OrderP
 [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], 
 ModelEntity[OrderPaymentPreferenc
 [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], 
 [EMAIL PROTECTED], ModelEntity[OrderPaymen
 [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], 
 [EMAIL PROTECTED], Mode
 [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], 
 ModelEntity[OrderPaymentPrefer
 [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED] from entity 
 [GenericEntity:OrderPaymentPreference][createdByUserLogin,DemoSalesManager(java.lang.String)][cr
 eatedDate,2007-11-20 
 12:22:06.007(java.sql.Timestamp)][createdStamp,2007-11-20 
 12:22:06.007(java.sql.Timestamp)][createdTxStamp,2007-11-20 
 12:22:05.187(java.sql.Timestamp)][lastUpdatedStamp,2007-11-20 
 12:22:06.007(java.sql.Timestamp)][l
 astUpdatedTxStamp,2007-11-20 
 12:22:05.187(java.sql.Timestamp)][maxAmount,25.07(java.math.BigDecimal)][orderId,WS1(java.lang.String)][orderPaymentPreferenceId,10220(java.lang.String)][paymentMethodId,1(java.lang.String)][paymentM
 ethodTypeId,CREDIT_CARD(java.lang.String)]
 2007-11-20 12:22:06,009 (http-0.0.0.0-8443-Processor3) [
 SqlJdbcUtil.java:704:INFO ] ### setting field [orderPaymentPreferenceId] of 
 type [String] and fieldtype [1] to [10220]
 2007-11-20 12:22:06,011 (http-0.0.0.0-8443-Processor3) [
 SqlJdbcUtil.java:704:INFO ] ### setting field [orderId] of type [String] and 
 fieldtype [1] to [WS1]
 2007-11-20 12:22:06,012 (http-0.0.0.0-8443-Processor3) [
 SqlJdbcUtil.java:704:INFO ] ### setting field [orderItemSeqId] of type 
 [String] and fieldtype [1] to [null]
 2007-11-20 12:22:06,013 (http-0.0.0.0-8443-Processor3) [
 SqlJdbcUtil.java:704:INFO ] ### setting field [productPricePurposeId] of type 
 [String] and fieldtype [1] to [null]
 2007-11-20 12:22:06,014 (http-0.0.0.0-8443-Processor3) [
 SqlJdbcUtil.java:704:INFO ] ### setting field [paymentMethodTypeId] of type 
 [String] and fieldtype [1] to [CREDIT_CARD]
 2007-11-20 12:22:06,015 (http-0.0.0.0-8443-Processor3) [
 SqlJdbcUtil.java:704:INFO ] ### setting field [paymentMethodId] of type 
 [String] and fieldtype [1] to [1]
 2007-11-20 12:22:06,016 (http-0.0.0.0-8443-Processor3) [
 SqlJdbcUtil.java:704:INFO ] ### setting field [finAccountId] of type [String] 
 and fieldtype [1] to [null]
 2007-11-20 12:22:06,017 (http-0.0.0.0-8443-Processor3) [
 SqlJdbcUtil.java:704:INFO ] ### setting field [securityCode] of type [String] 
 and fieldtype [1] to [null]
 2007-11-20 12:22:06,025 (http-0.0.0.0-8443-Processor3) [
 SqlJdbcUtil.java:704:INFO ] ### setting field [presentFlag] of type [String] 
 and fieldtype [1] to [null]
 2007-11-20 12:22:06,026 (http-0.0.0.0-8443-Processor3) [
 SqlJdbcUtil.java:704:INFO ] ### setting field [overflowFlag] of type 

[jira] Commented: (OFBIZ-1415) Thread freeze when executing PreparedStatement with PosgreSQL

2007-11-20 Thread Leon Torres (JIRA)

[ 
https://issues.apache.org/jira/browse/OFBIZ-1415?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12544092
 ] 

Leon Torres commented on OFBIZ-1415:


Sure, but before I go poking at the postgres JDBC, is there any knowledge of 
deadlocking happening?

 Thread freeze when executing PreparedStatement with PosgreSQL
 -

 Key: OFBIZ-1415
 URL: https://issues.apache.org/jira/browse/OFBIZ-1415
 Project: OFBiz
  Issue Type: Bug
  Components: framework
Affects Versions: SVN trunk
Reporter: Leon Torres

 I'm getting a hard freeze in a thread when it attempts to executeQuery() 
 using the postgresql Jdbc3 Prepared Statement.  It affects the 
 OrderServices.createPaymentPreference() method.  After extensive probing of 
 the issue, I can't figure out why.   Here's a verbose log of what happens.  
 The thread stops after the last line and never resumes, causing the browser 
 to remain loading indefinitely.  
 I suspect something is going on with BigDecimal or the nature of the insert.  
 Any ideas?
 2007-11-20 12:22:05,985 (http-0.0.0.0-8443-Processor3) [  
 ServiceDispatcher.java:347:INFO ] ### Invoking Sync Service 
 [createOrderPaymentPreference]
 2007-11-20 12:22:06,003 (http-0.0.0.0-8443-Processor3) [   
 SequenceUtil.java:258:INFO ] Got bank of sequenced IDs for 
 [OrderPaymentPreference]; curSeqId=10220, maxSeqId=10230, bankSize=10
 2007-11-20 12:22:06,006 (http-0.0.0.0-8443-Processor3) [  
 GenericEntity.java:389:WARN ] In entity field 
 [OrderPaymentPreference.maxAmount] set the value passed in 
 [java.math.BigDecimal] is not compatible with the Java type of the fi
 eld [Double]
 2007-11-20 12:22:06,008 (http-0.0.0.0-8443-Processor3) [ 
 GenericDAO.java:168:INFO ] ### saving fields [EMAIL PROTECTED], [EMAIL 
 PROTECTED], ModelEntity[OrderP
 [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], 
 ModelEntity[OrderPaymentPreferenc
 [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], 
 [EMAIL PROTECTED], ModelEntity[OrderPaymen
 [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], 
 [EMAIL PROTECTED], Mode
 [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], 
 ModelEntity[OrderPaymentPrefer
 [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED] from entity 
 [GenericEntity:OrderPaymentPreference][createdByUserLogin,DemoSalesManager(java.lang.String)][cr
 eatedDate,2007-11-20 
 12:22:06.007(java.sql.Timestamp)][createdStamp,2007-11-20 
 12:22:06.007(java.sql.Timestamp)][createdTxStamp,2007-11-20 
 12:22:05.187(java.sql.Timestamp)][lastUpdatedStamp,2007-11-20 
 12:22:06.007(java.sql.Timestamp)][l
 astUpdatedTxStamp,2007-11-20 
 12:22:05.187(java.sql.Timestamp)][maxAmount,25.07(java.math.BigDecimal)][orderId,WS1(java.lang.String)][orderPaymentPreferenceId,10220(java.lang.String)][paymentMethodId,1(java.lang.String)][paymentM
 ethodTypeId,CREDIT_CARD(java.lang.String)]
 2007-11-20 12:22:06,009 (http-0.0.0.0-8443-Processor3) [
 SqlJdbcUtil.java:704:INFO ] ### setting field [orderPaymentPreferenceId] of 
 type [String] and fieldtype [1] to [10220]
 2007-11-20 12:22:06,011 (http-0.0.0.0-8443-Processor3) [
 SqlJdbcUtil.java:704:INFO ] ### setting field [orderId] of type [String] and 
 fieldtype [1] to [WS1]
 2007-11-20 12:22:06,012 (http-0.0.0.0-8443-Processor3) [
 SqlJdbcUtil.java:704:INFO ] ### setting field [orderItemSeqId] of type 
 [String] and fieldtype [1] to [null]
 2007-11-20 12:22:06,013 (http-0.0.0.0-8443-Processor3) [
 SqlJdbcUtil.java:704:INFO ] ### setting field [productPricePurposeId] of type 
 [String] and fieldtype [1] to [null]
 2007-11-20 12:22:06,014 (http-0.0.0.0-8443-Processor3) [
 SqlJdbcUtil.java:704:INFO ] ### setting field [paymentMethodTypeId] of type 
 [String] and fieldtype [1] to [CREDIT_CARD]
 2007-11-20 12:22:06,015 (http-0.0.0.0-8443-Processor3) [
 SqlJdbcUtil.java:704:INFO ] ### setting field [paymentMethodId] of type 
 [String] and fieldtype [1] to [1]
 2007-11-20 12:22:06,016 (http-0.0.0.0-8443-Processor3) [
 SqlJdbcUtil.java:704:INFO ] ### setting field [finAccountId] of type [String] 
 and fieldtype [1] to [null]
 2007-11-20 12:22:06,017 (http-0.0.0.0-8443-Processor3) [
 SqlJdbcUtil.java:704:INFO ] ### setting field [securityCode] of type [String] 
 and fieldtype [1] to [null]
 2007-11-20 12:22:06,025 (http-0.0.0.0-8443-Processor3) [
 SqlJdbcUtil.java:704:INFO ] ### setting field [presentFlag] of type [String] 
 and fieldtype [1] to [null]
 2007-11-20 12:22:06,026 (http-0.0.0.0-8443-Processor3) [
 SqlJdbcUtil.java:704:INFO ] ### setting field [overflowFlag] of type [String] 
 and fieldtype [1] to [null]
 2007-11-20 12:22:06,027 (http-0.0.0.0-8443-Processor3) [
 

[jira] Commented: (OFBIZ-1415) Thread freeze when executing PreparedStatement with PosgreSQL

2007-11-20 Thread David E. Jones (JIRA)

[ 
https://issues.apache.org/jira/browse/OFBIZ-1415?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12544109
 ] 

David E. Jones commented on OFBIZ-1415:
---

What do you mean by a deadlock? Do you mean a database deadlock? If so I 
wouldn't expect it to behave like this, you would get an exception from the 
database telling you there was a deadlock. If you're running with the service 
engine it will even try to re-run the service when it detects a deadlock.

 Thread freeze when executing PreparedStatement with PosgreSQL
 -

 Key: OFBIZ-1415
 URL: https://issues.apache.org/jira/browse/OFBIZ-1415
 Project: OFBiz
  Issue Type: Bug
  Components: framework
Affects Versions: SVN trunk
Reporter: Leon Torres

 I'm getting a hard freeze in a thread when it attempts to executeQuery() 
 using the postgresql Jdbc3 Prepared Statement.  It affects the 
 OrderServices.createPaymentPreference() method.  After extensive probing of 
 the issue, I can't figure out why.   Here's a verbose log of what happens.  
 The thread stops after the last line and never resumes, causing the browser 
 to remain loading indefinitely.  
 I suspect something is going on with BigDecimal or the nature of the insert.  
 Any ideas?
 2007-11-20 12:22:05,985 (http-0.0.0.0-8443-Processor3) [  
 ServiceDispatcher.java:347:INFO ] ### Invoking Sync Service 
 [createOrderPaymentPreference]
 2007-11-20 12:22:06,003 (http-0.0.0.0-8443-Processor3) [   
 SequenceUtil.java:258:INFO ] Got bank of sequenced IDs for 
 [OrderPaymentPreference]; curSeqId=10220, maxSeqId=10230, bankSize=10
 2007-11-20 12:22:06,006 (http-0.0.0.0-8443-Processor3) [  
 GenericEntity.java:389:WARN ] In entity field 
 [OrderPaymentPreference.maxAmount] set the value passed in 
 [java.math.BigDecimal] is not compatible with the Java type of the fi
 eld [Double]
 2007-11-20 12:22:06,008 (http-0.0.0.0-8443-Processor3) [ 
 GenericDAO.java:168:INFO ] ### saving fields [EMAIL PROTECTED], [EMAIL 
 PROTECTED], ModelEntity[OrderP
 [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], 
 ModelEntity[OrderPaymentPreferenc
 [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], 
 [EMAIL PROTECTED], ModelEntity[OrderPaymen
 [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], 
 [EMAIL PROTECTED], Mode
 [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], 
 ModelEntity[OrderPaymentPrefer
 [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED] from entity 
 [GenericEntity:OrderPaymentPreference][createdByUserLogin,DemoSalesManager(java.lang.String)][cr
 eatedDate,2007-11-20 
 12:22:06.007(java.sql.Timestamp)][createdStamp,2007-11-20 
 12:22:06.007(java.sql.Timestamp)][createdTxStamp,2007-11-20 
 12:22:05.187(java.sql.Timestamp)][lastUpdatedStamp,2007-11-20 
 12:22:06.007(java.sql.Timestamp)][l
 astUpdatedTxStamp,2007-11-20 
 12:22:05.187(java.sql.Timestamp)][maxAmount,25.07(java.math.BigDecimal)][orderId,WS1(java.lang.String)][orderPaymentPreferenceId,10220(java.lang.String)][paymentMethodId,1(java.lang.String)][paymentM
 ethodTypeId,CREDIT_CARD(java.lang.String)]
 2007-11-20 12:22:06,009 (http-0.0.0.0-8443-Processor3) [
 SqlJdbcUtil.java:704:INFO ] ### setting field [orderPaymentPreferenceId] of 
 type [String] and fieldtype [1] to [10220]
 2007-11-20 12:22:06,011 (http-0.0.0.0-8443-Processor3) [
 SqlJdbcUtil.java:704:INFO ] ### setting field [orderId] of type [String] and 
 fieldtype [1] to [WS1]
 2007-11-20 12:22:06,012 (http-0.0.0.0-8443-Processor3) [
 SqlJdbcUtil.java:704:INFO ] ### setting field [orderItemSeqId] of type 
 [String] and fieldtype [1] to [null]
 2007-11-20 12:22:06,013 (http-0.0.0.0-8443-Processor3) [
 SqlJdbcUtil.java:704:INFO ] ### setting field [productPricePurposeId] of type 
 [String] and fieldtype [1] to [null]
 2007-11-20 12:22:06,014 (http-0.0.0.0-8443-Processor3) [
 SqlJdbcUtil.java:704:INFO ] ### setting field [paymentMethodTypeId] of type 
 [String] and fieldtype [1] to [CREDIT_CARD]
 2007-11-20 12:22:06,015 (http-0.0.0.0-8443-Processor3) [
 SqlJdbcUtil.java:704:INFO ] ### setting field [paymentMethodId] of type 
 [String] and fieldtype [1] to [1]
 2007-11-20 12:22:06,016 (http-0.0.0.0-8443-Processor3) [
 SqlJdbcUtil.java:704:INFO ] ### setting field [finAccountId] of type [String] 
 and fieldtype [1] to [null]
 2007-11-20 12:22:06,017 (http-0.0.0.0-8443-Processor3) [
 SqlJdbcUtil.java:704:INFO ] ### setting field [securityCode] of type [String] 
 and fieldtype [1] to [null]
 2007-11-20 12:22:06,025 (http-0.0.0.0-8443-Processor3) [
 SqlJdbcUtil.java:704:INFO ] ### setting field [presentFlag] of type [String] 
 and fieldtype [1] to [null]
 2007-11-20 12:22:06,026