forked from adempiere/adempiere
-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug Report] NPE al Completar Recepción con cargo #56
Comments
Bug ReportWhen an attempt is made to complete a receipt of materials with an associated charge, an 'NPE' is generated. Steps to Play
===========> ModelValidationEngine.lambda$fireDocValidate$19: null [1852]
java.lang.NullPointerException
at org.compiere.asset.model.validator.FixedAsset.docValidate(FixedAsset.java:203)
at org.compiere.model.ModelValidationEngine.lambda$fireDocValidate$19(ModelValidationEngine.java:519)
at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183)
at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:177)
at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1655)
at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)
at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150)
at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173)
at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:497)
at org.compiere.model.ModelValidationEngine.lambda$fireDocValidate$20(ModelValidationEngine.java:517)
at java.base/java.util.Optional.ifPresent(Optional.java:183)
at org.compiere.model.ModelValidationEngine.fireDocValidate(ModelValidationEngine.java:514)
at org.compiere.model.ModelValidationEngine.fireDocValidate(ModelValidationEngine.java:462)
at org.compiere.model.MInOut.completeIt(MInOut.java:1615)
at org.compiere.process.DocumentEngine.completeIt(DocumentEngine.java:558)
at org.compiere.process.DocumentEngine.prepareThenCompleteIt(DocumentEngine.java:343)
at org.compiere.process.DocumentEngine.processIt(DocumentEngine.java:317)
at org.compiere.process.DocumentEngine.processIt(DocumentEngine.java:288)
at org.compiere.model.MInOut.processIt(MInOut.java:1080)
at org.compiere.wf.MWFActivity.performWork(MWFActivity.java:861)
at org.compiere.wf.MWFActivity.run(MWFActivity.java:781)
at org.compiere.wf.MWFProcess.startNext(MWFProcess.java:341)
at org.compiere.wf.MWFProcess.checkActivities(MWFProcess.java:256)
at org.compiere.wf.MWFActivity.setWFState(MWFActivity.java:284)
at org.compiere.wf.MWFActivity.run(MWFActivity.java:784)
at org.compiere.wf.MWFProcess.startNext(MWFProcess.java:341)
at org.compiere.wf.MWFProcess.checkActivities(MWFProcess.java:256)
at org.compiere.wf.MWFActivity.setWFState(MWFActivity.java:284)
at org.compiere.wf.MWFActivity.run(MWFActivity.java:784)
at org.compiere.wf.MWFProcess.startWork(MWFProcess.java:471)
at org.compiere.wf.MWorkflow.start(MWorkflow.java:736)
at org.compiere.wf.MWorkflow.startWait(MWorkflow.java:798)
===========> ModelValidationEngine.lambda$fireDocValidate$19: null [1852]
java.lang.NullPointerException
at org.compiere.asset.model.validator.FixedAsset.docValidate(FixedAsset.java:203)
at org.compiere.model.ModelValidationEngine.lambda$fireDocValidate$19(ModelValidationEngine.java:519)
at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183)
at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:177)
at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1655)
at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)
at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150)
at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173)
at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:497)
at org.compiere.model.ModelValidationEngine.lambda$fireDocValidate$20(ModelValidationEngine.java:517)
at java.base/java.util.Optional.ifPresent(Optional.java:183)
at org.compiere.model.ModelValidationEngine.fireDocValidate(ModelValidationEngine.java:514)
at org.compiere.model.ModelValidationEngine.fireDocValidate(ModelValidationEngine.java:462)
at org.compiere.model.MInOut.completeIt(MInOut.java:1615)
at org.compiere.process.DocumentEngine.completeIt(DocumentEngine.java:558)
at org.compiere.process.DocumentEngine.prepareThenCompleteIt(DocumentEngine.java:343)
at org.compiere.process.DocumentEngine.processIt(DocumentEngine.java:317)
at org.compiere.process.DocumentEngine.processIt(DocumentEngine.java:288)
at org.compiere.model.MInOut.processIt(MInOut.java:1080)
at org.compiere.wf.MWFActivity.performWork(MWFActivity.java:861)
at org.compiere.wf.MWFActivity.run(MWFActivity.java:781)
at org.compiere.wf.MWFProcess.startNext(MWFProcess.java:341)
at org.compiere.wf.MWFProcess.checkActivities(MWFProcess.java:256)
at org.compiere.wf.MWFActivity.setWFState(MWFActivity.java:284)
at org.compiere.wf.MWFActivity.run(MWFActivity.java:784)
at org.compiere.wf.MWFProcess.startNext(MWFProcess.java:341)
at org.compiere.wf.MWFProcess.checkActivities(MWFProcess.java:256)
at org.compiere.wf.MWFActivity.setWFState(MWFActivity.java:284)
at org.compiere.wf.MWFActivity.run(MWFActivity.java:784)
at org.compiere.wf.MWFProcess.startWork(MWFProcess.java:471)
at org.compiere.wf.MWorkflow.start(MWorkflow.java:736)
at org.compiere.wf.MWorkflow.startWait(MWorkflow.java:798)
-----------> MWFActivity.run: MWFNode[190-(DocComplete),Action=DocumentAction=CO] [1852]
org.adempiere.exceptions.AdempiereException: java.lang.NullPointerException
at org.compiere.model.ModelValidationEngine.lambda$fireDocValidate$19(ModelValidationEngine.java:533)
at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183)
at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:177)
at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1655)
at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)
at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150)
at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173)
at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:497)
at org.compiere.model.ModelValidationEngine.lambda$fireDocValidate$20(ModelValidationEngine.java:517)
at java.base/java.util.Optional.ifPresent(Optional.java:183)
at org.compiere.model.ModelValidationEngine.fireDocValidate(ModelValidationEngine.java:514)
at org.compiere.model.ModelValidationEngine.fireDocValidate(ModelValidationEngine.java:462)
at org.compiere.model.MInOut.completeIt(MInOut.java:1615)
at org.compiere.process.DocumentEngine.completeIt(DocumentEngine.java:558)
at org.compiere.process.DocumentEngine.prepareThenCompleteIt(DocumentEngine.java:343)
at org.compiere.process.DocumentEngine.processIt(DocumentEngine.java:317)
at org.compiere.process.DocumentEngine.processIt(DocumentEngine.java:288)
at org.compiere.model.MInOut.processIt(MInOut.java:1080)
at org.compiere.wf.MWFActivity.performWork(MWFActivity.java:861)
at org.compiere.wf.MWFActivity.run(MWFActivity.java:781)
at org.compiere.wf.MWFProcess.startNext(MWFProcess.java:341)
at org.compiere.wf.MWFProcess.checkActivities(MWFProcess.java:256)
at org.compiere.wf.MWFActivity.setWFState(MWFActivity.java:284)
at org.compiere.wf.MWFActivity.run(MWFActivity.java:784)
at org.compiere.wf.MWFProcess.startNext(MWFProcess.java:341)
at org.compiere.wf.MWFProcess.checkActivities(MWFProcess.java:256)
at org.compiere.wf.MWFActivity.setWFState(MWFActivity.java:284)
at org.compiere.wf.MWFActivity.run(MWFActivity.java:784)
at org.compiere.wf.MWFProcess.startWork(MWFProcess.java:471)
at org.compiere.wf.MWorkflow.start(MWorkflow.java:736)
at org.compiere.wf.MWorkflow.startWait(MWorkflow.java:798)
-----------> MWFActivity.run: MWFNode[190-(DocComplete),Action=DocumentAction=CO] [1852]
org.adempiere.exceptions.AdempiereException: java.lang.NullPointerException
at org.compiere.model.ModelValidationEngine.lambda$fireDocValidate$19(ModelValidationEngine.java:533)
at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183)
at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:177)
at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1655)
at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)
at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150)
at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173)
at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:497)
at org.compiere.model.ModelValidationEngine.lambda$fireDocValidate$20(ModelValidationEngine.java:517)
at java.base/java.util.Optional.ifPresent(Optional.java:183)
at org.compiere.model.ModelValidationEngine.fireDocValidate(ModelValidationEngine.java:514)
at org.compiere.model.ModelValidationEngine.fireDocValidate(ModelValidationEngine.java:462)
at org.compiere.model.MInOut.completeIt(MInOut.java:1615)
at org.compiere.process.DocumentEngine.completeIt(DocumentEngine.java:558)
at org.compiere.process.DocumentEngine.prepareThenCompleteIt(DocumentEngine.java:343)
at org.compiere.process.DocumentEngine.processIt(DocumentEngine.java:317)
at org.compiere.process.DocumentEngine.processIt(DocumentEngine.java:288)
at org.compiere.model.MInOut.processIt(MInOut.java:1080)
at org.compiere.wf.MWFActivity.performWork(MWFActivity.java:861)
at org.compiere.wf.MWFActivity.run(MWFActivity.java:781)
at org.compiere.wf.MWFProcess.startNext(MWFProcess.java:341)
at org.compiere.wf.MWFProcess.checkActivities(MWFProcess.java:256)
at org.compiere.wf.MWFActivity.setWFState(MWFActivity.java:284)
at org.compiere.wf.MWFActivity.run(MWFActivity.java:784)
at org.compiere.wf.MWFProcess.startNext(MWFProcess.java:341)
at org.compiere.wf.MWFProcess.checkActivities(MWFProcess.java:256)
at org.compiere.wf.MWFActivity.setWFState(MWFActivity.java:284)
at org.compiere.wf.MWFActivity.run(MWFActivity.java:784)
at org.compiere.wf.MWFProcess.startWork(MWFProcess.java:471)
at org.compiere.wf.MWorkflow.start(MWorkflow.java:736)
at org.compiere.wf.MWorkflow.startWait(MWorkflow.java:798) Additional contextThis happens when you have the model validator |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Reporte de Error
Cuando se intenta completar una recepción de materiales con un cargo asociado se genera un
NPE
Pasos para Reproducir
Contexto adicional
Esto sucede cuando se tiene habilitado el validador de modelo
org.compiere.asset.model.validator.FixedAsset
Referencia: adempiere#4238
The text was updated successfully, but these errors were encountered: