Thanks so much David!
Cheers, Tim -- Tim Ruppert HotWax Media http://www.hotwaxmedia.com o:801.649.6594 f:801.649.6595 ----- [hidden email] wrote: > Author: jonesde > Date: Wed May 6 19:08:10 2009 > New Revision: 772404 > > URL: http://svn.apache.org/viewvc?rev=772404&view=rev > Log: > Fixed issue with classpath reference to the > ContentManagementMapProcessors.xml file which was embedded in a Java > file; now the ecommerce factoids will render again > > Modified: > > ofbiz/trunk/applications/content/src/org/ofbiz/content/content/ContentServicesComplex.java > > ofbiz/trunk/applications/content/src/org/ofbiz/content/webapp/ftl/LimitedSubContentCacheTransform.java > > Modified: > ofbiz/trunk/applications/content/src/org/ofbiz/content/content/ContentServicesComplex.java > URL: > http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/src/org/ofbiz/content/content/ContentServicesComplex.java?rev=772404&r1=772403&r2=772404&view=diff > ============================================================================== > --- > ofbiz/trunk/applications/content/src/org/ofbiz/content/content/ContentServicesComplex.java > (original) > +++ > ofbiz/trunk/applications/content/src/org/ofbiz/content/content/ContentServicesComplex.java > Wed May 6 19:08:10 2009 > @@ -310,7 +310,7 @@ > contentAssocDataResourceView = > delegator.makeValue(viewName); > contentAssocDataResourceView.setAllFields(content, > true, null, null); > } > - > SimpleMapProcessor.runSimpleMapProcessor("org/ofbiz/content/ContentManagementMapProcessors.xml", > "contentAssocOut", contentAssoc, contentAssocDataResourceView, > FastList.newInstance(), locale); > + > SimpleMapProcessor.runSimpleMapProcessor("component://content/script/org/ofbiz/content/ContentManagementMapProcessors.xml", > "contentAssocOut", contentAssoc, contentAssocDataResourceView, > FastList.newInstance(), locale); > //if (Debug.infoOn()) Debug.logInfo("contentAssoc:" + > contentAssoc, module); > //contentAssocDataResourceView.setAllFields(contentAssoc, > false, null, null); > String dataResourceId = > content.getString("dataResourceId"); > @@ -320,7 +320,7 @@ > //if (Debug.infoOn()) > Debug.logInfo("contentAssocDataResourceView:" + > contentAssocDataResourceView, module); > if (dataResource != null) { > > //contentAssocDataResourceView.setAllFields(dataResource, false, null, > null); > - > SimpleMapProcessor.runSimpleMapProcessor("org/ofbiz/content/ContentManagementMapProcessors.xml", > "dataResourceOut", dataResource, contentAssocDataResourceView, > FastList.newInstance(), locale); > + > SimpleMapProcessor.runSimpleMapProcessor("component://content/script/org/ofbiz/content/ContentManagementMapProcessors.xml", > "dataResourceOut", dataResource, contentAssocDataResourceView, > FastList.newInstance(), locale); > } > //if (Debug.infoOn()) > Debug.logInfo("contentAssocDataResourceView:" + > contentAssocDataResourceView, module); > > contentAssocDataResourceList.add(contentAssocDataResourceView); > > Modified: > ofbiz/trunk/applications/content/src/org/ofbiz/content/webapp/ftl/LimitedSubContentCacheTransform.java > URL: > http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/src/org/ofbiz/content/webapp/ftl/LimitedSubContentCacheTransform.java?rev=772404&r1=772403&r2=772404&view=diff > ============================================================================== > --- > ofbiz/trunk/applications/content/src/org/ofbiz/content/webapp/ftl/LimitedSubContentCacheTransform.java > (original) > +++ > ofbiz/trunk/applications/content/src/org/ofbiz/content/webapp/ftl/LimitedSubContentCacheTransform.java > Wed May 6 19:08:10 2009 > @@ -145,10 +145,10 @@ > String contentAssocPredicateId = (String) > templateRoot.get("contentAssocPredicateId"); > try { > results = > ContentServicesComplex.getAssocAndContentAndDataResourceCacheMethod(delegator, > contentId, null, "From", fromDate, null, assocTypes, null, > Boolean.TRUE, contentAssocPredicateId, orderBy); > - } catch (MiniLangException e2) { > - throw new RuntimeException(e2.getMessage()); > + } catch (MiniLangException e) { > + throw new RuntimeException(e.getMessage(), e); > } catch (GenericEntityException e) { > - throw new RuntimeException(e.getMessage()); > + throw new RuntimeException(e.getMessage(), e); > } > List longList = (List) results.get("entityList"); > templateRoot.put("entityList", longList); |
No problem Tim. I just ran into this while testing other stuff. It may be the same as was reported earlier too (I hadn't gotten around to testing based on that report yet). -David On May 6, 2009, at 1:14 PM, Tim Ruppert wrote: > Thanks so much David! > > Cheers, > Tim > -- > Tim Ruppert > HotWax Media > http://www.hotwaxmedia.com > > o:801.649.6594 > f:801.649.6595 > > ----- [hidden email] wrote: > >> Author: jonesde >> Date: Wed May 6 19:08:10 2009 >> New Revision: 772404 >> >> URL: http://svn.apache.org/viewvc?rev=772404&view=rev >> Log: >> Fixed issue with classpath reference to the >> ContentManagementMapProcessors.xml file which was embedded in a Java >> file; now the ecommerce factoids will render again >> >> Modified: >> >> ofbiz/trunk/applications/content/src/org/ofbiz/content/content/ >> ContentServicesComplex.java >> >> ofbiz/trunk/applications/content/src/org/ofbiz/content/webapp/ftl/ >> LimitedSubContentCacheTransform.java >> >> Modified: >> ofbiz/trunk/applications/content/src/org/ofbiz/content/content/ >> ContentServicesComplex.java >> URL: >> http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/src/org/ofbiz/content/content/ContentServicesComplex.java?rev=772404&r1=772403&r2=772404&view=diff >> = >> = >> = >> = >> = >> = >> = >> = >> = >> ===================================================================== >> --- >> ofbiz/trunk/applications/content/src/org/ofbiz/content/content/ >> ContentServicesComplex.java >> (original) >> +++ >> ofbiz/trunk/applications/content/src/org/ofbiz/content/content/ >> ContentServicesComplex.java >> Wed May 6 19:08:10 2009 >> @@ -310,7 +310,7 @@ >> contentAssocDataResourceView = >> delegator.makeValue(viewName); >> contentAssocDataResourceView.setAllFields(content, >> true, null, null); >> } >> - >> SimpleMapProcessor.runSimpleMapProcessor("org/ofbiz/content/ >> ContentManagementMapProcessors.xml", >> "contentAssocOut", contentAssoc, contentAssocDataResourceView, >> FastList.newInstance(), locale); >> + >> SimpleMapProcessor.runSimpleMapProcessor("component://content/ >> script/org/ofbiz/content/ContentManagementMapProcessors.xml", >> "contentAssocOut", contentAssoc, contentAssocDataResourceView, >> FastList.newInstance(), locale); >> //if (Debug.infoOn()) Debug.logInfo("contentAssoc:" + >> contentAssoc, module); >> //contentAssocDataResourceView.setAllFields(contentAssoc, >> false, null, null); >> String dataResourceId = >> content.getString("dataResourceId"); >> @@ -320,7 +320,7 @@ >> //if (Debug.infoOn()) >> Debug.logInfo("contentAssocDataResourceView:" + >> contentAssocDataResourceView, module); >> if (dataResource != null) { >> >> //contentAssocDataResourceView.setAllFields(dataResource, false, >> null, >> null); >> - >> SimpleMapProcessor.runSimpleMapProcessor("org/ofbiz/content/ >> ContentManagementMapProcessors.xml", >> "dataResourceOut", dataResource, contentAssocDataResourceView, >> FastList.newInstance(), locale); >> + >> SimpleMapProcessor.runSimpleMapProcessor("component://content/ >> script/org/ofbiz/content/ContentManagementMapProcessors.xml", >> "dataResourceOut", dataResource, contentAssocDataResourceView, >> FastList.newInstance(), locale); >> } >> //if (Debug.infoOn()) >> Debug.logInfo("contentAssocDataResourceView:" + >> contentAssocDataResourceView, module); >> >> contentAssocDataResourceList.add(contentAssocDataResourceView); >> >> Modified: >> ofbiz/trunk/applications/content/src/org/ofbiz/content/webapp/ftl/ >> LimitedSubContentCacheTransform.java >> URL: >> http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/src/org/ofbiz/content/webapp/ftl/LimitedSubContentCacheTransform.java?rev=772404&r1=772403&r2=772404&view=diff >> = >> = >> = >> = >> = >> = >> = >> = >> = >> ===================================================================== >> --- >> ofbiz/trunk/applications/content/src/org/ofbiz/content/webapp/ftl/ >> LimitedSubContentCacheTransform.java >> (original) >> +++ >> ofbiz/trunk/applications/content/src/org/ofbiz/content/webapp/ftl/ >> LimitedSubContentCacheTransform.java >> Wed May 6 19:08:10 2009 >> @@ -145,10 +145,10 @@ >> String contentAssocPredicateId = (String) >> templateRoot.get("contentAssocPredicateId"); >> try { >> results = >> ContentServicesComplex >> .getAssocAndContentAndDataResourceCacheMethod(delegator, >> contentId, null, "From", fromDate, null, assocTypes, null, >> Boolean.TRUE, contentAssocPredicateId, orderBy); >> - } catch (MiniLangException e2) { >> - throw new RuntimeException(e2.getMessage()); >> + } catch (MiniLangException e) { >> + throw new RuntimeException(e.getMessage(), e); >> } catch (GenericEntityException e) { >> - throw new RuntimeException(e.getMessage()); >> + throw new RuntimeException(e.getMessage(), e); >> } >> List longList = (List) results.get("entityList"); >> templateRoot.put("entityList", longList); |
Free forum by Nabble | Edit this page |