This page is an archive of Bug Reports resolved prior to JAMWiki 0.6.0. See Bug Reports/Resolved for an index of all resolved bug reports. This archive is kept for reference only; please do not make further updates to this page.
Copied from the Feedback page:
Hi Ryan, I got the following in the logs when setting up JamWiki 0.5.0. I have checked the database and can see data populated. Hope you can shed some light on how to solve the following.
The following is my setup:
2007-01-18 09:42:25,812 INFO: org.jamwiki.db.WikiDatabase - Setting
up special page en / StartingPoints
2007-01-18 09:42:25,812 INFO: org.jamwiki.utils.Utilities - File
pages\en_US\StartingPoints.txt does not exist
2007-01-18 09:42:25,812 INFO: org.jamwiki.utils.Utilities - File
pages\en\StartingPoints.txt does not exist
2007-01-18 09:42:26,390 INFO: org.jamwiki.db.WikiDatabase - Setting
up special page en / LeftMenu
2007-01-18 09:42:26,390 INFO: org.jamwiki.utils.Utilities - File
pages\en_US\LeftMenu.txt does not exist
2007-01-18 09:42:26,390 INFO: org.jamwiki.utils.Utilities - File
pages\en\LeftMenu.txt does not exist
2007-01-18 09:42:26,640 INFO: org.jamwiki.db.WikiDatabase - Setting
up special page en / BottomArea
2007-01-18 09:42:26,640 INFO: org.jamwiki.utils.Utilities - File
pages\en_US\BottomArea.txt does not exist
2007-01-18 09:42:26,640 INFO: org.jamwiki.utils.Utilities - File
pages\en\BottomArea.txt does not exist
2007-01-18 09:42:26,875 INFO: org.jamwiki.db.WikiDatabase - Setting
up special page en / StyleSheet
2007-01-18 09:42:26,875 INFO: org.jamwiki.utils.Utilities - File
pages\en_US\StyleSheet.txt does not exist
2007-01-18 09:42:26,890 INFO: org.jamwiki.utils.Utilities - File
pages\en\StyleSheet.txt does not exist
-- Kwee Tin
Hi Ryan, I am currently using ojdbc14.jar to connect to Oracle. When I access Starting Points, the css, left menu, and bottom area did not load. I got warning in ServletUtil which says "error getting cached page en / BottomArea java.lang.NullPointerException at org.jamwiki.servlets.ServletUtil.cachedContent (ServletUtil.java:140). I am unable to edit pages as well. Is this due to the oracle version? Thanks. -- Kwee Tin
Hi Ryan, I have sent you the log file in your email. And yes, I am using JamWiki 0.5.0. Thanks. -- Kwee Tin
2007-01-18 13:52:30,812 WARNING: org.jamwiki.utils.Utilities - No virtual wiki found in URL: /jamwiki/
Sure. Thanks for your help. -- Kwee Tin
I couldn't find a free download of Oracle 9 so I won't be able to reproduce this problem. Can you do me a favor and provide the results of the following queries against your database?
select count(*) from jam_topic; select * from jam_topic where topic_name = 'LeftMenu'; select count(*) from jam_topic_version; select * from jam_virtual_wiki;
I'd just like to make absolutely sure that data was properly populated during setup. Thanks! -- Ryan 20-Jan-2007 11:35 PST
SQL> select count(*) from jam_topic;
COUNT(*)
----------
4
SQL> select * from jam_topic where topic_name='LeftMenu';
TOPIC_ID VIRTUAL_WIKI_ID
---------- ---------------
TOPIC_NAME
--------------------------------------------------------------------------------
DELETE_DATE
---------------------------------------------------------------------------
TOPIC_READ_ONLY TOPIC_ADMIN_ONLY CURRENT_VERSION_ID TOPIC_TYPE
--------------- ---------------- ------------------ ----------
REDIRECT_TO
--------------------------------------------------------------------------------
2 1
LeftMenu
TOPIC_ID VIRTUAL_WIKI_ID
---------- ---------------
TOPIC_NAME
--------------------------------------------------------------------------------
DELETE_DATE
---------------------------------------------------------------------------
TOPIC_READ_ONLY TOPIC_ADMIN_ONLY CURRENT_VERSION_ID TOPIC_TYPE
--------------- ---------------- ------------------ ----------
REDIRECT_TO
--------------------------------------------------------------------------------
0 1 2 1
SQL> select count(*) from jam_topic_version;
COUNT(*)
----------
4
SQL> select * from jam_virtual_wiki;
VIRTUAL_WIKI_ID
---------------
VIRTUAL_WIKI_NAME
--------------------------------------------------------------------------------
DEFAULT_TOPIC_NAME
--------------------------------------------------------------------------------
CREATE_DATE
---------------------------------------------------------------------------
1
en
StartingPoints
18-JAN-07 09.38.04.843000 AM
Thanks! -- Kwee Tin 21-Jan-2007 19:20 PST
Hi Ryan, think you can download oracle 9i from http://www.oracle.com/technology/software/products/oracle9i/index.html -- Kwee Tin 21-Jan-2007 21:48 PST
Hi Ryan, I tried removing jamwiki and reinstall it, this time using the thin driver, however when it comes to inserting into jam_topic_version, I got an exception. When using the OCI driver, I will not get this error. I will send you my log file through email. Thanks. -- Kwee Tin 25-Jan-2007 18:27 PST
Caused by: java.sql.SQLException: Data size bigger than max size for this type: 7409
Hi Ryan, I try to deploy JamWiki 0.5.1 in BEA Weblogic, and Oracle 9i and it works! I guess I will be using this configuration instead of Tomcat. Thanks for your help in this puzzling exception. :D -- Kwee Tin 25-Jan-2007 21:23 PST
Hi Ryan, I just downloaded the latest version of ojdbc14.jar for oracle9i and replaced my previous copy. Now I am able to get JamWiki running on Tomcat and Oracle9i. Thanks for all your help! -- Kwee Tin 25-Jan-2007 22:12 PST
Copied from the Feedback page:
Hi Ryan,
i've just set up jamwiki and it is working fine despite of the fact that it loses the complete configuration after i restart the server (JBoss 4). So everytime after a restart it comes up with the installation-screen.
The problem seems to be that the jamwiki.properties file is written in the WEB-INF directory in the tmp folder of the server. So every restart or redeploy deletes this file. Is there a possibility to keep it somewhere else, eg. in the data-directory? I wonder if this occurs only with JBoss...
Regards, Dave
As i figured out meanwhile the solution might be "Exploded Deployment" http://wiki.jboss.org/wiki/Wiki.jsp?page=ExplodedDeployment. Perhaps this helps somebody.
I set up JamWiki on a WebLogic server. When I try to acces the JamWiki for the first time i get a redirection error (I'm using port 7201). Why ?
Hi Ryan, I got the following in the log file when trying to install JamWiki in Weblogic 8.1 SP5. It goes into an endless loop of loading the Special:Setup page. Any idea on how to resolve this?
2007-01-09 12:04:49,968 CONFIG: org.jamwiki.utils.WikiLogger - JAMWiki log initialized from E:\work\Wiki\WEB-INF\classes\logging.properties with pattern E:/work/Wiki/logs/jamwiki.log.%g 2007-01-09 12:05:08,093 WARNING: org.jamwiki.Environment - Property file E:\work\Wiki\WEB-INF\classes\jamwiki.properties does not exist 2007-01-09 12:05:08,203 CONFIG: org.jamwiki.WikiConfiguration - Configuration values loaded from E:\work\Wiki\WEB-INF\classes\jamwiki-configuration.xml 2007-01-09 12:05:08,203 INFO: org.jamwiki.servlets.JAMWikiServlet - Loaded page /Wiki/en/Special:Setup (0.016 s.) 2007-01-09 12:05:08,203 INFO: org.jamwiki.servlets.JAMWikiServlet - Loaded page /Wiki/en/Special:Setup (0.016 s.) 2007-01-09 12:05:08,234 INFO: org.jamwiki.servlets.JAMWikiServlet - Loaded page /Wiki/en/Special:Setup (0.0 s.) 2007-01-09 12:05:08,234 INFO: org.jamwiki.servlets.JAMWikiServlet - Loaded page /Wiki/en/Special:Setup (0.0 s.) 2007-01-09 12:05:08,234 INFO: org.jamwiki.servlets.JAMWikiServlet - Loaded page /Wiki/en/Special:Setup (0.0 s.) 2007-01-09 12:05:08,234 INFO: org.jamwiki.servlets.JAMWikiServlet - Loaded page /Wiki/en/Special:Setup (0.0 s.) 2007-01-09 12:05:08,250 INFO: org.jamwiki.servlets.JAMWikiServlet - Loaded page /Wiki/en/Special:Setup (0.0 s.) 2007-01-09 12:05:08,250 INFO: org.jamwiki.servlets.JAMWikiServlet - Loaded page /Wiki/en/Special:Setup (0.0 s.)
Hi Ryan, any luck in running JamWiki on BEA Weblogic 8.1 SP5? Thanks.
Archived from the Feedback page:
The upload image problem is still gone (thanks), but now I can't seem to see the images that were uploaded. This was happening on the patched 0.4.3 that I womped together a couple days ago, but with beta 7 I can't seem to view the images I've uploaded.
process:
This has been happening all along for me, though I previously assumed it was because I was referring to an upload directory that was outside of the web server's tree (trying to isolate data from installation) I now have my upload directory under WEB-INF and am specifying a relative path in the admin page like "\WEB-INF\upload". Interestingly the uploaded image seems to know how big the file is (note the image broder).
Seems to work fine on this site, so I'm assuming I've got something wrong. hummm.
nomead 07-Dec-2006 06:21 PST
The logo image is invisible on nested pages like
Stuff/NestedStuff
Version 0.4.3, Reported by Jens 04 Jan 2006
<img border="0" src="../images/<c:out value="${logo}" />" alt="" />
<img border="0" src="<c:url value="/images/${logo}" />" alt="" />
When uploading an image I get the following error message:
Error A system error has occurred. The error message is: The requested value "Image:C:\bgbody.png" was invalid. It may contain one or more characters which cannot be used in titles.
Uploading works just fine with firefox on Linux.
JAMWiki 0.4.3, Tomcat 5.0.30, Reported by Jens 04 Jan 2006
Installing a new wiki from svn #1286 sources fails:
22.12.2006 15:38:51 org.jamwiki.utils.WikiLogger severe SCHWERWIEGEND: Setup error java.lang.NumberFormatException: null at java.lang.Integer.parseInt(Integer.java:415) at java.lang.Integer.parseInt(Integer.java:497) at org.jamwiki.servlets.SetupServlet.setProperties(SetupServlet.java:176) at org.jamwiki.servlets.SetupServlet.initialize(SetupServlet.java:111) at org.jamwiki.servlets.SetupServlet.handleJAMWikiRequest(SetupServlet.java:68) at org.jamwiki.servlets.JAMWikiServlet.handleRequestInternal(JAMWikiServlet.java:72)
Version 1283 in svn works ok for me. -- Rainer 22-Dec-2006 06:46 PST
In the sql.mssql.properties file, STATEMENT_SELECT_TOPICS_ADMIN has a bug/typo.
Line 18 of the query is: + ' and topic_admin_only = 1 \
It should be: + ' and topic_admin_only = 1 ' \
It's missing the closing tick (and a space in front of it). -- scroco 13-Nov-2006 15:09 PST
Found another issue with sql.mssql.properties. For any of the queries that manage pagination (offset and limit), an error occurs in situations where the offset is larger than the number of items in the list. For example, jamwiki.org handles this page just fine: http://jamwiki.org/wiki/en/Special:TopicsAdmin?num=50&offset=20, showing no results. But if using the MS SQL properties it returns an ugly error page.
For each query that contains the line:
IF (@COUNT < @OFFSET + @LIMIT) SET @TOP = @COUNT - @OFFSET \
This line needs to be inserted above it:
IF (@OFFSET > @COUNT) SET @OFFSET = @COUNT \
Making the queries look like this:
IF (@OFFSET > @COUNT) SET @OFFSET = @COUNT \ IF (@COUNT < @OFFSET + @LIMIT) SET @TOP = @COUNT - @OFFSET \
By my count, there are 8 queries that need this fix:
The effect is that any requests with an offset larger than the number of available results will see a page with no results (mirroring jamwiki.org). -- scroco 15-Nov-2006 11:51 PST
After upgrading to 0.3.5 from 0.3.3, links in the 'Links' tab at the top of the screen no longer work. During the upgrade, there was an error message saying that the directory 'uploads' didn't exist. This is the folder I specified in initial setup to store uploaded files. Copying this from my backup allowed the upgrade to go ahead but afterwards there was this lost link problem. Unfortunately due to my mistake I no longer have the original database backup from before the upgrade.
Any ideas how to get them back? My db is postgresql. How are they stored in the the database?
Regards, Oliver 05-Oct-2006 03:39 PDT
That's it, thanks. Oliver 06-Oct-2006 09:21 PDT
I am running jamwiki on Tomcat 5.0.28/JDK 1.4.2. When upgrading from v0.3.6 to 0.4.1 I am challenged for a login and warned about the pending upgrade. I am then presented with:
2006-10-27 11:48:15 StandardWrapperValve[jamwiki]: Servlet.service() for servlet jamwiki threw exception java.lang.UnsupportedClassVersionError: org/hsqldb/jdbcDriver (Unsupported major.minor version 49.0) at java.lang.ClassLoader.defineClass0(Native Method) trimmed at java.lang.Class.forName(Class.java:219) at org.jamwiki.db.DatabaseConnection.setUpConnectionPool(DatabaseConnection.java:59) at org.jamwiki.db.DatabaseConnection.getConnection(DatabaseConnection.java:208) at org.jamwiki.db.DatabaseConnection.executeQuery(DatabaseConnection.java:115) at org.jamwiki.db.DefaultQueryHandler.getVirtualWikis(DefaultQueryHandler.java:321) at org.jamwiki.db.DatabaseHandler.isInitialized(DatabaseHandler.java:995) at org.jamwiki.WikiBase.reset(WikiBase.java:183) at org.jamwiki.servlets.UpgradeServlet.upgrade040(UpgradeServlet.java:184) at org.jamwiki.servlets.UpgradeServlet.upgrade(UpgradeServlet.java:134) at org.jamwiki.servlets.UpgradeServlet.handleRequestInternal(UpgradeServlet.java:67) trimmed at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) at java.lang.Thread.run(Thread.java:534)
Replacing the packaged hsql jar with an earlier one solves this issue. Unfortunately, after the upgrade completes none of my topics are successfully converted and the log is full of the following for each topic:
SEVERE: Unable to convert topic: en / Earthwalk java.lang.Exception: Failure while executing insert into jam_topic ( topic_id, virtual_wiki_id, topic_name, topic_type, topic_read_only, topic_content, delete_date, topic_admin_only, redirect_to ) values ( ?, ?, ?, ?, ?, ?, ?, ?, ? ) at org.jamwiki.db.WikiPreparedStatement.executeUpdate(WikiPreparedStatement.java:120) at org.jamwiki.db.DefaultQueryHandler.insertTopic(DefaultQueryHandler.java:453) at org.jamwiki.db.DatabaseHandler.addTopic(DatabaseHandler.java:139) at org.jamwiki.db.DatabaseHandler.convertFromFile(DatabaseHandler.java:280) at org.jamwiki.servlets.UpgradeServlet.upgrade040(UpgradeServlet.java:187) at org.jamwiki.servlets.UpgradeServlet.upgrade(UpgradeServlet.java:134) at org.jamwiki.servlets.UpgradeServlet.handleRequestInternal(UpgradeServlet.java:67) trimmed at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) at java.lang.Thread.run(Thread.java:534) Caused by: java.sql.SQLException: Violation of unique index: JAM_PK_TOPIC in statement [insert into jam_topic ( topic_id, virtual_wiki_id, topic_name, topic_type, topic_read_only, topic_content, delete_date, topic_admin_only, redirect_to ) values ( ?, ?, ?, ?, ?, ?, ?, ?, ? )] at org.hsqldb.jdbc.jdbcUtil.throwError(Unknown Source) at org.hsqldb.jdbc.jdbcPreparedStatement.executeUpdate(Unknown Source) at ...dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:101) at org.jamwiki.db.WikiPreparedStatement.executeUpdate(WikiPreparedStatement.java:112) ... 43 more
I have also attempted this against 0.4.0 with the same results
I'm seeing this while upgrading from 0.3.6 to 0.4.3. My initial investigation shows that the 'id' in the topic files isnt unique, hence the "Violation of unique index" error shown above. I dont know why these id's arent unique. Manually changing the offending id's to a unique value before running the update doesnt sort this, as there are cross references from other files.
I've used a reference like [1] but it seems not to be resolved by the parser. The References Tag (see bottom of this Page) as well. Can't find a remark that the feature is not yet implemented.
When upload image, i use chinese in description, but is will get wrong character. see [1]
Upgrade failed when upgrading from 0.2.0 to 0.3.1 using file persistency mode. Special:Upgrade page reports:
Unable to complete upgrade to new JAMWiki version.: null
And jamwiki.log reports:
006-08-29 08:37:35,784 [http-8080-Processor24] ERROR org.jamwiki.persistency.file.FileHandler - Failure while initializing topic for file c:\java\data\wiki\en\topics\StyleSheet.xml java.lang.IllegalArgumentException: Timestamp format must be yyyy-mm-dd hh:mm:ss.fffffffff at java.sql.Timestamp.valueOf(Unknown Source) at org.jamwiki.persistency.file.FileHandler.initTopic(FileHandler.java:621) at org.jamwiki.persistency.file.FileHandler.lookupTopic(FileHandler.java:967) at org.jamwiki.persistency.file.FileHandler.lookupTopic(FileHandler.java:958) at org.jamwiki.persistency.PersistencyHandler.updateSpecialPage(PersistencyHandler.java:813) at org.jamwiki.servlets.UpgradeServlet.upgradeStyleSheet(UpgradeServlet.java:245) at org.jamwiki.servlets.UpgradeServlet.upgrade030(UpgradeServlet.java:205) at org.jamwiki.servlets.UpgradeServlet.upgrade(UpgradeServlet.java:93) at org.jamwiki.servlets.UpgradeServlet.handleRequestInternal(UpgradeServlet.java:68) ...
The StyleSheet.xml had been modified slightly from default.
The upgrade appears to work but now all of my article links link to the edit page. i.e. prefixed with Special:Edit?topic=
I managed to install an older version, delete a few files, and then upgrade to JAMWiki 0.3.2 successfully, so I've released a final JAMWiki 0.3.2 on Sourceforge - I didn't like the idea of leaving a version out there that would break for some users. Sorry for the trouble, and thanks for your bug report! -- Ryan 29-Aug-2006 13:46 PDT
In IE, all apostrophes are displayed as ' -- scroco 29-Aug-2006 15:15 PDT
Links to categories don't parse correctly.
* [[:Category:JAMWiki|JAMWiki Category]]
-- scroco 25-Aug-2006 13:21 PDT
Got it, thanks. I forgot for a second that the syntax for adding a page to a category is the same as link syntax. -- scroco 25-Aug-2006 13:34 PDT
Valid internal links that contain a query string don't parse properly, like this one to the sandbox history page:
Sandbox history
[[Special:History?topic=Sandbox|Sandbox history]]
-- scroco 24-Aug-2006 17:19 PDT
In the class org.jamwiki.persistency.file.FileHandler line 1473 to 1477 (saveWikiUser) you have:
if (WIKI_USER_ID_HASH == null && userIdHashFile.exists()) {
WIKI_USER_ID_HASH.load(new FileInputStream(userIdHashFile));
} else if (WIKI_USER_ID_HASH == null) {
WIKI_USER_ID_HASH = new Properties();
}
that throws a null pointer exception it should probably be:
if (WIKI_USER_ID_HASH == null) {
WIKI_USER_ID_HASH = new Properties();
if(userIdHashFile.exists()){
WIKI_USER_ID_HASH.load(new FileInputStream(userIdHashFile));
}
}
When I try to use a named anchor / pipe link in a table, the link does not render correctly. Example:
| This | is |
|---|---|
| a | Title |
Does the printable page need the "edit" links included for each section? -- scroco 14-Aug-2006 11:33 PDT
Not sure if this is a bug or a feature ... When bringing up the printable version of a page, the Topic title is not displayed. -- scroco 11-Aug-2006 14:49 PDT
| X |
| X |
| X |
| </u> |
MediaWiki used to have the same problem. -- All the best, NickJ.
java.lang.StackOverflowError when launching 0.0.8 for the first time. Windows XP, Tomcat 5.0.28, JDK 1.4, file persistence. Perhaps related to file persistence fix for 0.0.8.
From jamwiki.log:
2006-07-24 12:42:18,278 [http-8080-Processor25] ERROR org.jamwiki.parser.ParserUtil - Failure while parsing link StartingPoints 2006-07-24 12:42:18,294 [http-8080-Processor25] ERROR org.jamwiki.parser.ParserUtil - Failure while parsing link AdminOnlyTopics
Not much in stdout for some reason. I'll keep looking.
Looks like the stack overflow is due to some sort of recursive forwarding. Here is a snippet of the stack trace (sorry it's long!):
... at org.apache.jsp.WEB_002dINF.jsp.wiki_jsp._jspService(wiki_jsp.java:173) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94) ''trimmed'' at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:704) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:474) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:409) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:312) at org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:670) at org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:637) at org.apache.jsp.WEB_002dINF.jsp.wiki_jsp._jspService(wiki_jsp.java:173) ...
Yes, it was definitely a clean install.
0.0.9 is now working in JDK 1.4 with Tomcat 5.0.28. Thanks!
I see on top of the page article name twice: JAMWiki - Feedback and Feedback next to it, what is it? Feature or mistake?
Ok, thanks! :) -- AleXis
One more question - did you implement locking for editing? Looks like we both edited this article at same time)
-- AleXis
Section edit is cool feature! Its very useful! :) -- AleXis
I am using Opera, and it shows cached versions of pages too long, so i am offer to keep page size small (by separating CSS) and add "no cache" headers. What do you think about it?
MediaWiki uses this header: Cache-Control: private, s-maxage=0, max-age=0, must-revalidate
If it situable you can use this filter (only for jsp's, it is important):
package ...;
import javax.servlet.*;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
public class CachingPreventFilter implements Filter {
public void init(FilterConfig filterConfig) throws ServletException {
}
public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse,
FilterChain filterChain) throws ServletException, IOException {
if (servletResponse instanceof HttpServletResponse) {
HttpServletResponse hr = (HttpServletResponse)servletResponse;
hr.setHeader("Cache-Control", "no-cache, no-store, must-revalidate");
hr.setHeader("Pragma", "no-cache");
}
filterChain.doFilter(servletRequest, servletResponse);
}
public void destroy() {
}
}
-- AleXis
Thank you! It works! Page reloads correctly :) I've created new head for styles issue -- AleXis
I am using Resin container and have such messages: com.caucho.java.JavaCompileException: /WEB-INF/jsp/setup.jsp:114: code too large for try statement } catch (Throwable _jsp_exn_1306) {
And 8 errors more
It is possible to fix this problem?
Thank you! Also one problem with libs: commons-logging.jar is missing by default and Resin does not want run web app. Please add it to libs :) -- AleXis
It is log from Resin, he stops loading web app after java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory exception. Looks like problem in org.springframework.web.servlet.DispatcherServlet.<clinit>(DispatcherServlet.java:215). May be some option to pervent logging exists in configuration? -- AleXis
[01:38:41.609] java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory [01:38:41.609] at org.springframework.web.servlet.DispatcherServlet.<clinit>(DispatcherServlet.java:215) [01:38:41.609] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ''trimmed by [[User:wrh2|Ryan]] for readability'' [01:38:41.625] ... 20 more
Nop :) Thank you! Logging lib is only 38Kb - I think it is not a big problem :) Will wait for new release :) -- AleXis
When building from the latest SVN source with "ant war" I get this error:
BUILD FAILED /home/hamish/ext/jamwiki/latest/jamwiki/build.xml:79: /home/hamish/ext/jamwiki/latest/jamwiki/local-files not found.
(Ant 1.6.5 on Sun Java 1.5.0 on Ubuntu edgy.)
If I mkdir local-files the error goes away. Perhaps the source tree should contain an empty local-files?
Hamish Cunningham 2-Mar-2007
I discovered a critical problem with certain wiki words with a certain length and having an "?" at the end. E.g. [[Urnordisch oder Nordwestgermanisch?]] causes the engine to use 100% cpu power for a few minutes. It loops at the following point:
at java.util.regex.Pattern$GroupTail.match(Pattern.java:4629) ... ... ... at java.util.regex.Pattern$Curly.match0(Pattern.java:4235) at java.util.regex.Pattern$Curly.match(Pattern.java:4197) at java.util.regex.Pattern$GroupHead.match(Pattern.java:4570) at java.util.regex.Pattern$Dummy.match(Pattern.java:2993) at java.util.regex.Pattern$Branch.match(Pattern.java:4530) at java.util.regex.Pattern$GroupHead.match(Pattern.java:4570) at java.util.regex.Pattern$Branch.match(Pattern.java:4530) at java.util.regex.Pattern$GroupHead.match(Pattern.java:4570) at java.util.regex.Pattern$Loop.matchInit(Pattern.java:4713) at java.util.regex.Pattern$Prolog.match(Pattern.java:4653) at java.util.regex.Matcher.match(Matcher.java:1114) at java.util.regex.Matcher.matches(Matcher.java:495) at org.jamwiki.utils.LinkUtil.parseWikiLink(LinkUtil.java:271) at org.jamwiki.parser.jflex.WikiLinkTag.parseWikiLink(WikiLinkTag.java:185) at org.jamwiki.parser.jflex.WikiLinkTag.processLinkMetadata(WikiLinkTag.java:211) at org.jamwiki.parser.jflex.WikiLinkTag.parse(WikiLinkTag.java:109) at org.jamwiki.parser.jflex.AbstractLexer.parseToken(AbstractLexer.java:106) at org.jamwiki.parser.jflex.JAMWikiPreProcessor.yylex(JAMWikiPreProcessor.java:760) at org.jamwiki.parser.jflex.JFlexParser.lex(JFlexParser.java:114) at org.jamwiki.parser.jflex.JFlexParser.parsePreProcess(JFlexParser.java:204) at org.jamwiki.parser.jflex.JFlexParser.parseHTML(JFlexParser.java:163)
guido
The elements parsers user-handlers? data-handlers are not defined -- Jack 07-Mar-2007
I've found the "java.lang.ClassCastException: java.lang.Integer" error running JAMwiki 0.5.2 with Resin 3.1.0, internal database and Java 1.5.0_07. Error persists on following pages:
Here is sample from Special:RecentChanges page:
java.lang.ClassCastException: java.lang.Integer
at org.springframework.web.util.ExpressionEvaluationUtils.evaluateString(ExpressionEvaluationUtils.java:186)
at org.jamwiki.taglib.LinkParamTag.doEndTag(LinkParamTag.java:47)
at _jsp._WEB_22dINF._jsp._recent_22dchanges__jsp._jspService(_recent_22dchanges__jsp.java:400)
at com.caucho.jsp.JavaPage.service(JavaPage.java:61)
at com.caucho.jsp.Page.pageservice(Page.java:577)
at com.caucho.server.dispatch.PageFilterChain.doFilter(PageFilterChain.java:190)
at com.caucho.server.webapp.DispatchFilterChain.doFilter(DispatchFilterChain.java:97)
at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:226)
at com.caucho.server.webapp.RequestDispatcherImpl.include(RequestDispatcherImpl.java:488)
at com.caucho.server.webapp.RequestDispatcherImpl.include(RequestDispatcherImpl.java:353)
at com.caucho.jsp.PageContextImpl.include(PageContextImpl.java:957)
at _jsp._WEB_22dINF._jsp._wiki__jsp._jspService(_wiki__jsp.java:1237)
at com.caucho.jsp.JavaPage.service(JavaPage.java:61)
at com.caucho.jsp.Page.pageservice(Page.java:577)
at com.caucho.server.dispatch.PageFilterChain.doFilter(PageFilterChain.java:190)
at com.caucho.server.webapp.DispatchFilterChain.doFilter(DispatchFilterChain.java:97)
at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:226)
at com.caucho.server.webapp.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:279)
at com.caucho.server.webapp.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:108)
at org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel(InternalResourceView.java:142)
at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:247)
at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1105)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:841)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:755)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:396)
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:350)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:115)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:92)
at com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChain.java:103)
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.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:73)
at org.jamwiki.servlets.JAMWikiFilter.doFilter(JAMWikiFilter.java:56)
at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:73)
at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:167)
at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:226)
at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:263)
at com.caucho.server.port.TcpConnection.run(TcpConnection.java:477)
at com.caucho.util.ThreadPool$Item.runTasks(ThreadPool.java:591)
at com.caucho.util.ThreadPool$Item.run(ThreadPool.java:513)
at java.lang.Thread.run(Thread.java:595)
-- aevdokimov
Hi Ryan, I recently found a stacktrace in my jamwiki.log-file, when I was looking for the problem to be unable to link to uploaded images ([2]). the image link is blue - asigning that there is a image uploaded (as I verified on the filesystem) - I do not see it on the page, and if I klick on the link I get the reported error.
2007-03-08 09:13:29,665 INFO: org.jamwiki.servlets.JAMWikiServlet - Loaded page /jamwiki-0.5.0/de/Technik (0.827 s.)
2007-03-08 09:13:30,770 INFO: org.jamwiki.parser.jflex.AbstractLexer - Unable to parse ==
java.lang.StringIndexOutOfBoundsException: String index out of range: -2
at java.lang.String.substring(String.java:1768)
at org.jamwiki.parser.jflex.WikiHeadingTag.parse(WikiHeadingTag.java:76)
at org.jamwiki.parser.jflex.AbstractLexer.parseToken(AbstractLexer.java:106)
at org.jamwiki.parser.jflex.JAMWikiProcessor.yylex(JAMWikiProcessor.java:1410)
at org.jamwiki.parser.jflex.JFlexParser.lex(JFlexParser.java:114)
at org.jamwiki.parser.jflex.JFlexParser.parseProcess(JFlexParser.java:220)
at org.jamwiki.parser.jflex.JFlexParser.parseHTML(JFlexParser.java:164)
at org.jamwiki.utils.Utilities.parse(Utilities.java:763)
at org.jamwiki.servlets.ServletUtil.viewTopic(ServletUtil.java:486)
at org.jamwiki.servlets.ServletUtil.viewTopic(ServletUtil.java:445)
at org.jamwiki.servlets.TopicServlet.view(TopicServlet.java:59)
at org.jamwiki.servlets.TopicServlet.handleJAMWikiRequest(TopicServlet.java:45)
at org.jamwiki.servlets.JAMWikiServlet.handleRequestInternal(JAMWikiServlet.java:72)
at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:45)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:820)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:755)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:396)
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:350)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
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 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.jamwiki.servlets.JAMWikiFilter.doFilter(JAMWikiFilter.java:56)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)
2007-03-08 09:13:30,842 INFO: org.jamwiki.parser.jflex.JFlexParser - Parse time (parseHTML) for Todos (0.091 s.)
where can I search for the origin of the parser-Error? -- Michael Habbert 10-Mar-2007 05:58 PST
== Service-Call 1und1 == 19.02.07 : Servicecall 1und1. Ich wurde umgeroutet, wenn es in 5 Tagen wieder schlechter wird - dies dem Service-techniker erzählen. Rauschunterdrückung mit: #614*1* aktiviert und die Kompression aktiviert. ==> Telefon geht wieder! -- 1und1 Service-Telefon: telefonnummer 13.03.07 Seit gestern immer wieder Verbindungsabbruch (nicht von der Arbeit aus erreichbar!). : heute nach Neustart des Routers scheinbar wieder ok. 14.03.07 17:17 20 berater: beratername sei zu alt: Momentan installierte Firmware-Version: 23.04.15 und der anschluß der box an der zweiten Telefon-dose ist nicht korrekt! http://www.avm.de/de/Download/index.php3 aktuelle Firmware: FRITZ!Box Fon 5010 (UI), Firmware-Version 23.04.27 heruntergeladen und installiert.
hopefully you can catch it now. For me the substitution of the == with -- avoided the parser-error. Thanks ;-) -- Michael Habbert 14-Mar-2007 12:16 PST
wikiheading = [\=]+ [^\n\=]* [\=]+
wikiheading = [\=]+ [^\n\=]+ [\=]+
Equals signs in headers work in MediaWiki, but not in JamWiki. Try "== = in Headers ==".
I'm using the includeonly-tag in templates to set the category:
<includeonly>[[Category:MyCategory]]</includeonly>
It works correctly, the category is shown in the footer of the article. But the category-page itself don't show the article. If I'm putting the category in the article directly, the article is shown in the category-page. User:Ralf
In a similar vein, I noticed that if I just do a standard page include that is not a template using:
{{RegularPage}}
that if RegularPage looks like
<noinclude>Should not be visible when included</noinclude> This text should be visible when included
the resulting page shows all the text including the noinclude tags. If RegularPage is defined in the Template namespace as Template:RegularPage then the noinclude tags are processed correctly. I confirmed on the sandbox page at mediawiki that the noinclude should be honored even if the page is not in the Template namespace. -- Unregistered user-Jere 27-Dec-2006
This is a nested exception (deep in the bowels of Spring building a class TopicSpaces uses, which, itself, creates database objects): nested exception is java.lang.NoSuchMethodError: org.apache.lucene.document.Document.add(Lorg/apache/lucene/document/Field;)V
Google that and you see that others are starting to report it as well. Seems to show up in the Lucene 2.0/2.1 transition and nobody seems to have a clue why it's happening. Here is what is going on. As I complete booting JAMWiki, I follow by booting TopicSpaces, which, at this time, is building a new database of its own. While it is creating its own classes, it sends new Topic events into JAMWiki, which fires up Lucene to perform indexing. The exception is tossed in LuceneSearchEngine.createStandardDocument just as it is doing the first doc.add(new Field...) call.
It is interesting that it is showing a NoSuchMethodException; one must decide is there no Document.add() with that signature, or is there no new Field(...) with that signature. Clearly, the source code suggests those methods exist.
Slightly off topic, but one has to wonder (doesn't one?): LuceneSearchEngine is filled with deprecated FSDirectory.getDirectory calls, where telling FSDirectory whether to "create" or not is now handed to IndexWriter's create flag. -- park 09-Apr-2007 11:19 PST
Archived from the Feedback page:
JamWiki 0.3.6, File mode
I don't know if this has been reported or resolved - There are a number of user collisions on 0.3.6 where a new user will get assigned the same ID as an existing user (discovered after an examination of the user account xml files). The result is the new user will seem to hijack all of the edits the previous user made. Both can still log in and make new entries, however JamWiki will only see the new user when listing edit history, etc.
==Incorrect table definition; there can be only one TIMESTAMP column with
CURRENT_TIMESTAMP in DEFAULT or ON UPDATE clause==
Installed JAMWiki into Tomcat, bounced Tomcat, then connected to the JAMWiki application. After filling out the initial configuration information, I am getting the following error message when on the initial Setup dialog:
An unknown system error has occurred. The error message is: Failure while executing 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, is_admin INTEGER DEFAULT 0 NOT NULL, remember_key VARCHAR(100) NOT NULL, default_locale VARCHAR(8), CONSTRAINT jam_pk_wiki_user PRIMARY KEY (wiki_user_id) ).
Signed into the MySQL database (via phpMyAdmin) and manually fired off the command, and got the following error:
SQL query: 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 , is_admin INTEGER DEFAULT 0 NOT NULL , remember_key VARCHAR( 100 ) NOT NULL , default_locale VARCHAR( 8 ) , CONSTRAINT jam_pk_wiki_user PRIMARY KEY ( wiki_user_id ) ) MySQL said: Documentation #1293 - Incorrect table definition; there can be only one TIMESTAMP column with CURRENT_TIMESTAMP in DEFAULT or ON UPDATE clause
Here are the relevant software versions:
| Software | Version |
|---|---|
| JAMWiki | 0.5.3 |
| Tomcat | 5.5.15 |
| JVM | 1.5.0_11-b03 |
| MySQL | 4.1.21 |
| ConnectorJ | 5.0.5 |
| OS | Linux 2.6.19.3-grsec-r3 |
Would appreciate any assistance you can offer. My guess is the issue is with the SQL against MySql 4.1.27, as the same set of install files worked great for me with MySQL 5.0.x install (though under WinXP, not Linux).
The Supported_Configurations page advises JAMWiki works with MySql 4.1, but am wonder if there is perhaps a gotcha here I have not yet unraveled.
Did not see any JAMWiki errors in the Tomcat log files.
Thanks!
--RobW 02-May-2007 20:26 PDT
STATEMENT_CREATE_WIKI_USER_TABLE = \
CREATE TABLE jam_wiki_user ( \
wiki_user_id INTEGER NOT NULL, \
login VARCHAR(100) NOT NULL, \
display_name VARCHAR(100), \
/* FIXME - mysql only allows one column to use CURRENT_TIMESTAMP, but this should default also */ \
create_date TIMESTAMP NOT NULL DEFAULT 0, \
last_login_date TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, \
create_ip_address VARCHAR(15) NOT NULL, \
last_login_ip_address VARCHAR(15) NOT NULL, \
is_admin INTEGER NOT NULL DEFAULT 0, \
remember_key VARCHAR(100) NOT NULL, \
default_locale VARCHAR(8), \
CONSTRAINT jam_pk_wiki_user PRIMARY KEY (wiki_user_id) \
)
Thanks for the report! -- Ryan 02-May-2007 21:40 PDT
Ryan,
Bullseye. This was definitely a between the keyboard and chair problem, not a bug! Somehow I missed this step twice by leaving the database type as Ansi. I switched the type to MySQL and JAMWiki is now working like a charm.
Thank you very much for the quick response!
--RobW 03-May-2007 06:27 PDT