Skip to content
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

Push Publishing - NullPointerException when pushing from a sender to another reciver #9110

Closed
gabbydotCMS opened this issue May 18, 2016 · 4 comments

Comments

@gabbydotCMS
Copy link
Contributor

commented May 18, 2016

The following exception was reported in the dotcms.log file when pushing from a sender to a receiver.

[18/05/16 10:28:20:327 EDT]  INFO util.FileUtil: Move method: Source equal to Destination, no need to move.
[18/05/16 10:28:20:388 EDT]  INFO util.FileUtil: Move method: Source equal to Destination, no need to move.
[18/05/16 10:28:21:745 EDT] ERROR handler.RuleHandler: An error occurred when processing rule [0862904c-105d-4d8d-8991-e7ec34b132ae] in bundle [fc2811ad-857c-451f-a94e-4594a5859885.tar.gz]
java.lang.NullPointerException: Rule is required
    at com.dotcms.repackage.com.google.common.base.Preconditions.checkNotNull(Preconditions.java:204) ~[dot.guava-11.0.1_2.jar:?]
    at com.dotmarketing.portlets.rules.business.RulesCacheImpl.getConditionGroupsIdsByRule(RulesCacheImpl.java:294) ~[dotcms_3.5_g14af2ce.jar:?]
    at com.dotcms.enterprise.rules.h.getConditionGroupsByRule(SourceFile:310) ~[ee-gaf7f4f0.jar:?]
    at com.dotcms.enterprise.RulesFactoryProxy.getConditionGroupsByRule(SourceFile:126) ~[ee-gaf7f4f0.jar:?]
    at com.dotmarketing.portlets.rules.model.Rule.getGroups(Rule.java:179) ~[dotcms_3.5_g14af2ce.jar:?]
    at com.dotcms.enterprise.publishing.remote.handler.RuleHandler.a(SourceFile:122) [ee-gaf7f4f0.jar:?]
    at com.dotcms.enterprise.publishing.remote.handler.RuleHandler.handle(SourceFile:74) [ee-gaf7f4f0.jar:?]
    at com.dotcms.publisher.receiver.BundlePublisher.process(BundlePublisher.java:161) [dotcms_3.5_g14af2ce.jar:?]
    at com.dotcms.rest.PublishThread.run(PublishThread.java:41) [dotcms_3.5_g14af2ce.jar:?]
    at java.lang.Thread.run(Thread.java:745) [?:1.8.0_91]
[18/05/16 10:28:21:752 EDT]  INFO guava.GuavaCache: ***  Building Cache : workflowstepcache, size:1000,Concurrency:32
[18/05/16 10:28:21:841 EDT] ERROR business.PublisherAPIImpl: Error Publishing Bundle: An error occurred when processing rule [0862904c-105d-4d8d-8991-e7ec34b132ae] in bundle [fc2811ad-857c-451f-a94e-4594a5859885.tar.gz]
com.dotcms.publishing.DotPublishingException: An error occurred when processing rule [0862904c-105d-4d8d-8991-e7ec34b132ae] in bundle [fc2811ad-857c-451f-a94e-4594a5859885.tar.gz]
    at com.dotcms.enterprise.publishing.remote.handler.RuleHandler.a(SourceFile:166) ~[ee-gaf7f4f0.jar:?]
    at com.dotcms.enterprise.publishing.remote.handler.RuleHandler.handle(SourceFile:74) ~[ee-gaf7f4f0.jar:?]
    at com.dotcms.publisher.receiver.BundlePublisher.process(BundlePublisher.java:161) [dotcms_3.5_g14af2ce.jar:?]
    at com.dotcms.rest.PublishThread.run(PublishThread.java:41) [dotcms_3.5_g14af2ce.jar:?]
    at java.lang.Thread.run(Thread.java:745) [?:1.8.0_91]
