You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by "Dale E. Moore" <Da...@gMail.Com> on 2012/10/01 15:09:16 UTC

null [null] on the field phaseName of form hoursNotYetBilled?

Using "Release-revision : release12.04-1388834" demo data DemoEmployee2
completed their timesheet. Admin went to Billing on that project and got
this error 

org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen
[component://common/widget/CommonScreens.xml#GlobalDecorator]:
java.lang.IllegalArgumentException: Return value from use-when condition
eval was not a Boolean: null [null] on the field phaseName of form
hoursNotYetBilled (Return value from use-when condition eval was not a
Boolean: null [null] on the field phaseName of form hoursNotYetBilled)

at https://localhost:8443/projectmgr/control/projectBilling?projectId=9000

I found specialpurpose/projectmgr/widget/form/ProjectForms.xml contains

<field name="phaseName" position="1" use-when="showPosition1"><display
description="${phaseName}[${phaseId}]"/></field>

and changed it to 

<field name="phaseName" position="1" use-when="showPosition1!=null"><display
description="${phaseName}[${phaseId}]"/></field>

but https://localhost:8443/projectmgr/control/projectBilling?projectId=9000
now gives me

org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen
[component://common/widget/CommonScreens.xml#GlobalDecorator]:
java.lang.IllegalArgumentException: Return value from use-when condition
eval was not a Boolean: null [null] on the field workEffortName of form
hoursNotYetBilled (Return value from use-when condition eval was not a
Boolean: null [null] on the field workEffortName of form hoursNotYetBilled)

It appears to me that I've created a data error and I'm unsure what to do to
correct the error.

Since it's now Monday DemoEmployee2 has a new timesheet and has started
entering hours, but; Admin still gets the same error at Billing.

How can I correct my error and how can I avoid this error in the future?



--
View this message in context: http://ofbiz.135035.n4.nabble.com/null-null-on-the-field-phaseName-of-form-hoursNotYetBilled-tp4636567.html
Sent from the OFBiz - User mailing list archive at Nabble.com.

Re: null [null] on the field phaseName of form hoursNotYetBilled?

Posted by "Dale E. Moore" <Da...@gMail.Com>.
Hmmm, the thing that I skipped over in this thread was that I went back to
11.04 where I do not experience the bug. Trying 12.04 again experiences the
same issue. I'll enter a https://issues.apache.org/jira/browse/OFBIZ.



--
View this message in context: http://ofbiz.135035.n4.nabble.com/null-null-on-the-field-phaseName-of-form-hoursNotYetBilled-tp4636567p4636891.html
Sent from the OFBiz - User mailing list archive at Nabble.com.

Re: null [null] on the field phaseName of form hoursNotYetBilled?

Posted by "Dale E. Moore" <Da...@gMail.Com>.
Thanks to Ruth and Hans those were helpful. I was able to generate invoices
by setting the date correctly in the Project Billing screen.



--
View this message in context: http://ofbiz.135035.n4.nabble.com/null-null-on-the-field-phaseName-of-form-hoursNotYetBilled-tp4636567p4636606.html
Sent from the OFBiz - User mailing list archive at Nabble.com.

Re: null [null] on the field phaseName of form hoursNotYetBilled?

Posted by "Dale E. Moore" <Da...@gMail.Com>.
Hmmm... 10.04 stable does not encounter some of those errors. 

But I'm getting the undocumented "No timeentry items found".

Perhaps http://www.mail-archive.com/user@ofbiz.apache.org/msg25087.html and
https://cwiki.apache.org/confluence/display/OFBENDUSER/OFBiz+in+a+service+and+project+oriented+company
will help.



--
View this message in context: http://ofbiz.135035.n4.nabble.com/null-null-on-the-field-phaseName-of-form-hoursNotYetBilled-tp4636567p4636605.html
Sent from the OFBiz - User mailing list archive at Nabble.com.

Re: null [null] on the field phaseName of form hoursNotYetBilled?

Posted by "Dale E. Moore" <Da...@gMail.Com>.
And :ERROR MESSAGE:
org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen
[component://common/widget/CommonScreens.xml#GlobalDecorator]:
java.lang.NullPointerException (null) from DemoEmployee2, My Portal,
Preferences in https://demo-stable.ofbiz.apache.org/projectmgr
(release10.04-1393192). 



--
View this message in context: http://ofbiz.135035.n4.nabble.com/null-null-on-the-field-phaseName-of-form-hoursNotYetBilled-tp4636567p4636604.html
Sent from the OFBiz - User mailing list archive at Nabble.com.

Re: null [null] on the field phaseName of form hoursNotYetBilled?

Posted by "Dale E. Moore" <Da...@gMail.Com>.
I wonder if I would be better off using some other branch? Perhaps Project
Manager in other branches has fewer bugs? Like
https://demo-stable.ofbiz.apache.org/projectmgr (release10.04-1393192) as
DemoEmployee2 gets (org.ofbiz.widget.screen.ScreenRenderException: Error
rendering screen
[component://common/widget/CommonScreens.xml#GlobalDecorator]:
java.lang.IllegalArgumentException: Error running Groovy script at location
[component://projectmgr/webapp/projectmgr/WEB-INF/actions/ListCurrentProjects.groovy]:
org.ofbiz.service.ServiceAuthException: You have no access to the project#:
9100 (Error running Groovy script at location
[component://projectmgr/webapp/projectmgr/WEB-INF/actions/ListCurrentProjects.groovy]:
org.ofbiz.service.ServiceAuthException: You have no access to the project#:
9100)) 



--
View this message in context: http://ofbiz.135035.n4.nabble.com/null-null-on-the-field-phaseName-of-form-hoursNotYetBilled-tp4636567p4636603.html
Sent from the OFBiz - User mailing list archive at Nabble.com.