Hi,
Scenario: There is a DCT which has 3 TPLs associated with it. When the user hits generate or preview, he selects a TPL and the page gets generated or previewed. However, on hitting "generate" or "preview" again, he is not prompted to select the TPL and the page is rendered by the previously selected TPL. In order to ensure that the user is always asked to select the TPL, we did the following fix:
We copied datacapture_buttonframe.jsp to /iw-home/local/config/lib/content_center/customer_src/web/formspub/ and commented out the following lines:
top._dcWin.datacapture.setPT(pt); within the function, previewCallbackand top._dcWin.datacapture.updateSettings(dcrPath, pt, outputFilePath); within the function, generateCallback.
function previewCallback(pt)
{
//top._dcWin.datacapture.setPT(pt);
return;
}
function generateCallback(dcrPath, pt, outputFilePath, generateWin)
{
//top._dcWin.datacapture.updateSettings(dcrPath, pt, outputFilePath);
return;
}
However, now when we generate 3 htmls from the same DCR one after the other and click on "Finish", instead of the "Submit Job" screen, the following error appears:
An error occurred executing command com.interwoven.ui.formspub.teamsite.TSTWFLogicCommand
Following is the detailed root cause:
java.lang.ClassCastException: unable to convert node '//atlsdcg1' of type class com.interwoven.cssdk.filesys.impl.CSRootImpl into interface com.interwoven.cssdk.filesys.CSFile
at com.interwoven.ui.teamsite.filesys.context.CSNodeContext.restrictByKind(CSNodeContext.java:146)
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.teamsite.TSTWFLogicCommand.execute(TSTWFLogicCommand.java:81)
at com.interwoven.ui.base.impl.command.CommandHandler.doExecuteCommand(CommandHandler.java:857)
at com.interwoven.ui.base.impl.command.CommandHandler.tryRunCommandDescriptor(CommandHandler.java:700)
at com.interwoven.ui.base.impl.command.CommandHandler.tryRunCommandID(CommandHandler.java:587)
at com.interwoven.ui.base.impl.command.CommandHandler.runCommand(CommandHandler.java:430)
at com.interwoven.ui.base.impl.command.CommandCallbackContextImpl.callback(CommandCallbackContextImpl.java:45)
at com.interwoven.ui.base.wizard.WizardCommand.execute(WizardCommand.java:114)
at com.interwoven.ui.base.impl.command.CommandHandler.doExecuteCommand(CommandHandler.java:857)
at com.interwoven.ui.base.impl.command.CommandHandler.tryRunCommandDescriptor(CommandHandler.java:700)
at com.interwoven.ui.base.impl.command.CommandHandler.tryRunCommandID(CommandHandler.java:587)
at com.interwoven.ui.base.impl.command.CommandHandler.runCommandLoop(CommandHandler.java:240)
at com.interwoven.ui.base.impl.command.CommandServlet.doGet(CommandServlet.java:256)
at com.interwoven.ui.base.impl.command.CommandServlet.doPost(CommandServlet.java:347)
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)
Please help me debug this issue as I am not sure whether it is due to the commenting out lines within the JSP or a TeamSite bug.
Thanks,
Dhruv
Edited by infoForDj on 09/08/05 00:14 AM (server time).