Re: Problem with ofbizUrl

Posted by Jacques Le Roux on
URL: http://ofbiz.116.s1.nabble.com/Problem-with-ofbizUrl-tp142519p142522.html

Yes what is the real problem ?
Like David I believe that correcting existing errors (or at least be sure that they are not blocking errors) before trying to have
"two web apps working simultaneously" should be a good beginning.

Jacques

From: "David E Jones" <[hidden email]>

>
> Sayoke,
>
> What information is leading you to believe that this has anything to
> do with simultaneous access?
>
> In the log I'm mostly seeing bad formatting, and more general errors
> such as null pointer exceptions, like this one:
>
> Caused by: java.lang.NullPointerException
>          at org.ofbiz.product.config.ProductConfigWrapper
> $ConfigItem.isStandard(ProductConfigWrapper.java:545)
>
> For the ofbizUrl missing problem it seems that the error message is
> correct. The ofbizUrl object is NOT in the context for that page. If
> you search for it in your log you'll see that in other FTL rendering
> contexts it is there, but not in the context printed just before that
> error message. In fact, none of the transforms are in there...
>
> Both of these look like fairly basic problems with error messages
> that point you pretty well to what the problem is and where it is
> happening in the code.
>
> In other words, I'm thinking that I am missing something... what is
> the problem you are having trouble tracking down?
>
> -David
>
>
> On Nov 9, 2006, at 8:51 PM, Sayoke Shome wrote:
>
> >
> > Hi Jacques,
> > I am sending you error log from our server. Actually this error
> > happens
> > when there are two web apps working simultaneously or there is some
> > delay in database connection.
> > Can you suggest any solution to it.
> >
> > Regards,
> >
> > Sayoke Shome |  Technical Associate | Techmahindra Ltd. |  BIPL,
> > sector
> > V ,saltlake |
> >
> > -----Original Message-----
> > From: Jacques Le Roux [mailto:[hidden email]]
> > Sent: Wednesday, November 08, 2006 9:17 PM
> > To: [hidden email]
> > Subject: Re: Problem with ofbizUrl
> >
> > Hi Sayoke,
> >
> > I just come back from vacation and it seems that you got no answer to
> > this message. I have not time yet to help you but may find
> > some tomorow if this problem is not already solved.
> >
> > BTW sending a log in html format is not a good idea, the same in txt
> > format is only 317 kb for 1261 in html...
> >
> > Thanks
> >
> > Jacques
> >
> >
> > ----- Original Message -----
> > From: Sayoke Shome
> > To: [hidden email]
> > Sent: Saturday, November 04, 2006 5:57 AM
> > Subject: Problem with ofbizUrl
> >
> >
> >
> > Hi,
> > I have mailed in this archive earlier for a problem I am facing due to
> > problem in Ofbiz url earlier but the error log trace was so
> > less suggestive, it was indeed hard for anybody to understand the real
> > problem. I have dug deep into it and found out that it is the
> > MapStack.get() method which is failing when it is trying to get
> > OfbizUrl.
> > Let me tell you little about the  application we are developing. We
> > are
> > developing the ordering journey for our client's system
> > which will be different for small and medium business, ordinary
> > consumers and  client's own employees. The application is working
> > properly when pages are generated for any one ordering journey on
> > server. But if we try to hit server with two different ordering
> > journey at the same time (say sme and consumer together), then one of
> > them is failing to load ofbizUrl due to failing to execute
> > MapStack.get() from HtmlWidget.java, which is out of the box code to
> > Ofbiz.
> > The problem may be with Synchronization or we may be missing
> > something.
> > I am giving you detailed log of error occurring and from
> > there you will see that when the line of business (LOB)  is CON it is
> > working ok, but when it is also trying to access LOB == BTB it
> > is failing.
> > The problem disappears when we click refresh on the same page (Say for
> > BTB) but then the page on LOB==CON will fail. This process is
> > going on.
> > Please help me out of this problem by suggesting some way out.
> > Detailed log (sorry it is a little big one, and looks little different
> > as we have changed the log4j pattern as per client request):
> > =
> > 2006-11-03 17:44:17.698 myserver [-] INFO  [RequestHandler.doRequest]:
> > Response is a view. : org.ofbiz.webapp.control.Re
> > questHandler-(352)
> > 2006-11-03 17:44:17.713 myserver [-] INFO  servletName=control,
> > view=product : org.ofbiz.webapp.control.RequestHandler-(
> > 486)
> > 2006-11-03 17:44:17.807 myserver [-] INFO  Found session attribute
> > that
> > conflicts with parameter name, leaving request p
> > arameter in place for name: productId :
> > org.ofbiz.widget.screen.ScreenRenderer-(195)
> > 2006-11-03 17:44:19.525 myserver [-] DEBUG XML Read 1.406s:
> > file:/D:/NetCOfBizeComm_R1/Construction/dist/ear/ofbiz/appli
> > cations/btshop/widget/CommonScreens.xml :
> > org.ofbiz.base.util.UtilXml-(242)
> > 2006-11-03 17:44:20.681 myserver [-] INFO  Got 52 screens in 2.671s
> > from: file:/D:/NetCOfBizeComm_R1/Construction/dist/e
> > ar/ofbiz/applications/btshop/widget/CommonScreens.xml :
> > org.ofbiz.widget.screen.ScreenFactory-(127)
> > 2006-11-03 17:44:22.086 myserver [-] INFO  synchronization token :
> > 1162556062071-8536974476478644228 : NoModule-(?)
> > 2006-11-03 17:44:22.149 myserver [-] INFO  In setup
> > bsh::orderJourneyStage::PREBASKET : NoModule-(?)
> > 2006-11-03 17:44:22.180 myserver [-] INFO  In setup
> > bsh::setUpMapnull :
> > NoModule-(?)
> > 2006-11-03 17:44:22.274 myserver [-] DEBUG
> > OrderJourneyHelper:setPageContent:Entered :
> > com.bt.custc.btframework.moduleco
> > nfiguration.util.OrderJourneyHelper-(?)
> > 2006-11-03 17:44:22.305 myserver [-] DEBUG
> > OrderJourneyHelper:setPageContent:pageTypeproduct :
> > com.bt.custc.btframework.
> > moduleconfiguration.util.OrderJourneyHelper-(?)
> > 2006-11-03 17:44:23.804 myserver [-] DEBUG
> > getCategoryOfProductByCategoryType Entered with productId : CON-3581
> > category
> > TypeId : MODULE_CATEGORY :
> > com.bt.custc.btframework.moduleconfiguration.util.OrderJourneyHelper-(
> > ?)
> > 2006-11-03 17:44:23.991 myserver [-] DEBUG Exited with
> > productCategoryId
> > : CON-LINES : com.bt.custc.btframework.moduleco
> > nfiguration.util.OrderJourneyHelper-(?)
> > 2006-11-03 17:44:24.007 myserver [-] DEBUG
> > OrderJourneyHelper:setPageContent:MODULE_TYPE is PRODUCT :
> > com.bt.custc.btfra
> > mework.moduleconfiguration.util.OrderJourneyHelper-(?)
> > 2006-11-03 17:44:24.148 myserver [-] DEBUG
> > OrderJourneyHelper:setPageContent:pageNum :1 :
> > com.bt.custc.btframework.modul
> > econfiguration.util.OrderJourneyHelper-(?)
> > 2006-11-03 17:44:24.210 myserver [-] DEBUG
> > OrderJourneyHelper:setPageContent:title : New line with Option 1 Hour
> > Plan :
> > com.bt.custc.btframework.moduleconfiguration.util.OrderJourneyHelper-(
> > ?)
> > 2006-11-03 17:44:24.241 myserver [-] DEBUG
> > OrderJourneyHelper:setPageContent:subTitle : Calling Plan add-ons :
> > com.bt.cu
> > stc.btframework.moduleconfiguration.util.OrderJourneyHelper-(?)
> > 2006-11-03 17:44:24.257 myserver [-] DEBUG
> > OrderJourneyHelper:setPageContent:introCopy : dfg :
> > com.bt.custc.btframework.
> > moduleconfiguration.util.OrderJourneyHelper-(?)
> > 2006-11-03 17:44:24.288 myserver [-] INFO  In setup
> > bsh::setUpMap{HEADER_FOOTER_LINKS=disabled, title=New line with Opti
> > on 1 Hour Plan, introcopy=dfg, LOB=CON, subtitle=Calling Plan add-
> > ons} :
> > NoModule-(?)
> > 2006-11-03 17:44:24.319 myserver [-] INFO  In setup bsh::lob: CON :
> > NoModule-(?)
> > 2006-11-03 17:44:24.335 myserver [-] INFO  In setup bsh::title: New
> > line
> > with Option 1 Hour Plan : NoModule-(?)
> > 2006-11-03 17:44:24.366 myserver [-] INFO  In setup bsh::subtitle:
> > Calling Plan add-ons : NoModule-(?)
> > 2006-11-03 17:44:24.382 myserver [-] INFO  In setup bsh::introcopy:
> > dfg
> > : NoModule-(?)
> > 2006-11-03 17:44:24.397 myserver [-] INFO  In setup
> > bsh::header_footer_links: disabled : NoModule-(?)
> > 2006-11-03 17:44:24.444 myserver [-] DEBUG setPageName method called,
> > pageName value to be set : CON | PREBASKET | Calli
> > ng Plan add-ons :
> > com.bt.custc.mis.presentation.service.omniture.SiteCatalystHelper-(?)
> > 2006-11-03 17:44:25.381 myserver [-] INFO  Rendering template at
> > location [component://btshop/webapp/btshop/includes/con
> > _bt_header.ftl] with context:
> > ============================== Start stack level 0
> > ==>[_WIDGETTRAIL_]:[con_bt_header]
> > ==>[null]:[null-field]
> > ============================== End stack level 0
> > ============================== Start stack level 1
> > ==>[sections]:org.ofbiz.widget.screen.ModelScreenWidget
> > $SectionsRenderer
> > @750bb9
> > ==>[null]:[null-field]
> > ==>[pagetitle]:BT.com | CON | New line with Option 1 Hour Plan |
> > Calling
> > Plan add-ons
> > ==>[lob]:CON
> > ==>[title]:New line with Option 1 Hour Plan
> > ==>[subtitle]:Calling Plan add-ons
> > ==>[introcopy]:dfg
> > ==>[header_footer_links]:disabled
> > ==>[orderJourneyStage]:PREBASKET
> > ==>[storeId]:CON
> > ============================== End stack level 1
> > ============================== Start stack level 2
> > ==>[null]:[null-field]
> > ==>[action]:product
> > ==>[calls_to_action]:component://btshop/widget/
> > CommonScreens.xml#calls_t
> > o_action
> > ============================== End stack level 2
> > ============================== Start stack level 3
> > ==>[screens]:org.ofbiz.widget.screen.ScreenRenderer@54a40c
> > ==>[globalContext]:<Instance of MapStack, not printing to avoid
> > infinite
> > recursion>
> > ==>[nullField]:[null-field]
> > ==>[availableLocales]:[sq, sq_AL, ar, ar_DZ, ar_BH, ar_EG, ar_IQ,
> > ar_JO,
> > ar_KW, ar_LB, ar_LY, ar_MA, ar_OM, ar_QA, ar_SA
> > , ar_SD, ar_SY, ar_TN, ar_AE, ar_YE, bg, bg_BG, be, be_BY, ca, ca_ES,
> > zh, zh_CN, zh_HK, zh_TW, hr, hr_HR, cs, cs_CZ, da,
> >  da_DK, nl, nl_BE, nl_NL, en, en_AU, en_CA, en_IN, en_IE, en_NZ,
> > en_ZA,
> > en_GB, en_US, et, et_EE, fi, fi_FI, fr, fr_BE, f
> > r_CA, fr_FR, fr_LU, fr_CH, de, de_AT, de_DE, de_LU, de_CH, el, el_GR,
> > iw, iw_IL, hi_IN, hu, hu_HU, is, is_IS, it, it_IT,
> >  it_CH, ja, ja_JP, ko, ko_KR, lv, lv_LV, lt, lt_LT, mk, mk_MK, no,
> > no_NO, no_NO_NY, pl, pl_PL, pt, pt_BR, pt_PT, ro, ro_
> > RO, ru, ru_RU, sr, sr_YU, sh, sh_YU, sk, sk_SK, sl, sl_SI, es, es_AR,
> > es_BO, es_CL, es_CO, es_CR, es_DO, es_EC, es_SV, e
> > s_GT, es_HN, es_MX, es_NI, es_PA, es_PY, es_PE, es_PR, es_ES, es_UY,
> > es_VE, sv, sv_SE, th, th_TH, th_TH_TH, tr, tr_TR, u
> > k, uk_UA]
> > [.......]
> >
> >
> >
> > ======================================================================
> > ======================================================
> >
> > Tech Mahindra, formerly Mahindra-British Telecom.
> >
> > Disclaimer:
> >
> > This message and the information contained herein is proprietary
> > and confidential and subject to the Tech Mahindra policy statement,
> > you may review at <a href="http://www.techmahindra.com/
> > Disclaimer.html">http://www.techmahindra.com/Disclaimer.html</a>
> > externally and <a href="http://tim.techmahindra.com/
> > Disclaimer.html">http://tim.techmahindra.com/Disclaimer.html</a>
> > internally within Tech Mahindra.
> >
> > ======================================================================
> > ======================================================
> > <ErrorOnSimultaneousAccessOf2WebApps.txt>