ofbiz-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From BJ Freeman <bjf...@free-man.net>
Subject Re: add person question
Date Fri, 01 Aug 2008 17:49:24 GMT
moving to the user ML

jose junior malheiros barros sent the following on 8/1/2008 10:42 AM:
> I am trying to add a person only with firsName and lastName. The code used:
> 
>         GenericDelegator delegator = dctx.getDelegator();
>        GenericValue userLogin =delegator.findByPrimaryKey("UserLogin", 
>         context.put("firstName", "chico");
>         context.put("lastName", "cesar");
>         context.put("userLogin", userLogin);
>         Map serviceResults = dispatcher.runSync("createPerson", context);
>         return serviceResults;
> 
> but receive the error Unknow parameter PartyId. 
> 
> 
> 2008-08-01
> 13:37:07,407 (http-0.0.0.0-8080-Processor3) [    
> RequestHandler.java:239:INFO ] [Processing Request]:
> importEmaisFromSite sessionId=824A77417DF7CE083D2E930C3055B63C.jvm1
> 2008-08-01
> 
> 13:37:07,407 (http-0.0.0.0-8080-Processor3) [        
> Integrator.java:38 :INFO ] Running method
> Integrator.processUreadEmailsFromSite
> 2008-08-01
> 13:37:07,422 (http-0.0.0.0-8080-Processor3) [      
> SequenceUtil.java:258:INFO ] Got bank of sequenced IDs for [Party];
> curSeqId=10080, maxSeqId=10090, bankSize=10
> 2008-08-01 13:37:07,438
> (http-0.0.0.0-8080-Processor3) [     ServiceEcaRule.java:140:INFO ]
> Running Service ECA Service: ensureNaPartyRole, triggered by rule on
> Service: createPerson
> 2008-08-01 13:37:07,485
> (http-0.0.0.0-8080-Processor3) [            UtilXml.java:246:DEBUG] XML
> Read 0.031s:
> file:/D:/opentaps-1.0/applications/party/script/org/ofbiz/party/party/PartySimpleMethods.xml
> 2008-08-01 13:37:07,500 (http-0.0.0.0-8080-Processor3) [  ServiceDispatcher.java:470:DEBUG]
Sync service
>  [pedido/ensureNaPartyRole] finished in [62] milliseconds
> 2008-08-01
> 13:37:07,500 (http-0.0.0.0-8080-Processor3) [ 
> ServiceDispatcher.java:470:DEBUG] Sync service [pedido/createPerson]
> finished in [78] milliseconds
> 2008-08-01 13:37:07,500
> (http-0.0.0.0-8080-Processor3) [       ModelService.java:481:ERROR]
> [ModelService.validate] : {importEmaisFromSite} : (OUT) Required test
> error: org.ofbiz.service.ServiceValidationException: Unknown parameter
> found: [importEmaisFromSite.partyId]
> 2008-08-01 13:37:07,500 (http-0.0.0.0-8080-Processor3) [  ServiceDispatcher.java:377:ERROR]

> ---- exception report ----------------------------------------------------------
> Outgoing result (in runSync : importEmaisFromSite) does not match expected requirements
> Exception: org.ofbiz.service.ServiceValidationException
> Message: Unknown parameter found: [importEmaisFromSite.partyId]
> ---- stack trace
>  ---------------------------------------------------------------
> org.ofbiz.service.ServiceValidationException: Unknown parameter found:
>  [importEmaisFromSite.partyId]
> org.ofbiz.service.ModelService.validate(ModelService.java:549)
> org.ofbiz.service.ModelService.validate(ModelService.java:479)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:375)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:214)
> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:152)
> org.ofbiz.webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:310)
> org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:448)
> org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:277)
> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:192)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:595)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:688)
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
> org.apache.catalina.core.Applicatio
> nFilterChain.doFilter(ApplicationFilterChain.java:173)
> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:251)
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:541)
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
> org.apache.coyote.http11.Http11Processor.process(Http11Processo
> r.java:869)
> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
> java.lang.Thread.run(Unknown Source)
> --------------------------------------------------------------------------------
> 
> 2008-08-01
> 13:37:07,500 (http-0.0.0.0-8080-Processor3) [ 
> ServiceDispatcher.java:396:DEBUG] [[Sync service failed...-
> total:0.0,since last(Begin):0.0]] - 'pedido / importEmaisFromSite'
> 2008-08-01 13:37:07,500 (http-0.0.0.0-8080-Processor3) [  ServiceDispatcher.java:399:ERROR]

