Import CDN throws an error and sturns auto export off

28 views
Skip to first unread message

michel.t...@gmail.com

unread,
Oct 19, 2017, 8:38:47 AM10/19/17
to Hippo Community
Hi,

i am working with Hippo 12 and when i am trying to import a new CDN, its throws this error:

ERROR pool-9-thread-1 [HippoImageFileMapper.apply:80] HippoImageFileMapper failed
[INFO] [talledLocalContainer] java.lang.NullPointerException: null
[INFO] [talledLocalContainer] at org.onehippo.cm.model.mapper.HippoImageFileMapper.apply(HippoImageFileMapper.java:53) ~[hippo-configuration-management-model-1.0.1.jar:1.0.1]
[INFO] [talledLocalContainer] at org.onehippo.cm.model.mapper.ValueFileMapperProvider.lambda$generateName$0(ValueFileMapperProvider.java:63) ~[hippo-configuration-management-model-1.0.1.jar:1.0.1]
[INFO] [talledLocalContainer] at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193) ~[?:1.8.0_121]
[INFO] [talledLocalContainer] at java.util.ArrayList$ArrayListSpliterator.tryAdvance(ArrayList.java:1351) ~[?:1.8.0_121]
[INFO] [talledLocalContainer] at java.util.stream.ReferencePipeline.forEachWithCancel(ReferencePipeline.java:126) ~[?:1.8.0_121]
[INFO] [talledLocalContainer] at java.util.stream.AbstractPipeline.copyIntoWithCancel(AbstractPipeline.java:498) ~[?:1.8.0_121]
[INFO] [talledLocalContainer] at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:485) ~[?:1.8.0_121]
[INFO] [talledLocalContainer] at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471) ~[?:1.8.0_121]
[INFO] [talledLocalContainer] at java.util.stream.FindOps$FindOp.evaluateSequential(FindOps.java:152) ~[?:1.8.0_121]
[INFO] [talledLocalContainer] at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:1.8.0_121]
[INFO] [talledLocalContainer] at java.util.stream.ReferencePipeline.findFirst(ReferencePipeline.java:464) ~[?:1.8.0_121]
[INFO] [talledLocalContainer] at org.onehippo.cm.model.mapper.ValueFileMapperProvider.generateName(ValueFileMapperProvider.java:66) ~[hippo-configuration-management-model-1.0.1.jar:1.0.1]
[INFO] [talledLocalContainer] at org.onehippo.cm.model.serializer.ModuleContext.collectExistingFilesAndResolveNewResources(ModuleContext.java:177) ~[hippo-configuration-management-model-1.0.1.jar:1.0.1]
[INFO] [talledLocalContainer] at org.onehippo.cm.model.serializer.ModuleWriter.writeModule(ModuleWriter.java:69) ~[hippo-configuration-management-model-1.0.1.jar:1.0.1]
[INFO] [talledLocalContainer] at org.onehippo.cm.engine.autoexport.AutoExportModuleWriter.writeModule(AutoExportModuleWriter.java:49) ~[hippo-repository-engine-5.0.1.jar:5.0.1]
[INFO] [talledLocalContainer] at org.onehippo.cm.model.serializer.ModuleWriter.writeModule(ModuleWriter.java:63) ~[hippo-configuration-management-model-1.0.1.jar:1.0.1]
[INFO] [talledLocalContainer] at org.onehippo.cm.engine.autoexport.EventJournalProcessor.exportChangesModule(EventJournalProcessor.java:620) ~[hippo-repository-engine-5.0.1.jar:5.0.1]
[INFO] [talledLocalContainer] at org.onehippo.cm.engine.autoexport.EventJournalProcessor.processEvents(EventJournalProcessor.java:374) ~[hippo-repository-engine-5.0.1.jar:5.0.1]
[INFO] [talledLocalContainer] at org.onehippo.cm.engine.autoexport.EventJournalProcessor.tryProcessEvents(EventJournalProcessor.java:256) ~[hippo-repository-engine-5.0.1.jar:5.0.1]
[INFO] [talledLocalContainer] at org.onehippo.cm.engine.autoexport.EventJournalProcessor.lambda$new$0(EventJournalProcessor.java:127) ~[hippo-repository-engine-5.0.1.jar:5.0.1]
[INFO] [talledLocalContainer] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_121]
[INFO] [talledLocalContainer] at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_121]
[INFO] [talledLocalContainer] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) [?:1.8.0_121]
[INFO] [talledLocalContainer] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [?:1.8.0_121]
[INFO] [talledLocalContainer] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_121]
[INFO] [talledLocalContainer] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_121]
[INFO] [talledLocalContainer] at java.lang.Thread.run(Thread.java:745) [?:1.8.0_121]

ERROR pool-9-thread-1 [EventJournalProcessor.processEvents:383] Failure writing files during auto-export -- files on disk may not be valid!

Debug Informations: (Comments written behind the lines)

