1 Reply Latest reply: Jul 15, 2011 5:55 AM by 710251 RSS

    ATG Sitemap Generation in dyn admin

    871240
      Hi All,
      I am working on generating sitemaps using ATG sitemap generation tools for our website. I have come up with property files specified in the ATGProgGuide. When I do startService for both "Generate Sitemaps" and "Write Sitemaps", I am getting the following stack trace. Is it mandatory to have data in DAS_SITEINDEX table before running these services?

      I have created new components for each of static and dynamic sitemap generators. I have modified the SitemapGeneratorService.properties to include my new sitemapGenerators and sitemapIndexGenerator.

      It is failing while calling lookupAllItems() in SitemapTools for the item descriptor, siteindex.

      17:05:43,571 ERROR [[AdminProxyServlet]] Servlet.service() for servlet AdminProxyServlet threw exception
      java.lang.NullPointerException
      at atg.sitemap.StaticSitemapGenerator.generateSitemapUrls(StaticSitemapGenerator.java:659)
      at atg.sitemap.StaticSitemapGenerator.generateSitemap(StaticSitemapGenerator.java:618)
      at atg.sitemap.SitemapGeneratorService.generateSitemaps(SitemapGeneratorService.java:459)
      at atg.sitemap.SitemapGeneratorFormHandler.handleStartSitemapGeneratorService(SitemapGeneratorFormHandler.java:155)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at atg.droplet.EventSender.sendEvent(EventSender.java:582)
      at atg.droplet.FormTag.doSendEvents(FormTag.java:800)
      at atg.droplet.FormTag.sendEvents(FormTag.java:649)
      at atg.droplet.DropletEventServlet.sendEvents(DropletEventServlet.java:523)
      at atg.droplet.DropletEventServlet.service(DropletEventServlet.java:550)
      at atg.servlet.pipeline.PipelineableServletImpl.service(PipelineableServletImpl.java:245)
      at atg.servlet.pipeline.DispatcherPipelineServletImpl.service(DispatcherPipelineServletImpl.java:231)
      at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
      at atg.servlet.pipeline.MimeTyperPipelineServlet.service(MimeTyperPipelineServlet.java:206)
      at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
      at atg.servlet.pipeline.FileFinderPipelineServlet.service(FileFinderPipelineServlet.java:707)
      at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
      at atg.servlet.pipeline.DispatcherPipelineServletImpl.service(DispatcherPipelineServletImpl.java:253)
      at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
      at atg.servlet.pipeline.ServletPathPipelineServlet.service(ServletPathPipelineServlet.java:186)
      at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
      at atg.security.ExpiredPasswordAdminServlet.service(ExpiredPasswordAdminServlet.java:290)
      at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
      at atg.servlet.pipeline.BasicAuthenticationPipelineServlet.service(BasicAuthenticationPipelineServlet.java:491)
      at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
      at atg.servlet.pipeline.DynamoPipelineServlet.service(DynamoPipelineServlet.java:469)
      at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
      at atg.dtm.TransactionPipelineServlet.service(TransactionPipelineServlet.java:227)
      at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
      at atg.servlet.pipeline.HeadPipelineServlet.passRequest(HeadPipelineServlet.java:1202)
      at atg.servlet.pipeline.HeadPipelineServlet.service(HeadPipelineServlet.java:885)
      at atg.servlet.pipeline.PipelineableServletImpl.service(PipelineableServletImpl.java:250)
      at atg.nucleus.servlet.NucleusProxyServlet.service(NucleusProxyServlet.java:215)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:183)
      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:95)
      at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
      at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:451)
      at java.lang.Thread.run(Thread.java:619)
      17:05:46,095 INFO [ExtendedJhtmlPageProcessor] Processing /atg/dynamo/admin/en/sitemap/write-sitemap.jhtml to C:\ATG\ATG10.0.1\home\servers
      \PEECD5\pagebuild\_dasadmin_3\_atg\_dynamo\_admin\_en\_sitemap\_write_ssitemap.java
      17:05:46,375 INFO [ExtendedJhtmlPageProcessor] Compiling C:\ATG\ATG10.0.1\home\servers\PEECD5\pagebuild\_dasadmin_3\_atg\_dynamo\_admin\_en
      \_sitemap\_write_ssitemap.java
      17:06:04,649 ERROR [[AdminProxyServlet]] Servlet.service() for servlet AdminProxyServlet threw exception
      java.lang.NullPointerException
      at atg.sitemap.SitemapWriterService.writeItemsToFiles(SitemapWriterService.java:203)
      at atg.sitemap.SitemapWriterService.writeSitemaps(SitemapWriterService.java:185)
      at atg.sitemap.SitemapWriterService.writeSitemapFiles(SitemapWriterService.java:168)
      at atg.sitemap.SitemapGeneratorFormHandler.handleStartSitemapWriterService(SitemapGeneratorFormHandler.java:199)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at atg.droplet.EventSender.sendEvent(EventSender.java:582)
      at atg.droplet.FormTag.doSendEvents(FormTag.java:800)
      at atg.droplet.FormTag.sendEvents(FormTag.java:649)
      at atg.droplet.DropletEventServlet.sendEvents(DropletEventServlet.java:523)
      at atg.droplet.DropletEventServlet.service(DropletEventServlet.java:550)
      at atg.servlet.pipeline.PipelineableServletImpl.service(PipelineableServletImpl.java:245)
      at atg.servlet.pipeline.DispatcherPipelineServletImpl.service(DispatcherPipelineServletImpl.java:231)
      at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
      at atg.servlet.pipeline.MimeTyperPipelineServlet.service(MimeTyperPipelineServlet.java:206)
      at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
      at atg.servlet.pipeline.FileFinderPipelineServlet.service(FileFinderPipelineServlet.java:707)
      at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
      at atg.servlet.pipeline.DispatcherPipelineServletImpl.service(DispatcherPipelineServletImpl.java:253)
      at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
      at atg.servlet.pipeline.ServletPathPipelineServlet.service(ServletPathPipelineServlet.java:186)
      at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
      at atg.security.ExpiredPasswordAdminServlet.service(ExpiredPasswordAdminServlet.java:290)
      at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
      at atg.servlet.pipeline.BasicAuthenticationPipelineServlet.service(BasicAuthenticationPipelineServlet.java:491)
      at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
      at atg.servlet.pipeline.DynamoPipelineServlet.service(DynamoPipelineServlet.java:469)
      at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
      at atg.dtm.TransactionPipelineServlet.service(TransactionPipelineServlet.java:227)
      at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
      at atg.servlet.pipeline.HeadPipelineServlet.passRequest(HeadPipelineServlet.java:1202)
      at atg.servlet.pipeline.HeadPipelineServlet.service(HeadPipelineServlet.java:885)
      at atg.servlet.pipeline.PipelineableServletImpl.service(PipelineableServletImpl.java:250)
      at atg.nucleus.servlet.NucleusProxyServlet.service(NucleusProxyServlet.java:215)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:183)
      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:95)
      at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
      at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:451)
      at java.lang.Thread.run(Thread.java:619)