This page is an archive of Bug Reports resolved during the JAMWiki 0.6.x release cycle. See Bug Reports/Resolved for an index of all resolved bug reports.
Moved from the Feedback page:
I am using version 0.5.4 atm. I uploaded a png to my wiki called dragbuildxml.png and the Image:drapbuildxml.png site does not show the image at all. If I refer directly to the image, it is shown pefectly. Hence, I can't really use images at all. I renamed the file to dbx.png and uploaded again and the pciture showed up perfectly. What can I do about? THX, Mike
Moved from the Feedback page:
my config: HP-UX B11.23 IA64N / Tomcat 5.5.20 / Internal database / HP JVM 1.5.0.6 Tested with JAMWiki 0.5.4 using [ [Image:name|right|thumb|<desc>] ] produces exception: can't connect to xserver I started the xserver and now I get:
org.springframework.web.util.NestedServletException: Handler processing failed; nested exception is java.lang.NoClassDefFoundError org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:879) org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:774) org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:460) org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:425) javax.servlet.http.HttpServlet.service(Unknown Source) javax.servlet.http.HttpServlet.service(Unknown Source) org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:264) org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:107) org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:72) org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274) org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:110) org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274) org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125) org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274) org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142) org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274) org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:217) org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274) org.acegisecurity.ui.logout.LogoutFilter.doFilter(LogoutFilter.java:106) org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274) org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:229) org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274) org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:148) org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:98) org.jamwiki.servlets.JAMWikiFilter.doFilter(JAMWikiFilter.java:58) root cause java.lang.NoClassDefFoundError java.lang.Class.forName0(Native Method) java.lang.Class.forName(Class.java:168) java.awt.Toolkit$2.run(Toolkit.java:822) java.security.AccessController.doPrivileged(Native Method) java.awt.Toolkit.getDefaultToolkit(Toolkit.java:805) java.awt.Image.getScaledInstance(Image.java:158) org.jamwiki.utils.ImageUtil.resizeImage(ImageUtil.java:173) org.jamwiki.utils.ImageUtil.initializeImage(ImageUtil.java:90) org.jamwiki.utils.LinkUtil.buildImageLinkHtml(LinkUtil.java:158) org.jamwiki.parser.jflex.WikiLinkTag.parseImageLink(WikiLinkTag.java:167) org.jamwiki.parser.jflex.WikiLinkTag.buildInternalLinkUrl(WikiLinkTag.java:73) org.jamwiki.parser.jflex.WikiLinkTag.processLinkContent(WikiLinkTag.java:205) org.jamwiki.parser.jflex.WikiLinkTag.parse(WikiLinkTag.java:113) org.jamwiki.parser.jflex.AbstractLexer.parseToken(AbstractLexer.java:108) org.jamwiki.parser.jflex.JAMWikiProcessor.yylex(JAMWikiProcessor.java:1479) org.jamwiki.parser.jflex.JFlexParser.lex(JFlexParser.java:114) org.jamwiki.parser.jflex.JFlexParser.parseProcess(JFlexParser.java:252) org.jamwiki.parser.jflex.JFlexParser.parseHTML(JFlexParser.java:170) org.jamwiki.utils.Utilities.parse(Utilities.java:783) org.jamwiki.servlets.ServletUtil.viewTopic(ServletUtil.java:528) org.jamwiki.servlets.EditServlet.preview(EditServlet.java:226) org.jamwiki.servlets.EditServlet.edit(EditServlet.java:80) org.jamwiki.servlets.EditServlet.handleJAMWikiRequest(EditServlet.java:61) org.jamwiki.servlets.JAMWikiServlet.handleRequestInternal(JAMWikiServlet.java:74) org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153) org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48) org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:839) org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:774) org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:460) org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:425) javax.servlet.http.HttpServlet.service(Unknown Source) javax.servlet.http.HttpServlet.service(Unknown Source) org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:264) org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:107) org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:72) org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274) org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:110) org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274) org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125) org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274) org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142) org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274) org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:217) org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274) org.acegisecurity.ui.logout.LogoutFilter.doFilter(LogoutFilter.java:106) org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274) org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:229) org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274) org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:148) org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:98) org.jamwiki.servlets.JAMWikiFilter.doFilter(JAMWikiFilter.java:58)
how can I fix this?
Ryan, I found a solution for the problem which affects all UNIX-like OSes
Solution: If you are running a unix/linux server w/o an X-Server or don't have the priviliges to start it, all BufferedImage operations like thumb (resize) jamwiki crashes with can't connect to x-server because java.awt.Image relies on the graphical subsystem of your OS. If you still want to use those methods you have to tell your VM that you are running headless => no X-Server installed. Add to your JAVA_OPTS/VM args "-Djava.awt.headless=true" and all operations are propably done in soft mode but it works flawlessly here.
Moved from the Feedback page:
IMO the image class determination in the method LinkUtil#buildImageLinkHtml() should be changed to:
if (frame || thumb || StringUtils.hasText(align)) {
html += "<div class=\"";
if (thumb || frame) {
html += "imgthumb ";
}
if (align != null && align.equalsIgnoreCase("left")) {
html += "imgleft ";
} else if (align != null && align.equalsIgnoreCase("center")) {
html += "imgcenter ";
} else if (align != null && align.equalsIgnoreCase("right")) {
html += "imgright ";
} else {
// default alignment
html += "image ";
}
html = html.trim() + "\">";
}
At least, if there's no alignment defined in the Image tag, Wikipedia uses class "image".
Moved from the Feedback page:
Hi, i've found a problem in the handling of a JNDI datasource. The DatabaseConnection.testDatabase function does not undestand the JNDI url. I've produced a patch to this problem that you can found here testDatabase.patch -- mnencia 02-Jun-2007 10:13 PDT
java.lang.NullPointerException at org.jamwiki.servlets.HistoryServlet.viewVersion(HistoryServlet.java:85) at org.jamwiki.servlets.HistoryServlet.handleJAMWikiRequest(HistoryServlet.java:47) at org.jamwiki.servlets.JAMWikiServlet.handleRequestInternal(JAMWikiServlet.java:74)
-- Ryan 05-Aug-2007 18:54 PDT
I installed jamwiki on Tomcat 5.5.17 with a MySQL 5.0-DB. I'm using german characters like ü,ö,ä,ß.
Here's a little export from table jam_topic:
| topic_name | topic_content |
|---|---|
| Systemübersicht | ä,ö,ü,ß |
As you can see, the german characters in topic_content column look fine, but not in topic_name. There is an ü character instead the ü. It must be Systemübersicht and not Systemübersicht!
Any ideas why that happens?
create database NAME character set UTF8, and have you added URIEncoding="UTF-8" to the Tomcat Connector descriptions as described on the Installation document? If both of those are true, what page encoding do you see (in your browser: View → Character Encoding)? -- Ryan 22-Aug-2006 10:32 PDT
jamwikiTesttopic_name of jam_topic-table Testü�ö�ä��I think I've found a fix for this issue, and the new code is now running on jamwiki.org and will be included in JAMWiki 0.3.1 beta3. Once the new beta is available I'd be grateful if you would be willing to test the fix to see if the issue is resolved - please let me know if that's possible. -- Ryan 27-Aug-2006 00:16 PDT
The UTF-8 hex value for the percent sign (%) is 25. When trying to use a percent sign in a topic name, the system errors out. For example, try to go to http://jamwiki.org/wiki/en/Percent_50%25_test and it will have issues (while http://jamwiki.org/wiki/en/Ampersand_%26_test works fine). In my instance, this is the stack trace I get:
2006-09-18 12:39:46,236 [tcpConnection-14609-0] ERROR [JAMWikiServlet] Unable
to load topic value in JAMWikiServlet
java.lang.IllegalArgumentException: URLDecoder: Illegal hex characters in
escape (%) pattern - For input string: "_t"
at java.net.URLDecoder.decode(URLDecoder.java:173)
at org.jamwiki.utils.Utilities.decodeURL(Utilities.java:157)
at org.jamwiki.servlets.JAMWikiServlet.getTopicFromURI(JAMWikiServlet.java:153)
at org.jamwiki.servlets.JAMWikiServlet.loadDefaults(JAMWikiServlet.java:280)
at org.jamwiki.servlets.JAMWikiServlet.viewError(JAMWikiServlet.java:385)
at org.jamwiki.servlets.TopicServlet.handleRequestInternal(TopicServlet.java:58)
Try doing the same thing at wikipedia and it does work (http://en.wikipedia.org/wiki/Percent_50%25_test). -- scroco 18-Sep-2006 12:57 PDT
While working on this can you also test and verify for %22 (quotation mark)? -- scroco 18-Sep-2006 17:11 PDT
Once I get that new functionality into my installation, I'll check it out and see if I have any ideas. What version of apache are you running? -- scroco 19-Sep-2006 10:27 PDT
JAMWiki 0.5.4 is having an issue deploying on GlassFish v1. The previous version (JAMWiki 0.5.3) deploys fine. Here's the deployment error on JAMWiki 0.5.4:
Deploying application in domain failed; Error loading deployment descriptors for module [jamwiki-0] Line 1 Column 1 -- Deployment descriptor file WEB-INF/web.xml in archive [jamwiki-0]. Content is not allowed in prolog. Error loading deployment descriptors for module [jamwiki-0] Line 1 Column 1 -- Deployment descriptor file WEB-INF/web.xml in archive [jamwiki-0]. Content is not allowed in prolog.
<?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd"> <web-app>
It is working now. I changed the "web-app xmlns" to:
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
version="2.4">
--amerigo5 12-May-2007 13:05 PDT
Unfortunately, if you use the schema declaration, you also need to wrap the taglib elements into a jsp-config element. -- Cay Horstmann, 29-May-2007 09:04 PDT
Now I can deploy, but I run into another issue. When I try to launch for the first time, I get a exception java.lang.NoClassDefFoundError org/apache/tools/ant/BuildListener. This is with the GlassFish package on Ubuntu 7.04. -- Cay Horstmann, 29-May-2007 09:15 PDT
Same errors in the web.xml as described above (additional space in the schemalocation, missing jsp-config element surrounding the taglib elements) also create problems for IBM Rational Application Developer 7.0 (web.xml does not validate when running XML validation) and IBM WebSphere Application Server 6.1 (deployment fails) -- Carsten Seiffert 02-Jul-2007 07:05 PDT
<?xml version="1.0" encoding="ISO-8859-1"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
version="2.4">
<!--
NOTE: do not use the context-param element to initialize the
ApplicationResources resource bundle here due to a bug in the JSTL and
Tomcat4 that causes response encoding to be finalized and thus prevents
setting page encoding to UTF-8. Instead, load the resource bundle in
page-init.jsp.
-->
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/applicationContext-acegi-security.xml</param-value>
</context-param>
<!-- set encoding, cache headers, etc. -->
<filter>
<filter-name>JAMWikiFilter</filter-name>
<filter-class>org.jamwiki.servlets.JAMWikiFilter</filter-class>
<init-param>
<param-name>encoding</param-name>
<param-value>UTF-8</param-value>
</init-param>
</filter>
<filter>
<filter-name>Acegi Filter Chain Proxy</filter-name>
<filter-class>org.acegisecurity.util.FilterToBeanProxy</filter-class>
<init-param>
<param-name>targetClass</param-name>
<param-value>org.acegisecurity.util.FilterChainProxy</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>JAMWikiFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>Acegi Filter Chain Proxy</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<servlet>
<servlet-name>jamwiki</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>jamwiki</servlet-name>
<url-pattern>/en/*</url-pattern>
</servlet-mapping>
<!-- virtual wiki mapping(s) -->
<servlet-mapping>
<servlet-name>jamwiki</servlet-name>
<url-pattern>/test/*</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
<jsp-config>
<taglib>
<taglib-uri>http://java.sun.com/jsp/jstl/core</taglib-uri>
<taglib-location>/WEB-INF/c-rt.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://java.sun.com/jstl/fmt</taglib-uri>
<taglib-location>/WEB-INF/fmt-rt.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://jamwiki.org/taglib</taglib-uri>
<taglib-location>/WEB-INF/jamwiki.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://acegisecurity.org/authz</taglib-uri>
<taglib-location>/WEB-INF/authz.tld</taglib-location>
</taglib>
</jsp-config>
</web-app>
Link mit üöä und Ä can not be edited correctly. -- Ryan 14-May-2007 10:17 PDT
JAMWiki 0.5.4 with corrected web.xml (see above), AppServer: WebSphere 6.1.0.2, DB: Oracle 10g XE, driver: oracle.jdbc.driver.OracleDriver
Just as User:bensayers, I am running into error "Failure while executing insert into jam_topic_version ( topic_version_id, topic_id, edit_comment, version_content, wiki_user_id, edit_type, wiki_user_ip_address, edit_date, previous_topic_version_id ) values ( ?, ?, ?, ?, ?, ?, ?, ?, ? )." when configuring JAMWiki to use Oracle as an external database. When looking into the app server log, I find the following messages below:
[7/4/07 17:33:06:844 CEST] 00000029 DatabaseConne W Rolling back database transactions
[7/4/07 17:33:06:875 CEST] 00000029 DatabaseConne W Rolling back database transactions
[7/4/07 17:33:07:047 CEST] 00000029 SetupServlet E Setup error
java.lang.Exception: Failure while executing insert into jam_topic_version
( topic_version_id, topic_id, edit_comment, version_content, wiki_user_id, edit_type, wiki_user_ip_address, edit_date,
previous_topic_version_id ) values ( ?, ?, ?, ?, ?, ?, ?, ?, ? )
at org.jamwiki.db.WikiPreparedStatement.executeUpdate(WikiPreparedStatement.java:119)
at org.jamwiki.db.AnsiQueryHandler.insertTopicVersion(AnsiQueryHandler.java:534)
at org.jamwiki.db.AnsiDataHandler.addTopicVersion(AnsiDataHandler.java:106)
at org.jamwiki.db.AnsiDataHandler.writeTopic(AnsiDataHandler.java:1239)
at org.jamwiki.db.WikiDatabase.setupSpecialPage(WikiDatabase.java:249)
at org.jamwiki.db.WikiDatabase.setupSpecialPages(WikiDatabase.java:263)
at org.jamwiki.db.WikiDatabase.setup(WikiDatabase.java:180)
at org.jamwiki.db.AnsiDataHandler.setup(AnsiDataHandler.java:1081)
at org.jamwiki.WikiBase.reset(WikiBase.java:184)
at org.jamwiki.servlets.SetupServlet.initialize(SetupServlet.java:138)
at org.jamwiki.servlets.SetupServlet.handleJAMWikiRequest(SetupServlet.java:72)
at org.jamwiki.servlets.JAMWikiServlet.handleRequestInternal(JAMWikiServlet.java:74)
at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:839)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:774)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:460)
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:425)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:972)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:907)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:145)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:264)
at org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:107)
at org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:72)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
at org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:110)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:217)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
at org.acegisecurity.ui.logout.LogoutFilter.doFilter(LogoutFilter.java:106)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:229)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
at org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:148)
at org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:98)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130)
at org.jamwiki.servlets.JAMWikiFilter.doFilter(JAMWikiFilter.java:58)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:87)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:701)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:646)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:475)
at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:463)
at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:92)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:744)
at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1433)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:93)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:465)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:394)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:290)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)
at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:152)
at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:213)
at com.ibm.io.async.AbstractAsyncFuture.fireCompletionActions(AbstractAsyncFuture.java:195)
at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:194)
at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:741)
at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:863)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1510)
Caused by: java.sql.SQLException: Data size bigger than max size for this type: 7624
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
at oracle.jdbc.ttc7.TTCItem.setArrayData(TTCItem.java:147)
at oracle.jdbc.dbaccess.DBDataSetImpl.setBytesBindItem(DBDataSetImpl.java:2492)
at oracle.jdbc.driver.OraclePreparedStatement.setItem(OraclePreparedStatement.java:1194)
at oracle.jdbc.driver.OraclePreparedStatement.setString(OraclePreparedStatement.java:1614)
at org.apache.commons.dbcp.DelegatingPreparedStatement.setString(DelegatingPreparedStatement.java:132)
at org.jamwiki.db.WikiPreparedStatement.loadStatement(WikiPreparedStatement.java:143)
at org.jamwiki.db.WikiPreparedStatement.executeUpdate(WikiPreparedStatement.java:110)
... 67 more
10 tables have been created successfully, but the "Data size bigger than max size for this type" looks like being the root cause. Does this help to identify the problem? -- Carsten Seiffert 04-Jul-2007 08:36 PDT
It is possible to create a new page with no content. This page will then throw a NPE when it is diffed or any attempt is made to edit it. I believe the problem is due to the fact that a new version is not created if a page has not changed or has no content, but that rule should be ignored when a page is first being created. -- Ryan 26-Jul-2007 11:13 PDT
2007-07-27 09:00:34,989 SEVERE: org.jamwiki.db.AnsiDataHandler - No versions found for 543 against 0 2007-07-27 09:00:34,989 SEVERE: org.jamwiki.servlets.ServletUtil - Servlet error java.lang.Exception: No versions found for 543 against 0 at org.jamwiki.db.AnsiDataHandler.diff(AnsiDataHandler.java:401) at org.jamwiki.servlets.DiffServlet.diff(DiffServlet.java:83) at org.jamwiki.servlets.DiffServlet.handleJAMWikiRequest(DiffServlet.java:42) at org.jamwiki.servlets.JAMWikiServlet.handleRequestInternal(JAMWikiServlet.java:74)
2007-07-27 09:02:00,333 SEVERE: org.jamwiki.servlets.ServletUtil - Servlet error java.lang.NullPointerException at org.jamwiki.servlets.EditServlet.save(EditServlet.java:281) at org.jamwiki.servlets.EditServlet.handleJAMWikiRequest(EditServlet.java:59) at org.jamwiki.servlets.JAMWikiServlet.handleRequestInternal(JAMWikiServlet.java:74)
Is there supposed to be a clear line above all indentations, the way there is following no indentation? Or is there not supposed to be a blank line following no indentation.
Regular/none indentation
Regular/none indentation
Regular/none indentation
Just a note to say I didn't miss this one, but since it doesn't seem critical I was planning on pushing it to the next release. My guess is that the problem is the paragraph parser again, which has been an ongoing battle. -- Ryan 16-Aug-2006 16:09 PDT
I'm trying to install jamwiki on a server which runs jrun4. Having navigated to the page, filled it out and clicked "save changes" the page reloads with the following error at the top:
"An unknown system error has occurred. The error message is: SHA-512 MessageDigest not available."
Any ideas??
Oracle's "can't save an empty string" issue cropped up again...
2007-08-30 16:16:49,507 SEVERE: org.jamwiki.servlets.ServletUtil - Servlet error
java.lang.NullPointerException
at org.jamwiki.servlets.EditServlet.save(EditServlet.java:285)
at org.jamwiki.servlets.EditServlet.handleJAMWikiRequest(EditServlet.java:59)
at org.jamwiki.servlets.JAMWikiServlet.handleRequestInternal(JAMWikiServlet.java:74)
at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:857)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:792)
-- Ryan 31-Aug-2007 11:17 PDT
Create a document with some headlines, such that an outline is created. If two headlines carry the same name, the link from the outline always only navigates to the first headline.
Something like ==== [[page header|text]] ==== leads to a page header|text entry in the toc, the body appearance is o.k. I think that's not what one expects to happen... ;) -- fmr 07-May-2007 10:11 PDT
Anonymous users can upload files even if anonymous posting is not allowed. It is causing lots of spam in my wiki page. This is a critical issue IMO.
Archived from the Feedback page:
After I followed the upgrade procedure (as I have done in previous versions) I get the following error message:
org.apache.jasper.JasperException: This absolute uri (http://java.sun.com/jsp/jstl/core) cannot be resolved in either web.xml or the jar files deployed with this application at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:60) at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:385) at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:109) at org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:116) at org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:312) at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:339) at org.apache.jasper.compiler.Parser.parseElements(Parser.java:749) at org.apache.jasper.compiler.Parser.parse(Parser.java:77) at org.apache.jasper.compiler.ParserController.parse(ParserController.java:159) at org.apache.jasper.compiler.ParserController.parse(ParserController.java:111) at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:185) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:355) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:427) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:142) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:240) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:187) at javax.servlet.http.HttpServlet.service(HttpServlet.java:809) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:198) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:144) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:209) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:595) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:432) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:954) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:138) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:595) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:432) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:954) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2459) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:132) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:595) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:118) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:593) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:116) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:593) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:432) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:954) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:126) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:595) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:432) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:954) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:152) 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(Unknown Source)
normally I should see a textbox tp typ my usernae and password for the database upgrade! I'm working with Tomcat version 4.1.34 and JDK 1.5 together with MSSQL
Can anyone help me with this problem?
I didn't made any changes to the web.xml file. Just using the one enclosed in de war-file. Deleted the cached files as you sugested but did't made any difference. I'm upgrading from version 0.5.3 i'm skipping a version, could that be a problem? --Angel 27-Sep-2007 00:14 PDT
I have upgrade my Tomcat installation to version 5.x and jdk 1.5. This seems to work. Only have some trouble updating my tables.
Automatic update of my database doesn't work. Manually it work until the last Query :
INSERT into jam_role_map (role_name, wiki_user_id)
select 'ROLE_ADMIN', wiki_user_id
from ictwiki.jam_wiki_user where is_admin = 1;
INSERT into jam_role_map (role_name, wiki_user_id)
select 'ROLE_DELETE', wiki_user_id
from ictwiki.jam_wiki_user where is_admin = 1;
INSERT into jam_role_map (role_name, wiki_user_id)
select 'ROLE_SYSADMIN', wiki_user_id
from ictwiki.jam_wiki_user where is_admin = 1;
INSERT into jam_role_map (role_name, wiki_user_id)
select 'ROLE_TRANSLATE', wiki_user_id
from ictwiki.jam_wiki_user where is_admin = 1;
ALTER TABLE ictwiki.jam_wiki_user DROP COLUMN is_admin;
This give me the following error :
(1 row(s) affected) Server: Msg 547, Level 16, State 1, Line 4 INSERT statement conflicted with COLUMN FOREIGN KEY constraint 'jam_fk_role_map_role'. The conflict occurred in database 'wiki', table 'jam_role', column 'role_name'. The statement has been terminated. (1 row(s) affected) (1 row(s) affected) Server: Msg 5074, Level 16, State 1, Line 13 The object 'DF__jam_wiki___is_ad__7D78A4E7' is dependent on column 'is_admin'. Server: Msg 4922, Level 16, State 1, Line 13 ALTER TABLE DROP COLUMN is_admin failed because one or more objects access this column.
Got it working again. updated my database manually, but had to alter the given statements slightly. --Angel 28-Sep-2007 05:02 PDT
Since I fixed most problems manually. I'm unable to give a patch. I can give you a detailed description on what I had to do to get it all working again. Let me know if you want that. --Angel 01-Oct-2007 02:29 PDT
Archived from the Feedback page:
Is there a possibility to include images without being links to their original upload files? I just want to get rid of the dotted line below images... -- Frank 11-Sep-2007 03:09 PDT
/WEB-INF/classes/pages/StyleSheet.txt. If you paste the contents into the StyleSheet topic for your site then the CSS should match that of jamwiki.org, and the lines under images should go away. Note that if you've customized the CSS for your site then you'll need to re-update that file with your customizations after copying the default styles. -- Ryan 12-Sep-2007 08:00 PDT
Archived from the Feedback page:
Tried to switch to 0.6.0. Running tomcat5 on a opensuse10.2 box I stopped tomcat and moved the jamwiki dir to a save plave (upload and system dirs are underneath). Then I replaced jamwiki.war with the new .war file. Restarting tomcat and browsing the JW URL brings up the JW setup page and creates the JW dir (shouldn't that happen immediately after starting tomcat without browsing the URL?). Now I copied dirs system and upload to their appropriate places and the .properties files specified in the Upgrade section. Restarting tomcat and browsing the URL brings up a virginal JW, though dirs system and upload contain the old files. Any suggestions? -- fmr 05-Sep-2007 07:59 PDT
java -jar /usr/share/java/hsqldb.jar --sql "CREATE TABLE jam_role ( role_name VARCHAR(30) NOT NULL, role_description VARCHAR(200), CONSTRAINT jam_pk_role PRIMARY KEY (role_name), CONSTRAINT jam_unique_role_name UNIQUE (role_name) );" jamwikiseems to work w/o error (no message), but trying to create jam_role_map referencing the other tables induces an error message telling that jam_role does not exist. That links to the hsql problem depicted above that one can browse data but can not manipulate the database that way. -- fmr 07-Sep-2007 04:04 PDT
JAMWiki Version 0.6.0
I unchecked ROLE_VIEW for GROUP_ANONYMOUS in Role view. After that the login page was not formated (no css) and when I tried to login the browser redirected me to the JAMWiki logo. Anyone else with this problem?
/WEB-INF/applicationContext-acegi-security.xml file to add a pattern for /**/*.css and /images/** as shown in the example below:<bean id="filterInvocationInterceptor" class="org.acegisecurity.intercept.web.FilterSecurityInterceptor"> <property name="authenticationManager"> <ref local="authenticationManager" /> </property> <property name="accessDecisionManager"> <ref local="accessDecisionManager" /> </property> <property name="objectDefinitionSource"> <value> PATTERN_TYPE_APACHE_ANT /**/Special:Admin=ROLE_SYSADMIN /**/Special:Edit=ROLE_EDIT_EXISTING,ROLE_EDIT_NEW /**/Special:Login=ROLE_ANONYMOUS,ROLE_USER /**/Special:Maintenance=ROLE_SYSADMIN /**/Special:Manage=ROLE_ADMIN /**/Special:Move=ROLE_MOVE /**/Special:RecentChangesFeed=ROLE_ANONYMOUS,ROLE_USER /**/Special:Roles=ROLE_SYSADMIN /**/Special:Setup=ROLE_ANONYMOUS,ROLE_USER /**/Special:Translation=ROLE_TRANSLATE /**/Special:Upload=ROLE_UPLOAD /**/Special:Upgrade=ROLE_ANONYMOUS,ROLE_USER /**/*.jsp=ROLE_ANONYMOUS,ROLE_USER /**/*.css=ROLE_ANONYMOUS,ROLE_USER /images/**=ROLE_ANONYMOUS,ROLE_USER /**=ROLE_VIEW </value> </property> </bean>
Moved from the Feedback page:
To get jamwiki 0.4.1 and 0.5.2 working with WebSphere 5.1.1.12 on SuSE 8.1 (Linux) I found it was necessary to replace the hsqldbmain jar file with hsqldb.jar. Unfortunately, I don't know exactly what version this jar is from.
Additionally, WebSphere Enterprise seems to be quite picky. The web.xml elements must appear in the same order they are listed in the DTD. For reference, here is the web.xml I put together for jamwiki 0.5.2
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<!--
NOTE: do not use the context-param element to initialize the
ApplicationResources resource bundle here due to a bug in the JSTL and
Tomcat4 that causes response encoding to be finalized and thus prevents
setting page encoding to UTF-8. Instead, load the resource bundle in
page-init.jsp.
-->
<display-name>jamwiki</display-name>
<description>jamwiki</description>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/applicationContext-acegi-security.xml</param-value>
</context-param>
<!-- set encoding, cache headers, etc. -->
<filter>
<filter-name>JAMWikiFilter</filter-name>
<filter-class>org.jamwiki.servlets.JAMWikiFilter</filter-class>
<init-param>
<param-name>encoding</param-name>
<param-value>UTF-8</param-value>
</init-param>
</filter>
<filter>
<filter-name>Acegi Filter Chain Proxy</filter-name>
<filter-class>org.acegisecurity.util.FilterToBeanProxy</filter-class>
<init-param>
<param-name>targetClass</param-name>
<param-value>org.acegisecurity.util.FilterChainProxy</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>JAMWikiFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>Acegi Filter Chain Proxy</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<servlet>
<servlet-name>jamwiki</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>jamwiki</servlet-name>
<url-pattern>/en/*</url-pattern>
</servlet-mapping>
<!-- virtual wiki mapping(s) -->
<servlet-mapping>
<servlet-name>jamwiki</servlet-name>
<url-pattern>/test/*</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
<taglib>
<taglib-uri>http://java.sun.com/jsp/jstl/core</taglib-uri>
<taglib-location>/WEB-INF/c.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://java.sun.com/jstl/fmt</taglib-uri>
<taglib-location>/WEB-INF/fmt.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://jamwiki.org/taglib</taglib-uri>
<taglib-location>/WEB-INF/jamwiki.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://acegisecurity.org/authz</taglib-uri>
<taglib-location>/WEB-INF/authz.tld</taglib-location>
</taglib>
</web-app>
<input type="<c:out value="${foo}" />" />
Since upgrading from JAMWiki 0.5.4 to 0.6.0, anonymous users are unable to view the wiki.
When Tomcat is first started, if anyone tries to access the wiki site they are presented with a login page and told that they don't have access to the "Home" article (our default page). If they click any other pages, they get the same result. The CSS and image files also aren't served up properly.
In "User/Group Roles", GROUP_ANONYMOUS is set to have the ROLE_UPLOAD and ROLE_VIEW roles, as per the default settings.
If I set GROUP_ANONYMOUS to also have the ROLE_ADMIN role, click save, then untick the ROLE_ADMIN role and save again, suddenly everyone can view the wiki (at least until Tomcat is restarted).
Any ideas?
Our environment is as follows:
Thanks for your help. -- Wayne
tomcat/work directory. If the problem persists let me know and I'll see if I can figure out how to address it. Thanks for the bug report, and sorry for the trouble. -- Ryan 25-Sep-2007 19:23 PDTHi wiki gurus,
i have the similar problem after upgrading to 0.6.0 from 0.5.1, the only difference is my environment Our environment is as follows:
Please some one help me, our users are stuck, and my knowledge base is totally stored in this wiki. appreciate your help -- Durga
/WEB-INF/applicationContext-acegi-security.xml file be used. If possible, could you upload your version of that file to jamwiki.org? Also, did you see any errors in your log file during the upgrade? Sorry for the trouble, and hopefully it will be easy to resolve. -- Ryan 12-Oct-2007 14:15 PDT-- thanks for the reply, the deployment is done through exploded. the i have uploaded the /WEB-INF/applicationContext-acegi-security.xml file here i saw some errors while upgrading, saying i cant create the table(s), so i followed the manual upgrade as per the UPGRADE.txt file.
Please email me dkothapa@bear.com for faster resolution for the above problem, or else will give you a call. --Durga 15-Oct-2007 08:49 PDT
Thanks ryan, uploaded the SQL Output, Please find that file here --Durga 15-Oct-2007 10:30 PDT
update jam_group set group_name = 'GROUP_ANONYMOUS' where group_name = 'ANONYMOUS_USERS'; update jam_group set group_name = 'GROUP_REGISTERED_USER' where group_name = 'LOGGED_IN_USERS';
delete from jam_role_map where user_id = 0; // bogus user id delete from jam_role where role_name = 'ROLE_ANONYMOUS'; // keep only if you need it delete from jam_role where role_name = 'ROLE_DELETE'; // unused role delete from jam_role_map where group_id = 1 and role_name = 'ROLE_ADMIN'; // don't give anonymous admin access
After making these changes you will need to restart BEA, and with any luck you will be OK. Let me know if that works! -- Ryan 15-Oct-2007 13:43 PDT
Yahoo.. It is resolved. Thanks a zillion ryan. the main culprit in my Wiki is the group names, as per the typo in UPGRADE.txt the GROUP NAMEs are created. --Durga 15-Oct-2007 14:49 PDT
I have changed Default Topic. But after "Login" or "Logout" do not redirect to my default topic
i found a error in the UPGRADE.txt document.
ROLE_DELETE is not actually used and was included in 0.6.0 by mistake. It has been removed from 0.6.1. -- Ryan 15-Oct-2007 10:05 PDTThe indexed content (which has been replaced by DIV tags in 0.6.1) doesn't display at all in IE 6.0 SP2. Firefox 2.0.0.8 (latest) works fine. Symptoms are that the index that displayed on 0.6.0 displayed fine on IE 6.0 SP2, but are blank on 0.6.1. This is true of both my site on my server and also the main JAMWiki Site --Bulldog 23-Oct-2007 06:35 PDT
Additional information. The site (JAMWiki.org) _does_ display correctly in IE 7.0. --Bulldog 23-Oct-2007 06:54 PDT
I'm writing contents in Spanish, using characters such as á, é, ñ, etc... The text looks fine, but the TOC does not. It shows the caracters like their HTML representation: á, é...
Ok, I see. Thanks you for all your effort. Yes, I'am willing to see the next version! Maybe I could help in some way, perhaps with a spanish translation. :-D Angel Pinazo
Using a header with greater than/lower than signs (<>) causes escape (> <) in html on TOC. See http://www.jpox.org/servlet/wiki/en/Building_JPOX_using_Ant.
Of course, I could not reproduce the issue here :-) - erik Rendering_TOC_for_a_page_with_umlaut_%28%26auml%3B%2C%26ouml%3B%2C%26uuml%3B%2C_...%29_in_a_title
I discovered a silly "bug" in the rendering of the TOC on top of a new page. If you use an (german) umlaut (ä,ö,ü, ...) in the head-line of an article you will see the html-encoding for the umlaut e.g.: ä in the generated TOC -- Michael Habbert 29-Oct-2007 07:40 PST
I have the same problem with french accented characters. Louis Martin 02-Nov-2007 02:37 PST
The problem seems to be in the class org.jamwiki.parser.TableOfContents in the method public String toHTML().
The line
text.append("<a href=\"#").append(Utilities.encodeForURL(entry.name)).append("\">").append(HtmlUtils.htmlEscape(entry.text)).append("</a>");
should be
text.append("<a href=\"#").append(Utilities.encodeForURL(entry.name)).append("\">").append(entry.text).append("</a>");
because the entry text is alraedy encoded when it arrive there. Louis Martin 02-Nov-2007 06:00 PST
I have created a virtual wiki (for example /zh_CN/). when i will edit some topic before i login in my virtual wiki, jamwiki will redirect to login page, but it almost default virtual wiki's login page, not my virtaul wiki's login page!
Application server: tomcat5.5 OS:FreeBsd 6.2 Context Path: ""
error information: I change DEFAULT_VWIKI from "en" to "mn" on WikiBase.java. And I build source and upgrade my jamwiki 0.5.4 to jamwiki 0.6.0. But I have an error HTTP Status 404 - /en/Special:Login. not /mn/Special:Login I found my error. I some change on applicationContext-acegi-security-cas.xml and applicationContext-acegi-security.xml. Now my wiki looks ugly. Sorry my bad english
Look at the last update I made to Baby Elephant. For some reason it stretches the page out. Is this a bug, or is there something in the syntax of that piece of content that forces the stretching? -- scroco 13-Nov-2006 18:02 PST
Problem :
Hi Ryan, I see only a single digit as well for numbering > 9 using IE6. Do check out the problem for this. Thanks. -- Kwee Tin 12-Feb-2007 18:06 PST
Copied from the Feedback page:
We've got the Wiki working fine with IIS using Resin for the .jsp files. However once a topic is entered with French accents such as è for example, IIS reports a 404 error while trying to access the page, while going through Resin on port 8080 works fine with the same link.
This works in Resin : someserver.somewhere.com:8080/wiki/syst%C3%A8me_d%27exploitation
But this doesn not : someserver.somewhere.com/wiki/syst%C3%A8me_d%27exploitation
I'm thinking it's the %C3%A8 encoding that IIS has problems with. Any ideas ?
-- Mike
Copied from the Feedback page:
Hi Ryan, I do have a problem with the file-upload. Wen I do use the navigation-link: Special:Upload to upload a image It fails. Entering the image path and a description I click on save, after that I get a result-page - everything is fine but when I click on the link I get:
HTTP Status 404 - /upload/2007/2/wombat-left-17151531.gif type Status report message /upload/2007/2/wombat-left-17151531.gif description The requested resource (/upload/2007/2/wombat-left-17151531.gif) is not available. Apache Tomcat/5.0
Any Ideas? Thanks -- Michael Habbert 17-Feb-2007 06:15 PST
Hi Ryan, I found my test-file in the jamwiki-upload directory. But how do I access the image? Is there a page where I can see all the upload-files, or a file-explorer to select the image - to use inside a page? The jamwiki-logs don't show any errors at all. --Michael Habbert 18-Feb-2007 08:18 PST
Hi Michael, I had the same problem - not with upload, but with displaying the uploaded image a. in the page displayed directly after the upload and b. within the wiki page. I resolved the problem by changing the relative path to the upload folder (on the administration page, right under the absolute path. This worked for me: - absolute path: C:/tomcat/webapps/jamwiki-0.5.3/files - relative path: /jamwiki-0.5.3/files/ Hope it helps. --Markus 26-Apr-2007 06:17 PDT
I am upgrading from GlassFish v2 and PostgreSQL 8.2. Here's the error (I have the server log but it could not fit in this page anymore:
Unable to complete upgrade to new JAMWiki version.: Failure while executing insert into jam_role_map ( role_name, wiki_user_id ) select 'ROLE_ADMIN', wiki_user_id from jam_wiki_user where is_admin = 1
Here's the error log:
Log Level: SEVERE Logger: org.jamwiki.servlets.UpgradeServlet Name-Value Pairs: _ThreadID=14;_ThreadName=httpSSLWorkerThread-8080-1;_RequestID=64bae4a1-6ed4-401b-af9e-15a9c4dd44c6; Record Number: 1029 Message ID: Unable to complete upgrade to new JAMWiki version. java.lang.Exception Complete Message: Failure while executing insert into jam_role_map ( role_name, wiki_user_id ) select 'ROLE_ADMIN', wiki_user_id from jam_wiki_user where is_admin = 1 at org.jamwiki.db.DatabaseConnection.executeUpdate(DatabaseConnection.java:210) at org.jamwiki.db.DatabaseUpgrades.upgrade060(DatabaseUpgrades.java:207) at org.jamwiki.servlets.UpgradeServlet.upgrade(UpgradeServlet.java:123) at org.jamwiki.servlets.UpgradeServlet.handleJAMWikiRequest(UpgradeServlet.java:65) at org.jamwiki.servlets.JAMWikiServlet.handleRequestInternal(JAMWikiServlet.java:74) at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153) at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48) at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:857) at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:792) at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:475) at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:440) at javax.servlet.http.HttpServlet.service(HttpServlet.java:738) at javax.servlet.http.HttpServlet.service(HttpServlet.java:831) at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:411) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:317) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:265) at org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:107) at org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:72) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275) at org.jamwiki.authentication.JAMWikiExceptionMessageFilter.doFilter(JAMWikiExceptionMessageFilter.java:70) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275) at org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:110) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275) at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125) at org.jamwiki.authentication.JAMWikiAnonymousProcessingFilter.doFilter(JAMWikiAnonymousProcessingFilter.java:62) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275) at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275) at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:229) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275) at org.acegisecurity.ui.logout.LogoutFilter.doFilter(LogoutFilter.java:106) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275) at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:286) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275) at org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:149) at org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:98) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198) at org.jamwiki.servlets.JAMWikiFilter.doFilter(JAMWikiFilter.java:58) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:288) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:271) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:202) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577) at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:206) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:150) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:270) at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:637) at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:568) at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:813) at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:339) at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:261) at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:212) at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265) at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106) Caused by: org.postgresql.util.PSQLException: ERROR: column "is_admin" does not exist at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:1548) at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1316) at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:191) at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:452) at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:337) at org.postgresql.jdbc2.AbstractJdbc2Statement.executeUpdate(AbstractJdbc2Statement.java:283) at org.apache.commons.dbcp.DelegatingStatement.executeUpdate(DelegatingStatement.java:228) at org.jamwiki.db.DatabaseConnection.executeUpdate(DatabaseConnection.java:202) ... 66 more
Perfect - the cause is "org.postgresql.util.PSQLException: ERROR: column "is_admin" does not exist at...". I'm not sure why that column wouldn't exist unless there wasn't a previous installation available or if code had already been upgraded. Is there any chance you were already running a version of the 0.6.0 code? I'm not quite sure how this error could occur, but I'll look through the code again to see if I've overlooked something. Thanks again for the report. -- Ryan 28-Aug-2007 09:10 PDT
I got it to upgrade now. I restored the database and re-run the upgrade successfully. The cause of the above error was wrong password when I tried to upgrade it the first time. Thanks for you attention. --amerigo5 28-Aug-2007 19:38 PDT
While testing an upgrade with Oracle I hit the following issue:
-- Ryan 19-Oct-2007 08:09 PDT
I am trying upload a jpeg-file. The upload works file, but the image link and image is not served. shows broken image. --Durga 02-Nov-2007 11:08 PST
I am adding to this section because it sounds like the same problem. Feel free to delete it if this is not the case.
Goal: Store everything outside of the Tomcat default directories for easier backup.
Problem: Images don't seem to work if stored outside of Tomcat default directories.
Created this directory structure:
C:\z C:\z\data C:\z\thewar jamwiki-0.6.2.war C:\z\upload
Created this context fragment
<Context docBase="C:\z\thewar\jamwiki-0.6.2.war" debug="0" privileged="true" />
and stored it as C:\Program Files\Apache Software Foundation\Tomcat 5.5\conf\Catalina\localhost\jmw.xml
Started Tomcat and did these configurations on http://127.0.0.1:8080/jmw/en/Special:Setup:
File-system directory: C:\z\data File upload directory: C:\z\upload (Default was: C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\jmw\upload) Relative file upload root: <empty> (Default was: /jmw/upload/)
Uploaded an image and clicked on the link in "File History":
http://2007/12/Winter-19200930.jpg
Of course this does not work.
Then I changed the "Relative file upload root:" to "\z\upload\"
Relative file upload root: \z\upload\
The link in "File History" now became:
http://localhost:8080/z/upload/2007/12/Winter-19200930.jpg
This does not work either. I do not see how I can steer JAMWiki to a directory outside of Tomcat for serving images using "Relative file upload root:". I had a look at Feedback#How do I upload and use an image in jamwiki but to me it seems that this only works with Tomcat directories.
I do not know Tomcat well - am I just making a mistake with the configuration? --138.190.15.46 19-Dec-2007 11:32 PST
/data/www/jamwiki.org/files/files//data/www/jamwiki.org/files/2006/8/baby_elephant-09164740.jpg. The URL for the image is /files/2006/8/baby_elephant-09164740.jpg. The Apache docroot is setup for /data/www/jamwiki.org, so any requests to http://jamwiki.org/files/ will be served by Apache from the docroot's /files/ directory.I have upgraded from 0.5.2 to 0.6.1. Solaris 10, Oracle 10, Sun Application Server 9.1. I followed the upgrade procedure and copied over the old logging.properties and jamwiki.properties and everything went fine.
Everything appears to work except for the "All Pages" and "Recent Changes" which gives the following errors in the server log:
[#|2007-11-09T14:35:16.890+0200|SEVERE|sun-appserver9.1|org.jamwiki.servlets.ServletUtil|_ThreadID=17;_ThreadName=httpSSLWorkerThread-80-0;_RequestID=6e1d4df4-f99c-46e6-a88a-696d0814016f;|Servlet error
java.lang.Exception: Failure while executing select * from jam_recent_change where virtual_wiki_name = ? order by edit_date desc limit ? offset ?
at org.jamwiki.db.WikiPreparedStatement.executeQuery(WikiPreparedStatement.java:84)
at org.jamwiki.db.WikiPreparedStatement.executeQuery(WikiPreparedStatement.java:61)
at org.jamwiki.db.OracleQueryHandler.getRecentChanges(OracleQueryHandler.java:66)
at org.jamwiki.db.AnsiDataHandler.getRecentChanges(AnsiDataHandler.java:338)
...
Caused by: java.sql.SQLException: ORA-00933: SQL command not properly ended
[#|2007-11-09T14:35:42.083+0200|SEVERE|sun-appserver9.1|org.jamwiki.servlets.ServletUtil|_ThreadID=18;_ThreadName=httpSSLWorkerThread-80-1;_RequestID=34d3a38b-2246-417b-9334-2c9421e676ba;|Servlet error
java.lang.Exception: Failure while executing select topic_name from jam_topic where jam_topic.virtual_wiki_id = ? and jam_topic.topic_type = ? and jam_topic.delete_date is null order by jam_topic.topic_name limit ? offset ?
at org.jamwiki.db.WikiPreparedStatement.executeQuery(WikiPreparedStatement.java:84)
at org.jamwiki.db.WikiPreparedStatement.executeQuery(WikiPreparedStatement.java:61)
at org.jamwiki.db.OracleQueryHandler.lookupTopicByType(OracleQueryHandler.java:131)
at org.jamwiki.db.AnsiDataHandler.lookupTopicByType(AnsiDataHandler.java:834)
...
Caused by: java.sql.SQLException: ORA-00933: SQL command not properly ended
My only guess is that it is missing Oracle specific queries (as far as I know Oracle does not have limit and offset). -- Conny Gyllendahl 09-Nov-2007 14:44 EET
my environment:
windows xp2
jamwiki 0.62
tomcat 5.0
jdk 5.0
URL:
http://192.168.10.73:8080/jamwiki6/en/Special:Diff?topic=%E5%9B%BE%E7%89%87&version2=25&version1=27
[jamwiki.org] cannot display too.
URL:
http://jamwiki.org/wiki/en/Special:Diff?topic=Sandbox&version2=7107&version1=7108
css 's problem? in the page 's source,have diff 's code.I think only display problem.
(jamwiki 0.54 is ok)
thank you very much! --legendsen 13-Dec-2007 01:45 PST
See my name on the following screen shot (should be "Толик", but it is Толик)
http://img88.imageshack.us/my.php?image=editingbugreportsjamwikks4.png
Replacing line 264 in jamwiki/jamwiki/src/main/java/org/jamwiki/utils/LinkUtil.java with
html += StringEscapeUtils.escapeHtml(StringEscapeUtils.unescapeHtml(text));
fixed it
It may be a CSS-Problem with the new jamwiki-version. Besides my other problem: Feedback#jamwiki update I recognize a problem with the layout. I do not know the reason but, on my local installation the left navigation is on top of the (each) page. Is there a manual fix for this? How are the tables/frames are generated and what might be the solution. -- Michael Habbert 30-Dec-2007 03:59 PST
Hi Ryan, I 'm not shure if you know there is a problem with the styles at jawiki. I will upload a Png-File to illustrate the phenomenon - not really a bug in my opinion.By the way how do I resize the image? Can I only link to it? ;-) Happy new year anyway. -- Michael Habbert 05-Jan-2008 09:43 PST
I'm using Mac OS X (Leopard), Postgres 8 and Tomcat. I can successfully install Jamwiki using its internal db, but if I use my external Postgres 8 database then I get an error as the following image shows: SafariScreenSnapz002.tiff
Having looked at the schema (ANSI properties I'm presuming) then I see that the create_ip_address and last_login_ip_address are the only varchar(15)s so it is probably something to do with the population of these fields. I then wrote a little Java program to see if my machine returns something weird for an IP address. Here's the code:
import java.net.*;
public class test {
/**
* @param args
*/
public static void main(String[] args) {
try {
InetAddress thisIp = InetAddress.getLocalHost();
System.out.println(thisIp.getHostAddress());
} catch (Exception e) {
e.printStackTrace();
}
}
}
All that gets reported is "10.0.1.202" so that should be ok...
Finally the log file reports:
ERROR: relation "jam_virtual_wiki" does not exist NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "jam_p_vwiki" for table "jam_virtual_wiki" NOTICE: CREATE TABLE / UNIQUE will create implicit index "jam_u_vwiki_name" for table "jam_virtual_wiki" NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "jam_p_wuser" for table "jam_wiki_user" NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "jam_p_wiki_uinfo" for table "jam_wiki_user_info" NOTICE: CREATE TABLE / UNIQUE will create implicit index "jam_u_wuinfo_login" for table "jam_wiki_user_info" NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "jam_p_topic" for table "jam_topic" NOTICE: CREATE TABLE / UNIQUE will create implicit index "jam_u_topic_name" for table "jam_topic" NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "jam_p_topic_ver" for table "jam_topic_version" NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "jam_p_file" for table "jam_file" NOTICE: CREATE TABLE / UNIQUE will create implicit index "jam_u_file_url" for table "jam_file" NOTICE: CREATE TABLE / UNIQUE will create implicit index "jam_u_file_topic" for table "jam_file" NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "jam_p_file_ver" for table "jam_file_version" NOTICE: CREATE TABLE / UNIQUE will create implicit index "jam_u_filev_url" for table "jam_file_version" NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "jam_p_category" for table "jam_category" NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "jam_p_group" for table "jam_group" NOTICE: CREATE TABLE / UNIQUE will create implicit index "jam_u_group_name" for table "jam_group" NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "jam_p_role" for table "jam_role" NOTICE: CREATE TABLE / UNIQUE will create implicit index "jam_u_rmap" for table "jam_role_map" NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "jam_p_rc" for table "jam_recent_change" NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "jam_p_watchlist" for table "jam_watchlist" ERROR: value too long for type character varying(15)
...which leads me to think that it is only the last error reported that is causing a problem for me.
Incidentally I note that the postgres.properties file is empty. I presume that this is because Postgres is ANSI compliant and you just use the ANSI properties...
Any help appreciated as I'm looking forward to getting up to speed with this great initiative.
2008-01-11 16:39:15,363 CONFIG: org.jamwiki.Environment - Loading properties from /Applications/apache-tomcat-5.5.23/webapps/jamwiki-0.6.2/WEB-INF/classes/sql.ansi.properties 2008-01-11 16:39:15,364 CONFIG: org.jamwiki.Environment - Loading properties from /Applications/apache-tomcat-5.5.23/webapps/jamwiki-0.6.2/WEB-INF/classes/sql.ansi.properties 2008-01-11 16:39:15,364 CONFIG: org.jamwiki.Environment - Loading properties from /Applications/apache-tomcat-5.5.23/webapps/jamwiki-0.6.2/WEB-INF/classes/sql.ansi.properties 2008-01-11 16:39:15,365 CONFIG: org.jamwiki.Environment - Loading properties from /Applications/apache-tomcat-5.5.23/webapps/jamwiki-0.6.2/WEB-INF/classes/sql.postgres.properties 2008-01-11 16:39:15,381 INFO: org.jamwiki.db.DatabaseConnection - Executing SQL: CREATE TABLE jam_virtual_wiki ( virtual_wiki_id INTEGER NOT NULL, virtual_wiki_name VARCHAR(100) NOT NULL, default_topic_name VARCHAR(200) NOT NULL, create_date TIMESTAMP DEFAULT CURRENT_TIMESTAMP NOT NULL, CONSTRAINT jam_p_vwiki PRIMARY KEY (virtual_wiki_id), CONSTRAINT jam_u_vwiki_name UNIQUE (virtual_wiki_name) ) 2008-01-11 16:39:15,546 INFO: org.jamwiki.db.DatabaseConnection - Executing SQL: CREATE TABLE jam_wiki_user ( wiki_user_id INTEGER NOT NULL, login VARCHAR(100) NOT NULL, display_name VARCHAR(100), create_date TIMESTAMP DEFAULT CURRENT_TIMESTAMP NOT NULL, last_login_date TIMESTAMP DEFAULT CURRENT_TIMESTAMP NOT NULL, create_ip_address VARCHAR(15) NOT NULL, last_login_ip_address VARCHAR(15) NOT NULL, remember_key VARCHAR(100) NOT NULL, default_locale VARCHAR(8), CONSTRAINT jam_p_wuser PRIMARY KEY (wiki_user_id) ) 2008-01-11 16:39:15,549 INFO: org.jamwiki.db.DatabaseConnection - Executing SQL: CREATE TABLE jam_wiki_user_info ( wiki_user_id INTEGER NOT NULL, login VARCHAR(100) NOT NULL, email VARCHAR(100), first_name VARCHAR(100), last_name VARCHAR(100), encoded_password VARCHAR(100) NOT NULL, CONSTRAINT jam_p_wiki_uinfo PRIMARY KEY (wiki_user_id), CONSTRAINT jam_f_wuinfo_wuser FOREIGN KEY (wiki_user_id) REFERENCES jam_wiki_user(wiki_user_id), CONSTRAINT jam_u_wuinfo_login UNIQUE (login) ) 2008-01-11 16:39:15,587 INFO: org.jamwiki.db.DatabaseConnection - Executing SQL: CREATE UNIQUE INDEX jam_u_wuser_login on jam_wiki_user (lower(login)) 2008-01-11 16:39:15,604 INFO: org.jamwiki.db.DatabaseConnection - Executing SQL: CREATE TABLE jam_topic ( topic_id INTEGER NOT NULL, virtual_wiki_id INTEGER NOT NULL, topic_name VARCHAR(200) NOT NULL, delete_date TIMESTAMP, topic_read_only INTEGER DEFAULT 0 NOT NULL, topic_admin_only INTEGER DEFAULT 0 NOT NULL, current_version_id INTEGER, topic_type INTEGER NOT NULL, redirect_to VARCHAR(200), CONSTRAINT jam_p_topic PRIMARY KEY (topic_id), CONSTRAINT jam_f_topic_vwiki FOREIGN KEY (virtual_wiki_id) REFERENCES jam_virtual_wiki(virtual_wiki_id), CONSTRAINT jam_u_topic_name UNIQUE (topic_name, virtual_wiki_id, delete_date) ) 2008-01-11 16:39:15,609 INFO: org.jamwiki.db.DatabaseConnection - Executing SQL: CREATE TABLE jam_topic_version ( topic_version_id INTEGER NOT NULL, topic_id INTEGER NOT NULL, edit_comment VARCHAR(200), version_content TEXT, wiki_user_id INTEGER, wiki_user_ip_address VARCHAR(15) NOT NULL, edit_date TIMESTAMP DEFAULT CURRENT_TIMESTAMP NOT NULL, edit_type INTEGER NOT NULL, previous_topic_version_id INTEGER, CONSTRAINT jam_p_topic_ver PRIMARY KEY (topic_version_id), CONSTRAINT jam_f_topicv_topic FOREIGN KEY (topic_id) REFERENCES jam_topic(topic_id), CONSTRAINT jam_f_topicv_wuser FOREIGN KEY (wiki_user_id) REFERENCES jam_wiki_user(wiki_user_id), CONSTRAINT jam_f_topicv_pver FOREIGN KEY (previous_topic_version_id) REFERENCES jam_topic_version(topic_version_id) ) 2008-01-11 16:39:15,616 INFO: org.jamwiki.db.DatabaseConnection - Executing SQL: ALTER TABLE jam_topic add constraint jam_f_topic_topicv FOREIGN KEY (current_version_id) REFERENCES jam_topic_version(topic_version_id) 2008-01-11 16:39:15,633 INFO: org.jamwiki.db.DatabaseConnection - Executing SQL: CREATE TABLE jam_file ( file_id INTEGER NOT NULL, virtual_wiki_id INTEGER NOT NULL, file_name VARCHAR(200) NOT NULL, delete_date TIMESTAMP, file_read_only INTEGER DEFAULT 0 NOT NULL, file_admin_only INTEGER DEFAULT 0 NOT NULL, file_url VARCHAR(200) NOT NULL, mime_type VARCHAR(100) NOT NULL, topic_id INTEGER NOT NULL, file_size INTEGER NOT NULL, CONSTRAINT jam_p_file PRIMARY KEY (file_id), CONSTRAINT jam_f_file_vwiki FOREIGN KEY (virtual_wiki_id) REFERENCES jam_virtual_wiki(virtual_wiki_id), CONSTRAINT jam_f_file_topic FOREIGN KEY (topic_id) REFERENCES jam_topic(topic_id), CONSTRAINT jam_u_file_url UNIQUE (file_url), CONSTRAINT jam_u_file_topic UNIQUE (virtual_wiki_id, topic_id) ) 2008-01-11 16:39:15,649 INFO: org.jamwiki.db.DatabaseConnection - Executing SQL: CREATE TABLE jam_file_version ( file_version_id INTEGER NOT NULL, file_id INTEGER NOT NULL, upload_comment VARCHAR(200), file_url VARCHAR(200) NOT NULL, wiki_user_id INTEGER, wiki_user_ip_address VARCHAR(15) NOT NULL, upload_date TIMESTAMP DEFAULT CURRENT_TIMESTAMP NOT NULL, mime_type VARCHAR(100) NOT NULL, file_size INTEGER NOT NULL, CONSTRAINT jam_p_file_ver PRIMARY KEY (file_version_id), CONSTRAINT jam_f_filev_file FOREIGN KEY (file_id) REFERENCES jam_file(file_id), CONSTRAINT jam_f_filev_wuser FOREIGN KEY (wiki_user_id) REFERENCES jam_wiki_user(wiki_user_id), CONSTRAINT jam_u_filev_url UNIQUE (file_url) ) 2008-01-11 16:39:15,654 INFO: org.jamwiki.db.DatabaseConnection - Executing SQL: CREATE TABLE jam_category ( child_topic_id INTEGER NOT NULL, category_name VARCHAR(200) NOT NULL, sort_key VARCHAR(200), CONSTRAINT jam_p_category PRIMARY KEY (child_topic_id, category_name), CONSTRAINT jam_f_cat_child_id FOREIGN KEY (child_topic_id) REFERENCES jam_topic(topic_id) ) 2008-01-11 16:39:15,657 INFO: org.jamwiki.db.DatabaseConnection - Executing SQL: CREATE TABLE jam_group ( group_id INTEGER NOT NULL, group_name VARCHAR(30) NOT NULL, group_description VARCHAR(200), CONSTRAINT jam_p_group PRIMARY KEY (group_id), CONSTRAINT jam_u_group_name UNIQUE (group_name) ) 2008-01-11 16:39:15,661 INFO: org.jamwiki.db.DatabaseConnection - Executing SQL: CREATE TABLE jam_role ( role_name VARCHAR(30) NOT NULL, role_description VARCHAR(200), CONSTRAINT jam_p_role PRIMARY KEY (role_name) ) 2008-01-11 16:39:15,663 INFO: org.jamwiki.db.DatabaseConnection - Executing SQL: CREATE TABLE jam_role_map ( role_name VARCHAR(30) NOT NULL, wiki_user_id INTEGER, group_id INTEGER, CONSTRAINT jam_u_rmap UNIQUE (role_name, wiki_user_id, group_id), CONSTRAINT jam_f_rmap_role FOREIGN KEY (role_name) REFERENCES jam_role(role_name), CONSTRAINT jam_f_rmap_wuser FOREIGN KEY (wiki_user_id) REFERENCES jam_wiki_user(wiki_user_id), CONSTRAINT jam_f_rmap_group FOREIGN KEY (group_id) REFERENCES jam_group(group_id) ) 2008-01-11 16:39:15,668 INFO: org.jamwiki.db.DatabaseConnection - Executing SQL: CREATE TABLE jam_recent_change ( topic_version_id INTEGER NOT NULL, previous_topic_version_id INTEGER, topic_id INTEGER NOT NULL, topic_name VARCHAR(200) NOT NULL, edit_date TIMESTAMP DEFAULT CURRENT_TIMESTAMP NOT NULL, edit_comment VARCHAR(200), wiki_user_id INTEGER, display_name VARCHAR(200) NOT NULL, edit_type INTEGER NOT NULL, virtual_wiki_id INTEGER NOT NULL, virtual_wiki_name VARCHAR(100) NOT NULL, CONSTRAINT jam_p_rc PRIMARY KEY (topic_version_id), CONSTRAINT jam_f_rc_topic_ver FOREIGN KEY (topic_version_id) REFERENCES jam_topic_version(topic_version_id), CONSTRAINT jam_f_rc_p_topic_v FOREIGN KEY (previous_topic_version_id) REFERENCES jam_topic_version(topic_version_id), CONSTRAINT jam_f_rc_topic FOREIGN KEY (topic_id) REFERENCES jam_topic(topic_id), CONSTRAINT jam_f_rc_wuser FOREIGN KEY (wiki_user_id) REFERENCES jam_wiki_user(wiki_user_id), CONSTRAINT jam_f_rc_vwiki FOREIGN KEY (virtual_wiki_id) REFERENCES jam_virtual_wiki(virtual_wiki_id) ) 2008-01-11 16:39:15,703 INFO: org.jamwiki.db.DatabaseConnection - Executing SQL: CREATE TABLE jam_watchlist ( wiki_user_id INTEGER NOT NULL, topic_name VARCHAR(200), virtual_wiki_id INTEGER NOT NULL, CONSTRAINT jam_p_watchlist PRIMARY KEY (wiki_user_id, topic_name, virtual_wiki_id), CONSTRAINT jam_f_wlist_userid FOREIGN KEY (wiki_user_id) REFERENCES jam_wiki_user(wiki_user_id), CONSTRAINT jam_f_wlist_vwiki FOREIGN KEY (virtual_wiki_id) REFERENCES jam_virtual_wiki(virtual_wiki_id) ) 2008-01-11 16:39:15,781 WARNING: org.jamwiki.db.DatabaseConnection - Rolling back database transactions 2008-01-11 16:39:15,781 WARNING: org.jamwiki.db.DatabaseConnection - Rolling back database transactions 2008-01-11 16:39:15,782 SEVERE: org.jamwiki.servlets.SetupServlet - Setup error java.lang.Exception: Failure while executing insert into jam_wiki_user ( wiki_user_id, login, display_name, create_date, last_login_date, create_ip_address, last_login_ip_address, remember_key, default_locale ) values ( ?, ?, ?, ?, ?, ?, ?, ?, ? ) at org.jamwiki.db.WikiPreparedStatement.executeUpdate(WikiPreparedStatement.java:119) at org.jamwiki.db.AnsiQueryHandler.insertWikiUser(AnsiQueryHandler.java:784) at org.jamwiki.db.AnsiDataHandler.addWikiUser(AnsiDataHandler.java:181) at org.jamwiki.db.AnsiDataHandler.writeWikiUser(AnsiDataHandler.java:1405) at org.jamwiki.db.WikiDatabase.setupAdminUser(WikiDatabase.java:212) at org.jamwiki.db.WikiDatabase.setup(WikiDatabase.java:184) at org.jamwiki.db.AnsiDataHandler.setup(AnsiDataHandler.java:1052) at org.jamwiki.WikiBase.reset(WikiBase.java:201) at org.jamwiki.servlets.SetupServlet.initialize(SetupServlet.java:136) at org.jamwiki.servlets.SetupServlet.handleJAMWikiRequest(SetupServlet.java:71) at org.jamwiki.servlets.JAMWikiServlet.handleRequestInternal(JAMWikiServlet.java:74) at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153) at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48) at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:858) at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:792) at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:476) at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:441) at javax.servlet.http.HttpServlet.service(HttpServlet.java:710) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:265) at org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:107) at org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:72) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275) at org.jamwiki.authentication.JAMWikiExceptionMessageFilter.doFilter(JAMWikiExceptionMessageFilter.java:70) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275) at org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:166) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275) at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125) at org.jamwiki.authentication.JAMWikiAnonymousProcessingFilter.doFilter(JAMWikiAnonymousProcessingFilter.java:62) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275) at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275) at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275) at org.acegisecurity.ui.logout.LogoutFilter.doFilter(LogoutFilter.java:110) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275) at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275) at org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:149) at org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:98) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at org.jamwiki.servlets.JAMWikiFilter.doFilter(JAMWikiFilter.java:58) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685) at java.lang.Thread.run(Thread.java:613) Caused by: org.postgresql.util.PSQLException: ERROR: value too long for type character varying(15) at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:1548) at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1316) at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:191) at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:452) at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:351) at org.postgresql.jdbc2.AbstractJdbc2Statement.executeUpdate(AbstractJdbc2Statement.java:305) at org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:102) at org.jamwiki.db.WikiPreparedStatement.executeUpdate(WikiPreparedStatement.java:111) ... 58 more 2008-01-11 16:39:15,783 INFO: org.jamwiki.servlets.JAMWikiServlet - Loaded page /jamwiki-0.6.2/en/Special:Setup (0.456 s.) 2008-01-11 16:39:15,783 INFO: org.jamwiki.servlets.JAMWikiServlet - Loaded page /jamwiki-0.6.2/en/Special:Setup (0.456 s.)--huntc 10-Jan-2008 21:26 PST
/WEB-INF/classes/sql.ansi.properties file and change lines 149 and 150 so that the jam_wiki_user table is created with create_ip_address and last_login_ip_address fields that have field type VARCHAR(100) does that solve the problem? If so I'd be interested to know what eventually gets inserted into those fields... -- Ryan 10-Jan-2008 21:42 PST
Since version 0.6.2 I cannot register a new user. Anoymous users have no access permission for the page special:account. The view role is set for anonymous users. I'm using version 0.6.2 of jamwiki with an SQL 2000 database and Tomcat 5.5.25 --Angel 10-Jan-2008 02:20 PST
Cleared the chache en restarted Tomcat but didn't fix the problem. Anonymous users can't see anything. They seem to have no access to any of the special pages. I didn't made any changes on the xml you mentioned. Even if an set all the roles for anonymous users the can't access anything. This leaves us with a problem with the database. How should the database-structure look like? And which entries in which table, if any, should the be for anonymous users. --Angel 11-Jan-2008 02:52 PST
select * from jam_role_map; select * from jam_role; select * from jam_group; select * from jam_wiki_user where wiki_user_id = 1;
Ryan, thanks for your reply, my output before changing anything is found here. I have looked at the topic you mentioned and altered jam_group as suggested. It works fine now. Do I need to make more changes?
It probably went wrong when I updated to version 0.6.0 since I did that manually. Thanks for the help --Angel 14-Jan-2008 02:21 PST
Moved from the Feedback page
Hi, I'm an administrator of a german wiki. We started just a few weeks ago. If I use german characters like ö, ü or ä in the headings. But in the auto-generated table of contents, the characters are shown as html code (& auml;). It seems like the parser ignores the html. how can i change that? thank you for an answer!
Moved from the Feedback page
We are planing to use the wiki as a dashboard for some data which is spread across the enterprise. And we can achive this through Javascript which talks to all of our servers and show the data by talking to them and show in wiki pages. By which i can make my wiki installation dynamic. Could you please help me why the below "hello world" javascript code is no working in my wiki, we set the property in admin to allow javascript to yes.
<SCRIPT LANGUAGE="JavaScript">
alert('Hello World');
</SCRIPT>
--Durga 15-Jan-2008 08:29 PST
<script>
alert('Hello World');
</script>
I've tried to update from 0.5.4 to 0.6.2 and think I have followed the update steps (backup mysql and jamwiki-0.5.4-installation, unpacked 0.6.2 and copied jamwiki.properties and logging.properties from the old to the new installation). After being asked for the admin-account and password, I'm getting following output
Added jam_group table Added jam_role table Unable to complete upgrade to new JAMWiki version.: Failure while executing CREATE TABLE jam_role_map ( role_name VARCHAR(30) NOT NULL, wiki_user_id INTEGER, group_id INTEGER, CONSTRAINT jam_u_rmap UNIQUE (role_name, wiki_user_id, group_id), CONSTRAINT jam_f_rmap_role FOREIGN KEY (role_name) REFERENCES jam_role(role_name), CONSTRAINT jam_f_rmap_wuser FOREIGN KEY (wiki_user_id) REFERENCES jam_wiki_user(wiki_user_id), CONSTRAINT jam_f_rmap_group FOREIGN KEY (group_id) REFERENCES jam_group(group_id) ) Updated stylesheet for virtual wiki en
This happened on our production system (I was able to get 0.5.4 running again) as well as on our test system.Tom 02-Jan-2008 05:21 PST
java.lang.Exception: Failure while executing CREATE TABLE jam_role_map ( role_name VARCHAR(30) NOT NULL, wiki_user_id INTEGER, group_id INTEGER, CONSTRAINT jam_u_rmap UNIQUE (role_name, wiki_user_id, group_id), CONSTRAINT jam_f_rmap_role FOREIGN KEY (role_name) REFERENCES jam_role(role_name), CONSTRAINT jam_f_rmap_wuser FOREIGN KEY (wiki_user_id) REFERENCES jam_wiki_user(wiki_user_id), CONSTRAINT jam_f_rmap_group FOREIGN KEY (group_id) REFERENCES jam_group(group_id) ) at org.jamwiki.db.DatabaseConnection.executeUpdate(DatabaseConnection.java:210) at org.jamwiki.db.DatabaseUpgrades.upgrade060(DatabaseUpgrades.java:187) at org.jamwiki.servlets.UpgradeServlet.upgrade(UpgradeServlet.java:123) at org.jamwiki.servlets.UpgradeServlet.handleJAMWikiRequest(UpgradeServlet.java:65) at org.jamwiki.servlets.JAMWikiServlet.handleRequestInternal(JAMWikiServlet.java:74) at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153) at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48) at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:858) at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:792) at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:476) at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:441) ... Caused by: java.sql.SQLException: Can't create table '.\jamwikidb\jam_role_map.frm' (errno: 150) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:946) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2870) at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1573) at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1665) at com.mysql.jdbc.Connection.execSQL(Connection.java:3170) at com.mysql.jdbc.Statement.executeUpdate(Statement.java:1316) at com.mysql.jdbc.Statement.executeUpdate(Statement.java:1235) at org.apache.commons.dbcp.DelegatingStatement.executeUpdate(DelegatingStatement.java:228) at org.jamwiki.db.DatabaseConnection.executeUpdate(DatabaseConnection.java:202) ... 62 more
When I execute this statement from the "mysql" command prompt (logged in as root):
CREATE TABLE jam_role_map (
role_name VARCHAR(30) NOT NULL,
wiki_user_id INTEGER,
group_id INTEGER,
CONSTRAINT jam_u_rmap UNIQUE
(role_name, wiki_user_id, group_id),
CONSTRAINT jam_f_rmap_role FOREIGN KEY
(role_name) REFERENCES jam_role(role_name),
CONSTRAINT jam_f_rmap_wuser FOREIGN KEY
(wiki_user_id) REFERENCES jam_wiki_user(wiki_user_id),
CONSTRAINT jam_f_rmap_group FOREIGN KEY
(group_id) REFERENCES jam_group(group_id)
);
I'm getting following error:
ERROR 1005 (HY000): Can't create table '.\jamwikidb\jam_role_map.frm' (errno: 150)
CREATE TABLE jam_role_map (
role_name VARCHAR(30) NOT NULL, INDEX jam_i_rmap_rname (role_name),
wiki_user_id INTEGER, INDEX jam_i_rmap_wuser (wiki_user_id),
group_id INTEGER, INDEX jam_i_rmap_gid (group_id),
CONSTRAINT jam_u_rmap UNIQUE (role_name, wiki_user_id, group_id),
CONSTRAINT jam_f_rmap_role FOREIGN KEY (role_name) REFERENCES jam_role(role_name),
CONSTRAINT jam_f_rmap_wuser FOREIGN KEY (wiki_user_id) REFERENCES jam_wiki_user(wiki_user_id),
CONSTRAINT jam_f_rmap_group FOREIGN KEY (group_id) REFERENCES jam_group(group_id)
)
If you put a double // before the virtualwikiname, such as /wiki//en/blah, WikiUtil.retrieveDirectoriesFromURI gets stuck in an infinite loop and will cause an OutOfMemoryException. This can be fixed by making the following change in WikiUtil.retrieveDirectoriesFromURI:
if (slashIndex == -1) {
to
if (slashIndex == -1 || slashIndex == 0) {
and the following change in WikiUtil.getVirtualWikiFromURI
if (slashIndex == -1) {
to
if (slashIndex == -1 || slashIndex == 0) {
Thanks for the great wiki software!
Hi,
New Year Greeting to you. I have upgraded the JAMWiki version from 0.6.0 to 0.6.3, I didn't face any issues in it. The problem I am facing is in the contributions link. The contributions of the username in the following format 'firstname_lastname' is not getting displayed. Can you please look into this issue and resolve at the earliest? Contributions for other usernames without '_' is getting displayed properly. Thank you very much. --yesesnono 02-Feb-2008 04:55 PST
I've updated the Building from Source page and fixed a typo ("maven" instead of "mvn") that may have caused problems. As to the 0.6.3 source zip, the project layout is being changed in the 0.6.4 development cycle, so while 0.6.3 had three Maven projects, 0.6.4 will probably have four - sorry for the confusion!
I've also rebuilt a version of 0.6.3 that should fix the contributor problem:
Hopefully this works for you - the ONLY change is the fix for the contributions page, so aside from that change this version should behave exactly like vanilla 0.6.3, although I didn't do any testing other than to build it and make sure the contributor page worked. Also, in case anyone else is watching this bug report, 0.6.3.1 is NOT an official release. Please do not link to it from Freshmeat or anywhere else. Sorry for the bug, and thanks for being patient while a fix was put together. -- Ryan 06-Feb-2008 20:59 PST
--yesesnono 07-Feb-2008 01:13 PST
Most database fields need checks for max-lengths to prevent database overflow errors. For example, the jam_topic_version edit_comment field has a maximum length of 200 characters. -- Ryan 10-Feb-2008 21:02 PST
JAMWiki appears to have problems parsing Wiki syntax of anything inside a <noinclude> tag. You cannot use template transclusions inside of <noinclude> tags; if you try, it will simply leave {{MyTemplate}} as unparsed text. It's almost as if it's treating <noinclude> the same way it treats <nowiki> tags.
I have also previously reported, in my request for an "All Templates" page, that links to Categories placed inside of <noinclude> tags don't get picked up like they're supposed to.
There were three separate issues:
I'll copy the new code to jamwiki.org by the end of the weekend so the fixes can be verified against the test templates, although I have already tested using the same templates on my local machine. Thanks again for the help in debugging. -- Ryan 16-Feb-2008 11:45 PST
The <br> (invalid XHTML) tag breaks page layout badly with JAMWiki 0.6.4 beta1. -- Ryan 26-Feb-2008 08:20 PST
I suddenly noticed that in the recent changes page(also in History page), the months are displayed in some other language and not in english. How can I change back it to english? I also checked in the JAMWiki site. Here also it is displaying in a different language. what is the problem? please look into it.Thank you in advance.I already posted this in FAQ as I didn't get reply there posting it here. --yesesnono 14-Mar-2008 23:12 PDT
While we click the contributions link of an author, the contributions are listed. Then there is a link called Special appears in that page itself. When that link is clicked the following error is seen in the page.
Error A system error has occurred. The error message is: An unknown system error has occurred. The error message is: java.lang.Exception: Failure while executing BEGIN DECLARE @COUNT int DECLARE @TOP int DECLARE @OFFSET int DECLARE @LIMIT int DECLARE @WIKI_NAME varchar(100) DECLARE @WIKI_USER varchar(100) DECLARE @SQL varchar(900) SET @WIKI_NAME = ? SET @WIKI_USER = ? SET @LIMIT = ? SET @OFFSET = ? SET @TOP = @LIMIT SET @COUNT = (select count(*) from jam_topic, jam_virtual_wiki, jam_topic_version, jam_wiki_user where jam_virtual_wiki.virtual_wiki_id = jam_topic.virtual_wiki_id and jam_wiki_user.wiki_user_id = jam_topic_version.wiki_user_id and jam_topic.topic_id = jam_topic_version.topic_id and jam_virtual_wiki.virtual_wiki_name = @WIKI_NAME and jam_wiki_user.login = @WIKI_USER and (jam_topic.delete_date is null or jam_topic_version.edit_type = 5)) IF (@OFFSET > @COUNT) SET @OFFSET = @COUNT IF (@COUNT < @OFFSET + @LIMIT) SET @TOP = @COUNT - @OFFSET SET @SQL = 'select * from ( '+ 'select top '+CONVERT(VARCHAR, @TOP)+' * from ( '+ 'select top '+CONVERT(VARCHAR, @OFFSET + @LIMIT) +' '+ 'jam_topic_version.topic_version_id, jam_topic_version.topic_id, '+ 'jam_topic_version.previous_topic_version_id, jam_topic.topic_name, '+ 'jam_topic_version.edit_date, jam_topic_version.edit_comment, '+ 'jam_topic_version.wiki_user_id, jam_topic_version.edit_type, '+ 'jam_wiki_user.login as display_name, jam_topic.virtual_wiki_id, '+ 'jam_virtual_wiki.virtual_wiki_name '+ 'from jam_topic, jam_virtual_wiki, jam_topic_version, jam_wiki_user '+ 'where jam_virtual_wiki.virtual_wiki_id = jam_topic.virtual_wiki_id '+ 'and jam_wiki_user.wiki_user_id = jam_topic_version.wiki_user_id '+ 'and jam_topic.topic_id = jam_topic_version.topic_id '+ 'and jam_virtual_wiki.virtual_wiki_name = '''+@WIKI_NAME+''' '+ 'and jam_wiki_user.login = '''+@WIKI_USER+''' '+ 'and (jam_topic.delete_date is null or jam_topic_version.edit_type = 5) '+ 'order by edit_date desc '+ ') a '+ 'order by edit_date '+ ') b '+ 'order by edit_date desc 'EXEC(@SQL) END.
--yesesnono 14-Mar-2008 00:25 PDT
When attempting to use the Manage tab to delete a test page I received the following error:
Manage ReSTricted A system error has occurred. The error message is: org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: 35 in the jsp file: /WEB-INF/jsp/admin-manage.jsp Generated servlet error: ServletUtil.PARAMETER_TOPIC cannot be resolved An error occurred at line: 58 in the jsp file: /WEB-INF/jsp/admin-manage.jsp Generated servlet error: ServletUtil.PARAMETER_TOPIC cannot be resolved An error occurred at line: 80 in the jsp file: /WEB-INF/jsp/admin-manage.jsp Generated servlet error: ServletUtil.PARAMETER_TOPIC cannot be resolved
It looks like there should be a static field named PARAMETER_TOPIC in the ServletUtil class. As a temporary fix I modified the admin-manage.jsp page hardcoding the field name to "topic" in all three instances. Here is an example of the change:
<%-- <input type="hidden" name="<%= ServletUtil.PARAMETER_TOPIC %>" value="<c:out value="${pageInfo.topicName}" />" />
--%>
<input type="hidden" name="topic" value="<c:out value="${pageInfo.topicName}" />" />
With the hardcoded field name the delete function worked correctly. --Tom 12-Mar-2008 15:53 PDT
Apologies if this is a non-bug and I am just misinterpreting the code, but in AnsiDataHandler.java, function lookupTopic(String, String, boolean, Object), it seems that the test to see if the object is cached: (transactionObject != null) is the wrong way round and should be (transactionObject == null)? In addition, conn = WikiDatabase.getConnection(transactionObject); should not take place until after the cache check as if the object exists in cache then it will needlessly allocate a DB connection.
Thanks again for the great wiki software!
if (transactionObject != null) {
// do not use cache if part of a transaction
Element cacheElement = WikiCache.retrieveFromCache(CACHE_TOPICS, key);
if (cacheElement != null) {
Topic cacheTopic = (Topic)cacheElement.getObjectValue();
return (cacheTopic == null || (!deleteOK && cacheTopic.getDeleteDate() != null)) ? null : new Topic(cacheTopic);
}
}
I've tried to do the install on MSSQL Server 2000 twice, on two separate machines and the install script hangs on both. The end of the jamwiki.log.0 file looks like so:
2007-10-30 10:43:42,871 INFO: org.jamwiki.utils.Utilities - File pages\en_US\StartingPoints.txt does not exist
2007-10-30 10:43:42,871 INFO: org.jamwiki.utils.Utilities - File pages\en\StartingPoints.txt does not exist
2007-10-30 10:43:43,044 CONFIG: org.jamwiki.Environment - Loading properties from C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\jamwiki-0.6.1\WEB-INF\classes\interwiki.properties
Any idea why this would hang? I've successfully installed 0.6.1 at least 3 times using the internal database. Let me knwow if there is any other data that would be relevant to troubleshooting. --Bulldog 30-Oct-2007 08:01 PST
I'm having the same issue with JAMWiki 0.6.2, MSSQL 2005 and JBoss 4.2 using the Opta database driver, has anyone gotten JAMWiki 0.6.2 or greater to install with MSSQL 2000 or 2005? -- Kevin
During Setup, MSSQL 2000/2005 runs in a deadlock situation. I am not quite shure about why, but I could debug out where the deadlock occures: In WikiDatabase.setupSpecialPages() the first one works (SPECIAL_PAGE_STARTING_POINTS), but the second one (SPECIAL_PAGE_LEFT_MENU) is waiting for the first one to be committed. WikiDatabase.setupSpecialPage() should do an conn.commit() finally, I quess. Maybe (for MSSQL) autocommit could be set true. -- peter 13-Mar-2008 09:04
This is error information:
产生了一个系统错误,错误消息是: javax.servlet.jsp.JspException: The database is already in use by another process: org.hsqldb.persist.NIOLockFile@d2aafeb9[file =E:\jamwiki\database\jamwiki.lck, exists=true, locked=false, valid=false, fl =null]: java.lang.Exception: java.io.IOException: 另一个程序已锁 定文件的一部分,进程无法访问。 : E:\jamwiki\database\jamwiki.lck
i use jamwiki's default config. database is hsqldb.
Hi, I'm a new user of JAMWiki and I also encountered this error using an out-of-the-box install of 0.6.4 to Apache Tomcat 5.5.16 using the hsqldb in-process internal database. The error would occur whenever I edited the wiki configuration (including the initial configuration changes) and could only be cleared by shutdown/restart of Tomcat and deleting the hsqldb lock file.
I have diagnosed the problem as follows: -
In order to fix the problem, I did the following: -
-- Dallas 12-Mar-2008 10:43 PDT
Environment: Jamwiki 0.6.6, Database - hsql, Application Server - Apache Tomcat 5.5.26
Description: When create a page:
java.lang.IllegalStateException: popTag called on an empty tag stack or on the root stack element.
Thanks a lot!! Page name ‘链接’in Chinese,just this page. PS. Could you please tell me how to delete a Category exited? Thanks again. DS 26-May
Copied from the Feedback page:
Hi Ryan, I started editing my private Wiki-page. While I was entering some webtest-documentation I hit the preview-button on the bottom (please try to edit my Notes and press the preview-button). The whole page looked funny;-) I found the reason: the ":" in front of the last line. OK the content of the line is quite unusual, I agree.
für diese Problem stellt der storeReqEx-Task von Webtest dar. Hiermit lassen sich auch IDs aus der Antwortseite bestimmen und für die weitere Arbeit verwenden (mittels #{visibleTaskID}):
Copied from the Feedback page:
Definition lists do render different depending on whether the colon is on the same line or not:
For Definition 1 only
Did you get the solution, i have the same problem
I created a template that had spaces in its name. If i add the template it is not displaying in the page. --yesesnono 14-Mar-2008 00:25 PDT
In the history of a page when we select the check boxes to view the differences. If we select the last checkbox first all the previous checkboxes get disabled giving no option to select another checkbox. --yesesnono 14-Mar-2008 00:25 PDT
In ImageUtil.java, the function BufferedImage loadImage(File file), what is the purpose of caching the images? The operating system should handle file/disk caching with any excess memory it has available and I have found that allowing the image caching in jamwiki really eats up available memory in the JVM and could theoretically lead to JVM memory overflow issues in larger wikis with many multiple MB pictures. I have changed loadImage to contain one line:
return ImageIO.read(file);
And have noticed a significant improvement in memory performance, and have much more cache space available for caching actual articles. - Jim
To render the plural 's' inside the resulting HTML link, in the following wiki text:
Dolphins are [[aquatic mammal]]s that are closely related to [[whale]]s and [[porpoise]]s.
which code must be changed in JAMWiki?
Is it the LinkUtil#parseWikiLink(String raw) which has to be refactored to a LinkUtil#parseWikiLink(String raw, String pluralSuffix). If pluralSuffix!=null when append the given suffix to the WikiLinks text? -- Axel Kramer 30-Apr-2008 10:07 PDT
Character#isLowerCase() method. -- Axel Kramer 30-Apr-2008 13:56 PDT
I suspect that this may be an Acegi problem but haven't yet been able to figure it out. Steps to reproduce:
Having investigated, the Acegi Authentication object is missing the username field, but the JAMWikiDaoImpl method is never called so apparently Acegi thinks the user is correctly logged in. I was hoping to fix this issue for 0.6.6, but having spent several hours investigating I think this may have to wait until the next release, which has an Acegi upgrade planned. -- Ryan 11-May-2008 13:50 PDT
I found a bug in the 0.6.6 beta 1. Deploy jamwiki on a tomcat 5.5.x, use the internal Database, login as admin, open tomcat manager in a new tab, restart jamwiki context, witch to jamwiki again, refresh starting points and you see that the user name on the top row changes to null --Michael-O 17-May-2008 11:56 PDT
Somewhere during the 0.6.6 development cycle it looks like it has become possible to save a topic version with no changes. That needs to be fixed. -- Ryan 29-May-2008 21:49 PDT
The issue only occurs in IE7. The same pages display fine in firefox.
I did have some luck editing the stylesheet, but nothing that looked good in both ie and firefox.
If any comments/suggestions please leave a subheader in under this heading, thank you and my apologizes if this issue was already solved.
-wbryan, 2008-04-02
I've tried the following code in my page to set the position of the TOC (just like in MediaWiki):
{| align="right"
|__TOC__
|}
Unfortunately this seems not to be working, there just appears "__TOC__" on the right (no ToC as such as all).--Sil86 01-Apr-2008 23:54 PDT
Some minor glitch:
{| class="wikitable" align="right"
|-
|__TOC__
|-
|}
== Heading #1 ==
Paragraph #1
== Heading #2 ==
Paragraph #2
== Heading #3 ==
Paragraph #3
== Heading #4 ==
Paragraph #4
== Heading #5 ==
Paragraph #5
and the resulting page looks like
+---------------+
Heading #1 [Edit] | 1. Heading #1 |
------------------------------------------------
Paragraph #1 | 2. Heading #2 ]
| 3. Heading #3 ]
Heading #2 [Edit] | 4. Heading #4 |
------------------------------------------------
Paragraph #2 | 5. Heading #5 ]
+--------------+
Heading #3 [Edit]
------------------------------------------------
Paragraph #3
Heading #4 [Edit]
------------------------------------------------
Paragraph #4
Heading #5 [Edit]
------------------------------------------------
Paragraph #5
--Sil68 05-Apr-2008 05:27 PDT
I've tried the following code in my page to add a table caption to a table (just like in MediaWiki):
{| class="wikitable" style="text-align:left"
|+align="bottom"|My special table caption for {{{TopicName|<Name of Topic>}}}
|-
|'''Start'''
| colspan="3" | {{{Period|<From Date - To Date>}}}
|-
|}
The generated output was
align="bottom"|My special table caption for {{{TopicName|<Name of Topic>}}}
Start {{{Period|<From Date - To Date>}}}
--Sil68 02-Apr-2008 02:03 PDT
| Start | {{{Period|<From Date - To Date>}}} | ||
When using something like
== Chapter #1 == == Chapter #2 == === Chapter #2.1 === === Chapter #2.2 === == Chapter #3 ==
I'd expected the created TOC looking like
1. Chapter #1
2. Chapter #2
2.1. Chapter #2.1
2.2. Chapter #2.2
3. Chapter #3
Instead it is appearing as
1. Chapter #1
2. Chapter #2
1. Chapter #2.1
2. Chapter #2.2
3. Chapter #3
Which of those is the intended way?--Sil68 04-Apr-2008 05:46 PDT
Hi everybody, I would like to ask, if there is any possibility to let the numbered list start at a given number e.g. 4 instead of 1. In mediawiki, this can be achieved using html tag <ol start:4>. But Jamwiki does not support html list tags. Or how to make the numbered list continue from where the previous one ended, because for example if aI want the list item to contain some code element, the list number counter would reset and start at 1 again. example :
<Connector port="8443" address="${jboss.bind.address}"
maxThreads="100" strategy="ms" maxHttpHeaderSize="8192"
emptySessionPath="true"
scheme="https" secure="true" clientAuth="false"
keystoreFile="${jboss.server.home.dir}/conf/server.keystore"
keystorePass="****" sslProtocol = "TLS" />
Thanks a lot. Greetings Matus Majchrak
Links within a page of the form [[#My Page Section]] do not work and result in links that produce an error page. Clearly the developer of this functionality has no business writing code and should be summarily flogged. -- Ryan 11-Aug-2008 09:16 PDT
Apparently 0.6.6 broke the ability to save a topic with no content, which is useful with categories. -- Ryan 12-Aug-2008 11:53 PDT
On a brand new install (Tomcat 6, JDK 1.6, MySQL), I got this error:
java.lang.Exception: Failure while executing
select jam_topic_version.topic_version_id,
jam_topic_version.topic_id,
jam_topic_version.previous_topic_version_id,
jam_topic.topic_name,
jam_topic_version.edit_date,
jam_topic_version.edit_comment,
jam_topic_version.wiki_user_id,
jam_topic_version.edit_type,
jam_wiki_user.login as display_name,
jam_topic.virtual_wiki_id,
jam_virtual_wiki.virtual_wiki_name
from jam_topic,
jam_virtual_wiki,
jam_topic_version,
jam_wiki_user,
jam_watchlist
where jam_virtual_wiki.virtual_wiki_id = jam_topic.virtual_wiki_id
and jam_wiki_user.wiki_user_id = jam_topic_version.wiki_user_id
and jam_topic.current_version_id = jam_topic_version.topic_version_id
and jam_topic.topic_name = jam_watchlist.topic_name
and jam_virtual_wiki.virtual_wiki_id = ?
and jam_watchlist.wiki_user_id = ?
and (jam_topic.delete_date is null
or jam_topic_version.edit_type = 5)
order by edit_date desc limit ? offset ?
.....
Caused by: java.sql.SQLException: Column 'login' not found.
Upon returning to the 'StartingPoints' page, the 'watch' tab is now 'unwatch', so I guess the watch was successful.
This happened while logged in as the admin user.
-Doug Donohoe
I don't use a leading space too often to preserve original formatting so I'm not sure if this is new in 0.6.6. Using the <pre> tag here is an example of my expected results:
wiki text line one
pre line one
wiki text line two
pre line two pre line three
wiki text line three
pre line four pre line five pre line six
The same text displayed using leading spaces for the lines that had been enclosed in the pre tags:
wiki text line one
pre line one
wiki text line two
pre line two pre line three
wiki text line three
pre line four pre line five pre line six
It appears that the first line is always skipped but I noticed that if the leading space is used on a single line just after a section it appears to work. For example:
preserved formatting here
--Tom 14-Jun-2008 20:05 PDT
Hi,
I was trying to create pages which contain the '+' sign, and I noticed that this character is usually substituted with a '_'. I guess it happens because URL's use the + as a blank, so jamwiki changes it also to blank (which is represented by _). However, there are some strange behaviours. Below is a table with some tests. My jamwiki version is 0.7.0.
| Markup | Output |
|---|---|
| [[+]] | + |
| [[+ start]] | + start |
| [[end +]] | end + |
| [[at the + middle]] | at the + middle |
It should be noted that all this examples work in mediawiki. That means, the '+' symbol appears there, both in the url link and in the name.
Mario 03-Jul-2008 10:57 PDT
Using IE version 6.
Moved from the Feedback page:
I did my best to research this, but I don't seem to be making any progress. For some reason my images are not showing up in IE6 when I use the "frame" option for example (You should see 2 images):
I'm sure you've answered this question many times so forgive me for my ignorance. Just as a FYI, I also have the latest stylesheet
Throws a Error: A system error has occurred. The error message is: An unknown system error has occurred. The error message is: java.lang.NullPointerException.
We are using jamwiki version 0.6.6 on oracle 11 database with tomcat 6.0.16 on solaris. But this behaviour already existed in jamwiki 0.6.2. We have a problem with linking to header anchors when german umlauts like äöüÜÖÄ are used. It seems different encodings are used for toc/header anchor encoding and anchor encoding in links. Example:
We wonder if this is a jamwiki problem or are we missing something? --HB 15-Sep-2008 04:31 PDT
WikiHeadingTag.parse, and it looks like it's been there for a while. What's happening is that the heading text is HTML escaped and then URL escaped, but links are only URL escaped. I'm not 100% sure what the best way to fix this issue will be, but it's definitely fixable. -- Ryan 15-Sep-2008 22:53 PDT
We are using jamwiki version 0.6.6 on oracle 11 database with tomcat 6.0.16 on solaris. Probably connected to the previous bug report (problem with umlauts in anchors) is the behaviour of JAMWiki when trying to upload files with german umlaut characters in the name. I just loaded a file with name 'Umlaute äöü.txt' into this wiki. On the upload page I see this file name:
But the link construction Image:Umlaute %C3%A4%C3%B6%C3%BC.txt is not existing for JAMWiki. The link construction Image:Umlaute äöü.txt is existing for JAMWiki but not working. I seems impossible to reach the file after you leave the page (even the link on Special:RecentChanges is not working) --HB 16-Sep-2008 07:06 PDT
We are using jamwiki version 0.6.6 on oracle 11 database with tomcat 6.0.16 on solaris. I will use the file I uploaded for demonstration of the previous bug report Problem with german 'umlaut' in file names: If I want to add an alternate text to a file with umlauts it seems to do double quoted:
The now running 0.7.0 installation on JAMWiki.org seems to behave in the same way --HB 19-Sep-2008 06:55 PDT