Posted by
G Venkata Phanindra on
URL: http://ofbiz.116.s1.nabble.com/Users-Help-Forum-Article-Respond-tp138407p138411.html
Hi All .....
Thanks for your valuble reply i also want the following information from you to get the solutions for pronlem with the forums section
along with page.getProperty we also have page.getPageName which is throwing exception to me as follows
i tried to use the same logic by replacing page.getPageName with context.getPageName but i am not sucessful........can any one give me more information to fix them
org.ofbiz.base.util.GeneralException: Error rendering screen [editforumarticle]: org.ofbiz.base.util.GeneralException: Error running BSH script at location [component://ecommerce/webapp/ecommerce/WEB-INF/actions/forum/permprep.bsh]: org.ofbiz.base.util.GeneralException: Error running BSH script at [component://ecommerce/webapp/ecommerce/WEB-INF/actions/forum/permprep.bsh], line [168]: Sourced file:
component://ecommerce/webapp/ecommerce/WEB-INF/actions/forum/permprep.bsh : Typed variable declaration : Error in method invocation: No args method getPageName() not found in class'org.ofbiz.base.util.collections.MapStack' : at Line: 168 : in file: component://ecommerce/webapp/ecommerce/WEB-INF/actions/forum/permprep.bsh : context .getPageName ( )
(Sourced file: component://ecommerce/webapp/ecommerce/WEB-INF/actions/forum/permprep.bsh : Typed variable declaration : Error in method invocation: No args method getPageName() not found in class'org.ofbiz.base.util.collections.MapStack') (Error running BSH script at [component://ecommerce/webapp/ecommerce/WEB-INF/actions/forum/permprep.bsh], line [168]: Sourced file: component://ecommerce/webapp/ecommerce/WEB-INF/actions/forum/permprep.bsh : Typed variable declaration : Error in method invocation: No args method getPageName() not found in class'org.ofbiz.base.util.collections.MapStack' : at Line: 168 : in file:
component://ecommerce/webapp/ecommerce/WEB-INF/actions/forum/permprep.bsh : context .getPageName ( )
(Sourced file: component://ecommerce/webapp/ecommerce/WEB-INF/actions/forum/permprep.bsh : Typed variable declaration : Error in method invocation: No args method getPageName() not found in class'org.ofbiz.base.util.collections.MapStack')) (Error running BSH script at location [component://ecommerce/webapp/ecommerce/WEB-INF/actions/forum/permprep.bsh]: org.ofbiz.base.util.GeneralException: Error running BSH script at [component://ecommerce/webapp/ecommerce/WEB-INF/actions/forum/permprep.bsh], line [168]: Sourced file: component://ecommerce/webapp/ecommerce/WEB-INF/actions/forum/permprep.bsh : Typed variable declaration : Error in method invocation: No args method getPageName() not found in class'org.ofbiz.base.util.collections.MapStack' : at Line: 168 : in file: component://ecommerce/webapp/ecommerce/WEB-INF/actions/forum/permprep.bsh : context .getPageName ( )
(Sourced file: component://ecommerce/webapp/ecommerce/WEB-INF/actions/forum/permprep.bsh : Typed variable declaration : Error in method invocation: No args method getPageName() not found in class'org.ofbiz.base.util.collections.MapStack') (Error running BSH script at [component://ecommerce/webapp/ecommerce/WEB-INF/actions/forum/permprep.bsh], line [168]: Sourced file: component://ecommerce/webapp/ecommerce/WEB-INF/actions/forum/permprep.bsh : Typed variable declaration : Error in method invocation: No args method getPageName() not found in class'org.ofbiz.base.util.collections.MapStack' : at Line: 168 : in file: component://ecommerce/webapp/ecommerce/WEB-INF/actions/forum/permprep.bsh : context .getPageName ( )
(Sourced file: component://ecommerce/webapp/ecommerce/WEB-INF/actions/forum/permprep.bsh : Typed variable declaration : Error in method invocation: No args method getPageName() not found in class'org.ofbiz.base.util.collections.MapStack')))
Thanks and Regards
Phani
Phani,
this appears to be a bug from the transition from
jpublish to screens. page was a map for all of the
context fields from jpublish. these are now defined in
the screen as fields from the context.
I believe changing all of the page.getProperty to
context.get should do the trick. I don't have an
environment available to test this though.
=========G Venkata Phanindra wrote:
Hi.....
I am facing problem with the forums section in ofbiz
......
Now i am looking at the problem with the
currentvalprep.bsh file ......
I could not get the functionality of the following
lines of code
entityName = page.getProperty("entityName");
currentEntityPropertyName =
page.getProperty("currentEntityPropertyName");
if (currentEntityPropertyName == null) {
currentEntityName = entityName;
} else {
currentEntityName =
page.getProperty(currentEntityPropertyName);
}
Where is the Variable Page is defined it is pointing
to javolution.util.FastMap but where is this defined
........
I also could not find the method with the APi of
javolution.util.FastMap
(http://javolution.org/api/javolution/util/FastMap.html)
I am looking for more information on the same
Thanks and Regards
Phani
With Regards,
G Venkata Phanindra.
Mobile :9849852989.
Jiyo cricket on
Yahoo! India cricket
Yahoo! Messenger Mobile Stay in touch with your buddies all the time.
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users