public String apply(Value value) {
        try {
            DefinitionProperty property = value.getParent(); // value = resource:xyz.cdn (string) | getParent() returns null
            DefinitionNode imageNode = property.getParent(); // crashes, beacuse property is null
            if (!this.isType(imageNode, "hippogallery:image")) {
                return null;
            } else {


After this  i am able to import my namespaces via xml, but this is not auto exported, because its turned down. When i am trying to turn it on again, its throws an error and its disabled.

My cdn file:


[xyz:basedocument] > hippo:document, hippostd:publishableSummary, hippostdpubwf:document
  orderable

[xyz:contactdocument] > hippostd:relaxed, hippotranslation:translated, xyz:basedocument
  orderable

[xyz:contentblockcontact] > hippo:compound, hippostd:relaxed
  orderable

[xyz:downloaddocument] > hippostd:relaxed, hippotranslation:translated, xyz:basedocument
  orderable

[xyz:peutecontactcompound] > hippostd:relaxed, hippotranslation:translated, xyz:basedocument
  orderable

[xyz:peutecontactdocument] > abc:basedocument, hippostd:relaxed, hippotranslation:translated
  orderable

[xyz:peutecontentblockcontact] > hippo:compound, hippostd:relaxed
  orderable



Someone an idea what i can do here?

Tobias Jeger

unread,
Oct 19, 2017, 9:46:59 AM10/19/17
to hippo-c...@googlegroups.com
Hi,

please note that you refer to a CND, not a CDN, which is a rather different type of animal.

I suggest to try again with the latest tag (the GA version). Off the top of my head, we ran into this issue too, hardening the new code towards the GA release, and it should (please confirm!) be fixed when using the 12.0.2 version (which includes hippo-configuration-management-model-1.0.2.jar).

HTH

Tobi



--
Hippo Community Group: The place for all discussions and announcements about Hippo CMS (and HST, repository etc. etc.)
 
To post to this group, send email to hippo-community@googlegroups.com
RSS: https://groups.google.com/group/hippo-community/feed/rss_v2_0_msgs.xml?num=50
---
You received this message because you are subscribed to the Google Groups "Hippo Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hippo-community+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/hippo-community.
For more options, visit https://groups.google.com/d/optout.



--
Amsterdam - Oosteinde 11, 1017 WT Amsterdam
Boston - 101 Main Street, Cambridge, MA 02142

US +1 877 414 4776 (toll free)
Europe +31(0)20 522 4466
www.onehippo.com

michel.t...@gmail.com

unread,
Oct 24, 2017, 3:33:17 PM10/24/17
to Hippo Community
I found a solution for me. I added

<Logger name="org.apache.jackrabbit.core.persistence.bundle" level="warn"/>

to the log4j2-dev.xml file. This prevents the broken path and its working for me.

michel.t...@gmail.com

unread,
Oct 24, 2017, 3:33:22 PM10/24/17
to Hippo Community
Hi,

this fixes the problem to import CND file, but it cant serialize files in version 1.0.2.


java.lang.NullPointerException: null
[INFO] [talledLocalContainer] at org.onehippo.cm.model.serializer.SourceSerializer.serializeResourceValue(SourceSerializer.java:381) ~[hippo-configuration-management-model-1.0.2.jar:1.0.2]
[INFO] [talledLocalContainer] at org.onehippo.cm.model.serializer.SourceSerializer.representNamespaceDefinition(SourceSerializer.java:366) ~[hippo-configuration-management-model-1.0.2.jar:1.0.2]
[INFO] [talledLocalContainer] at org.onehippo.cm.model.serializer.SourceSerializer.representSource(SourceSerializer.java:88) ~[hippo-configuration-management-model-1.0.2.jar:1.0.2]
[INFO] [talledLocalContainer] at org.onehippo.cm.engine.autoexport.EventJournalProcessor.createChangesModule(EventJournalProcessor.java:551) ~[hippo-repository-engine-5.0.2.jar:5.0.2]
[INFO] [talledLocalContainer] at org.onehippo.cm.engine.autoexport.EventJournalProcessor.processEvents(EventJournalProcessor.java:356) ~[hippo-repository-engine-5.0.2.jar:5.0.2]
[INFO] [talledLocalContainer] at org.onehippo.cm.engine.autoexport.EventJournalProcessor.tryProcessEvents(EventJournalProcessor.java:253) ~[hippo-repository-engine-5.0.2.jar:5.0.2]
[INFO] [talledLocalContainer] at org.onehippo.cm.engine.autoexport.EventJournalProcessor.lambda$new$0(EventJournalProcessor.java:127) ~[hippo-repository-engine-5.0.2.jar:5.0.2]
[INFO] [talledLocalContainer] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_121]
[INFO] [talledLocalContainer] at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) [?:1.8.0_121]
[INFO] [talledLocalContainer] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) [?:1.8.0_121]
[INFO] [talledLocalContainer] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) [?:1.8.0_121]
[INFO] [talledLocalContainer] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_121]
[INFO] [talledLocalContainer] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_121]
[INFO] [talledLocalContainer] at java.lang.Thread.run(Thread.java:745) [?:1.8.0_121]

This happens because the module context is null:

protected void serializeResourceValue(ValueImpl value) {
        this.moduleContext.serializeResourceValue(this.source, value);  //this.moduleContext is null
    }


This is null, because its initialized with null at EventJournalProcessor (hippo-repository-engine-5.0.2):

if (log.isInfoEnabled()) {
            SourceSerializer sourceSerializer = new SourceSerializer((ModuleContext)null, configSource, false); //this initialized it with null
            StringWriter writer = new StringWriter();
            sourceSerializer.serializeNode(writer, sourceSerializer.representSource());
            log.info("Computed diff: \n{}", writer.toString());
            log.info("added content: \n\t{}", String.join("\n\t", addedContent));
            log.info("changed content: \n\t{}", String.join("\n\t", this.pendingChanges.getChangedContent()));
            log.info("deleted content: \n\t{}", String.join("\n\t", deletedContent));
        }

Any ideas? 

Tobias Jeger

unread,
Oct 26, 2017, 5:14:02 AM10/26/17
to hippo-c...@googlegroups.com
I created a maintenance issue for this:


thanks for reporting!

Tobi

--
Hippo Community Group: The place for all discussions and announcements about Hippo CMS (and HST, repository etc. etc.)
 
To post to this group, send email to hippo-community@googlegroups.com
RSS: https://groups.google.com/group/hippo-community/feed/rss_v2_0_msgs.xml?num=50
---
You received this message because you are subscribed to the Google Groups "Hippo Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hippo-community+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/hippo-community.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages