Hi All,
I am trying to get jbilling setup but running into a few issues.
I am tryng the add gst to orders using the gui via a simple rule and
using the RulesItemManager plugin or the RulesItemManager2 plugin
however get varying issues depending on which one I use.
When using the RulesItemManager plugin I get a NPE thrown from the view
layer as follows:
javax.servlet.ServletException: java.lang.NullPointerException
org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:545)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:486)
bla bla caused by:
java.lang.NullPointerException
com.sapienter.jbilling.client.order.NewOrderItemAction.execute(NewOrderItemAction.java:132)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
When using the RulesItemManager2 plugin, I do not get any exceptions but
instead of adding 10% tax, a charge of $10 is added to the invoice.
Looking thru the minimal doc and other posts for this kind of issue it
looks like I most likely have some conflicting plugin configured but
there is no reference to say "if using a, then only use b and c but no x
y or z" so I am not sure what needs to be added / removed.
I have version 2.1.1 running on java 1.6.0_20-b02 on Linux. I have a
clean system as I did a setup with MySQL which all seems to be working
fine (but could be wrong) and a new company, not using Trend. And had
only the basic plugins that come with the clean setup and added the
RulesItemManager .
When the exception is thrown, I get this form the jbilling log:
2010-06-17 09:34:08,378 DEBUG
[com.sapienter.jbilling.client.order.NewOrderItemAction] Adding item 101
quant 1
2010-06-17 09:34:08,384 DEBUG
[com.sapienter.jbilling.server.order.OrderSessionBean] Adding item 101 q:1
2010-06-17 09:34:08,386 DEBUG
[com.sapienter.jbilling.server.pluggableTask.admin.PluggableTaskManager]
total classes = 1
2010-06-17 09:34:08,386 DEBUG
[com.sapienter.jbilling.server.pluggableTask.admin.PluggableTaskManager]
Applying task com.sapienter.jbilling.server.item.tasks.RulesItemManager
2010-06-17 09:34:08,402 DEBUG
[com.sapienter.jbilling.server.pluggableTask.admin.PluggableTaskManager]
total classes = 0
2010-06-17 09:34:08,448 DEBUG
[com.sapienter.jbilling.server.pluggableTask.admin.PluggableTaskManager]
total classes = 0
2010-06-17 09:34:08,460 DEBUG
[com.sapienter.jbilling.server.pluggableTask.admin.PluggableTaskManager]
total classes = 0
2010-06-17 09:34:08,460 DEBUG
[com.sapienter.jbilling.server.util.DTOFactory] getting the user 20
2010-06-17 09:34:08,511 DEBUG
[com.sapienter.jbilling.server.util.PreferenceBL] Now looking for
preference 43 ent 1 table entity
2010-06-17 09:34:08,563 DEBUG
[com.sapienter.jbilling.server.user.ContactBL] ContactDTO: getting
custom fields
2010-06-17 09:34:08,566 DEBUG
[com.sapienter.jbilling.server.user.ContactBL] Returning dto with 0 fields
When using RulesItemManager2 I get the following:
2010-06-17 09:35:21,586 DEBUG
[com.sapienter.jbilling.client.order.NewOrderItemAction] Adding item 101
quant 1
2010-06-17 09:35:21,588 DEBUG
[com.sapienter.jbilling.server.order.OrderSessionBean] Adding item 101 q:1
2010-06-17 09:35:21,593 DEBUG
[com.sapienter.jbilling.server.pluggableTask.admin.PluggableTaskManager]
total classes = 1
2010-06-17 09:35:21,593 DEBUG
[com.sapienter.jbilling.server.pluggableTask.admin.PluggableTaskManager]
Applying task com.sapienter.jbilling.server.order.task.RulesItemManager2
2010-06-17 09:35:21,606 DEBUG
[com.sapienter.jbilling.server.pluggableTask.admin.PluggableTaskManager]
total classes = 0
2010-06-17 09:35:21,609 DEBUG
[com.sapienter.jbilling.server.util.DTOFactory] getting the user 20
2010-06-17 09:35:21,647 DEBUG
[com.sapienter.jbilling.server.util.PreferenceBL] Now looking for
preference 43 ent 1 table entity
2010-06-17 09:35:21,694 DEBUG
[com.sapienter.jbilling.server.user.ContactBL] ContactDTO: getting
custom fields
2010-06-17 09:35:21,698 DEBUG
[com.sapienter.jbilling.server.user.ContactBL] Returning dto with 0 fields
2010-06-17 09:35:21,699 DEBUG
[com.sapienter.jbilling.server.order.task.RulesItemManager2] in memory
context=Order =
id=null,baseUserByUserId=20,baseUserByCreatedBy=20,currencydto=com.sapienter.jbilling.server.util.db.currency...@1322013,orderStatusDTO=null,orderPeriodDTO=OrderPeriodDTO:[
id=1 company=null periodUnitDTO=null value=null
versionNum=null],orderBillingTypeDTO=
OrderBillingType=2,activeSince=null,activeUntil=null,createDate=Thu Jun
17 09:35:21 EST
2010,nextBillableDay=null,deleted=0,notify=0,lastNotified=null,notificationStep=null,dueDateUnitId=3,dueDateValue=null,dfFm=0,anticipatePeriods=null,ownInvoice=0,notes=,notesInInvoice=0,orderProcesses=[],isCurrent=0,versionNum=null
lines:[OrderLine:[id=0 orderLineType=1 item=101 order id=null amount=90
quantity=1 price=90 createDatetime=Thu Jun 17 09:35:21 EST 2010
deleted=0 description=1300 number porting versionNum=null
provisioningStatus=null provisionningRequestId=null editable=true]-]
2010-06-17 09:35:21,699 DEBUG
[com.sapienter.jbilling.server.order.task.RulesItemManager2] in memory
context=UserDTO{id=20, userName='baxit'}
2010-06-17 09:35:21,699 DEBUG
[com.sapienter.jbilling.server.order.task.RulesItemManager2] <removed>
18:30:07.0 deleted 0 include 1 userId null contactMap = null null
versionNum 0{}
2010-06-17 09:35:21,703 DEBUG
[com.sapienter.jbilling.server.pluggableTask.PluggableTask] processing
parameter url value
http://192.168.23.73:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/vl_pricing/LATEST
2010-06-17 09:35:21,703 DEBUG
[com.sapienter.jbilling.server.pluggableTask.PluggableTask] adding
parameter
http://192.168.23.73:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/vl_pricing/LATEST
2010-06-17 09:35:23,554 DEBUG
[com.sapienter.jbilling.server.order.task.RulesItemManager2] RULE:
Adding GST
2010-06-17 09:35:23,574 DEBUG
[com.sapienter.jbilling.client.list.GenericListTag] List requested:itemOrder
2010-06-17 09:35:23,574 DEBUG
[com.sapienter.jbilling.client.list.GenericListTag] Using cached list
itemOrder
Can anyone point me to a resource that details how to use and setup the
plugins - the extension guide only looks at the rules and java side of
things and does not say what needs to be done in jbilling itself to
configure the plugins ("Use the Source Luke" ???). Any help would be
appreciated.
Cheers,
Ben
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit. See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
www.jbilling.com - jBilling-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jbilling-users