java.lang.IllegalArgumentException: NodeRef may not be null for calls to NodeService

471 views
Skip to first unread message

Anand Mohan Singh

unread,
Sep 12, 2013, 5:11:49 AM9/12/13
to craft...@googlegroups.com
Hello,
  I am bit stuck here. Everything was working fine and for the respective website the contents were getting published very smoothly. All of sudden the above mentioned exception started to come. FYI, I have Authoring and Deployment node on different machines (both are on same cloud). I browsed over the net but didn't find anything useful. Can anyone help me with this ? The stack trace is as follows:-
2013-Sep-12 09:04:52,012  ERROR [deployment.job.DeployContentToEnvironmentStore] [DefaultScheduler_Worker-8] Error while executing deployment to environment store
java.lang.IllegalArgumentException: NodeRef may not be null for calls to NodeService.  Check client code.
        at org.alfresco.repo.node.MLPropertyInterceptor.getPivotNodeRef(MLPropertyInterceptor.java:321)
        at org.alfresco.repo.node.MLPropertyInterceptor.invoke(MLPropertyInterceptor.java:173)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
        at org.alfresco.repo.node.NodeRefPropertyMethodInterceptor.invoke(NodeRefPropertyMethodInterceptor.java:212)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
        at org.alfresco.repo.node.NodeRefPropertyMethodInterceptor.invoke(NodeRefPropertyMethodInterceptor.java:212)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
        at com.sun.proxy.$Proxy8.getProperties(Unknown Source)
        at org.alfresco.repo.model.filefolder.FileFolderServiceImpl.toFileInfo(FileFolderServiceImpl.java:269)
        at org.alfresco.repo.model.filefolder.FileFolderServiceImpl.getFileInfo(FileFolderServiceImpl.java:1409)
        at org.craftercms.cstudio.alfresco.service.impl.PersistenceManagerServiceImpl.getFileInfo(PersistenceManagerServiceImpl.java:1128)
        at org.craftercms.cstudio.alfresco.service.impl.PersistenceManagerServiceImpl.getFileInfo(PersistenceManagerServiceImpl.java:1123)
        at org.craftercms.cstudio.alfresco.dm.service.impl.DmContentServiceImpl.generateDeleteActivity(DmContentServiceImpl.java:2020)
        at org.craftercms.cstudio.alfresco.dm.service.impl.DmContentServiceImpl.generateDeleteActivity(DmContentServiceImpl.java:2000)
        at org.craftercms.cstudio.impl.repository.alfresco.AlfrescoContentRepository.deleteContent(AlfrescoContentRepository.java:481)
        at org.craftercms.cstudio.impl.service.deployment.PublishingManagerImpl.processItem(PublishingManagerImpl.java:449)
        at org.craftercms.cstudio.impl.service.deployment.job.DeployContentToEnvironmentStore.processJobs(DeployContentToEnvironmentStore.java:100)
        at sun.reflect.GeneratedMethodAccessor447.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.craftercms.cstudio.impl.repository.alfresco.AlfrescoContentRepository$1.doWork(AlfrescoContentRepository.java:101)
        at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil.java:519)
        at org.craftercms.cstudio.impl.repository.alfresco.AlfrescoContentRepository.runAs(AlfrescoContentRepository.java:96)
        at org.craftercms.cstudio.impl.service.authentication.AuthenticationServiceImpl.runAs(AuthenticationServiceImpl.java:39)
        at org.craftercms.cstudio.impl.service.deployment.job.DeployContentToEnvironmentStore.execute(DeployContentToEnvironmentStore.java:53)
        at sun.reflect.GeneratedMethodAccessor446.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.springframework.util.MethodInvoker.invoke(MethodInvoker.java:273)
        at org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean$MethodInvokingJob.executeInternal(MethodInvokingJobDetailFactoryBean.java:264)
        at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:86)
        at org.quartz.core.JobRunShell.run(JobRunShell.java:216)
        at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:563)

Anand Mohan Singh

unread,
Sep 13, 2013, 3:55:00 AM9/13/13
to

   Any help !!! Still not able to decipher what is the issue ? I am attaching the Manage Node screen shot for your reference. 

