Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Preview and Generate error
suri123
Hi,
We have Teamsite 6.5 SP2 installed on Windows 2003 server. We found a wierd problem with only one workarea. Templates in the workarea works fine if i create a new DCR(Preview and Generate Works fine), but the issue is when we close the DCR and edit the already created DCR, DCR opens up correctly but Preview and generate doesnot work properly and the following error message is thrown.
########################################
An error occurred executing command com.interwoven.ui.formspub.PreviewCommand
#############################################
And on the Details window we are seeing the following Stack trace.
Thanks in advance,
#################################################
Root cause:
java.lang.NullPointerException
at com.interwoven.ui.formspub.DCRFileContext.restrictByKind(DCRFileContext.java:90)
at com.interwoven.ui.teamsite.filesys.context.CSNodeContext.loadNodes(CSNodeContext.java:101)
at com.interwoven.ui.teamsite.filesys.context.CSNodeContext.getNodes(CSNodeContext.java:173)
at com.interwoven.ui.teamsite.filesys.context.CurrentNodeContext.getCurrentNode(CurrentNodeContext.java:61)
at com.interwoven.ui.teamsite.filesys.context.CurrentFileContext.getCurrentFile(CurrentFileContext.java:51)
at com.interwoven.ui.formspub.DCRFileContext.getDCR(DCRFileContext.java:67)
at com.interwoven.ui.formspub.PreviewCommand.execute(PreviewCommand.java:93)
at com.interwoven.ui.base.impl.command.CommandHandler.doExecuteCommand(CommandHandler.java:865)
at com.interwoven.ui.base.impl.command.CommandHandler.tryRunCommandDescriptor(CommandHandler.java:713)
at com.interwoven.ui.base.impl.command.CommandHandler.tryRunCommandID(CommandHandler.java:596)
at com.interwoven.ui.base.impl.command.CommandHandler.runCommandLoop(CommandHandler.java:240)
at com.interwoven.ui.base.impl.command.CommandServlet.doGet(CommandServlet.java:244)
at com.interwoven.ui.base.impl.command.CommandServlet.doPost(CommandServlet.java:335)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at com.interwoven.ui.base.impl.auth.AuthenticationFilter.doFilter(AuthenticationFilter.java:206)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at com.interwoven.ui.base.util.SetRequestEncodingFilter.doFilter(SetRequestEncodingFilter.java:105)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
at java.lang.Thread.run(Thread.java:534)
Find more posts tagged with
Comments
nipper
Is it only on preview ? Or does it fail for generate ?
If it is only preview, there is likely an issue overwriting the zz_tst_ files. You can up the number of files in the iw.cfg (under the templating section)
Go on to the filesystem and look to see who owns the zz_ files and what the perms are.
If it fails on generate, then try running iw_pt-compile from the command line.
suri123
Thanks nipper for a Quick reply.
Both Preview and Generate are having issues.
On Preview
An error occurred executing command com.interwoven.ui.formspub.PreviewCommand
On Generate
An error occurred executing command com.interwoven.ui.formspub.GenerateCommand
I tried iwpt_compile and it works fine.
I also tried by deleting temporary preview files zz.tst.... but it didn't work.
Thanks
nipper
I doubt this will help but try to change you iw.cfg with this in the teamsite_templating section:
preview_history_limit=500
It *sounds* like there is a permissions issue with the files generated via preview and generate. Since you were able to generate the file from the command line, it implies the user TS impersonates (TS Web preview I think) may not have the permissions it needs to complete the tasks.
When you deleted the zz_ files did you remove all of them, there are usually 2 and sometimes more per preview.
Andy
suri123
Hi Nipper,
I tried by increasing the preview history preview_history_limit=500 but still it did not help.
Teamsite Web Preview group has full permissions on all the files in the workarea.
Another thing which i noticed is if edit generated files (not the DCR) i was able to preview and generate the files.
Any more ideas?
Thanks
Suri
nipper
this sounds very strange. What locking model are you using ?
When you click generate, you are generating the exact same file that you clicked edit & it worked ? Try locking that file, edit the DCR and see if you can generate. I am guessing now.