> ---- exception report ----------------------------------------------------------
> Service [importEmaisFromSite] threw an unexpected
>  exception/error
> Exception: org.ofbiz.service.ServiceValidationException
> Message: Unknown parameter found: [importEmaisFromSite.partyId]
> ---- stack trace ---------------------------------------------------------------
> org.ofbiz.service.ServiceValidationException: Unknown parameter found:
>  [importEmaisFromSite.partyId]
> org.ofbiz.service.ModelService.validate(ModelService.java:549)
> org.ofbiz.service.ModelService.validate(ModelService.java:479)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:375)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:214)
> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:152)
> org.ofbiz.webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:310)
> org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:448)
> org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:277)
> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:192)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:595)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:688)
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
> org.apache.catalina.core.Applicatio
> nFilterChain.doFilter(ApplicationFilterChain.java:173)
> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:251)
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:541)
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
> org.apache.coyote.http11.Http11Processor.process(Http11Processo
> r.java:869)
> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
> java.lang.Thread.run(Unknown Source)
> --------------------------------------------------------------------------------
> 
> 2008-08-01 13:37:07,516 (http-0.0.0.0-8080-Processor3) [    TransactionUtil.java:258: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:257)
> org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:239)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:402)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:214)
> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:152)
> org.ofbiz.webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:310)
> org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:448)
> org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:277)
> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:192)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:595)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:688)
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
> org.apache.catalina.core.
> ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:251)
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:541)
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
> org.apache.coyote.http11.Http11Processor.process(Http
> 11Processor.java:869)
> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
> java.lang.Thread.run(Unknown Source)
> --------------------------------------------------------------------------------
> 
> 2008-08-01
> 13:37:07,516 (http-0.0.0.0-8080-Processor3) [   
> TransactionUtil.java:268:INFO ] [TransactionUtil.rollback] transaction
> rolled back
> 2008-08-01 13:37:07,516 (http-0.0.0.0-8080-Processor3)
> [    TransactionUtil.java:192:WARN ] [TransactionUtil.commit] Not
> committing transaction, status is STATUS_NO_TRANSACTION
> 2008-08-01
> 13:37:07,516 (http-0.0.0.0-8080-Processor3) [    
> RequestHandler.java:311:ERROR] Request importEmaisFromSite caused an
> error with the following message: [Unknown parameter found:
> [importEmaisFromSite.partyId]]
> 2008-08-01 13:37:07,516 (http-0.0.0.0-8080-Processor3) [          TestEvent.java:39 :INFO
] Test Event Ran Fine.
> 2008-08-01
> 13:37:07,516 (http-0.0.0.0-8080-Processor3) [    
> RequestHandler.java:427:INFO ] [RequestHandler.doRequest]: Response is
> a view. sessionId=824A77417DF7CE083D2E930C3055B63C.jvm1
> 2008-08-01
> 13:37:07,516 (http-0.0.0.0-8080-Processor3) [    
> RequestHandler.java:580:INFO ] servletName=control, view=error
> sessionId=824A77417DF7CE083D2E930C3055B63C.jvm1
> 2008-08-01
> 13:37:07,953 (http-0.0.0.0-8080-Processor3) [    
> ControlServlet.java:259:DEBUG] [[[importEmaisFromSite] Done rendering
> page, Servlet Finished- total:0.562,since
> last([importEmaisFromS...):0.562]]
> 
> 
> 
> Someone have idea?
> 
> 
>       Novos endere├žos, o Yahoo! que voc├¬ conhece. Crie um email novo com a sua cara
@ymail.com ou @rocketmail.com.
> http://br.new.mail.yahoo.com/addresses



Mime
View raw message