Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Preview error when editing a dcr in Teamsite 6.7
ruku25
hi
When we edit a dcr and do a preview Preview is not displayed. Servle_out.log displays the following error
java.lang.NullPointerException
at com.interwoven.ui.formspub.DCRFileContext.restrictByKind(DCRFileContext.java:90)
at com.interwoven.ui.teamsite.filesys.context.CSNodeContext.loadNodes(CSNodeContext.java:100)
at com.interwoven.ui.teamsite.filesys.context.CSNodeContext.getNodes(CSNodeContext.java:172)
at com.interwoven.ui.teamsite.filesys.context.CurrentNodeContext.getCurrentNode(CurrentNodeContext.java:59)
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:82)
at com.interwoven.ui.base.impl.command.CommandHandler.doExecuteCommand(CommandHandler.java:915)
at com.interwoven.ui.base.impl.command.CommandHandler.tryRunCommandDescriptor(CommandHandler.java:752)
at com.interwoven.ui.base.impl.command.CommandHandler.tryRunCommandID(CommandHandler.java:629)
at com.interwoven.ui.base.impl.command.CommandHandler.runCommandLoop(CommandHandler.java:234)
at com.interwoven.ui.base.impl.command.CommandServlet.doGet(CommandServlet.java:163)
at com.interwoven.ui.base.impl.command.CommandServlet.doPost(CommandServlet.java:263)
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:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at com.interwoven.ui.base.impl.auth.AuthenticationFilter.doFilter(AuthenticationFilter.java:204)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at com.interwoven.ui.base.util.SetRequestEncodingFilter.doFilter(SetRequestEncodingFilter.java:105)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)
2007-10-04 13:26:50,029 [http-8080-Processor24] WARN com.interwoven.ui.base.impl.command.CommandHandler - command iw.formspub.preview returned null
Could somebody please help with this
thanks
Rukmini
Find more posts tagged with
Comments
moonkhanna
check if you have special characters in the dcr name.
moonkhanna
Note - even if you remove the special characters, you would not still be able to preview\ generate the DCR. You will have to create this DCR fresh
ruku25
There is no special character in the dcr the same works when we create a new dcr and then hit preview it only fails when we edit the dcr
moonkhanna
are you able to generate the DCR which is giving you an error on preview?
ruku25
yes i am able to generate the dcr
nipper
Do any DCRs work at all ?
Does this happen viewing the DCR or previewing the changes in an HTML page ?
Is it for you or for anyone ?
Does any preview work ?
moonkhanna
if you are able to generate its something to do with your preview-dir configuration in templating.cfg. Please paste your configuration to the post
ruku25
this happens for all users. Preview works when we create a new dcr it doesnt work when we edit the same dcr and click on preview
ruku25
below is the templating.cfg
ruku25
Sorry didnt come thru in the previous post
presentation
template name="document.tpl" extension="html"
locations
branch vpath-regex=".*" preview-dir="/"
directory dir-regex=".*" /
/branch
/locations
/template
/presentation>
nipper
edit iw.cfg and add this in the Templating area
preview_history_limit=50
run iwreset
Also check to see if the user TSIMP_servername has permissions to write in teh root of the workarea.
Finally, open a DOS or Unix shell in the workarea an look to see if any files zz_* get created when you try to preview
ruku25
i added the preview parameterto the iw.cfg. that did not help. The zz files are getting created when we create a new dcr and then preview. But the same does not happen when we edit a dcr
nipper
edit the DCR, delete all the zz files and click preview
ruku25
I deleted all the xx files and edited the dcr and clicked on preview the preview window did not show up and the zz file also was not created
nipper
OK, replace your TPL with this:
[html]
Hi
[/html]
does anything work ?
ruku25
this did not work. Preview does work when we create a new dcr . this issue only happens when we edit a dcr
Kewl
I too have a similar problem.
1> Preview doesnt work for all the DCRs in a branch but Generate does
2> Preview works in most of the branches
3>
http://Servername/iw-cc/command/iw.formspub.do_preview
is the URL formed
4> ServletD_out.log shows the same error
2008-10-02 18:21:05,653 [http-8080-Processor19] WARN com.interwoven.ui.base.impl.command.CommandHandler (some_user commandID iw.formspub.do_preview) - Execute com.interwoven.ui.formspub.DoPreviewCommand error.
com.interwoven.cssdk.common.CSException: (null)
at com.interwoven.cssdk.transform.impl.PreviewManifes t.findAndSetCurrentManifestIndex(PreviewManifest.j ava:232)
at com.interwoven.cssdk.transform.impl.PreviewManifes t.createManifest(PreviewManifest.java:239)
at com.interwoven.cssdk.transform.impl.PreviewManifes t.(PreviewManifest.java:164)
at com.interwoven.cssdk.transform.impl.PreviewOutputM anager.(PreviewOutputManager.java:70)
at com.interwoven.cssdk.common.impl.CSClientImpl.getT ransformOutputManager(CSClientImpl.java:544)
at com.interwoven.ui.formspub.DoPreviewCommand.execut e(DoPreviewCommand.java:125)
at com.interwoven.ui.base.impl.command.CommandHandler .doExecuteCommand(CommandHandler.java:915)
at com.interwoven.ui.base.impl.command.CommandHandler .tryRunCommandDescriptor(CommandHandler.java:752)
at com.interwoven.ui.base.impl.command.CommandHandler .tryRunCommandID(CommandHandler.java:629)
at com.interwoven.ui.base.impl.command.CommandHandler .runCommandLoop(CommandHandler.java:234)
at com.interwoven.ui.base.impl.command.CommandServlet .doGet(CommandServlet.java:163)
at com.interwoven.ui.base.impl.command.CommandServlet .doPost(CommandServlet.java:263)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:802)
at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:173)
at com.interwoven.ui.base.impl.auth.AuthenticationFil ter.doFilter(AuthenticationFilter.java:204)
at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:173)
at com.interwoven.ui.base.util.SetRequestEncodingFilt er.doFilter(SetRequestEncodingFilter.java:105)
at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invo ke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invo ke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke( StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invok e(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.servic e(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(H ttp11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11 ConnectionHandler.processConnection(Http11BaseProt ocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.process Socket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThr ead.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlR unnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)
2008-10-02 18:21:05,654 [http-8080-Processor19] WARN com.interwoven.ui.base.impl.command.CommandHandler (some_user) - command iw.formspub.do_preview returned null