locale error in simple method

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
14 messages Options
Reply | Threaded
Open this post in threaded view
|

locale error in simple method

Vince Clark
I created a custom simple method to respond to a request from a web form. Getting a locale error and cannot figure out where locale is required.

<simple-method method-name="createLeadFromWebForm" short-description="Create Lead from Web Form" login-required="false">
<entity-one entity-name="UserLogin" value-name="userlogin">
<field-map field-name="userLoginId" value="system"/>
</entity-one>
<set-current-user-login value-name="userlogin"/>
<set field="newLead.firstName" from-field="parameters.firstName"/>
<set field="newLead.lastName" from-field="parameters.lastName"/>
<set field="newLead.groupName" from-field="parameters.groupName"/>
<set field="newLead.emailAddress" from-field="parameters.emailAddress"/>
<set field="newLead.contactNumber" from-field="parameters.contactNumber"/>
<set field="newLead.address1" from-field="parameters.address1"/>
<set field="newLead.countryGeoId" from-field="parameters.countryGeoId"/>
<set field="newLead.city" from-field="parameters.city"/>
<set field="newLead.stateProvinceGeoId" from-field="parameters.stateProvinceGeoId"/>
<set field="newLead.postalCode" from-field="parameters.postalCode"/>
<set field="newLead.quickAdd" from-field="parameters.quickAdd"/>
<call-service service-name="createLead" in-map-name="newLead">
<result-to-field result-name="partyId" field="partyId"/>
</call-service>
</simple-method>

The simple method that I am calling "createLead" calls other simple methods. One of them is createPersonRoleAndContactMechs, which throws the following exception:
2009-01-11 18:43:36,887 (http-0.0.0.0-8080-1) [ RequestHandler.java:314:ERROR] Request webFormSubmit caused an error with the following message: Error:Error:Error trying to begin transaction, could not process method: The current transaction is marked for rollback, not beginning a new transaction and aborting current operation; the rollbackOnly was caused by: Error in simple-method [Creates a person, role and contactMechs [file:/home/ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error running the simple-method: Error in simple-method operation [ ]: java.lang.RuntimeException: Error in simple-method operation [ ]: java.lang.IllegalArgumentException: locale cannot be null
null calling service createPartyRole in createLead calling service createLead in createLeadFromWebForm



Reply | Threaded
Open this post in threaded view
|

Re: locale error in simple method

Adrian Crum
Vince,

We will need a complete log to track this down. To be specific, I need
to see the entire Java stack trace.

-Adrian

Vince M. Clark wrote:

> I created a custom simple method to respond to a request from a web form. Getting a locale error and cannot figure out where locale is required.
>
> <simple-method method-name="createLeadFromWebForm" short-description="Create Lead from Web Form" login-required="false">
> <entity-one entity-name="UserLogin" value-name="userlogin">
> <field-map field-name="userLoginId" value="system"/>
> </entity-one>
> <set-current-user-login value-name="userlogin"/>
> <set field="newLead.firstName" from-field="parameters.firstName"/>
> <set field="newLead.lastName" from-field="parameters.lastName"/>
> <set field="newLead.groupName" from-field="parameters.groupName"/>
> <set field="newLead.emailAddress" from-field="parameters.emailAddress"/>
> <set field="newLead.contactNumber" from-field="parameters.contactNumber"/>
> <set field="newLead.address1" from-field="parameters.address1"/>
> <set field="newLead.countryGeoId" from-field="parameters.countryGeoId"/>
> <set field="newLead.city" from-field="parameters.city"/>
> <set field="newLead.stateProvinceGeoId" from-field="parameters.stateProvinceGeoId"/>
> <set field="newLead.postalCode" from-field="parameters.postalCode"/>
> <set field="newLead.quickAdd" from-field="parameters.quickAdd"/>
> <call-service service-name="createLead" in-map-name="newLead">
> <result-to-field result-name="partyId" field="partyId"/>
> </call-service>
> </simple-method>
>
> The simple method that I am calling "createLead" calls other simple methods. One of them is createPersonRoleAndContactMechs, which throws the following exception:
> 2009-01-11 18:43:36,887 (http-0.0.0.0-8080-1) [ RequestHandler.java:314:ERROR] Request webFormSubmit caused an error with the following message: Error:Error:Error trying to begin transaction, could not process method: The current transaction is marked for rollback, not beginning a new transaction and aborting current operation; the rollbackOnly was caused by: Error in simple-method [Creates a person, role and contactMechs [file:/home/ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error running the simple-method: Error in simple-method operation [ ]: java.lang.RuntimeException: Error in simple-method operation [ ]: java.lang.IllegalArgumentException: locale cannot be null
> null calling service createPartyRole in createLead calling service createLead in createLeadFromWebForm
>
>
>
>
Reply | Threaded
Open this post in threaded view
|

Re: locale error in simple method

Vince Clark
Here is the entire trace. Note that the first few lines are just xml validation errors.


2009-01-12 20:28:07,054 (http-0.0.0.0-8080-1) [ UtilXml.java:660:ERROR] XmlFileLoader: File file:/home/ofbiz/trunk/hot-deploy/ge/script/org/ofbiz/ge/PartyServices.xml process error. Line: 88. Error message: cvc-complex-type.3.2.2: Attribute 'field-name' is not allowed to appear in element 'if-empty'.
2009-01-12 20:28:07,055 (http-0.0.0.0-8080-1) [ UtilXml.java:660:ERROR] XmlFileLoader: File file:/home/ofbiz/trunk/hot-deploy/ge/script/org/ofbiz/ge/PartyServices.xml process error. Line: 88. Error message: cvc-complex-type.4: Attribute 'field' must appear on element 'if-empty'.
2009-01-12 20:28:07,055 (http-0.0.0.0-8080-1) [ UtilXml.java:660:ERROR] XmlFileLoader: File file:/home/ofbiz/trunk/hot-deploy/ge/script/org/ofbiz/ge/PartyServices.xml process error. Line: 122. Error message: cvc-complex-type.3.2.2: Attribute 'field' is not allowed to appear in element 'result-to-field'.
2009-01-12 20:28:07,056 (http-0.0.0.0-8080-1) [ UtilXml.java:241:INFO ] XML Read 0.026s: file:/home/ofbiz/trunk/hot-deploy/ge/script/org/ofbiz/ge/PartyServices.xml
2009-01-12 20:28:07,059 (http-0.0.0.0-8080-1) [ Log.java:94 :INFO ] locale is en_US // here is where I set a locale variable and outputted it in the log

2009-01-12 20:28:07,087 (http-0.0.0.0-8080-1) [ UtilXml.java:241:INFO ] XML Read 0.027s: file:/home/ofbiz/trunk/applications/marketing/script/org/ofbiz/sfa/lead/LeadServices.xml
2009-01-12 20:28:07,125 (http-0.0.0.0-8080-1) [ UtilXml.java:241:INFO ] XML Read 0.028s: file:/home/ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartySimpleMethods.xml
2009-01-12 20:28:07,129 (http-0.0.0.0-8080-1) [ SimpleMethod.java:1109:ERROR] ---- runtime exception report -------------------------------------------------- Error in simple-method operation [ ]: java.lang.IllegalArgumentException: locale cannot be null Exception: java.lang.IllegalArgumentException Message: locale cannot be null ---- stack trace --------------------------------------------------------------- java.lang.IllegalArgumentException: locale cannot be null org.ofbiz.base.util.UtilProperties.getResourceBundle(UtilProperties.java:480) org.ofbiz.base.util.UtilProperties.getMessage(UtilProperties.java:385) org.ofbiz.minilang.operation.SimpleMapOperation.addMessage(SimpleMapOperation.java:62) org.ofbiz.minilang.operation.ValidateMethod.exec(ValidateMethod.java:100) org.ofbiz.minilang.operation.SimpleMapProcess.exec(SimpleMapProcess.java:51) org.ofbiz.minilang.operation.MapProcessor.exec(MapProcessor.java:80) org.ofbiz.minilang.method.callops.CallSimpleMapProcessor.exec(CallSimpleMapProcessor.java:91) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104) org.ofbiz.minilang.method.ifops.IfNotEmpty.exec(IfNotEmpty.java:91) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104) org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:744) org.ofbiz.minilang.method.callops.CallSimpleMethod.exec(CallSimpleMethod.java:75) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104) org.ofbiz.minilang.method.ifops.IfCompare.exec(IfCompare.java:123) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104) org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:744) org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:134) org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:116) org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76) org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:384) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:163) org.ofbiz.minilang.method.callops.CallService.exec(CallService.java:246) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104) org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:744) org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:134) org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:116) org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76) org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:384) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:149) org.ofbiz.webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:334) org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:454) org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:281) org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:198) javax.servlet.http.HttpServlet.service(HttpServlet.java:690) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:255) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) org.apa che.coyote.http11.Http11Processor.process(Http11Processor.java:844) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) java.lang.Thread.run(Thread.java:595) --------------------------------------------------------------------------------
2009-01-12 20:28:07,130 (http-0.0.0.0-8080-1) [ SimpleMethod.java:1109:ERROR] ---- runtime exception report -------------------------------------------------- Error in simple-method operation [ ]: java.lang.RuntimeException: Error in simple-method operation [ ]: java.lang.IllegalArgumentException: locale cannot be null Exception: java.lang.RuntimeException Message: Error in simple-method operation [ ]: java.lang.IllegalArgumentException: locale cannot be null ---- stack trace --------------------------------------------------------------- java.lang.RuntimeException: Error in simple-method operation [ ]: java.lang.IllegalArgumentException: locale cannot be null org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1110) org.ofbiz.minilang.method.ifops.IfNotEmpty.exec(IfNotEmpty.java:91) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104) org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:744) org.ofbiz.minilang.method.callops.CallSimpleMethod.exec(CallSimpleMethod.java:75) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104) org.ofbiz.minilang.method.ifops.IfCompare.exec(IfCompare.java:123) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104) org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:744) org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:134) org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:116) org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76) org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:384) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:163) org.ofbiz.minilang.method.callops.CallService.exec(CallService.java:246) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104) org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:744) org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:134) org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:116) org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76) org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:384) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:149) org.ofbiz.webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:334) org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:454) org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:281) org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:198) javax.servlet.http.HttpServlet.service(HttpServlet.java:690) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:255) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) java.lang.Thread.run(Thread.java:595) --------------------------------------------------------------------------------
2009-01-12 20:28:07,130 (http-0.0.0.0-8080-1) [ SimpleMethod.java:748:ERROR] Error running the simple-method: Error in simple-method operation [ ]: java.lang.RuntimeException: Error in simple-method operation [ ]: java.lang.IllegalArgumentException: locale cannot be null
2009-01-12 20:28:07,131 (http-0.0.0.0-8080-1) [ TransactionUtil.java:311:WARN ] ---- exception report ---------------------------------------------------------- [TransactionUtil.setRollbackOnly] Calling transaction setRollbackOnly; this stack trace shows where this is happening: Exception: java.lang.Exception Message: Error in simple-method [Creates a person, role and contactMechs [file:/home/ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error running the simple-method: Error in simple-method operation [ ]: java.lang.RuntimeException: Error in simple-method operation [ ]: java.lang.IllegalArgumentException: locale cannot be null
null ---- stack trace --------------------------------------------------------------- java.lang.Exception: Error in simple-method [Creates a person, role and contactMechs [file:/home/ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error running the simple-method: Error in simple-method operation [ ]: java.lang.RuntimeException: Error in simple-method operation [ ]: java.lang.IllegalArgumentException: locale cannot be null
null org.ofbiz.entity.transaction.TransactionUtil.setRollbackOnly(TransactionUtil.java:311) org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:258) org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:875) org.ofbiz.minilang.method.callops.CallSimpleMethod.exec(CallSimpleMethod.java:75) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104) org.ofbiz.minilang.method.ifops.IfCompare.exec(IfCompare.java:123) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104) org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:744) org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:134) org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:116) org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76) org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:384) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:163) org.ofbiz.minilang.method.callops.CallService.exec(CallService.java:246) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104) org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:744) org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:134) org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:116) org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76) org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:384) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:149) org.ofbiz.webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:334) org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:454) org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:281) org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:198) javax.servlet.http.HttpServlet.service(HttpServlet.java:690) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:255) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) java.lang.Thread.run(Thread.java:595) --------------------------------------------------------------------------------
2009-01-12 20:28:07,153 (http-0.0.0.0-8080-1) [ UtilXml.java:241:INFO ] XML Read 0.021s: file:/home/ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartyPermissionServices.xml
2009-01-12 20:28:07,196 (http-0.0.0.0-8080-1) [ UtilXml.java:241:INFO ] XML Read 0.028s: file:/home/ofbiz/trunk/framework/common/script/org/ofbiz/common/permission/CommonPermissionServices.xml
2009-01-12 20:28:07,197 (http-0.0.0.0-8080-1) [ Log.java:94 :INFO ] Checking for primary permission PARTYMGR_CREATE
2009-01-12 20:28:07,198 (http-0.0.0.0-8080-1) [ Log.java:94 :INFO ] Checking for alternate permission PARTYMGR_ROLE_CREATE
2009-01-12 20:28:07,200 (http-0.0.0.0-8080-1) [ ServiceDispatcher.java:578:INFO ] Sync service [ecommerce/partyRolePermissionCheck] finished in [68] milliseconds
2009-01-12 20:28:07,242 (http-0.0.0.0-8080-1) [ UtilXml.java:241:INFO ] XML Read 0.041s: file:/home/ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartyServices.xml
2009-01-12 20:28:07,249 (http-0.0.0.0-8080-1) [ TransactionUtil.java:91 :WARN ] ---- exception report ---------------------------------------------------------- [TransactionUtil.begin] active transaction marked for rollback in place, so no transaction begun; this stack trace shows when the exception began: Exception: java.lang.Exception Message: Tx Stack Placeholder ---- stack trace --------------------------------------------------------------- java.lang.Exception: Tx Stack Placeholder org.ofbiz.entity.transaction.TransactionUtil.setTransactionBeginStack(TransactionUtil.java:636) org.ofbiz.entity.transaction.TransactionUtil.begin(TransactionUtil.java:125) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:302) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:149) org.ofbiz.webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:334) org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:454) org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:281) org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:198) javax.servlet.http.HttpServlet.service(HttpServlet.java:690) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:255) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) java.lang.Thread.run(Thread.java:595) --------------------------------------------------------------------------------
2009-01-12 20:28:07,250 (http-0.0.0.0-8080-1) [ SimpleMethod.java:726:WARN ] Error trying to begin transaction, could not process method: The current transaction is marked for rollback, not beginning a new transaction and aborting current operation; the rollbackOnly was caused by: Error in simple-method [Creates a person, role and contactMechs [file:/home/ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error running the simple-method: Error in simple-method operation [ ]: java.lang.RuntimeException: Error in simple-method operation [ ]: java.lang.IllegalArgumentException: locale cannot be null
null
2009-01-12 20:28:07,251 (http-0.0.0.0-8080-1) [ SimpleMethod.java:727:WARN ] ---- exception report ---------------------------------------------------------- Exception: org.ofbiz.entity.transaction.GenericTransactionException Message: The current transaction is marked for rollback, not beginning a new transaction and aborting current operation; the rollbackOnly was caused by: Error in simple-method [Creates a person, role and contactMechs [file:/home/ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error running the simple-method: Error in simple-method operation [ ]: java.lang.RuntimeException: Error in simple-method operation [ ]: java.lang.IllegalArgumentException: locale cannot be null
null ---- stack trace --------------------------------------------------------------- org.ofbiz.entity.transaction.GenericTransactionException: The current transaction is marked for rollback, not beginning a new transaction and aborting current operation; the rollbackOnly was caused by: Error in simple-method [Creates a person, role and contactMechs [file:/home/ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error running the simple-method: Error in simple-method operation [ ]: java.lang.RuntimeException: Error in simple-method operation [ ]: java.lang.IllegalArgumentException: locale cannot be null
null org.ofbiz.entity.transaction.TransactionUtil.begin(TransactionUtil.java:99) org.ofbiz.entity.transaction.TransactionUtil.begin(TransactionUtil.java:71) org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:723) org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:134) org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:116) org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76) org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:384) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:163) org.ofbiz.minilang.method.callops.CallService.exec(CallService.java:246) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104) org.ofbiz.minilang.method.ifops.IfNotEmpty.exec(IfNotEmpty.java:91) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104) org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:744) org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:134) org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:116) org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76) org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:384) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:163) org.ofbiz.minilang.method.callops.CallService.exec(CallService.java:246) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104) org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:744) org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:134) org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:116) org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76) org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:384) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:149) org.ofbiz.webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:334) org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:454) org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:281) org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:198) javax.servlet.http.HttpServlet.service(HttpServlet.java:690) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:255) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) java.lang.Thread.run(Thread.java:595) --------------------------------------------------------------------------------
2009-01-12 20:28:07,251 (http-0.0.0.0-8080-1) [ ServiceDispatcher.java:522:ERROR] Error in Service [createPartyRole]: Error trying to begin transaction, could not process method: The current transaction is marked for rollback, not beginning a new transaction and aborting current operation; the rollbackOnly was caused by: Error in simple-method [Creates a person, role and contactMechs [file:/home/ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error running the simple-method: Error in simple-method operation [ ]: java.lang.RuntimeException: Error in simple-method operation [ ]: java.lang.IllegalArgumentException: locale cannot be null
null
2009-01-12 20:28:07,252 (http-0.0.0.0-8080-1) [ TransactionUtil.java:315:INFO ] [TransactionUtil.setRollbackOnly] transaction rollback only not set, rollback only is already set.
2009-01-12 20:28:07,252 (http-0.0.0.0-8080-1) [ ServiceDispatcher.java:578:INFO ] Sync service [ecommerce/createPartyRole] finished in [121] milliseconds
2009-01-12 20:28:07,252 (http-0.0.0.0-8080-1) [ TransactionUtil.java:315:INFO ] [TransactionUtil.setRollbackOnly] transaction rollback only not set, rollback only is already set.
2009-01-12 20:28:07,253 (http-0.0.0.0-8080-1) [ ServiceDispatcher.java:522:ERROR] Error in Service [createLead]: Error:Error trying to begin transaction, could not process method: The current transaction is marked for rollback, not beginning a new transaction and aborting current operation; the rollbackOnly was caused by: Error in simple-method [Creates a person, role and contactMechs [file:/home/ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error running the simple-method: Error in simple-method operation [ ]: java.lang.RuntimeException: Error in simple-method operation [ ]: java.lang.IllegalArgumentException: locale cannot be null
null calling service createPartyRole in createLead
2009-01-12 20:28:07,253 (http-0.0.0.0-8080-1) [ TransactionUtil.java:315:INFO ] [TransactionUtil.setRollbackOnly] transaction rollback only not set, rollback only is already set.
2009-01-12 20:28:07,253 (http-0.0.0.0-8080-1) [ ServiceDispatcher.java:578:INFO ] Sync service [ecommerce/createLead] finished in [194] milliseconds
2009-01-12 20:28:07,254 (http-0.0.0.0-8080-1) [ TransactionUtil.java:315:INFO ] [TransactionUtil.setRollbackOnly] transaction rollback only not set, rollback only is already set.
2009-01-12 20:28:07,254 (http-0.0.0.0-8080-1) [ ServiceDispatcher.java:522:ERROR] Error in Service [createLeadFromWebForm]: Error:Error:Error trying to begin transaction, could not process method: The current transaction is marked for rollback, not beginning a new transaction and aborting current operation; the rollbackOnly was caused by: Error in simple-method [Creates a person, role and contactMechs [file:/home/ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error running the simple-method: Error in simple-method operation [ ]: java.lang.RuntimeException: Error in simple-method operation [ ]: java.lang.IllegalArgumentException: locale cannot be null
null calling service createPartyRole in createLead calling service createLead in createLeadFromWebForm
2009-01-12 20:28:07,255 (http-0.0.0.0-8080-1) [ TransactionUtil.java:275:ERROR] ---- exception report ---------------------------------------------------------- [TransactionUtil.rollback] Exception: java.lang.Exception Message: Stack Trace ---- stack trace --------------------------------------------------------------- java.lang.Exception: Stack Trace org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:274) org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:256) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:526) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:149) org.ofbiz.webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:334) org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:454) org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:281) org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:198) javax.servlet.http.HttpServlet.service(HttpServlet.java:690) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:255) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) java.lang.Thread.run(Thread.java:595) --------------------------------------------------------------------------------
2009-01-12 20:28:07,255 (http-0.0.0.0-8080-1) [ TransactionUtil.java:285:INFO ] [TransactionUtil.rollback] transaction rolled back
2009-01-12 20:28:07,255 (http-0.0.0.0-8080-1) [ ServiceDispatcher.java:578:INFO ] Sync service [ecommerce/createLeadFromWebForm] finished in [236] milliseconds
2009-01-12 20:28:07,327 (http-0.0.0.0-8080-1) [ RequestHandler.java:314:ERROR] Request webFormSubmit caused an error with the following message: Error:Error:Error trying to begin transaction, could not process method: The current transaction is marked for rollback, not beginning a new transaction and aborting current operation; the rollbackOnly was caused by: Error in simple-method [Creates a person, role and contactMechs [file:/home/ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error running the simple-method: Error in simple-method operation [ ]: java.lang.RuntimeException: Error in simple-method operation [ ]: java.lang.IllegalArgumentException: locale cannot be null
null calling service createPartyRole in createLead calling service createLead in createLeadFromWebForm
2009-01-12 20:28:07,328 (http-0.0.0.0-8080-1) [ RequestHandler.java:412:INFO ] [RequestHandler.doRequest]: Response is a URL redirect. sessionId=BBA68197213FF2F01514F97BB85687A6.jvm1
2009-01-12 20:28:07,328 (http-0.0.0.0-8080-1) [ RequestHandler.java:539:INFO ] [Sending redirect]: http://www.globalera.com sessionId=BBA68197213FF2F01514F97BB85687A6.jvm1
2009-01-12 20:28:07,376 (http-0.0.0.0-8080-1) [ ControlServlet.java:299:INFO ] [[[webFormSubmit] Done rendering page, Servlet Finished- total:0.64,since last([webFormSubmit] S...):0.638]]

----- Original Message -----
From: "Adrian Crum" <[hidden email]>
To: [hidden email]
Sent: Monday, January 12, 2009 8:31:07 AM (GMT-0700) America/Denver
Subject: Re: locale error in simple method

Vince,

We will need a complete log to track this down. To be specific, I need
to see the entire Java stack trace.

-Adrian

Vince M. Clark wrote:

> I created a custom simple method to respond to a request from a web form. Getting a locale error and cannot figure out where locale is required.
>
> <simple-method method-name="createLeadFromWebForm" short-description="Create Lead from Web Form" login-required="false">
> <entity-one entity-name="UserLogin" value-name="userlogin">
> <field-map field-name="userLoginId" value="system"/>
> </entity-one>
> <set-current-user-login value-name="userlogin"/>
> <set field="newLead.firstName" from-field="parameters.firstName"/>
> <set field="newLead.lastName" from-field="parameters.lastName"/>
> <set field="newLead.groupName" from-field="parameters.groupName"/>
> <set field="newLead.emailAddress" from-field="parameters.emailAddress"/>
> <set field="newLead.contactNumber" from-field="parameters.contactNumber"/>
> <set field="newLead.address1" from-field="parameters.address1"/>
> <set field="newLead.countryGeoId" from-field="parameters.countryGeoId"/>
> <set field="newLead.city" from-field="parameters.city"/>
> <set field="newLead.stateProvinceGeoId" from-field="parameters.stateProvinceGeoId"/>
> <set field="newLead.postalCode" from-field="parameters.postalCode"/>
> <set field="newLead.quickAdd" from-field="parameters.quickAdd"/>
> <call-service service-name="createLead" in-map-name="newLead">
> <result-to-field result-name="partyId" field="partyId"/>
> </call-service>
> </simple-method>
>
> The simple method that I am calling "createLead" calls other simple methods. One of them is createPersonRoleAndContactMechs, which throws the following exception:
> 2009-01-11 18:43:36,887 (http-0.0.0.0-8080-1) [ RequestHandler.java:314:ERROR] Request webFormSubmit caused an error with the following message: Error:Error:Error trying to begin transaction, could not process method: The current transaction is marked for rollback, not beginning a new transaction and aborting current operation; the rollbackOnly was caused by: Error in simple-method [Creates a person, role and contactMechs [file:/home/ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error running the simple-method: Error in simple-method operation [ ]: java.lang.RuntimeException: Error in simple-method operation [ ]: java.lang.IllegalArgumentException: locale cannot be null
> null calling service createPartyRole in createLead calling service createLead in createLeadFromWebForm
>
>
>
>
Reply | Threaded
Open this post in threaded view
|

Re: locale error in simple method

Adrian Crum
Vince,

I checked to see if something changed in the framework that would cause
this error, but I didn't find anything. There must be a problem with
the service definition - which is preventing the locale parameter from
being included in the service context.

-Adrian

Vince M. Clark wrote:

> Here is the entire trace. Note that the first few lines are just xml validation errors.
>
>
> 2009-01-12 20:28:07,054 (http-0.0.0.0-8080-1) [ UtilXml.java:660:ERROR] XmlFileLoader: File file:/home/ofbiz/trunk/hot-deploy/ge/script/org/ofbiz/ge/PartyServices.xml process error. Line: 88. Error message: cvc-complex-type.3.2.2: Attribute 'field-name' is not allowed to appear in element 'if-empty'.
> 2009-01-12 20:28:07,055 (http-0.0.0.0-8080-1) [ UtilXml.java:660:ERROR] XmlFileLoader: File file:/home/ofbiz/trunk/hot-deploy/ge/script/org/ofbiz/ge/PartyServices.xml process error. Line: 88. Error message: cvc-complex-type.4: Attribute 'field' must appear on element 'if-empty'.
> 2009-01-12 20:28:07,055 (http-0.0.0.0-8080-1) [ UtilXml.java:660:ERROR] XmlFileLoader: File file:/home/ofbiz/trunk/hot-deploy/ge/script/org/ofbiz/ge/PartyServices.xml process error. Line: 122. Error message: cvc-complex-type.3.2.2: Attribute 'field' is not allowed to appear in element 'result-to-field'.
> 2009-01-12 20:28:07,056 (http-0.0.0.0-8080-1) [ UtilXml.java:241:INFO ] XML Read 0.026s: file:/home/ofbiz/trunk/hot-deploy/ge/script/org/ofbiz/ge/PartyServices.xml
> 2009-01-12 20:28:07,059 (http-0.0.0.0-8080-1) [ Log.java:94 :INFO ] locale is en_US // here is where I set a locale variable and outputted it in the log
>
> 2009-01-12 20:28:07,087 (http-0.0.0.0-8080-1) [ UtilXml.java:241:INFO ] XML Read 0.027s: file:/home/ofbiz/trunk/applications/marketing/script/org/ofbiz/sfa/lead/LeadServices.xml
> 2009-01-12 20:28:07,125 (http-0.0.0.0-8080-1) [ UtilXml.java:241:INFO ] XML Read 0.028s: file:/home/ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartySimpleMethods.xml
> 2009-01-12 20:28:07,129 (http-0.0.0.0-8080-1) [ SimpleMethod.java:1109:ERROR] ---- runtime exception report -------------------------------------------------- Error in simple-method operation [ ]: java.lang.IllegalArgumentException: locale cannot be null Exception: java.lang.IllegalArgumentException Message: locale cannot be null ---- stack trace --------------------------------------------------------------- java.lang.IllegalArgumentException: locale cannot be null org.ofbiz.base.util.UtilProperties.getResourceBundle(UtilProperties.java:480) org.ofbiz.base.util.UtilProperties.getMessage(UtilProperties.java:385) org.ofbiz.minilang.operation.SimpleMapOperation.addMessage(SimpleMapOperation.java:62) org.ofbiz.minilang.operation.ValidateMethod.exec(ValidateMethod.java:100) org.ofbiz.minilang.operation.SimpleMapProcess.exec(SimpleMapProcess.java:51) org.ofbiz.minilang.operation.MapProcessor.exec(MapProcessor.java:80) org.ofbiz.minilang.method.callops.CallSimpleMapProcessor.exe
c(CallSimpleMapProcessor.java:91) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104) org.ofbiz.minilang.method.ifops.IfNotEmpty.exec(IfNotEmpty.java:91) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104) org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:744) org.ofbiz.minilang.method.callops.CallSimpleMethod.exec(CallSimpleMethod.java:75) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104) org.ofbiz.minilang.method.ifops.IfCompare.exec(IfCompare.java:123) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104) org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:744) org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:134) org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:116) org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76) org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDi
spatcher.java:384) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:163) org.ofbiz.minilang.method.callops.CallService.exec(CallService.java:246) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104) org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:744) org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:134) org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:116) org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76) org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:384) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:149) org.ofbiz.webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:334) org.ofbiz.webapp.control.Reque
stHandler.runEvent(RequestHandler.java:454) org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:281) org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:198) javax.servlet.http.HttpServlet.service(HttpServlet.java:690) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:255) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) org.apache.catalina.core.StandardHostValve.invoke(StandardHost
Valve.java:128) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) org.apa che.coyote.http11.Http11Processor.process(Http11Processor.java:844) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) java.lang.Thread.run(Thread.java:595) --------------------------------------------------------------------------------
> 2009-01-12 20:28:07,130 (http-0.0.0.0-8080-1) [ SimpleMethod.java:1109:ERROR] ---- runtime exception report -------------------------------------------------- Error in simple-method operation [ ]: java.lang.RuntimeException: Error in simple-method operation [ ]: java.lang.IllegalArgumentException: locale cannot be null Exception: java.lang.RuntimeException Message: Error in simple-method operation [ ]: java.lang.IllegalArgumentException: locale cannot be null ---- stack trace --------------------------------------------------------------- java.lang.RuntimeException: Error in simple-method operation [ ]: java.lang.IllegalArgumentException: locale cannot be null org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1110) org.ofbiz.minilang.method.ifops.IfNotEmpty.exec(IfNotEmpty.java:91) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104) org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:744) org.ofbiz.minilang.method.callops.CallSimpleMethod.exec(Ca
llSimpleMethod.java:75) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104) org.ofbiz.minilang.method.ifops.IfCompare.exec(IfCompare.java:123) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104) org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:744) org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:134) org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:116) org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76) org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:384) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:163) org.ofbiz.minilang.method.callops.CallService.exec(CallService.java:246) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104) org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.
java:744) org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:134) org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:116) org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76) org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:384) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:149) org.ofbiz.webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:334) org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:454) org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:281) org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:198) javax.servlet.http.HttpServlet.service(HttpServlet.java:690) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.apache.catalina.core.ApplicationFilt
erChain.internalDoFilter(ApplicationFilterChain.java:290) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:255) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) org.apache.coyote.http11.H
ttp11Processor.process(Http11Processor.java:844) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) java.lang.Thread.run(Thread.java:595) --------------------------------------------------------------------------------
> 2009-01-12 20:28:07,130 (http-0.0.0.0-8080-1) [ SimpleMethod.java:748:ERROR] Error running the simple-method: Error in simple-method operation [ ]: java.lang.RuntimeException: Error in simple-method operation [ ]: java.lang.IllegalArgumentException: locale cannot be null
> 2009-01-12 20:28:07,131 (http-0.0.0.0-8080-1) [ TransactionUtil.java:311:WARN ] ---- exception report ---------------------------------------------------------- [TransactionUtil.setRollbackOnly] Calling transaction setRollbackOnly; this stack trace shows where this is happening: Exception: java.lang.Exception Message: Error in simple-method [Creates a person, role and contactMechs [file:/home/ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error running the simple-method: Error in simple-method operation [ ]: java.lang.RuntimeException: Error in simple-method operation [ ]: java.lang.IllegalArgumentException: locale cannot be null
> null ---- stack trace --------------------------------------------------------------- java.lang.Exception: Error in simple-method [Creates a person, role and contactMechs [file:/home/ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error running the simple-method: Error in simple-method operation [ ]: java.lang.RuntimeException: Error in simple-method operation [ ]: java.lang.IllegalArgumentException: locale cannot be null
> null org.ofbiz.entity.transaction.TransactionUtil.setRollbackOnly(TransactionUtil.java:311) org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:258) org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:875) org.ofbiz.minilang.method.callops.CallSimpleMethod.exec(CallSimpleMethod.java:75) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104) org.ofbiz.minilang.method.ifops.IfCompare.exec(IfCompare.java:123) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104) org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:744) org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:134) org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:116) org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76) org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:384) org.ofbiz.service.ServiceDispatcher.runS
ync(ServiceDispatcher.java:213) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:163) org.ofbiz.minilang.method.callops.CallService.exec(CallService.java:246) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104) org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:744) org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:134) org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:116) org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76) org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:384) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:149) org.ofbiz.webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:334) org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:454) org.ofbiz.webap
p.control.RequestHandler.doRequest(RequestHandler.java:281) org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:198) javax.servlet.http.HttpServlet.service(HttpServlet.java:690) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:255) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) org.apache.catalina.valves.ErrorReportValve
.invoke(ErrorReportValve.java:102) org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) java.lang.Thread.run(Thread.java:595) --------------------------------------------------------------------------------
> 2009-01-12 20:28:07,153 (http-0.0.0.0-8080-1) [ UtilXml.java:241:INFO ] XML Read 0.021s: file:/home/ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartyPermissionServices.xml
> 2009-01-12 20:28:07,196 (http-0.0.0.0-8080-1) [ UtilXml.java:241:INFO ] XML Read 0.028s: file:/home/ofbiz/trunk/framework/common/script/org/ofbiz/common/permission/CommonPermissionServices.xml
> 2009-01-12 20:28:07,197 (http-0.0.0.0-8080-1) [ Log.java:94 :INFO ] Checking for primary permission PARTYMGR_CREATE
> 2009-01-12 20:28:07,198 (http-0.0.0.0-8080-1) [ Log.java:94 :INFO ] Checking for alternate permission PARTYMGR_ROLE_CREATE
> 2009-01-12 20:28:07,200 (http-0.0.0.0-8080-1) [ ServiceDispatcher.java:578:INFO ] Sync service [ecommerce/partyRolePermissionCheck] finished in [68] milliseconds
> 2009-01-12 20:28:07,242 (http-0.0.0.0-8080-1) [ UtilXml.java:241:INFO ] XML Read 0.041s: file:/home/ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartyServices.xml
> 2009-01-12 20:28:07,249 (http-0.0.0.0-8080-1) [ TransactionUtil.java:91 :WARN ] ---- exception report ---------------------------------------------------------- [TransactionUtil.begin] active transaction marked for rollback in place, so no transaction begun; this stack trace shows when the exception began: Exception: java.lang.Exception Message: Tx Stack Placeholder ---- stack trace --------------------------------------------------------------- java.lang.Exception: Tx Stack Placeholder org.ofbiz.entity.transaction.TransactionUtil.setTransactionBeginStack(TransactionUtil.java:636) org.ofbiz.entity.transaction.TransactionUtil.begin(TransactionUtil.java:125) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:302) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:149) org.ofbiz.webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:334) org.ofbiz.webapp.control.R
equestHandler.runEvent(RequestHandler.java:454) org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:281) org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:198) javax.servlet.http.HttpServlet.service(HttpServlet.java:690) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:255) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) org.apache.catalina.core.StandardHostValve.invoke(Standard
HostValve.java:128) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) java.lang.Thread.run(Thread.java:595) --------------------------------------------------------------------------------
> 2009-01-12 20:28:07,250 (http-0.0.0.0-8080-1) [ SimpleMethod.java:726:WARN ] Error trying to begin transaction, could not process method: The current transaction is marked for rollback, not beginning a new transaction and aborting current operation; the rollbackOnly was caused by: Error in simple-method [Creates a person, role and contactMechs [file:/home/ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error running the simple-method: Error in simple-method operation [ ]: java.lang.RuntimeException: Error in simple-method operation [ ]: java.lang.IllegalArgumentException: locale cannot be null
> null
> 2009-01-12 20:28:07,251 (http-0.0.0.0-8080-1) [ SimpleMethod.java:727:WARN ] ---- exception report ---------------------------------------------------------- Exception: org.ofbiz.entity.transaction.GenericTransactionException Message: The current transaction is marked for rollback, not beginning a new transaction and aborting current operation; the rollbackOnly was caused by: Error in simple-method [Creates a person, role and contactMechs [file:/home/ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error running the simple-method: Error in simple-method operation [ ]: java.lang.RuntimeException: Error in simple-method operation [ ]: java.lang.IllegalArgumentException: locale cannot be null
> null ---- stack trace --------------------------------------------------------------- org.ofbiz.entity.transaction.GenericTransactionException: The current transaction is marked for rollback, not beginning a new transaction and aborting current operation; the rollbackOnly was caused by: Error in simple-method [Creates a person, role and contactMechs [file:/home/ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error running the simple-method: Error in simple-method operation [ ]: java.lang.RuntimeException: Error in simple-method operation [ ]: java.lang.IllegalArgumentException: locale cannot be null
> null org.ofbiz.entity.transaction.TransactionUtil.begin(TransactionUtil.java:99) org.ofbiz.entity.transaction.TransactionUtil.begin(TransactionUtil.java:71) org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:723) org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:134) org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:116) org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76) org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:384) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:163) org.ofbiz.minilang.method.callops.CallService.exec(CallService.java:246) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104) org.ofbiz.minilang.method.ifops.IfNotEmpty.exec(IfNotEmpty.java:91) org.ofbiz.minilang.SimpleMethod.runSubOps(Sim
pleMethod.java:1104) org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:744) org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:134) org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:116) org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76) org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:384) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:163) org.ofbiz.minilang.method.callops.CallService.exec(CallService.java:246) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104) org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:744) org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:134) org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:116) org.ofbiz.minilang.SimpleServiceEngine.serviceInv
oker(SimpleServiceEngine.java:76) org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:384) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:149) org.ofbiz.webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:334) org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:454) org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:281) org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:198) javax.servlet.http.HttpServlet.service(HttpServlet.java:690) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) org.ofbiz.webapp.control.ContextFilter.doFilter(Contex
tFilter.java:255) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEnd
point.java:447) java.lang.Thread.run(Thread.java:595) --------------------------------------------------------------------------------

> 2009-01-12 20:28:07,251 (http-0.0.0.0-8080-1) [ ServiceDispatcher.java:522:ERROR] Error in Service [createPartyRole]: Error trying to begin transaction, could not process method: The current transaction is marked for rollback, not beginning a new transaction and aborting current operation; the rollbackOnly was caused by: Error in simple-method [Creates a person, role and contactMechs [file:/home/ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error running the simple-method: Error in simple-method operation [ ]: java.lang.RuntimeException: Error in simple-method operation [ ]: java.lang.IllegalArgumentException: locale cannot be null
> null
> 2009-01-12 20:28:07,252 (http-0.0.0.0-8080-1) [ TransactionUtil.java:315:INFO ] [TransactionUtil.setRollbackOnly] transaction rollback only not set, rollback only is already set.
> 2009-01-12 20:28:07,252 (http-0.0.0.0-8080-1) [ ServiceDispatcher.java:578:INFO ] Sync service [ecommerce/createPartyRole] finished in [121] milliseconds
> 2009-01-12 20:28:07,252 (http-0.0.0.0-8080-1) [ TransactionUtil.java:315:INFO ] [TransactionUtil.setRollbackOnly] transaction rollback only not set, rollback only is already set.
> 2009-01-12 20:28:07,253 (http-0.0.0.0-8080-1) [ ServiceDispatcher.java:522:ERROR] Error in Service [createLead]: Error:Error trying to begin transaction, could not process method: The current transaction is marked for rollback, not beginning a new transaction and aborting current operation; the rollbackOnly was caused by: Error in simple-method [Creates a person, role and contactMechs [file:/home/ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error running the simple-method: Error in simple-method operation [ ]: java.lang.RuntimeException: Error in simple-method operation [ ]: java.lang.IllegalArgumentException: locale cannot be null
> null calling service createPartyRole in createLead
> 2009-01-12 20:28:07,253 (http-0.0.0.0-8080-1) [ TransactionUtil.java:315:INFO ] [TransactionUtil.setRollbackOnly] transaction rollback only not set, rollback only is already set.
> 2009-01-12 20:28:07,253 (http-0.0.0.0-8080-1) [ ServiceDispatcher.java:578:INFO ] Sync service [ecommerce/createLead] finished in [194] milliseconds
> 2009-01-12 20:28:07,254 (http-0.0.0.0-8080-1) [ TransactionUtil.java:315:INFO ] [TransactionUtil.setRollbackOnly] transaction rollback only not set, rollback only is already set.
> 2009-01-12 20:28:07,254 (http-0.0.0.0-8080-1) [ ServiceDispatcher.java:522:ERROR] Error in Service [createLeadFromWebForm]: Error:Error:Error trying to begin transaction, could not process method: The current transaction is marked for rollback, not beginning a new transaction and aborting current operation; the rollbackOnly was caused by: Error in simple-method [Creates a person, role and contactMechs [file:/home/ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error running the simple-method: Error in simple-method operation [ ]: java.lang.RuntimeException: Error in simple-method operation [ ]: java.lang.IllegalArgumentException: locale cannot be null
> null calling service createPartyRole in createLead calling service createLead in createLeadFromWebForm
> 2009-01-12 20:28:07,255 (http-0.0.0.0-8080-1) [ TransactionUtil.java:275:ERROR] ---- exception report ---------------------------------------------------------- [TransactionUtil.rollback] Exception: java.lang.Exception Message: Stack Trace ---- stack trace --------------------------------------------------------------- java.lang.Exception: Stack Trace org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:274) org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:256) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:526) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:149) org.ofbiz.webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:334) org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:454) org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:281) org.ofbiz.webapp.control.Con
trolServlet.doGet(ControlServlet.java:198) javax.servlet.http.HttpServlet.service(HttpServlet.java:690) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:255) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) org.apache.catalina.core.StandardEngineValve.invoke(S
tandardEngineValve.java:109) org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) java.lang.Thread.run(Thread.java:595) --------------------------------------------------------------------------------

> 2009-01-12 20:28:07,255 (http-0.0.0.0-8080-1) [ TransactionUtil.java:285:INFO ] [TransactionUtil.rollback] transaction rolled back
> 2009-01-12 20:28:07,255 (http-0.0.0.0-8080-1) [ ServiceDispatcher.java:578:INFO ] Sync service [ecommerce/createLeadFromWebForm] finished in [236] milliseconds
> 2009-01-12 20:28:07,327 (http-0.0.0.0-8080-1) [ RequestHandler.java:314:ERROR] Request webFormSubmit caused an error with the following message: Error:Error:Error trying to begin transaction, could not process method: The current transaction is marked for rollback, not beginning a new transaction and aborting current operation; the rollbackOnly was caused by: Error in simple-method [Creates a person, role and contactMechs [file:/home/ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error running the simple-method: Error in simple-method operation [ ]: java.lang.RuntimeException: Error in simple-method operation [ ]: java.lang.IllegalArgumentException: locale cannot be null
> null calling service createPartyRole in createLead calling service createLead in createLeadFromWebForm
> 2009-01-12 20:28:07,328 (http-0.0.0.0-8080-1) [ RequestHandler.java:412:INFO ] [RequestHandler.doRequest]: Response is a URL redirect. sessionId=BBA68197213FF2F01514F97BB85687A6.jvm1
> 2009-01-12 20:28:07,328 (http-0.0.0.0-8080-1) [ RequestHandler.java:539:INFO ] [Sending redirect]: http://www.globalera.com sessionId=BBA68197213FF2F01514F97BB85687A6.jvm1
> 2009-01-12 20:28:07,376 (http-0.0.0.0-8080-1) [ ControlServlet.java:299:INFO ] [[[webFormSubmit] Done rendering page, Servlet Finished- total:0.64,since last([webFormSubmit] S...):0.638]]
>
> ----- Original Message -----
> From: "Adrian Crum" <[hidden email]>
> To: [hidden email]
> Sent: Monday, January 12, 2009 8:31:07 AM (GMT-0700) America/Denver
> Subject: Re: locale error in simple method
>
> Vince,
>
> We will need a complete log to track this down. To be specific, I need
> to see the entire Java stack trace.
>
> -Adrian
>
> Vince M. Clark wrote:
>> I created a custom simple method to respond to a request from a web form. Getting a locale error and cannot figure out where locale is required.
>>
>> <simple-method method-name="createLeadFromWebForm" short-description="Create Lead from Web Form" login-required="false">
>> <entity-one entity-name="UserLogin" value-name="userlogin">
>> <field-map field-name="userLoginId" value="system"/>
>> </entity-one>
>> <set-current-user-login value-name="userlogin"/>
>> <set field="newLead.firstName" from-field="parameters.firstName"/>
>> <set field="newLead.lastName" from-field="parameters.lastName"/>
>> <set field="newLead.groupName" from-field="parameters.groupName"/>
>> <set field="newLead.emailAddress" from-field="parameters.emailAddress"/>
>> <set field="newLead.contactNumber" from-field="parameters.contactNumber"/>
>> <set field="newLead.address1" from-field="parameters.address1"/>
>> <set field="newLead.countryGeoId" from-field="parameters.countryGeoId"/>
>> <set field="newLead.city" from-field="parameters.city"/>
>> <set field="newLead.stateProvinceGeoId" from-field="parameters.stateProvinceGeoId"/>
>> <set field="newLead.postalCode" from-field="parameters.postalCode"/>
>> <set field="newLead.quickAdd" from-field="parameters.quickAdd"/>
>> <call-service service-name="createLead" in-map-name="newLead">
>> <result-to-field result-name="partyId" field="partyId"/>
>> </call-service>
>> </simple-method>
>>
>> The simple method that I am calling "createLead" calls other simple methods. One of them is createPersonRoleAndContactMechs, which throws the following exception:
>> 2009-01-11 18:43:36,887 (http-0.0.0.0-8080-1) [ RequestHandler.java:314:ERROR] Request webFormSubmit caused an error with the following message: Error:Error:Error trying to begin transaction, could not process method: The current transaction is marked for rollback, not beginning a new transaction and aborting current operation; the rollbackOnly was caused by: Error in simple-method [Creates a person, role and contactMechs [file:/home/ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error running the simple-method: Error in simple-method operation [ ]: java.lang.RuntimeException: Error in simple-method operation [ ]: java.lang.IllegalArgumentException: locale cannot be null
>> null calling service createPartyRole in createLead calling service createLead in createLeadFromWebForm
>>
>>
>>
>>
>
Reply | Threaded
Open this post in threaded view
|

Re: locale error in simple method

Vince Clark
When is that usually set? When a user logs in? My service just sets the userLogin to system. Could that be a source of the problem?

----- Original Message -----
From: "Adrian Crum" <[hidden email]>
To: [hidden email]
Sent: Tuesday, January 13, 2009 9:05:01 AM (GMT-0700) America/Denver
Subject: Re: locale error in simple method

Vince,

I checked to see if something changed in the framework that would cause
this error, but I didn't find anything. There must be a problem with
the service definition - which is preventing the locale parameter from
being included in the service context.

-Adrian

Vince M. Clark wrote:

> Here is the entire trace. Note that the first few lines are just xml validation errors.
>
>
> 2009-01-12 20:28:07,054 (http-0.0.0.0-8080-1) [ UtilXml.java:660:ERROR] XmlFileLoader: File file:/home/ofbiz/trunk/hot-deploy/ge/script/org/ofbiz/ge/PartyServices.xml process error. Line: 88. Error message: cvc-complex-type.3.2.2: Attribute 'field-name' is not allowed to appear in element 'if-empty'.
> 2009-01-12 20:28:07,055 (http-0.0.0.0-8080-1) [ UtilXml.java:660:ERROR] XmlFileLoader: File file:/home/ofbiz/trunk/hot-deploy/ge/script/org/ofbiz/ge/PartyServices.xml process error. Line: 88. Error message: cvc-complex-type.4: Attribute 'field' must appear on element 'if-empty'.
> 2009-01-12 20:28:07,055 (http-0.0.0.0-8080-1) [ UtilXml.java:660:ERROR] XmlFileLoader: File file:/home/ofbiz/trunk/hot-deploy/ge/script/org/ofbiz/ge/PartyServices.xml process error. Line: 122. Error message: cvc-complex-type.3.2.2: Attribute 'field' is not allowed to appear in element 'result-to-field'.
> 2009-01-12 20:28:07,056 (http-0.0.0.0-8080-1) [ UtilXml.java:241:INFO ] XML Read 0.026s: file:/home/ofbiz/trunk/hot-deploy/ge/script/org/ofbiz/ge/PartyServices.xml
> 2009-01-12 20:28:07,059 (http-0.0.0.0-8080-1) [ Log.java:94 :INFO ] locale is en_US // here is where I set a locale variable and outputted it in the log
>
> 2009-01-12 20:28:07,087 (http-0.0.0.0-8080-1) [ UtilXml.java:241:INFO ] XML Read 0.027s: file:/home/ofbiz/trunk/applications/marketing/script/org/ofbiz/sfa/lead/LeadServices.xml
> 2009-01-12 20:28:07,125 (http-0.0.0.0-8080-1) [ UtilXml.java:241:INFO ] XML Read 0.028s: file:/home/ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartySimpleMethods.xml
> 2009-01-12 20:28:07,129 (http-0.0.0.0-8080-1) [ SimpleMethod.java:1109:ERROR] ---- runtime exception report -------------------------------------------------- Error in simple-method operation [ ]: java.lang.IllegalArgumentException: locale cannot be null Exception: java.lang.IllegalArgumentException Message: locale cannot be null ---- stack trace --------------------------------------------------------------- java.lang.IllegalArgumentException: locale cannot be null org.ofbiz.base.util.UtilProperties.getResourceBundle(UtilProperties.java:480) org.ofbiz.base.util.UtilProperties.getMessage(UtilProperties.java:385) org.ofbiz.minilang.operation.SimpleMapOperation.addMessage(SimpleMapOperation.java:62) org.ofbiz.minilang.operation.ValidateMethod.exec(ValidateMethod.java:100) org.ofbiz.minilang.operation.SimpleMapProcess.exec(SimpleMapProcess.java:51) org.ofbiz.minilang.operation.MapProcessor.exec(MapProcessor.java:80) org.ofbiz.minilang.method.callops.CallSimpleMapProcessor.exe
c(CallSimpleMapProcessor.java:91) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104) org.ofbiz.minilang.method.ifops.IfNotEmpty.exec(IfNotEmpty.java:91) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104) org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:744) org.ofbiz.minilang.method.callops.CallSimpleMethod.exec(CallSimpleMethod.java:75) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104) org.ofbiz.minilang.method.ifops.IfCompare.exec(IfCompare.java:123) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104) org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:744) org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:134) org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:116) org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76) org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDi
 
spatcher.java:384) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:163) org.ofbiz.minilang.method.callops.CallService.exec(CallService.java:246) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104) org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:744) org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:134) org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:116) org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76) org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:384) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:149) org.ofbiz.webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:334) org.ofbiz.webapp.control.Reque
 
stHandler.runEvent(RequestHandler.java:454) org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:281) org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:198) javax.servlet.http.HttpServlet.service(HttpServlet.java:690) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:255) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) org.apache.catalina.core.StandardHostValve.invoke(StandardHost
 
Valve.java:128) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) org.apa che.coyote.http11.Http11Processor.process(Http11Processor.java:844) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) java.lang.Thread.run(Thread.java:595) --------------------------------------------------------------------------------
> 2009-01-12 20:28:07,130 (http-0.0.0.0-8080-1) [ SimpleMethod.java:1109:ERROR] ---- runtime exception report -------------------------------------------------- Error in simple-method operation [ ]: java.lang.RuntimeException: Error in simple-method operation [ ]: java.lang.IllegalArgumentException: locale cannot be null Exception: java.lang.RuntimeException Message: Error in simple-method operation [ ]: java.lang.IllegalArgumentException: locale cannot be null ---- stack trace --------------------------------------------------------------- java.lang.RuntimeException: Error in simple-method operation [ ]: java.lang.IllegalArgumentException: locale cannot be null org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1110) org.ofbiz.minilang.method.ifops.IfNotEmpty.exec(IfNotEmpty.java:91) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104) org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:744) org.ofbiz.minilang.method.callops.CallSimpleMethod.exec(Ca
llSimpleMethod.java:75) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104) org.ofbiz.minilang.method.ifops.IfCompare.exec(IfCompare.java:123) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104) org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:744) org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:134) org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:116) org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76) org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:384) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:163) org.ofbiz.minilang.method.callops.CallService.exec(CallService.java:246) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104) org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.
 
java:744) org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:134) org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:116) org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76) org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:384) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:149) org.ofbiz.webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:334) org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:454) org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:281) org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:198) javax.servlet.http.HttpServlet.service(HttpServlet.java:690) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.apache.catalina.core.ApplicationFilt
 
erChain.internalDoFilter(ApplicationFilterChain.java:290) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:255) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) org.apache.coyote.http11.H
 
ttp11Processor.process(Http11Processor.java:844) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) java.lang.Thread.run(Thread.java:595) --------------------------------------------------------------------------------
> 2009-01-12 20:28:07,130 (http-0.0.0.0-8080-1) [ SimpleMethod.java:748:ERROR] Error running the simple-method: Error in simple-method operation [ ]: java.lang.RuntimeException: Error in simple-method operation [ ]: java.lang.IllegalArgumentException: locale cannot be null
> 2009-01-12 20:28:07,131 (http-0.0.0.0-8080-1) [ TransactionUtil.java:311:WARN ] ---- exception report ---------------------------------------------------------- [TransactionUtil.setRollbackOnly] Calling transaction setRollbackOnly; this stack trace shows where this is happening: Exception: java.lang.Exception Message: Error in simple-method [Creates a person, role and contactMechs [file:/home/ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error running the simple-method: Error in simple-method operation [ ]: java.lang.RuntimeException: Error in simple-method operation [ ]: java.lang.IllegalArgumentException: locale cannot be null
> null ---- stack trace --------------------------------------------------------------- java.lang.Exception: Error in simple-method [Creates a person, role and contactMechs [file:/home/ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error running the simple-method: Error in simple-method operation [ ]: java.lang.RuntimeException: Error in simple-method operation [ ]: java.lang.IllegalArgumentException: locale cannot be null
> null org.ofbiz.entity.transaction.TransactionUtil.setRollbackOnly(TransactionUtil.java:311) org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:258) org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:875) org.ofbiz.minilang.method.callops.CallSimpleMethod.exec(CallSimpleMethod.java:75) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104) org.ofbiz.minilang.method.ifops.IfCompare.exec(IfCompare.java:123) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104) org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:744) org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:134) org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:116) org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76) org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:384) org.ofbiz.service.ServiceDispatcher.runS
ync(ServiceDispatcher.java:213) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:163) org.ofbiz.minilang.method.callops.CallService.exec(CallService.java:246) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104) org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:744) org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:134) org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:116) org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76) org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:384) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:149) org.ofbiz.webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:334) org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:454) org.ofbiz.webap
 
p.control.RequestHandler.doRequest(RequestHandler.java:281) org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:198) javax.servlet.http.HttpServlet.service(HttpServlet.java:690) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:255) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) org.apache.catalina.valves.ErrorReportValve
 
.invoke(ErrorReportValve.java:102) org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) java.lang.Thread.run(Thread.java:595) --------------------------------------------------------------------------------
> 2009-01-12 20:28:07,153 (http-0.0.0.0-8080-1) [ UtilXml.java:241:INFO ] XML Read 0.021s: file:/home/ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartyPermissionServices.xml
> 2009-01-12 20:28:07,196 (http-0.0.0.0-8080-1) [ UtilXml.java:241:INFO ] XML Read 0.028s: file:/home/ofbiz/trunk/framework/common/script/org/ofbiz/common/permission/CommonPermissionServices.xml
> 2009-01-12 20:28:07,197 (http-0.0.0.0-8080-1) [ Log.java:94 :INFO ] Checking for primary permission PARTYMGR_CREATE
> 2009-01-12 20:28:07,198 (http-0.0.0.0-8080-1) [ Log.java:94 :INFO ] Checking for alternate permission PARTYMGR_ROLE_CREATE
> 2009-01-12 20:28:07,200 (http-0.0.0.0-8080-1) [ ServiceDispatcher.java:578:INFO ] Sync service [ecommerce/partyRolePermissionCheck] finished in [68] milliseconds
> 2009-01-12 20:28:07,242 (http-0.0.0.0-8080-1) [ UtilXml.java:241:INFO ] XML Read 0.041s: file:/home/ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartyServices.xml
> 2009-01-12 20:28:07,249 (http-0.0.0.0-8080-1) [ TransactionUtil.java:91 :WARN ] ---- exception report ---------------------------------------------------------- [TransactionUtil.begin] active transaction marked for rollback in place, so no transaction begun; this stack trace shows when the exception began: Exception: java.lang.Exception Message: Tx Stack Placeholder ---- stack trace --------------------------------------------------------------- java.lang.Exception: Tx Stack Placeholder org.ofbiz.entity.transaction.TransactionUtil.setTransactionBeginStack(TransactionUtil.java:636) org.ofbiz.entity.transaction.TransactionUtil.begin(TransactionUtil.java:125) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:302) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:149) org.ofbiz.webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:334) org.ofbiz.webapp.control.R
equestHandler.runEvent(RequestHandler.java:454) org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:281) org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:198) javax.servlet.http.HttpServlet.service(HttpServlet.java:690) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:255) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) org.apache.catalina.core.StandardHostValve.invoke(Standard
 
HostValve.java:128) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) java.lang.Thread.run(Thread.java:595) --------------------------------------------------------------------------------
> 2009-01-12 20:28:07,250 (http-0.0.0.0-8080-1) [ SimpleMethod.java:726:WARN ] Error trying to begin transaction, could not process method: The current transaction is marked for rollback, not beginning a new transaction and aborting current operation; the rollbackOnly was caused by: Error in simple-method [Creates a person, role and contactMechs [file:/home/ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error running the simple-method: Error in simple-method operation [ ]: java.lang.RuntimeException: Error in simple-method operation [ ]: java.lang.IllegalArgumentException: locale cannot be null
> null
> 2009-01-12 20:28:07,251 (http-0.0.0.0-8080-1) [ SimpleMethod.java:727:WARN ] ---- exception report ---------------------------------------------------------- Exception: org.ofbiz.entity.transaction.GenericTransactionException Message: The current transaction is marked for rollback, not beginning a new transaction and aborting current operation; the rollbackOnly was caused by: Error in simple-method [Creates a person, role and contactMechs [file:/home/ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error running the simple-method: Error in simple-method operation [ ]: java.lang.RuntimeException: Error in simple-method operation [ ]: java.lang.IllegalArgumentException: locale cannot be null
> null ---- stack trace --------------------------------------------------------------- org.ofbiz.entity.transaction.GenericTransactionException: The current transaction is marked for rollback, not beginning a new transaction and aborting current operation; the rollbackOnly was caused by: Error in simple-method [Creates a person, role and contactMechs [file:/home/ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error running the simple-method: Error in simple-method operation [ ]: java.lang.RuntimeException: Error in simple-method operation [ ]: java.lang.IllegalArgumentException: locale cannot be null
> null org.ofbiz.entity.transaction.TransactionUtil.begin(TransactionUtil.java:99) org.ofbiz.entity.transaction.TransactionUtil.begin(TransactionUtil.java:71) org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:723) org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:134) org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:116) org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76) org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:384) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:163) org.ofbiz.minilang.method.callops.CallService.exec(CallService.java:246) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104) org.ofbiz.minilang.method.ifops.IfNotEmpty.exec(IfNotEmpty.java:91) org.ofbiz.minilang.SimpleMethod.runSubOps(Sim
pleMethod.java:1104) org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:744) org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:134) org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:116) org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76) org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:384) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:163) org.ofbiz.minilang.method.callops.CallService.exec(CallService.java:246) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104) org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:744) org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:134) org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:116) org.ofbiz.minilang.SimpleServiceEngine.serviceInv
 
oker(SimpleServiceEngine.java:76) org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:384) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:149) org.ofbiz.webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:334) org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:454) org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:281) org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:198) javax.servlet.http.HttpServlet.service(HttpServlet.java:690) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) org.ofbiz.webapp.control.ContextFilter.doFilter(Contex
 
tFilter.java:255) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEnd
 
point.java:447) java.lang.Thread.run(Thread.java:595) --------------------------------------------------------------------------------

> 2009-01-12 20:28:07,251 (http-0.0.0.0-8080-1) [ ServiceDispatcher.java:522:ERROR] Error in Service [createPartyRole]: Error trying to begin transaction, could not process method: The current transaction is marked for rollback, not beginning a new transaction and aborting current operation; the rollbackOnly was caused by: Error in simple-method [Creates a person, role and contactMechs [file:/home/ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error running the simple-method: Error in simple-method operation [ ]: java.lang.RuntimeException: Error in simple-method operation [ ]: java.lang.IllegalArgumentException: locale cannot be null
> null
> 2009-01-12 20:28:07,252 (http-0.0.0.0-8080-1) [ TransactionUtil.java:315:INFO ] [TransactionUtil.setRollbackOnly] transaction rollback only not set, rollback only is already set.
> 2009-01-12 20:28:07,252 (http-0.0.0.0-8080-1) [ ServiceDispatcher.java:578:INFO ] Sync service [ecommerce/createPartyRole] finished in [121] milliseconds
> 2009-01-12 20:28:07,252 (http-0.0.0.0-8080-1) [ TransactionUtil.java:315:INFO ] [TransactionUtil.setRollbackOnly] transaction rollback only not set, rollback only is already set.
> 2009-01-12 20:28:07,253 (http-0.0.0.0-8080-1) [ ServiceDispatcher.java:522:ERROR] Error in Service [createLead]: Error:Error trying to begin transaction, could not process method: The current transaction is marked for rollback, not beginning a new transaction and aborting current operation; the rollbackOnly was caused by: Error in simple-method [Creates a person, role and contactMechs [file:/home/ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error running the simple-method: Error in simple-method operation [ ]: java.lang.RuntimeException: Error in simple-method operation [ ]: java.lang.IllegalArgumentException: locale cannot be null
> null calling service createPartyRole in createLead
> 2009-01-12 20:28:07,253 (http-0.0.0.0-8080-1) [ TransactionUtil.java:315:INFO ] [TransactionUtil.setRollbackOnly] transaction rollback only not set, rollback only is already set.
> 2009-01-12 20:28:07,253 (http-0.0.0.0-8080-1) [ ServiceDispatcher.java:578:INFO ] Sync service [ecommerce/createLead] finished in [194] milliseconds
> 2009-01-12 20:28:07,254 (http-0.0.0.0-8080-1) [ TransactionUtil.java:315:INFO ] [TransactionUtil.setRollbackOnly] transaction rollback only not set, rollback only is already set.
> 2009-01-12 20:28:07,254 (http-0.0.0.0-8080-1) [ ServiceDispatcher.java:522:ERROR] Error in Service [createLeadFromWebForm]: Error:Error:Error trying to begin transaction, could not process method: The current transaction is marked for rollback, not beginning a new transaction and aborting current operation; the rollbackOnly was caused by: Error in simple-method [Creates a person, role and contactMechs [file:/home/ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error running the simple-method: Error in simple-method operation [ ]: java.lang.RuntimeException: Error in simple-method operation [ ]: java.lang.IllegalArgumentException: locale cannot be null
> null calling service createPartyRole in createLead calling service createLead in createLeadFromWebForm
> 2009-01-12 20:28:07,255 (http-0.0.0.0-8080-1) [ TransactionUtil.java:275:ERROR] ---- exception report ---------------------------------------------------------- [TransactionUtil.rollback] Exception: java.lang.Exception Message: Stack Trace ---- stack trace --------------------------------------------------------------- java.lang.Exception: Stack Trace org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:274) org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:256) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:526) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:149) org.ofbiz.webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:334) org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:454) org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:281) org.ofbiz.webapp.control.Con
trolServlet.doGet(ControlServlet.java:198) javax.servlet.http.HttpServlet.service(HttpServlet.java:690) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:255) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) org.apache.catalina.core.StandardEngineValve.invoke(S
 
tandardEngineValve.java:109) org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) java.lang.Thread.run(Thread.java:595) --------------------------------------------------------------------------------

> 2009-01-12 20:28:07,255 (http-0.0.0.0-8080-1) [ TransactionUtil.java:285:INFO ] [TransactionUtil.rollback] transaction rolled back
> 2009-01-12 20:28:07,255 (http-0.0.0.0-8080-1) [ ServiceDispatcher.java:578:INFO ] Sync service [ecommerce/createLeadFromWebForm] finished in [236] milliseconds
> 2009-01-12 20:28:07,327 (http-0.0.0.0-8080-1) [ RequestHandler.java:314:ERROR] Request webFormSubmit caused an error with the following message: Error:Error:Error trying to begin transaction, could not process method: The current transaction is marked for rollback, not beginning a new transaction and aborting current operation; the rollbackOnly was caused by: Error in simple-method [Creates a person, role and contactMechs [file:/home/ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error running the simple-method: Error in simple-method operation [ ]: java.lang.RuntimeException: Error in simple-method operation [ ]: java.lang.IllegalArgumentException: locale cannot be null
> null calling service createPartyRole in createLead calling service createLead in createLeadFromWebForm
> 2009-01-12 20:28:07,328 (http-0.0.0.0-8080-1) [ RequestHandler.java:412:INFO ] [RequestHandler.doRequest]: Response is a URL redirect. sessionId=BBA68197213FF2F01514F97BB85687A6.jvm1
> 2009-01-12 20:28:07,328 (http-0.0.0.0-8080-1) [ RequestHandler.java:539:INFO ] [Sending redirect]: http://www.globalera.com sessionId=BBA68197213FF2F01514F97BB85687A6.jvm1
> 2009-01-12 20:28:07,376 (http-0.0.0.0-8080-1) [ ControlServlet.java:299:INFO ] [[[webFormSubmit] Done rendering page, Servlet Finished- total:0.64,since last([webFormSubmit] S...):0.638]]
>
> ----- Original Message -----
> From: "Adrian Crum" <[hidden email]>
> To: [hidden email]
> Sent: Monday, January 12, 2009 8:31:07 AM (GMT-0700) America/Denver
> Subject: Re: locale error in simple method
>
> Vince,
>
> We will need a complete log to track this down. To be specific, I need
> to see the entire Java stack trace.
>
> -Adrian
>
> Vince M. Clark wrote:
>> I created a custom simple method to respond to a request from a web form. Getting a locale error and cannot figure out where locale is required.
>>
>> <simple-method method-name="createLeadFromWebForm" short-description="Create Lead from Web Form" login-required="false">
>> <entity-one entity-name="UserLogin" value-name="userlogin">
>> <field-map field-name="userLoginId" value="system"/>
>> </entity-one>
>> <set-current-user-login value-name="userlogin"/>
>> <set field="newLead.firstName" from-field="parameters.firstName"/>
>> <set field="newLead.lastName" from-field="parameters.lastName"/>
>> <set field="newLead.groupName" from-field="parameters.groupName"/>
>> <set field="newLead.emailAddress" from-field="parameters.emailAddress"/>
>> <set field="newLead.contactNumber" from-field="parameters.contactNumber"/>
>> <set field="newLead.address1" from-field="parameters.address1"/>
>> <set field="newLead.countryGeoId" from-field="parameters.countryGeoId"/>
>> <set field="newLead.city" from-field="parameters.city"/>
>> <set field="newLead.stateProvinceGeoId" from-field="parameters.stateProvinceGeoId"/>
>> <set field="newLead.postalCode" from-field="parameters.postalCode"/>
>> <set field="newLead.quickAdd" from-field="parameters.quickAdd"/>
>> <call-service service-name="createLead" in-map-name="newLead">
>> <result-to-field result-name="partyId" field="partyId"/>
>> </call-service>
>> </simple-method>
>>
>> The simple method that I am calling "createLead" calls other simple methods. One of them is createPersonRoleAndContactMechs, which throws the following exception:
>> 2009-01-11 18:43:36,887 (http-0.0.0.0-8080-1) [ RequestHandler.java:314:ERROR] Request webFormSubmit caused an error with the following message: Error:Error:Error trying to begin transaction, could not process method: The current transaction is marked for rollback, not beginning a new transaction and aborting current operation; the rollbackOnly was caused by: Error in simple-method [Creates a person, role and contactMechs [file:/home/ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error running the simple-method: Error in simple-method operation [ ]: java.lang.RuntimeException: Error in simple-method operation [ ]: java.lang.IllegalArgumentException: locale cannot be null
>> null calling service createPartyRole in createLead calling service createLead in createLeadFromWebForm
>>
>>
>>
>>
>
Reply | Threaded
Open this post in threaded view
|

Re: locale error in simple method

Adrian Crum
If you attach the service definition, I can take a look at it.

-Adrian

Vince M. Clark wrote:

> When is that usually set? When a user logs in? My service just sets the userLogin to system. Could that be a source of the problem?
>
> ----- Original Message -----
> From: "Adrian Crum" <[hidden email]>
> To: [hidden email]
> Sent: Tuesday, January 13, 2009 9:05:01 AM (GMT-0700) America/Denver
> Subject: Re: locale error in simple method
>
> Vince,
>
> I checked to see if something changed in the framework that would cause
> this error, but I didn't find anything. There must be a problem with
> the service definition - which is preventing the locale parameter from
> being included in the service context.
>
> -Adrian
>
> Vince M. Clark wrote:
>> Here is the entire trace. Note that the first few lines are just xml validation errors.
>>
>>
>> 2009-01-12 20:28:07,054 (http-0.0.0.0-8080-1) [ UtilXml.java:660:ERROR] XmlFileLoader: File file:/home/ofbiz/trunk/hot-deploy/ge/script/org/ofbiz/ge/PartyServices.xml process error. Line: 88. Error message: cvc-complex-type.3.2.2: Attribute 'field-name' is not allowed to appear in element 'if-empty'.
>> 2009-01-12 20:28:07,055 (http-0.0.0.0-8080-1) [ UtilXml.java:660:ERROR] XmlFileLoader: File file:/home/ofbiz/trunk/hot-deploy/ge/script/org/ofbiz/ge/PartyServices.xml process error. Line: 88. Error message: cvc-complex-type.4: Attribute 'field' must appear on element 'if-empty'.
>> 2009-01-12 20:28:07,055 (http-0.0.0.0-8080-1) [ UtilXml.java:660:ERROR] XmlFileLoader: File file:/home/ofbiz/trunk/hot-deploy/ge/script/org/ofbiz/ge/PartyServices.xml process error. Line: 122. Error message: cvc-complex-type.3.2.2: Attribute 'field' is not allowed to appear in element 'result-to-field'.
>> 2009-01-12 20:28:07,056 (http-0.0.0.0-8080-1) [ UtilXml.java:241:INFO ] XML Read 0.026s: file:/home/ofbiz/trunk/hot-deploy/ge/script/org/ofbiz/ge/PartyServices.xml
>> 2009-01-12 20:28:07,059 (http-0.0.0.0-8080-1) [ Log.java:94 :INFO ] locale is en_US // here is where I set a locale variable and outputted it in the log
>>
>> 2009-01-12 20:28:07,087 (http-0.0.0.0-8080-1) [ UtilXml.java:241:INFO ] XML Read 0.027s: file:/home/ofbiz/trunk/applications/marketing/script/org/ofbiz/sfa/lead/LeadServices.xml
>> 2009-01-12 20:28:07,125 (http-0.0.0.0-8080-1) [ UtilXml.java:241:INFO ] XML Read 0.028s: file:/home/ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartySimpleMethods.xml
>> 2009-01-12 20:28:07,129 (http-0.0.0.0-8080-1) [ SimpleMethod.java:1109:ERROR] ---- runtime exception report -------------------------------------------------- Error in simple-method operation [ ]: java.lang.IllegalArgumentException: locale cannot be null Exception: java.lang.IllegalArgumentException Message: locale cannot be null ---- stack trace --------------------------------------------------------------- java.lang.IllegalArgumentException: locale cannot be null org.ofbiz.base.util.UtilProperties.getResourceBundle(UtilProperties.java:480) org.ofbiz.base.util.UtilProperties.getMessage(UtilProperties.java:385) org.ofbiz.minilang.operation.SimpleMapOperation.addMessage(SimpleMapOperation.java:62) org.ofbiz.minilang.operation.ValidateMethod.exec(ValidateMethod.java:100) org.ofbiz.minilang.operation.SimpleMapProcess.exec(SimpleMapProcess.java:51) org.ofbiz.minilang.operation.MapProcessor.exec(MapProcessor.java:80) org.ofbiz.minilang.method.callops.CallSimpleMapProcessor.ex
e
> c(CallSimpleMapProcessor.java:91) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104) org.ofbiz.minilang.method.ifops.IfNotEmpty.exec(IfNotEmpty.java:91) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104) org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:744) org.ofbiz.minilang.method.callops.CallSimpleMethod.exec(CallSimpleMethod.java:75) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104) org.ofbiz.minilang.method.ifops.IfCompare.exec(IfCompare.java:123) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104) org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:744) org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:134) org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:116) org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76) org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51) org.ofbiz.service.ServiceDispatcher.runSync(Servic
eDi
>  
> spatcher.java:384) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:163) org.ofbiz.minilang.method.callops.CallService.exec(CallService.java:246) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104) org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:744) org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:134) org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:116) org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76) org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:384) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:149) org.ofbiz.webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:334) org.ofbiz.webapp.control.Re
que
>  
> stHandler.runEvent(RequestHandler.java:454) org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:281) org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:198) javax.servlet.http.HttpServlet.service(HttpServlet.java:690) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:255) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) org.apache.catalina.core.StandardHostValve.invoke(StandardH
ost
>  
> Valve.java:128) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) org.apa che.coyote.http11.Http11Processor.process(Http11Processor.java:844) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) java.lang.Thread.run(Thread.java:595) --------------------------------------------------------------------------------
>> 2009-01-12 20:28:07,130 (http-0.0.0.0-8080-1) [ SimpleMethod.java:1109:ERROR] ---- runtime exception report -------------------------------------------------- Error in simple-method operation [ ]: java.lang.RuntimeException: Error in simple-method operation [ ]: java.lang.IllegalArgumentException: locale cannot be null Exception: java.lang.RuntimeException Message: Error in simple-method operation [ ]: java.lang.IllegalArgumentException: locale cannot be null ---- stack trace --------------------------------------------------------------- java.lang.RuntimeException: Error in simple-method operation [ ]: java.lang.IllegalArgumentException: locale cannot be null org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1110) org.ofbiz.minilang.method.ifops.IfNotEmpty.exec(IfNotEmpty.java:91) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104) org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:744) org.ofbiz.minilang.method.callops.CallSimpleMethod.exec(C
a
> llSimpleMethod.java:75) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104) org.ofbiz.minilang.method.ifops.IfCompare.exec(IfCompare.java:123) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104) org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:744) org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:134) org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:116) org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76) org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:384) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:163) org.ofbiz.minilang.method.callops.CallService.exec(CallService.java:246) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104) org.ofbiz.minilang.SimpleMethod.exec(SimpleMeth
od.
>  
> java:744) org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:134) org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:116) org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76) org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:384) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:149) org.ofbiz.webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:334) org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:454) org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:281) org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:198) javax.servlet.http.HttpServlet.service(HttpServlet.java:690) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.apache.catalina.core.ApplicationF
ilt
>  
> erChain.internalDoFilter(ApplicationFilterChain.java:290) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:255) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) org.apache.coyote.http1
1.H
>  
> ttp11Processor.process(Http11Processor.java:844) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) java.lang.Thread.run(Thread.java:595) --------------------------------------------------------------------------------
>> 2009-01-12 20:28:07,130 (http-0.0.0.0-8080-1) [ SimpleMethod.java:748:ERROR] Error running the simple-method: Error in simple-method operation [ ]: java.lang.RuntimeException: Error in simple-method operation [ ]: java.lang.IllegalArgumentException: locale cannot be null
>> 2009-01-12 20:28:07,131 (http-0.0.0.0-8080-1) [ TransactionUtil.java:311:WARN ] ---- exception report ---------------------------------------------------------- [TransactionUtil.setRollbackOnly] Calling transaction setRollbackOnly; this stack trace shows where this is happening: Exception: java.lang.Exception Message: Error in simple-method [Creates a person, role and contactMechs [file:/home/ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error running the simple-method: Error in simple-method operation [ ]: java.lang.RuntimeException: Error in simple-method operation [ ]: java.lang.IllegalArgumentException: locale cannot be null
>> null ---- stack trace --------------------------------------------------------------- java.lang.Exception: Error in simple-method [Creates a person, role and contactMechs [file:/home/ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error running the simple-method: Error in simple-method operation [ ]: java.lang.RuntimeException: Error in simple-method operation [ ]: java.lang.IllegalArgumentException: locale cannot be null
>> null org.ofbiz.entity.transaction.TransactionUtil.setRollbackOnly(TransactionUtil.java:311) org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:258) org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:875) org.ofbiz.minilang.method.callops.CallSimpleMethod.exec(CallSimpleMethod.java:75) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104) org.ofbiz.minilang.method.ifops.IfCompare.exec(IfCompare.java:123) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104) org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:744) org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:134) org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:116) org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76) org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:384) org.ofbiz.service.ServiceDispatcher.run
S
> ync(ServiceDispatcher.java:213) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:163) org.ofbiz.minilang.method.callops.CallService.exec(CallService.java:246) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104) org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:744) org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:134) org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:116) org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76) org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:384) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:149) org.ofbiz.webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:334) org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:454) org.ofbiz.we
bap
>  
> p.control.RequestHandler.doRequest(RequestHandler.java:281) org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:198) javax.servlet.http.HttpServlet.service(HttpServlet.java:690) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:255) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) org.apache.catalina.valves.ErrorReportVa
lve
>  
> .invoke(ErrorReportValve.java:102) org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) java.lang.Thread.run(Thread.java:595) --------------------------------------------------------------------------------
>> 2009-01-12 20:28:07,153 (http-0.0.0.0-8080-1) [ UtilXml.java:241:INFO ] XML Read 0.021s: file:/home/ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartyPermissionServices.xml
>> 2009-01-12 20:28:07,196 (http-0.0.0.0-8080-1) [ UtilXml.java:241:INFO ] XML Read 0.028s: file:/home/ofbiz/trunk/framework/common/script/org/ofbiz/common/permission/CommonPermissionServices.xml
>> 2009-01-12 20:28:07,197 (http-0.0.0.0-8080-1) [ Log.java:94 :INFO ] Checking for primary permission PARTYMGR_CREATE
>> 2009-01-12 20:28:07,198 (http-0.0.0.0-8080-1) [ Log.java:94 :INFO ] Checking for alternate permission PARTYMGR_ROLE_CREATE
>> 2009-01-12 20:28:07,200 (http-0.0.0.0-8080-1) [ ServiceDispatcher.java:578:INFO ] Sync service [ecommerce/partyRolePermissionCheck] finished in [68] milliseconds
>> 2009-01-12 20:28:07,242 (http-0.0.0.0-8080-1) [ UtilXml.java:241:INFO ] XML Read 0.041s: file:/home/ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartyServices.xml
>> 2009-01-12 20:28:07,249 (http-0.0.0.0-8080-1) [ TransactionUtil.java:91 :WARN ] ---- exception report ---------------------------------------------------------- [TransactionUtil.begin] active transaction marked for rollback in place, so no transaction begun; this stack trace shows when the exception began: Exception: java.lang.Exception Message: Tx Stack Placeholder ---- stack trace --------------------------------------------------------------- java.lang.Exception: Tx Stack Placeholder org.ofbiz.entity.transaction.TransactionUtil.setTransactionBeginStack(TransactionUtil.java:636) org.ofbiz.entity.transaction.TransactionUtil.begin(TransactionUtil.java:125) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:302) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:149) org.ofbiz.webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:334) org.ofbiz.webapp.control.
R
> equestHandler.runEvent(RequestHandler.java:454) org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:281) org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:198) javax.servlet.http.HttpServlet.service(HttpServlet.java:690) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:255) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) org.apache.catalina.core.StandardHostValve.invoke(Stand
ard
>  
> HostValve.java:128) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) java.lang.Thread.run(Thread.java:595) --------------------------------------------------------------------------------
>> 2009-01-12 20:28:07,250 (http-0.0.0.0-8080-1) [ SimpleMethod.java:726:WARN ] Error trying to begin transaction, could not process method: The current transaction is marked for rollback, not beginning a new transaction and aborting current operation; the rollbackOnly was caused by: Error in simple-method [Creates a person, role and contactMechs [file:/home/ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error running the simple-method: Error in simple-method operation [ ]: java.lang.RuntimeException: Error in simple-method operation [ ]: java.lang.IllegalArgumentException: locale cannot be null
>> null
>> 2009-01-12 20:28:07,251 (http-0.0.0.0-8080-1) [ SimpleMethod.java:727:WARN ] ---- exception report ---------------------------------------------------------- Exception: org.ofbiz.entity.transaction.GenericTransactionException Message: The current transaction is marked for rollback, not beginning a new transaction and aborting current operation; the rollbackOnly was caused by: Error in simple-method [Creates a person, role and contactMechs [file:/home/ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error running the simple-method: Error in simple-method operation [ ]: java.lang.RuntimeException: Error in simple-method operation [ ]: java.lang.IllegalArgumentException: locale cannot be null
>> null ---- stack trace --------------------------------------------------------------- org.ofbiz.entity.transaction.GenericTransactionException: The current transaction is marked for rollback, not beginning a new transaction and aborting current operation; the rollbackOnly was caused by: Error in simple-method [Creates a person, role and contactMechs [file:/home/ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error running the simple-method: Error in simple-method operation [ ]: java.lang.RuntimeException: Error in simple-method operation [ ]: java.lang.IllegalArgumentException: locale cannot be null
>> null org.ofbiz.entity.transaction.TransactionUtil.begin(TransactionUtil.java:99) org.ofbiz.entity.transaction.TransactionUtil.begin(TransactionUtil.java:71) org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:723) org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:134) org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:116) org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76) org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:384) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:163) org.ofbiz.minilang.method.callops.CallService.exec(CallService.java:246) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104) org.ofbiz.minilang.method.ifops.IfNotEmpty.exec(IfNotEmpty.java:91) org.ofbiz.minilang.SimpleMethod.runSubOps(Si
m
> pleMethod.java:1104) org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:744) org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:134) org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:116) org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76) org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:384) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:163) org.ofbiz.minilang.method.callops.CallService.exec(CallService.java:246) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104) org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:744) org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:134) org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:116) org.ofbiz.minilang.SimpleServiceEngine.service
Inv
>  
> oker(SimpleServiceEngine.java:76) org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:384) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:149) org.ofbiz.webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:334) org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:454) org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:281) org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:198) javax.servlet.http.HttpServlet.service(HttpServlet.java:690) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) org.ofbiz.webapp.control.ContextFilter.doFilter(Con
tex
>  
> tFilter.java:255) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIo
End

>  
> point.java:447) java.lang.Thread.run(Thread.java:595) --------------------------------------------------------------------------------
>> 2009-01-12 20:28:07,251 (http-0.0.0.0-8080-1) [ ServiceDispatcher.java:522:ERROR] Error in Service [createPartyRole]: Error trying to begin transaction, could not process method: The current transaction is marked for rollback, not beginning a new transaction and aborting current operation; the rollbackOnly was caused by: Error in simple-method [Creates a person, role and contactMechs [file:/home/ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error running the simple-method: Error in simple-method operation [ ]: java.lang.RuntimeException: Error in simple-method operation [ ]: java.lang.IllegalArgumentException: locale cannot be null
>> null
>> 2009-01-12 20:28:07,252 (http-0.0.0.0-8080-1) [ TransactionUtil.java:315:INFO ] [TransactionUtil.setRollbackOnly] transaction rollback only not set, rollback only is already set.
>> 2009-01-12 20:28:07,252 (http-0.0.0.0-8080-1) [ ServiceDispatcher.java:578:INFO ] Sync service [ecommerce/createPartyRole] finished in [121] milliseconds
>> 2009-01-12 20:28:07,252 (http-0.0.0.0-8080-1) [ TransactionUtil.java:315:INFO ] [TransactionUtil.setRollbackOnly] transaction rollback only not set, rollback only is already set.
>> 2009-01-12 20:28:07,253 (http-0.0.0.0-8080-1) [ ServiceDispatcher.java:522:ERROR] Error in Service [createLead]: Error:Error trying to begin transaction, could not process method: The current transaction is marked for rollback, not beginning a new transaction and aborting current operation; the rollbackOnly was caused by: Error in simple-method [Creates a person, role and contactMechs [file:/home/ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error running the simple-method: Error in simple-method operation [ ]: java.lang.RuntimeException: Error in simple-method operation [ ]: java.lang.IllegalArgumentException: locale cannot be null
>> null calling service createPartyRole in createLead
>> 2009-01-12 20:28:07,253 (http-0.0.0.0-8080-1) [ TransactionUtil.java:315:INFO ] [TransactionUtil.setRollbackOnly] transaction rollback only not set, rollback only is already set.
>> 2009-01-12 20:28:07,253 (http-0.0.0.0-8080-1) [ ServiceDispatcher.java:578:INFO ] Sync service [ecommerce/createLead] finished in [194] milliseconds
>> 2009-01-12 20:28:07,254 (http-0.0.0.0-8080-1) [ TransactionUtil.java:315:INFO ] [TransactionUtil.setRollbackOnly] transaction rollback only not set, rollback only is already set.
>> 2009-01-12 20:28:07,254 (http-0.0.0.0-8080-1) [ ServiceDispatcher.java:522:ERROR] Error in Service [createLeadFromWebForm]: Error:Error:Error trying to begin transaction, could not process method: The current transaction is marked for rollback, not beginning a new transaction and aborting current operation; the rollbackOnly was caused by: Error in simple-method [Creates a person, role and contactMechs [file:/home/ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error running the simple-method: Error in simple-method operation [ ]: java.lang.RuntimeException: Error in simple-method operation [ ]: java.lang.IllegalArgumentException: locale cannot be null
>> null calling service createPartyRole in createLead calling service createLead in createLeadFromWebForm
>> 2009-01-12 20:28:07,255 (http-0.0.0.0-8080-1) [ TransactionUtil.java:275:ERROR] ---- exception report ---------------------------------------------------------- [TransactionUtil.rollback] Exception: java.lang.Exception Message: Stack Trace ---- stack trace --------------------------------------------------------------- java.lang.Exception: Stack Trace org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:274) org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:256) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:526) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:149) org.ofbiz.webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:334) org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:454) org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:281) org.ofbiz.webapp.control.Co
n
> trolServlet.doGet(ControlServlet.java:198) javax.servlet.http.HttpServlet.service(HttpServlet.java:690) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:255) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) org.apache.catalina.core.StandardEngineValve.invok
e(S

>  
> tandardEngineValve.java:109) org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) java.lang.Thread.run(Thread.java:595) --------------------------------------------------------------------------------
>> 2009-01-12 20:28:07,255 (http-0.0.0.0-8080-1) [ TransactionUtil.java:285:INFO ] [TransactionUtil.rollback] transaction rolled back
>> 2009-01-12 20:28:07,255 (http-0.0.0.0-8080-1) [ ServiceDispatcher.java:578:INFO ] Sync service [ecommerce/createLeadFromWebForm] finished in [236] milliseconds
>> 2009-01-12 20:28:07,327 (http-0.0.0.0-8080-1) [ RequestHandler.java:314:ERROR] Request webFormSubmit caused an error with the following message: Error:Error:Error trying to begin transaction, could not process method: The current transaction is marked for rollback, not beginning a new transaction and aborting current operation; the rollbackOnly was caused by: Error in simple-method [Creates a person, role and contactMechs [file:/home/ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error running the simple-method: Error in simple-method operation [ ]: java.lang.RuntimeException: Error in simple-method operation [ ]: java.lang.IllegalArgumentException: locale cannot be null
>> null calling service createPartyRole in createLead calling service createLead in createLeadFromWebForm
>> 2009-01-12 20:28:07,328 (http-0.0.0.0-8080-1) [ RequestHandler.java:412:INFO ] [RequestHandler.doRequest]: Response is a URL redirect. sessionId=BBA68197213FF2F01514F97BB85687A6.jvm1
>> 2009-01-12 20:28:07,328 (http-0.0.0.0-8080-1) [ RequestHandler.java:539:INFO ] [Sending redirect]: http://www.globalera.com sessionId=BBA68197213FF2F01514F97BB85687A6.jvm1
>> 2009-01-12 20:28:07,376 (http-0.0.0.0-8080-1) [ ControlServlet.java:299:INFO ] [[[webFormSubmit] Done rendering page, Servlet Finished- total:0.64,since last([webFormSubmit] S...):0.638]]
>>
>> ----- Original Message -----
>> From: "Adrian Crum" <[hidden email]>
>> To: [hidden email]
>> Sent: Monday, January 12, 2009 8:31:07 AM (GMT-0700) America/Denver
>> Subject: Re: locale error in simple method
>>
>> Vince,
>>
>> We will need a complete log to track this down. To be specific, I need
>> to see the entire Java stack trace.
>>
>> -Adrian
>>
>> Vince M. Clark wrote:
>>> I created a custom simple method to respond to a request from a web form. Getting a locale error and cannot figure out where locale is required.
>>>
>>> <simple-method method-name="createLeadFromWebForm" short-description="Create Lead from Web Form" login-required="false">
>>> <entity-one entity-name="UserLogin" value-name="userlogin">
>>> <field-map field-name="userLoginId" value="system"/>
>>> </entity-one>
>>> <set-current-user-login value-name="userlogin"/>
>>> <set field="newLead.firstName" from-field="parameters.firstName"/>
>>> <set field="newLead.lastName" from-field="parameters.lastName"/>
>>> <set field="newLead.groupName" from-field="parameters.groupName"/>
>>> <set field="newLead.emailAddress" from-field="parameters.emailAddress"/>
>>> <set field="newLead.contactNumber" from-field="parameters.contactNumber"/>
>>> <set field="newLead.address1" from-field="parameters.address1"/>
>>> <set field="newLead.countryGeoId" from-field="parameters.countryGeoId"/>
>>> <set field="newLead.city" from-field="parameters.city"/>
>>> <set field="newLead.stateProvinceGeoId" from-field="parameters.stateProvinceGeoId"/>
>>> <set field="newLead.postalCode" from-field="parameters.postalCode"/>
>>> <set field="newLead.quickAdd" from-field="parameters.quickAdd"/>
>>> <call-service service-name="createLead" in-map-name="newLead">
>>> <result-to-field result-name="partyId" field="partyId"/>
>>> </call-service>
>>> </simple-method>
>>>
>>> The simple method that I am calling "createLead" calls other simple methods. One of them is createPersonRoleAndContactMechs, which throws the following exception:
>>> 2009-01-11 18:43:36,887 (http-0.0.0.0-8080-1) [ RequestHandler.java:314:ERROR] Request webFormSubmit caused an error with the following message: Error:Error:Error trying to begin transaction, could not process method: The current transaction is marked for rollback, not beginning a new transaction and aborting current operation; the rollbackOnly was caused by: Error in simple-method [Creates a person, role and contactMechs [file:/home/ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error running the simple-method: Error in simple-method operation [ ]: java.lang.RuntimeException: Error in simple-method operation [ ]: java.lang.IllegalArgumentException: locale cannot be null
>>> null calling service createPartyRole in createLead calling service createLead in createLeadFromWebForm
>>>
>>>
>>>
>>>
>
Reply | Threaded
Open this post in threaded view
|

Re: locale error in simple method

Vince Clark
Here is the service definition and the simple method. Thank you for your help.

<service name="createLeadFromWebForm" engine="simple"
location="org/ofbiz/ge/PartyServices.xml" invoke="createLeadFromWebForm" auth="false">
<description>Add a New Lead from a Web Form</description>
<attribute name="groupName" type="String" mode="IN" optional="false"/>
<attribute name="firstName" type="String" mode="IN" optional="false"/>
<attribute name="lastName" type="String" mode="IN" optional="false"/>
<attribute name="note" type="String" mode="IN" optional="true"/>
<attribute name="emailAddress" type="String" mode="IN" optional="false"/>
<attribute name="postalCode" type="String" mode="IN" optional="true"/>
<attribute name="countryGeoId" type="String" mode="IN" optional="true"/>
<attribute name="address1" type="String" mode="IN" optional="true"/>
<attribute name="city" type="String" mode="IN" optional="true"/>
<attribute name="stateProvinceGeoId" type="String" mode="IN" optional="true"/>
<attribute name="contactNumber" type="String" mode="IN" optional="true"/>
<attribute name="quickAdd" type="String" mode="IN" optional="true"/>
</service>

<simple-method method-name="createLeadFromWebForm" short-description="Create Lead from Web Form" login-required="false">
<entity-one entity-name="UserLogin" value-name="userlogin">
<field-map field-name="userLoginId" value="system"/>
</entity-one>
<set-current-user-login value-name="userlogin"/>
<set field="newLead.firstName" from-field="parameters.firstName"/>
<set field="newLead.lastName" from-field="parameters.lastName"/>
<set field="newLead.groupName" from-field="parameters.groupName"/>
<set field="newLead.emailAddress" from-field="parameters.emailAddress"/>
<set field="newLead.contactNumber" from-field="parameters.contactNumber"/>
<set field="newLead.address1" from-field="parameters.address1"/>
<set field="newLead.countryGeoId" from-field="parameters.countryGeoId"/>
<set field="newLead.city" from-field="parameters.city"/>
<set field="newLead.stateProvinceGeoId" from-field="parameters.stateProvinceGeoId"/>
<set field="newLead.postalCode" from-field="parameters.postalCode"/>
<set field="newLead.quickAdd" from-field="parameters.quickAdd"/>
<call-service service-name="createLead" in-map-name="newLead">
<result-to-field result-name="partyId" field="partyId"/>
</call-service>
</simple-method>

----- Original Message -----
From: "Adrian Crum" <[hidden email]>
To: [hidden email]
Sent: Tuesday, January 13, 2009 9:22:57 AM (GMT-0700) America/Denver
Subject: Re: locale error in simple method

If you attach the service definition, I can take a look at it.

-Adrian

Vince M. Clark wrote:

> When is that usually set? When a user logs in? My service just sets the userLogin to system. Could that be a source of the problem?
>
> ----- Original Message -----
> From: "Adrian Crum" <[hidden email]>
> To: [hidden email]
> Sent: Tuesday, January 13, 2009 9:05:01 AM (GMT-0700) America/Denver
> Subject: Re: locale error in simple method
>
> Vince,
>
> I checked to see if something changed in the framework that would cause
> this error, but I didn't find anything. There must be a problem with
> the service definition - which is preventing the locale parameter from
> being included in the service context.
>
> -Adrian
>
> Vince M. Clark wrote:
>> Here is the entire trace. Note that the first few lines are just xml validation errors.
>>
>>
>> 2009-01-12 20:28:07,054 (http-0.0.0.0-8080-1) [ UtilXml.java:660:ERROR] XmlFileLoader: File file:/home/ofbiz/trunk/hot-deploy/ge/script/org/ofbiz/ge/PartyServices.xml process error. Line: 88. Error message: cvc-complex-type.3.2.2: Attribute 'field-name' is not allowed to appear in element 'if-empty'.
>> 2009-01-12 20:28:07,055 (http-0.0.0.0-8080-1) [ UtilXml.java:660:ERROR] XmlFileLoader: File file:/home/ofbiz/trunk/hot-deploy/ge/script/org/ofbiz/ge/PartyServices.xml process error. Line: 88. Error message: cvc-complex-type.4: Attribute 'field' must appear on element 'if-empty'.
>> 2009-01-12 20:28:07,055 (http-0.0.0.0-8080-1) [ UtilXml.java:660:ERROR] XmlFileLoader: File file:/home/ofbiz/trunk/hot-deploy/ge/script/org/ofbiz/ge/PartyServices.xml process error. Line: 122. Error message: cvc-complex-type.3.2.2: Attribute 'field' is not allowed to appear in element 'result-to-field'.
>> 2009-01-12 20:28:07,056 (http-0.0.0.0-8080-1) [ UtilXml.java:241:INFO ] XML Read 0.026s: file:/home/ofbiz/trunk/hot-deploy/ge/script/org/ofbiz/ge/PartyServices.xml
>> 2009-01-12 20:28:07,059 (http-0.0.0.0-8080-1) [ Log.java:94 :INFO ] locale is en_US // here is where I set a locale variable and outputted it in the log
>>
>> 2009-01-12 20:28:07,087 (http-0.0.0.0-8080-1) [ UtilXml.java:241:INFO ] XML Read 0.027s: file:/home/ofbiz/trunk/applications/marketing/script/org/ofbiz/sfa/lead/LeadServices.xml
>> 2009-01-12 20:28:07,125 (http-0.0.0.0-8080-1) [ UtilXml.java:241:INFO ] XML Read 0.028s: file:/home/ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartySimpleMethods.xml
>> 2009-01-12 20:28:07,129 (http-0.0.0.0-8080-1) [ SimpleMethod.java:1109:ERROR] ---- runtime exception report -------------------------------------------------- Error in simple-method operation [ ]: java.lang.IllegalArgumentException: locale cannot be null Exception: java.lang.IllegalArgumentException Message: locale cannot be null ---- stack trace --------------------------------------------------------------- java.lang.IllegalArgumentException: locale cannot be null org.ofbiz.base.util.UtilProperties.getResourceBundle(UtilProperties.java:480) org.ofbiz.base.util.UtilProperties.getMessage(UtilProperties.java:385) org.ofbiz.minilang.operation.SimpleMapOperation.addMessage(SimpleMapOperation.java:62) org.ofbiz.minilang.operation.ValidateMethod.exec(ValidateMethod.java:100) org.ofbiz.minilang.operation.SimpleMapProcess.exec(SimpleMapProcess.java:51) org.ofbiz.minilang.operation.MapProcessor.exec(MapProcessor.java:80) org.ofbiz.minilang.method.callops.CallSimpleMapProcessor.ex
e
> c(CallSimpleMapProcessor.java:91) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104) org.ofbiz.minilang.method.ifops.IfNotEmpty.exec(IfNotEmpty.java:91) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104) org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:744) org.ofbiz.minilang.method.callops.CallSimpleMethod.exec(CallSimpleMethod.java:75) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104) org.ofbiz.minilang.method.ifops.IfCompare.exec(IfCompare.java:123) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104) org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:744) org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:134) org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:116) org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76) org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51) org.ofbiz.service.ServiceDispatcher.runSync(Servic
eDi
>
> spatcher.java:384) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:163) org.ofbiz.minilang.method.callops.CallService.exec(CallService.java:246) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104) org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:744) org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:134) org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:116) org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76) org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:384) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:149) org.ofbiz.webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:334) org.ofbiz.webapp.control.Re
que
>
> stHandler.runEvent(RequestHandler.java:454) org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:281) org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:198) javax.servlet.http.HttpServlet.service(HttpServlet.java:690) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:255) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) org.apache.catalina.core.StandardHostValve.invoke(StandardH
ost
>
> Valve.java:128) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) org.apa che.coyote.http11.Http11Processor.process(Http11Processor.java:844) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) java.lang.Thread.run(Thread.java:595) --------------------------------------------------------------------------------
>> 2009-01-12 20:28:07,130 (http-0.0.0.0-8080-1) [ SimpleMethod.java:1109:ERROR] ---- runtime exception report -------------------------------------------------- Error in simple-method operation [ ]: java.lang.RuntimeException: Error in simple-method operation [ ]: java.lang.IllegalArgumentException: locale cannot be null Exception: java.lang.RuntimeException Message: Error in simple-method operation [ ]: java.lang.IllegalArgumentException: locale cannot be null ---- stack trace --------------------------------------------------------------- java.lang.RuntimeException: Error in simple-method operation [ ]: java.lang.IllegalArgumentException: locale cannot be null org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1110) org.ofbiz.minilang.method.ifops.IfNotEmpty.exec(IfNotEmpty.java:91) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104) org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:744) org.ofbiz.minilang.method.callops.CallSimpleMethod.exec(C
a
> llSimpleMethod.java:75) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104) org.ofbiz.minilang.method.ifops.IfCompare.exec(IfCompare.java:123) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104) org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:744) org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:134) org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:116) org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76) org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:384) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:163) org.ofbiz.minilang.method.callops.CallService.exec(CallService.java:246) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104) org.ofbiz.minilang.SimpleMethod.exec(SimpleMeth
od.
>
> java:744) org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:134) org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:116) org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76) org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:384) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:149) org.ofbiz.webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:334) org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:454) org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:281) org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:198) javax.servlet.http.HttpServlet.service(HttpServlet.java:690) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.apache.catalina.core.ApplicationF
ilt
>
> erChain.internalDoFilter(ApplicationFilterChain.java:290) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:255) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) org.apache.coyote.http1
1.H
>
> ttp11Processor.process(Http11Processor.java:844) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) java.lang.Thread.run(Thread.java:595) --------------------------------------------------------------------------------
>> 2009-01-12 20:28:07,130 (http-0.0.0.0-8080-1) [ SimpleMethod.java:748:ERROR] Error running the simple-method: Error in simple-method operation [ ]: java.lang.RuntimeException: Error in simple-method operation [ ]: java.lang.IllegalArgumentException: locale cannot be null
>> 2009-01-12 20:28:07,131 (http-0.0.0.0-8080-1) [ TransactionUtil.java:311:WARN ] ---- exception report ---------------------------------------------------------- [TransactionUtil.setRollbackOnly] Calling transaction setRollbackOnly; this stack trace shows where this is happening: Exception: java.lang.Exception Message: Error in simple-method [Creates a person, role and contactMechs [file:/home/ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error running the simple-method: Error in simple-method operation [ ]: java.lang.RuntimeException: Error in simple-method operation [ ]: java.lang.IllegalArgumentException: locale cannot be null
>> null ---- stack trace --------------------------------------------------------------- java.lang.Exception: Error in simple-method [Creates a person, role and contactMechs [file:/home/ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error running the simple-method: Error in simple-method operation [ ]: java.lang.RuntimeException: Error in simple-method operation [ ]: java.lang.IllegalArgumentException: locale cannot be null
>> null org.ofbiz.entity.transaction.TransactionUtil.setRollbackOnly(TransactionUtil.java:311) org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:258) org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:875) org.ofbiz.minilang.method.callops.CallSimpleMethod.exec(CallSimpleMethod.java:75) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104) org.ofbiz.minilang.method.ifops.IfCompare.exec(IfCompare.java:123) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104) org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:744) org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:134) org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:116) org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76) org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:384) org.ofbiz.service.ServiceDispatcher.run
S
> ync(ServiceDispatcher.java:213) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:163) org.ofbiz.minilang.method.callops.CallService.exec(CallService.java:246) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104) org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:744) org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:134) org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:116) org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76) org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:384) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:149) org.ofbiz.webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:334) org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:454) org.ofbiz.we
bap
>
> p.control.RequestHandler.doRequest(RequestHandler.java:281) org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:198) javax.servlet.http.HttpServlet.service(HttpServlet.java:690) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:255) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) org.apache.catalina.valves.ErrorReportVa
lve
>
> .invoke(ErrorReportValve.java:102) org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) java.lang.Thread.run(Thread.java:595) --------------------------------------------------------------------------------
>> 2009-01-12 20:28:07,153 (http-0.0.0.0-8080-1) [ UtilXml.java:241:INFO ] XML Read 0.021s: file:/home/ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartyPermissionServices.xml
>> 2009-01-12 20:28:07,196 (http-0.0.0.0-8080-1) [ UtilXml.java:241:INFO ] XML Read 0.028s: file:/home/ofbiz/trunk/framework/common/script/org/ofbiz/common/permission/CommonPermissionServices.xml
>> 2009-01-12 20:28:07,197 (http-0.0.0.0-8080-1) [ Log.java:94 :INFO ] Checking for primary permission PARTYMGR_CREATE
>> 2009-01-12 20:28:07,198 (http-0.0.0.0-8080-1) [ Log.java:94 :INFO ] Checking for alternate permission PARTYMGR_ROLE_CREATE
>> 2009-01-12 20:28:07,200 (http-0.0.0.0-8080-1) [ ServiceDispatcher.java:578:INFO ] Sync service [ecommerce/partyRolePermissionCheck] finished in [68] milliseconds
>> 2009-01-12 20:28:07,242 (http-0.0.0.0-8080-1) [ UtilXml.java:241:INFO ] XML Read 0.041s: file:/home/ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartyServices.xml
>> 2009-01-12 20:28:07,249 (http-0.0.0.0-8080-1) [ TransactionUtil.java:91 :WARN ] ---- exception report ---------------------------------------------------------- [TransactionUtil.begin] active transaction marked for rollback in place, so no transaction begun; this stack trace shows when the exception began: Exception: java.lang.Exception Message: Tx Stack Placeholder ---- stack trace --------------------------------------------------------------- java.lang.Exception: Tx Stack Placeholder org.ofbiz.entity.transaction.TransactionUtil.setTransactionBeginStack(TransactionUtil.java:636) org.ofbiz.entity.transaction.TransactionUtil.begin(TransactionUtil.java:125) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:302) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:149) org.ofbiz.webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:334) org.ofbiz.webapp.control.
R
> equestHandler.runEvent(RequestHandler.java:454) org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:281) org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:198) javax.servlet.http.HttpServlet.service(HttpServlet.java:690) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:255) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) org.apache.catalina.core.StandardHostValve.invoke(Stand
ard
>
> HostValve.java:128) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) java.lang.Thread.run(Thread.java:595) --------------------------------------------------------------------------------
>> 2009-01-12 20:28:07,250 (http-0.0.0.0-8080-1) [ SimpleMethod.java:726:WARN ] Error trying to begin transaction, could not process method: The current transaction is marked for rollback, not beginning a new transaction and aborting current operation; the rollbackOnly was caused by: Error in simple-method [Creates a person, role and contactMechs [file:/home/ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error running the simple-method: Error in simple-method operation [ ]: java.lang.RuntimeException: Error in simple-method operation [ ]: java.lang.IllegalArgumentException: locale cannot be null
>> null
>> 2009-01-12 20:28:07,251 (http-0.0.0.0-8080-1) [ SimpleMethod.java:727:WARN ] ---- exception report ---------------------------------------------------------- Exception: org.ofbiz.entity.transaction.GenericTransactionException Message: The current transaction is marked for rollback, not beginning a new transaction and aborting current operation; the rollbackOnly was caused by: Error in simple-method [Creates a person, role and contactMechs [file:/home/ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error running the simple-method: Error in simple-method operation [ ]: java.lang.RuntimeException: Error in simple-method operation [ ]: java.lang.IllegalArgumentException: locale cannot be null
>> null ---- stack trace --------------------------------------------------------------- org.ofbiz.entity.transaction.GenericTransactionException: The current transaction is marked for rollback, not beginning a new transaction and aborting current operation; the rollbackOnly was caused by: Error in simple-method [Creates a person, role and contactMechs [file:/home/ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error running the simple-method: Error in simple-method operation [ ]: java.lang.RuntimeException: Error in simple-method operation [ ]: java.lang.IllegalArgumentException: locale cannot be null
>> null org.ofbiz.entity.transaction.TransactionUtil.begin(TransactionUtil.java:99) org.ofbiz.entity.transaction.TransactionUtil.begin(TransactionUtil.java:71) org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:723) org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:134) org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:116) org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76) org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:384) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:163) org.ofbiz.minilang.method.callops.CallService.exec(CallService.java:246) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104) org.ofbiz.minilang.method.ifops.IfNotEmpty.exec(IfNotEmpty.java:91) org.ofbiz.minilang.SimpleMethod.runSubOps(Si
m
> pleMethod.java:1104) org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:744) org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:134) org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:116) org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76) org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:384) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:163) org.ofbiz.minilang.method.callops.CallService.exec(CallService.java:246) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104) org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:744) org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:134) org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:116) org.ofbiz.minilang.SimpleServiceEngine.service
Inv
>
> oker(SimpleServiceEngine.java:76) org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:384) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:149) org.ofbiz.webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:334) org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:454) org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:281) org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:198) javax.servlet.http.HttpServlet.service(HttpServlet.java:690) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) org.ofbiz.webapp.control.ContextFilter.doFilter(Con
tex
>
> tFilter.java:255) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIo
End

>
> point.java:447) java.lang.Thread.run(Thread.java:595) --------------------------------------------------------------------------------
>> 2009-01-12 20:28:07,251 (http-0.0.0.0-8080-1) [ ServiceDispatcher.java:522:ERROR] Error in Service [createPartyRole]: Error trying to begin transaction, could not process method: The current transaction is marked for rollback, not beginning a new transaction and aborting current operation; the rollbackOnly was caused by: Error in simple-method [Creates a person, role and contactMechs [file:/home/ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error running the simple-method: Error in simple-method operation [ ]: java.lang.RuntimeException: Error in simple-method operation [ ]: java.lang.IllegalArgumentException: locale cannot be null
>> null
>> 2009-01-12 20:28:07,252 (http-0.0.0.0-8080-1) [ TransactionUtil.java:315:INFO ] [TransactionUtil.setRollbackOnly] transaction rollback only not set, rollback only is already set.
>> 2009-01-12 20:28:07,252 (http-0.0.0.0-8080-1) [ ServiceDispatcher.java:578:INFO ] Sync service [ecommerce/createPartyRole] finished in [121] milliseconds
>> 2009-01-12 20:28:07,252 (http-0.0.0.0-8080-1) [ TransactionUtil.java:315:INFO ] [TransactionUtil.setRollbackOnly] transaction rollback only not set, rollback only is already set.
>> 2009-01-12 20:28:07,253 (http-0.0.0.0-8080-1) [ ServiceDispatcher.java:522:ERROR] Error in Service [createLead]: Error:Error trying to begin transaction, could not process method: The current transaction is marked for rollback, not beginning a new transaction and aborting current operation; the rollbackOnly was caused by: Error in simple-method [Creates a person, role and contactMechs [file:/home/ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error running the simple-method: Error in simple-method operation [ ]: java.lang.RuntimeException: Error in simple-method operation [ ]: java.lang.IllegalArgumentException: locale cannot be null
>> null calling service createPartyRole in createLead
>> 2009-01-12 20:28:07,253 (http-0.0.0.0-8080-1) [ TransactionUtil.java:315:INFO ] [TransactionUtil.setRollbackOnly] transaction rollback only not set, rollback only is already set.
>> 2009-01-12 20:28:07,253 (http-0.0.0.0-8080-1) [ ServiceDispatcher.java:578:INFO ] Sync service [ecommerce/createLead] finished in [194] milliseconds
>> 2009-01-12 20:28:07,254 (http-0.0.0.0-8080-1) [ TransactionUtil.java:315:INFO ] [TransactionUtil.setRollbackOnly] transaction rollback only not set, rollback only is already set.
>> 2009-01-12 20:28:07,254 (http-0.0.0.0-8080-1) [ ServiceDispatcher.java:522:ERROR] Error in Service [createLeadFromWebForm]: Error:Error:Error trying to begin transaction, could not process method: The current transaction is marked for rollback, not beginning a new transaction and aborting current operation; the rollbackOnly was caused by: Error in simple-method [Creates a person, role and contactMechs [file:/home/ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error running the simple-method: Error in simple-method operation [ ]: java.lang.RuntimeException: Error in simple-method operation [ ]: java.lang.IllegalArgumentException: locale cannot be null
>> null calling service createPartyRole in createLead calling service createLead in createLeadFromWebForm
>> 2009-01-12 20:28:07,255 (http-0.0.0.0-8080-1) [ TransactionUtil.java:275:ERROR] ---- exception report ---------------------------------------------------------- [TransactionUtil.rollback] Exception: java.lang.Exception Message: Stack Trace ---- stack trace --------------------------------------------------------------- java.lang.Exception: Stack Trace org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:274) org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:256) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:526) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:149) org.ofbiz.webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:334) org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:454) org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:281) org.ofbiz.webapp.control.Co
n
> trolServlet.doGet(ControlServlet.java:198) javax.servlet.http.HttpServlet.service(HttpServlet.java:690) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:255) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) org.apache.catalina.core.StandardEngineValve.invok
e(S

>
> tandardEngineValve.java:109) org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) java.lang.Thread.run(Thread.java:595) --------------------------------------------------------------------------------
>> 2009-01-12 20:28:07,255 (http-0.0.0.0-8080-1) [ TransactionUtil.java:285:INFO ] [TransactionUtil.rollback] transaction rolled back
>> 2009-01-12 20:28:07,255 (http-0.0.0.0-8080-1) [ ServiceDispatcher.java:578:INFO ] Sync service [ecommerce/createLeadFromWebForm] finished in [236] milliseconds
>> 2009-01-12 20:28:07,327 (http-0.0.0.0-8080-1) [ RequestHandler.java:314:ERROR] Request webFormSubmit caused an error with the following message: Error:Error:Error trying to begin transaction, could not process method: The current transaction is marked for rollback, not beginning a new transaction and aborting current operation; the rollbackOnly was caused by: Error in simple-method [Creates a person, role and contactMechs [file:/home/ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error running the simple-method: Error in simple-method operation [ ]: java.lang.RuntimeException: Error in simple-method operation [ ]: java.lang.IllegalArgumentException: locale cannot be null
>> null calling service createPartyRole in createLead calling service createLead in createLeadFromWebForm
>> 2009-01-12 20:28:07,328 (http-0.0.0.0-8080-1) [ RequestHandler.java:412:INFO ] [RequestHandler.doRequest]: Response is a URL redirect. sessionId=BBA68197213FF2F01514F97BB85687A6.jvm1
>> 2009-01-12 20:28:07,328 (http-0.0.0.0-8080-1) [ RequestHandler.java:539:INFO ] [Sending redirect]: http://www.globalera.com sessionId=BBA68197213FF2F01514F97BB85687A6.jvm1
>> 2009-01-12 20:28:07,376 (http-0.0.0.0-8080-1) [ ControlServlet.java:299:INFO ] [[[webFormSubmit] Done rendering page, Servlet Finished- total:0.64,since last([webFormSubmit] S...):0.638]]
>>
>> ----- Original Message -----
>> From: "Adrian Crum" <[hidden email]>
>> To: [hidden email]
>> Sent: Monday, January 12, 2009 8:31:07 AM (GMT-0700) America/Denver
>> Subject: Re: locale error in simple method
>>
>> Vince,
>>
>> We will need a complete log to track this down. To be specific, I need
>> to see the entire Java stack trace.
>>
>> -Adrian
>>
>> Vince M. Clark wrote:
>>> I created a custom simple method to respond to a request from a web form. Getting a locale error and cannot figure out where locale is required.
>>>
>>> <simple-method method-name="createLeadFromWebForm" short-description="Create Lead from Web Form" login-required="false">
>>> <entity-one entity-name="UserLogin" value-name="userlogin">
>>> <field-map field-name="userLoginId" value="system"/>
>>> </entity-one>
>>> <set-current-user-login value-name="userlogin"/>
>>> <set field="newLead.firstName" from-field="parameters.firstName"/>
>>> <set field="newLead.lastName" from-field="parameters.lastName"/>
>>> <set field="newLead.groupName" from-field="parameters.groupName"/>
>>> <set field="newLead.emailAddress" from-field="parameters.emailAddress"/>
>>> <set field="newLead.contactNumber" from-field="parameters.contactNumber"/>
>>> <set field="newLead.address1" from-field="parameters.address1"/>
>>> <set field="newLead.countryGeoId" from-field="parameters.countryGeoId"/>
>>> <set field="newLead.city" from-field="parameters.city"/>
>>> <set field="newLead.stateProvinceGeoId" from-field="parameters.stateProvinceGeoId"/>
>>> <set field="newLead.postalCode" from-field="parameters.postalCode"/>
>>> <set field="newLead.quickAdd" from-field="parameters.quickAdd"/>
>>> <call-service service-name="createLead" in-map-name="newLead">
>>> <result-to-field result-name="partyId" field="partyId"/>
>>> </call-service>
>>> </simple-method>
>>>
>>> The simple method that I am calling "createLead" calls other simple methods. One of them is createPersonRoleAndContactMechs, which throws the following exception:
>>> 2009-01-11 18:43:36,887 (http-0.0.0.0-8080-1) [ RequestHandler.java:314:ERROR] Request webFormSubmit caused an error with the following message: Error:Error:Error trying to begin transaction, could not process method: The current transaction is marked for rollback, not beginning a new transaction and aborting current operation; the rollbackOnly was caused by: Error in simple-method [Creates a person, role and contactMechs [file:/home/ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error running the simple-method: Error in simple-method operation [ ]: java.lang.RuntimeException: Error in simple-method operation [ ]: java.lang.IllegalArgumentException: locale cannot be null
>>> null calling service createPartyRole in createLead calling service createLead in createLeadFromWebForm
>>>
>>>
>>>
>>>
>
Reply | Threaded
Open this post in threaded view
|

Re: locale error in simple method

Vince Clark
In reply to this post by Vince Clark

First a disclaimer (plea for mercy). I am an ERP person, not a web or UI person. So all this http, session, context stuff is rather confusing to me.

I've been digging on this issue and want to make sure something is very clear because I think it may have something to do with the problem.

OfBiz is NOT rendering any screens for me. I'm using it as kind of a "cheap" web service. I have a static html web form served by Apache web server. The form action calls OfBiz, and then I redirect back to a static html page. So OfBiz just accepts the request, processes it, and redirects. No screen rendering whatsoever by OfBiz.

I'm pointing this out because of one of the comments I found in a java class (which of course I cannot find now) that said something about if locale was not in the context then the browser (or maybe session) default would be used.

So to simplify (or maybe over simplify) my question, is there something I should be doing in my simple method to put locale in the context before I call createLead. Also, can someone give me a tip on how to iterate through whatever is in the context and write it out to the log so I can see it.

----- Original Message -----
From: "Vince M. Clark" <[hidden email]>
To: [hidden email]
Sent: Tuesday, January 13, 2009 9:17:40 AM (GMT-0700) America/Denver
Subject: Re: locale error in simple method

Here is the service definition and the simple method. Thank you for your help.

<service name="createLeadFromWebForm" engine="simple"
location="org/ofbiz/ge/PartyServices.xml" invoke="createLeadFromWebForm" auth="false">
<description>Add a New Lead from a Web Form</description>
<attribute name="groupName" type="String" mode="IN" optional="false"/>
<attribute name="firstName" type="String" mode="IN" optional="false"/>
<attribute name="lastName" type="String" mode="IN" optional="false"/>
<attribute name="note" type="String" mode="IN" optional="true"/>
<attribute name="emailAddress" type="String" mode="IN" optional="false"/>
<attribute name="postalCode" type="String" mode="IN" optional="true"/>
<attribute name="countryGeoId" type="String" mode="IN" optional="true"/>
<attribute name="address1" type="String" mode="IN" optional="true"/>
<attribute name="city" type="String" mode="IN" optional="true"/>
<attribute name="stateProvinceGeoId" type="String" mode="IN" optional="true"/>
<attribute name="contactNumber" type="String" mode="IN" optional="true"/>
<attribute name="quickAdd" type="String" mode="IN" optional="true"/>
</service>

<simple-method method-name="createLeadFromWebForm" short-description="Create Lead from Web Form" login-required="false">
<entity-one entity-name="UserLogin" value-name="userlogin">
<field-map field-name="userLoginId" value="system"/>
</entity-one>
<set-current-user-login value-name="userlogin"/>
<set field="newLead.firstName" from-field="parameters.firstName"/>
<set field="newLead.lastName" from-field="parameters.lastName"/>
<set field="newLead.groupName" from-field="parameters.groupName"/>
<set field="newLead.emailAddress" from-field="parameters.emailAddress"/>
<set field="newLead.contactNumber" from-field="parameters.contactNumber"/>
<set field="newLead.address1" from-field="parameters.address1"/>
<set field="newLead.countryGeoId" from-field="parameters.countryGeoId"/>
<set field="newLead.city" from-field="parameters.city"/>
<set field="newLead.stateProvinceGeoId" from-field="parameters.stateProvinceGeoId"/>
<set field="newLead.postalCode" from-field="parameters.postalCode"/>
<set field="newLead.quickAdd" from-field="parameters.quickAdd"/>
<call-service service-name="createLead" in-map-name="newLead">
<result-to-field result-name="partyId" field="partyId"/>
</call-service>
</simple-method>

----- Original Message -----
From: "Adrian Crum" <[hidden email]>
To: [hidden email]
Sent: Tuesday, January 13, 2009 9:22:57 AM (GMT-0700) America/Denver
Subject: Re: locale error in simple method

If you attach the service definition, I can take a look at it.

-Adrian

Vince M. Clark wrote:

> When is that usually set? When a user logs in? My service just sets the userLogin to system. Could that be a source of the problem?
>
> ----- Original Message -----
> From: "Adrian Crum" <[hidden email]>
> To: [hidden email]
> Sent: Tuesday, January 13, 2009 9:05:01 AM (GMT-0700) America/Denver
> Subject: Re: locale error in simple method
>
> Vince,
>
> I checked to see if something changed in the framework that would cause
> this error, but I didn't find anything. There must be a problem with
> the service definition - which is preventing the locale parameter from
> being included in the service context.
>
> -Adrian
>
> Vince M. Clark wrote:
>> Here is the entire trace. Note that the first few lines are just xml validation errors.
>>
>>
>> 2009-01-12 20:28:07,054 (http-0.0.0.0-8080-1) [ UtilXml.java:660:ERROR] XmlFileLoader: File file:/home/ofbiz/trunk/hot-deploy/ge/script/org/ofbiz/ge/PartyServices.xml process error. Line: 88. Error message: cvc-complex-type.3.2.2: Attribute 'field-name' is not allowed to appear in element 'if-empty'.
>> 2009-01-12 20:28:07,055 (http-0.0.0.0-8080-1) [ UtilXml.java:660:ERROR] XmlFileLoader: File file:/home/ofbiz/trunk/hot-deploy/ge/script/org/ofbiz/ge/PartyServices.xml process error. Line: 88. Error message: cvc-complex-type.4: Attribute 'field' must appear on element 'if-empty'.
>> 2009-01-12 20:28:07,055 (http-0.0.0.0-8080-1) [ UtilXml.java:660:ERROR] XmlFileLoader: File file:/home/ofbiz/trunk/hot-deploy/ge/script/org/ofbiz/ge/PartyServices.xml process error. Line: 122. Error message: cvc-complex-type.3.2.2: Attribute 'field' is not allowed to appear in element 'result-to-field'.
>> 2009-01-12 20:28:07,056 (http-0.0.0.0-8080-1) [ UtilXml.java:241:INFO ] XML Read 0.026s: file:/home/ofbiz/trunk/hot-deploy/ge/script/org/ofbiz/ge/PartyServices.xml
>> 2009-01-12 20:28:07,059 (http-0.0.0.0-8080-1) [ Log.java:94 :INFO ] locale is en_US // here is where I set a locale variable and outputted it in the log
>>
>> 2009-01-12 20:28:07,087 (http-0.0.0.0-8080-1) [ UtilXml.java:241:INFO ] XML Read 0.027s: file:/home/ofbiz/trunk/applications/marketing/script/org/ofbiz/sfa/lead/LeadServices.xml
>> 2009-01-12 20:28:07,125 (http-0.0.0.0-8080-1) [ UtilXml.java:241:INFO ] XML Read 0.028s: file:/home/ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartySimpleMethods.xml
>> 2009-01-12 20:28:07,129 (http-0.0.0.0-8080-1) [ SimpleMethod.java:1109:ERROR] ---- runtime exception report -------------------------------------------------- Error in simple-method operation [ ]: java.lang.IllegalArgumentException: locale cannot be null Exception: java.lang.IllegalArgumentException Message: locale cannot be null ---- stack trace --------------------------------------------------------------- java.lang.IllegalArgumentException: locale cannot be null org.ofbiz.base.util.UtilProperties.getResourceBundle(UtilProperties.java:480) org.ofbiz.base.util.UtilProperties.getMessage(UtilProperties.java:385) org.ofbiz.minilang.operation.SimpleMapOperation.addMessage(SimpleMapOperation.java:62) org.ofbiz.minilang.operation.ValidateMethod.exec(ValidateMethod.java:100) org.ofbiz.minilang.operation.SimpleMapProcess.exec(SimpleMapProcess.java:51) org.ofbiz.minilang.operation.MapProcessor.exec(MapProcessor.java:80) org.ofbiz.minilang.method.callops.CallSimpleMapProcessor.ex
e
> c(CallSimpleMapProcessor.java:91) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104) org.ofbiz.minilang.method.ifops.IfNotEmpty.exec(IfNotEmpty.java:91) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104) org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:744) org.ofbiz.minilang.method.callops.CallSimpleMethod.exec(CallSimpleMethod.java:75) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104) org.ofbiz.minilang.method.ifops.IfCompare.exec(IfCompare.java:123) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104) org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:744) org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:134) org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:116) org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76) org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51) org.ofbiz.service.ServiceDispatcher.runSync(Servic
eDi
>
> spatcher.java:384) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:163) org.ofbiz.minilang.method.callops.CallService.exec(CallService.java:246) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104) org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:744) org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:134) org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:116) org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76) org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:384) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:149) org.ofbiz.webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:334) org.ofbiz.webapp.control.Re
que
>
> stHandler.runEvent(RequestHandler.java:454) org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:281) org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:198) javax.servlet.http.HttpServlet.service(HttpServlet.java:690) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:255) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) org.apache.catalina.core.StandardHostValve.invoke(StandardH
ost
>
> Valve.java:128) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) org.apa che.coyote.http11.Http11Processor.process(Http11Processor.java:844) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) java.lang.Thread.run(Thread.java:595) --------------------------------------------------------------------------------
>> 2009-01-12 20:28:07,130 (http-0.0.0.0-8080-1) [ SimpleMethod.java:1109:ERROR] ---- runtime exception report -------------------------------------------------- Error in simple-method operation [ ]: java.lang.RuntimeException: Error in simple-method operation [ ]: java.lang.IllegalArgumentException: locale cannot be null Exception: java.lang.RuntimeException Message: Error in simple-method operation [ ]: java.lang.IllegalArgumentException: locale cannot be null ---- stack trace --------------------------------------------------------------- java.lang.RuntimeException: Error in simple-method operation [ ]: java.lang.IllegalArgumentException: locale cannot be null org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1110) org.ofbiz.minilang.method.ifops.IfNotEmpty.exec(IfNotEmpty.java:91) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104) org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:744) org.ofbiz.minilang.method.callops.CallSimpleMethod.exec(C
a
> llSimpleMethod.java:75) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104) org.ofbiz.minilang.method.ifops.IfCompare.exec(IfCompare.java:123) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104) org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:744) org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:134) org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:116) org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76) org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:384) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:163) org.ofbiz.minilang.method.callops.CallService.exec(CallService.java:246) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104) org.ofbiz.minilang.SimpleMethod.exec(SimpleMeth
od.
>
> java:744) org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:134) org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:116) org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76) org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:384) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:149) org.ofbiz.webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:334) org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:454) org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:281) org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:198) javax.servlet.http.HttpServlet.service(HttpServlet.java:690) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.apache.catalina.core.ApplicationF
ilt
>
> erChain.internalDoFilter(ApplicationFilterChain.java:290) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:255) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) org.apache.coyote.http1
1.H
>
> ttp11Processor.process(Http11Processor.java:844) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) java.lang.Thread.run(Thread.java:595) --------------------------------------------------------------------------------
>> 2009-01-12 20:28:07,130 (http-0.0.0.0-8080-1) [ SimpleMethod.java:748:ERROR] Error running the simple-method: Error in simple-method operation [ ]: java.lang.RuntimeException: Error in simple-method operation [ ]: java.lang.IllegalArgumentException: locale cannot be null
>> 2009-01-12 20:28:07,131 (http-0.0.0.0-8080-1) [ TransactionUtil.java:311:WARN ] ---- exception report ---------------------------------------------------------- [TransactionUtil.setRollbackOnly] Calling transaction setRollbackOnly; this stack trace shows where this is happening: Exception: java.lang.Exception Message: Error in simple-method [Creates a person, role and contactMechs [file:/home/ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error running the simple-method: Error in simple-method operation [ ]: java.lang.RuntimeException: Error in simple-method operation [ ]: java.lang.IllegalArgumentException: locale cannot be null
>> null ---- stack trace --------------------------------------------------------------- java.lang.Exception: Error in simple-method [Creates a person, role and contactMechs [file:/home/ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error running the simple-method: Error in simple-method operation [ ]: java.lang.RuntimeException: Error in simple-method operation [ ]: java.lang.IllegalArgumentException: locale cannot be null
>> null org.ofbiz.entity.transaction.TransactionUtil.setRollbackOnly(TransactionUtil.java:311) org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:258) org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:875) org.ofbiz.minilang.method.callops.CallSimpleMethod.exec(CallSimpleMethod.java:75) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104) org.ofbiz.minilang.method.ifops.IfCompare.exec(IfCompare.java:123) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104) org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:744) org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:134) org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:116) org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76) org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:384) org.ofbiz.service.ServiceDispatcher.run
S
> ync(ServiceDispatcher.java:213) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:163) org.ofbiz.minilang.method.callops.CallService.exec(CallService.java:246) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104) org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:744) org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:134) org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:116) org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76) org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:384) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:149) org.ofbiz.webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:334) org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:454) org.ofbiz.we
bap
>
> p.control.RequestHandler.doRequest(RequestHandler.java:281) org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:198) javax.servlet.http.HttpServlet.service(HttpServlet.java:690) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:255) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) org.apache.catalina.valves.ErrorReportVa
lve
>
> .invoke(ErrorReportValve.java:102) org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) java.lang.Thread.run(Thread.java:595) --------------------------------------------------------------------------------
>> 2009-01-12 20:28:07,153 (http-0.0.0.0-8080-1) [ UtilXml.java:241:INFO ] XML Read 0.021s: file:/home/ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartyPermissionServices.xml
>> 2009-01-12 20:28:07,196 (http-0.0.0.0-8080-1) [ UtilXml.java:241:INFO ] XML Read 0.028s: file:/home/ofbiz/trunk/framework/common/script/org/ofbiz/common/permission/CommonPermissionServices.xml
>> 2009-01-12 20:28:07,197 (http-0.0.0.0-8080-1) [ Log.java:94 :INFO ] Checking for primary permission PARTYMGR_CREATE
>> 2009-01-12 20:28:07,198 (http-0.0.0.0-8080-1) [ Log.java:94 :INFO ] Checking for alternate permission PARTYMGR_ROLE_CREATE
>> 2009-01-12 20:28:07,200 (http-0.0.0.0-8080-1) [ ServiceDispatcher.java:578:INFO ] Sync service [ecommerce/partyRolePermissionCheck] finished in [68] milliseconds
>> 2009-01-12 20:28:07,242 (http-0.0.0.0-8080-1) [ UtilXml.java:241:INFO ] XML Read 0.041s: file:/home/ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartyServices.xml
>> 2009-01-12 20:28:07,249 (http-0.0.0.0-8080-1) [ TransactionUtil.java:91 :WARN ] ---- exception report ---------------------------------------------------------- [TransactionUtil.begin] active transaction marked for rollback in place, so no transaction begun; this stack trace shows when the exception began: Exception: java.lang.Exception Message: Tx Stack Placeholder ---- stack trace --------------------------------------------------------------- java.lang.Exception: Tx Stack Placeholder org.ofbiz.entity.transaction.TransactionUtil.setTransactionBeginStack(TransactionUtil.java:636) org.ofbiz.entity.transaction.TransactionUtil.begin(TransactionUtil.java:125) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:302) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:149) org.ofbiz.webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:334) org.ofbiz.webapp.control.
R
> equestHandler.runEvent(RequestHandler.java:454) org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:281) org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:198) javax.servlet.http.HttpServlet.service(HttpServlet.java:690) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:255) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) org.apache.catalina.core.StandardHostValve.invoke(Stand
ard
>
> HostValve.java:128) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) java.lang.Thread.run(Thread.java:595) --------------------------------------------------------------------------------
>> 2009-01-12 20:28:07,250 (http-0.0.0.0-8080-1) [ SimpleMethod.java:726:WARN ] Error trying to begin transaction, could not process method: The current transaction is marked for rollback, not beginning a new transaction and aborting current operation; the rollbackOnly was caused by: Error in simple-method [Creates a person, role and contactMechs [file:/home/ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error running the simple-method: Error in simple-method operation [ ]: java.lang.RuntimeException: Error in simple-method operation [ ]: java.lang.IllegalArgumentException: locale cannot be null
>> null
>> 2009-01-12 20:28:07,251 (http-0.0.0.0-8080-1) [ SimpleMethod.java:727:WARN ] ---- exception report ---------------------------------------------------------- Exception: org.ofbiz.entity.transaction.GenericTransactionException Message: The current transaction is marked for rollback, not beginning a new transaction and aborting current operation; the rollbackOnly was caused by: Error in simple-method [Creates a person, role and contactMechs [file:/home/ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error running the simple-method: Error in simple-method operation [ ]: java.lang.RuntimeException: Error in simple-method operation [ ]: java.lang.IllegalArgumentException: locale cannot be null
>> null ---- stack trace --------------------------------------------------------------- org.ofbiz.entity.transaction.GenericTransactionException: The current transaction is marked for rollback, not beginning a new transaction and aborting current operation; the rollbackOnly was caused by: Error in simple-method [Creates a person, role and contactMechs [file:/home/ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error running the simple-method: Error in simple-method operation [ ]: java.lang.RuntimeException: Error in simple-method operation [ ]: java.lang.IllegalArgumentException: locale cannot be null
>> null org.ofbiz.entity.transaction.TransactionUtil.begin(TransactionUtil.java:99) org.ofbiz.entity.transaction.TransactionUtil.begin(TransactionUtil.java:71) org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:723) org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:134) org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:116) org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76) org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:384) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:163) org.ofbiz.minilang.method.callops.CallService.exec(CallService.java:246) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104) org.ofbiz.minilang.method.ifops.IfNotEmpty.exec(IfNotEmpty.java:91) org.ofbiz.minilang.SimpleMethod.runSubOps(Si
m
> pleMethod.java:1104) org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:744) org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:134) org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:116) org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76) org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:384) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:163) org.ofbiz.minilang.method.callops.CallService.exec(CallService.java:246) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104) org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:744) org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:134) org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:116) org.ofbiz.minilang.SimpleServiceEngine.service
Inv
>
> oker(SimpleServiceEngine.java:76) org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:384) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:149) org.ofbiz.webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:334) org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:454) org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:281) org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:198) javax.servlet.http.HttpServlet.service(HttpServlet.java:690) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) org.ofbiz.webapp.control.ContextFilter.doFilter(Con
tex
>
> tFilter.java:255) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIo
End

>
> point.java:447) java.lang.Thread.run(Thread.java:595) --------------------------------------------------------------------------------
>> 2009-01-12 20:28:07,251 (http-0.0.0.0-8080-1) [ ServiceDispatcher.java:522:ERROR] Error in Service [createPartyRole]: Error trying to begin transaction, could not process method: The current transaction is marked for rollback, not beginning a new transaction and aborting current operation; the rollbackOnly was caused by: Error in simple-method [Creates a person, role and contactMechs [file:/home/ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error running the simple-method: Error in simple-method operation [ ]: java.lang.RuntimeException: Error in simple-method operation [ ]: java.lang.IllegalArgumentException: locale cannot be null
>> null
>> 2009-01-12 20:28:07,252 (http-0.0.0.0-8080-1) [ TransactionUtil.java:315:INFO ] [TransactionUtil.setRollbackOnly] transaction rollback only not set, rollback only is already set.
>> 2009-01-12 20:28:07,252 (http-0.0.0.0-8080-1) [ ServiceDispatcher.java:578:INFO ] Sync service [ecommerce/createPartyRole] finished in [121] milliseconds
>> 2009-01-12 20:28:07,252 (http-0.0.0.0-8080-1) [ TransactionUtil.java:315:INFO ] [TransactionUtil.setRollbackOnly] transaction rollback only not set, rollback only is already set.
>> 2009-01-12 20:28:07,253 (http-0.0.0.0-8080-1) [ ServiceDispatcher.java:522:ERROR] Error in Service [createLead]: Error:Error trying to begin transaction, could not process method: The current transaction is marked for rollback, not beginning a new transaction and aborting current operation; the rollbackOnly was caused by: Error in simple-method [Creates a person, role and contactMechs [file:/home/ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error running the simple-method: Error in simple-method operation [ ]: java.lang.RuntimeException: Error in simple-method operation [ ]: java.lang.IllegalArgumentException: locale cannot be null
>> null calling service createPartyRole in createLead
>> 2009-01-12 20:28:07,253 (http-0.0.0.0-8080-1) [ TransactionUtil.java:315:INFO ] [TransactionUtil.setRollbackOnly] transaction rollback only not set, rollback only is already set.
>> 2009-01-12 20:28:07,253 (http-0.0.0.0-8080-1) [ ServiceDispatcher.java:578:INFO ] Sync service [ecommerce/createLead] finished in [194] milliseconds
>> 2009-01-12 20:28:07,254 (http-0.0.0.0-8080-1) [ TransactionUtil.java:315:INFO ] [TransactionUtil.setRollbackOnly] transaction rollback only not set, rollback only is already set.
>> 2009-01-12 20:28:07,254 (http-0.0.0.0-8080-1) [ ServiceDispatcher.java:522:ERROR] Error in Service [createLeadFromWebForm]: Error:Error:Error trying to begin transaction, could not process method: The current transaction is marked for rollback, not beginning a new transaction and aborting current operation; the rollbackOnly was caused by: Error in simple-method [Creates a person, role and contactMechs [file:/home/ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error running the simple-method: Error in simple-method operation [ ]: java.lang.RuntimeException: Error in simple-method operation [ ]: java.lang.IllegalArgumentException: locale cannot be null
>> null calling service createPartyRole in createLead calling service createLead in createLeadFromWebForm
>> 2009-01-12 20:28:07,255 (http-0.0.0.0-8080-1) [ TransactionUtil.java:275:ERROR] ---- exception report ---------------------------------------------------------- [TransactionUtil.rollback] Exception: java.lang.Exception Message: Stack Trace ---- stack trace --------------------------------------------------------------- java.lang.Exception: Stack Trace org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:274) org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:256) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:526) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:149) org.ofbiz.webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:334) org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:454) org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:281) org.ofbiz.webapp.control.Co
n
> trolServlet.doGet(ControlServlet.java:198) javax.servlet.http.HttpServlet.service(HttpServlet.java:690) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:255) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) org.apache.catalina.core.StandardEngineValve.invok
e(S

>
> tandardEngineValve.java:109) org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) java.lang.Thread.run(Thread.java:595) --------------------------------------------------------------------------------
>> 2009-01-12 20:28:07,255 (http-0.0.0.0-8080-1) [ TransactionUtil.java:285:INFO ] [TransactionUtil.rollback] transaction rolled back
>> 2009-01-12 20:28:07,255 (http-0.0.0.0-8080-1) [ ServiceDispatcher.java:578:INFO ] Sync service [ecommerce/createLeadFromWebForm] finished in [236] milliseconds
>> 2009-01-12 20:28:07,327 (http-0.0.0.0-8080-1) [ RequestHandler.java:314:ERROR] Request webFormSubmit caused an error with the following message: Error:Error:Error trying to begin transaction, could not process method: The current transaction is marked for rollback, not beginning a new transaction and aborting current operation; the rollbackOnly was caused by: Error in simple-method [Creates a person, role and contactMechs [file:/home/ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error running the simple-method: Error in simple-method operation [ ]: java.lang.RuntimeException: Error in simple-method operation [ ]: java.lang.IllegalArgumentException: locale cannot be null
>> null calling service createPartyRole in createLead calling service createLead in createLeadFromWebForm
>> 2009-01-12 20:28:07,328 (http-0.0.0.0-8080-1) [ RequestHandler.java:412:INFO ] [RequestHandler.doRequest]: Response is a URL redirect. sessionId=BBA68197213FF2F01514F97BB85687A6.jvm1
>> 2009-01-12 20:28:07,328 (http-0.0.0.0-8080-1) [ RequestHandler.java:539:INFO ] [Sending redirect]: http://www.globalera.com sessionId=BBA68197213FF2F01514F97BB85687A6.jvm1
>> 2009-01-12 20:28:07,376 (http-0.0.0.0-8080-1) [ ControlServlet.java:299:INFO ] [[[webFormSubmit] Done rendering page, Servlet Finished- total:0.64,since last([webFormSubmit] S...):0.638]]
>>
>> ----- Original Message -----
>> From: "Adrian Crum" <[hidden email]>
>> To: [hidden email]
>> Sent: Monday, January 12, 2009 8:31:07 AM (GMT-0700) America/Denver
>> Subject: Re: locale error in simple method
>>
>> Vince,
>>
>> We will need a complete log to track this down. To be specific, I need
>> to see the entire Java stack trace.
>>
>> -Adrian
>>
>> Vince M. Clark wrote:
>>> I created a custom simple method to respond to a request from a web form. Getting a locale error and cannot figure out where locale is required.
>>>
>>> <simple-method method-name="createLeadFromWebForm" short-description="Create Lead from Web Form" login-required="false">
>>> <entity-one entity-name="UserLogin" value-name="userlogin">
>>> <field-map field-name="userLoginId" value="system"/>
>>> </entity-one>
>>> <set-current-user-login value-name="userlogin"/>
>>> <set field="newLead.firstName" from-field="parameters.firstName"/>
>>> <set field="newLead.lastName" from-field="parameters.lastName"/>
>>> <set field="newLead.groupName" from-field="parameters.groupName"/>
>>> <set field="newLead.emailAddress" from-field="parameters.emailAddress"/>
>>> <set field="newLead.contactNumber" from-field="parameters.contactNumber"/>
>>> <set field="newLead.address1" from-field="parameters.address1"/>
>>> <set field="newLead.countryGeoId" from-field="parameters.countryGeoId"/>
>>> <set field="newLead.city" from-field="parameters.city"/>
>>> <set field="newLead.stateProvinceGeoId" from-field="parameters.stateProvinceGeoId"/>
>>> <set field="newLead.postalCode" from-field="parameters.postalCode"/>
>>> <set field="newLead.quickAdd" from-field="parameters.quickAdd"/>
>>> <call-service service-name="createLead" in-map-name="newLead">
>>> <result-to-field result-name="partyId" field="partyId"/>
>>> </call-service>
>>> </simple-method>
>>>
>>> The simple method that I am calling "createLead" calls other simple methods. One of them is createPersonRoleAndContactMechs, which throws the following exception:
>>> 2009-01-11 18:43:36,887 (http-0.0.0.0-8080-1) [ RequestHandler.java:314:ERROR] Request webFormSubmit caused an error with the following message: Error:Error:Error trying to begin transaction, could not process method: The current transaction is marked for rollback, not beginning a new transaction and aborting current operation; the rollbackOnly was caused by: Error in simple-method [Creates a person, role and contactMechs [file:/home/ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error running the simple-method: Error in simple-method operation [ ]: java.lang.RuntimeException: Error in simple-method operation [ ]: java.lang.IllegalArgumentException: locale cannot be null
>>> null calling service createPartyRole in createLead calling service createLead in createLeadFromWebForm
>>>
>>>
>>>
>>>
>
Reply | Threaded
Open this post in threaded view
|

Re: locale error in simple method

David E Jones-3

Stepping back even more... which version/revision of OFBiz are you  
using?

Based on what you wrote, with the browser submitting a form to the  
OFBiz web server, as long as it is going through the ControlServlet  
and you are calling the service you described through a request-map ->  
event tag, then it should work the same way as anything else in OFBiz.

Unless something is broken somewhere then OFBiz should be getting a  
locale no matter what, even if it is the system default locale. It  
looks like somehow that isn't making it into the service call (you  
could verify that by adding a log tag in your simple-method to print  
the ${locale} string). That's part of the reason I'm about the  
revision you are using... it could be a real issue that most of us  
aren't seeing if you're not using a recent trunk revision.

Of, if the assumptions in the 2nd paragraph above are not correct (ie  
you are calling things differently) then there could be issues there  
as well.

-David


On Jan 13, 2009, at 3:59 PM, Vince M. Clark wrote:

>
> First a disclaimer (plea for mercy). I am an ERP person, not a web  
> or UI person. So all this http, session, context stuff is rather  
> confusing to me.
>
> I've been digging on this issue and want to make sure something is  
> very clear because I think it may have something to do with the  
> problem.
>
> OfBiz is NOT rendering any screens for me. I'm using it as kind of a  
> "cheap" web service. I have a static html web form served by Apache  
> web server. The form action calls OfBiz, and then I redirect back to  
> a static html page. So OfBiz just accepts the request, processes it,  
> and redirects. No screen rendering whatsoever by OfBiz.
>
> I'm pointing this out because of one of the comments I found in a  
> java class (which of course I cannot find now) that said something  
> about if locale was not in the context then the browser (or maybe  
> session) default would be used.
>
> So to simplify (or maybe over simplify) my question, is there  
> something I should be doing in my simple method to put locale in the  
> context before I call createLead. Also, can someone give me a tip on  
> how to iterate through whatever is in the context and write it out  
> to the log so I can see it.
>
> ----- Original Message -----
> From: "Vince M. Clark" <[hidden email]>
> To: [hidden email]
> Sent: Tuesday, January 13, 2009 9:17:40 AM (GMT-0700) America/Denver
> Subject: Re: locale error in simple method
>
> Here is the service definition and the simple method. Thank you for  
> your help.
>
> <service name="createLeadFromWebForm" engine="simple"
> location="org/ofbiz/ge/PartyServices.xml"  
> invoke="createLeadFromWebForm" auth="false">
> <description>Add a New Lead from a Web Form</description>
> <attribute name="groupName" type="String" mode="IN" optional="false"/>
> <attribute name="firstName" type="String" mode="IN" optional="false"/>
> <attribute name="lastName" type="String" mode="IN" optional="false"/>
> <attribute name="note" type="String" mode="IN" optional="true"/>
> <attribute name="emailAddress" type="String" mode="IN"  
> optional="false"/>
> <attribute name="postalCode" type="String" mode="IN" optional="true"/>
> <attribute name="countryGeoId" type="String" mode="IN"  
> optional="true"/>
> <attribute name="address1" type="String" mode="IN" optional="true"/>
> <attribute name="city" type="String" mode="IN" optional="true"/>
> <attribute name="stateProvinceGeoId" type="String" mode="IN"  
> optional="true"/>
> <attribute name="contactNumber" type="String" mode="IN"  
> optional="true"/>
> <attribute name="quickAdd" type="String" mode="IN" optional="true"/>
> </service>
>
> <simple-method method-name="createLeadFromWebForm" short-
> description="Create Lead from Web Form" login-required="false">
> <entity-one entity-name="UserLogin" value-name="userlogin">
> <field-map field-name="userLoginId" value="system"/>
> </entity-one>
> <set-current-user-login value-name="userlogin"/>
> <set field="newLead.firstName" from-field="parameters.firstName"/>
> <set field="newLead.lastName" from-field="parameters.lastName"/>
> <set field="newLead.groupName" from-field="parameters.groupName"/>
> <set field="newLead.emailAddress" from-
> field="parameters.emailAddress"/>
> <set field="newLead.contactNumber" from-
> field="parameters.contactNumber"/>
> <set field="newLead.address1" from-field="parameters.address1"/>
> <set field="newLead.countryGeoId" from-
> field="parameters.countryGeoId"/>
> <set field="newLead.city" from-field="parameters.city"/>
> <set field="newLead.stateProvinceGeoId" from-
> field="parameters.stateProvinceGeoId"/>
> <set field="newLead.postalCode" from-field="parameters.postalCode"/>
> <set field="newLead.quickAdd" from-field="parameters.quickAdd"/>
> <call-service service-name="createLead" in-map-name="newLead">
> <result-to-field result-name="partyId" field="partyId"/>
> </call-service>
> </simple-method>
>
> ----- Original Message -----
> From: "Adrian Crum" <[hidden email]>
> To: [hidden email]
> Sent: Tuesday, January 13, 2009 9:22:57 AM (GMT-0700) America/Denver
> Subject: Re: locale error in simple method
>
> If you attach the service definition, I can take a look at it.
>
> -Adrian
>
> Vince M. Clark wrote:
>> When is that usually set? When a user logs in? My service just sets  
>> the userLogin to system. Could that be a source of the problem?
>>
>> ----- Original Message -----
>> From: "Adrian Crum" <[hidden email]>
>> To: [hidden email]
>> Sent: Tuesday, January 13, 2009 9:05:01 AM (GMT-0700) America/Denver
>> Subject: Re: locale error in simple method
>>
>> Vince,
>>
>> I checked to see if something changed in the framework that would  
>> cause
>> this error, but I didn't find anything. There must be a problem with
>> the service definition - which is preventing the locale parameter  
>> from
>> being included in the service context.
>>
>> -Adrian
>>
>> Vince M. Clark wrote:
>>> Here is the entire trace. Note that the first few lines are just  
>>> xml validation errors.
>>>
>>>
>>> 2009-01-12 20:28:07,054 (http-0.0.0.0-8080-1) [ UtilXml.java:
>>> 660:ERROR] XmlFileLoader: File file:/home/ofbiz/trunk/hot-deploy/
>>> ge/script/org/ofbiz/ge/PartyServices.xml process error. Line: 88.  
>>> Error message: cvc-complex-type.3.2.2: Attribute 'field-name' is  
>>> not allowed to appear in element 'if-empty'.
>>> 2009-01-12 20:28:07,055 (http-0.0.0.0-8080-1) [ UtilXml.java:
>>> 660:ERROR] XmlFileLoader: File file:/home/ofbiz/trunk/hot-deploy/
>>> ge/script/org/ofbiz/ge/PartyServices.xml process error. Line: 88.  
>>> Error message: cvc-complex-type.4: Attribute 'field' must appear  
>>> on element 'if-empty'.
>>> 2009-01-12 20:28:07,055 (http-0.0.0.0-8080-1) [ UtilXml.java:
>>> 660:ERROR] XmlFileLoader: File file:/home/ofbiz/trunk/hot-deploy/
>>> ge/script/org/ofbiz/ge/PartyServices.xml process error. Line: 122.  
>>> Error message: cvc-complex-type.3.2.2: Attribute 'field' is not  
>>> allowed to appear in element 'result-to-field'.
>>> 2009-01-12 20:28:07,056 (http-0.0.0.0-8080-1) [ UtilXml.java:
>>> 241:INFO ] XML Read 0.026s: file:/home/ofbiz/trunk/hot-deploy/ge/
>>> script/org/ofbiz/ge/PartyServices.xml
>>> 2009-01-12 20:28:07,059 (http-0.0.0.0-8080-1) [ Log.java:
>>> 94 :INFO ] locale is en_US // here is where I set a locale  
>>> variable and outputted it in the log
>>>
>>> 2009-01-12 20:28:07,087 (http-0.0.0.0-8080-1) [ UtilXml.java:
>>> 241:INFO ] XML Read 0.027s: file:/home/ofbiz/trunk/applications/
>>> marketing/script/org/ofbiz/sfa/lead/LeadServices.xml
>>> 2009-01-12 20:28:07,125 (http-0.0.0.0-8080-1) [ UtilXml.java:
>>> 241:INFO ] XML Read 0.028s: file:/home/ofbiz/trunk/applications/
>>> party/script/org/ofbiz/party/party/PartySimpleMethods.xml
>>> 2009-01-12 20:28:07,129 (http-0.0.0.0-8080-1) [ SimpleMethod.java:
>>> 1109:ERROR] ---- runtime exception report  
>>> -------------------------------------------------- Error in simple-
>>> method operation [ ]: java.lang.IllegalArgumentException: locale  
>>> cannot be null Exception: java.lang.IllegalArgumentException  
>>> Message: locale cannot be null ---- stack trace  
>>> ---------------------------------------------------------------  
>>> java.lang.IllegalArgumentException: locale cannot be null  
>>> org
>>> .ofbiz
>>> .base.util.UtilProperties.getResourceBundle(UtilProperties.java:
>>> 480)  
>>> org.ofbiz.base.util.UtilProperties.getMessage(UtilProperties.java:
>>> 385)  
>>> org
>>> .ofbiz
>>> .minilang
>>> .operation.SimpleMapOperation.addMessage(SimpleMapOperation.java:
>>> 62)  
>>> org
>>> .ofbiz.minilang.operation.ValidateMethod.exec(ValidateMethod.java:
>>> 100)  
>>> org
>>> .ofbiz
>>> .minilang.operation.SimpleMapProcess.exec(SimpleMapProcess.java:
>>> 51)  
>>> org.ofbiz.minilang.operation.MapProcessor.exec(MapProcessor.java:
>>> 80) org.ofbiz.minilang.method.callops.CallSimpleMapProcessor.ex
> e
>> c(CallSimpleMapProcessor.java:91)  
>> org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104)  
>> org.ofbiz.minilang.method.ifops.IfNotEmpty.exec(IfNotEmpty.java:91)  
>> org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104)  
>> org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:744)  
>> org
>> .ofbiz
>> .minilang
>> .method.callops.CallSimpleMethod.exec(CallSimpleMethod.java:75)  
>> org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104)  
>> org.ofbiz.minilang.method.ifops.IfCompare.exec(IfCompare.java:123)  
>> org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104)  
>> org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:744)  
>> org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:
>> 134)  
>> org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:
>> 116)  
>> org
>> .ofbiz
>> .minilang
>> .SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76)  
>> org
>> .ofbiz
>> .minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51)  
>> org.ofbiz.service.ServiceDispatcher.runSync(Servic
> eDi
>>
>> spatcher.java:384)  
>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>> 213)  
>> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:
>> 163)  
>> org.ofbiz.minilang.method.callops.CallService.exec(CallService.java:
>> 246) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:
>> 1104) org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:744)  
>> org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:
>> 134)  
>> org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:
>> 116)  
>> org
>> .ofbiz
>> .minilang
>> .SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76)  
>> org
>> .ofbiz
>> .minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51)  
>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>> 384)  
>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>> 213)  
>> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:
>> 149)  
>> org
>> .ofbiz
>> .webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:
>> 334) org.ofbiz.webapp.control.Re
> que
>>
>> stHandler.runEvent(RequestHandler.java:454)  
>> org
>> .ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:
>> 281)  
>> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:
>> 198) javax.servlet.http.HttpServlet.service(HttpServlet.java:690)  
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:803)  
>> org
>> .apache
>> .catalina
>> .core
>> .ApplicationFilterChain
>> .internalDoFilter(ApplicationFilterChain.java:290)  
>> org
>> .apache
>> .catalina
>> .core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
>> 206)  
>> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:
>> 255)  
>> org
>> .apache
>> .catalina
>> .core
>> .ApplicationFilterChain
>> .internalDoFilter(ApplicationFilterChain.java:235)  
>> org
>> .apache
>> .catalina
>> .core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
>> 206)  
>> org
>> .apache
>> .catalina
>> .core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)  
>> org
>> .apache
>> .catalina
>> .core.StandardContextValve.invoke(StandardContextValve.java:175)  
>> org.apache.catalina.core.StandardHostValve.invoke(StandardH
> ost
>>
>> Valve.java:128)  
>> org
>> .apache
>> .catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)  
>> org
>> .apache
>> .catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:
>> 109)  
>> org
>> .apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:
>> 568)  
>> org
>> .apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:
>> 286) org.apa  
>> che.coyote.http11.Http11Processor.process(Http11Processor.java:844)  
>> org.apache.coyote.http11.Http11Protocol
>> $Http11ConnectionHandler.process(Http11Protocol.java:583)  
>> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:
>> 447) java.lang.Thread.run(Thread.java:595)  
>> --------------------------------------------------------------------------------
>>> 2009-01-12 20:28:07,130 (http-0.0.0.0-8080-1) [ SimpleMethod.java:
>>> 1109:ERROR] ---- runtime exception report  
>>> -------------------------------------------------- Error in simple-
>>> method operation [ ]: java.lang.RuntimeException: Error in simple-
>>> method operation [ ]: java.lang.IllegalArgumentException: locale  
>>> cannot be null Exception: java.lang.RuntimeException Message:  
>>> Error in simple-method operation [ ]:  
>>> java.lang.IllegalArgumentException: locale cannot be null ----  
>>> stack trace  
>>> ---------------------------------------------------------------  
>>> java.lang.RuntimeException: Error in simple-method operation [ ]:  
>>> java.lang.IllegalArgumentException: locale cannot be null  
>>> org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1110)  
>>> org.ofbiz.minilang.method.ifops.IfNotEmpty.exec(IfNotEmpty.java:
>>> 91) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:
>>> 1104) org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:744)  
>>> org.ofbiz.minilang.method.callops.CallSimpleMethod.exec(C
> a
>> llSimpleMethod.java:75)  
>> org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104)  
>> org.ofbiz.minilang.method.ifops.IfCompare.exec(IfCompare.java:123)  
>> org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104)  
>> org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:744)  
>> org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:
>> 134)  
>> org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:
>> 116)  
>> org
>> .ofbiz
>> .minilang
>> .SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76)  
>> org
>> .ofbiz
>> .minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51)  
>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>> 384)  
>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>> 213)  
>> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:
>> 163)  
>> org.ofbiz.minilang.method.callops.CallService.exec(CallService.java:
>> 246) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:
>> 1104) org.ofbiz.minilang.SimpleMethod.exec(SimpleMeth
> od.
>>
>> java:744)  
>> org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:
>> 134)  
>> org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:
>> 116)  
>> org
>> .ofbiz
>> .minilang
>> .SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76)  
>> org
>> .ofbiz
>> .minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51)  
>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>> 384)  
>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>> 213)  
>> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:
>> 149)  
>> org
>> .ofbiz
>> .webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:
>> 334)  
>> org
>> .ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:
>> 454)  
>> org
>> .ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:
>> 281)  
>> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:
>> 198) javax.servlet.http.HttpServlet.service(HttpServlet.java:690)  
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:803)  
>> org.apache.catalina.core.ApplicationF
> ilt
>>
>> erChain.internalDoFilter(ApplicationFilterChain.java:290)  
>> org
>> .apache
>> .catalina
>> .core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
>> 206)  
>> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:
>> 255)  
>> org
>> .apache
>> .catalina
>> .core
>> .ApplicationFilterChain
>> .internalDoFilter(ApplicationFilterChain.java:235)  
>> org
>> .apache
>> .catalina
>> .core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
>> 206)  
>> org
>> .apache
>> .catalina
>> .core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)  
>> org
>> .apache
>> .catalina
>> .core.StandardContextValve.invoke(StandardContextValve.java:175)  
>> org
>> .apache
>> .catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)  
>> org
>> .apache
>> .catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)  
>> org
>> .apache
>> .catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:
>> 109)  
>> org
>> .apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:
>> 568)  
>> org
>> .apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:
>> 286) org.apache.coyote.http1
> 1.H
>>
>> ttp11Processor.process(Http11Processor.java:844)  
>> org.apache.coyote.http11.Http11Protocol
>> $Http11ConnectionHandler.process(Http11Protocol.java:583)  
>> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:
>> 447) java.lang.Thread.run(Thread.java:595)  
>> --------------------------------------------------------------------------------
>>> 2009-01-12 20:28:07,130 (http-0.0.0.0-8080-1) [ SimpleMethod.java:
>>> 748:ERROR] Error running the simple-method: Error in simple-method  
>>> operation [ ]: java.lang.RuntimeException: Error in simple-method  
>>> operation [ ]: java.lang.IllegalArgumentException: locale cannot  
>>> be null
>>> 2009-01-12 20:28:07,131 (http-0.0.0.0-8080-1)  
>>> [ TransactionUtil.java:311:WARN ] ---- exception report  
>>> ----------------------------------------------------------  
>>> [TransactionUtil.setRollbackOnly] Calling transaction  
>>> setRollbackOnly; this stack trace shows where this is happening:  
>>> Exception: java.lang.Exception Message: Error in simple-method  
>>> [Creates a person, role and contactMechs [file:/home/ofbiz/trunk/
>>> applications/party/script/org/ofbiz/party/party/
>>> PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error  
>>> running the simple-method: Error in simple-method operation [ ]:  
>>> java.lang.RuntimeException: Error in simple-method operation [ ]:  
>>> java.lang.IllegalArgumentException: locale cannot be null
>>> null ---- stack trace  
>>> ---------------------------------------------------------------  
>>> java.lang.Exception: Error in simple-method [Creates a person,  
>>> role and contactMechs [file:/home/ofbiz/trunk/applications/party/
>>> script/org/ofbiz/party/party/
>>> PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error  
>>> running the simple-method: Error in simple-method operation [ ]:  
>>> java.lang.RuntimeException: Error in simple-method operation [ ]:  
>>> java.lang.IllegalArgumentException: locale cannot be null
>>> null  
>>> org
>>> .ofbiz
>>> .entity
>>> .transaction.TransactionUtil.setRollbackOnly(TransactionUtil.java:
>>> 311)  
>>> org
>>> .ofbiz
>>> .entity.transaction.TransactionUtil.rollback(TransactionUtil.java:
>>> 258) org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:875)  
>>> org
>>> .ofbiz
>>> .minilang
>>> .method.callops.CallSimpleMethod.exec(CallSimpleMethod.java:75)  
>>> org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104)  
>>> org.ofbiz.minilang.method.ifops.IfCompare.exec(IfCompare.java:123)  
>>> org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104)  
>>> org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:744)  
>>> org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:
>>> 134)  
>>> org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:
>>> 116)  
>>> org
>>> .ofbiz
>>> .minilang
>>> .SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76)  
>>> org
>>> .ofbiz
>>> .minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51)  
>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>>> 384) org.ofbiz.service.ServiceDispatcher.run
> S
>> ync(ServiceDispatcher.java:213)  
>> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:
>> 163)  
>> org.ofbiz.minilang.method.callops.CallService.exec(CallService.java:
>> 246) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:
>> 1104) org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:744)  
>> org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:
>> 134)  
>> org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:
>> 116)  
>> org
>> .ofbiz
>> .minilang
>> .SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76)  
>> org
>> .ofbiz
>> .minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51)  
>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>> 384)  
>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>> 213)  
>> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:
>> 149)  
>> org
>> .ofbiz
>> .webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:
>> 334)  
>> org
>> .ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:
>> 454) org.ofbiz.we
> bap
>>
>> p.control.RequestHandler.doRequest(RequestHandler.java:281)  
>> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:
>> 198) javax.servlet.http.HttpServlet.service(HttpServlet.java:690)  
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:803)  
>> org
>> .apache
>> .catalina
>> .core
>> .ApplicationFilterChain
>> .internalDoFilter(ApplicationFilterChain.java:290)  
>> org
>> .apache
>> .catalina
>> .core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
>> 206)  
>> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:
>> 255)  
>> org
>> .apache
>> .catalina
>> .core
>> .ApplicationFilterChain
>> .internalDoFilter(ApplicationFilterChain.java:235)  
>> org
>> .apache
>> .catalina
>> .core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
>> 206)  
>> org
>> .apache
>> .catalina
>> .core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)  
>> org
>> .apache
>> .catalina
>> .core.StandardContextValve.invoke(StandardContextValve.java:175)  
>> org
>> .apache
>> .catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)  
>> org.apache.catalina.valves.ErrorReportVa
> lve
>>
>> .invoke(ErrorReportValve.java:102)  
>> org
>> .apache
>> .catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:
>> 109)  
>> org
>> .apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:
>> 568)  
>> org
>> .apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:
>> 286)  
>> org
>> .apache.coyote.http11.Http11Processor.process(Http11Processor.java:
>> 844) org.apache.coyote.http11.Http11Protocol
>> $Http11ConnectionHandler.process(Http11Protocol.java:583)  
>> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:
>> 447) java.lang.Thread.run(Thread.java:595)  
>> --------------------------------------------------------------------------------
>>> 2009-01-12 20:28:07,153 (http-0.0.0.0-8080-1) [ UtilXml.java:
>>> 241:INFO ] XML Read 0.021s: file:/home/ofbiz/trunk/applications/
>>> party/script/org/ofbiz/party/party/PartyPermissionServices.xml
>>> 2009-01-12 20:28:07,196 (http-0.0.0.0-8080-1) [ UtilXml.java:
>>> 241:INFO ] XML Read 0.028s: file:/home/ofbiz/trunk/framework/
>>> common/script/org/ofbiz/common/permission/
>>> CommonPermissionServices.xml
>>> 2009-01-12 20:28:07,197 (http-0.0.0.0-8080-1) [ Log.java:
>>> 94 :INFO ] Checking for primary permission PARTYMGR_CREATE
>>> 2009-01-12 20:28:07,198 (http-0.0.0.0-8080-1) [ Log.java:
>>> 94 :INFO ] Checking for alternate permission PARTYMGR_ROLE_CREATE
>>> 2009-01-12 20:28:07,200 (http-0.0.0.0-8080-1)  
>>> [ ServiceDispatcher.java:578:INFO ] Sync service [ecommerce/
>>> partyRolePermissionCheck] finished in [68] milliseconds
>>> 2009-01-12 20:28:07,242 (http-0.0.0.0-8080-1) [ UtilXml.java:
>>> 241:INFO ] XML Read 0.041s: file:/home/ofbiz/trunk/applications/
>>> party/script/org/ofbiz/party/party/PartyServices.xml
>>> 2009-01-12 20:28:07,249 (http-0.0.0.0-8080-1)  
>>> [ TransactionUtil.java:91 :WARN ] ---- exception report  
>>> ----------------------------------------------------------  
>>> [TransactionUtil.begin] active transaction marked for rollback in  
>>> place, so no transaction begun; this stack trace shows when the  
>>> exception began: Exception: java.lang.Exception Message: Tx Stack  
>>> Placeholder ---- stack trace  
>>> ---------------------------------------------------------------  
>>> java.lang.Exception: Tx Stack Placeholder  
>>> org
>>> .ofbiz
>>> .entity
>>> .transaction
>>> .TransactionUtil.setTransactionBeginStack(TransactionUtil.java:
>>> 636)  
>>> org
>>> .ofbiz
>>> .entity.transaction.TransactionUtil.begin(TransactionUtil.java:
>>> 125)  
>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>>> 302)  
>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>>> 213)  
>>> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:
>>> 149)  
>>> org
>>> .ofbiz
>>> .webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:
>>> 334) org.ofbiz.webapp.control.
> R
>> equestHandler.runEvent(RequestHandler.java:454)  
>> org
>> .ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:
>> 281)  
>> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:
>> 198) javax.servlet.http.HttpServlet.service(HttpServlet.java:690)  
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:803)  
>> org
>> .apache
>> .catalina
>> .core
>> .ApplicationFilterChain
>> .internalDoFilter(ApplicationFilterChain.java:290)  
>> org
>> .apache
>> .catalina
>> .core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
>> 206)  
>> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:
>> 255)  
>> org
>> .apache
>> .catalina
>> .core
>> .ApplicationFilterChain
>> .internalDoFilter(ApplicationFilterChain.java:235)  
>> org
>> .apache
>> .catalina
>> .core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
>> 206)  
>> org
>> .apache
>> .catalina
>> .core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)  
>> org
>> .apache
>> .catalina
>> .core.StandardContextValve.invoke(StandardContextValve.java:175)  
>> org.apache.catalina.core.StandardHostValve.invoke(Stand
> ard
>>
>> HostValve.java:128)  
>> org
>> .apache
>> .catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)  
>> org
>> .apache
>> .catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:
>> 109)  
>> org
>> .apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:
>> 568)  
>> org
>> .apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:
>> 286)  
>> org
>> .apache.coyote.http11.Http11Processor.process(Http11Processor.java:
>> 844) org.apache.coyote.http11.Http11Protocol
>> $Http11ConnectionHandler.process(Http11Protocol.java:583)  
>> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:
>> 447) java.lang.Thread.run(Thread.java:595)  
>> --------------------------------------------------------------------------------
>>> 2009-01-12 20:28:07,250 (http-0.0.0.0-8080-1) [ SimpleMethod.java:
>>> 726:WARN ] Error trying to begin transaction, could not process  
>>> method: The current transaction is marked for rollback, not  
>>> beginning a new transaction and aborting current operation; the  
>>> rollbackOnly was caused by: Error in simple-method [Creates a  
>>> person, role and contactMechs [file:/home/ofbiz/trunk/applications/
>>> party/script/org/ofbiz/party/party/
>>> PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error  
>>> running the simple-method: Error in simple-method operation [ ]:  
>>> java.lang.RuntimeException: Error in simple-method operation [ ]:  
>>> java.lang.IllegalArgumentException: locale cannot be null
>>> null
>>> 2009-01-12 20:28:07,251 (http-0.0.0.0-8080-1) [ SimpleMethod.java:
>>> 727:WARN ] ---- exception report  
>>> ----------------------------------------------------------  
>>> Exception:  
>>> org.ofbiz.entity.transaction.GenericTransactionException Message:  
>>> The current transaction is marked for rollback, not beginning a  
>>> new transaction and aborting current operation; the rollbackOnly  
>>> was caused by: Error in simple-method [Creates a person, role and  
>>> contactMechs [file:/home/ofbiz/trunk/applications/party/script/org/
>>> ofbiz/party/party/
>>> PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error  
>>> running the simple-method: Error in simple-method operation [ ]:  
>>> java.lang.RuntimeException: Error in simple-method operation [ ]:  
>>> java.lang.IllegalArgumentException: locale cannot be null
>>> null ---- stack trace  
>>> ---------------------------------------------------------------  
>>> org.ofbiz.entity.transaction.GenericTransactionException: The  
>>> current transaction is marked for rollback, not beginning a new  
>>> transaction and aborting current operation; the rollbackOnly was  
>>> caused by: Error in simple-method [Creates a person, role and  
>>> contactMechs [file:/home/ofbiz/trunk/applications/party/script/org/
>>> ofbiz/party/party/
>>> PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error  
>>> running the simple-method: Error in simple-method operation [ ]:  
>>> java.lang.RuntimeException: Error in simple-method operation [ ]:  
>>> java.lang.IllegalArgumentException: locale cannot be null
>>> null  
>>> org
>>> .ofbiz
>>> .entity.transaction.TransactionUtil.begin(TransactionUtil.java:99)  
>>> org
>>> .ofbiz
>>> .entity.transaction.TransactionUtil.begin(TransactionUtil.java:71)  
>>> org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:723)  
>>> org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:
>>> 134)  
>>> org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:
>>> 116)  
>>> org
>>> .ofbiz
>>> .minilang
>>> .SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76)  
>>> org
>>> .ofbiz
>>> .minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51)  
>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>>> 384)  
>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>>> 213)  
>>> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:
>>> 163)  
>>> org
>>> .ofbiz.minilang.method.callops.CallService.exec(CallService.java:
>>> 246) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:
>>> 1104)  
>>> org.ofbiz.minilang.method.ifops.IfNotEmpty.exec(IfNotEmpty.java:
>>> 91) org.ofbiz.minilang.SimpleMethod.runSubOps(Si
> m
>> pleMethod.java:1104)  
>> org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:744)  
>> org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:
>> 134)  
>> org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:
>> 116)  
>> org
>> .ofbiz
>> .minilang
>> .SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76)  
>> org
>> .ofbiz
>> .minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51)  
>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>> 384)  
>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>> 213)  
>> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:
>> 163)  
>> org.ofbiz.minilang.method.callops.CallService.exec(CallService.java:
>> 246) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:
>> 1104) org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:744)  
>> org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:
>> 134)  
>> org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:
>> 116) org.ofbiz.minilang.SimpleServiceEngine.service
> Inv
>>
>> oker(SimpleServiceEngine.java:76)  
>> org
>> .ofbiz
>> .minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51)  
>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>> 384)  
>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>> 213)  
>> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:
>> 149)  
>> org
>> .ofbiz
>> .webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:
>> 334)  
>> org
>> .ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:
>> 454)  
>> org
>> .ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:
>> 281)  
>> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:
>> 198) javax.servlet.http.HttpServlet.service(HttpServlet.java:690)  
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:803)  
>> org
>> .apache
>> .catalina
>> .core
>> .ApplicationFilterChain
>> .internalDoFilter(ApplicationFilterChain.java:290)  
>> org
>> .apache
>> .catalina
>> .core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
>> 206) org.ofbiz.webapp.control.ContextFilter.doFilter(Con
> tex
>>
>> tFilter.java:255)  
>> org
>> .apache
>> .catalina
>> .core
>> .ApplicationFilterChain
>> .internalDoFilter(ApplicationFilterChain.java:235)  
>> org
>> .apache
>> .catalina
>> .core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
>> 206)  
>> org
>> .apache
>> .catalina
>> .core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)  
>> org
>> .apache
>> .catalina
>> .core.StandardContextValve.invoke(StandardContextValve.java:175)  
>> org
>> .apache
>> .catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)  
>> org
>> .apache
>> .catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)  
>> org
>> .apache
>> .catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:
>> 109)  
>> org
>> .apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:
>> 568)  
>> org
>> .apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:
>> 286)  
>> org
>> .apache.coyote.http11.Http11Processor.process(Http11Processor.java:
>> 844) org.apache.coyote.http11.Http11Protocol
>> $Http11ConnectionHandler.process(Http11Protocol.java:583)  
>> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIo
> End
>>
>> point.java:447) java.lang.Thread.run(Thread.java:595)  
>> --------------------------------------------------------------------------------
>>> 2009-01-12 20:28:07,251 (http-0.0.0.0-8080-1)  
>>> [ ServiceDispatcher.java:522:ERROR] Error in Service  
>>> [createPartyRole]: Error trying to begin transaction, could not  
>>> process method: The current transaction is marked for rollback,  
>>> not beginning a new transaction and aborting current operation;  
>>> the rollbackOnly was caused by: Error in simple-method [Creates a  
>>> person, role and contactMechs [file:/home/ofbiz/trunk/applications/
>>> party/script/org/ofbiz/party/party/
>>> PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error  
>>> running the simple-method: Error in simple-method operation [ ]:  
>>> java.lang.RuntimeException: Error in simple-method operation [ ]:  
>>> java.lang.IllegalArgumentException: locale cannot be null
>>> null
>>> 2009-01-12 20:28:07,252 (http-0.0.0.0-8080-1)  
>>> [ TransactionUtil.java:315:INFO ]  
>>> [TransactionUtil.setRollbackOnly] transaction rollback only not  
>>> set, rollback only is already set.
>>> 2009-01-12 20:28:07,252 (http-0.0.0.0-8080-1)  
>>> [ ServiceDispatcher.java:578:INFO ] Sync service [ecommerce/
>>> createPartyRole] finished in [121] milliseconds
>>> 2009-01-12 20:28:07,252 (http-0.0.0.0-8080-1)  
>>> [ TransactionUtil.java:315:INFO ]  
>>> [TransactionUtil.setRollbackOnly] transaction rollback only not  
>>> set, rollback only is already set.
>>> 2009-01-12 20:28:07,253 (http-0.0.0.0-8080-1)  
>>> [ ServiceDispatcher.java:522:ERROR] Error in Service [createLead]:  
>>> Error:Error trying to begin transaction, could not process method:  
>>> The current transaction is marked for rollback, not beginning a  
>>> new transaction and aborting current operation; the rollbackOnly  
>>> was caused by: Error in simple-method [Creates a person, role and  
>>> contactMechs [file:/home/ofbiz/trunk/applications/party/script/org/
>>> ofbiz/party/party/
>>> PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error  
>>> running the simple-method: Error in simple-method operation [ ]:  
>>> java.lang.RuntimeException: Error in simple-method operation [ ]:  
>>> java.lang.IllegalArgumentException: locale cannot be null
>>> null calling service createPartyRole in createLead
>>> 2009-01-12 20:28:07,253 (http-0.0.0.0-8080-1)  
>>> [ TransactionUtil.java:315:INFO ]  
>>> [TransactionUtil.setRollbackOnly] transaction rollback only not  
>>> set, rollback only is already set.
>>> 2009-01-12 20:28:07,253 (http-0.0.0.0-8080-1)  
>>> [ ServiceDispatcher.java:578:INFO ] Sync service [ecommerce/
>>> createLead] finished in [194] milliseconds
>>> 2009-01-12 20:28:07,254 (http-0.0.0.0-8080-1)  
>>> [ TransactionUtil.java:315:INFO ]  
>>> [TransactionUtil.setRollbackOnly] transaction rollback only not  
>>> set, rollback only is already set.
>>> 2009-01-12 20:28:07,254 (http-0.0.0.0-8080-1)  
>>> [ ServiceDispatcher.java:522:ERROR] Error in Service  
>>> [createLeadFromWebForm]: Error:Error:Error trying to begin  
>>> transaction, could not process method: The current transaction is  
>>> marked for rollback, not beginning a new transaction and aborting  
>>> current operation; the rollbackOnly was caused by: Error in simple-
>>> method [Creates a person, role and contactMechs [file:/home/ofbiz/
>>> trunk/applications/party/script/org/ofbiz/party/party/
>>> PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error  
>>> running the simple-method: Error in simple-method operation [ ]:  
>>> java.lang.RuntimeException: Error in simple-method operation [ ]:  
>>> java.lang.IllegalArgumentException: locale cannot be null
>>> null calling service createPartyRole in createLead calling service  
>>> createLead in createLeadFromWebForm
>>> 2009-01-12 20:28:07,255 (http-0.0.0.0-8080-1)  
>>> [ TransactionUtil.java:275:ERROR] ---- exception report  
>>> ----------------------------------------------------------  
>>> [TransactionUtil.rollback] Exception: java.lang.Exception Message:  
>>> Stack Trace ---- stack trace  
>>> ---------------------------------------------------------------  
>>> java.lang.Exception: Stack Trace  
>>> org
>>> .ofbiz
>>> .entity.transaction.TransactionUtil.rollback(TransactionUtil.java:
>>> 274)  
>>> org
>>> .ofbiz
>>> .entity.transaction.TransactionUtil.rollback(TransactionUtil.java:
>>> 256)  
>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>>> 526)  
>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>>> 213)  
>>> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:
>>> 149)  
>>> org
>>> .ofbiz
>>> .webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:
>>> 334)  
>>> org
>>> .ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:
>>> 454)  
>>> org
>>> .ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:
>>> 281) org.ofbiz.webapp.control.Co
> n
>> trolServlet.doGet(ControlServlet.java:198)  
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:690)  
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:803)  
>> org
>> .apache
>> .catalina
>> .core
>> .ApplicationFilterChain
>> .internalDoFilter(ApplicationFilterChain.java:290)  
>> org
>> .apache
>> .catalina
>> .core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
>> 206)  
>> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:
>> 255)  
>> org
>> .apache
>> .catalina
>> .core
>> .ApplicationFilterChain
>> .internalDoFilter(ApplicationFilterChain.java:235)  
>> org
>> .apache
>> .catalina
>> .core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
>> 206)  
>> org
>> .apache
>> .catalina
>> .core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)  
>> org
>> .apache
>> .catalina
>> .core.StandardContextValve.invoke(StandardContextValve.java:175)  
>> org
>> .apache
>> .catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)  
>> org
>> .apache
>> .catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)  
>> org.apache.catalina.core.StandardEngineValve.invok
> e(S
>>
>> tandardEngineValve.java:109)  
>> org
>> .apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:
>> 568)  
>> org
>> .apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:
>> 286)  
>> org
>> .apache.coyote.http11.Http11Processor.process(Http11Processor.java:
>> 844) org.apache.coyote.http11.Http11Protocol
>> $Http11ConnectionHandler.process(Http11Protocol.java:583)  
>> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:
>> 447) java.lang.Thread.run(Thread.java:595)  
>> --------------------------------------------------------------------------------
>>> 2009-01-12 20:28:07,255 (http-0.0.0.0-8080-1)  
>>> [ TransactionUtil.java:285:INFO ] [TransactionUtil.rollback]  
>>> transaction rolled back
>>> 2009-01-12 20:28:07,255 (http-0.0.0.0-8080-1)  
>>> [ ServiceDispatcher.java:578:INFO ] Sync service [ecommerce/
>>> createLeadFromWebForm] finished in [236] milliseconds
>>> 2009-01-12 20:28:07,327 (http-0.0.0.0-8080-1)  
>>> [ RequestHandler.java:314:ERROR] Request webFormSubmit caused an  
>>> error with the following message: Error:Error:Error trying to  
>>> begin transaction, could not process method: The current  
>>> transaction is marked for rollback, not beginning a new  
>>> transaction and aborting current operation; the rollbackOnly was  
>>> caused by: Error in simple-method [Creates a person, role and  
>>> contactMechs [file:/home/ofbiz/trunk/applications/party/script/org/
>>> ofbiz/party/party/
>>> PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error  
>>> running the simple-method: Error in simple-method operation [ ]:  
>>> java.lang.RuntimeException: Error in simple-method operation [ ]:  
>>> java.lang.IllegalArgumentException: locale cannot be null
>>> null calling service createPartyRole in createLead calling service  
>>> createLead in createLeadFromWebForm
>>> 2009-01-12 20:28:07,328 (http-0.0.0.0-8080-1)  
>>> [ RequestHandler.java:412:INFO ] [RequestHandler.doRequest]:  
>>> Response is a URL redirect.  
>>> sessionId=BBA68197213FF2F01514F97BB85687A6.jvm1
>>> 2009-01-12 20:28:07,328 (http-0.0.0.0-8080-1)  
>>> [ RequestHandler.java:539:INFO ] [Sending redirect]: http://www.globalera.com 
>>>  sessionId=BBA68197213FF2F01514F97BB85687A6.jvm1
>>> 2009-01-12 20:28:07,376 (http-0.0.0.0-8080-1)  
>>> [ ControlServlet.java:299:INFO ] [[[webFormSubmit] Done rendering  
>>> page, Servlet Finished- total:0.64,since last([webFormSubmit]  
>>> S...):0.638]]
>>>
>>> ----- Original Message -----
>>> From: "Adrian Crum" <[hidden email]>
>>> To: [hidden email]
>>> Sent: Monday, January 12, 2009 8:31:07 AM (GMT-0700) America/Denver
>>> Subject: Re: locale error in simple method
>>>
>>> Vince,
>>>
>>> We will need a complete log to track this down. To be specific, I  
>>> need
>>> to see the entire Java stack trace.
>>>
>>> -Adrian
>>>
>>> Vince M. Clark wrote:
>>>> I created a custom simple method to respond to a request from a  
>>>> web form. Getting a locale error and cannot figure out where  
>>>> locale is required.
>>>>
>>>> <simple-method method-name="createLeadFromWebForm" short-
>>>> description="Create Lead from Web Form" login-required="false">
>>>> <entity-one entity-name="UserLogin" value-name="userlogin">
>>>> <field-map field-name="userLoginId" value="system"/>
>>>> </entity-one>
>>>> <set-current-user-login value-name="userlogin"/>
>>>> <set field="newLead.firstName" from-field="parameters.firstName"/>
>>>> <set field="newLead.lastName" from-field="parameters.lastName"/>
>>>> <set field="newLead.groupName" from-field="parameters.groupName"/>
>>>> <set field="newLead.emailAddress" from-
>>>> field="parameters.emailAddress"/>
>>>> <set field="newLead.contactNumber" from-
>>>> field="parameters.contactNumber"/>
>>>> <set field="newLead.address1" from-field="parameters.address1"/>
>>>> <set field="newLead.countryGeoId" from-
>>>> field="parameters.countryGeoId"/>
>>>> <set field="newLead.city" from-field="parameters.city"/>
>>>> <set field="newLead.stateProvinceGeoId" from-
>>>> field="parameters.stateProvinceGeoId"/>
>>>> <set field="newLead.postalCode" from-
>>>> field="parameters.postalCode"/>
>>>> <set field="newLead.quickAdd" from-field="parameters.quickAdd"/>
>>>> <call-service service-name="createLead" in-map-name="newLead">
>>>> <result-to-field result-name="partyId" field="partyId"/>
>>>> </call-service>
>>>> </simple-method>
>>>>
>>>> The simple method that I am calling "createLead" calls other  
>>>> simple methods. One of them is createPersonRoleAndContactMechs,  
>>>> which throws the following exception:
>>>> 2009-01-11 18:43:36,887 (http-0.0.0.0-8080-1)  
>>>> [ RequestHandler.java:314:ERROR] Request webFormSubmit caused an  
>>>> error with the following message: Error:Error:Error trying to  
>>>> begin transaction, could not process method: The current  
>>>> transaction is marked for rollback, not beginning a new  
>>>> transaction and aborting current operation; the rollbackOnly was  
>>>> caused by: Error in simple-method [Creates a person, role and  
>>>> contactMechs [file:/home/ofbiz/trunk/applications/party/script/
>>>> org/ofbiz/party/party/
>>>> PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error  
>>>> running the simple-method: Error in simple-method operation [ ]:  
>>>> java.lang.RuntimeException: Error in simple-method operation [ ]:  
>>>> java.lang.IllegalArgumentException: locale cannot be null
>>>> null calling service createPartyRole in createLead calling  
>>>> service createLead in createLeadFromWebForm
>>>>
>>>>
>>>>
>>>>
>>

Reply | Threaded
Open this post in threaded view
|

Re: locale error in simple method

Vince Clark
Thanks David. Rev is 679168

----- Original Message -----
From: "David E Jones" <[hidden email]>
To: [hidden email]
Sent: Tuesday, January 13, 2009 5:36:35 PM (GMT-0700) America/Denver
Subject: Re: locale error in simple method


Stepping back even more... which version/revision of OFBiz are you
using?

Based on what you wrote, with the browser submitting a form to the
OFBiz web server, as long as it is going through the ControlServlet
and you are calling the service you described through a request-map ->
event tag, then it should work the same way as anything else in OFBiz.

Unless something is broken somewhere then OFBiz should be getting a
locale no matter what, even if it is the system default locale. It
looks like somehow that isn't making it into the service call (you
could verify that by adding a log tag in your simple-method to print
the ${locale} string). That's part of the reason I'm about the
revision you are using... it could be a real issue that most of us
aren't seeing if you're not using a recent trunk revision.

Of, if the assumptions in the 2nd paragraph above are not correct (ie
you are calling things differently) then there could be issues there
as well.

-David


On Jan 13, 2009, at 3:59 PM, Vince M. Clark wrote:

>
> First a disclaimer (plea for mercy). I am an ERP person, not a web
> or UI person. So all this http, session, context stuff is rather
> confusing to me.
>
> I've been digging on this issue and want to make sure something is
> very clear because I think it may have something to do with the
> problem.
>
> OfBiz is NOT rendering any screens for me. I'm using it as kind of a
> "cheap" web service. I have a static html web form served by Apache
> web server. The form action calls OfBiz, and then I redirect back to
> a static html page. So OfBiz just accepts the request, processes it,
> and redirects. No screen rendering whatsoever by OfBiz.
>
> I'm pointing this out because of one of the comments I found in a
> java class (which of course I cannot find now) that said something
> about if locale was not in the context then the browser (or maybe
> session) default would be used.
>
> So to simplify (or maybe over simplify) my question, is there
> something I should be doing in my simple method to put locale in the
> context before I call createLead. Also, can someone give me a tip on
> how to iterate through whatever is in the context and write it out
> to the log so I can see it.
>
> ----- Original Message -----
> From: "Vince M. Clark" <[hidden email]>
> To: [hidden email]
> Sent: Tuesday, January 13, 2009 9:17:40 AM (GMT-0700) America/Denver
> Subject: Re: locale error in simple method
>
> Here is the service definition and the simple method. Thank you for
> your help.
>
> <service name="createLeadFromWebForm" engine="simple"
> location="org/ofbiz/ge/PartyServices.xml"
> invoke="createLeadFromWebForm" auth="false">
> <description>Add a New Lead from a Web Form</description>
> <attribute name="groupName" type="String" mode="IN" optional="false"/>
> <attribute name="firstName" type="String" mode="IN" optional="false"/>
> <attribute name="lastName" type="String" mode="IN" optional="false"/>
> <attribute name="note" type="String" mode="IN" optional="true"/>
> <attribute name="emailAddress" type="String" mode="IN"
> optional="false"/>
> <attribute name="postalCode" type="String" mode="IN" optional="true"/>
> <attribute name="countryGeoId" type="String" mode="IN"
> optional="true"/>
> <attribute name="address1" type="String" mode="IN" optional="true"/>
> <attribute name="city" type="String" mode="IN" optional="true"/>
> <attribute name="stateProvinceGeoId" type="String" mode="IN"
> optional="true"/>
> <attribute name="contactNumber" type="String" mode="IN"
> optional="true"/>
> <attribute name="quickAdd" type="String" mode="IN" optional="true"/>
> </service>
>
> <simple-method method-name="createLeadFromWebForm" short-
> description="Create Lead from Web Form" login-required="false">
> <entity-one entity-name="UserLogin" value-name="userlogin">
> <field-map field-name="userLoginId" value="system"/>
> </entity-one>
> <set-current-user-login value-name="userlogin"/>
> <set field="newLead.firstName" from-field="parameters.firstName"/>
> <set field="newLead.lastName" from-field="parameters.lastName"/>
> <set field="newLead.groupName" from-field="parameters.groupName"/>
> <set field="newLead.emailAddress" from-
> field="parameters.emailAddress"/>
> <set field="newLead.contactNumber" from-
> field="parameters.contactNumber"/>
> <set field="newLead.address1" from-field="parameters.address1"/>
> <set field="newLead.countryGeoId" from-
> field="parameters.countryGeoId"/>
> <set field="newLead.city" from-field="parameters.city"/>
> <set field="newLead.stateProvinceGeoId" from-
> field="parameters.stateProvinceGeoId"/>
> <set field="newLead.postalCode" from-field="parameters.postalCode"/>
> <set field="newLead.quickAdd" from-field="parameters.quickAdd"/>
> <call-service service-name="createLead" in-map-name="newLead">
> <result-to-field result-name="partyId" field="partyId"/>
> </call-service>
> </simple-method>
>
> ----- Original Message -----
> From: "Adrian Crum" <[hidden email]>
> To: [hidden email]
> Sent: Tuesday, January 13, 2009 9:22:57 AM (GMT-0700) America/Denver
> Subject: Re: locale error in simple method
>
> If you attach the service definition, I can take a look at it.
>
> -Adrian
>
> Vince M. Clark wrote:
>> When is that usually set? When a user logs in? My service just sets
>> the userLogin to system. Could that be a source of the problem?
>>
>> ----- Original Message -----
>> From: "Adrian Crum" <[hidden email]>
>> To: [hidden email]
>> Sent: Tuesday, January 13, 2009 9:05:01 AM (GMT-0700) America/Denver
>> Subject: Re: locale error in simple method
>>
>> Vince,
>>
>> I checked to see if something changed in the framework that would
>> cause
>> this error, but I didn't find anything. There must be a problem with
>> the service definition - which is preventing the locale parameter
>> from
>> being included in the service context.
>>
>> -Adrian
>>
>> Vince M. Clark wrote:
>>> Here is the entire trace. Note that the first few lines are just
>>> xml validation errors.
>>>
>>>
>>> 2009-01-12 20:28:07,054 (http-0.0.0.0-8080-1) [ UtilXml.java:
>>> 660:ERROR] XmlFileLoader: File file:/home/ofbiz/trunk/hot-deploy/
>>> ge/script/org/ofbiz/ge/PartyServices.xml process error. Line: 88.
>>> Error message: cvc-complex-type.3.2.2: Attribute 'field-name' is
>>> not allowed to appear in element 'if-empty'.
>>> 2009-01-12 20:28:07,055 (http-0.0.0.0-8080-1) [ UtilXml.java:
>>> 660:ERROR] XmlFileLoader: File file:/home/ofbiz/trunk/hot-deploy/
>>> ge/script/org/ofbiz/ge/PartyServices.xml process error. Line: 88.
>>> Error message: cvc-complex-type.4: Attribute 'field' must appear
>>> on element 'if-empty'.
>>> 2009-01-12 20:28:07,055 (http-0.0.0.0-8080-1) [ UtilXml.java:
>>> 660:ERROR] XmlFileLoader: File file:/home/ofbiz/trunk/hot-deploy/
>>> ge/script/org/ofbiz/ge/PartyServices.xml process error. Line: 122.
>>> Error message: cvc-complex-type.3.2.2: Attribute 'field' is not
>>> allowed to appear in element 'result-to-field'.
>>> 2009-01-12 20:28:07,056 (http-0.0.0.0-8080-1) [ UtilXml.java:
>>> 241:INFO ] XML Read 0.026s: file:/home/ofbiz/trunk/hot-deploy/ge/
>>> script/org/ofbiz/ge/PartyServices.xml
>>> 2009-01-12 20:28:07,059 (http-0.0.0.0-8080-1) [ Log.java:
>>> 94 :INFO ] locale is en_US // here is where I set a locale
>>> variable and outputted it in the log
>>>
>>> 2009-01-12 20:28:07,087 (http-0.0.0.0-8080-1) [ UtilXml.java:
>>> 241:INFO ] XML Read 0.027s: file:/home/ofbiz/trunk/applications/
>>> marketing/script/org/ofbiz/sfa/lead/LeadServices.xml
>>> 2009-01-12 20:28:07,125 (http-0.0.0.0-8080-1) [ UtilXml.java:
>>> 241:INFO ] XML Read 0.028s: file:/home/ofbiz/trunk/applications/
>>> party/script/org/ofbiz/party/party/PartySimpleMethods.xml
>>> 2009-01-12 20:28:07,129 (http-0.0.0.0-8080-1) [ SimpleMethod.java:
>>> 1109:ERROR] ---- runtime exception report
>>> -------------------------------------------------- Error in simple-
>>> method operation [ ]: java.lang.IllegalArgumentException: locale
>>> cannot be null Exception: java.lang.IllegalArgumentException
>>> Message: locale cannot be null ---- stack trace
>>> ---------------------------------------------------------------
>>> java.lang.IllegalArgumentException: locale cannot be null
>>> org
>>> .ofbiz
>>> .base.util.UtilProperties.getResourceBundle(UtilProperties.java:
>>> 480)
>>> org.ofbiz.base.util.UtilProperties.getMessage(UtilProperties.java:
>>> 385)
>>> org
>>> .ofbiz
>>> .minilang
>>> .operation.SimpleMapOperation.addMessage(SimpleMapOperation.java:
>>> 62)
>>> org
>>> .ofbiz.minilang.operation.ValidateMethod.exec(ValidateMethod.java:
>>> 100)
>>> org
>>> .ofbiz
>>> .minilang.operation.SimpleMapProcess.exec(SimpleMapProcess.java:
>>> 51)
>>> org.ofbiz.minilang.operation.MapProcessor.exec(MapProcessor.java:
>>> 80) org.ofbiz.minilang.method.callops.CallSimpleMapProcessor.ex
> e
>> c(CallSimpleMapProcessor.java:91)
>> org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104)
>> org.ofbiz.minilang.method.ifops.IfNotEmpty.exec(IfNotEmpty.java:91)
>> org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104)
>> org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:744)
>> org
>> .ofbiz
>> .minilang
>> .method.callops.CallSimpleMethod.exec(CallSimpleMethod.java:75)
>> org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104)
>> org.ofbiz.minilang.method.ifops.IfCompare.exec(IfCompare.java:123)
>> org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104)
>> org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:744)
>> org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:
>> 134)
>> org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:
>> 116)
>> org
>> .ofbiz
>> .minilang
>> .SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76)
>> org
>> .ofbiz
>> .minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51)
>> org.ofbiz.service.ServiceDispatcher.runSync(Servic
> eDi
>>
>> spatcher.java:384)
>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>> 213)
>> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:
>> 163)
>> org.ofbiz.minilang.method.callops.CallService.exec(CallService.java:
>> 246) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:
>> 1104) org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:744)
>> org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:
>> 134)
>> org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:
>> 116)
>> org
>> .ofbiz
>> .minilang
>> .SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76)
>> org
>> .ofbiz
>> .minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51)
>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>> 384)
>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>> 213)
>> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:
>> 149)
>> org
>> .ofbiz
>> .webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:
>> 334) org.ofbiz.webapp.control.Re
> que
>>
>> stHandler.runEvent(RequestHandler.java:454)
>> org
>> .ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:
>> 281)
>> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:
>> 198) javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>> org
>> .apache
>> .catalina
>> .core
>> .ApplicationFilterChain
>> .internalDoFilter(ApplicationFilterChain.java:290)
>> org
>> .apache
>> .catalina
>> .core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
>> 206)
>> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:
>> 255)
>> org
>> .apache
>> .catalina
>> .core
>> .ApplicationFilterChain
>> .internalDoFilter(ApplicationFilterChain.java:235)
>> org
>> .apache
>> .catalina
>> .core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
>> 206)
>> org
>> .apache
>> .catalina
>> .core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>> org
>> .apache
>> .catalina
>> .core.StandardContextValve.invoke(StandardContextValve.java:175)
>> org.apache.catalina.core.StandardHostValve.invoke(StandardH
> ost
>>
>> Valve.java:128)
>> org
>> .apache
>> .catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>> org
>> .apache
>> .catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:
>> 109)
>> org
>> .apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:
>> 568)
>> org
>> .apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:
>> 286) org.apa
>> che.coyote.http11.Http11Processor.process(Http11Processor.java:844)
>> org.apache.coyote.http11.Http11Protocol
>> $Http11ConnectionHandler.process(Http11Protocol.java:583)
>> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:
>> 447) java.lang.Thread.run(Thread.java:595)
>> --------------------------------------------------------------------------------
>>> 2009-01-12 20:28:07,130 (http-0.0.0.0-8080-1) [ SimpleMethod.java:
>>> 1109:ERROR] ---- runtime exception report
>>> -------------------------------------------------- Error in simple-
>>> method operation [ ]: java.lang.RuntimeException: Error in simple-
>>> method operation [ ]: java.lang.IllegalArgumentException: locale
>>> cannot be null Exception: java.lang.RuntimeException Message:
>>> Error in simple-method operation [ ]:
>>> java.lang.IllegalArgumentException: locale cannot be null ----
>>> stack trace
>>> ---------------------------------------------------------------
>>> java.lang.RuntimeException: Error in simple-method operation [ ]:
>>> java.lang.IllegalArgumentException: locale cannot be null
>>> org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1110)
>>> org.ofbiz.minilang.method.ifops.IfNotEmpty.exec(IfNotEmpty.java:
>>> 91) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:
>>> 1104) org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:744)
>>> org.ofbiz.minilang.method.callops.CallSimpleMethod.exec(C
> a
>> llSimpleMethod.java:75)
>> org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104)
>> org.ofbiz.minilang.method.ifops.IfCompare.exec(IfCompare.java:123)
>> org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104)
>> org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:744)
>> org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:
>> 134)
>> org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:
>> 116)
>> org
>> .ofbiz
>> .minilang
>> .SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76)
>> org
>> .ofbiz
>> .minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51)
>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>> 384)
>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>> 213)
>> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:
>> 163)
>> org.ofbiz.minilang.method.callops.CallService.exec(CallService.java:
>> 246) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:
>> 1104) org.ofbiz.minilang.SimpleMethod.exec(SimpleMeth
> od.
>>
>> java:744)
>> org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:
>> 134)
>> org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:
>> 116)
>> org
>> .ofbiz
>> .minilang
>> .SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76)
>> org
>> .ofbiz
>> .minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51)
>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>> 384)
>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>> 213)
>> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:
>> 149)
>> org
>> .ofbiz
>> .webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:
>> 334)
>> org
>> .ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:
>> 454)
>> org
>> .ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:
>> 281)
>> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:
>> 198) javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>> org.apache.catalina.core.ApplicationF
> ilt
>>
>> erChain.internalDoFilter(ApplicationFilterChain.java:290)
>> org
>> .apache
>> .catalina
>> .core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
>> 206)
>> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:
>> 255)
>> org
>> .apache
>> .catalina
>> .core
>> .ApplicationFilterChain
>> .internalDoFilter(ApplicationFilterChain.java:235)
>> org
>> .apache
>> .catalina
>> .core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
>> 206)
>> org
>> .apache
>> .catalina
>> .core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>> org
>> .apache
>> .catalina
>> .core.StandardContextValve.invoke(StandardContextValve.java:175)
>> org
>> .apache
>> .catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
>> org
>> .apache
>> .catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>> org
>> .apache
>> .catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:
>> 109)
>> org
>> .apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:
>> 568)
>> org
>> .apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:
>> 286) org.apache.coyote.http1
> 1.H
>>
>> ttp11Processor.process(Http11Processor.java:844)
>> org.apache.coyote.http11.Http11Protocol
>> $Http11ConnectionHandler.process(Http11Protocol.java:583)
>> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:
>> 447) java.lang.Thread.run(Thread.java:595)
>> --------------------------------------------------------------------------------
>>> 2009-01-12 20:28:07,130 (http-0.0.0.0-8080-1) [ SimpleMethod.java:
>>> 748:ERROR] Error running the simple-method: Error in simple-method
>>> operation [ ]: java.lang.RuntimeException: Error in simple-method
>>> operation [ ]: java.lang.IllegalArgumentException: locale cannot
>>> be null
>>> 2009-01-12 20:28:07,131 (http-0.0.0.0-8080-1)
>>> [ TransactionUtil.java:311:WARN ] ---- exception report
>>> ----------------------------------------------------------
>>> [TransactionUtil.setRollbackOnly] Calling transaction
>>> setRollbackOnly; this stack trace shows where this is happening:
>>> Exception: java.lang.Exception Message: Error in simple-method
>>> [Creates a person, role and contactMechs [file:/home/ofbiz/trunk/
>>> applications/party/script/org/ofbiz/party/party/
>>> PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error
>>> running the simple-method: Error in simple-method operation [ ]:
>>> java.lang.RuntimeException: Error in simple-method operation [ ]:
>>> java.lang.IllegalArgumentException: locale cannot be null
>>> null ---- stack trace
>>> ---------------------------------------------------------------
>>> java.lang.Exception: Error in simple-method [Creates a person,
>>> role and contactMechs [file:/home/ofbiz/trunk/applications/party/
>>> script/org/ofbiz/party/party/
>>> PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error
>>> running the simple-method: Error in simple-method operation [ ]:
>>> java.lang.RuntimeException: Error in simple-method operation [ ]:
>>> java.lang.IllegalArgumentException: locale cannot be null
>>> null
>>> org
>>> .ofbiz
>>> .entity
>>> .transaction.TransactionUtil.setRollbackOnly(TransactionUtil.java:
>>> 311)
>>> org
>>> .ofbiz
>>> .entity.transaction.TransactionUtil.rollback(TransactionUtil.java:
>>> 258) org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:875)
>>> org
>>> .ofbiz
>>> .minilang
>>> .method.callops.CallSimpleMethod.exec(CallSimpleMethod.java:75)
>>> org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104)
>>> org.ofbiz.minilang.method.ifops.IfCompare.exec(IfCompare.java:123)
>>> org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104)
>>> org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:744)
>>> org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:
>>> 134)
>>> org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:
>>> 116)
>>> org
>>> .ofbiz
>>> .minilang
>>> .SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76)
>>> org
>>> .ofbiz
>>> .minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51)
>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>>> 384) org.ofbiz.service.ServiceDispatcher.run
> S
>> ync(ServiceDispatcher.java:213)
>> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:
>> 163)
>> org.ofbiz.minilang.method.callops.CallService.exec(CallService.java:
>> 246) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:
>> 1104) org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:744)
>> org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:
>> 134)
>> org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:
>> 116)
>> org
>> .ofbiz
>> .minilang
>> .SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76)
>> org
>> .ofbiz
>> .minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51)
>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>> 384)
>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>> 213)
>> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:
>> 149)
>> org
>> .ofbiz
>> .webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:
>> 334)
>> org
>> .ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:
>> 454) org.ofbiz.we
> bap
>>
>> p.control.RequestHandler.doRequest(RequestHandler.java:281)
>> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:
>> 198) javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>> org
>> .apache
>> .catalina
>> .core
>> .ApplicationFilterChain
>> .internalDoFilter(ApplicationFilterChain.java:290)
>> org
>> .apache
>> .catalina
>> .core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
>> 206)
>> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:
>> 255)
>> org
>> .apache
>> .catalina
>> .core
>> .ApplicationFilterChain
>> .internalDoFilter(ApplicationFilterChain.java:235)
>> org
>> .apache
>> .catalina
>> .core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
>> 206)
>> org
>> .apache
>> .catalina
>> .core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>> org
>> .apache
>> .catalina
>> .core.StandardContextValve.invoke(StandardContextValve.java:175)
>> org
>> .apache
>> .catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
>> org.apache.catalina.valves.ErrorReportVa
> lve
>>
>> .invoke(ErrorReportValve.java:102)
>> org
>> .apache
>> .catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:
>> 109)
>> org
>> .apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:
>> 568)
>> org
>> .apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:
>> 286)
>> org
>> .apache.coyote.http11.Http11Processor.process(Http11Processor.java:
>> 844) org.apache.coyote.http11.Http11Protocol
>> $Http11ConnectionHandler.process(Http11Protocol.java:583)
>> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:
>> 447) java.lang.Thread.run(Thread.java:595)
>> --------------------------------------------------------------------------------
>>> 2009-01-12 20:28:07,153 (http-0.0.0.0-8080-1) [ UtilXml.java:
>>> 241:INFO ] XML Read 0.021s: file:/home/ofbiz/trunk/applications/
>>> party/script/org/ofbiz/party/party/PartyPermissionServices.xml
>>> 2009-01-12 20:28:07,196 (http-0.0.0.0-8080-1) [ UtilXml.java:
>>> 241:INFO ] XML Read 0.028s: file:/home/ofbiz/trunk/framework/
>>> common/script/org/ofbiz/common/permission/
>>> CommonPermissionServices.xml
>>> 2009-01-12 20:28:07,197 (http-0.0.0.0-8080-1) [ Log.java:
>>> 94 :INFO ] Checking for primary permission PARTYMGR_CREATE
>>> 2009-01-12 20:28:07,198 (http-0.0.0.0-8080-1) [ Log.java:
>>> 94 :INFO ] Checking for alternate permission PARTYMGR_ROLE_CREATE
>>> 2009-01-12 20:28:07,200 (http-0.0.0.0-8080-1)
>>> [ ServiceDispatcher.java:578:INFO ] Sync service [ecommerce/
>>> partyRolePermissionCheck] finished in [68] milliseconds
>>> 2009-01-12 20:28:07,242 (http-0.0.0.0-8080-1) [ UtilXml.java:
>>> 241:INFO ] XML Read 0.041s: file:/home/ofbiz/trunk/applications/
>>> party/script/org/ofbiz/party/party/PartyServices.xml
>>> 2009-01-12 20:28:07,249 (http-0.0.0.0-8080-1)
>>> [ TransactionUtil.java:91 :WARN ] ---- exception report
>>> ----------------------------------------------------------
>>> [TransactionUtil.begin] active transaction marked for rollback in
>>> place, so no transaction begun; this stack trace shows when the
>>> exception began: Exception: java.lang.Exception Message: Tx Stack
>>> Placeholder ---- stack trace
>>> ---------------------------------------------------------------
>>> java.lang.Exception: Tx Stack Placeholder
>>> org
>>> .ofbiz
>>> .entity
>>> .transaction
>>> .TransactionUtil.setTransactionBeginStack(TransactionUtil.java:
>>> 636)
>>> org
>>> .ofbiz
>>> .entity.transaction.TransactionUtil.begin(TransactionUtil.java:
>>> 125)
>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>>> 302)
>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>>> 213)
>>> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:
>>> 149)
>>> org
>>> .ofbiz
>>> .webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:
>>> 334) org.ofbiz.webapp.control.
> R
>> equestHandler.runEvent(RequestHandler.java:454)
>> org
>> .ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:
>> 281)
>> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:
>> 198) javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>> org
>> .apache
>> .catalina
>> .core
>> .ApplicationFilterChain
>> .internalDoFilter(ApplicationFilterChain.java:290)
>> org
>> .apache
>> .catalina
>> .core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
>> 206)
>> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:
>> 255)
>> org
>> .apache
>> .catalina
>> .core
>> .ApplicationFilterChain
>> .internalDoFilter(ApplicationFilterChain.java:235)
>> org
>> .apache
>> .catalina
>> .core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
>> 206)
>> org
>> .apache
>> .catalina
>> .core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>> org
>> .apache
>> .catalina
>> .core.StandardContextValve.invoke(StandardContextValve.java:175)
>> org.apache.catalina.core.StandardHostValve.invoke(Stand
> ard
>>
>> HostValve.java:128)
>> org
>> .apache
>> .catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>> org
>> .apache
>> .catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:
>> 109)
>> org
>> .apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:
>> 568)
>> org
>> .apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:
>> 286)
>> org
>> .apache.coyote.http11.Http11Processor.process(Http11Processor.java:
>> 844) org.apache.coyote.http11.Http11Protocol
>> $Http11ConnectionHandler.process(Http11Protocol.java:583)
>> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:
>> 447) java.lang.Thread.run(Thread.java:595)
>> --------------------------------------------------------------------------------
>>> 2009-01-12 20:28:07,250 (http-0.0.0.0-8080-1) [ SimpleMethod.java:
>>> 726:WARN ] Error trying to begin transaction, could not process
>>> method: The current transaction is marked for rollback, not
>>> beginning a new transaction and aborting current operation; the
>>> rollbackOnly was caused by: Error in simple-method [Creates a
>>> person, role and contactMechs [file:/home/ofbiz/trunk/applications/
>>> party/script/org/ofbiz/party/party/
>>> PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error
>>> running the simple-method: Error in simple-method operation [ ]:
>>> java.lang.RuntimeException: Error in simple-method operation [ ]:
>>> java.lang.IllegalArgumentException: locale cannot be null
>>> null
>>> 2009-01-12 20:28:07,251 (http-0.0.0.0-8080-1) [ SimpleMethod.java:
>>> 727:WARN ] ---- exception report
>>> ----------------------------------------------------------
>>> Exception:
>>> org.ofbiz.entity.transaction.GenericTransactionException Message:
>>> The current transaction is marked for rollback, not beginning a
>>> new transaction and aborting current operation; the rollbackOnly
>>> was caused by: Error in simple-method [Creates a person, role and
>>> contactMechs [file:/home/ofbiz/trunk/applications/party/script/org/
>>> ofbiz/party/party/
>>> PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error
>>> running the simple-method: Error in simple-method operation [ ]:
>>> java.lang.RuntimeException: Error in simple-method operation [ ]:
>>> java.lang.IllegalArgumentException: locale cannot be null
>>> null ---- stack trace
>>> ---------------------------------------------------------------
>>> org.ofbiz.entity.transaction.GenericTransactionException: The
>>> current transaction is marked for rollback, not beginning a new
>>> transaction and aborting current operation; the rollbackOnly was
>>> caused by: Error in simple-method [Creates a person, role and
>>> contactMechs [file:/home/ofbiz/trunk/applications/party/script/org/
>>> ofbiz/party/party/
>>> PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error
>>> running the simple-method: Error in simple-method operation [ ]:
>>> java.lang.RuntimeException: Error in simple-method operation [ ]:
>>> java.lang.IllegalArgumentException: locale cannot be null
>>> null
>>> org
>>> .ofbiz
>>> .entity.transaction.TransactionUtil.begin(TransactionUtil.java:99)
>>> org
>>> .ofbiz
>>> .entity.transaction.TransactionUtil.begin(TransactionUtil.java:71)
>>> org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:723)
>>> org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:
>>> 134)
>>> org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:
>>> 116)
>>> org
>>> .ofbiz
>>> .minilang
>>> .SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76)
>>> org
>>> .ofbiz
>>> .minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51)
>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>>> 384)
>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>>> 213)
>>> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:
>>> 163)
>>> org
>>> .ofbiz.minilang.method.callops.CallService.exec(CallService.java:
>>> 246) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:
>>> 1104)
>>> org.ofbiz.minilang.method.ifops.IfNotEmpty.exec(IfNotEmpty.java:
>>> 91) org.ofbiz.minilang.SimpleMethod.runSubOps(Si
> m
>> pleMethod.java:1104)
>> org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:744)
>> org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:
>> 134)
>> org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:
>> 116)
>> org
>> .ofbiz
>> .minilang
>> .SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76)
>> org
>> .ofbiz
>> .minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51)
>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>> 384)
>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>> 213)
>> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:
>> 163)
>> org.ofbiz.minilang.method.callops.CallService.exec(CallService.java:
>> 246) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:
>> 1104) org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:744)
>> org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:
>> 134)
>> org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:
>> 116) org.ofbiz.minilang.SimpleServiceEngine.service
> Inv
>>
>> oker(SimpleServiceEngine.java:76)
>> org
>> .ofbiz
>> .minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51)
>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>> 384)
>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>> 213)
>> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:
>> 149)
>> org
>> .ofbiz
>> .webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:
>> 334)
>> org
>> .ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:
>> 454)
>> org
>> .ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:
>> 281)
>> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:
>> 198) javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>> org
>> .apache
>> .catalina
>> .core
>> .ApplicationFilterChain
>> .internalDoFilter(ApplicationFilterChain.java:290)
>> org
>> .apache
>> .catalina
>> .core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
>> 206) org.ofbiz.webapp.control.ContextFilter.doFilter(Con
> tex
>>
>> tFilter.java:255)
>> org
>> .apache
>> .catalina
>> .core
>> .ApplicationFilterChain
>> .internalDoFilter(ApplicationFilterChain.java:235)
>> org
>> .apache
>> .catalina
>> .core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
>> 206)
>> org
>> .apache
>> .catalina
>> .core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>> org
>> .apache
>> .catalina
>> .core.StandardContextValve.invoke(StandardContextValve.java:175)
>> org
>> .apache
>> .catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
>> org
>> .apache
>> .catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>> org
>> .apache
>> .catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:
>> 109)
>> org
>> .apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:
>> 568)
>> org
>> .apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:
>> 286)
>> org
>> .apache.coyote.http11.Http11Processor.process(Http11Processor.java:
>> 844) org.apache.coyote.http11.Http11Protocol
>> $Http11ConnectionHandler.process(Http11Protocol.java:583)
>> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIo
> End
>>
>> point.java:447) java.lang.Thread.run(Thread.java:595)
>> --------------------------------------------------------------------------------
>>> 2009-01-12 20:28:07,251 (http-0.0.0.0-8080-1)
>>> [ ServiceDispatcher.java:522:ERROR] Error in Service
>>> [createPartyRole]: Error trying to begin transaction, could not
>>> process method: The current transaction is marked for rollback,
>>> not beginning a new transaction and aborting current operation;
>>> the rollbackOnly was caused by: Error in simple-method [Creates a
>>> person, role and contactMechs [file:/home/ofbiz/trunk/applications/
>>> party/script/org/ofbiz/party/party/
>>> PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error
>>> running the simple-method: Error in simple-method operation [ ]:
>>> java.lang.RuntimeException: Error in simple-method operation [ ]:
>>> java.lang.IllegalArgumentException: locale cannot be null
>>> null
>>> 2009-01-12 20:28:07,252 (http-0.0.0.0-8080-1)
>>> [ TransactionUtil.java:315:INFO ]
>>> [TransactionUtil.setRollbackOnly] transaction rollback only not
>>> set, rollback only is already set.
>>> 2009-01-12 20:28:07,252 (http-0.0.0.0-8080-1)
>>> [ ServiceDispatcher.java:578:INFO ] Sync service [ecommerce/
>>> createPartyRole] finished in [121] milliseconds
>>> 2009-01-12 20:28:07,252 (http-0.0.0.0-8080-1)
>>> [ TransactionUtil.java:315:INFO ]
>>> [TransactionUtil.setRollbackOnly] transaction rollback only not
>>> set, rollback only is already set.
>>> 2009-01-12 20:28:07,253 (http-0.0.0.0-8080-1)
>>> [ ServiceDispatcher.java:522:ERROR] Error in Service [createLead]:
>>> Error:Error trying to begin transaction, could not process method:
>>> The current transaction is marked for rollback, not beginning a
>>> new transaction and aborting current operation; the rollbackOnly
>>> was caused by: Error in simple-method [Creates a person, role and
>>> contactMechs [file:/home/ofbiz/trunk/applications/party/script/org/
>>> ofbiz/party/party/
>>> PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error
>>> running the simple-method: Error in simple-method operation [ ]:
>>> java.lang.RuntimeException: Error in simple-method operation [ ]:
>>> java.lang.IllegalArgumentException: locale cannot be null
>>> null calling service createPartyRole in createLead
>>> 2009-01-12 20:28:07,253 (http-0.0.0.0-8080-1)
>>> [ TransactionUtil.java:315:INFO ]
>>> [TransactionUtil.setRollbackOnly] transaction rollback only not
>>> set, rollback only is already set.
>>> 2009-01-12 20:28:07,253 (http-0.0.0.0-8080-1)
>>> [ ServiceDispatcher.java:578:INFO ] Sync service [ecommerce/
>>> createLead] finished in [194] milliseconds
>>> 2009-01-12 20:28:07,254 (http-0.0.0.0-8080-1)
>>> [ TransactionUtil.java:315:INFO ]
>>> [TransactionUtil.setRollbackOnly] transaction rollback only not
>>> set, rollback only is already set.
>>> 2009-01-12 20:28:07,254 (http-0.0.0.0-8080-1)
>>> [ ServiceDispatcher.java:522:ERROR] Error in Service
>>> [createLeadFromWebForm]: Error:Error:Error trying to begin
>>> transaction, could not process method: The current transaction is
>>> marked for rollback, not beginning a new transaction and aborting
>>> current operation; the rollbackOnly was caused by: Error in simple-
>>> method [Creates a person, role and contactMechs [file:/home/ofbiz/
>>> trunk/applications/party/script/org/ofbiz/party/party/
>>> PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error
>>> running the simple-method: Error in simple-method operation [ ]:
>>> java.lang.RuntimeException: Error in simple-method operation [ ]:
>>> java.lang.IllegalArgumentException: locale cannot be null
>>> null calling service createPartyRole in createLead calling service
>>> createLead in createLeadFromWebForm
>>> 2009-01-12 20:28:07,255 (http-0.0.0.0-8080-1)
>>> [ TransactionUtil.java:275:ERROR] ---- exception report
>>> ----------------------------------------------------------
>>> [TransactionUtil.rollback] Exception: java.lang.Exception Message:
>>> Stack Trace ---- stack trace
>>> ---------------------------------------------------------------
>>> java.lang.Exception: Stack Trace
>>> org
>>> .ofbiz
>>> .entity.transaction.TransactionUtil.rollback(TransactionUtil.java:
>>> 274)
>>> org
>>> .ofbiz
>>> .entity.transaction.TransactionUtil.rollback(TransactionUtil.java:
>>> 256)
>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>>> 526)
>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>>> 213)
>>> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:
>>> 149)
>>> org
>>> .ofbiz
>>> .webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:
>>> 334)
>>> org
>>> .ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:
>>> 454)
>>> org
>>> .ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:
>>> 281) org.ofbiz.webapp.control.Co
> n
>> trolServlet.doGet(ControlServlet.java:198)
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>> org
>> .apache
>> .catalina
>> .core
>> .ApplicationFilterChain
>> .internalDoFilter(ApplicationFilterChain.java:290)
>> org
>> .apache
>> .catalina
>> .core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
>> 206)
>> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:
>> 255)
>> org
>> .apache
>> .catalina
>> .core
>> .ApplicationFilterChain
>> .internalDoFilter(ApplicationFilterChain.java:235)
>> org
>> .apache
>> .catalina
>> .core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
>> 206)
>> org
>> .apache
>> .catalina
>> .core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>> org
>> .apache
>> .catalina
>> .core.StandardContextValve.invoke(StandardContextValve.java:175)
>> org
>> .apache
>> .catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
>> org
>> .apache
>> .catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>> org.apache.catalina.core.StandardEngineValve.invok
> e(S
>>
>> tandardEngineValve.java:109)
>> org
>> .apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:
>> 568)
>> org
>> .apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:
>> 286)
>> org
>> .apache.coyote.http11.Http11Processor.process(Http11Processor.java:
>> 844) org.apache.coyote.http11.Http11Protocol
>> $Http11ConnectionHandler.process(Http11Protocol.java:583)
>> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:
>> 447) java.lang.Thread.run(Thread.java:595)
>> --------------------------------------------------------------------------------
>>> 2009-01-12 20:28:07,255 (http-0.0.0.0-8080-1)
>>> [ TransactionUtil.java:285:INFO ] [TransactionUtil.rollback]
>>> transaction rolled back
>>> 2009-01-12 20:28:07,255 (http-0.0.0.0-8080-1)
>>> [ ServiceDispatcher.java:578:INFO ] Sync service [ecommerce/
>>> createLeadFromWebForm] finished in [236] milliseconds
>>> 2009-01-12 20:28:07,327 (http-0.0.0.0-8080-1)
>>> [ RequestHandler.java:314:ERROR] Request webFormSubmit caused an
>>> error with the following message: Error:Error:Error trying to
>>> begin transaction, could not process method: The current
>>> transaction is marked for rollback, not beginning a new
>>> transaction and aborting current operation; the rollbackOnly was
>>> caused by: Error in simple-method [Creates a person, role and
>>> contactMechs [file:/home/ofbiz/trunk/applications/party/script/org/
>>> ofbiz/party/party/
>>> PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error
>>> running the simple-method: Error in simple-method operation [ ]:
>>> java.lang.RuntimeException: Error in simple-method operation [ ]:
>>> java.lang.IllegalArgumentException: locale cannot be null
>>> null calling service createPartyRole in createLead calling service
>>> createLead in createLeadFromWebForm
>>> 2009-01-12 20:28:07,328 (http-0.0.0.0-8080-1)
>>> [ RequestHandler.java:412:INFO ] [RequestHandler.doRequest]:
>>> Response is a URL redirect.
>>> sessionId=BBA68197213FF2F01514F97BB85687A6.jvm1
>>> 2009-01-12 20:28:07,328 (http-0.0.0.0-8080-1)
>>> [ RequestHandler.java:539:INFO ] [Sending redirect]: http://www.globalera.com 
>>> sessionId=BBA68197213FF2F01514F97BB85687A6.jvm1
>>> 2009-01-12 20:28:07,376 (http-0.0.0.0-8080-1)
>>> [ ControlServlet.java:299:INFO ] [[[webFormSubmit] Done rendering
>>> page, Servlet Finished- total:0.64,since last([webFormSubmit]
>>> S...):0.638]]
>>>
>>> ----- Original Message -----
>>> From: "Adrian Crum" <[hidden email]>
>>> To: [hidden email]
>>> Sent: Monday, January 12, 2009 8:31:07 AM (GMT-0700) America/Denver
>>> Subject: Re: locale error in simple method
>>>
>>> Vince,
>>>
>>> We will need a complete log to track this down. To be specific, I
>>> need
>>> to see the entire Java stack trace.
>>>
>>> -Adrian
>>>
>>> Vince M. Clark wrote:
>>>> I created a custom simple method to respond to a request from a
>>>> web form. Getting a locale error and cannot figure out where
>>>> locale is required.
>>>>
>>>> <simple-method method-name="createLeadFromWebForm" short-
>>>> description="Create Lead from Web Form" login-required="false">
>>>> <entity-one entity-name="UserLogin" value-name="userlogin">
>>>> <field-map field-name="userLoginId" value="system"/>
>>>> </entity-one>
>>>> <set-current-user-login value-name="userlogin"/>
>>>> <set field="newLead.firstName" from-field="parameters.firstName"/>
>>>> <set field="newLead.lastName" from-field="parameters.lastName"/>
>>>> <set field="newLead.groupName" from-field="parameters.groupName"/>
>>>> <set field="newLead.emailAddress" from-
>>>> field="parameters.emailAddress"/>
>>>> <set field="newLead.contactNumber" from-
>>>> field="parameters.contactNumber"/>
>>>> <set field="newLead.address1" from-field="parameters.address1"/>
>>>> <set field="newLead.countryGeoId" from-
>>>> field="parameters.countryGeoId"/>
>>>> <set field="newLead.city" from-field="parameters.city"/>
>>>> <set field="newLead.stateProvinceGeoId" from-
>>>> field="parameters.stateProvinceGeoId"/>
>>>> <set field="newLead.postalCode" from-
>>>> field="parameters.postalCode"/>
>>>> <set field="newLead.quickAdd" from-field="parameters.quickAdd"/>
>>>> <call-service service-name="createLead" in-map-name="newLead">
>>>> <result-to-field result-name="partyId" field="partyId"/>
>>>> </call-service>
>>>> </simple-method>
>>>>
>>>> The simple method that I am calling "createLead" calls other
>>>> simple methods. One of them is createPersonRoleAndContactMechs,
>>>> which throws the following exception:
>>>> 2009-01-11 18:43:36,887 (http-0.0.0.0-8080-1)
>>>> [ RequestHandler.java:314:ERROR] Request webFormSubmit caused an
>>>> error with the following message: Error:Error:Error trying to
>>>> begin transaction, could not process method: The current
>>>> transaction is marked for rollback, not beginning a new
>>>> transaction and aborting current operation; the rollbackOnly was
>>>> caused by: Error in simple-method [Creates a person, role and
>>>> contactMechs [file:/home/ofbiz/trunk/applications/party/script/
>>>> org/ofbiz/party/party/
>>>> PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error
>>>> running the simple-method: Error in simple-method operation [ ]:
>>>> java.lang.RuntimeException: Error in simple-method operation [ ]:
>>>> java.lang.IllegalArgumentException: locale cannot be null
>>>> null calling service createPartyRole in createLead calling
>>>> service createLead in createLeadFromWebForm
>>>>
>>>>
>>>>
>>>>
>>

Reply | Threaded
Open this post in threaded view
|

Re: locale error in simple method

David E Jones-3

Is that the trunk rev or in the release4.0 branch?

Either way it's a few months old (looks like 23 Jul 2008)... it would  
take a fair amount of time for someone to go back and try to reproduce  
the error on that revision. Have you considered updating to a newer  
version of OFBiz?

Just as an FYI, I usually recommend that people working from the trunk  
really collaborate with the community, an that usually means needing  
to update at least once per day (or at the _very_ least a couple of  
times per week) until the development part of each cycle is done (ie  
before doing integration or business level testing, if that means  
anything for your process).

There are lots of reasons for this, and what you're running into is  
perhaps the most important: by sticking with that revision you're  
basically going it alone and choosing not to collaborate with the  
community, which makes it hard for others in the community to  
collaborate with you. The same is true for the practice of changing  
things in the OFBiz framework or core parts of different applications  
and not contributing it back to the project. The project suffers a  
little, but the project will do fine as there are LOTS of people  
contributing back. Who really suffers is the end-user organization  
that has to foot the bill of maintaining these things instead of  
sharing that with the community.

Sorry for the preaching, but on the other hand thanks for the soap box  
to stand on for a little sermon.

-David


On Jan 13, 2009, at 4:34 PM, Vince M. Clark wrote:

> Thanks David. Rev is 679168
>
> ----- Original Message -----
> From: "David E Jones" <[hidden email]>
> To: [hidden email]
> Sent: Tuesday, January 13, 2009 5:36:35 PM (GMT-0700) America/Denver
> Subject: Re: locale error in simple method
>
>
> Stepping back even more... which version/revision of OFBiz are you
> using?
>
> Based on what you wrote, with the browser submitting a form to the
> OFBiz web server, as long as it is going through the ControlServlet
> and you are calling the service you described through a request-map ->
> event tag, then it should work the same way as anything else in OFBiz.
>
> Unless something is broken somewhere then OFBiz should be getting a
> locale no matter what, even if it is the system default locale. It
> looks like somehow that isn't making it into the service call (you
> could verify that by adding a log tag in your simple-method to print
> the ${locale} string). That's part of the reason I'm about the
> revision you are using... it could be a real issue that most of us
> aren't seeing if you're not using a recent trunk revision.
>
> Of, if the assumptions in the 2nd paragraph above are not correct (ie
> you are calling things differently) then there could be issues there
> as well.
>
> -David
>
>
> On Jan 13, 2009, at 3:59 PM, Vince M. Clark wrote:
>
>>
>> First a disclaimer (plea for mercy). I am an ERP person, not a web
>> or UI person. So all this http, session, context stuff is rather
>> confusing to me.
>>
>> I've been digging on this issue and want to make sure something is
>> very clear because I think it may have something to do with the
>> problem.
>>
>> OfBiz is NOT rendering any screens for me. I'm using it as kind of a
>> "cheap" web service. I have a static html web form served by Apache
>> web server. The form action calls OfBiz, and then I redirect back to
>> a static html page. So OfBiz just accepts the request, processes it,
>> and redirects. No screen rendering whatsoever by OfBiz.
>>
>> I'm pointing this out because of one of the comments I found in a
>> java class (which of course I cannot find now) that said something
>> about if locale was not in the context then the browser (or maybe
>> session) default would be used.
>>
>> So to simplify (or maybe over simplify) my question, is there
>> something I should be doing in my simple method to put locale in the
>> context before I call createLead. Also, can someone give me a tip on
>> how to iterate through whatever is in the context and write it out
>> to the log so I can see it.
>>
>> ----- Original Message -----
>> From: "Vince M. Clark" <[hidden email]>
>> To: [hidden email]
>> Sent: Tuesday, January 13, 2009 9:17:40 AM (GMT-0700) America/Denver
>> Subject: Re: locale error in simple method
>>
>> Here is the service definition and the simple method. Thank you for
>> your help.
>>
>> <service name="createLeadFromWebForm" engine="simple"
>> location="org/ofbiz/ge/PartyServices.xml"
>> invoke="createLeadFromWebForm" auth="false">
>> <description>Add a New Lead from a Web Form</description>
>> <attribute name="groupName" type="String" mode="IN"  
>> optional="false"/>
>> <attribute name="firstName" type="String" mode="IN"  
>> optional="false"/>
>> <attribute name="lastName" type="String" mode="IN" optional="false"/>
>> <attribute name="note" type="String" mode="IN" optional="true"/>
>> <attribute name="emailAddress" type="String" mode="IN"
>> optional="false"/>
>> <attribute name="postalCode" type="String" mode="IN"  
>> optional="true"/>
>> <attribute name="countryGeoId" type="String" mode="IN"
>> optional="true"/>
>> <attribute name="address1" type="String" mode="IN" optional="true"/>
>> <attribute name="city" type="String" mode="IN" optional="true"/>
>> <attribute name="stateProvinceGeoId" type="String" mode="IN"
>> optional="true"/>
>> <attribute name="contactNumber" type="String" mode="IN"
>> optional="true"/>
>> <attribute name="quickAdd" type="String" mode="IN" optional="true"/>
>> </service>
>>
>> <simple-method method-name="createLeadFromWebForm" short-
>> description="Create Lead from Web Form" login-required="false">
>> <entity-one entity-name="UserLogin" value-name="userlogin">
>> <field-map field-name="userLoginId" value="system"/>
>> </entity-one>
>> <set-current-user-login value-name="userlogin"/>
>> <set field="newLead.firstName" from-field="parameters.firstName"/>
>> <set field="newLead.lastName" from-field="parameters.lastName"/>
>> <set field="newLead.groupName" from-field="parameters.groupName"/>
>> <set field="newLead.emailAddress" from-
>> field="parameters.emailAddress"/>
>> <set field="newLead.contactNumber" from-
>> field="parameters.contactNumber"/>
>> <set field="newLead.address1" from-field="parameters.address1"/>
>> <set field="newLead.countryGeoId" from-
>> field="parameters.countryGeoId"/>
>> <set field="newLead.city" from-field="parameters.city"/>
>> <set field="newLead.stateProvinceGeoId" from-
>> field="parameters.stateProvinceGeoId"/>
>> <set field="newLead.postalCode" from-field="parameters.postalCode"/>
>> <set field="newLead.quickAdd" from-field="parameters.quickAdd"/>
>> <call-service service-name="createLead" in-map-name="newLead">
>> <result-to-field result-name="partyId" field="partyId"/>
>> </call-service>
>> </simple-method>
>>
>> ----- Original Message -----
>> From: "Adrian Crum" <[hidden email]>
>> To: [hidden email]
>> Sent: Tuesday, January 13, 2009 9:22:57 AM (GMT-0700) America/Denver
>> Subject: Re: locale error in simple method
>>
>> If you attach the service definition, I can take a look at it.
>>
>> -Adrian
>>
>> Vince M. Clark wrote:
>>> When is that usually set? When a user logs in? My service just sets
>>> the userLogin to system. Could that be a source of the problem?
>>>
>>> ----- Original Message -----
>>> From: "Adrian Crum" <[hidden email]>
>>> To: [hidden email]
>>> Sent: Tuesday, January 13, 2009 9:05:01 AM (GMT-0700) America/Denver
>>> Subject: Re: locale error in simple method
>>>
>>> Vince,
>>>
>>> I checked to see if something changed in the framework that would
>>> cause
>>> this error, but I didn't find anything. There must be a problem with
>>> the service definition - which is preventing the locale parameter
>>> from
>>> being included in the service context.
>>>
>>> -Adrian
>>>
>>> Vince M. Clark wrote:
>>>> Here is the entire trace. Note that the first few lines are just
>>>> xml validation errors.
>>>>
>>>>
>>>> 2009-01-12 20:28:07,054 (http-0.0.0.0-8080-1) [ UtilXml.java:
>>>> 660:ERROR] XmlFileLoader: File file:/home/ofbiz/trunk/hot-deploy/
>>>> ge/script/org/ofbiz/ge/PartyServices.xml process error. Line: 88.
>>>> Error message: cvc-complex-type.3.2.2: Attribute 'field-name' is
>>>> not allowed to appear in element 'if-empty'.
>>>> 2009-01-12 20:28:07,055 (http-0.0.0.0-8080-1) [ UtilXml.java:
>>>> 660:ERROR] XmlFileLoader: File file:/home/ofbiz/trunk/hot-deploy/
>>>> ge/script/org/ofbiz/ge/PartyServices.xml process error. Line: 88.
>>>> Error message: cvc-complex-type.4: Attribute 'field' must appear
>>>> on element 'if-empty'.
>>>> 2009-01-12 20:28:07,055 (http-0.0.0.0-8080-1) [ UtilXml.java:
>>>> 660:ERROR] XmlFileLoader: File file:/home/ofbiz/trunk/hot-deploy/
>>>> ge/script/org/ofbiz/ge/PartyServices.xml process error. Line: 122.
>>>> Error message: cvc-complex-type.3.2.2: Attribute 'field' is not
>>>> allowed to appear in element 'result-to-field'.
>>>> 2009-01-12 20:28:07,056 (http-0.0.0.0-8080-1) [ UtilXml.java:
>>>> 241:INFO ] XML Read 0.026s: file:/home/ofbiz/trunk/hot-deploy/ge/
>>>> script/org/ofbiz/ge/PartyServices.xml
>>>> 2009-01-12 20:28:07,059 (http-0.0.0.0-8080-1) [ Log.java:
>>>> 94 :INFO ] locale is en_US // here is where I set a locale
>>>> variable and outputted it in the log
>>>>
>>>> 2009-01-12 20:28:07,087 (http-0.0.0.0-8080-1) [ UtilXml.java:
>>>> 241:INFO ] XML Read 0.027s: file:/home/ofbiz/trunk/applications/
>>>> marketing/script/org/ofbiz/sfa/lead/LeadServices.xml
>>>> 2009-01-12 20:28:07,125 (http-0.0.0.0-8080-1) [ UtilXml.java:
>>>> 241:INFO ] XML Read 0.028s: file:/home/ofbiz/trunk/applications/
>>>> party/script/org/ofbiz/party/party/PartySimpleMethods.xml
>>>> 2009-01-12 20:28:07,129 (http-0.0.0.0-8080-1) [ SimpleMethod.java:
>>>> 1109:ERROR] ---- runtime exception report
>>>> -------------------------------------------------- Error in simple-
>>>> method operation [ ]: java.lang.IllegalArgumentException: locale
>>>> cannot be null Exception: java.lang.IllegalArgumentException
>>>> Message: locale cannot be null ---- stack trace
>>>> ---------------------------------------------------------------
>>>> java.lang.IllegalArgumentException: locale cannot be null
>>>> org
>>>> .ofbiz
>>>> .base.util.UtilProperties.getResourceBundle(UtilProperties.java:
>>>> 480)
>>>> org.ofbiz.base.util.UtilProperties.getMessage(UtilProperties.java:
>>>> 385)
>>>> org
>>>> .ofbiz
>>>> .minilang
>>>> .operation.SimpleMapOperation.addMessage(SimpleMapOperation.java:
>>>> 62)
>>>> org
>>>> .ofbiz.minilang.operation.ValidateMethod.exec(ValidateMethod.java:
>>>> 100)
>>>> org
>>>> .ofbiz
>>>> .minilang.operation.SimpleMapProcess.exec(SimpleMapProcess.java:
>>>> 51)
>>>> org.ofbiz.minilang.operation.MapProcessor.exec(MapProcessor.java:
>>>> 80) org.ofbiz.minilang.method.callops.CallSimpleMapProcessor.ex
>> e
>>> c(CallSimpleMapProcessor.java:91)
>>> org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104)
>>> org.ofbiz.minilang.method.ifops.IfNotEmpty.exec(IfNotEmpty.java:91)
>>> org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104)
>>> org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:744)
>>> org
>>> .ofbiz
>>> .minilang
>>> .method.callops.CallSimpleMethod.exec(CallSimpleMethod.java:75)
>>> org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104)
>>> org.ofbiz.minilang.method.ifops.IfCompare.exec(IfCompare.java:123)
>>> org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104)
>>> org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:744)
>>> org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:
>>> 134)
>>> org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:
>>> 116)
>>> org
>>> .ofbiz
>>> .minilang
>>> .SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76)
>>> org
>>> .ofbiz
>>> .minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51)
>>> org.ofbiz.service.ServiceDispatcher.runSync(Servic
>> eDi
>>>
>>> spatcher.java:384)
>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>>> 213)
>>> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:
>>> 163)
>>> org.ofbiz.minilang.method.callops.CallService.exec(CallService.java:
>>> 246) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:
>>> 1104) org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:744)
>>> org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:
>>> 134)
>>> org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:
>>> 116)
>>> org
>>> .ofbiz
>>> .minilang
>>> .SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76)
>>> org
>>> .ofbiz
>>> .minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51)
>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>>> 384)
>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>>> 213)
>>> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:
>>> 149)
>>> org
>>> .ofbiz
>>> .webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:
>>> 334) org.ofbiz.webapp.control.Re
>> que
>>>
>>> stHandler.runEvent(RequestHandler.java:454)
>>> org
>>> .ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:
>>> 281)
>>> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:
>>> 198) javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>>> org
>>> .apache
>>> .catalina
>>> .core
>>> .ApplicationFilterChain
>>> .internalDoFilter(ApplicationFilterChain.java:290)
>>> org
>>> .apache
>>> .catalina
>>> .core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
>>> 206)
>>> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:
>>> 255)
>>> org
>>> .apache
>>> .catalina
>>> .core
>>> .ApplicationFilterChain
>>> .internalDoFilter(ApplicationFilterChain.java:235)
>>> org
>>> .apache
>>> .catalina
>>> .core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
>>> 206)
>>> org
>>> .apache
>>> .catalina
>>> .core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>>> org
>>> .apache
>>> .catalina
>>> .core.StandardContextValve.invoke(StandardContextValve.java:175)
>>> org.apache.catalina.core.StandardHostValve.invoke(StandardH
>> ost
>>>
>>> Valve.java:128)
>>> org
>>> .apache
>>> .catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>>> org
>>> .apache
>>> .catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:
>>> 109)
>>> org
>>> .apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:
>>> 568)
>>> org
>>> .apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:
>>> 286) org.apa
>>> che.coyote.http11.Http11Processor.process(Http11Processor.java:844)
>>> org.apache.coyote.http11.Http11Protocol
>>> $Http11ConnectionHandler.process(Http11Protocol.java:583)
>>> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:
>>> 447) java.lang.Thread.run(Thread.java:595)
>>> --------------------------------------------------------------------------------
>>>> 2009-01-12 20:28:07,130 (http-0.0.0.0-8080-1) [ SimpleMethod.java:
>>>> 1109:ERROR] ---- runtime exception report
>>>> -------------------------------------------------- Error in simple-
>>>> method operation [ ]: java.lang.RuntimeException: Error in simple-
>>>> method operation [ ]: java.lang.IllegalArgumentException: locale
>>>> cannot be null Exception: java.lang.RuntimeException Message:
>>>> Error in simple-method operation [ ]:
>>>> java.lang.IllegalArgumentException: locale cannot be null ----
>>>> stack trace
>>>> ---------------------------------------------------------------
>>>> java.lang.RuntimeException: Error in simple-method operation [ ]:
>>>> java.lang.IllegalArgumentException: locale cannot be null
>>>> org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1110)
>>>> org.ofbiz.minilang.method.ifops.IfNotEmpty.exec(IfNotEmpty.java:
>>>> 91) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:
>>>> 1104) org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:744)
>>>> org.ofbiz.minilang.method.callops.CallSimpleMethod.exec(C
>> a
>>> llSimpleMethod.java:75)
>>> org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104)
>>> org.ofbiz.minilang.method.ifops.IfCompare.exec(IfCompare.java:123)
>>> org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104)
>>> org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:744)
>>> org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:
>>> 134)
>>> org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:
>>> 116)
>>> org
>>> .ofbiz
>>> .minilang
>>> .SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76)
>>> org
>>> .ofbiz
>>> .minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51)
>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>>> 384)
>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>>> 213)
>>> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:
>>> 163)
>>> org.ofbiz.minilang.method.callops.CallService.exec(CallService.java:
>>> 246) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:
>>> 1104) org.ofbiz.minilang.SimpleMethod.exec(SimpleMeth
>> od.
>>>
>>> java:744)
>>> org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:
>>> 134)
>>> org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:
>>> 116)
>>> org
>>> .ofbiz
>>> .minilang
>>> .SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76)
>>> org
>>> .ofbiz
>>> .minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51)
>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>>> 384)
>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>>> 213)
>>> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:
>>> 149)
>>> org
>>> .ofbiz
>>> .webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:
>>> 334)
>>> org
>>> .ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:
>>> 454)
>>> org
>>> .ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:
>>> 281)
>>> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:
>>> 198) javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>>> org.apache.catalina.core.ApplicationF
>> ilt
>>>
>>> erChain.internalDoFilter(ApplicationFilterChain.java:290)
>>> org
>>> .apache
>>> .catalina
>>> .core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
>>> 206)
>>> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:
>>> 255)
>>> org
>>> .apache
>>> .catalina
>>> .core
>>> .ApplicationFilterChain
>>> .internalDoFilter(ApplicationFilterChain.java:235)
>>> org
>>> .apache
>>> .catalina
>>> .core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
>>> 206)
>>> org
>>> .apache
>>> .catalina
>>> .core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>>> org
>>> .apache
>>> .catalina
>>> .core.StandardContextValve.invoke(StandardContextValve.java:175)
>>> org
>>> .apache
>>> .catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
>>> org
>>> .apache
>>> .catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>>> org
>>> .apache
>>> .catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:
>>> 109)
>>> org
>>> .apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:
>>> 568)
>>> org
>>> .apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:
>>> 286) org.apache.coyote.http1
>> 1.H
>>>
>>> ttp11Processor.process(Http11Processor.java:844)
>>> org.apache.coyote.http11.Http11Protocol
>>> $Http11ConnectionHandler.process(Http11Protocol.java:583)
>>> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:
>>> 447) java.lang.Thread.run(Thread.java:595)
>>> --------------------------------------------------------------------------------
>>>> 2009-01-12 20:28:07,130 (http-0.0.0.0-8080-1) [ SimpleMethod.java:
>>>> 748:ERROR] Error running the simple-method: Error in simple-method
>>>> operation [ ]: java.lang.RuntimeException: Error in simple-method
>>>> operation [ ]: java.lang.IllegalArgumentException: locale cannot
>>>> be null
>>>> 2009-01-12 20:28:07,131 (http-0.0.0.0-8080-1)
>>>> [ TransactionUtil.java:311:WARN ] ---- exception report
>>>> ----------------------------------------------------------
>>>> [TransactionUtil.setRollbackOnly] Calling transaction
>>>> setRollbackOnly; this stack trace shows where this is happening:
>>>> Exception: java.lang.Exception Message: Error in simple-method
>>>> [Creates a person, role and contactMechs [file:/home/ofbiz/trunk/
>>>> applications/party/script/org/ofbiz/party/party/
>>>> PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error
>>>> running the simple-method: Error in simple-method operation [ ]:
>>>> java.lang.RuntimeException: Error in simple-method operation [ ]:
>>>> java.lang.IllegalArgumentException: locale cannot be null
>>>> null ---- stack trace
>>>> ---------------------------------------------------------------
>>>> java.lang.Exception: Error in simple-method [Creates a person,
>>>> role and contactMechs [file:/home/ofbiz/trunk/applications/party/
>>>> script/org/ofbiz/party/party/
>>>> PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error
>>>> running the simple-method: Error in simple-method operation [ ]:
>>>> java.lang.RuntimeException: Error in simple-method operation [ ]:
>>>> java.lang.IllegalArgumentException: locale cannot be null
>>>> null
>>>> org
>>>> .ofbiz
>>>> .entity
>>>> .transaction.TransactionUtil.setRollbackOnly(TransactionUtil.java:
>>>> 311)
>>>> org
>>>> .ofbiz
>>>> .entity.transaction.TransactionUtil.rollback(TransactionUtil.java:
>>>> 258) org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:875)
>>>> org
>>>> .ofbiz
>>>> .minilang
>>>> .method.callops.CallSimpleMethod.exec(CallSimpleMethod.java:75)
>>>> org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104)
>>>> org.ofbiz.minilang.method.ifops.IfCompare.exec(IfCompare.java:123)
>>>> org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104)
>>>> org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:744)
>>>> org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:
>>>> 134)
>>>> org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:
>>>> 116)
>>>> org
>>>> .ofbiz
>>>> .minilang
>>>> .SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76)
>>>> org
>>>> .ofbiz
>>>> .minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51)
>>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>>>> 384) org.ofbiz.service.ServiceDispatcher.run
>> S
>>> ync(ServiceDispatcher.java:213)
>>> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:
>>> 163)
>>> org.ofbiz.minilang.method.callops.CallService.exec(CallService.java:
>>> 246) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:
>>> 1104) org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:744)
>>> org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:
>>> 134)
>>> org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:
>>> 116)
>>> org
>>> .ofbiz
>>> .minilang
>>> .SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76)
>>> org
>>> .ofbiz
>>> .minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51)
>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>>> 384)
>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>>> 213)
>>> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:
>>> 149)
>>> org
>>> .ofbiz
>>> .webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:
>>> 334)
>>> org
>>> .ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:
>>> 454) org.ofbiz.we
>> bap
>>>
>>> p.control.RequestHandler.doRequest(RequestHandler.java:281)
>>> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:
>>> 198) javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>>> org
>>> .apache
>>> .catalina
>>> .core
>>> .ApplicationFilterChain
>>> .internalDoFilter(ApplicationFilterChain.java:290)
>>> org
>>> .apache
>>> .catalina
>>> .core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
>>> 206)
>>> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:
>>> 255)
>>> org
>>> .apache
>>> .catalina
>>> .core
>>> .ApplicationFilterChain
>>> .internalDoFilter(ApplicationFilterChain.java:235)
>>> org
>>> .apache
>>> .catalina
>>> .core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
>>> 206)
>>> org
>>> .apache
>>> .catalina
>>> .core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>>> org
>>> .apache
>>> .catalina
>>> .core.StandardContextValve.invoke(StandardContextValve.java:175)
>>> org
>>> .apache
>>> .catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
>>> org.apache.catalina.valves.ErrorReportVa
>> lve
>>>
>>> .invoke(ErrorReportValve.java:102)
>>> org
>>> .apache
>>> .catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:
>>> 109)
>>> org
>>> .apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:
>>> 568)
>>> org
>>> .apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:
>>> 286)
>>> org
>>> .apache.coyote.http11.Http11Processor.process(Http11Processor.java:
>>> 844) org.apache.coyote.http11.Http11Protocol
>>> $Http11ConnectionHandler.process(Http11Protocol.java:583)
>>> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:
>>> 447) java.lang.Thread.run(Thread.java:595)
>>> --------------------------------------------------------------------------------
>>>> 2009-01-12 20:28:07,153 (http-0.0.0.0-8080-1) [ UtilXml.java:
>>>> 241:INFO ] XML Read 0.021s: file:/home/ofbiz/trunk/applications/
>>>> party/script/org/ofbiz/party/party/PartyPermissionServices.xml
>>>> 2009-01-12 20:28:07,196 (http-0.0.0.0-8080-1) [ UtilXml.java:
>>>> 241:INFO ] XML Read 0.028s: file:/home/ofbiz/trunk/framework/
>>>> common/script/org/ofbiz/common/permission/
>>>> CommonPermissionServices.xml
>>>> 2009-01-12 20:28:07,197 (http-0.0.0.0-8080-1) [ Log.java:
>>>> 94 :INFO ] Checking for primary permission PARTYMGR_CREATE
>>>> 2009-01-12 20:28:07,198 (http-0.0.0.0-8080-1) [ Log.java:
>>>> 94 :INFO ] Checking for alternate permission PARTYMGR_ROLE_CREATE
>>>> 2009-01-12 20:28:07,200 (http-0.0.0.0-8080-1)
>>>> [ ServiceDispatcher.java:578:INFO ] Sync service [ecommerce/
>>>> partyRolePermissionCheck] finished in [68] milliseconds
>>>> 2009-01-12 20:28:07,242 (http-0.0.0.0-8080-1) [ UtilXml.java:
>>>> 241:INFO ] XML Read 0.041s: file:/home/ofbiz/trunk/applications/
>>>> party/script/org/ofbiz/party/party/PartyServices.xml
>>>> 2009-01-12 20:28:07,249 (http-0.0.0.0-8080-1)
>>>> [ TransactionUtil.java:91 :WARN ] ---- exception report
>>>> ----------------------------------------------------------
>>>> [TransactionUtil.begin] active transaction marked for rollback in
>>>> place, so no transaction begun; this stack trace shows when the
>>>> exception began: Exception: java.lang.Exception Message: Tx Stack
>>>> Placeholder ---- stack trace
>>>> ---------------------------------------------------------------
>>>> java.lang.Exception: Tx Stack Placeholder
>>>> org
>>>> .ofbiz
>>>> .entity
>>>> .transaction
>>>> .TransactionUtil.setTransactionBeginStack(TransactionUtil.java:
>>>> 636)
>>>> org
>>>> .ofbiz
>>>> .entity.transaction.TransactionUtil.begin(TransactionUtil.java:
>>>> 125)
>>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>>>> 302)
>>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>>>> 213)
>>>> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:
>>>> 149)
>>>> org
>>>> .ofbiz
>>>> .webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:
>>>> 334) org.ofbiz.webapp.control.
>> R
>>> equestHandler.runEvent(RequestHandler.java:454)
>>> org
>>> .ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:
>>> 281)
>>> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:
>>> 198) javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>>> org
>>> .apache
>>> .catalina
>>> .core
>>> .ApplicationFilterChain
>>> .internalDoFilter(ApplicationFilterChain.java:290)
>>> org
>>> .apache
>>> .catalina
>>> .core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
>>> 206)
>>> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:
>>> 255)
>>> org
>>> .apache
>>> .catalina
>>> .core
>>> .ApplicationFilterChain
>>> .internalDoFilter(ApplicationFilterChain.java:235)
>>> org
>>> .apache
>>> .catalina
>>> .core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
>>> 206)
>>> org
>>> .apache
>>> .catalina
>>> .core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>>> org
>>> .apache
>>> .catalina
>>> .core.StandardContextValve.invoke(StandardContextValve.java:175)
>>> org.apache.catalina.core.StandardHostValve.invoke(Stand
>> ard
>>>
>>> HostValve.java:128)
>>> org
>>> .apache
>>> .catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>>> org
>>> .apache
>>> .catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:
>>> 109)
>>> org
>>> .apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:
>>> 568)
>>> org
>>> .apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:
>>> 286)
>>> org
>>> .apache.coyote.http11.Http11Processor.process(Http11Processor.java:
>>> 844) org.apache.coyote.http11.Http11Protocol
>>> $Http11ConnectionHandler.process(Http11Protocol.java:583)
>>> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:
>>> 447) java.lang.Thread.run(Thread.java:595)
>>> --------------------------------------------------------------------------------
>>>> 2009-01-12 20:28:07,250 (http-0.0.0.0-8080-1) [ SimpleMethod.java:
>>>> 726:WARN ] Error trying to begin transaction, could not process
>>>> method: The current transaction is marked for rollback, not
>>>> beginning a new transaction and aborting current operation; the
>>>> rollbackOnly was caused by: Error in simple-method [Creates a
>>>> person, role and contactMechs [file:/home/ofbiz/trunk/applications/
>>>> party/script/org/ofbiz/party/party/
>>>> PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error
>>>> running the simple-method: Error in simple-method operation [ ]:
>>>> java.lang.RuntimeException: Error in simple-method operation [ ]:
>>>> java.lang.IllegalArgumentException: locale cannot be null
>>>> null
>>>> 2009-01-12 20:28:07,251 (http-0.0.0.0-8080-1) [ SimpleMethod.java:
>>>> 727:WARN ] ---- exception report
>>>> ----------------------------------------------------------
>>>> Exception:
>>>> org.ofbiz.entity.transaction.GenericTransactionException Message:
>>>> The current transaction is marked for rollback, not beginning a
>>>> new transaction and aborting current operation; the rollbackOnly
>>>> was caused by: Error in simple-method [Creates a person, role and
>>>> contactMechs [file:/home/ofbiz/trunk/applications/party/script/org/
>>>> ofbiz/party/party/
>>>> PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error
>>>> running the simple-method: Error in simple-method operation [ ]:
>>>> java.lang.RuntimeException: Error in simple-method operation [ ]:
>>>> java.lang.IllegalArgumentException: locale cannot be null
>>>> null ---- stack trace
>>>> ---------------------------------------------------------------
>>>> org.ofbiz.entity.transaction.GenericTransactionException: The
>>>> current transaction is marked for rollback, not beginning a new
>>>> transaction and aborting current operation; the rollbackOnly was
>>>> caused by: Error in simple-method [Creates a person, role and
>>>> contactMechs [file:/home/ofbiz/trunk/applications/party/script/org/
>>>> ofbiz/party/party/
>>>> PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error
>>>> running the simple-method: Error in simple-method operation [ ]:
>>>> java.lang.RuntimeException: Error in simple-method operation [ ]:
>>>> java.lang.IllegalArgumentException: locale cannot be null
>>>> null
>>>> org
>>>> .ofbiz
>>>> .entity.transaction.TransactionUtil.begin(TransactionUtil.java:99)
>>>> org
>>>> .ofbiz
>>>> .entity.transaction.TransactionUtil.begin(TransactionUtil.java:71)
>>>> org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:723)
>>>> org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:
>>>> 134)
>>>> org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:
>>>> 116)
>>>> org
>>>> .ofbiz
>>>> .minilang
>>>> .SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76)
>>>> org
>>>> .ofbiz
>>>> .minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51)
>>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>>>> 384)
>>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>>>> 213)
>>>> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:
>>>> 163)
>>>> org
>>>> .ofbiz.minilang.method.callops.CallService.exec(CallService.java:
>>>> 246) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:
>>>> 1104)
>>>> org.ofbiz.minilang.method.ifops.IfNotEmpty.exec(IfNotEmpty.java:
>>>> 91) org.ofbiz.minilang.SimpleMethod.runSubOps(Si
>> m
>>> pleMethod.java:1104)
>>> org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:744)
>>> org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:
>>> 134)
>>> org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:
>>> 116)
>>> org
>>> .ofbiz
>>> .minilang
>>> .SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76)
>>> org
>>> .ofbiz
>>> .minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51)
>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>>> 384)
>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>>> 213)
>>> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:
>>> 163)
>>> org.ofbiz.minilang.method.callops.CallService.exec(CallService.java:
>>> 246) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:
>>> 1104) org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:744)
>>> org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:
>>> 134)
>>> org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:
>>> 116) org.ofbiz.minilang.SimpleServiceEngine.service
>> Inv
>>>
>>> oker(SimpleServiceEngine.java:76)
>>> org
>>> .ofbiz
>>> .minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51)
>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>>> 384)
>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>>> 213)
>>> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:
>>> 149)
>>> org
>>> .ofbiz
>>> .webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:
>>> 334)
>>> org
>>> .ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:
>>> 454)
>>> org
>>> .ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:
>>> 281)
>>> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:
>>> 198) javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>>> org
>>> .apache
>>> .catalina
>>> .core
>>> .ApplicationFilterChain
>>> .internalDoFilter(ApplicationFilterChain.java:290)
>>> org
>>> .apache
>>> .catalina
>>> .core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
>>> 206) org.ofbiz.webapp.control.ContextFilter.doFilter(Con
>> tex
>>>
>>> tFilter.java:255)
>>> org
>>> .apache
>>> .catalina
>>> .core
>>> .ApplicationFilterChain
>>> .internalDoFilter(ApplicationFilterChain.java:235)
>>> org
>>> .apache
>>> .catalina
>>> .core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
>>> 206)
>>> org
>>> .apache
>>> .catalina
>>> .core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>>> org
>>> .apache
>>> .catalina
>>> .core.StandardContextValve.invoke(StandardContextValve.java:175)
>>> org
>>> .apache
>>> .catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
>>> org
>>> .apache
>>> .catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>>> org
>>> .apache
>>> .catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:
>>> 109)
>>> org
>>> .apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:
>>> 568)
>>> org
>>> .apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:
>>> 286)
>>> org
>>> .apache.coyote.http11.Http11Processor.process(Http11Processor.java:
>>> 844) org.apache.coyote.http11.Http11Protocol
>>> $Http11ConnectionHandler.process(Http11Protocol.java:583)
>>> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIo
>> End
>>>
>>> point.java:447) java.lang.Thread.run(Thread.java:595)
>>> --------------------------------------------------------------------------------
>>>> 2009-01-12 20:28:07,251 (http-0.0.0.0-8080-1)
>>>> [ ServiceDispatcher.java:522:ERROR] Error in Service
>>>> [createPartyRole]: Error trying to begin transaction, could not
>>>> process method: The current transaction is marked for rollback,
>>>> not beginning a new transaction and aborting current operation;
>>>> the rollbackOnly was caused by: Error in simple-method [Creates a
>>>> person, role and contactMechs [file:/home/ofbiz/trunk/applications/
>>>> party/script/org/ofbiz/party/party/
>>>> PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error
>>>> running the simple-method: Error in simple-method operation [ ]:
>>>> java.lang.RuntimeException: Error in simple-method operation [ ]:
>>>> java.lang.IllegalArgumentException: locale cannot be null
>>>> null
>>>> 2009-01-12 20:28:07,252 (http-0.0.0.0-8080-1)
>>>> [ TransactionUtil.java:315:INFO ]
>>>> [TransactionUtil.setRollbackOnly] transaction rollback only not
>>>> set, rollback only is already set.
>>>> 2009-01-12 20:28:07,252 (http-0.0.0.0-8080-1)
>>>> [ ServiceDispatcher.java:578:INFO ] Sync service [ecommerce/
>>>> createPartyRole] finished in [121] milliseconds
>>>> 2009-01-12 20:28:07,252 (http-0.0.0.0-8080-1)
>>>> [ TransactionUtil.java:315:INFO ]
>>>> [TransactionUtil.setRollbackOnly] transaction rollback only not
>>>> set, rollback only is already set.
>>>> 2009-01-12 20:28:07,253 (http-0.0.0.0-8080-1)
>>>> [ ServiceDispatcher.java:522:ERROR] Error in Service [createLead]:
>>>> Error:Error trying to begin transaction, could not process method:
>>>> The current transaction is marked for rollback, not beginning a
>>>> new transaction and aborting current operation; the rollbackOnly
>>>> was caused by: Error in simple-method [Creates a person, role and
>>>> contactMechs [file:/home/ofbiz/trunk/applications/party/script/org/
>>>> ofbiz/party/party/
>>>> PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error
>>>> running the simple-method: Error in simple-method operation [ ]:
>>>> java.lang.RuntimeException: Error in simple-method operation [ ]:
>>>> java.lang.IllegalArgumentException: locale cannot be null
>>>> null calling service createPartyRole in createLead
>>>> 2009-01-12 20:28:07,253 (http-0.0.0.0-8080-1)
>>>> [ TransactionUtil.java:315:INFO ]
>>>> [TransactionUtil.setRollbackOnly] transaction rollback only not
>>>> set, rollback only is already set.
>>>> 2009-01-12 20:28:07,253 (http-0.0.0.0-8080-1)
>>>> [ ServiceDispatcher.java:578:INFO ] Sync service [ecommerce/
>>>> createLead] finished in [194] milliseconds
>>>> 2009-01-12 20:28:07,254 (http-0.0.0.0-8080-1)
>>>> [ TransactionUtil.java:315:INFO ]
>>>> [TransactionUtil.setRollbackOnly] transaction rollback only not
>>>> set, rollback only is already set.
>>>> 2009-01-12 20:28:07,254 (http-0.0.0.0-8080-1)
>>>> [ ServiceDispatcher.java:522:ERROR] Error in Service
>>>> [createLeadFromWebForm]: Error:Error:Error trying to begin
>>>> transaction, could not process method: The current transaction is
>>>> marked for rollback, not beginning a new transaction and aborting
>>>> current operation; the rollbackOnly was caused by: Error in simple-
>>>> method [Creates a person, role and contactMechs [file:/home/ofbiz/
>>>> trunk/applications/party/script/org/ofbiz/party/party/
>>>> PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error
>>>> running the simple-method: Error in simple-method operation [ ]:
>>>> java.lang.RuntimeException: Error in simple-method operation [ ]:
>>>> java.lang.IllegalArgumentException: locale cannot be null
>>>> null calling service createPartyRole in createLead calling service
>>>> createLead in createLeadFromWebForm
>>>> 2009-01-12 20:28:07,255 (http-0.0.0.0-8080-1)
>>>> [ TransactionUtil.java:275:ERROR] ---- exception report
>>>> ----------------------------------------------------------
>>>> [TransactionUtil.rollback] Exception: java.lang.Exception Message:
>>>> Stack Trace ---- stack trace
>>>> ---------------------------------------------------------------
>>>> java.lang.Exception: Stack Trace
>>>> org
>>>> .ofbiz
>>>> .entity.transaction.TransactionUtil.rollback(TransactionUtil.java:
>>>> 274)
>>>> org
>>>> .ofbiz
>>>> .entity.transaction.TransactionUtil.rollback(TransactionUtil.java:
>>>> 256)
>>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>>>> 526)
>>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>>>> 213)
>>>> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:
>>>> 149)
>>>> org
>>>> .ofbiz
>>>> .webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:
>>>> 334)
>>>> org
>>>> .ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:
>>>> 454)
>>>> org
>>>> .ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:
>>>> 281) org.ofbiz.webapp.control.Co
>> n
>>> trolServlet.doGet(ControlServlet.java:198)
>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>>> org
>>> .apache
>>> .catalina
>>> .core
>>> .ApplicationFilterChain
>>> .internalDoFilter(ApplicationFilterChain.java:290)
>>> org
>>> .apache
>>> .catalina
>>> .core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
>>> 206)
>>> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:
>>> 255)
>>> org
>>> .apache
>>> .catalina
>>> .core
>>> .ApplicationFilterChain
>>> .internalDoFilter(ApplicationFilterChain.java:235)
>>> org
>>> .apache
>>> .catalina
>>> .core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
>>> 206)
>>> org
>>> .apache
>>> .catalina
>>> .core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>>> org
>>> .apache
>>> .catalina
>>> .core.StandardContextValve.invoke(StandardContextValve.java:175)
>>> org
>>> .apache
>>> .catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
>>> org
>>> .apache
>>> .catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>>> org.apache.catalina.core.StandardEngineValve.invok
>> e(S
>>>
>>> tandardEngineValve.java:109)
>>> org
>>> .apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:
>>> 568)
>>> org
>>> .apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:
>>> 286)
>>> org
>>> .apache.coyote.http11.Http11Processor.process(Http11Processor.java:
>>> 844) org.apache.coyote.http11.Http11Protocol
>>> $Http11ConnectionHandler.process(Http11Protocol.java:583)
>>> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:
>>> 447) java.lang.Thread.run(Thread.java:595)
>>> --------------------------------------------------------------------------------
>>>> 2009-01-12 20:28:07,255 (http-0.0.0.0-8080-1)
>>>> [ TransactionUtil.java:285:INFO ] [TransactionUtil.rollback]
>>>> transaction rolled back
>>>> 2009-01-12 20:28:07,255 (http-0.0.0.0-8080-1)
>>>> [ ServiceDispatcher.java:578:INFO ] Sync service [ecommerce/
>>>> createLeadFromWebForm] finished in [236] milliseconds
>>>> 2009-01-12 20:28:07,327 (http-0.0.0.0-8080-1)
>>>> [ RequestHandler.java:314:ERROR] Request webFormSubmit caused an
>>>> error with the following message: Error:Error:Error trying to
>>>> begin transaction, could not process method: The current
>>>> transaction is marked for rollback, not beginning a new
>>>> transaction and aborting current operation; the rollbackOnly was
>>>> caused by: Error in simple-method [Creates a person, role and
>>>> contactMechs [file:/home/ofbiz/trunk/applications/party/script/org/
>>>> ofbiz/party/party/
>>>> PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error
>>>> running the simple-method: Error in simple-method operation [ ]:
>>>> java.lang.RuntimeException: Error in simple-method operation [ ]:
>>>> java.lang.IllegalArgumentException: locale cannot be null
>>>> null calling service createPartyRole in createLead calling service
>>>> createLead in createLeadFromWebForm
>>>> 2009-01-12 20:28:07,328 (http-0.0.0.0-8080-1)
>>>> [ RequestHandler.java:412:INFO ] [RequestHandler.doRequest]:
>>>> Response is a URL redirect.
>>>> sessionId=BBA68197213FF2F01514F97BB85687A6.jvm1
>>>> 2009-01-12 20:28:07,328 (http-0.0.0.0-8080-1)
>>>> [ RequestHandler.java:539:INFO ] [Sending redirect]: http://www.globalera.com
>>>> sessionId=BBA68197213FF2F01514F97BB85687A6.jvm1
>>>> 2009-01-12 20:28:07,376 (http-0.0.0.0-8080-1)
>>>> [ ControlServlet.java:299:INFO ] [[[webFormSubmit] Done rendering
>>>> page, Servlet Finished- total:0.64,since last([webFormSubmit]
>>>> S...):0.638]]
>>>>
>>>> ----- Original Message -----
>>>> From: "Adrian Crum" <[hidden email]>
>>>> To: [hidden email]
>>>> Sent: Monday, January 12, 2009 8:31:07 AM (GMT-0700) America/Denver
>>>> Subject: Re: locale error in simple method
>>>>
>>>> Vince,
>>>>
>>>> We will need a complete log to track this down. To be specific, I
>>>> need
>>>> to see the entire Java stack trace.
>>>>
>>>> -Adrian
>>>>
>>>> Vince M. Clark wrote:
>>>>> I created a custom simple method to respond to a request from a
>>>>> web form. Getting a locale error and cannot figure out where
>>>>> locale is required.
>>>>>
>>>>> <simple-method method-name="createLeadFromWebForm" short-
>>>>> description="Create Lead from Web Form" login-required="false">
>>>>> <entity-one entity-name="UserLogin" value-name="userlogin">
>>>>> <field-map field-name="userLoginId" value="system"/>
>>>>> </entity-one>
>>>>> <set-current-user-login value-name="userlogin"/>
>>>>> <set field="newLead.firstName" from-field="parameters.firstName"/>
>>>>> <set field="newLead.lastName" from-field="parameters.lastName"/>
>>>>> <set field="newLead.groupName" from-field="parameters.groupName"/>
>>>>> <set field="newLead.emailAddress" from-
>>>>> field="parameters.emailAddress"/>
>>>>> <set field="newLead.contactNumber" from-
>>>>> field="parameters.contactNumber"/>
>>>>> <set field="newLead.address1" from-field="parameters.address1"/>
>>>>> <set field="newLead.countryGeoId" from-
>>>>> field="parameters.countryGeoId"/>
>>>>> <set field="newLead.city" from-field="parameters.city"/>
>>>>> <set field="newLead.stateProvinceGeoId" from-
>>>>> field="parameters.stateProvinceGeoId"/>
>>>>> <set field="newLead.postalCode" from-
>>>>> field="parameters.postalCode"/>
>>>>> <set field="newLead.quickAdd" from-field="parameters.quickAdd"/>
>>>>> <call-service service-name="createLead" in-map-name="newLead">
>>>>> <result-to-field result-name="partyId" field="partyId"/>
>>>>> </call-service>
>>>>> </simple-method>
>>>>>
>>>>> The simple method that I am calling "createLead" calls other
>>>>> simple methods. One of them is createPersonRoleAndContactMechs,
>>>>> which throws the following exception:
>>>>> 2009-01-11 18:43:36,887 (http-0.0.0.0-8080-1)
>>>>> [ RequestHandler.java:314:ERROR] Request webFormSubmit caused an
>>>>> error with the following message: Error:Error:Error trying to
>>>>> begin transaction, could not process method: The current
>>>>> transaction is marked for rollback, not beginning a new
>>>>> transaction and aborting current operation; the rollbackOnly was
>>>>> caused by: Error in simple-method [Creates a person, role and
>>>>> contactMechs [file:/home/ofbiz/trunk/applications/party/script/
>>>>> org/ofbiz/party/party/
>>>>> PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error
>>>>> running the simple-method: Error in simple-method operation [ ]:
>>>>> java.lang.RuntimeException: Error in simple-method operation [ ]:
>>>>> java.lang.IllegalArgumentException: locale cannot be null
>>>>> null calling service createPartyRole in createLead calling
>>>>> service createLead in createLeadFromWebForm
>>>>>
>>>>>
>>>>>
>>>>>
>>>
>

Reply | Threaded
Open this post in threaded view
|

Re: locale error in simple method

Vince Clark
I don't waste my time with 4.0.

Preaching doesn't bother me. I'm used to it and have done a bit myself.

But to be clear, I'm very collaborative, and am not holding anything back from the community. This particular instance I have not upgraded because it is production (sort of) and I have had difficulty upgrading other instances recently because of some seed data issues, and possibly other reasons. Basically related to some of the new stuff like visual themes.

I will try my custom service against a current download of trunk to verify that it isn't just a version issue.

----- Original Message -----
From: "David E Jones" <[hidden email]>
To: [hidden email]
Sent: Tuesday, January 13, 2009 6:06:06 PM (GMT-0700) America/Denver
Subject: Re: locale error in simple method


Is that the trunk rev or in the release4.0 branch?

Either way it's a few months old (looks like 23 Jul 2008)... it would
take a fair amount of time for someone to go back and try to reproduce
the error on that revision. Have you considered updating to a newer
version of OFBiz?

Just as an FYI, I usually recommend that people working from the trunk
really collaborate with the community, an that usually means needing
to update at least once per day (or at the _very_ least a couple of
times per week) until the development part of each cycle is done (ie
before doing integration or business level testing, if that means
anything for your process).

There are lots of reasons for this, and what you're running into is
perhaps the most important: by sticking with that revision you're
basically going it alone and choosing not to collaborate with the
community, which makes it hard for others in the community to
collaborate with you. The same is true for the practice of changing
things in the OFBiz framework or core parts of different applications
and not contributing it back to the project. The project suffers a
little, but the project will do fine as there are LOTS of people
contributing back. Who really suffers is the end-user organization
that has to foot the bill of maintaining these things instead of
sharing that with the community.

Sorry for the preaching, but on the other hand thanks for the soap box
to stand on for a little sermon.

-David


On Jan 13, 2009, at 4:34 PM, Vince M. Clark wrote:

> Thanks David. Rev is 679168
>
> ----- Original Message -----
> From: "David E Jones" <[hidden email]>
> To: [hidden email]
> Sent: Tuesday, January 13, 2009 5:36:35 PM (GMT-0700) America/Denver
> Subject: Re: locale error in simple method
>
>
> Stepping back even more... which version/revision of OFBiz are you
> using?
>
> Based on what you wrote, with the browser submitting a form to the
> OFBiz web server, as long as it is going through the ControlServlet
> and you are calling the service you described through a request-map ->
> event tag, then it should work the same way as anything else in OFBiz.
>
> Unless something is broken somewhere then OFBiz should be getting a
> locale no matter what, even if it is the system default locale. It
> looks like somehow that isn't making it into the service call (you
> could verify that by adding a log tag in your simple-method to print
> the ${locale} string). That's part of the reason I'm about the
> revision you are using... it could be a real issue that most of us
> aren't seeing if you're not using a recent trunk revision.
>
> Of, if the assumptions in the 2nd paragraph above are not correct (ie
> you are calling things differently) then there could be issues there
> as well.
>
> -David
>
>
> On Jan 13, 2009, at 3:59 PM, Vince M. Clark wrote:
>
>>
>> First a disclaimer (plea for mercy). I am an ERP person, not a web
>> or UI person. So all this http, session, context stuff is rather
>> confusing to me.
>>
>> I've been digging on this issue and want to make sure something is
>> very clear because I think it may have something to do with the
>> problem.
>>
>> OfBiz is NOT rendering any screens for me. I'm using it as kind of a
>> "cheap" web service. I have a static html web form served by Apache
>> web server. The form action calls OfBiz, and then I redirect back to
>> a static html page. So OfBiz just accepts the request, processes it,
>> and redirects. No screen rendering whatsoever by OfBiz.
>>
>> I'm pointing this out because of one of the comments I found in a
>> java class (which of course I cannot find now) that said something
>> about if locale was not in the context then the browser (or maybe
>> session) default would be used.
>>
>> So to simplify (or maybe over simplify) my question, is there
>> something I should be doing in my simple method to put locale in the
>> context before I call createLead. Also, can someone give me a tip on
>> how to iterate through whatever is in the context and write it out
>> to the log so I can see it.
>>
>> ----- Original Message -----
>> From: "Vince M. Clark" <[hidden email]>
>> To: [hidden email]
>> Sent: Tuesday, January 13, 2009 9:17:40 AM (GMT-0700) America/Denver
>> Subject: Re: locale error in simple method
>>
>> Here is the service definition and the simple method. Thank you for
>> your help.
>>
>> <service name="createLeadFromWebForm" engine="simple"
>> location="org/ofbiz/ge/PartyServices.xml"
>> invoke="createLeadFromWebForm" auth="false">
>> <description>Add a New Lead from a Web Form</description>
>> <attribute name="groupName" type="String" mode="IN"
>> optional="false"/>
>> <attribute name="firstName" type="String" mode="IN"
>> optional="false"/>
>> <attribute name="lastName" type="String" mode="IN" optional="false"/>
>> <attribute name="note" type="String" mode="IN" optional="true"/>
>> <attribute name="emailAddress" type="String" mode="IN"
>> optional="false"/>
>> <attribute name="postalCode" type="String" mode="IN"
>> optional="true"/>
>> <attribute name="countryGeoId" type="String" mode="IN"
>> optional="true"/>
>> <attribute name="address1" type="String" mode="IN" optional="true"/>
>> <attribute name="city" type="String" mode="IN" optional="true"/>
>> <attribute name="stateProvinceGeoId" type="String" mode="IN"
>> optional="true"/>
>> <attribute name="contactNumber" type="String" mode="IN"
>> optional="true"/>
>> <attribute name="quickAdd" type="String" mode="IN" optional="true"/>
>> </service>
>>
>> <simple-method method-name="createLeadFromWebForm" short-
>> description="Create Lead from Web Form" login-required="false">
>> <entity-one entity-name="UserLogin" value-name="userlogin">
>> <field-map field-name="userLoginId" value="system"/>
>> </entity-one>
>> <set-current-user-login value-name="userlogin"/>
>> <set field="newLead.firstName" from-field="parameters.firstName"/>
>> <set field="newLead.lastName" from-field="parameters.lastName"/>
>> <set field="newLead.groupName" from-field="parameters.groupName"/>
>> <set field="newLead.emailAddress" from-
>> field="parameters.emailAddress"/>
>> <set field="newLead.contactNumber" from-
>> field="parameters.contactNumber"/>
>> <set field="newLead.address1" from-field="parameters.address1"/>
>> <set field="newLead.countryGeoId" from-
>> field="parameters.countryGeoId"/>
>> <set field="newLead.city" from-field="parameters.city"/>
>> <set field="newLead.stateProvinceGeoId" from-
>> field="parameters.stateProvinceGeoId"/>
>> <set field="newLead.postalCode" from-field="parameters.postalCode"/>
>> <set field="newLead.quickAdd" from-field="parameters.quickAdd"/>
>> <call-service service-name="createLead" in-map-name="newLead">
>> <result-to-field result-name="partyId" field="partyId"/>
>> </call-service>
>> </simple-method>
>>
>> ----- Original Message -----
>> From: "Adrian Crum" <[hidden email]>
>> To: [hidden email]
>> Sent: Tuesday, January 13, 2009 9:22:57 AM (GMT-0700) America/Denver
>> Subject: Re: locale error in simple method
>>
>> If you attach the service definition, I can take a look at it.
>>
>> -Adrian
>>
>> Vince M. Clark wrote:
>>> When is that usually set? When a user logs in? My service just sets
>>> the userLogin to system. Could that be a source of the problem?
>>>
>>> ----- Original Message -----
>>> From: "Adrian Crum" <[hidden email]>
>>> To: [hidden email]
>>> Sent: Tuesday, January 13, 2009 9:05:01 AM (GMT-0700) America/Denver
>>> Subject: Re: locale error in simple method
>>>
>>> Vince,
>>>
>>> I checked to see if something changed in the framework that would
>>> cause
>>> this error, but I didn't find anything. There must be a problem with
>>> the service definition - which is preventing the locale parameter
>>> from
>>> being included in the service context.
>>>
>>> -Adrian
>>>
>>> Vince M. Clark wrote:
>>>> Here is the entire trace. Note that the first few lines are just
>>>> xml validation errors.
>>>>
>>>>
>>>> 2009-01-12 20:28:07,054 (http-0.0.0.0-8080-1) [ UtilXml.java:
>>>> 660:ERROR] XmlFileLoader: File file:/home/ofbiz/trunk/hot-deploy/
>>>> ge/script/org/ofbiz/ge/PartyServices.xml process error. Line: 88.
>>>> Error message: cvc-complex-type.3.2.2: Attribute 'field-name' is
>>>> not allowed to appear in element 'if-empty'.
>>>> 2009-01-12 20:28:07,055 (http-0.0.0.0-8080-1) [ UtilXml.java:
>>>> 660:ERROR] XmlFileLoader: File file:/home/ofbiz/trunk/hot-deploy/
>>>> ge/script/org/ofbiz/ge/PartyServices.xml process error. Line: 88.
>>>> Error message: cvc-complex-type.4: Attribute 'field' must appear
>>>> on element 'if-empty'.
>>>> 2009-01-12 20:28:07,055 (http-0.0.0.0-8080-1) [ UtilXml.java:
>>>> 660:ERROR] XmlFileLoader: File file:/home/ofbiz/trunk/hot-deploy/
>>>> ge/script/org/ofbiz/ge/PartyServices.xml process error. Line: 122.
>>>> Error message: cvc-complex-type.3.2.2: Attribute 'field' is not
>>>> allowed to appear in element 'result-to-field'.
>>>> 2009-01-12 20:28:07,056 (http-0.0.0.0-8080-1) [ UtilXml.java:
>>>> 241:INFO ] XML Read 0.026s: file:/home/ofbiz/trunk/hot-deploy/ge/
>>>> script/org/ofbiz/ge/PartyServices.xml
>>>> 2009-01-12 20:28:07,059 (http-0.0.0.0-8080-1) [ Log.java:
>>>> 94 :INFO ] locale is en_US // here is where I set a locale
>>>> variable and outputted it in the log
>>>>
>>>> 2009-01-12 20:28:07,087 (http-0.0.0.0-8080-1) [ UtilXml.java:
>>>> 241:INFO ] XML Read 0.027s: file:/home/ofbiz/trunk/applications/
>>>> marketing/script/org/ofbiz/sfa/lead/LeadServices.xml
>>>> 2009-01-12 20:28:07,125 (http-0.0.0.0-8080-1) [ UtilXml.java:
>>>> 241:INFO ] XML Read 0.028s: file:/home/ofbiz/trunk/applications/
>>>> party/script/org/ofbiz/party/party/PartySimpleMethods.xml
>>>> 2009-01-12 20:28:07,129 (http-0.0.0.0-8080-1) [ SimpleMethod.java:
>>>> 1109:ERROR] ---- runtime exception report
>>>> -------------------------------------------------- Error in simple-
>>>> method operation [ ]: java.lang.IllegalArgumentException: locale
>>>> cannot be null Exception: java.lang.IllegalArgumentException
>>>> Message: locale cannot be null ---- stack trace
>>>> ---------------------------------------------------------------
>>>> java.lang.IllegalArgumentException: locale cannot be null
>>>> org
>>>> .ofbiz
>>>> .base.util.UtilProperties.getResourceBundle(UtilProperties.java:
>>>> 480)
>>>> org.ofbiz.base.util.UtilProperties.getMessage(UtilProperties.java:
>>>> 385)
>>>> org
>>>> .ofbiz
>>>> .minilang
>>>> .operation.SimpleMapOperation.addMessage(SimpleMapOperation.java:
>>>> 62)
>>>> org
>>>> .ofbiz.minilang.operation.ValidateMethod.exec(ValidateMethod.java:
>>>> 100)
>>>> org
>>>> .ofbiz
>>>> .minilang.operation.SimpleMapProcess.exec(SimpleMapProcess.java:
>>>> 51)
>>>> org.ofbiz.minilang.operation.MapProcessor.exec(MapProcessor.java:
>>>> 80) org.ofbiz.minilang.method.callops.CallSimpleMapProcessor.ex
>> e
>>> c(CallSimpleMapProcessor.java:91)
>>> org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104)
>>> org.ofbiz.minilang.method.ifops.IfNotEmpty.exec(IfNotEmpty.java:91)
>>> org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104)
>>> org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:744)
>>> org
>>> .ofbiz
>>> .minilang
>>> .method.callops.CallSimpleMethod.exec(CallSimpleMethod.java:75)
>>> org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104)
>>> org.ofbiz.minilang.method.ifops.IfCompare.exec(IfCompare.java:123)
>>> org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104)
>>> org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:744)
>>> org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:
>>> 134)
>>> org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:
>>> 116)
>>> org
>>> .ofbiz
>>> .minilang
>>> .SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76)
>>> org
>>> .ofbiz
>>> .minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51)
>>> org.ofbiz.service.ServiceDispatcher.runSync(Servic
>> eDi
>>>
>>> spatcher.java:384)
>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>>> 213)
>>> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:
>>> 163)
>>> org.ofbiz.minilang.method.callops.CallService.exec(CallService.java:
>>> 246) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:
>>> 1104) org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:744)
>>> org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:
>>> 134)
>>> org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:
>>> 116)
>>> org
>>> .ofbiz
>>> .minilang
>>> .SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76)
>>> org
>>> .ofbiz
>>> .minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51)
>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>>> 384)
>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>>> 213)
>>> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:
>>> 149)
>>> org
>>> .ofbiz
>>> .webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:
>>> 334) org.ofbiz.webapp.control.Re
>> que
>>>
>>> stHandler.runEvent(RequestHandler.java:454)
>>> org
>>> .ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:
>>> 281)
>>> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:
>>> 198) javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>>> org
>>> .apache
>>> .catalina
>>> .core
>>> .ApplicationFilterChain
>>> .internalDoFilter(ApplicationFilterChain.java:290)
>>> org
>>> .apache
>>> .catalina
>>> .core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
>>> 206)
>>> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:
>>> 255)
>>> org
>>> .apache
>>> .catalina
>>> .core
>>> .ApplicationFilterChain
>>> .internalDoFilter(ApplicationFilterChain.java:235)
>>> org
>>> .apache
>>> .catalina
>>> .core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
>>> 206)
>>> org
>>> .apache
>>> .catalina
>>> .core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>>> org
>>> .apache
>>> .catalina
>>> .core.StandardContextValve.invoke(StandardContextValve.java:175)
>>> org.apache.catalina.core.StandardHostValve.invoke(StandardH
>> ost
>>>
>>> Valve.java:128)
>>> org
>>> .apache
>>> .catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>>> org
>>> .apache
>>> .catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:
>>> 109)
>>> org
>>> .apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:
>>> 568)
>>> org
>>> .apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:
>>> 286) org.apa
>>> che.coyote.http11.Http11Processor.process(Http11Processor.java:844)
>>> org.apache.coyote.http11.Http11Protocol
>>> $Http11ConnectionHandler.process(Http11Protocol.java:583)
>>> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:
>>> 447) java.lang.Thread.run(Thread.java:595)
>>> --------------------------------------------------------------------------------
>>>> 2009-01-12 20:28:07,130 (http-0.0.0.0-8080-1) [ SimpleMethod.java:
>>>> 1109:ERROR] ---- runtime exception report
>>>> -------------------------------------------------- Error in simple-
>>>> method operation [ ]: java.lang.RuntimeException: Error in simple-
>>>> method operation [ ]: java.lang.IllegalArgumentException: locale
>>>> cannot be null Exception: java.lang.RuntimeException Message:
>>>> Error in simple-method operation [ ]:
>>>> java.lang.IllegalArgumentException: locale cannot be null ----
>>>> stack trace
>>>> ---------------------------------------------------------------
>>>> java.lang.RuntimeException: Error in simple-method operation [ ]:
>>>> java.lang.IllegalArgumentException: locale cannot be null
>>>> org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1110)
>>>> org.ofbiz.minilang.method.ifops.IfNotEmpty.exec(IfNotEmpty.java:
>>>> 91) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:
>>>> 1104) org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:744)
>>>> org.ofbiz.minilang.method.callops.CallSimpleMethod.exec(C
>> a
>>> llSimpleMethod.java:75)
>>> org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104)
>>> org.ofbiz.minilang.method.ifops.IfCompare.exec(IfCompare.java:123)
>>> org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104)
>>> org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:744)
>>> org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:
>>> 134)
>>> org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:
>>> 116)
>>> org
>>> .ofbiz
>>> .minilang
>>> .SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76)
>>> org
>>> .ofbiz
>>> .minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51)
>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>>> 384)
>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>>> 213)
>>> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:
>>> 163)
>>> org.ofbiz.minilang.method.callops.CallService.exec(CallService.java:
>>> 246) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:
>>> 1104) org.ofbiz.minilang.SimpleMethod.exec(SimpleMeth
>> od.
>>>
>>> java:744)
>>> org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:
>>> 134)
>>> org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:
>>> 116)
>>> org
>>> .ofbiz
>>> .minilang
>>> .SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76)
>>> org
>>> .ofbiz
>>> .minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51)
>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>>> 384)
>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>>> 213)
>>> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:
>>> 149)
>>> org
>>> .ofbiz
>>> .webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:
>>> 334)
>>> org
>>> .ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:
>>> 454)
>>> org
>>> .ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:
>>> 281)
>>> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:
>>> 198) javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>>> org.apache.catalina.core.ApplicationF
>> ilt
>>>
>>> erChain.internalDoFilter(ApplicationFilterChain.java:290)
>>> org
>>> .apache
>>> .catalina
>>> .core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
>>> 206)
>>> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:
>>> 255)
>>> org
>>> .apache
>>> .catalina
>>> .core
>>> .ApplicationFilterChain
>>> .internalDoFilter(ApplicationFilterChain.java:235)
>>> org
>>> .apache
>>> .catalina
>>> .core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
>>> 206)
>>> org
>>> .apache
>>> .catalina
>>> .core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>>> org
>>> .apache
>>> .catalina
>>> .core.StandardContextValve.invoke(StandardContextValve.java:175)
>>> org
>>> .apache
>>> .catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
>>> org
>>> .apache
>>> .catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>>> org
>>> .apache
>>> .catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:
>>> 109)
>>> org
>>> .apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:
>>> 568)
>>> org
>>> .apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:
>>> 286) org.apache.coyote.http1
>> 1.H
>>>
>>> ttp11Processor.process(Http11Processor.java:844)
>>> org.apache.coyote.http11.Http11Protocol
>>> $Http11ConnectionHandler.process(Http11Protocol.java:583)
>>> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:
>>> 447) java.lang.Thread.run(Thread.java:595)
>>> --------------------------------------------------------------------------------
>>>> 2009-01-12 20:28:07,130 (http-0.0.0.0-8080-1) [ SimpleMethod.java:
>>>> 748:ERROR] Error running the simple-method: Error in simple-method
>>>> operation [ ]: java.lang.RuntimeException: Error in simple-method
>>>> operation [ ]: java.lang.IllegalArgumentException: locale cannot
>>>> be null
>>>> 2009-01-12 20:28:07,131 (http-0.0.0.0-8080-1)
>>>> [ TransactionUtil.java:311:WARN ] ---- exception report
>>>> ----------------------------------------------------------
>>>> [TransactionUtil.setRollbackOnly] Calling transaction
>>>> setRollbackOnly; this stack trace shows where this is happening:
>>>> Exception: java.lang.Exception Message: Error in simple-method
>>>> [Creates a person, role and contactMechs [file:/home/ofbiz/trunk/
>>>> applications/party/script/org/ofbiz/party/party/
>>>> PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error
>>>> running the simple-method: Error in simple-method operation [ ]:
>>>> java.lang.RuntimeException: Error in simple-method operation [ ]:
>>>> java.lang.IllegalArgumentException: locale cannot be null
>>>> null ---- stack trace
>>>> ---------------------------------------------------------------
>>>> java.lang.Exception: Error in simple-method [Creates a person,
>>>> role and contactMechs [file:/home/ofbiz/trunk/applications/party/
>>>> script/org/ofbiz/party/party/
>>>> PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error
>>>> running the simple-method: Error in simple-method operation [ ]:
>>>> java.lang.RuntimeException: Error in simple-method operation [ ]:
>>>> java.lang.IllegalArgumentException: locale cannot be null
>>>> null
>>>> org
>>>> .ofbiz
>>>> .entity
>>>> .transaction.TransactionUtil.setRollbackOnly(TransactionUtil.java:
>>>> 311)
>>>> org
>>>> .ofbiz
>>>> .entity.transaction.TransactionUtil.rollback(TransactionUtil.java:
>>>> 258) org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:875)
>>>> org
>>>> .ofbiz
>>>> .minilang
>>>> .method.callops.CallSimpleMethod.exec(CallSimpleMethod.java:75)
>>>> org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104)
>>>> org.ofbiz.minilang.method.ifops.IfCompare.exec(IfCompare.java:123)
>>>> org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104)
>>>> org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:744)
>>>> org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:
>>>> 134)
>>>> org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:
>>>> 116)
>>>> org
>>>> .ofbiz
>>>> .minilang
>>>> .SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76)
>>>> org
>>>> .ofbiz
>>>> .minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51)
>>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>>>> 384) org.ofbiz.service.ServiceDispatcher.run
>> S
>>> ync(ServiceDispatcher.java:213)
>>> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:
>>> 163)
>>> org.ofbiz.minilang.method.callops.CallService.exec(CallService.java:
>>> 246) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:
>>> 1104) org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:744)
>>> org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:
>>> 134)
>>> org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:
>>> 116)
>>> org
>>> .ofbiz
>>> .minilang
>>> .SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76)
>>> org
>>> .ofbiz
>>> .minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51)
>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>>> 384)
>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>>> 213)
>>> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:
>>> 149)
>>> org
>>> .ofbiz
>>> .webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:
>>> 334)
>>> org
>>> .ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:
>>> 454) org.ofbiz.we
>> bap
>>>
>>> p.control.RequestHandler.doRequest(RequestHandler.java:281)
>>> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:
>>> 198) javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>>> org
>>> .apache
>>> .catalina
>>> .core
>>> .ApplicationFilterChain
>>> .internalDoFilter(ApplicationFilterChain.java:290)
>>> org
>>> .apache
>>> .catalina
>>> .core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
>>> 206)
>>> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:
>>> 255)
>>> org
>>> .apache
>>> .catalina
>>> .core
>>> .ApplicationFilterChain
>>> .internalDoFilter(ApplicationFilterChain.java:235)
>>> org
>>> .apache
>>> .catalina
>>> .core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
>>> 206)
>>> org
>>> .apache
>>> .catalina
>>> .core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>>> org
>>> .apache
>>> .catalina
>>> .core.StandardContextValve.invoke(StandardContextValve.java:175)
>>> org
>>> .apache
>>> .catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
>>> org.apache.catalina.valves.ErrorReportVa
>> lve
>>>
>>> .invoke(ErrorReportValve.java:102)
>>> org
>>> .apache
>>> .catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:
>>> 109)
>>> org
>>> .apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:
>>> 568)
>>> org
>>> .apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:
>>> 286)
>>> org
>>> .apache.coyote.http11.Http11Processor.process(Http11Processor.java:
>>> 844) org.apache.coyote.http11.Http11Protocol
>>> $Http11ConnectionHandler.process(Http11Protocol.java:583)
>>> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:
>>> 447) java.lang.Thread.run(Thread.java:595)
>>> --------------------------------------------------------------------------------
>>>> 2009-01-12 20:28:07,153 (http-0.0.0.0-8080-1) [ UtilXml.java:
>>>> 241:INFO ] XML Read 0.021s: file:/home/ofbiz/trunk/applications/
>>>> party/script/org/ofbiz/party/party/PartyPermissionServices.xml
>>>> 2009-01-12 20:28:07,196 (http-0.0.0.0-8080-1) [ UtilXml.java:
>>>> 241:INFO ] XML Read 0.028s: file:/home/ofbiz/trunk/framework/
>>>> common/script/org/ofbiz/common/permission/
>>>> CommonPermissionServices.xml
>>>> 2009-01-12 20:28:07,197 (http-0.0.0.0-8080-1) [ Log.java:
>>>> 94 :INFO ] Checking for primary permission PARTYMGR_CREATE
>>>> 2009-01-12 20:28:07,198 (http-0.0.0.0-8080-1) [ Log.java:
>>>> 94 :INFO ] Checking for alternate permission PARTYMGR_ROLE_CREATE
>>>> 2009-01-12 20:28:07,200 (http-0.0.0.0-8080-1)
>>>> [ ServiceDispatcher.java:578:INFO ] Sync service [ecommerce/
>>>> partyRolePermissionCheck] finished in [68] milliseconds
>>>> 2009-01-12 20:28:07,242 (http-0.0.0.0-8080-1) [ UtilXml.java:
>>>> 241:INFO ] XML Read 0.041s: file:/home/ofbiz/trunk/applications/
>>>> party/script/org/ofbiz/party/party/PartyServices.xml
>>>> 2009-01-12 20:28:07,249 (http-0.0.0.0-8080-1)
>>>> [ TransactionUtil.java:91 :WARN ] ---- exception report
>>>> ----------------------------------------------------------
>>>> [TransactionUtil.begin] active transaction marked for rollback in
>>>> place, so no transaction begun; this stack trace shows when the
>>>> exception began: Exception: java.lang.Exception Message: Tx Stack
>>>> Placeholder ---- stack trace
>>>> ---------------------------------------------------------------
>>>> java.lang.Exception: Tx Stack Placeholder
>>>> org
>>>> .ofbiz
>>>> .entity
>>>> .transaction
>>>> .TransactionUtil.setTransactionBeginStack(TransactionUtil.java:
>>>> 636)
>>>> org
>>>> .ofbiz
>>>> .entity.transaction.TransactionUtil.begin(TransactionUtil.java:
>>>> 125)
>>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>>>> 302)
>>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>>>> 213)
>>>> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:
>>>> 149)
>>>> org
>>>> .ofbiz
>>>> .webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:
>>>> 334) org.ofbiz.webapp.control.
>> R
>>> equestHandler.runEvent(RequestHandler.java:454)
>>> org
>>> .ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:
>>> 281)
>>> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:
>>> 198) javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>>> org
>>> .apache
>>> .catalina
>>> .core
>>> .ApplicationFilterChain
>>> .internalDoFilter(ApplicationFilterChain.java:290)
>>> org
>>> .apache
>>> .catalina
>>> .core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
>>> 206)
>>> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:
>>> 255)
>>> org
>>> .apache
>>> .catalina
>>> .core
>>> .ApplicationFilterChain
>>> .internalDoFilter(ApplicationFilterChain.java:235)
>>> org
>>> .apache
>>> .catalina
>>> .core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
>>> 206)
>>> org
>>> .apache
>>> .catalina
>>> .core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>>> org
>>> .apache
>>> .catalina
>>> .core.StandardContextValve.invoke(StandardContextValve.java:175)
>>> org.apache.catalina.core.StandardHostValve.invoke(Stand
>> ard
>>>
>>> HostValve.java:128)
>>> org
>>> .apache
>>> .catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>>> org
>>> .apache
>>> .catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:
>>> 109)
>>> org
>>> .apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:
>>> 568)
>>> org
>>> .apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:
>>> 286)
>>> org
>>> .apache.coyote.http11.Http11Processor.process(Http11Processor.java:
>>> 844) org.apache.coyote.http11.Http11Protocol
>>> $Http11ConnectionHandler.process(Http11Protocol.java:583)
>>> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:
>>> 447) java.lang.Thread.run(Thread.java:595)
>>> --------------------------------------------------------------------------------
>>>> 2009-01-12 20:28:07,250 (http-0.0.0.0-8080-1) [ SimpleMethod.java:
>>>> 726:WARN ] Error trying to begin transaction, could not process
>>>> method: The current transaction is marked for rollback, not
>>>> beginning a new transaction and aborting current operation; the
>>>> rollbackOnly was caused by: Error in simple-method [Creates a
>>>> person, role and contactMechs [file:/home/ofbiz/trunk/applications/
>>>> party/script/org/ofbiz/party/party/
>>>> PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error
>>>> running the simple-method: Error in simple-method operation [ ]:
>>>> java.lang.RuntimeException: Error in simple-method operation [ ]:
>>>> java.lang.IllegalArgumentException: locale cannot be null
>>>> null
>>>> 2009-01-12 20:28:07,251 (http-0.0.0.0-8080-1) [ SimpleMethod.java:
>>>> 727:WARN ] ---- exception report
>>>> ----------------------------------------------------------
>>>> Exception:
>>>> org.ofbiz.entity.transaction.GenericTransactionException Message:
>>>> The current transaction is marked for rollback, not beginning a
>>>> new transaction and aborting current operation; the rollbackOnly
>>>> was caused by: Error in simple-method [Creates a person, role and
>>>> contactMechs [file:/home/ofbiz/trunk/applications/party/script/org/
>>>> ofbiz/party/party/
>>>> PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error
>>>> running the simple-method: Error in simple-method operation [ ]:
>>>> java.lang.RuntimeException: Error in simple-method operation [ ]:
>>>> java.lang.IllegalArgumentException: locale cannot be null
>>>> null ---- stack trace
>>>> ---------------------------------------------------------------
>>>> org.ofbiz.entity.transaction.GenericTransactionException: The
>>>> current transaction is marked for rollback, not beginning a new
>>>> transaction and aborting current operation; the rollbackOnly was
>>>> caused by: Error in simple-method [Creates a person, role and
>>>> contactMechs [file:/home/ofbiz/trunk/applications/party/script/org/
>>>> ofbiz/party/party/
>>>> PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error
>>>> running the simple-method: Error in simple-method operation [ ]:
>>>> java.lang.RuntimeException: Error in simple-method operation [ ]:
>>>> java.lang.IllegalArgumentException: locale cannot be null
>>>> null
>>>> org
>>>> .ofbiz
>>>> .entity.transaction.TransactionUtil.begin(TransactionUtil.java:99)
>>>> org
>>>> .ofbiz
>>>> .entity.transaction.TransactionUtil.begin(TransactionUtil.java:71)
>>>> org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:723)
>>>> org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:
>>>> 134)
>>>> org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:
>>>> 116)
>>>> org
>>>> .ofbiz
>>>> .minilang
>>>> .SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76)
>>>> org
>>>> .ofbiz
>>>> .minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51)
>>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>>>> 384)
>>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>>>> 213)
>>>> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:
>>>> 163)
>>>> org
>>>> .ofbiz.minilang.method.callops.CallService.exec(CallService.java:
>>>> 246) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:
>>>> 1104)
>>>> org.ofbiz.minilang.method.ifops.IfNotEmpty.exec(IfNotEmpty.java:
>>>> 91) org.ofbiz.minilang.SimpleMethod.runSubOps(Si
>> m
>>> pleMethod.java:1104)
>>> org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:744)
>>> org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:
>>> 134)
>>> org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:
>>> 116)
>>> org
>>> .ofbiz
>>> .minilang
>>> .SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76)
>>> org
>>> .ofbiz
>>> .minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51)
>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>>> 384)
>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>>> 213)
>>> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:
>>> 163)
>>> org.ofbiz.minilang.method.callops.CallService.exec(CallService.java:
>>> 246) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:
>>> 1104) org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:744)
>>> org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:
>>> 134)
>>> org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:
>>> 116) org.ofbiz.minilang.SimpleServiceEngine.service
>> Inv
>>>
>>> oker(SimpleServiceEngine.java:76)
>>> org
>>> .ofbiz
>>> .minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51)
>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>>> 384)
>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>>> 213)
>>> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:
>>> 149)
>>> org
>>> .ofbiz
>>> .webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:
>>> 334)
>>> org
>>> .ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:
>>> 454)
>>> org
>>> .ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:
>>> 281)
>>> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:
>>> 198) javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>>> org
>>> .apache
>>> .catalina
>>> .core
>>> .ApplicationFilterChain
>>> .internalDoFilter(ApplicationFilterChain.java:290)
>>> org
>>> .apache
>>> .catalina
>>> .core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
>>> 206) org.ofbiz.webapp.control.ContextFilter.doFilter(Con
>> tex
>>>
>>> tFilter.java:255)
>>> org
>>> .apache
>>> .catalina
>>> .core
>>> .ApplicationFilterChain
>>> .internalDoFilter(ApplicationFilterChain.java:235)
>>> org
>>> .apache
>>> .catalina
>>> .core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
>>> 206)
>>> org
>>> .apache
>>> .catalina
>>> .core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>>> org
>>> .apache
>>> .catalina
>>> .core.StandardContextValve.invoke(StandardContextValve.java:175)
>>> org
>>> .apache
>>> .catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
>>> org
>>> .apache
>>> .catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>>> org
>>> .apache
>>> .catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:
>>> 109)
>>> org
>>> .apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:
>>> 568)
>>> org
>>> .apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:
>>> 286)
>>> org
>>> .apache.coyote.http11.Http11Processor.process(Http11Processor.java:
>>> 844) org.apache.coyote.http11.Http11Protocol
>>> $Http11ConnectionHandler.process(Http11Protocol.java:583)
>>> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIo
>> End
>>>
>>> point.java:447) java.lang.Thread.run(Thread.java:595)
>>> --------------------------------------------------------------------------------
>>>> 2009-01-12 20:28:07,251 (http-0.0.0.0-8080-1)
>>>> [ ServiceDispatcher.java:522:ERROR] Error in Service
>>>> [createPartyRole]: Error trying to begin transaction, could not
>>>> process method: The current transaction is marked for rollback,
>>>> not beginning a new transaction and aborting current operation;
>>>> the rollbackOnly was caused by: Error in simple-method [Creates a
>>>> person, role and contactMechs [file:/home/ofbiz/trunk/applications/
>>>> party/script/org/ofbiz/party/party/
>>>> PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error
>>>> running the simple-method: Error in simple-method operation [ ]:
>>>> java.lang.RuntimeException: Error in simple-method operation [ ]:
>>>> java.lang.IllegalArgumentException: locale cannot be null
>>>> null
>>>> 2009-01-12 20:28:07,252 (http-0.0.0.0-8080-1)
>>>> [ TransactionUtil.java:315:INFO ]
>>>> [TransactionUtil.setRollbackOnly] transaction rollback only not
>>>> set, rollback only is already set.
>>>> 2009-01-12 20:28:07,252 (http-0.0.0.0-8080-1)
>>>> [ ServiceDispatcher.java:578:INFO ] Sync service [ecommerce/
>>>> createPartyRole] finished in [121] milliseconds
>>>> 2009-01-12 20:28:07,252 (http-0.0.0.0-8080-1)
>>>> [ TransactionUtil.java:315:INFO ]
>>>> [TransactionUtil.setRollbackOnly] transaction rollback only not
>>>> set, rollback only is already set.
>>>> 2009-01-12 20:28:07,253 (http-0.0.0.0-8080-1)
>>>> [ ServiceDispatcher.java:522:ERROR] Error in Service [createLead]:
>>>> Error:Error trying to begin transaction, could not process method:
>>>> The current transaction is marked for rollback, not beginning a
>>>> new transaction and aborting current operation; the rollbackOnly
>>>> was caused by: Error in simple-method [Creates a person, role and
>>>> contactMechs [file:/home/ofbiz/trunk/applications/party/script/org/
>>>> ofbiz/party/party/
>>>> PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error
>>>> running the simple-method: Error in simple-method operation [ ]:
>>>> java.lang.RuntimeException: Error in simple-method operation [ ]:
>>>> java.lang.IllegalArgumentException: locale cannot be null
>>>> null calling service createPartyRole in createLead
>>>> 2009-01-12 20:28:07,253 (http-0.0.0.0-8080-1)
>>>> [ TransactionUtil.java:315:INFO ]
>>>> [TransactionUtil.setRollbackOnly] transaction rollback only not
>>>> set, rollback only is already set.
>>>> 2009-01-12 20:28:07,253 (http-0.0.0.0-8080-1)
>>>> [ ServiceDispatcher.java:578:INFO ] Sync service [ecommerce/
>>>> createLead] finished in [194] milliseconds
>>>> 2009-01-12 20:28:07,254 (http-0.0.0.0-8080-1)
>>>> [ TransactionUtil.java:315:INFO ]
>>>> [TransactionUtil.setRollbackOnly] transaction rollback only not
>>>> set, rollback only is already set.
>>>> 2009-01-12 20:28:07,254 (http-0.0.0.0-8080-1)
>>>> [ ServiceDispatcher.java:522:ERROR] Error in Service
>>>> [createLeadFromWebForm]: Error:Error:Error trying to begin
>>>> transaction, could not process method: The current transaction is
>>>> marked for rollback, not beginning a new transaction and aborting
>>>> current operation; the rollbackOnly was caused by: Error in simple-
>>>> method [Creates a person, role and contactMechs [file:/home/ofbiz/
>>>> trunk/applications/party/script/org/ofbiz/party/party/
>>>> PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error
>>>> running the simple-method: Error in simple-method operation [ ]:
>>>> java.lang.RuntimeException: Error in simple-method operation [ ]:
>>>> java.lang.IllegalArgumentException: locale cannot be null
>>>> null calling service createPartyRole in createLead calling service
>>>> createLead in createLeadFromWebForm
>>>> 2009-01-12 20:28:07,255 (http-0.0.0.0-8080-1)
>>>> [ TransactionUtil.java:275:ERROR] ---- exception report
>>>> ----------------------------------------------------------
>>>> [TransactionUtil.rollback] Exception: java.lang.Exception Message:
>>>> Stack Trace ---- stack trace
>>>> ---------------------------------------------------------------
>>>> java.lang.Exception: Stack Trace
>>>> org
>>>> .ofbiz
>>>> .entity.transaction.TransactionUtil.rollback(TransactionUtil.java:
>>>> 274)
>>>> org
>>>> .ofbiz
>>>> .entity.transaction.TransactionUtil.rollback(TransactionUtil.java:
>>>> 256)
>>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>>>> 526)
>>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>>>> 213)
>>>> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:
>>>> 149)
>>>> org
>>>> .ofbiz
>>>> .webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:
>>>> 334)
>>>> org
>>>> .ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:
>>>> 454)
>>>> org
>>>> .ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:
>>>> 281) org.ofbiz.webapp.control.Co
>> n
>>> trolServlet.doGet(ControlServlet.java:198)
>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>>> org
>>> .apache
>>> .catalina
>>> .core
>>> .ApplicationFilterChain
>>> .internalDoFilter(ApplicationFilterChain.java:290)
>>> org
>>> .apache
>>> .catalina
>>> .core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
>>> 206)
>>> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:
>>> 255)
>>> org
>>> .apache
>>> .catalina
>>> .core
>>> .ApplicationFilterChain
>>> .internalDoFilter(ApplicationFilterChain.java:235)
>>> org
>>> .apache
>>> .catalina
>>> .core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
>>> 206)
>>> org
>>> .apache
>>> .catalina
>>> .core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>>> org
>>> .apache
>>> .catalina
>>> .core.StandardContextValve.invoke(StandardContextValve.java:175)
>>> org
>>> .apache
>>> .catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
>>> org
>>> .apache
>>> .catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>>> org.apache.catalina.core.StandardEngineValve.invok
>> e(S
>>>
>>> tandardEngineValve.java:109)
>>> org
>>> .apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:
>>> 568)
>>> org
>>> .apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:
>>> 286)
>>> org
>>> .apache.coyote.http11.Http11Processor.process(Http11Processor.java:
>>> 844) org.apache.coyote.http11.Http11Protocol
>>> $Http11ConnectionHandler.process(Http11Protocol.java:583)
>>> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:
>>> 447) java.lang.Thread.run(Thread.java:595)
>>> --------------------------------------------------------------------------------
>>>> 2009-01-12 20:28:07,255 (http-0.0.0.0-8080-1)
>>>> [ TransactionUtil.java:285:INFO ] [TransactionUtil.rollback]
>>>> transaction rolled back
>>>> 2009-01-12 20:28:07,255 (http-0.0.0.0-8080-1)
>>>> [ ServiceDispatcher.java:578:INFO ] Sync service [ecommerce/
>>>> createLeadFromWebForm] finished in [236] milliseconds
>>>> 2009-01-12 20:28:07,327 (http-0.0.0.0-8080-1)
>>>> [ RequestHandler.java:314:ERROR] Request webFormSubmit caused an
>>>> error with the following message: Error:Error:Error trying to
>>>> begin transaction, could not process method: The current
>>>> transaction is marked for rollback, not beginning a new
>>>> transaction and aborting current operation; the rollbackOnly was
>>>> caused by: Error in simple-method [Creates a person, role and
>>>> contactMechs [file:/home/ofbiz/trunk/applications/party/script/org/
>>>> ofbiz/party/party/
>>>> PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error
>>>> running the simple-method: Error in simple-method operation [ ]:
>>>> java.lang.RuntimeException: Error in simple-method operation [ ]:
>>>> java.lang.IllegalArgumentException: locale cannot be null
>>>> null calling service createPartyRole in createLead calling service
>>>> createLead in createLeadFromWebForm
>>>> 2009-01-12 20:28:07,328 (http-0.0.0.0-8080-1)
>>>> [ RequestHandler.java:412:INFO ] [RequestHandler.doRequest]:
>>>> Response is a URL redirect.
>>>> sessionId=BBA68197213FF2F01514F97BB85687A6.jvm1
>>>> 2009-01-12 20:28:07,328 (http-0.0.0.0-8080-1)
>>>> [ RequestHandler.java:539:INFO ] [Sending redirect]: http://www.globalera.com 
>>>> sessionId=BBA68197213FF2F01514F97BB85687A6.jvm1
>>>> 2009-01-12 20:28:07,376 (http-0.0.0.0-8080-1)
>>>> [ ControlServlet.java:299:INFO ] [[[webFormSubmit] Done rendering
>>>> page, Servlet Finished- total:0.64,since last([webFormSubmit]
>>>> S...):0.638]]
>>>>
>>>> ----- Original Message -----
>>>> From: "Adrian Crum" <[hidden email]>
>>>> To: [hidden email]
>>>> Sent: Monday, January 12, 2009 8:31:07 AM (GMT-0700) America/Denver
>>>> Subject: Re: locale error in simple method
>>>>
>>>> Vince,
>>>>
>>>> We will need a complete log to track this down. To be specific, I
>>>> need
>>>> to see the entire Java stack trace.
>>>>
>>>> -Adrian
>>>>
>>>> Vince M. Clark wrote:
>>>>> I created a custom simple method to respond to a request from a
>>>>> web form. Getting a locale error and cannot figure out where
>>>>> locale is required.
>>>>>
>>>>> <simple-method method-name="createLeadFromWebForm" short-
>>>>> description="Create Lead from Web Form" login-required="false">
>>>>> <entity-one entity-name="UserLogin" value-name="userlogin">
>>>>> <field-map field-name="userLoginId" value="system"/>
>>>>> </entity-one>
>>>>> <set-current-user-login value-name="userlogin"/>
>>>>> <set field="newLead.firstName" from-field="parameters.firstName"/>
>>>>> <set field="newLead.lastName" from-field="parameters.lastName"/>
>>>>> <set field="newLead.groupName" from-field="parameters.groupName"/>
>>>>> <set field="newLead.emailAddress" from-
>>>>> field="parameters.emailAddress"/>
>>>>> <set field="newLead.contactNumber" from-
>>>>> field="parameters.contactNumber"/>
>>>>> <set field="newLead.address1" from-field="parameters.address1"/>
>>>>> <set field="newLead.countryGeoId" from-
>>>>> field="parameters.countryGeoId"/>
>>>>> <set field="newLead.city" from-field="parameters.city"/>
>>>>> <set field="newLead.stateProvinceGeoId" from-
>>>>> field="parameters.stateProvinceGeoId"/>
>>>>> <set field="newLead.postalCode" from-
>>>>> field="parameters.postalCode"/>
>>>>> <set field="newLead.quickAdd" from-field="parameters.quickAdd"/>
>>>>> <call-service service-name="createLead" in-map-name="newLead">
>>>>> <result-to-field result-name="partyId" field="partyId"/>
>>>>> </call-service>
>>>>> </simple-method>
>>>>>
>>>>> The simple method that I am calling "createLead" calls other
>>>>> simple methods. One of them is createPersonRoleAndContactMechs,
>>>>> which throws the following exception:
>>>>> 2009-01-11 18:43:36,887 (http-0.0.0.0-8080-1)
>>>>> [ RequestHandler.java:314:ERROR] Request webFormSubmit caused an
>>>>> error with the following message: Error:Error:Error trying to
>>>>> begin transaction, could not process method: The current
>>>>> transaction is marked for rollback, not beginning a new
>>>>> transaction and aborting current operation; the rollbackOnly was
>>>>> caused by: Error in simple-method [Creates a person, role and
>>>>> contactMechs [file:/home/ofbiz/trunk/applications/party/script/
>>>>> org/ofbiz/party/party/
>>>>> PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error
>>>>> running the simple-method: Error in simple-method operation [ ]:
>>>>> java.lang.RuntimeException: Error in simple-method operation [ ]:
>>>>> java.lang.IllegalArgumentException: locale cannot be null
>>>>> null calling service createPartyRole in createLead calling
>>>>> service createLead in createLeadFromWebForm
>>>>>
>>>>>
>>>>>
>>>>>
>>>
>

Reply | Threaded
Open this post in threaded view
|

Re: locale error in simple method

Bruno Busco
I think that Vince's situation is very common.

Whenever you get your ofbiz put in production (or a sort of) you get
really "apprensive" and try to not update your working box.
This makes hard also to get bug fixes only from the trunk.

Could we think to try to have a new release branch?
I mean a branch where only bug fix are merged from the trunk?
I know that this has been discussed many times but we should give it a
try. The framework-only release could be still something in the agenda
and should not be affected by the existence of the new complete
release branch.

The last release branch (4.0) seems now too far from the trunk head
and we often suggest not to use it any more. This is fine because we
want people on the "living edge" of the code but then we will get them
in the "should I update or not?" situation.

Having a new release branch we will have most people living there and
contributing back bug-fix patch or bug reports that will still be used
in the trunk.

I see many new features coming into the trunk and this is really great
but, may be, many more would come if who is going to commit them knows
that the community could always rely on an unaffetced "stable" branch.

-Bruno


2009/1/14 Vince M. Clark <[hidden email]>:

> I don't waste my time with 4.0.
>
> Preaching doesn't bother me. I'm used to it and have done a bit myself.
>
> But to be clear, I'm very collaborative, and am not holding anything back from the community. This particular instance I have not upgraded because it is production (sort of) and I have had difficulty upgrading other instances recently because of some seed data issues, and possibly other reasons. Basically related to some of the new stuff like visual themes.
>
> I will try my custom service against a current download of trunk to verify that it isn't just a version issue.
>
> ----- Original Message -----
> From: "David E Jones" <[hidden email]>
> To: [hidden email]
> Sent: Tuesday, January 13, 2009 6:06:06 PM (GMT-0700) America/Denver
> Subject: Re: locale error in simple method
>
>
> Is that the trunk rev or in the release4.0 branch?
>
> Either way it's a few months old (looks like 23 Jul 2008)... it would
> take a fair amount of time for someone to go back and try to reproduce
> the error on that revision. Have you considered updating to a newer
> version of OFBiz?
>
> Just as an FYI, I usually recommend that people working from the trunk
> really collaborate with the community, an that usually means needing
> to update at least once per day (or at the _very_ least a couple of
> times per week) until the development part of each cycle is done (ie
> before doing integration or business level testing, if that means
> anything for your process).
>
> There are lots of reasons for this, and what you're running into is
> perhaps the most important: by sticking with that revision you're
> basically going it alone and choosing not to collaborate with the
> community, which makes it hard for others in the community to
> collaborate with you. The same is true for the practice of changing
> things in the OFBiz framework or core parts of different applications
> and not contributing it back to the project. The project suffers a
> little, but the project will do fine as there are LOTS of people
> contributing back. Who really suffers is the end-user organization
> that has to foot the bill of maintaining these things instead of
> sharing that with the community.
>
> Sorry for the preaching, but on the other hand thanks for the soap box
> to stand on for a little sermon.
>
> -David
>
>
> On Jan 13, 2009, at 4:34 PM, Vince M. Clark wrote:
>
>> Thanks David. Rev is 679168
>>
>> ----- Original Message -----
>> From: "David E Jones" <[hidden email]>
>> To: [hidden email]
>> Sent: Tuesday, January 13, 2009 5:36:35 PM (GMT-0700) America/Denver
>> Subject: Re: locale error in simple method
>>
>>
>> Stepping back even more... which version/revision of OFBiz are you
>> using?
>>
>> Based on what you wrote, with the browser submitting a form to the
>> OFBiz web server, as long as it is going through the ControlServlet
>> and you are calling the service you described through a request-map ->
>> event tag, then it should work the same way as anything else in OFBiz.
>>
>> Unless something is broken somewhere then OFBiz should be getting a
>> locale no matter what, even if it is the system default locale. It
>> looks like somehow that isn't making it into the service call (you
>> could verify that by adding a log tag in your simple-method to print
>> the ${locale} string). That's part of the reason I'm about the
>> revision you are using... it could be a real issue that most of us
>> aren't seeing if you're not using a recent trunk revision.
>>
>> Of, if the assumptions in the 2nd paragraph above are not correct (ie
>> you are calling things differently) then there could be issues there
>> as well.
>>
>> -David
>>
>>
>> On Jan 13, 2009, at 3:59 PM, Vince M. Clark wrote:
>>
>>>
>>> First a disclaimer (plea for mercy). I am an ERP person, not a web
>>> or UI person. So all this http, session, context stuff is rather
>>> confusing to me.
>>>
>>> I've been digging on this issue and want to make sure something is
>>> very clear because I think it may have something to do with the
>>> problem.
>>>
>>> OfBiz is NOT rendering any screens for me. I'm using it as kind of a
>>> "cheap" web service. I have a static html web form served by Apache
>>> web server. The form action calls OfBiz, and then I redirect back to
>>> a static html page. So OfBiz just accepts the request, processes it,
>>> and redirects. No screen rendering whatsoever by OfBiz.
>>>
>>> I'm pointing this out because of one of the comments I found in a
>>> java class (which of course I cannot find now) that said something
>>> about if locale was not in the context then the browser (or maybe
>>> session) default would be used.
>>>
>>> So to simplify (or maybe over simplify) my question, is there
>>> something I should be doing in my simple method to put locale in the
>>> context before I call createLead. Also, can someone give me a tip on
>>> how to iterate through whatever is in the context and write it out
>>> to the log so I can see it.
>>>
>>> ----- Original Message -----
>>> From: "Vince M. Clark" <[hidden email]>
>>> To: [hidden email]
>>> Sent: Tuesday, January 13, 2009 9:17:40 AM (GMT-0700) America/Denver
>>> Subject: Re: locale error in simple method
>>>
>>> Here is the service definition and the simple method. Thank you for
>>> your help.
>>>
>>> <service name="createLeadFromWebForm" engine="simple"
>>> location="org/ofbiz/ge/PartyServices.xml"
>>> invoke="createLeadFromWebForm" auth="false">
>>> <description>Add a New Lead from a Web Form</description>
>>> <attribute name="groupName" type="String" mode="IN"
>>> optional="false"/>
>>> <attribute name="firstName" type="String" mode="IN"
>>> optional="false"/>
>>> <attribute name="lastName" type="String" mode="IN" optional="false"/>
>>> <attribute name="note" type="String" mode="IN" optional="true"/>
>>> <attribute name="emailAddress" type="String" mode="IN"
>>> optional="false"/>
>>> <attribute name="postalCode" type="String" mode="IN"
>>> optional="true"/>
>>> <attribute name="countryGeoId" type="String" mode="IN"
>>> optional="true"/>
>>> <attribute name="address1" type="String" mode="IN" optional="true"/>
>>> <attribute name="city" type="String" mode="IN" optional="true"/>
>>> <attribute name="stateProvinceGeoId" type="String" mode="IN"
>>> optional="true"/>
>>> <attribute name="contactNumber" type="String" mode="IN"
>>> optional="true"/>
>>> <attribute name="quickAdd" type="String" mode="IN" optional="true"/>
>>> </service>
>>>
>>> <simple-method method-name="createLeadFromWebForm" short-
>>> description="Create Lead from Web Form" login-required="false">
>>> <entity-one entity-name="UserLogin" value-name="userlogin">
>>> <field-map field-name="userLoginId" value="system"/>
>>> </entity-one>
>>> <set-current-user-login value-name="userlogin"/>
>>> <set field="newLead.firstName" from-field="parameters.firstName"/>
>>> <set field="newLead.lastName" from-field="parameters.lastName"/>
>>> <set field="newLead.groupName" from-field="parameters.groupName"/>
>>> <set field="newLead.emailAddress" from-
>>> field="parameters.emailAddress"/>
>>> <set field="newLead.contactNumber" from-
>>> field="parameters.contactNumber"/>
>>> <set field="newLead.address1" from-field="parameters.address1"/>
>>> <set field="newLead.countryGeoId" from-
>>> field="parameters.countryGeoId"/>
>>> <set field="newLead.city" from-field="parameters.city"/>
>>> <set field="newLead.stateProvinceGeoId" from-
>>> field="parameters.stateProvinceGeoId"/>
>>> <set field="newLead.postalCode" from-field="parameters.postalCode"/>
>>> <set field="newLead.quickAdd" from-field="parameters.quickAdd"/>
>>> <call-service service-name="createLead" in-map-name="newLead">
>>> <result-to-field result-name="partyId" field="partyId"/>
>>> </call-service>
>>> </simple-method>
>>>
>>> ----- Original Message -----
>>> From: "Adrian Crum" <[hidden email]>
>>> To: [hidden email]
>>> Sent: Tuesday, January 13, 2009 9:22:57 AM (GMT-0700) America/Denver
>>> Subject: Re: locale error in simple method
>>>
>>> If you attach the service definition, I can take a look at it.
>>>
>>> -Adrian
>>>
>>> Vince M. Clark wrote:
>>>> When is that usually set? When a user logs in? My service just sets
>>>> the userLogin to system. Could that be a source of the problem?
>>>>
>>>> ----- Original Message -----
>>>> From: "Adrian Crum" <[hidden email]>
>>>> To: [hidden email]
>>>> Sent: Tuesday, January 13, 2009 9:05:01 AM (GMT-0700) America/Denver
>>>> Subject: Re: locale error in simple method
>>>>
>>>> Vince,
>>>>
>>>> I checked to see if something changed in the framework that would
>>>> cause
>>>> this error, but I didn't find anything. There must be a problem with
>>>> the service definition - which is preventing the locale parameter
>>>> from
>>>> being included in the service context.
>>>>
>>>> -Adrian
>>>>
>>>> Vince M. Clark wrote:
>>>>> Here is the entire trace. Note that the first few lines are just
>>>>> xml validation errors.
>>>>>
>>>>>
>>>>> 2009-01-12 20:28:07,054 (http-0.0.0.0-8080-1) [ UtilXml.java:
>>>>> 660:ERROR] XmlFileLoader: File file:/home/ofbiz/trunk/hot-deploy/
>>>>> ge/script/org/ofbiz/ge/PartyServices.xml process error. Line: 88.
>>>>> Error message: cvc-complex-type.3.2.2: Attribute 'field-name' is
>>>>> not allowed to appear in element 'if-empty'.
>>>>> 2009-01-12 20:28:07,055 (http-0.0.0.0-8080-1) [ UtilXml.java:
>>>>> 660:ERROR] XmlFileLoader: File file:/home/ofbiz/trunk/hot-deploy/
>>>>> ge/script/org/ofbiz/ge/PartyServices.xml process error. Line: 88.
>>>>> Error message: cvc-complex-type.4: Attribute 'field' must appear
>>>>> on element 'if-empty'.
>>>>> 2009-01-12 20:28:07,055 (http-0.0.0.0-8080-1) [ UtilXml.java:
>>>>> 660:ERROR] XmlFileLoader: File file:/home/ofbiz/trunk/hot-deploy/
>>>>> ge/script/org/ofbiz/ge/PartyServices.xml process error. Line: 122.
>>>>> Error message: cvc-complex-type.3.2.2: Attribute 'field' is not
>>>>> allowed to appear in element 'result-to-field'.
>>>>> 2009-01-12 20:28:07,056 (http-0.0.0.0-8080-1) [ UtilXml.java:
>>>>> 241:INFO ] XML Read 0.026s: file:/home/ofbiz/trunk/hot-deploy/ge/
>>>>> script/org/ofbiz/ge/PartyServices.xml
>>>>> 2009-01-12 20:28:07,059 (http-0.0.0.0-8080-1) [ Log.java:
>>>>> 94 :INFO ] locale is en_US // here is where I set a locale
>>>>> variable and outputted it in the log
>>>>>
>>>>> 2009-01-12 20:28:07,087 (http-0.0.0.0-8080-1) [ UtilXml.java:
>>>>> 241:INFO ] XML Read 0.027s: file:/home/ofbiz/trunk/applications/
>>>>> marketing/script/org/ofbiz/sfa/lead/LeadServices.xml
>>>>> 2009-01-12 20:28:07,125 (http-0.0.0.0-8080-1) [ UtilXml.java:
>>>>> 241:INFO ] XML Read 0.028s: file:/home/ofbiz/trunk/applications/
>>>>> party/script/org/ofbiz/party/party/PartySimpleMethods.xml
>>>>> 2009-01-12 20:28:07,129 (http-0.0.0.0-8080-1) [ SimpleMethod.java:
>>>>> 1109:ERROR] ---- runtime exception report
>>>>> -------------------------------------------------- Error in simple-
>>>>> method operation [ ]: java.lang.IllegalArgumentException: locale
>>>>> cannot be null Exception: java.lang.IllegalArgumentException
>>>>> Message: locale cannot be null ---- stack trace
>>>>> ---------------------------------------------------------------
>>>>> java.lang.IllegalArgumentException: locale cannot be null
>>>>> org
>>>>> .ofbiz
>>>>> .base.util.UtilProperties.getResourceBundle(UtilProperties.java:
>>>>> 480)
>>>>> org.ofbiz.base.util.UtilProperties.getMessage(UtilProperties.java:
>>>>> 385)
>>>>> org
>>>>> .ofbiz
>>>>> .minilang
>>>>> .operation.SimpleMapOperation.addMessage(SimpleMapOperation.java:
>>>>> 62)
>>>>> org
>>>>> .ofbiz.minilang.operation.ValidateMethod.exec(ValidateMethod.java:
>>>>> 100)
>>>>> org
>>>>> .ofbiz
>>>>> .minilang.operation.SimpleMapProcess.exec(SimpleMapProcess.java:
>>>>> 51)
>>>>> org.ofbiz.minilang.operation.MapProcessor.exec(MapProcessor.java:
>>>>> 80) org.ofbiz.minilang.method.callops.CallSimpleMapProcessor.ex
>>> e
>>>> c(CallSimpleMapProcessor.java:91)
>>>> org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104)
>>>> org.ofbiz.minilang.method.ifops.IfNotEmpty.exec(IfNotEmpty.java:91)
>>>> org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104)
>>>> org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:744)
>>>> org
>>>> .ofbiz
>>>> .minilang
>>>> .method.callops.CallSimpleMethod.exec(CallSimpleMethod.java:75)
>>>> org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104)
>>>> org.ofbiz.minilang.method.ifops.IfCompare.exec(IfCompare.java:123)
>>>> org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104)
>>>> org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:744)
>>>> org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:
>>>> 134)
>>>> org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:
>>>> 116)
>>>> org
>>>> .ofbiz
>>>> .minilang
>>>> .SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76)
>>>> org
>>>> .ofbiz
>>>> .minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51)
>>>> org.ofbiz.service.ServiceDispatcher.runSync(Servic
>>> eDi
>>>>
>>>> spatcher.java:384)
>>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>>>> 213)
>>>> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:
>>>> 163)
>>>> org.ofbiz.minilang.method.callops.CallService.exec(CallService.java:
>>>> 246) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:
>>>> 1104) org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:744)
>>>> org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:
>>>> 134)
>>>> org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:
>>>> 116)
>>>> org
>>>> .ofbiz
>>>> .minilang
>>>> .SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76)
>>>> org
>>>> .ofbiz
>>>> .minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51)
>>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>>>> 384)
>>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>>>> 213)
>>>> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:
>>>> 149)
>>>> org
>>>> .ofbiz
>>>> .webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:
>>>> 334) org.ofbiz.webapp.control.Re
>>> que
>>>>
>>>> stHandler.runEvent(RequestHandler.java:454)
>>>> org
>>>> .ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:
>>>> 281)
>>>> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:
>>>> 198) javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
>>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>>>> org
>>>> .apache
>>>> .catalina
>>>> .core
>>>> .ApplicationFilterChain
>>>> .internalDoFilter(ApplicationFilterChain.java:290)
>>>> org
>>>> .apache
>>>> .catalina
>>>> .core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
>>>> 206)
>>>> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:
>>>> 255)
>>>> org
>>>> .apache
>>>> .catalina
>>>> .core
>>>> .ApplicationFilterChain
>>>> .internalDoFilter(ApplicationFilterChain.java:235)
>>>> org
>>>> .apache
>>>> .catalina
>>>> .core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
>>>> 206)
>>>> org
>>>> .apache
>>>> .catalina
>>>> .core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>>>> org
>>>> .apache
>>>> .catalina
>>>> .core.StandardContextValve.invoke(StandardContextValve.java:175)
>>>> org.apache.catalina.core.StandardHostValve.invoke(StandardH
>>> ost
>>>>
>>>> Valve.java:128)
>>>> org
>>>> .apache
>>>> .catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>>>> org
>>>> .apache
>>>> .catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:
>>>> 109)
>>>> org
>>>> .apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:
>>>> 568)
>>>> org
>>>> .apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:
>>>> 286) org.apa
>>>> che.coyote.http11.Http11Processor.process(Http11Processor.java:844)
>>>> org.apache.coyote.http11.Http11Protocol
>>>> $Http11ConnectionHandler.process(Http11Protocol.java:583)
>>>> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:
>>>> 447) java.lang.Thread.run(Thread.java:595)
>>>> --------------------------------------------------------------------------------
>>>>> 2009-01-12 20:28:07,130 (http-0.0.0.0-8080-1) [ SimpleMethod.java:
>>>>> 1109:ERROR] ---- runtime exception report
>>>>> -------------------------------------------------- Error in simple-
>>>>> method operation [ ]: java.lang.RuntimeException: Error in simple-
>>>>> method operation [ ]: java.lang.IllegalArgumentException: locale
>>>>> cannot be null Exception: java.lang.RuntimeException Message:
>>>>> Error in simple-method operation [ ]:
>>>>> java.lang.IllegalArgumentException: locale cannot be null ----
>>>>> stack trace
>>>>> ---------------------------------------------------------------
>>>>> java.lang.RuntimeException: Error in simple-method operation [ ]:
>>>>> java.lang.IllegalArgumentException: locale cannot be null
>>>>> org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1110)
>>>>> org.ofbiz.minilang.method.ifops.IfNotEmpty.exec(IfNotEmpty.java:
>>>>> 91) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:
>>>>> 1104) org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:744)
>>>>> org.ofbiz.minilang.method.callops.CallSimpleMethod.exec(C
>>> a
>>>> llSimpleMethod.java:75)
>>>> org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104)
>>>> org.ofbiz.minilang.method.ifops.IfCompare.exec(IfCompare.java:123)
>>>> org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104)
>>>> org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:744)
>>>> org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:
>>>> 134)
>>>> org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:
>>>> 116)
>>>> org
>>>> .ofbiz
>>>> .minilang
>>>> .SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76)
>>>> org
>>>> .ofbiz
>>>> .minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51)
>>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>>>> 384)
>>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>>>> 213)
>>>> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:
>>>> 163)
>>>> org.ofbiz.minilang.method.callops.CallService.exec(CallService.java:
>>>> 246) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:
>>>> 1104) org.ofbiz.minilang.SimpleMethod.exec(SimpleMeth
>>> od.
>>>>
>>>> java:744)
>>>> org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:
>>>> 134)
>>>> org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:
>>>> 116)
>>>> org
>>>> .ofbiz
>>>> .minilang
>>>> .SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76)
>>>> org
>>>> .ofbiz
>>>> .minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51)
>>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>>>> 384)
>>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>>>> 213)
>>>> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:
>>>> 149)
>>>> org
>>>> .ofbiz
>>>> .webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:
>>>> 334)
>>>> org
>>>> .ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:
>>>> 454)
>>>> org
>>>> .ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:
>>>> 281)
>>>> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:
>>>> 198) javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
>>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>>>> org.apache.catalina.core.ApplicationF
>>> ilt
>>>>
>>>> erChain.internalDoFilter(ApplicationFilterChain.java:290)
>>>> org
>>>> .apache
>>>> .catalina
>>>> .core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
>>>> 206)
>>>> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:
>>>> 255)
>>>> org
>>>> .apache
>>>> .catalina
>>>> .core
>>>> .ApplicationFilterChain
>>>> .internalDoFilter(ApplicationFilterChain.java:235)
>>>> org
>>>> .apache
>>>> .catalina
>>>> .core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
>>>> 206)
>>>> org
>>>> .apache
>>>> .catalina
>>>> .core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>>>> org
>>>> .apache
>>>> .catalina
>>>> .core.StandardContextValve.invoke(StandardContextValve.java:175)
>>>> org
>>>> .apache
>>>> .catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
>>>> org
>>>> .apache
>>>> .catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>>>> org
>>>> .apache
>>>> .catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:
>>>> 109)
>>>> org
>>>> .apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:
>>>> 568)
>>>> org
>>>> .apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:
>>>> 286) org.apache.coyote.http1
>>> 1.H
>>>>
>>>> ttp11Processor.process(Http11Processor.java:844)
>>>> org.apache.coyote.http11.Http11Protocol
>>>> $Http11ConnectionHandler.process(Http11Protocol.java:583)
>>>> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:
>>>> 447) java.lang.Thread.run(Thread.java:595)
>>>> --------------------------------------------------------------------------------
>>>>> 2009-01-12 20:28:07,130 (http-0.0.0.0-8080-1) [ SimpleMethod.java:
>>>>> 748:ERROR] Error running the simple-method: Error in simple-method
>>>>> operation [ ]: java.lang.RuntimeException: Error in simple-method
>>>>> operation [ ]: java.lang.IllegalArgumentException: locale cannot
>>>>> be null
>>>>> 2009-01-12 20:28:07,131 (http-0.0.0.0-8080-1)
>>>>> [ TransactionUtil.java:311:WARN ] ---- exception report
>>>>> ----------------------------------------------------------
>>>>> [TransactionUtil.setRollbackOnly] Calling transaction
>>>>> setRollbackOnly; this stack trace shows where this is happening:
>>>>> Exception: java.lang.Exception Message: Error in simple-method
>>>>> [Creates a person, role and contactMechs [file:/home/ofbiz/trunk/
>>>>> applications/party/script/org/ofbiz/party/party/
>>>>> PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error
>>>>> running the simple-method: Error in simple-method operation [ ]:
>>>>> java.lang.RuntimeException: Error in simple-method operation [ ]:
>>>>> java.lang.IllegalArgumentException: locale cannot be null
>>>>> null ---- stack trace
>>>>> ---------------------------------------------------------------
>>>>> java.lang.Exception: Error in simple-method [Creates a person,
>>>>> role and contactMechs [file:/home/ofbiz/trunk/applications/party/
>>>>> script/org/ofbiz/party/party/
>>>>> PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error
>>>>> running the simple-method: Error in simple-method operation [ ]:
>>>>> java.lang.RuntimeException: Error in simple-method operation [ ]:
>>>>> java.lang.IllegalArgumentException: locale cannot be null
>>>>> null
>>>>> org
>>>>> .ofbiz
>>>>> .entity
>>>>> .transaction.TransactionUtil.setRollbackOnly(TransactionUtil.java:
>>>>> 311)
>>>>> org
>>>>> .ofbiz
>>>>> .entity.transaction.TransactionUtil.rollback(TransactionUtil.java:
>>>>> 258) org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:875)
>>>>> org
>>>>> .ofbiz
>>>>> .minilang
>>>>> .method.callops.CallSimpleMethod.exec(CallSimpleMethod.java:75)
>>>>> org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104)
>>>>> org.ofbiz.minilang.method.ifops.IfCompare.exec(IfCompare.java:123)
>>>>> org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104)
>>>>> org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:744)
>>>>> org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:
>>>>> 134)
>>>>> org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:
>>>>> 116)
>>>>> org
>>>>> .ofbiz
>>>>> .minilang
>>>>> .SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76)
>>>>> org
>>>>> .ofbiz
>>>>> .minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51)
>>>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>>>>> 384) org.ofbiz.service.ServiceDispatcher.run
>>> S
>>>> ync(ServiceDispatcher.java:213)
>>>> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:
>>>> 163)
>>>> org.ofbiz.minilang.method.callops.CallService.exec(CallService.java:
>>>> 246) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:
>>>> 1104) org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:744)
>>>> org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:
>>>> 134)
>>>> org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:
>>>> 116)
>>>> org
>>>> .ofbiz
>>>> .minilang
>>>> .SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76)
>>>> org
>>>> .ofbiz
>>>> .minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51)
>>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>>>> 384)
>>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>>>> 213)
>>>> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:
>>>> 149)
>>>> org
>>>> .ofbiz
>>>> .webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:
>>>> 334)
>>>> org
>>>> .ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:
>>>> 454) org.ofbiz.we
>>> bap
>>>>
>>>> p.control.RequestHandler.doRequest(RequestHandler.java:281)
>>>> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:
>>>> 198) javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
>>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>>>> org
>>>> .apache
>>>> .catalina
>>>> .core
>>>> .ApplicationFilterChain
>>>> .internalDoFilter(ApplicationFilterChain.java:290)
>>>> org
>>>> .apache
>>>> .catalina
>>>> .core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
>>>> 206)
>>>> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:
>>>> 255)
>>>> org
>>>> .apache
>>>> .catalina
>>>> .core
>>>> .ApplicationFilterChain
>>>> .internalDoFilter(ApplicationFilterChain.java:235)
>>>> org
>>>> .apache
>>>> .catalina
>>>> .core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
>>>> 206)
>>>> org
>>>> .apache
>>>> .catalina
>>>> .core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>>>> org
>>>> .apache
>>>> .catalina
>>>> .core.StandardContextValve.invoke(StandardContextValve.java:175)
>>>> org
>>>> .apache
>>>> .catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
>>>> org.apache.catalina.valves.ErrorReportVa
>>> lve
>>>>
>>>> .invoke(ErrorReportValve.java:102)
>>>> org
>>>> .apache
>>>> .catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:
>>>> 109)
>>>> org
>>>> .apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:
>>>> 568)
>>>> org
>>>> .apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:
>>>> 286)
>>>> org
>>>> .apache.coyote.http11.Http11Processor.process(Http11Processor.java:
>>>> 844) org.apache.coyote.http11.Http11Protocol
>>>> $Http11ConnectionHandler.process(Http11Protocol.java:583)
>>>> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:
>>>> 447) java.lang.Thread.run(Thread.java:595)
>>>> --------------------------------------------------------------------------------
>>>>> 2009-01-12 20:28:07,153 (http-0.0.0.0-8080-1) [ UtilXml.java:
>>>>> 241:INFO ] XML Read 0.021s: file:/home/ofbiz/trunk/applications/
>>>>> party/script/org/ofbiz/party/party/PartyPermissionServices.xml
>>>>> 2009-01-12 20:28:07,196 (http-0.0.0.0-8080-1) [ UtilXml.java:
>>>>> 241:INFO ] XML Read 0.028s: file:/home/ofbiz/trunk/framework/
>>>>> common/script/org/ofbiz/common/permission/
>>>>> CommonPermissionServices.xml
>>>>> 2009-01-12 20:28:07,197 (http-0.0.0.0-8080-1) [ Log.java:
>>>>> 94 :INFO ] Checking for primary permission PARTYMGR_CREATE
>>>>> 2009-01-12 20:28:07,198 (http-0.0.0.0-8080-1) [ Log.java:
>>>>> 94 :INFO ] Checking for alternate permission PARTYMGR_ROLE_CREATE
>>>>> 2009-01-12 20:28:07,200 (http-0.0.0.0-8080-1)
>>>>> [ ServiceDispatcher.java:578:INFO ] Sync service [ecommerce/
>>>>> partyRolePermissionCheck] finished in [68] milliseconds
>>>>> 2009-01-12 20:28:07,242 (http-0.0.0.0-8080-1) [ UtilXml.java:
>>>>> 241:INFO ] XML Read 0.041s: file:/home/ofbiz/trunk/applications/
>>>>> party/script/org/ofbiz/party/party/PartyServices.xml
>>>>> 2009-01-12 20:28:07,249 (http-0.0.0.0-8080-1)
>>>>> [ TransactionUtil.java:91 :WARN ] ---- exception report
>>>>> ----------------------------------------------------------
>>>>> [TransactionUtil.begin] active transaction marked for rollback in
>>>>> place, so no transaction begun; this stack trace shows when the
>>>>> exception began: Exception: java.lang.Exception Message: Tx Stack
>>>>> Placeholder ---- stack trace
>>>>> ---------------------------------------------------------------
>>>>> java.lang.Exception: Tx Stack Placeholder
>>>>> org
>>>>> .ofbiz
>>>>> .entity
>>>>> .transaction
>>>>> .TransactionUtil.setTransactionBeginStack(TransactionUtil.java:
>>>>> 636)
>>>>> org
>>>>> .ofbiz
>>>>> .entity.transaction.TransactionUtil.begin(TransactionUtil.java:
>>>>> 125)
>>>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>>>>> 302)
>>>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>>>>> 213)
>>>>> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:
>>>>> 149)
>>>>> org
>>>>> .ofbiz
>>>>> .webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:
>>>>> 334) org.ofbiz.webapp.control.
>>> R
>>>> equestHandler.runEvent(RequestHandler.java:454)
>>>> org
>>>> .ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:
>>>> 281)
>>>> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:
>>>> 198) javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
>>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>>>> org
>>>> .apache
>>>> .catalina
>>>> .core
>>>> .ApplicationFilterChain
>>>> .internalDoFilter(ApplicationFilterChain.java:290)
>>>> org
>>>> .apache
>>>> .catalina
>>>> .core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
>>>> 206)
>>>> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:
>>>> 255)
>>>> org
>>>> .apache
>>>> .catalina
>>>> .core
>>>> .ApplicationFilterChain
>>>> .internalDoFilter(ApplicationFilterChain.java:235)
>>>> org
>>>> .apache
>>>> .catalina
>>>> .core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
>>>> 206)
>>>> org
>>>> .apache
>>>> .catalina
>>>> .core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>>>> org
>>>> .apache
>>>> .catalina
>>>> .core.StandardContextValve.invoke(StandardContextValve.java:175)
>>>> org.apache.catalina.core.StandardHostValve.invoke(Stand
>>> ard
>>>>
>>>> HostValve.java:128)
>>>> org
>>>> .apache
>>>> .catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>>>> org
>>>> .apache
>>>> .catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:
>>>> 109)
>>>> org
>>>> .apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:
>>>> 568)
>>>> org
>>>> .apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:
>>>> 286)
>>>> org
>>>> .apache.coyote.http11.Http11Processor.process(Http11Processor.java:
>>>> 844) org.apache.coyote.http11.Http11Protocol
>>>> $Http11ConnectionHandler.process(Http11Protocol.java:583)
>>>> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:
>>>> 447) java.lang.Thread.run(Thread.java:595)
>>>> --------------------------------------------------------------------------------
>>>>> 2009-01-12 20:28:07,250 (http-0.0.0.0-8080-1) [ SimpleMethod.java:
>>>>> 726:WARN ] Error trying to begin transaction, could not process
>>>>> method: The current transaction is marked for rollback, not
>>>>> beginning a new transaction and aborting current operation; the
>>>>> rollbackOnly was caused by: Error in simple-method [Creates a
>>>>> person, role and contactMechs [file:/home/ofbiz/trunk/applications/
>>>>> party/script/org/ofbiz/party/party/
>>>>> PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error
>>>>> running the simple-method: Error in simple-method operation [ ]:
>>>>> java.lang.RuntimeException: Error in simple-method operation [ ]:
>>>>> java.lang.IllegalArgumentException: locale cannot be null
>>>>> null
>>>>> 2009-01-12 20:28:07,251 (http-0.0.0.0-8080-1) [ SimpleMethod.java:
>>>>> 727:WARN ] ---- exception report
>>>>> ----------------------------------------------------------
>>>>> Exception:
>>>>> org.ofbiz.entity.transaction.GenericTransactionException Message:
>>>>> The current transaction is marked for rollback, not beginning a
>>>>> new transaction and aborting current operation; the rollbackOnly
>>>>> was caused by: Error in simple-method [Creates a person, role and
>>>>> contactMechs [file:/home/ofbiz/trunk/applications/party/script/org/
>>>>> ofbiz/party/party/
>>>>> PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error
>>>>> running the simple-method: Error in simple-method operation [ ]:
>>>>> java.lang.RuntimeException: Error in simple-method operation [ ]:
>>>>> java.lang.IllegalArgumentException: locale cannot be null
>>>>> null ---- stack trace
>>>>> ---------------------------------------------------------------
>>>>> org.ofbiz.entity.transaction.GenericTransactionException: The
>>>>> current transaction is marked for rollback, not beginning a new
>>>>> transaction and aborting current operation; the rollbackOnly was
>>>>> caused by: Error in simple-method [Creates a person, role and
>>>>> contactMechs [file:/home/ofbiz/trunk/applications/party/script/org/
>>>>> ofbiz/party/party/
>>>>> PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error
>>>>> running the simple-method: Error in simple-method operation [ ]:
>>>>> java.lang.RuntimeException: Error in simple-method operation [ ]:
>>>>> java.lang.IllegalArgumentException: locale cannot be null
>>>>> null
>>>>> org
>>>>> .ofbiz
>>>>> .entity.transaction.TransactionUtil.begin(TransactionUtil.java:99)
>>>>> org
>>>>> .ofbiz
>>>>> .entity.transaction.TransactionUtil.begin(TransactionUtil.java:71)
>>>>> org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:723)
>>>>> org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:
>>>>> 134)
>>>>> org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:
>>>>> 116)
>>>>> org
>>>>> .ofbiz
>>>>> .minilang
>>>>> .SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76)
>>>>> org
>>>>> .ofbiz
>>>>> .minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51)
>>>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>>>>> 384)
>>>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>>>>> 213)
>>>>> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:
>>>>> 163)
>>>>> org
>>>>> .ofbiz.minilang.method.callops.CallService.exec(CallService.java:
>>>>> 246) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:
>>>>> 1104)
>>>>> org.ofbiz.minilang.method.ifops.IfNotEmpty.exec(IfNotEmpty.java:
>>>>> 91) org.ofbiz.minilang.SimpleMethod.runSubOps(Si
>>> m
>>>> pleMethod.java:1104)
>>>> org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:744)
>>>> org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:
>>>> 134)
>>>> org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:
>>>> 116)
>>>> org
>>>> .ofbiz
>>>> .minilang
>>>> .SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76)
>>>> org
>>>> .ofbiz
>>>> .minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51)
>>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>>>> 384)
>>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>>>> 213)
>>>> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:
>>>> 163)
>>>> org.ofbiz.minilang.method.callops.CallService.exec(CallService.java:
>>>> 246) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:
>>>> 1104) org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:744)
>>>> org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:
>>>> 134)
>>>> org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:
>>>> 116) org.ofbiz.minilang.SimpleServiceEngine.service
>>> Inv
>>>>
>>>> oker(SimpleServiceEngine.java:76)
>>>> org
>>>> .ofbiz
>>>> .minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51)
>>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>>>> 384)
>>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>>>> 213)
>>>> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:
>>>> 149)
>>>> org
>>>> .ofbiz
>>>> .webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:
>>>> 334)
>>>> org
>>>> .ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:
>>>> 454)
>>>> org
>>>> .ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:
>>>> 281)
>>>> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:
>>>> 198) javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
>>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>>>> org
>>>> .apache
>>>> .catalina
>>>> .core
>>>> .ApplicationFilterChain
>>>> .internalDoFilter(ApplicationFilterChain.java:290)
>>>> org
>>>> .apache
>>>> .catalina
>>>> .core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
>>>> 206) org.ofbiz.webapp.control.ContextFilter.doFilter(Con
>>> tex
>>>>
>>>> tFilter.java:255)
>>>> org
>>>> .apache
>>>> .catalina
>>>> .core
>>>> .ApplicationFilterChain
>>>> .internalDoFilter(ApplicationFilterChain.java:235)
>>>> org
>>>> .apache
>>>> .catalina
>>>> .core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
>>>> 206)
>>>> org
>>>> .apache
>>>> .catalina
>>>> .core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>>>> org
>>>> .apache
>>>> .catalina
>>>> .core.StandardContextValve.invoke(StandardContextValve.java:175)
>>>> org
>>>> .apache
>>>> .catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
>>>> org
>>>> .apache
>>>> .catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>>>> org
>>>> .apache
>>>> .catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:
>>>> 109)
>>>> org
>>>> .apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:
>>>> 568)
>>>> org
>>>> .apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:
>>>> 286)
>>>> org
>>>> .apache.coyote.http11.Http11Processor.process(Http11Processor.java:
>>>> 844) org.apache.coyote.http11.Http11Protocol
>>>> $Http11ConnectionHandler.process(Http11Protocol.java:583)
>>>> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIo
>>> End
>>>>
>>>> point.java:447) java.lang.Thread.run(Thread.java:595)
>>>> --------------------------------------------------------------------------------
>>>>> 2009-01-12 20:28:07,251 (http-0.0.0.0-8080-1)
>>>>> [ ServiceDispatcher.java:522:ERROR] Error in Service
>>>>> [createPartyRole]: Error trying to begin transaction, could not
>>>>> process method: The current transaction is marked for rollback,
>>>>> not beginning a new transaction and aborting current operation;
>>>>> the rollbackOnly was caused by: Error in simple-method [Creates a
>>>>> person, role and contactMechs [file:/home/ofbiz/trunk/applications/
>>>>> party/script/org/ofbiz/party/party/
>>>>> PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error
>>>>> running the simple-method: Error in simple-method operation [ ]:
>>>>> java.lang.RuntimeException: Error in simple-method operation [ ]:
>>>>> java.lang.IllegalArgumentException: locale cannot be null
>>>>> null
>>>>> 2009-01-12 20:28:07,252 (http-0.0.0.0-8080-1)
>>>>> [ TransactionUtil.java:315:INFO ]
>>>>> [TransactionUtil.setRollbackOnly] transaction rollback only not
>>>>> set, rollback only is already set.
>>>>> 2009-01-12 20:28:07,252 (http-0.0.0.0-8080-1)
>>>>> [ ServiceDispatcher.java:578:INFO ] Sync service [ecommerce/
>>>>> createPartyRole] finished in [121] milliseconds
>>>>> 2009-01-12 20:28:07,252 (http-0.0.0.0-8080-1)
>>>>> [ TransactionUtil.java:315:INFO ]
>>>>> [TransactionUtil.setRollbackOnly] transaction rollback only not
>>>>> set, rollback only is already set.
>>>>> 2009-01-12 20:28:07,253 (http-0.0.0.0-8080-1)
>>>>> [ ServiceDispatcher.java:522:ERROR] Error in Service [createLead]:
>>>>> Error:Error trying to begin transaction, could not process method:
>>>>> The current transaction is marked for rollback, not beginning a
>>>>> new transaction and aborting current operation; the rollbackOnly
>>>>> was caused by: Error in simple-method [Creates a person, role and
>>>>> contactMechs [file:/home/ofbiz/trunk/applications/party/script/org/
>>>>> ofbiz/party/party/
>>>>> PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error
>>>>> running the simple-method: Error in simple-method operation [ ]:
>>>>> java.lang.RuntimeException: Error in simple-method operation [ ]:
>>>>> java.lang.IllegalArgumentException: locale cannot be null
>>>>> null calling service createPartyRole in createLead
>>>>> 2009-01-12 20:28:07,253 (http-0.0.0.0-8080-1)
>>>>> [ TransactionUtil.java:315:INFO ]
>>>>> [TransactionUtil.setRollbackOnly] transaction rollback only not
>>>>> set, rollback only is already set.
>>>>> 2009-01-12 20:28:07,253 (http-0.0.0.0-8080-1)
>>>>> [ ServiceDispatcher.java:578:INFO ] Sync service [ecommerce/
>>>>> createLead] finished in [194] milliseconds
>>>>> 2009-01-12 20:28:07,254 (http-0.0.0.0-8080-1)
>>>>> [ TransactionUtil.java:315:INFO ]
>>>>> [TransactionUtil.setRollbackOnly] transaction rollback only not
>>>>> set, rollback only is already set.
>>>>> 2009-01-12 20:28:07,254 (http-0.0.0.0-8080-1)
>>>>> [ ServiceDispatcher.java:522:ERROR] Error in Service
>>>>> [createLeadFromWebForm]: Error:Error:Error trying to begin
>>>>> transaction, could not process method: The current transaction is
>>>>> marked for rollback, not beginning a new transaction and aborting
>>>>> current operation; the rollbackOnly was caused by: Error in simple-
>>>>> method [Creates a person, role and contactMechs [file:/home/ofbiz/
>>>>> trunk/applications/party/script/org/ofbiz/party/party/
>>>>> PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error
>>>>> running the simple-method: Error in simple-method operation [ ]:
>>>>> java.lang.RuntimeException: Error in simple-method operation [ ]:
>>>>> java.lang.IllegalArgumentException: locale cannot be null
>>>>> null calling service createPartyRole in createLead calling service
>>>>> createLead in createLeadFromWebForm
>>>>> 2009-01-12 20:28:07,255 (http-0.0.0.0-8080-1)
>>>>> [ TransactionUtil.java:275:ERROR] ---- exception report
>>>>> ----------------------------------------------------------
>>>>> [TransactionUtil.rollback] Exception: java.lang.Exception Message:
>>>>> Stack Trace ---- stack trace
>>>>> ---------------------------------------------------------------
>>>>> java.lang.Exception: Stack Trace
>>>>> org
>>>>> .ofbiz
>>>>> .entity.transaction.TransactionUtil.rollback(TransactionUtil.java:
>>>>> 274)
>>>>> org
>>>>> .ofbiz
>>>>> .entity.transaction.TransactionUtil.rollback(TransactionUtil.java:
>>>>> 256)
>>>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>>>>> 526)
>>>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>>>>> 213)
>>>>> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:
>>>>> 149)
>>>>> org
>>>>> .ofbiz
>>>>> .webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:
>>>>> 334)
>>>>> org
>>>>> .ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:
>>>>> 454)
>>>>> org
>>>>> .ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:
>>>>> 281) org.ofbiz.webapp.control.Co
>>> n
>>>> trolServlet.doGet(ControlServlet.java:198)
>>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
>>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>>>> org
>>>> .apache
>>>> .catalina
>>>> .core
>>>> .ApplicationFilterChain
>>>> .internalDoFilter(ApplicationFilterChain.java:290)
>>>> org
>>>> .apache
>>>> .catalina
>>>> .core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
>>>> 206)
>>>> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:
>>>> 255)
>>>> org
>>>> .apache
>>>> .catalina
>>>> .core
>>>> .ApplicationFilterChain
>>>> .internalDoFilter(ApplicationFilterChain.java:235)
>>>> org
>>>> .apache
>>>> .catalina
>>>> .core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
>>>> 206)
>>>> org
>>>> .apache
>>>> .catalina
>>>> .core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>>>> org
>>>> .apache
>>>> .catalina
>>>> .core.StandardContextValve.invoke(StandardContextValve.java:175)
>>>> org
>>>> .apache
>>>> .catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
>>>> org
>>>> .apache
>>>> .catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>>>> org.apache.catalina.core.StandardEngineValve.invok
>>> e(S
>>>>
>>>> tandardEngineValve.java:109)
>>>> org
>>>> .apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:
>>>> 568)
>>>> org
>>>> .apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:
>>>> 286)
>>>> org
>>>> .apache.coyote.http11.Http11Processor.process(Http11Processor.java:
>>>> 844) org.apache.coyote.http11.Http11Protocol
>>>> $Http11ConnectionHandler.process(Http11Protocol.java:583)
>>>> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:
>>>> 447) java.lang.Thread.run(Thread.java:595)
>>>> --------------------------------------------------------------------------------
>>>>> 2009-01-12 20:28:07,255 (http-0.0.0.0-8080-1)
>>>>> [ TransactionUtil.java:285:INFO ] [TransactionUtil.rollback]
>>>>> transaction rolled back
>>>>> 2009-01-12 20:28:07,255 (http-0.0.0.0-8080-1)
>>>>> [ ServiceDispatcher.java:578:INFO ] Sync service [ecommerce/
>>>>> createLeadFromWebForm] finished in [236] milliseconds
>>>>> 2009-01-12 20:28:07,327 (http-0.0.0.0-8080-1)
>>>>> [ RequestHandler.java:314:ERROR] Request webFormSubmit caused an
>>>>> error with the following message: Error:Error:Error trying to
>>>>> begin transaction, could not process method: The current
>>>>> transaction is marked for rollback, not beginning a new
>>>>> transaction and aborting current operation; the rollbackOnly was
>>>>> caused by: Error in simple-method [Creates a person, role and
>>>>> contactMechs [file:/home/ofbiz/trunk/applications/party/script/org/
>>>>> ofbiz/party/party/
>>>>> PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error
>>>>> running the simple-method: Error in simple-method operation [ ]:
>>>>> java.lang.RuntimeException: Error in simple-method operation [ ]:
>>>>> java.lang.IllegalArgumentException: locale cannot be null
>>>>> null calling service createPartyRole in createLead calling service
>>>>> createLead in createLeadFromWebForm
>>>>> 2009-01-12 20:28:07,328 (http-0.0.0.0-8080-1)
>>>>> [ RequestHandler.java:412:INFO ] [RequestHandler.doRequest]:
>>>>> Response is a URL redirect.
>>>>> sessionId=BBA68197213FF2F01514F97BB85687A6.jvm1
>>>>> 2009-01-12 20:28:07,328 (http-0.0.0.0-8080-1)
>>>>> [ RequestHandler.java:539:INFO ] [Sending redirect]: http://www.globalera.com
>>>>> sessionId=BBA68197213FF2F01514F97BB85687A6.jvm1
>>>>> 2009-01-12 20:28:07,376 (http-0.0.0.0-8080-1)
>>>>> [ ControlServlet.java:299:INFO ] [[[webFormSubmit] Done rendering
>>>>> page, Servlet Finished- total:0.64,since last([webFormSubmit]
>>>>> S...):0.638]]
>>>>>
>>>>> ----- Original Message -----
>>>>> From: "Adrian Crum" <[hidden email]>
>>>>> To: [hidden email]
>>>>> Sent: Monday, January 12, 2009 8:31:07 AM (GMT-0700) America/Denver
>>>>> Subject: Re: locale error in simple method
>>>>>
>>>>> Vince,
>>>>>
>>>>> We will need a complete log to track this down. To be specific, I
>>>>> need
>>>>> to see the entire Java stack trace.
>>>>>
>>>>> -Adrian
>>>>>
>>>>> Vince M. Clark wrote:
>>>>>> I created a custom simple method to respond to a request from a
>>>>>> web form. Getting a locale error and cannot figure out where
>>>>>> locale is required.
>>>>>>
>>>>>> <simple-method method-name="createLeadFromWebForm" short-
>>>>>> description="Create Lead from Web Form" login-required="false">
>>>>>> <entity-one entity-name="UserLogin" value-name="userlogin">
>>>>>> <field-map field-name="userLoginId" value="system"/>
>>>>>> </entity-one>
>>>>>> <set-current-user-login value-name="userlogin"/>
>>>>>> <set field="newLead.firstName" from-field="parameters.firstName"/>
>>>>>> <set field="newLead.lastName" from-field="parameters.lastName"/>
>>>>>> <set field="newLead.groupName" from-field="parameters.groupName"/>
>>>>>> <set field="newLead.emailAddress" from-
>>>>>> field="parameters.emailAddress"/>
>>>>>> <set field="newLead.contactNumber" from-
>>>>>> field="parameters.contactNumber"/>
>>>>>> <set field="newLead.address1" from-field="parameters.address1"/>
>>>>>> <set field="newLead.countryGeoId" from-
>>>>>> field="parameters.countryGeoId"/>
>>>>>> <set field="newLead.city" from-field="parameters.city"/>
>>>>>> <set field="newLead.stateProvinceGeoId" from-
>>>>>> field="parameters.stateProvinceGeoId"/>
>>>>>> <set field="newLead.postalCode" from-
>>>>>> field="parameters.postalCode"/>
>>>>>> <set field="newLead.quickAdd" from-field="parameters.quickAdd"/>
>>>>>> <call-service service-name="createLead" in-map-name="newLead">
>>>>>> <result-to-field result-name="partyId" field="partyId"/>
>>>>>> </call-service>
>>>>>> </simple-method>
>>>>>>
>>>>>> The simple method that I am calling "createLead" calls other
>>>>>> simple methods. One of them is createPersonRoleAndContactMechs,
>>>>>> which throws the following exception:
>>>>>> 2009-01-11 18:43:36,887 (http-0.0.0.0-8080-1)
>>>>>> [ RequestHandler.java:314:ERROR] Request webFormSubmit caused an
>>>>>> error with the following message: Error:Error:Error trying to
>>>>>> begin transaction, could not process method: The current
>>>>>> transaction is marked for rollback, not beginning a new
>>>>>> transaction and aborting current operation; the rollbackOnly was
>>>>>> caused by: Error in simple-method [Creates a person, role and
>>>>>> contactMechs [file:/home/ofbiz/trunk/applications/party/script/
>>>>>> org/ofbiz/party/party/
>>>>>> PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error
>>>>>> running the simple-method: Error in simple-method operation [ ]:
>>>>>> java.lang.RuntimeException: Error in simple-method operation [ ]:
>>>>>> java.lang.IllegalArgumentException: locale cannot be null
>>>>>> null calling service createPartyRole in createLead calling
>>>>>> service createLead in createLeadFromWebForm
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>
>>
>
>
Reply | Threaded
Open this post in threaded view
|

Re: locale error in simple method

Vince Clark
In reply to this post by Vince Clark
Upgrading to latest trunk seemed to do the trick. No missing locale error and lead was created correctly. Note that this was done on a totally separate instance with only seed data installed.

----- Original Message -----
From: "Bruno Busco" <[hidden email]>
To: [hidden email]
Sent: Wednesday, January 14, 2009 3:28:43 AM (GMT-0700) America/Denver
Subject: Fwd: locale error in simple method

oops,
sorry to have posted this to the USER ML, I apologize, it was
intended, of course, as a DEV discussion.

-Bruno


---------- Forwarded message ----------
From: Bruno Busco <[hidden email]>
Date: 2009/1/14
Subject: Re: locale error in simple method
To: [hidden email]


I think that Vince's situation is very common.

Whenever you get your ofbiz put in production (or a sort of) you get
really "apprensive" and try to not update your working box.
This makes hard also to get bug fixes only from the trunk.

Could we think to try to have a new release branch?
I mean a branch where only bug fix are merged from the trunk?
I know that this has been discussed many times but we should give it a
try. The framework-only release could be still something in the agenda
and should not be affected by the existence of the new complete
release branch.

The last release branch (4.0) seems now too far from the trunk head
and we often suggest not to use it any more. This is fine because we
want people on the "living edge" of the code but then we will get them
in the "should I update or not?" situation.

Having a new release branch we will have most people living there and
contributing back bug-fix patch or bug reports that will still be used
in the trunk.

I see many new features coming into the trunk and this is really great
but, may be, many more would come if who is going to commit them knows
that the community could always rely on an unaffetced "stable" branch.

-Bruno


2009/1/14 Vince M. Clark <[hidden email]>:

> I don't waste my time with 4.0.
>
> Preaching doesn't bother me. I'm used to it and have done a bit myself.
>
> But to be clear, I'm very collaborative, and am not holding anything back from the community. This particular instance I have not upgraded because it is production (sort of) and I have had difficulty upgrading other instances recently because of some seed data issues, and possibly other reasons. Basically related to some of the new stuff like visual themes.
>
> I will try my custom service against a current download of trunk to verify that it isn't just a version issue.
>
> ----- Original Message -----
> From: "David E Jones" <[hidden email]>
> To: [hidden email]
> Sent: Tuesday, January 13, 2009 6:06:06 PM (GMT-0700) America/Denver
> Subject: Re: locale error in simple method
>
>
> Is that the trunk rev or in the release4.0 branch?
>
> Either way it's a few months old (looks like 23 Jul 2008)... it would
> take a fair amount of time for someone to go back and try to reproduce
> the error on that revision. Have you considered updating to a newer
> version of OFBiz?
>
> Just as an FYI, I usually recommend that people working from the trunk
> really collaborate with the community, an that usually means needing
> to update at least once per day (or at the _very_ least a couple of
> times per week) until the development part of each cycle is done (ie
> before doing integration or business level testing, if that means
> anything for your process).
>
> There are lots of reasons for this, and what you're running into is
> perhaps the most important: by sticking with that revision you're
> basically going it alone and choosing not to collaborate with the
> community, which makes it hard for others in the community to
> collaborate with you. The same is true for the practice of changing
> things in the OFBiz framework or core parts of different applications
> and not contributing it back to the project. The project suffers a
> little, but the project will do fine as there are LOTS of people
> contributing back. Who really suffers is the end-user organization
> that has to foot the bill of maintaining these things instead of
> sharing that with the community.
>
> Sorry for the preaching, but on the other hand thanks for the soap box
> to stand on for a little sermon.
>
> -David
>
>
> On Jan 13, 2009, at 4:34 PM, Vince M. Clark wrote:
>
>> Thanks David. Rev is 679168
>>
>> ----- Original Message -----
>> From: "David E Jones" <[hidden email]>
>> To: [hidden email]
>> Sent: Tuesday, January 13, 2009 5:36:35 PM (GMT-0700) America/Denver
>> Subject: Re: locale error in simple method
>>
>>
>> Stepping back even more... which version/revision of OFBiz are you
>> using?
>>
>> Based on what you wrote, with the browser submitting a form to the
>> OFBiz web server, as long as it is going through the ControlServlet
>> and you are calling the service you described through a request-map ->
>> event tag, then it should work the same way as anything else in OFBiz.
>>
>> Unless something is broken somewhere then OFBiz should be getting a
>> locale no matter what, even if it is the system default locale. It
>> looks like somehow that isn't making it into the service call (you
>> could verify that by adding a log tag in your simple-method to print
>> the ${locale} string). That's part of the reason I'm about the
>> revision you are using... it could be a real issue that most of us
>> aren't seeing if you're not using a recent trunk revision.
>>
>> Of, if the assumptions in the 2nd paragraph above are not correct (ie
>> you are calling things differently) then there could be issues there
>> as well.
>>
>> -David
>>
>>
>> On Jan 13, 2009, at 3:59 PM, Vince M. Clark wrote:
>>
>>>
>>> First a disclaimer (plea for mercy). I am an ERP person, not a web
>>> or UI person. So all this http, session, context stuff is rather
>>> confusing to me.
>>>
>>> I've been digging on this issue and want to make sure something is
>>> very clear because I think it may have something to do with the
>>> problem.
>>>
>>> OfBiz is NOT rendering any screens for me. I'm using it as kind of a
>>> "cheap" web service. I have a static html web form served by Apache
>>> web server. The form action calls OfBiz, and then I redirect back to
>>> a static html page. So OfBiz just accepts the request, processes it,
>>> and redirects. No screen rendering whatsoever by OfBiz.
>>>
>>> I'm pointing this out because of one of the comments I found in a
>>> java class (which of course I cannot find now) that said something
>>> about if locale was not in the context then the browser (or maybe
>>> session) default would be used.
>>>
>>> So to simplify (or maybe over simplify) my question, is there
>>> something I should be doing in my simple method to put locale in the
>>> context before I call createLead. Also, can someone give me a tip on
>>> how to iterate through whatever is in the context and write it out
>>> to the log so I can see it.
>>>
>>> ----- Original Message -----
>>> From: "Vince M. Clark" <[hidden email]>
>>> To: [hidden email]
>>> Sent: Tuesday, January 13, 2009 9:17:40 AM (GMT-0700) America/Denver
>>> Subject: Re: locale error in simple method
>>>
>>> Here is the service definition and the simple method. Thank you for
>>> your help.
>>>
>>> <service name="createLeadFromWebForm" engine="simple"
>>> location="org/ofbiz/ge/PartyServices.xml"
>>> invoke="createLeadFromWebForm" auth="false">
>>> <description>Add a New Lead from a Web Form</description>
>>> <attribute name="groupName" type="String" mode="IN"
>>> optional="false"/>
>>> <attribute name="firstName" type="String" mode="IN"
>>> optional="false"/>
>>> <attribute name="lastName" type="String" mode="IN" optional="false"/>
>>> <attribute name="note" type="String" mode="IN" optional="true"/>
>>> <attribute name="emailAddress" type="String" mode="IN"
>>> optional="false"/>
>>> <attribute name="postalCode" type="String" mode="IN"
>>> optional="true"/>
>>> <attribute name="countryGeoId" type="String" mode="IN"
>>> optional="true"/>
>>> <attribute name="address1" type="String" mode="IN" optional="true"/>
>>> <attribute name="city" type="String" mode="IN" optional="true"/>
>>> <attribute name="stateProvinceGeoId" type="String" mode="IN"
>>> optional="true"/>
>>> <attribute name="contactNumber" type="String" mode="IN"
>>> optional="true"/>
>>> <attribute name="quickAdd" type="String" mode="IN" optional="true"/>
>>> </service>
>>>
>>> <simple-method method-name="createLeadFromWebForm" short-
>>> description="Create Lead from Web Form" login-required="false">
>>> <entity-one entity-name="UserLogin" value-name="userlogin">
>>> <field-map field-name="userLoginId" value="system"/>
>>> </entity-one>
>>> <set-current-user-login value-name="userlogin"/>
>>> <set field="newLead.firstName" from-field="parameters.firstName"/>
>>> <set field="newLead.lastName" from-field="parameters.lastName"/>
>>> <set field="newLead.groupName" from-field="parameters.groupName"/>
>>> <set field="newLead.emailAddress" from-
>>> field="parameters.emailAddress"/>
>>> <set field="newLead.contactNumber" from-
>>> field="parameters.contactNumber"/>
>>> <set field="newLead.address1" from-field="parameters.address1"/>
>>> <set field="newLead.countryGeoId" from-
>>> field="parameters.countryGeoId"/>
>>> <set field="newLead.city" from-field="parameters.city"/>
>>> <set field="newLead.stateProvinceGeoId" from-
>>> field="parameters.stateProvinceGeoId"/>
>>> <set field="newLead.postalCode" from-field="parameters.postalCode"/>
>>> <set field="newLead.quickAdd" from-field="parameters.quickAdd"/>
>>> <call-service service-name="createLead" in-map-name="newLead">
>>> <result-to-field result-name="partyId" field="partyId"/>
>>> </call-service>
>>> </simple-method>
>>>
>>> ----- Original Message -----
>>> From: "Adrian Crum" <[hidden email]>
>>> To: [hidden email]
>>> Sent: Tuesday, January 13, 2009 9:22:57 AM (GMT-0700) America/Denver
>>> Subject: Re: locale error in simple method
>>>
>>> If you attach the service definition, I can take a look at it.
>>>
>>> -Adrian
>>>
>>> Vince M. Clark wrote:
>>>> When is that usually set? When a user logs in? My service just sets
>>>> the userLogin to system. Could that be a source of the problem?
>>>>
>>>> ----- Original Message -----
>>>> From: "Adrian Crum" <[hidden email]>
>>>> To: [hidden email]
>>>> Sent: Tuesday, January 13, 2009 9:05:01 AM (GMT-0700) America/Denver
>>>> Subject: Re: locale error in simple method
>>>>
>>>> Vince,
>>>>
>>>> I checked to see if something changed in the framework that would
>>>> cause
>>>> this error, but I didn't find anything. There must be a problem with
>>>> the service definition - which is preventing the locale parameter
>>>> from
>>>> being included in the service context.
>>>>
>>>> -Adrian
>>>>
>>>> Vince M. Clark wrote:
>>>>> Here is the entire trace. Note that the first few lines are just
>>>>> xml validation errors.
>>>>>
>>>>>
>>>>> 2009-01-12 20:28:07,054 (http-0.0.0.0-8080-1) [ UtilXml.java:
>>>>> 660:ERROR] XmlFileLoader: File file:/home/ofbiz/trunk/hot-deploy/
>>>>> ge/script/org/ofbiz/ge/PartyServices.xml process error. Line: 88.
>>>>> Error message: cvc-complex-type.3.2.2: Attribute 'field-name' is
>>>>> not allowed to appear in element 'if-empty'.
>>>>> 2009-01-12 20:28:07,055 (http-0.0.0.0-8080-1) [ UtilXml.java:
>>>>> 660:ERROR] XmlFileLoader: File file:/home/ofbiz/trunk/hot-deploy/
>>>>> ge/script/org/ofbiz/ge/PartyServices.xml process error. Line: 88.
>>>>> Error message: cvc-complex-type.4: Attribute 'field' must appear
>>>>> on element 'if-empty'.
>>>>> 2009-01-12 20:28:07,055 (http-0.0.0.0-8080-1) [ UtilXml.java:
>>>>> 660:ERROR] XmlFileLoader: File file:/home/ofbiz/trunk/hot-deploy/
>>>>> ge/script/org/ofbiz/ge/PartyServices.xml process error. Line: 122.
>>>>> Error message: cvc-complex-type.3.2.2: Attribute 'field' is not
>>>>> allowed to appear in element 'result-to-field'.
>>>>> 2009-01-12 20:28:07,056 (http-0.0.0.0-8080-1) [ UtilXml.java:
>>>>> 241:INFO ] XML Read 0.026s: file:/home/ofbiz/trunk/hot-deploy/ge/
>>>>> script/org/ofbiz/ge/PartyServices.xml
>>>>> 2009-01-12 20:28:07,059 (http-0.0.0.0-8080-1) [ Log.java:
>>>>> 94 :INFO ] locale is en_US // here is where I set a locale
>>>>> variable and outputted it in the log
>>>>>
>>>>> 2009-01-12 20:28:07,087 (http-0.0.0.0-8080-1) [ UtilXml.java:
>>>>> 241:INFO ] XML Read 0.027s: file:/home/ofbiz/trunk/applications/
>>>>> marketing/script/org/ofbiz/sfa/lead/LeadServices.xml
>>>>> 2009-01-12 20:28:07,125 (http-0.0.0.0-8080-1) [ UtilXml.java:
>>>>> 241:INFO ] XML Read 0.028s: file:/home/ofbiz/trunk/applications/
>>>>> party/script/org/ofbiz/party/party/PartySimpleMethods.xml
>>>>> 2009-01-12 20:28:07,129 (http-0.0.0.0-8080-1) [ SimpleMethod.java:
>>>>> 1109:ERROR] ---- runtime exception report
>>>>> -------------------------------------------------- Error in simple-
>>>>> method operation [ ]: java.lang.IllegalArgumentException: locale
>>>>> cannot be null Exception: java.lang.IllegalArgumentException
>>>>> Message: locale cannot be null ---- stack trace
>>>>> ---------------------------------------------------------------
>>>>> java.lang.IllegalArgumentException: locale cannot be null
>>>>> org
>>>>> .ofbiz
>>>>> .base.util.UtilProperties.getResourceBundle(UtilProperties.java:
>>>>> 480)
>>>>> org.ofbiz.base.util.UtilProperties.getMessage(UtilProperties.java:
>>>>> 385)
>>>>> org
>>>>> .ofbiz
>>>>> .minilang
>>>>> .operation.SimpleMapOperation.addMessage(SimpleMapOperation.java:
>>>>> 62)
>>>>> org
>>>>> .ofbiz.minilang.operation.ValidateMethod.exec(ValidateMethod.java:
>>>>> 100)
>>>>> org
>>>>> .ofbiz
>>>>> .minilang.operation.SimpleMapProcess.exec(SimpleMapProcess.java:
>>>>> 51)
>>>>> org.ofbiz.minilang.operation.MapProcessor.exec(MapProcessor.java:
>>>>> 80) org.ofbiz.minilang.method.callops.CallSimpleMapProcessor.ex
>>> e
>>>> c(CallSimpleMapProcessor.java:91)
>>>> org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104)
>>>> org.ofbiz.minilang.method.ifops.IfNotEmpty.exec(IfNotEmpty.java:91)
>>>> org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104)
>>>> org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:744)
>>>> org
>>>> .ofbiz
>>>> .minilang
>>>> .method.callops.CallSimpleMethod.exec(CallSimpleMethod.java:75)
>>>> org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104)
>>>> org.ofbiz.minilang.method.ifops.IfCompare.exec(IfCompare.java:123)
>>>> org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104)
>>>> org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:744)
>>>> org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:
>>>> 134)
>>>> org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:
>>>> 116)
>>>> org
>>>> .ofbiz
>>>> .minilang
>>>> .SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76)
>>>> org
>>>> .ofbiz
>>>> .minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51)
>>>> org.ofbiz.service.ServiceDispatcher.runSync(Servic
>>> eDi
>>>>
>>>> spatcher.java:384)
>>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>>>> 213)
>>>> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:
>>>> 163)
>>>> org.ofbiz.minilang.method.callops.CallService.exec(CallService.java:
>>>> 246) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:
>>>> 1104) org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:744)
>>>> org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:
>>>> 134)
>>>> org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:
>>>> 116)
>>>> org
>>>> .ofbiz
>>>> .minilang
>>>> .SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76)
>>>> org
>>>> .ofbiz
>>>> .minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51)
>>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>>>> 384)
>>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>>>> 213)
>>>> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:
>>>> 149)
>>>> org
>>>> .ofbiz
>>>> .webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:
>>>> 334) org.ofbiz.webapp.control.Re
>>> que
>>>>
>>>> stHandler.runEvent(RequestHandler.java:454)
>>>> org
>>>> .ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:
>>>> 281)
>>>> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:
>>>> 198) javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
>>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>>>> org
>>>> .apache
>>>> .catalina
>>>> .core
>>>> .ApplicationFilterChain
>>>> .internalDoFilter(ApplicationFilterChain.java:290)
>>>> org
>>>> .apache
>>>> .catalina
>>>> .core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
>>>> 206)
>>>> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:
>>>> 255)
>>>> org
>>>> .apache
>>>> .catalina
>>>> .core
>>>> .ApplicationFilterChain
>>>> .internalDoFilter(ApplicationFilterChain.java:235)
>>>> org
>>>> .apache
>>>> .catalina
>>>> .core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
>>>> 206)
>>>> org
>>>> .apache
>>>> .catalina
>>>> .core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>>>> org
>>>> .apache
>>>> .catalina
>>>> .core.StandardContextValve.invoke(StandardContextValve.java:175)
>>>> org.apache.catalina.core.StandardHostValve.invoke(StandardH
>>> ost
>>>>
>>>> Valve.java:128)
>>>> org
>>>> .apache
>>>> .catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>>>> org
>>>> .apache
>>>> .catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:
>>>> 109)
>>>> org
>>>> .apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:
>>>> 568)
>>>> org
>>>> .apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:
>>>> 286) org.apa
>>>> che.coyote.http11.Http11Processor.process(Http11Processor.java:844)
>>>> org.apache.coyote.http11.Http11Protocol
>>>> $Http11ConnectionHandler.process(Http11Protocol.java:583)
>>>> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:
>>>> 447) java.lang.Thread.run(Thread.java:595)
>>>> --------------------------------------------------------------------------------
>>>>> 2009-01-12 20:28:07,130 (http-0.0.0.0-8080-1) [ SimpleMethod.java:
>>>>> 1109:ERROR] ---- runtime exception report
>>>>> -------------------------------------------------- Error in simple-
>>>>> method operation [ ]: java.lang.RuntimeException: Error in simple-
>>>>> method operation [ ]: java.lang.IllegalArgumentException: locale
>>>>> cannot be null Exception: java.lang.RuntimeException Message:
>>>>> Error in simple-method operation [ ]:
>>>>> java.lang.IllegalArgumentException: locale cannot be null ----
>>>>> stack trace
>>>>> ---------------------------------------------------------------
>>>>> java.lang.RuntimeException: Error in simple-method operation [ ]:
>>>>> java.lang.IllegalArgumentException: locale cannot be null
>>>>> org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1110)
>>>>> org.ofbiz.minilang.method.ifops.IfNotEmpty.exec(IfNotEmpty.java:
>>>>> 91) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:
>>>>> 1104) org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:744)
>>>>> org.ofbiz.minilang.method.callops.CallSimpleMethod.exec(C
>>> a
>>>> llSimpleMethod.java:75)
>>>> org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104)
>>>> org.ofbiz.minilang.method.ifops.IfCompare.exec(IfCompare.java:123)
>>>> org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104)
>>>> org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:744)
>>>> org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:
>>>> 134)
>>>> org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:
>>>> 116)
>>>> org
>>>> .ofbiz
>>>> .minilang
>>>> .SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76)
>>>> org
>>>> .ofbiz
>>>> .minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51)
>>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>>>> 384)
>>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>>>> 213)
>>>> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:
>>>> 163)
>>>> org.ofbiz.minilang.method.callops.CallService.exec(CallService.java:
>>>> 246) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:
>>>> 1104) org.ofbiz.minilang.SimpleMethod.exec(SimpleMeth
>>> od.
>>>>
>>>> java:744)
>>>> org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:
>>>> 134)
>>>> org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:
>>>> 116)
>>>> org
>>>> .ofbiz
>>>> .minilang
>>>> .SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76)
>>>> org
>>>> .ofbiz
>>>> .minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51)
>>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>>>> 384)
>>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>>>> 213)
>>>> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:
>>>> 149)
>>>> org
>>>> .ofbiz
>>>> .webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:
>>>> 334)
>>>> org
>>>> .ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:
>>>> 454)
>>>> org
>>>> .ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:
>>>> 281)
>>>> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:
>>>> 198) javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
>>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>>>> org.apache.catalina.core.ApplicationF
>>> ilt
>>>>
>>>> erChain.internalDoFilter(ApplicationFilterChain.java:290)
>>>> org
>>>> .apache
>>>> .catalina
>>>> .core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
>>>> 206)
>>>> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:
>>>> 255)
>>>> org
>>>> .apache
>>>> .catalina
>>>> .core
>>>> .ApplicationFilterChain
>>>> .internalDoFilter(ApplicationFilterChain.java:235)
>>>> org
>>>> .apache
>>>> .catalina
>>>> .core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
>>>> 206)
>>>> org
>>>> .apache
>>>> .catalina
>>>> .core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>>>> org
>>>> .apache
>>>> .catalina
>>>> .core.StandardContextValve.invoke(StandardContextValve.java:175)
>>>> org
>>>> .apache
>>>> .catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
>>>> org
>>>> .apache
>>>> .catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>>>> org
>>>> .apache
>>>> .catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:
>>>> 109)
>>>> org
>>>> .apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:
>>>> 568)
>>>> org
>>>> .apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:
>>>> 286) org.apache.coyote.http1
>>> 1.H
>>>>
>>>> ttp11Processor.process(Http11Processor.java:844)
>>>> org.apache.coyote.http11.Http11Protocol
>>>> $Http11ConnectionHandler.process(Http11Protocol.java:583)
>>>> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:
>>>> 447) java.lang.Thread.run(Thread.java:595)
>>>> --------------------------------------------------------------------------------
>>>>> 2009-01-12 20:28:07,130 (http-0.0.0.0-8080-1) [ SimpleMethod.java:
>>>>> 748:ERROR] Error running the simple-method: Error in simple-method
>>>>> operation [ ]: java.lang.RuntimeException: Error in simple-method
>>>>> operation [ ]: java.lang.IllegalArgumentException: locale cannot
>>>>> be null
>>>>> 2009-01-12 20:28:07,131 (http-0.0.0.0-8080-1)
>>>>> [ TransactionUtil.java:311:WARN ] ---- exception report
>>>>> ----------------------------------------------------------
>>>>> [TransactionUtil.setRollbackOnly] Calling transaction
>>>>> setRollbackOnly; this stack trace shows where this is happening:
>>>>> Exception: java.lang.Exception Message: Error in simple-method
>>>>> [Creates a person, role and contactMechs [file:/home/ofbiz/trunk/
>>>>> applications/party/script/org/ofbiz/party/party/
>>>>> PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error
>>>>> running the simple-method: Error in simple-method operation [ ]:
>>>>> java.lang.RuntimeException: Error in simple-method operation [ ]:
>>>>> java.lang.IllegalArgumentException: locale cannot be null
>>>>> null ---- stack trace
>>>>> ---------------------------------------------------------------
>>>>> java.lang.Exception: Error in simple-method [Creates a person,
>>>>> role and contactMechs [file:/home/ofbiz/trunk/applications/party/
>>>>> script/org/ofbiz/party/party/
>>>>> PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error
>>>>> running the simple-method: Error in simple-method operation [ ]:
>>>>> java.lang.RuntimeException: Error in simple-method operation [ ]:
>>>>> java.lang.IllegalArgumentException: locale cannot be null
>>>>> null
>>>>> org
>>>>> .ofbiz
>>>>> .entity
>>>>> .transaction.TransactionUtil.setRollbackOnly(TransactionUtil.java:
>>>>> 311)
>>>>> org
>>>>> .ofbiz
>>>>> .entity.transaction.TransactionUtil.rollback(TransactionUtil.java:
>>>>> 258) org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:875)
>>>>> org
>>>>> .ofbiz
>>>>> .minilang
>>>>> .method.callops.CallSimpleMethod.exec(CallSimpleMethod.java:75)
>>>>> org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104)
>>>>> org.ofbiz.minilang.method.ifops.IfCompare.exec(IfCompare.java:123)
>>>>> org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104)
>>>>> org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:744)
>>>>> org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:
>>>>> 134)
>>>>> org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:
>>>>> 116)
>>>>> org
>>>>> .ofbiz
>>>>> .minilang
>>>>> .SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76)
>>>>> org
>>>>> .ofbiz
>>>>> .minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51)
>>>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>>>>> 384) org.ofbiz.service.ServiceDispatcher.run
>>> S
>>>> ync(ServiceDispatcher.java:213)
>>>> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:
>>>> 163)
>>>> org.ofbiz.minilang.method.callops.CallService.exec(CallService.java:
>>>> 246) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:
>>>> 1104) org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:744)
>>>> org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:
>>>> 134)
>>>> org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:
>>>> 116)
>>>> org
>>>> .ofbiz
>>>> .minilang
>>>> .SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76)
>>>> org
>>>> .ofbiz
>>>> .minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51)
>>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>>>> 384)
>>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>>>> 213)
>>>> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:
>>>> 149)
>>>> org
>>>> .ofbiz
>>>> .webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:
>>>> 334)
>>>> org
>>>> .ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:
>>>> 454) org.ofbiz.we
>>> bap
>>>>
>>>> p.control.RequestHandler.doRequest(RequestHandler.java:281)
>>>> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:
>>>> 198) javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
>>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>>>> org
>>>> .apache
>>>> .catalina
>>>> .core
>>>> .ApplicationFilterChain
>>>> .internalDoFilter(ApplicationFilterChain.java:290)
>>>> org
>>>> .apache
>>>> .catalina
>>>> .core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
>>>> 206)
>>>> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:
>>>> 255)
>>>> org
>>>> .apache
>>>> .catalina
>>>> .core
>>>> .ApplicationFilterChain
>>>> .internalDoFilter(ApplicationFilterChain.java:235)
>>>> org
>>>> .apache
>>>> .catalina
>>>> .core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
>>>> 206)
>>>> org
>>>> .apache
>>>> .catalina
>>>> .core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>>>> org
>>>> .apache
>>>> .catalina
>>>> .core.StandardContextValve.invoke(StandardContextValve.java:175)
>>>> org
>>>> .apache
>>>> .catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
>>>> org.apache.catalina.valves.ErrorReportVa
>>> lve
>>>>
>>>> .invoke(ErrorReportValve.java:102)
>>>> org
>>>> .apache
>>>> .catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:
>>>> 109)
>>>> org
>>>> .apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:
>>>> 568)
>>>> org
>>>> .apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:
>>>> 286)
>>>> org
>>>> .apache.coyote.http11.Http11Processor.process(Http11Processor.java:
>>>> 844) org.apache.coyote.http11.Http11Protocol
>>>> $Http11ConnectionHandler.process(Http11Protocol.java:583)
>>>> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:
>>>> 447) java.lang.Thread.run(Thread.java:595)
>>>> --------------------------------------------------------------------------------
>>>>> 2009-01-12 20:28:07,153 (http-0.0.0.0-8080-1) [ UtilXml.java:
>>>>> 241:INFO ] XML Read 0.021s: file:/home/ofbiz/trunk/applications/
>>>>> party/script/org/ofbiz/party/party/PartyPermissionServices.xml
>>>>> 2009-01-12 20:28:07,196 (http-0.0.0.0-8080-1) [ UtilXml.java:
>>>>> 241:INFO ] XML Read 0.028s: file:/home/ofbiz/trunk/framework/
>>>>> common/script/org/ofbiz/common/permission/
>>>>> CommonPermissionServices.xml
>>>>> 2009-01-12 20:28:07,197 (http-0.0.0.0-8080-1) [ Log.java:
>>>>> 94 :INFO ] Checking for primary permission PARTYMGR_CREATE
>>>>> 2009-01-12 20:28:07,198 (http-0.0.0.0-8080-1) [ Log.java:
>>>>> 94 :INFO ] Checking for alternate permission PARTYMGR_ROLE_CREATE
>>>>> 2009-01-12 20:28:07,200 (http-0.0.0.0-8080-1)
>>>>> [ ServiceDispatcher.java:578:INFO ] Sync service [ecommerce/
>>>>> partyRolePermissionCheck] finished in [68] milliseconds
>>>>> 2009-01-12 20:28:07,242 (http-0.0.0.0-8080-1) [ UtilXml.java:
>>>>> 241:INFO ] XML Read 0.041s: file:/home/ofbiz/trunk/applications/
>>>>> party/script/org/ofbiz/party/party/PartyServices.xml
>>>>> 2009-01-12 20:28:07,249 (http-0.0.0.0-8080-1)
>>>>> [ TransactionUtil.java:91 :WARN ] ---- exception report
>>>>> ----------------------------------------------------------
>>>>> [TransactionUtil.begin] active transaction marked for rollback in
>>>>> place, so no transaction begun; this stack trace shows when the
>>>>> exception began: Exception: java.lang.Exception Message: Tx Stack
>>>>> Placeholder ---- stack trace
>>>>> ---------------------------------------------------------------
>>>>> java.lang.Exception: Tx Stack Placeholder
>>>>> org
>>>>> .ofbiz
>>>>> .entity
>>>>> .transaction
>>>>> .TransactionUtil.setTransactionBeginStack(TransactionUtil.java:
>>>>> 636)
>>>>> org
>>>>> .ofbiz
>>>>> .entity.transaction.TransactionUtil.begin(TransactionUtil.java:
>>>>> 125)
>>>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>>>>> 302)
>>>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>>>>> 213)
>>>>> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:
>>>>> 149)
>>>>> org
>>>>> .ofbiz
>>>>> .webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:
>>>>> 334) org.ofbiz.webapp.control.
>>> R
>>>> equestHandler.runEvent(RequestHandler.java:454)
>>>> org
>>>> .ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:
>>>> 281)
>>>> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:
>>>> 198) javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
>>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>>>> org
>>>> .apache
>>>> .catalina
>>>> .core
>>>> .ApplicationFilterChain
>>>> .internalDoFilter(ApplicationFilterChain.java:290)
>>>> org
>>>> .apache
>>>> .catalina
>>>> .core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
>>>> 206)
>>>> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:
>>>> 255)
>>>> org
>>>> .apache
>>>> .catalina
>>>> .core
>>>> .ApplicationFilterChain
>>>> .internalDoFilter(ApplicationFilterChain.java:235)
>>>> org
>>>> .apache
>>>> .catalina
>>>> .core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
>>>> 206)
>>>> org
>>>> .apache
>>>> .catalina
>>>> .core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>>>> org
>>>> .apache
>>>> .catalina
>>>> .core.StandardContextValve.invoke(StandardContextValve.java:175)
>>>> org.apache.catalina.core.StandardHostValve.invoke(Stand
>>> ard
>>>>
>>>> HostValve.java:128)
>>>> org
>>>> .apache
>>>> .catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>>>> org
>>>> .apache
>>>> .catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:
>>>> 109)
>>>> org
>>>> .apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:
>>>> 568)
>>>> org
>>>> .apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:
>>>> 286)
>>>> org
>>>> .apache.coyote.http11.Http11Processor.process(Http11Processor.java:
>>>> 844) org.apache.coyote.http11.Http11Protocol
>>>> $Http11ConnectionHandler.process(Http11Protocol.java:583)
>>>> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:
>>>> 447) java.lang.Thread.run(Thread.java:595)
>>>> --------------------------------------------------------------------------------
>>>>> 2009-01-12 20:28:07,250 (http-0.0.0.0-8080-1) [ SimpleMethod.java:
>>>>> 726:WARN ] Error trying to begin transaction, could not process
>>>>> method: The current transaction is marked for rollback, not
>>>>> beginning a new transaction and aborting current operation; the
>>>>> rollbackOnly was caused by: Error in simple-method [Creates a
>>>>> person, role and contactMechs [file:/home/ofbiz/trunk/applications/
>>>>> party/script/org/ofbiz/party/party/
>>>>> PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error
>>>>> running the simple-method: Error in simple-method operation [ ]:
>>>>> java.lang.RuntimeException: Error in simple-method operation [ ]:
>>>>> java.lang.IllegalArgumentException: locale cannot be null
>>>>> null
>>>>> 2009-01-12 20:28:07,251 (http-0.0.0.0-8080-1) [ SimpleMethod.java:
>>>>> 727:WARN ] ---- exception report
>>>>> ----------------------------------------------------------
>>>>> Exception:
>>>>> org.ofbiz.entity.transaction.GenericTransactionException Message:
>>>>> The current transaction is marked for rollback, not beginning a
>>>>> new transaction and aborting current operation; the rollbackOnly
>>>>> was caused by: Error in simple-method [Creates a person, role and
>>>>> contactMechs [file:/home/ofbiz/trunk/applications/party/script/org/
>>>>> ofbiz/party/party/
>>>>> PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error
>>>>> running the simple-method: Error in simple-method operation [ ]:
>>>>> java.lang.RuntimeException: Error in simple-method operation [ ]:
>>>>> java.lang.IllegalArgumentException: locale cannot be null
>>>>> null ---- stack trace
>>>>> ---------------------------------------------------------------
>>>>> org.ofbiz.entity.transaction.GenericTransactionException: The
>>>>> current transaction is marked for rollback, not beginning a new
>>>>> transaction and aborting current operation; the rollbackOnly was
>>>>> caused by: Error in simple-method [Creates a person, role and
>>>>> contactMechs [file:/home/ofbiz/trunk/applications/party/script/org/
>>>>> ofbiz/party/party/
>>>>> PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error
>>>>> running the simple-method: Error in simple-method operation [ ]:
>>>>> java.lang.RuntimeException: Error in simple-method operation [ ]:
>>>>> java.lang.IllegalArgumentException: locale cannot be null
>>>>> null
>>>>> org
>>>>> .ofbiz
>>>>> .entity.transaction.TransactionUtil.begin(TransactionUtil.java:99)
>>>>> org
>>>>> .ofbiz
>>>>> .entity.transaction.TransactionUtil.begin(TransactionUtil.java:71)
>>>>> org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:723)
>>>>> org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:
>>>>> 134)
>>>>> org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:
>>>>> 116)
>>>>> org
>>>>> .ofbiz
>>>>> .minilang
>>>>> .SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76)
>>>>> org
>>>>> .ofbiz
>>>>> .minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51)
>>>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>>>>> 384)
>>>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>>>>> 213)
>>>>> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:
>>>>> 163)
>>>>> org
>>>>> .ofbiz.minilang.method.callops.CallService.exec(CallService.java:
>>>>> 246) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:
>>>>> 1104)
>>>>> org.ofbiz.minilang.method.ifops.IfNotEmpty.exec(IfNotEmpty.java:
>>>>> 91) org.ofbiz.minilang.SimpleMethod.runSubOps(Si
>>> m
>>>> pleMethod.java:1104)
>>>> org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:744)
>>>> org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:
>>>> 134)
>>>> org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:
>>>> 116)
>>>> org
>>>> .ofbiz
>>>> .minilang
>>>> .SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76)
>>>> org
>>>> .ofbiz
>>>> .minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51)
>>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>>>> 384)
>>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>>>> 213)
>>>> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:
>>>> 163)
>>>> org.ofbiz.minilang.method.callops.CallService.exec(CallService.java:
>>>> 246) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:
>>>> 1104) org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:744)
>>>> org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:
>>>> 134)
>>>> org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:
>>>> 116) org.ofbiz.minilang.SimpleServiceEngine.service
>>> Inv
>>>>
>>>> oker(SimpleServiceEngine.java:76)
>>>> org
>>>> .ofbiz
>>>> .minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51)
>>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>>>> 384)
>>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>>>> 213)
>>>> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:
>>>> 149)
>>>> org
>>>> .ofbiz
>>>> .webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:
>>>> 334)
>>>> org
>>>> .ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:
>>>> 454)
>>>> org
>>>> .ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:
>>>> 281)
>>>> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:
>>>> 198) javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
>>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>>>> org
>>>> .apache
>>>> .catalina
>>>> .core
>>>> .ApplicationFilterChain
>>>> .internalDoFilter(ApplicationFilterChain.java:290)
>>>> org
>>>> .apache
>>>> .catalina
>>>> .core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
>>>> 206) org.ofbiz.webapp.control.ContextFilter.doFilter(Con
>>> tex
>>>>
>>>> tFilter.java:255)
>>>> org
>>>> .apache
>>>> .catalina
>>>> .core
>>>> .ApplicationFilterChain
>>>> .internalDoFilter(ApplicationFilterChain.java:235)
>>>> org
>>>> .apache
>>>> .catalina
>>>> .core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
>>>> 206)
>>>> org
>>>> .apache
>>>> .catalina
>>>> .core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>>>> org
>>>> .apache
>>>> .catalina
>>>> .core.StandardContextValve.invoke(StandardContextValve.java:175)
>>>> org
>>>> .apache
>>>> .catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
>>>> org
>>>> .apache
>>>> .catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>>>> org
>>>> .apache
>>>> .catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:
>>>> 109)
>>>> org
>>>> .apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:
>>>> 568)
>>>> org
>>>> .apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:
>>>> 286)
>>>> org
>>>> .apache.coyote.http11.Http11Processor.process(Http11Processor.java:
>>>> 844) org.apache.coyote.http11.Http11Protocol
>>>> $Http11ConnectionHandler.process(Http11Protocol.java:583)
>>>> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIo
>>> End
>>>>
>>>> point.java:447) java.lang.Thread.run(Thread.java:595)
>>>> --------------------------------------------------------------------------------
>>>>> 2009-01-12 20:28:07,251 (http-0.0.0.0-8080-1)
>>>>> [ ServiceDispatcher.java:522:ERROR] Error in Service
>>>>> [createPartyRole]: Error trying to begin transaction, could not
>>>>> process method: The current transaction is marked for rollback,
>>>>> not beginning a new transaction and aborting current operation;
>>>>> the rollbackOnly was caused by: Error in simple-method [Creates a
>>>>> person, role and contactMechs [file:/home/ofbiz/trunk/applications/
>>>>> party/script/org/ofbiz/party/party/
>>>>> PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error
>>>>> running the simple-method: Error in simple-method operation [ ]:
>>>>> java.lang.RuntimeException: Error in simple-method operation [ ]:
>>>>> java.lang.IllegalArgumentException: locale cannot be null
>>>>> null
>>>>> 2009-01-12 20:28:07,252 (http-0.0.0.0-8080-1)
>>>>> [ TransactionUtil.java:315:INFO ]
>>>>> [TransactionUtil.setRollbackOnly] transaction rollback only not
>>>>> set, rollback only is already set.
>>>>> 2009-01-12 20:28:07,252 (http-0.0.0.0-8080-1)
>>>>> [ ServiceDispatcher.java:578:INFO ] Sync service [ecommerce/
>>>>> createPartyRole] finished in [121] milliseconds
>>>>> 2009-01-12 20:28:07,252 (http-0.0.0.0-8080-1)
>>>>> [ TransactionUtil.java:315:INFO ]
>>>>> [TransactionUtil.setRollbackOnly] transaction rollback only not
>>>>> set, rollback only is already set.
>>>>> 2009-01-12 20:28:07,253 (http-0.0.0.0-8080-1)
>>>>> [ ServiceDispatcher.java:522:ERROR] Error in Service [createLead]:
>>>>> Error:Error trying to begin transaction, could not process method:
>>>>> The current transaction is marked for rollback, not beginning a
>>>>> new transaction and aborting current operation; the rollbackOnly
>>>>> was caused by: Error in simple-method [Creates a person, role and
>>>>> contactMechs [file:/home/ofbiz/trunk/applications/party/script/org/
>>>>> ofbiz/party/party/
>>>>> PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error
>>>>> running the simple-method: Error in simple-method operation [ ]:
>>>>> java.lang.RuntimeException: Error in simple-method operation [ ]:
>>>>> java.lang.IllegalArgumentException: locale cannot be null
>>>>> null calling service createPartyRole in createLead
>>>>> 2009-01-12 20:28:07,253 (http-0.0.0.0-8080-1)
>>>>> [ TransactionUtil.java:315:INFO ]
>>>>> [TransactionUtil.setRollbackOnly] transaction rollback only not
>>>>> set, rollback only is already set.
>>>>> 2009-01-12 20:28:07,253 (http-0.0.0.0-8080-1)
>>>>> [ ServiceDispatcher.java:578:INFO ] Sync service [ecommerce/
>>>>> createLead] finished in [194] milliseconds
>>>>> 2009-01-12 20:28:07,254 (http-0.0.0.0-8080-1)
>>>>> [ TransactionUtil.java:315:INFO ]
>>>>> [TransactionUtil.setRollbackOnly] transaction rollback only not
>>>>> set, rollback only is already set.
>>>>> 2009-01-12 20:28:07,254 (http-0.0.0.0-8080-1)
>>>>> [ ServiceDispatcher.java:522:ERROR] Error in Service
>>>>> [createLeadFromWebForm]: Error:Error:Error trying to begin
>>>>> transaction, could not process method: The current transaction is
>>>>> marked for rollback, not beginning a new transaction and aborting
>>>>> current operation; the rollbackOnly was caused by: Error in simple-
>>>>> method [Creates a person, role and contactMechs [file:/home/ofbiz/
>>>>> trunk/applications/party/script/org/ofbiz/party/party/
>>>>> PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error
>>>>> running the simple-method: Error in simple-method operation [ ]:
>>>>> java.lang.RuntimeException: Error in simple-method operation [ ]:
>>>>> java.lang.IllegalArgumentException: locale cannot be null
>>>>> null calling service createPartyRole in createLead calling service
>>>>> createLead in createLeadFromWebForm
>>>>> 2009-01-12 20:28:07,255 (http-0.0.0.0-8080-1)
>>>>> [ TransactionUtil.java:275:ERROR] ---- exception report
>>>>> ----------------------------------------------------------
>>>>> [TransactionUtil.rollback] Exception: java.lang.Exception Message:
>>>>> Stack Trace ---- stack trace
>>>>> ---------------------------------------------------------------
>>>>> java.lang.Exception: Stack Trace
>>>>> org
>>>>> .ofbiz
>>>>> .entity.transaction.TransactionUtil.rollback(TransactionUtil.java:
>>>>> 274)
>>>>> org
>>>>> .ofbiz
>>>>> .entity.transaction.TransactionUtil.rollback(TransactionUtil.java:
>>>>> 256)
>>>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>>>>> 526)
>>>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>>>>> 213)
>>>>> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:
>>>>> 149)
>>>>> org
>>>>> .ofbiz
>>>>> .webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:
>>>>> 334)
>>>>> org
>>>>> .ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:
>>>>> 454)
>>>>> org
>>>>> .ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:
>>>>> 281) org.ofbiz.webapp.control.Co
>>> n
>>>> trolServlet.doGet(ControlServlet.java:198)
>>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
>>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>>>> org
>>>> .apache
>>>> .catalina
>>>> .core
>>>> .ApplicationFilterChain
>>>> .internalDoFilter(ApplicationFilterChain.java:290)
>>>> org
>>>> .apache
>>>> .catalina
>>>> .core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
>>>> 206)
>>>> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:
>>>> 255)
>>>> org
>>>> .apache
>>>> .catalina
>>>> .core
>>>> .ApplicationFilterChain
>>>> .internalDoFilter(ApplicationFilterChain.java:235)
>>>> org
>>>> .apache
>>>> .catalina
>>>> .core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
>>>> 206)
>>>> org
>>>> .apache
>>>> .catalina
>>>> .core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>>>> org
>>>> .apache
>>>> .catalina
>>>> .core.StandardContextValve.invoke(StandardContextValve.java:175)
>>>> org
>>>> .apache
>>>> .catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
>>>> org
>>>> .apache
>>>> .catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>>>> org.apache.catalina.core.StandardEngineValve.invok
>>> e(S
>>>>
>>>> tandardEngineValve.java:109)
>>>> org
>>>> .apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:
>>>> 568)
>>>> org
>>>> .apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:
>>>> 286)
>>>> org
>>>> .apache.coyote.http11.Http11Processor.process(Http11Processor.java:
>>>> 844) org.apache.coyote.http11.Http11Protocol
>>>> $Http11ConnectionHandler.process(Http11Protocol.java:583)
>>>> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:
>>>> 447) java.lang.Thread.run(Thread.java:595)
>>>> --------------------------------------------------------------------------------
>>>>> 2009-01-12 20:28:07,255 (http-0.0.0.0-8080-1)
>>>>> [ TransactionUtil.java:285:INFO ] [TransactionUtil.rollback]
>>>>> transaction rolled back
>>>>> 2009-01-12 20:28:07,255 (http-0.0.0.0-8080-1)
>>>>> [ ServiceDispatcher.java:578:INFO ] Sync service [ecommerce/
>>>>> createLeadFromWebForm] finished in [236] milliseconds
>>>>> 2009-01-12 20:28:07,327 (http-0.0.0.0-8080-1)
>>>>> [ RequestHandler.java:314:ERROR] Request webFormSubmit caused an
>>>>> error with the following message: Error:Error:Error trying to
>>>>> begin transaction, could not process method: The current
>>>>> transaction is marked for rollback, not beginning a new
>>>>> transaction and aborting current operation; the rollbackOnly was
>>>>> caused by: Error in simple-method [Creates a person, role and
>>>>> contactMechs [file:/home/ofbiz/trunk/applications/party/script/org/
>>>>> ofbiz/party/party/
>>>>> PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error
>>>>> running the simple-method: Error in simple-method operation [ ]:
>>>>> java.lang.RuntimeException: Error in simple-method operation [ ]:
>>>>> java.lang.IllegalArgumentException: locale cannot be null
>>>>> null calling service createPartyRole in createLead calling service
>>>>> createLead in createLeadFromWebForm
>>>>> 2009-01-12 20:28:07,328 (http-0.0.0.0-8080-1)
>>>>> [ RequestHandler.java:412:INFO ] [RequestHandler.doRequest]:
>>>>> Response is a URL redirect.
>>>>> sessionId=BBA68197213FF2F01514F97BB85687A6.jvm1
>>>>> 2009-01-12 20:28:07,328 (http-0.0.0.0-8080-1)
>>>>> [ RequestHandler.java:539:INFO ] [Sending redirect]: http://www.globalera.com 
>>>>> sessionId=BBA68197213FF2F01514F97BB85687A6.jvm1
>>>>> 2009-01-12 20:28:07,376 (http-0.0.0.0-8080-1)
>>>>> [ ControlServlet.java:299:INFO ] [[[webFormSubmit] Done rendering
>>>>> page, Servlet Finished- total:0.64,since last([webFormSubmit]
>>>>> S...):0.638]]
>>>>>
>>>>> ----- Original Message -----
>>>>> From: "Adrian Crum" <[hidden email]>
>>>>> To: [hidden email]
>>>>> Sent: Monday, January 12, 2009 8:31:07 AM (GMT-0700) America/Denver
>>>>> Subject: Re: locale error in simple method
>>>>>
>>>>> Vince,
>>>>>
>>>>> We will need a complete log to track this down. To be specific, I
>>>>> need
>>>>> to see the entire Java stack trace.
>>>>>
>>>>> -Adrian
>>>>>
>>>>> Vince M. Clark wrote:
>>>>>> I created a custom simple method to respond to a request from a
>>>>>> web form. Getting a locale error and cannot figure out where
>>>>>> locale is required.
>>>>>>
>>>>>> <simple-method method-name="createLeadFromWebForm" short-
>>>>>> description="Create Lead from Web Form" login-required="false">
>>>>>> <entity-one entity-name="UserLogin" value-name="userlogin">
>>>>>> <field-map field-name="userLoginId" value="system"/>
>>>>>> </entity-one>
>>>>>> <set-current-user-login value-name="userlogin"/>
>>>>>> <set field="newLead.firstName" from-field="parameters.firstName"/>
>>>>>> <set field="newLead.lastName" from-field="parameters.lastName"/>
>>>>>> <set field="newLead.groupName" from-field="parameters.groupName"/>
>>>>>> <set field="newLead.emailAddress" from-
>>>>>> field="parameters.emailAddress"/>
>>>>>> <set field="newLead.contactNumber" from-
>>>>>> field="parameters.contactNumber"/>
>>>>>> <set field="newLead.address1" from-field="parameters.address1"/>
>>>>>> <set field="newLead.countryGeoId" from-
>>>>>> field="parameters.countryGeoId"/>
>>>>>> <set field="newLead.city" from-field="parameters.city"/>
>>>>>> <set field="newLead.stateProvinceGeoId" from-
>>>>>> field="parameters.stateProvinceGeoId"/>
>>>>>> <set field="newLead.postalCode" from-
>>>>>> field="parameters.postalCode"/>
>>>>>> <set field="newLead.quickAdd" from-field="parameters.quickAdd"/>
>>>>>> <call-service service-name="createLead" in-map-name="newLead">
>>>>>> <result-to-field result-name="partyId" field="partyId"/>
>>>>>> </call-service>
>>>>>> </simple-method>
>>>>>>
>>>>>> The simple method that I am calling "createLead" calls other
>>>>>> simple methods. One of them is createPersonRoleAndContactMechs,
>>>>>> which throws the following exception:
>>>>>> 2009-01-11 18:43:36,887 (http-0.0.0.0-8080-1)
>>>>>> [ RequestHandler.java:314:ERROR] Request webFormSubmit caused an
>>>>>> error with the following message: Error:Error:Error trying to
>>>>>> begin transaction, could not process method: The current
>>>>>> transaction is marked for rollback, not beginning a new
>>>>>> transaction and aborting current operation; the rollbackOnly was
>>>>>> caused by: Error in simple-method [Creates a person, role and
>>>>>> contactMechs [file:/home/ofbiz/trunk/applications/party/script/
>>>>>> org/ofbiz/party/party/
>>>>>> PartySimpleMethods.xml#createPersonRoleAndContactMechs]]: Error
>>>>>> running the simple-method: Error in simple-method operation [ ]:
>>>>>> java.lang.RuntimeException: Error in simple-method operation [ ]:
>>>>>> java.lang.IllegalArgumentException: locale cannot be null
>>>>>> null calling service createPartyRole in createLead calling
>>>>>> service createLead in createLeadFromWebForm
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>
>>
>
>