Caused by: java.lang.NullPointerException: Rule is required
    at com.dotcms.repackage.com.google.common.base.Preconditions.checkNotNull(Preconditions.java:204) ~[dot.guava-11.0.1_2.jar:?]
    at com.dotmarketing.portlets.rules.business.RulesCacheImpl.getConditionGroupsIdsByRule(RulesCacheImpl.java:294) ~[dotcms_3.5_g14af2ce.jar:?]
    at com.dotcms.enterprise.rules.h.getConditionGroupsByRule(SourceFile:310) ~[ee-gaf7f4f0.jar:?]
    at com.dotcms.enterprise.RulesFactoryProxy.getConditionGroupsByRule(SourceFile:126) ~[ee-gaf7f4f0.jar:?]
    at com.dotmarketing.portlets.rules.model.Rule.getGroups(Rule.java:179) ~[dotcms_3.5_g14af2ce.jar:?]
    at com.dotcms.enterprise.publishing.remote.handler.RuleHandler.a(SourceFile:122) ~[ee-gaf7f4f0.jar:?]
    ... 4 more
[18/05/16 10:28:21:845 EDT] ERROR lang.String: Error Publishing: com.dotcms.publishing.DotPublishingException: An error occurred when processing rule [0862904c-105d-4d8d-8991-e7ec34b132ae] in bundle [fc2811ad-857c-451f-a94e-4594a5859885.tar.gz]
[18/05/16 10:28:21:845 EDT]  INFO rest.PublishThread: Finished bundle publish process

Both sender and receiver were running the dotCMS 3.5 starter site.

To reproduce:

  1. Create a new host (empty on the sender side, for example: pushpublishingtest.dotcmscloud.com)
  2. Create a new page using a starter site template (for example: pushpublishingtest.dotcmscloud.com/pp-test using "demo.dotcms.com Quest - 1 Column")
  3. Add a Content(Generic) piece of content to that page
  4. Push the whole host to the receiver
  5. You'll get the Rule is required error in the log.

@jtesser jtesser added this to the 3.6 milestone Jun 23, 2016

@wezell wezell changed the title Push Publishing - NullPointerException when pushing from a two-node clustered sender to a two node clustered reciver Push Publishing - NullPointerException when pushing from a sender to another reciver Jun 23, 2016

@dsilvam dsilvam added the z-iter-7 label Aug 1, 2016

@erickgonzalez erickgonzalez self-assigned this Aug 2, 2016

@erickgonzalez

This comment has been minimized.

Copy link
Contributor

commented Aug 4, 2016

Not able to reproduce in 3.6.

Tried with one single instance (as sender and receiver) and with a two-node cluster (as sender and receiver).

@oarrietadotcms

This comment has been minimized.

Copy link
Contributor

commented Oct 19, 2018

We need to reopen this one:

Cloud clients in 4.x experiencing the same error:

  1. https://dotcms.zendesk.com/agent/tickets/96686
  2. https://dotcms.zendesk.com/agent/tickets/96761

Can't reproduce locally so we will clone a an instance and remote debug.

@oarrietadotcms oarrietadotcms added this to Important Issues in Enterprise Services Issues Oct 19, 2018

@wezell wezell moved this from Important Issues to R&D Said will add to Current/Next Iteration in Enterprise Services Issues Jan 3, 2019

@wezell wezell modified the milestones: 3.6.0, Cody Current Jan 8, 2019

jdotcms added a commit that referenced this issue Jan 16, 2019

@jgambarios

This comment has been minimized.

Copy link
Contributor

commented Jan 16, 2019

@bryanboza

This comment has been minimized.

Copy link
Contributor

commented Jan 24, 2019

Fixed, tested after the fix and now I'm unable to recreate the instance locally. Tested with the following environments:

Sender: MacOSX // master // Oracle // FF
Receiver: MacOSX // master // postgres // Safari

@bryanboza bryanboza moved this from CODY to Done in QA Jan 24, 2019

@wezell wezell closed this Jan 29, 2019

Enterprise Services Issues automation moved this from R&D Said will add to Current/Next Iteration to Done Jan 29, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.