Users - Why do I get this error?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Users - Why do I get this error?

dhilip kumar
Can anyone help me to find this error?
 
 
 
 982062 (http-0.0.0.0-8080-Processor4) [            BshUtil.java:185:WARN ]
---- exception report ----------------------------------------------------------
WARNING: no cause (from getCause) found for BSH EvalError: Sourced file: component://order/webapp/ordermgr/WEB-INF/actions/entry/catalog/productsummary.bsh : null : at Line: 75 : in file: component://order/webapp/ordermgr/WEB-INF/actions/entry/catalog/productsummary.bsh : product .getRelatedCache ( "ProductReview" , null , UtilMisc .toList ( "-postedDateTime" ) )
 
Target exception: java.lang.NullPointerException: Null Pointer in Method Invocation
 
Exception: bsh.TargetError
Message: Sourced file: component://order/webapp/ordermgr/WEB-INF/actions/entry/catalog/productsummary.bsh : null
---- stack trace ---------------------------------------------------------------
Sourced file: component://order/webapp/ordermgr/WEB-INF/actions/entry/catalog/productsummary.bsh : null : at Line: 75 : in file: component://order/webapp/ordermgr/WEB-INF/actions/entry/catalog/productsummary.bsh : product .getRelatedCache ( "ProductReview" , null , UtilMisc .toList ( "-postedDateTime" ) )
Target exception: java.lang.NullPointerException: Null Pointer in Method Invocation
bsh.UtilTargetError.toEvalError(UtilTargetError.java:70)
bsh.UtilEvalError.toEvalError(UtilEvalError.java:87)
bsh.BSHMethodInvocation.eval(BSHMethodInvocation.java:79)
bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:69)
bsh.BSHAssignment.eval(BSHAssignment.java:58)
bsh.Interpreter.evalParsedScript(Interpreter.java:1104)
org.ofbiz.base.util.BshUtil.runBshAtLocation(BshUtil.java:169)
org.ofbiz.widget.screen.ModelScreenAction$Script.runAction(ModelScreenAction.java:388)
org.ofbiz.widget.screen.ModelScreenAction.runSubActions(ModelScreenAction.java:117)
org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:243)
org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:103)
org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:115)
org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:100)
sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source)
 
 
Dhilip
 
 


Blab-away for as little as 1¢/min. Make PC-to-Phone Calls using Yahoo! Messenger with Voice.
 
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Users - Why do I get this error?

Jacopo Cappellato
Hi dhilip,

I'm not sure how to reproduce this error but a few minutes ago I've
committed a fix (svn rev. 7062) that should solve your problem (my guess
is that you are trying to display the detail page of a product that
doesn't exists, or you ar not passing the productId parameter).

Jacopo

dhilip kumar wrote:

> Can anyone help me to find this error?
>  
>  
>  
>  982062 (http-0.0.0.0-8080-Processor4) [            BshUtil.java:185:WARN ]
> ---- exception report
> ----------------------------------------------------------
> WARNING: no cause (from getCause) found for BSH EvalError: Sourced file:
> component://order/webapp/ordermgr/WEB-INF/actions/entry/catalog/productsummary.bsh
> : null : at Line: 75 : in file:
> component://order/webapp/ordermgr/WEB-INF/actions/entry/catalog/productsummary.bsh
> : product .getRelatedCache ( "ProductReview" , null , UtilMisc .toList (
> "-postedDateTime" ) )
>  
> Target exception: java.lang.NullPointerException: Null Pointer in Method
> Invocation
>  
> Exception: bsh.TargetError
> Message: Sourced file:
> component://order/webapp/ordermgr/WEB-INF/actions/entry/catalog/productsummary.bsh
> : null
> ---- stack trace
> ---------------------------------------------------------------
> Sourced file:
> component://order/webapp/ordermgr/WEB-INF/actions/entry/catalog/productsummary.bsh
> : null : at Line: 75 : in file:
> component://order/webapp/ordermgr/WEB-INF/actions/entry/catalog/productsummary.bsh
> : product .getRelatedCache ( "ProductReview" , null , UtilMisc .toList (
> "-postedDateTime" ) )
> Target exception: java.lang.NullPointerException: Null Pointer in Method
> Invocation
> bsh.UtilTargetError.toEvalError(UtilTargetError.java:70)
> bsh.UtilEvalError.toEvalError(UtilEvalError.java:87)
> bsh.BSHMethodInvocation.eval(BSHMethodInvocation.java:79)
> bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:69)
> bsh.BSHAssignment.eval(BSHAssignment.java:58)
> bsh.Interpreter.evalParsedScript(Interpreter.java:1104)
> org.ofbiz.base.util.BshUtil.runBshAtLocation(BshUtil.java:169)
> org.ofbiz.widget.screen.ModelScreenAction$Script.runAction(ModelScreenAction.java:388)
> org.ofbiz.widget.screen.ModelScreenAction.runSubActions(ModelScreenAction.java:117)
> org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:243)
> org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:103)
> org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:115)
> org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:100)
> sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source)
>  
>  
> Dhilip
>  
>  
>
> ------------------------------------------------------------------------
> Blab-away for as little as 1¢/min. Make PC-to-Phone Calls
> <http://us.rd.yahoo.com/mail_us/taglines/postman2/*http://us.rd.yahoo.com/evt=39663/*http://voice.yahoo.com>
> using Yahoo! Messenger with Voice.
>
>
> ------------------------------------------------------------------------
>
>  
> _______________________________________________
> Users mailing list
> [hidden email]
> http://lists.ofbiz.org/mailman/listinfo/users

 
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Users - Why do I get this error?

puranisank
In reply to this post by dhilip kumar

Thanks Jacopo.
But I have not the table ProductReview in the database, instead I have only product_review in the database. Is productreview been changed to product_review internally?
You told the line says
"select * from productreview where productid=product.productid order by postedDateTime desc."
And again only product_id is available in the tables product and product_review and not productid.

But where is null represented.

Purani
 


On Fri, 24 Mar 2006 Jacopo Cappellato wrote :
>Hi dhilip,
>
>I'm not sure how to reproduce this error but a few minutes ago I've
>committed a fix (svn rev. 7062) that should solve your problem (my guess
>is that you are trying to display the detail page of a product that
>doesn't exists, or you ar not passing the productId parameter).
>
>Jacopo
>
>dhilip kumar wrote:
> > Can anyone help me to find this error?
> >
> >
> >
> >  982062 (http-0.0.0.0-8080-Processor4) [            BshUtil.java:185:WARN ]
> > ---- exception report
> > ----------------------------------------------------------
> > WARNING: no cause (from getCause) found for BSH EvalError: Sourced file:
> > component://order/webapp/ordermgr/WEB-INF/actions/entry/catalog/productsummary.bsh
> > : null : at Line: 75 : in file:
> > component://order/webapp/ordermgr/WEB-INF/actions/entry/catalog/productsummary.bsh
> > : product .getRelatedCache ( "ProductReview" , null , UtilMisc .toList (
> > "-postedDateTime" ) )
> >
> > Target exception: java.lang.NullPointerException: Null Pointer in Method
> > Invocation
> >
> > Exception: bsh.TargetError
> > Message: Sourced file:
> > component://order/webapp/ordermgr/WEB-INF/actions/entry/catalog/productsummary.bsh
> > : null
> > ---- stack trace
> > ---------------------------------------------------------------
> > Sourced file:
> > component://order/webapp/ordermgr/WEB-INF/actions/entry/catalog/productsummary.bsh
> > : null : at Line: 75 : in file:
> > component://order/webapp/ordermgr/WEB-INF/actions/entry/catalog/productsummary.bsh
> > : product .getRelatedCache ( "ProductReview" , null , UtilMisc .toList (
> > "-postedDateTime" ) )
> > Target exception: java.lang.NullPointerException: Null Pointer in Method
> > Invocation
> > bsh.UtilTargetError.toEvalError(UtilTargetError.java:70)
> > bsh.UtilEvalError.toEvalError(UtilEvalError.java:87)
> > bsh.BSHMethodInvocation.eval(BSHMethodInvocation.java:79)
> > bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:69)
> > bsh.BSHAssignment.eval(BSHAssignment.java:58)
> > bsh.Interpreter.evalParsedScript(Interpreter.java:1104)
> > org.ofbiz.base.util.BshUtil.runBshAtLocation(BshUtil.java:169)
> > org.ofbiz.widget.screen.ModelScreenAction$Script.runAction(ModelScreenAction.java:388)
> > org.ofbiz.widget.screen.ModelScreenAction.runSubActions(ModelScreenAction.java:117)
> > org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:243)
> > org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:103)
> > org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:115)
> > org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:100)
> > sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source)
> >
> >
> > Dhilip
> >
> >
> >
> > ------------------------------------------------------------------------
> > Blab-away for as little as 1¢/min. Make PC-to-Phone Calls
> > <http://us.rd.yahoo.com/mail_us/taglines/postman2/*http://us.rd.yahoo.com/evt=39663/*http://voice.yahoo.com>
> > using Yahoo! Messenger with Voice.
> >
> >
> > ------------------------------------------------------------------------
> >
> >
> > _______________________________________________
> > Users mailing list
> > [hidden email]
> > http://lists.ofbiz.org/mailman/listinfo/users
>
>
>_______________________________________________
>Users mailing list
>[hidden email]
>http://lists.ofbiz.org/mailman/listinfo/users




 
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Users - Why do I get this error?

Jacopo Cappellato
ProductReview and productId are logical names that are mapped in the db
as product_review and product_id.

For your second question:

http://www.ofbiz.org/api/framework/entity/build/javadocs/org/ofbiz/entity/GenericValue.html#getRelatedCache(java.lang.String,%20java.util.Map,%20java.util.List)