Anand Mohan Singh

unread,
Sep 14, 2013, 10:23:51 AM9/14/13
to craft...@googlegroups.com


On Thursday, 12 September 2013 14:41:49 UTC+5:30, Anand Mohan Singh wrote:
Message has been deleted

Anand Mohan Singh

unread,
Sep 15, 2013, 7:01:35 AM9/15/13
to craft...@googlegroups.com
Hello Russ,
   Thanks for the reply. We looked in the logs and both in alfresco.log and catalina.out we are getting exactly same logs.In other tomcat log files nothing is being logged. Besides that on authoring node we don't have any other logs files. If you want I can share the log file.
    Regarding the configuration we followed http://wiki.craftercms.org/display/CRAFTER/Set+Up+Multi-Tenancy to set up our deployment node and accordingly updated our endpoint files of respective website on authoring node. And it was working fine as we were able to publish content on same deployment node for more than two website. It broke all of a sudden when we tried to publish a new content for a already existing and functional website.
    Based on the exception we dig into the class DeployContentToEnvironmentStore and found that it publish the content of all website one by one and while executing the processJobs() the exception is coming. We tried by removing all the content which were created from the time the error was coming but nothing happened. Is there a way to kill/restart this deployment scheduler job/process so that it can start fresh ?
Message has been deleted
Message has been deleted

Anand Mohan Singh

unread,
Sep 19, 2013, 3:39:31 AM9/19/13
to craft...@googlegroups.com
Hello Dejan,
   Thanks for the reply. We are using MySQL as our database and Crafter is running on Ubuntu. Regarding the log, we incorporated the debug level in alfresco's log4j.properties and then we got this detailed log. When the issue came the debug level was off and in the log we only had the shared stack trace. This stack trace was both in catalina.out and alfresco.log. In cstudio-share.log we didn't have anything.
  The problem is that on authoring node we are able to make the contents very smoothly. However when we click 'Go Live' to publish it goes to 'Processing' state and remain as it for hours even more than 24 hours. And in the log the shared stack trace keeps on coming. So basically we are not able to publish. And to add before this issue everything was working fine. So we are presuming it to be a data issue but don't know how to pin point that data.
   It would be great if probable cause for this exception can be shared so that we can stream line our debugging. Also can we get the latest source code of the community edition. The one present on the website i.e. the github one seems to be outdated as we have package mismatches.

Anand Mohan Singh

unread,
Sep 19, 2013, 11:22:01 AM9/19/13
to
Hello,
   In order to unblock ourselves we decided to do fresh installation of Crafter setup on the same machine.We dropped the crafter database and recreated it. Moved the alfresco folder from /opt to another location and installed again the authoring node at /opt/alfresco location following the instruction given on wiki. After staring the tomcat and logging into share we created a new website. However that site seems to be corrupt. As the site dashboard don't have the Crafter icon displayed at the top-left side and on clicking the Admin console link 'No Site' page is coming. I am attaching the log file.
catalina.out

Russ Danner

unread,
Sep 22, 2013, 8:06:09 PM9/22/13
to Anand Mohan Singh, craftercms
Hi Anand,

This symptom typically points to a corrupt solr index in Alfresco.  Try re-indexing.
You can find documentation for re-indexing Alfresco on our wiki wiki.craftercms.org under ops

----
Russ Danner, Vice President, Products



On Thu, Sep 19, 2013 at 8:14 AM, Anand Mohan Singh <andy....@gmail.com> wrote:
Hello,
   In order to unblock ourselves we decided to do fresh installation of Crafter setup on the same machine.We dropped the crafter database and recreated it. Moved the alfresco folder from /opt to another location and installed again the authoring node at /opt/alfresco location following the instruction given on wiki. After staring the tomcat and logging into share we created a new website. However that site seems to be corrupt. As the site dashboard don't have the Crafter icon displayed at the top-left side and on clicking the Admin console link 'No Site' page is coming. I am attaching the log file.

--
You received this message because you are subscribed to the Google Groups "CrafterCMS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to craftercms+...@googlegroups.com.
Visit this group at http://groups.google.com/group/craftercms.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages