X class showing error from PO

78 views
Skip to first unread message

Mamadou Saliou Sall

unread,
Jul 21, 2016, 7:56:32 AM7/21/16
to iDempiere
Hi All,

I am working on a custom document, and when I generated the X and I Class I faced to issue with: 

getAD_Client_ID()

setAD_Org_ID(int AD_Org_ID)

getCreated()

getCreatedBy() 

setIsActive(boolean IsActive

isActive()

getUpdated()

getUpdatedBy()


Where I am requested to: remove the 'final' modifier of'PO.all_above_method', can someone assist please?


Any idea will be appreciated.


Best Regards,


SALL

Mamadou Saliou Sall

unread,
Jul 23, 2016, 4:41:53 AM7/23/16
to iDempiere
Hi all,

any idea please?

Regards,

SALL

Nicolas Micoud

unread,
Jul 23, 2016, 7:07:19 AM7/23/16
to iDempiere
Hi,
I don't understand what's you issue and/or what you try to achieve.
Those X classes should not be overriden manually, but using M classes or Event validators.

Regards,

Nicolas

redhuan d. oon

unread,
Jul 23, 2016, 6:31:14 PM7/23/16
to iDempiere
Using the Aladdin Magic Plugin it helps you generate them much easier and error free. I used the code done by Nicolas Micoud. Works like magic. That is why i called it so. http://wiki.idempiere.org/en/Plugin:_Aladdin_Magic_Plugin

Mamadou Saliou Sall

unread,
Jul 24, 2016, 3:24:54 AM7/24/16
to iDempiere
Hi Nicolas,

I also don't understand why this issue is happening, I removed those above method and runed the application below is the issue I am facing now:

WARNING: MWFNode[1000001-(DocPrepare),Action=DocumentAction=PR]

java.lang.IllegalStateException: Persistent Object not DocAction - org.adempiere.model.GenericPO - AD_Table_ID=1000011, Record_ID=1000000

at org.compiere.wf.MWFActivity.performWork(MWFActivity.java:1029)

at org.compiere.wf.MWFActivity.run(MWFActivity.java:874)

at org.compiere.wf.MWFProcess.startNext(MWFProcess.java:373)

at org.compiere.wf.MWFProcess.checkActivities(MWFProcess.java:283)

at org.compiere.wf.MWFActivity.setWFState(MWFActivity.java:277)

at org.compiere.wf.MWFActivity.run(MWFActivity.java:891)

at org.compiere.wf.MWFProcess.startWork(MWFProcess.java:505)

at org.compiere.wf.MWorkflow.start(MWorkflow.java:687)

at org.adempiere.util.ProcessUtil.startWorkFlow(ProcessUtil.java:313)

at org.compiere.apps.AbstractProcessCtl.startWorkflow(AbstractProcessCtl.java:391)

at org.compiere.apps.AbstractProcessCtl.run(AbstractProcessCtl.java:209)

at org.adempiere.webui.apps.WProcessCtl.process(WProcessCtl.java:197)

at org.adempiere.webui.apps.AbstractProcessDialog$ProcessDialogRunnable.doRun(AbstractProcessDialog.java:1054)

at org.adempiere.util.ContextRunnable.run(ContextRunnable.java:38)

at org.adempiere.webui.apps.DesktopRunnable.run(DesktopRunnable.java:40)

at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)

at java.util.concurrent.FutureTask.run(FutureTask.java:262)

at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)

at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

at java.lang.Thread.run(Thread.java:745)


Those anyone know what it means?

Regards,

SALL 

Nicolas Micoud

unread,
Jul 24, 2016, 4:14:38 AM7/24/16
to iDempiere
Hi,
I don't have Eclipse under my eyes, but I think some columns are missing from your table (DocAction, DocStatus, C_Currency_ID, Description, ....)
Perhaps give a try to red1's plugin for generating the a "generic" docaction table and compare columns

Nicolas
Reply all
Reply to author
Forward
0 new messages