Jacopo

Purani S wrote:

> Thanks Jacopo.
> But I have not the table ProductReview in the database, instead I have
> only product_review in the database. Is productreview been changed to
> product_review internally?
> You told the line says
> "select * from productreview where productid=product.productid order by
> postedDateTime desc."
> And again only product_id is available in the tables product and
> product_review and not productid.
>
> But where is null represented.
>
> Purani
>  
>
>
> On Fri, 24 Mar 2006 Jacopo Cappellato wrote :
>  >Hi dhilip,
>  >
>  >I'm not sure how to reproduce this error but a few minutes ago I've
>  >committed a fix (svn rev. 7062) that should solve your problem (my guess
>  >is that you are trying to display the detail page of a product that
>  >doesn't exists, or you ar not passing the productId parameter).
>  >
>  >Jacopo
>  >
>  >dhilip kumar wrote:
>  > > Can anyone help me to find this error?
>  > >
>  > >
>  > >
>  > >  982062 (http-0.0.0.0-8080-Processor4) [            
> BshUtil.java:185:WARN ]
>  > > ---- exception report
>  > > ----------------------------------------------------------
>  > > WARNING: no cause (from getCause) found for BSH EvalError: Sourced
> file:
>  > >
> component://order/webapp/ordermgr/WEB-INF/actions/entry/catalog/productsummary.bsh
>  > > : null : at Line: 75 : in file:
>  > >
> component://order/webapp/ordermgr/WEB-INF/actions/entry/catalog/productsummary.bsh
>  > > : product .getRelatedCache ( "ProductReview" , null , UtilMisc
> .toList (
>  > > "-postedDateTime" ) )
>  > >
>  > > Target exception: java.lang.NullPointerException: Null Pointer in
> Method
>  > > Invocation
>  > >
>  > > Exception: bsh.TargetError
>  > > Message: Sourced file:
>  > >
> component://order/webapp/ordermgr/WEB-INF/actions/entry/catalog/productsummary.bsh
>  > > : null
>  > > ---- stack trace
>  > > ---------------------------------------------------------------
>  > > Sourced file:
>  > >
> component://order/webapp/ordermgr/WEB-INF/actions/entry/catalog/productsummary.bsh
>  > > : null : at Line: 75 : in file:
>  > >
> component://order/webapp/ordermgr/WEB-INF/actions/entry/catalog/productsummary.bsh
>  > > : product .getRelatedCache ( "ProductReview" , null , UtilMisc
> .toList (
>  > > "-postedDateTime" ) )
>  > > Target exception: java.lang.NullPointerException: Null Pointer in
> Method
>  > > Invocation
>  > > bsh.UtilTargetError.toEvalError(UtilTargetError.java:70)
>  > > bsh.UtilEvalError.toEvalError(UtilEvalError.java:87)
>  > > bsh.BSHMethodInvocation.eval(BSHMethodInvocation.java:79)
>  > > bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:69)
>  > > bsh.BSHAssignment.eval(BSHAssignment.java:58)
>  > > bsh.Interpreter.evalParsedScript(Interpreter.java:1104)
>  > > org.ofbiz.base.util.BshUtil.runBshAtLocation(BshUtil.java:169)
>  > >
> org.ofbiz.widget.screen.ModelScreenAction$Script.runAction(ModelScreenAction.java:388)
>  > >
> org.ofbiz.widget.screen.ModelScreenAction.runSubActions(ModelScreenAction.java:117)
>  > >
> org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:243)
>  > >
> org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:103)
>  > > org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:115)
>  > > org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:100)
>  > > sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source)
>  > >
>  > >
>  > > Dhilip
>  > >
>  > >
>  > >
>  > >
> ------------------------------------------------------------------------
>  > > Blab-away for as little as 1¢/min. Make PC-to-Phone Calls
>  > >
> <http://us.rd.yahoo.com/mail_us/taglines/postman2/*http://us.rd.yahoo.com/evt=39663/*http://voice.yahoo.com>
>  > > using Yahoo! Messenger with Voice.
>  > >
>  > >
>  > >
> ------------------------------------------------------------------------
>  > >
>  > >
>  > > _______________________________________________
>  > > Users mailing list
>  > > [hidden email]
>  > > http://lists.ofbiz.org/mailman/listinfo/users
>  >
>  >
>  >_______________________________________________
>  >Users mailing list
>  >[hidden email]
>  >http://lists.ofbiz.org/mailman/listinfo/users
>
>
>
> <http://adworks.rediff.com/cgi-bin/AdWorks/sigclick.cgi/www.rediff.com/signature-home.htm/1507191490@Middle5?PARTNER=3>
>
>
>
> ------------------------------------------------------------------------
>
>  
> _______________________________________________
> Users mailing list
> [hidden email]
> http://lists.ofbiz.org/mailman/listinfo/users

 
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users