Server Warnings: Invalid type


#1

How do I address the following errors on provision using c3-prov?

Error: [c3GridDemo/prod] Server Errors: (2018-01-16T16:00:55.698-08:00)
[Cause] java.lang.NullPointerException
[Message] wrapped NullPointerException

    at c3.love.deployment.MetadataFileCache.lambda$sort$25 (MetadataFileCache.java:550)
[Cause] java.lang.NullPointerException
[Message] wrapped NullPointerException

    at c3.love.deployment.MetadataFileCache.lambda$sort$25 (MetadataFileCache.java:550)
Results:
[
  [
    [
      null,
      null
    ]
  ]
]

or

[c3GridDemo/prod] Server Warnings:
{fileUrl:"meta://base/uiDesigner/ui/designer/templates/template/Overlay.c3ml",lineNum:0,colNum:0,severity:"WARNING",message:"transformed content is null"}
{fileUrl:"meta://base/uiDesigner/ui/designer/templates/Controller.c3ml",lineNum:0,colNum:0,severity:"WARNING",message:"transformed content is null"}
{fileUrl:"meta://demo/c3GridDemo/package.json",lineNum:0,colNum:0,severity:"WARNING",message:"Invalid type DashboardConfig!",targetType:"EnableAclPrivilege",targetId:"dashboardconfig_acl_controlled"}
{fileUrl:"meta://demo/c3GridDemo/package.json",lineNum:0,colNum:0,severity:"WARNING",message:"Invalid type FacilityObjective!",targetType:"EnableAclPrivilege",targetId:"facilityObjective_acl_controlled"}
...

the equivalent in Chrome Developer Console:

main.js:913 c3.love.exceptions.C3RuntimeException: Invalid type UserPreference!
    at c3.love.C3.type(C3.java:371)
    at c3.love.C3.type(C3.java:364)
    at c3.engine.database.admin.AclPrivilegesListenerMethods.lambda$validate$1(AclPrivilegesListenerMethods.java:70)

#2

DbMetadataIssue.removeAll() and reprovision.


#3

Could something like this be passed to c3-prov (instead of doing it in the console)?
I just learned that a way to get around these problems is to keep old types/data as deprecated.