[
https://issues.apache.org/jira/browse/OFBIZ-10760?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16741293#comment-16741293 ]
Mathieu Lirzin commented on OFBIZ-10760:
----------------------------------------
Thanks Michael,
Yes I think we should keep it open (or open another dedicated one)
My investigations didn't led me to a straightforward solution on how to fix that issue. The problem leading to {{null}} pointers exceptions is that Artifact info retrieval tries to access the {{delegator}} which is intentionally not provided in the dispatch context according the comment inside the {{ArtifactInfoFactory}} constructor:
{code:java}
protected ArtifactInfoFactory(String delegatorName) throws GeneralException {
this.delegatorName = delegatorName;
this.entityModelReader = ModelReader.getModelReader(delegatorName);
DelegatorElement delegatorInfo = EntityConfig.getInstance().getDelegator(delegatorName);
String modelName;
if (delegatorInfo != null) {
modelName = delegatorInfo.getEntityModelReader();
} else {
modelName = "main";
}
// since we do not associate a dispatcher to this DispatchContext, it is important to set a name of an existing entity model reader:
// in this way it will be possible to retrieve the service models from the cache
this.dispatchContext = new DispatchContext(modelName, this.getClass().getClassLoader(), null);
this.prepareAll();
}
{code}
I fail to understand the full picture even after looking at the commit logs, so some help would be welcome.
> Errors and warnings in webtools' ArtifactInfo
> ---------------------------------------------
>
> Key: OFBIZ-10760
> URL:
https://issues.apache.org/jira/browse/OFBIZ-10760> Project: OFBiz
> Issue Type: Bug
> Components: framework/webtools
> Affects Versions: Trunk, Release Branch 17.12, Release Branch 18.12
> Reporter: Mathieu Lirzin
> Assignee: Michael Brohl
> Priority: Major
> Fix For: 17.12.01, 18.12.01
>
> Attachments: ArtifactInfo.log, OFBIZ-10760_Fixed-Remove-updateEntitySyncRunning-service.patch, OFBIZ-10760_Fixed-Removing-unused-services.patch, OFBIZ-10760_Fixed-declare-entity-auto-services-properly.patch
>
>
> When running {{
https://localhost:8443/webtools/control/ArtifactInfo}} multiple warnings and errors are logged, including missing definition of services and {{null}} pointer exceptions.
> The filtered log is available in [^ArtifactInfo.log] .
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)