Error during Registration (new customer)
---------------------------------------- Key: OFBIZ-3076 URL: https://issues.apache.org/jira/browse/OFBIZ-3076 Project: OFBiz Issue Type: Bug Components: specialpurpose/ecommerce Reporter: Abdullah Shaikh Priority: Minor During new customer registration, there is no validation check for "Allow Address Solicitation", the default value of which is "--", this leads to the below error getting displayed on the page. The Following Errors Occurred: Error: ERROR: Could not complete the Create a PartyContactMech [file:/home/abdullah/projects/ofbiz-sagepay_ws/ofbiz/applications/party/script/org/ofbiz/party/contact/PartyContactMechServices.xml#createPartyContactMech] process [problem creating the newValue value: Error while inserting: [GenericEntity:PartyContactMech][allowSolicitation,--(java.lang.String)][contactMechId,10020(java.lang.String)][createdStamp,2009-10-23 14:56:41.067(java.sql.Timestamp)][createdTxStamp,2009-10-23 14:56:40.277(java.sql.Timestamp)][fromDate,2009-10-23 14:56:41.067(java.sql.Timestamp)][lastUpdatedStamp,2009-10-23 14:56:41.067(java.sql.Timestamp)][lastUpdatedTxStamp,2009-10-23 14:56:40.277(java.sql.Timestamp)][partyId,10010(java.lang.String)][roleTypeId,CUSTOMER(java.lang.String)] (SQL Exception while executing the following:INSERT INTO public.PARTY_CONTACT_MECH (PARTY_ID, CONTACT_MECH_ID, FROM_DATE, THRU_DATE, ROLE_TYPE_ID, ALLOW_SOLICITATION, EXTENSION, VERIFIED, COMMENTS, YEARS_WITH_CONTACT_MECH, MONTHS_WITH_CONTACT_MECH, LAST_UPDATED_STAMP, LAST_UPDATED_TX_STAMP, CREATED_STAMP, CREATED_TX_STAMP) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) (ERROR: value too long for type character(1)))] calling service createPartyPostalAddress in createCustomer -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
[ https://issues.apache.org/jira/browse/OFBIZ-3076?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jacques Le Roux closed OFBIZ-3076. ---------------------------------- Resolution: Fixed Fix Version/s: SVN trunk Assignee: Jacques Le Roux Thanks for report Abdullah, Fixed in trunk at r829316. Finally when I tried to backport I found that this was changed from <option></option> to <option>--</option> at r806206 So previous versions are OK. I think it's not really wanted so I changed it back to <option></option> at r829320 > Error during Registration (new customer) > ---------------------------------------- > > Key: OFBIZ-3076 > URL: https://issues.apache.org/jira/browse/OFBIZ-3076 > Project: OFBiz > Issue Type: Bug > Components: specialpurpose/ecommerce > Reporter: Abdullah Shaikh > Assignee: Jacques Le Roux > Priority: Minor > Fix For: SVN trunk > > > During new customer registration, there is no validation check for "Allow Address Solicitation", the default value of which is "--", this leads to the below error getting displayed on the page. > The Following Errors Occurred: > Error: ERROR: Could not complete the Create a PartyContactMech [file:/home/abdullah/projects/ofbiz-sagepay_ws/ofbiz/applications/party/script/org/ofbiz/party/contact/PartyContactMechServices.xml#createPartyContactMech] process [problem creating the newValue value: Error while inserting: [GenericEntity:PartyContactMech][allowSolicitation,--(java.lang.String)][contactMechId,10020(java.lang.String)][createdStamp,2009-10-23 14:56:41.067(java.sql.Timestamp)][createdTxStamp,2009-10-23 14:56:40.277(java.sql.Timestamp)][fromDate,2009-10-23 14:56:41.067(java.sql.Timestamp)][lastUpdatedStamp,2009-10-23 14:56:41.067(java.sql.Timestamp)][lastUpdatedTxStamp,2009-10-23 14:56:40.277(java.sql.Timestamp)][partyId,10010(java.lang.String)][roleTypeId,CUSTOMER(java.lang.String)] (SQL Exception while executing the following:INSERT INTO public.PARTY_CONTACT_MECH (PARTY_ID, CONTACT_MECH_ID, FROM_DATE, THRU_DATE, ROLE_TYPE_ID, ALLOW_SOLICITATION, EXTENSION, VERIFIED, COMMENTS, YEARS_WITH_CONTACT_MECH, MONTHS_WITH_CONTACT_MECH, LAST_UPDATED_STAMP, LAST_UPDATED_TX_STAMP, CREATED_STAMP, CREATED_TX_STAMP) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) (ERROR: value too long for type character(1)))] calling service createPartyPostalAddress in createCustomer -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-3076?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12769617#action_12769617 ] Jacques Le Roux commented on OFBIZ-3076: ---------------------------------------- Actually the source o fchange is not r806206 but is hard to find, anyway who cares ;) > Error during Registration (new customer) > ---------------------------------------- > > Key: OFBIZ-3076 > URL: https://issues.apache.org/jira/browse/OFBIZ-3076 > Project: OFBiz > Issue Type: Bug > Components: specialpurpose/ecommerce > Reporter: Abdullah Shaikh > Assignee: Jacques Le Roux > Priority: Minor > Fix For: SVN trunk > > > During new customer registration, there is no validation check for "Allow Address Solicitation", the default value of which is "--", this leads to the below error getting displayed on the page. > The Following Errors Occurred: > Error: ERROR: Could not complete the Create a PartyContactMech [file:/home/abdullah/projects/ofbiz-sagepay_ws/ofbiz/applications/party/script/org/ofbiz/party/contact/PartyContactMechServices.xml#createPartyContactMech] process [problem creating the newValue value: Error while inserting: [GenericEntity:PartyContactMech][allowSolicitation,--(java.lang.String)][contactMechId,10020(java.lang.String)][createdStamp,2009-10-23 14:56:41.067(java.sql.Timestamp)][createdTxStamp,2009-10-23 14:56:40.277(java.sql.Timestamp)][fromDate,2009-10-23 14:56:41.067(java.sql.Timestamp)][lastUpdatedStamp,2009-10-23 14:56:41.067(java.sql.Timestamp)][lastUpdatedTxStamp,2009-10-23 14:56:40.277(java.sql.Timestamp)][partyId,10010(java.lang.String)][roleTypeId,CUSTOMER(java.lang.String)] (SQL Exception while executing the following:INSERT INTO public.PARTY_CONTACT_MECH (PARTY_ID, CONTACT_MECH_ID, FROM_DATE, THRU_DATE, ROLE_TYPE_ID, ALLOW_SOLICITATION, EXTENSION, VERIFIED, COMMENTS, YEARS_WITH_CONTACT_MECH, MONTHS_WITH_CONTACT_MECH, LAST_UPDATED_STAMP, LAST_UPDATED_TX_STAMP, CREATED_STAMP, CREATED_TX_STAMP) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) (ERROR: value too long for type character(1)))] calling service createPartyPostalAddress in createCustomer -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
Free forum by Nabble | Edit this page |