Details
Description
Reproduction path:
- mvn org.apache.maven.plugins:maven-archetype-plugin:2.4:generate -DarchetypeRepository=https://maven.onehippo.com/maven2-snapshots -DarchetypeGroupId=org.onehippo.cms7 -DarchetypeArtifactId=hippo-project-archetype -DarchetypeVersion=12.0.2-SNAPSHOT
(this error also occurs with the 12.0.1 release) - cd myhippoproject
- mvn clean verify
- mvn -Pcargo.run
- Open http://localhost:8080/cms, login with admin/admin
- Make sure auto-export is enabled on the left of the screen. Should be enabled by default.
- Go to Content, Document Types (from the dropdown), Create Namespace: "mynamespace" with url "http://www.onehippo.org/mynamespace/1.0"
- The new namespace is not auto-exported and a NPE is shown in the logs, see below. See attached stacktrace.txt for full stacktrace.
[INFO] [talledLocalContainer] 12:32:46 INFO autoexporting source: myhippoproject/myhippoproject/myhippoproject-repository-data-application [config: main.yaml] [INFO] [talledLocalContainer] 03.10.2017 12:32:46 ERROR pool-9-thread-1 [EventJournalProcessor.processEvents:375] Failure writing files during auto-export -- files on disk may not be valid! [INFO] [talledLocalContainer] 12:32:46 INFO autoexport service disabled, processing remaining changes [INFO] [talledLocalContainer] 12:32:46 ERROR Processing events failed: [INFO] [talledLocalContainer] java.lang.NullPointerException: null [INFO] [talledLocalContainer] at org.onehippo.cm.model.mapper.NtFileMapper.apply(NtFileMapper.java:30) ~[hippo-configuration-management-model-1.0.2-SNAPSHOT.jar:1.0.2-SNAPSHOT] [INFO] [talledLocalContainer] at org.onehippo.cm.model.mapper.ValueFileMapperProvider.lambda$generateName$0(ValueFileMapperProvider.java:63) ~[hippo-configuration-management-model-1.0.2-SNAPSHOT.jar:1.0.2-SNAPSHOT] ...