Hi Jacopo 

I have updated my ofbiz via svn
but the problem still persists am I wrong in stating
that the quote type ID you are referring to can either be 
¨other; Product; Product Purchase; Proposal¨ if so this has 
been submitted with the quote but on creation of order it 
is removed and I am still presented with this error.

regards 

Christopher
  


Jacopo Cappellato-4 wrote:
> 
> It seems that the Quote.quoteTypeId is null, that is causing a NPE  
> exception.
> I have cleaned up the code in rev. 738050 (and this should prevent the  
> exception from happening), but you may want to check why the type is  
> empty in your record.
> 
> Cheers,
> 
> Jacopo
> 
> On Jan 27, 2009, at 10:49 AM, ChristopherJ wrote:
> 
>>
>> Hi all
>>
>> When a Quote is approved(accepted) and the create order link in
>> the quote is selected I´m presented with the following error and
>> can not continue with the order.
>>
>> 2009-01-27 11:48:16,228 (http-0.0.0.0-8443-5) [
>> ServiceDispatcher.java:500:ERROR]
>> ---- exception report
>> ----------------------------------------------------------
>> Service [loadCartFromQuote] threw an unexpected exception/error
>> Exception: org.ofbiz.service.GenericServiceException
>> Message: Service [loadCartFromQuote] target threw an unexpected  
>> exception
>> (null)
>> ---- cause
>> ---------------------------------------------------------------------
>> Exception: java.lang.NullPointerException
>> Message: null
>> ---- stack trace
>> ---------------------------------------------------------------
>> java.lang.NullPointerException
>> org 
>> .ofbiz 
>> .order 
>> .shoppingcart 
>> .ShoppingCartServices.loadCartFromQuote(ShoppingCartServices.java:555)
>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> sun 
>> .reflect 
>> .NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>> sun 
>> .reflect 
>> .DelegatingMethodAccessorImpl 
>> .invoke(DelegatingMethodAccessorImpl.java:25)
>> java.lang.reflect.Method.invoke(Method.java:597)
>> org 
>> .ofbiz 
>> .service 
>> .engine.StandardJavaEngine.serviceInvoker(StandardJavaEngine.java:96)
>> org 
>> .ofbiz 
>> .service.engine.StandardJavaEngine.runSync(StandardJavaEngine.java:54)
>> 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 
>> .order 
>> .shoppingcart 
>> .ShoppingCartEvents.loadCartFromQuote(ShoppingCartEvents.java:1253)
>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> sun 
>> .reflect 
>> .NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>> sun 
>> .reflect 
>> .DelegatingMethodAccessorImpl 
>> .invoke(DelegatingMethodAccessorImpl.java:25)
>> java.lang.reflect.Method.invoke(Method.java:597)
>> org.ofbiz.webapp.event.JavaEventHandler.invoke(JavaEventHandler.java: 
>> 89)
>> org.ofbiz.webapp.event.JavaEventHandler.invoke(JavaEventHandler.java: 
>> 75)
>> org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java: 
>> 461)
>> org 
>> .ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java: 
>> 293)
>> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:204)
>> 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: 
>> 259)
>> 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 
>> .ofbiz 
>> .catalina 
>> .container 
>> .CrossSubdomainSessionValve.invoke(CrossSubdomainSessionValve.java:44)
>> 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:619)
>> --------------------------------------------------------------------------------
>>
>> 2009-01-27 11:48:16,235 (http-0.0.0.0-8443-5) [
>> TransactionUtil.java:209:WARN ] [TransactionUtil.commit] Not  
>> committing
>> transaction, status is No Transaction (6)
>> 2009-01-27 11:48:16,297 (http-0.0.0.0-8443-5) [
>> RequestHandler.java:326:ERROR] Request loadCartFromQuote caused an  
>> error
>> with the following message: Service [loadCartFromQuote] target threw  
>> an
>> unexpected exception (null)
>>
>> Using the demo data.
>>
>> Regards
>> Christopher
>> -- 
>> View this message in context:
>> http://www.nabble.com/Can%C2%B4t-create-order-from-quote-tp21682399p21682399.html
>> Sent from the OFBiz - User mailing list archive at Nabble.com.
>>
> 
> 
>  
> 

-- 
View this message in context: 
http://www.nabble.com/Can%C2%B4t-create-order-from-quote-tp21682399p21704158.html
Sent from the OFBiz - User mailing list archive at Nabble.com.

Reply via email to