KTML for JSP Forum :: Exception when creating new folder
This thread was displayed: 519 times
Starting with 17th May 2007, Adobe Systems will stop offering support for any version of the discontinued InterAKT products. As a result, we will not answer to new support incidents starting with May 17th, 2007. Pending support incidents will still be followed in order to be closed. The product forums will remain open and be transformed in user-to-user forums. The general forums will be made read-only and not allow new posts or comments.
For more information about the affected products visit: www.interaktonline.com/Support/
-
hi, We just upgraded to thedeveloper version and the template explorer portion fails when creating a new folder. with the illegal access dialog. The exception is given below.
java.lang.reflect.InvocationTargetException 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:324) at com.interaktonline.ktml.ktml4_sp.executeModule(ktml4_sp.java:218) at com.interaktonline.ktml.ktml4_sp.execute(ktml4_sp.java:72) at org.apache.jsp.includes.ktm.plugins.service.service_jsp._jspService(service_jsp.java:51) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:284) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:204) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:563) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:245) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:199) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:563) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:195) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:164) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:563) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:156) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:563) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:972) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:209) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:670) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:517) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:575) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:666) at java.lang.Thread.run(Thread.java:534) Caused by: java.lang.NullPointerException at com.interaktonline.ktml.modules.AModule.checkTemplatePermision(AModule.java:75) at com.interaktonline.ktml.modules.ktml4_mspl_folder.create(ktml4_mspl_folder.java:104) ... 37 more
Please advice if it is abug or a configuration error on our side.
Thanks!
Manu
-
Here is a sample of how the full version integrates in the page, maybe you missed something. If this is not the case we will search further.
<script type="text/javascript">
ktml1_config = {
width: <%= sizex %>,
height: <%= sizey %>,
"show_toolbar": "load",
"show_pi": true,
"background_color": "#FFFFFF",
"strip_server_location": false,
"auto_focus": true,
"module_props": { },
"buttons": [
[1, "standard", ["cut", "copy", "paste", "undo", "redo", "find_replace", "toggle_visible", "spellcheck", "toggle_editmode", "toggle_fullscreen", "help"]],
[1, "formatting", ["bold", "italic", "underline", "align_left", "align_center", "align_right", "align_justify", "numbered_list", "bulleted_list", "outdent", "indent", "clean_menu", "foreground_color", "background_color", "superscript", "subscript"]],
[2, "styles", ["heading_list", "style_list", "fonttype_list", "fontsize_list"]],
[2, "insert", ["insert_link", "insert_anchor", "insert_table", "insert_image", "insert_file", "insert_template", "horizontal_rule", "insert_character"]],
[3, "form", ["insert_form", "insert_textfield", "insert_hiddenfield", "insert_textarea", "insert_checkbox", "insert_radiobutton", "insert_listmenu", "insert_filefield", "insert_button", "insert_label", "insert_fieldset"]]
]
}
<ktml:ktml4 fieldName="ktml1">
<ktml:moduleProperty module="filebrowser" name="AllowedModule" value="true" exportToJs="false" />
<ktml:moduleProperty module="filebrowser" name="MaxFileSize" value="200" exportToJs="true" />
<ktml:moduleProperty module="filebrowser" name="RejectedFolders" value=".svn,.thumbnails" exportToJs="false" />
<ktml:moduleProperty module="file" name="UploadFolder" value="uploads/files/" exportToJs="false" />
<ktml:moduleProperty module="file" name="UploadFolderUrl" value="uploads/files/" exportToJs="true" />
<ktml:moduleProperty module="file" name="AllowedFileTypes" value="doc,pdf,txt" exportToJs="true" />
<ktml:moduleProperty module="media" name="UploadFolder" value="uploads/media/" exportToJs="false" />
<ktml:moduleProperty module="media" name="UploadFolderUrl" value="uploads/media/" exportToJs="true" />
<ktml:moduleProperty module="media" name="AllowedFileTypes" value="bmp,mov,mpg,avi,mpeg,swf,wmv,jpg,jpeg,gif,png" exportToJs="true" />
<ktml:moduleProperty module="templates" name="AllowedModule" value="true" exportToJs="false" />
<ktml:moduleProperty module="templates" name="UploadFolder" value="uploads/templates/" exportToJs="true" />
<ktml:moduleProperty module="xhtml" name="AllowedModule" value="true" exportToJs="false" />
<ktml:moduleProperty module="xhtml" name="xhtml_view_source" value="true" exportToJs="true" />
<ktml:moduleProperty module="xhtml" name="xhtml_save" value="true" exportToJs="true" />
<ktml:moduleProperty module="spellchecker" name="AllowedModule" value="true" exportToJs="false" />
<ktml:moduleProperty module="css" name="PathToStyle" value="includes/ktm/styles/KT_styles.css" exportToJs="true" />
<ktml:moduleProperty module="hyperlink_browser" name="ServiceProvider" value="includes/ktm/hyperlink_service.jsp" exportToJs="true" />
<ktml:moduleProperty module="date" name="AllowedModule" value="true" exportToJs="false" />
<ktml:Execute />
</ktml:ktml4>
</script>
-
I double checked the configura... View more
I double checked the configuration. Here is the properties file and my initialization code.
I c that the exception happens around here in the code. does that mean anything to you?
Also I thought if we used the paid version at least some of the branding elements will be removed. Is that correct? I still see both the ktml branded links on the panel and the about links.
Caused by: java.lang.NullPointerException at com.interaktonline.ktml.modules.AModule.checkTemplatePermision(AModule.java:75) at com.interaktonline.ktml.modules.ktml4_mspl_folder.create(ktml4_mspl_folder.java:104)
Interakt properties file - ktml4 configuration file KTML4_THUMBNAIL_FOLDER=.thumbnails/ KTML4_THUMBNAIL_WIDTH=100 KTML4_THUMBNAIL_HEIGHT=100 # LITE >>> KTML4_IMAGE_WIDTH=480 KTML4_IMAGE_HEIGHT=360
KTML4_MAX_UPLOAD_IMAGE_WIDTH=800 KTML4_MAX_UPLOAD_IMAGE_HEIGHT=600 # LITE <<< KTML_PREFFERED_LIBRARY=imagemagick KTML_IMAGEMAGICK_PATH=C:\\Progra~1\\ImageMagick-6.2.8-Q16\\ KTML_FILEBROWSER_PATH=C:\\Progra~1\\ImageMagick-6.2.8-Q16\\ KTML_XHTML_PATH="C:\\Progra~1\\Tidy\\" KTML_SPELLCHECKER_PATH="C:\\Progra~1\\Aspell\\bin\\" # all keys KTML_GLOBALS_xxx will be exported to js as xxx KTML4_GLOBALS_add_new_paragraph_on_enter=false KTML4_GLOBALS_allowed_tags_list=p KTML4_GLOBALS_denied_tags_list=frame,iframe,script KTML4_GLOBALS_skip_doctype_check=false KTML4_GLOBALS_logical_emphasis=true
KTML4_GLOBALS_special_chars= KTML4_GLOBALS_colors= KTML4_GLOBALS_fonts=Arial, Helvetica, sans-serif|Times New Roman, Times, serif|Courier New, Courier, mono|Georgia, Times New Roman, Times, serif|Verdana, Arial, Helvetica, sans-serif|Geneva, Arial, Helvetica, sans-serif KTML4_GLOBALS_debug=false
# LITE >>>
# DO NOT EDIT THIS LINES KTML4_interakt_service_server=spell.interaktonline.com KTML4_interakt_service_path=/service.php # I REALLY MEAN IT
KTML4_GLOBALS_editor_inner_dimensions=false KTML4_GLOBALS_stop_parent_scroll_on_focus=true KTML4_GLOBALS_auto_clean_on_paste=word KTML4_GLOBALS_insertlink_prompt_for_url=true KTML4_GLOBALS_online_interakt_spellcheck=false # LITE --- #KTML4_GLOBALS_insertlink_prompt_for_url=false # LITE <<<
<% String clientCode = (String)request.getSession().getAttribute(IdatosConstants.CLIENT_CODE); %> <ktml:ktml4 fieldName="ktml1"> <ktml:moduleProperty module="filebrowser" name="AllowedModule" value="true" exportToJs="false" /> <ktml:moduleProperty module="filebrowser" name="MaxFileSize" value="10000" exportToJs="true" /> <ktml:moduleProperty module="filebrowser" name="RejectedFolders" value=".svn,.thumbnails" exportToJs="false" /> <ktml:moduleProperty module="file" name="UploadFolder" value="<%="../../uploads/"+clientCode+"/files/"%>" exportToJs="false" /> <ktml:moduleProperty module="file" name="UploadFolderUrl" value="<%="../../uploads/"+clientCode+"/files/"%>" exportToJs="true" /> <ktml:moduleProperty module="file" name="AllowedFileTypes" value="doc,pdf,txt,xls,csv,rtf,ppt" exportToJs="true" /> <ktml:moduleProperty module="media" name="UploadFolder" value="<%="../../uploads/"+clientCode+"/media/"%>" exportToJs="false" /> <ktml:moduleProperty module="media" name="UploadFolderUrl" value="<%="../../uploads/"+clientCode+"/media/"%>" exportToJs="true" /> <ktml:moduleProperty module="media" name="AllowedFileTypes" value="bmp,mov,mpg,avi,mpeg,swf,wmv,jpg,jpeg,gif,png" exportToJs="true" /> <ktml:moduleProperty module="templates" name="AllowedModule" value="true" exportToJs="false" /> <ktml:moduleProperty module="templates" name="UploadFolder" value="<%="../../uploads/"+clientCode+"/templates/"%>" exportToJs="true" /> <ktml:moduleProperty module="xhtml" name="AllowedModule" value="true" exportToJs="false" /> <ktml:moduleProperty module="xhtml" name="xhtml_view_source" value="true" exportToJs="true" /> <ktml:moduleProperty module="xhtml" name="xhtml_save" value="true" exportToJs="true" /> <ktml:moduleProperty module="spellchecker" name="AllowedModule" value="true" exportToJs="false" /> <ktml:moduleProperty module="css" name="PathToStyle" value="../../includes/ktm/styles/KT_styles.css" exportToJs="true" /> <ktml:moduleProperty module="hyperlink_browser" name="ServiceProvider" value="../../includes/ktm/hyperlink_service.jsp" exportToJs="true" /> <ktml:moduleProperty module="date" name="AllowedModule" value="true" exportToJs="false" /> <ktml:Execute /> </ktml:ktml4>
-
Found solution Please update t... View more
Found solution Please update the documentation.
I think we need to specify. in the initialization params. Dont ask me how i found it I cheated:-)
<ktml:moduleProperty module="templates" name="DenySave" value="false" exportToJs="false" />
Any way the component itself ROCKS. Keep up the good work.!
Please let me know how at least the panel branding can be removed.
Thanks!
-
We'll notify the documentation... View more
We'll notify the documentation department about your solution.
The branding problem goes like this. For redistribution license you are allowed to remove all the branding. For any other license (developer and single domain) you are allowed to remove only the branding from the property inspector panel. If you want to remove all the branding for this licenses you will have to pay an additional $50 per domain.
We are glad that you like our product and feel free to contact us for any problem.
|
|
|