This is a discussion page about the CeryleWikiPlugins, a package of plugins designed for use with JSPWiki.


Does this Plugin (CeryleWikiPlugin) run with v2.4.100? With the New Version from the Author-Page i got Plugin failed or something common in my Wiki-Instance

Thanks!

--MartinU, 30-Mar-2007

Martin,

Which plugin are you talking about? There is no plugin called "CeryleWikiPlugin", that's the name of the group of plugins described on this page. Most of them should run on 2.4.100 though I don't know if all have been tested on that version specifically. Note that for any of them to work you'll have to add the 'org.ceryle.wiki.plugin' to the plugin path property 'jspwiki.plugin.searchPath' in WEB-INF/jspwiki.properties. Assuming that has been done I'd still need more information to answer your question.

-- MurrayAltheim, 1-Apr-2007

Hi Murray,

Hmm.. i thought here can i get the 'whole' plugin-package?... i Tried to use the "FormDebugHandler" like this

[{FormSet form='newTodoForm'}]

[{FormOutput form='newTodoForm' handler='FormDebugHandler' populate='handler'}] 

[{FormOpen form='testform'}]

[{FormInput type='text' name='format'}]

[{FormClose}]
on the Page appears "Plugin failed" :( ... Don't know what i do wrong?

Thanks for Answer!

--MartinU, 30-Mar-2007

Yes, the plugin package is available from the page you mention, in both binary and source jar files. I'm not distributing them as individual plugins because it's a lot of work to set up creation and maintenance of that many small jar files and a lot easier to do just one. You can (as I describe below) simply download the source distribution and compile only the ones you want. As to what's going wrong with your example, hard to say. You might want to look at your wiki logs and see what is actually going wrong. Forms are a bit tricky to debug since there's a lot of plugins and a lot of interaction between them, so you might (a) trying adding to the plugin parameters, or (b) modify the plugin source by adding stack traces to see what's exploding if you're not seeing any indication in the logs. If I get a chance I'll see if your example runs but I'm currently trying to kill a bug as big as a house.

-- MurrayAltheim, 02-Apr-2007

Hmm Murray, i understand that its very difficult to find a solution for my problem... but now i tried it with this instanciation ...

and this ERROR appears in my WikiLog:

2007-04-02 13:33:17,064 [http-15984-Processor25] INFO com.ecyrd.jspwiki.plugin.PluginManager TestWiki:/TestWiki/Wiki.jsp TestWiki:http://xxx/TestWiki/Wiki.jsp - Plugin failed while executing:
java.lang.NullPointerException
        at org.ceryle.wiki.handler.FormDebugHandler.debug(FormDebugHandler.java:64)
        at org.ceryle.wiki.handler.FormDebugHandler.execute(FormDebugHandler.java:49)
        at com.ecyrd.jspwiki.plugin.PluginManager.execute(PluginManager.java:380)
        at com.ecyrd.jspwiki.forms.FormOutput.execute(FormOutput.java:123)
        at com.ecyrd.jspwiki.plugin.PluginManager.execute(PluginManager.java:380)
        [[...]

any idea why?

Thanks as well!

--MartinU, 02-Apr-2007 01:35h PM GMT+1

Okay now the page-"View" works (i changed one line to [{FormOutput form='testform' handler='org.ceryle.wiki.handler.FormDebugHandler'}] without the "populate"-attribute)...
but if i submit the form this error is written on my Wiki Page Plugin Failed and this error appears in my WikiLog:

2007-04-02 13:43:08,780 [http-15984-Processor20] INFO com.ecyrd.jspwiki.plugin.PluginManager TestWiki:/TestWiki/Wiki.jsp TestWiki:http://xxx/TestWiki/Wiki.jsp - Plugin failed while executing:
java.lang.NullPointerException
        at org.ceryle.wiki.handler.FormDebugHandler.debug(FormDebugHandler.java:64)
        at org.ceryle.wiki.handler.FormDebugHandler.execute(FormDebugHandler.java:49)
        at com.ecyrd.jspwiki.plugin.PluginManager.execute(PluginManager.java:380)
        at com.ecyrd.jspwiki.forms.FormOutput.execute(FormOutput.java:123)
        at com.ecyrd.jspwiki.plugin.PluginManager.execute(PluginManager.java:380)
        [[...]

Thanks for any help!

--MartinU, 02-Apr-2007 01:47h PM GMT+1

Martin,

Okay, I can see where in the FormDebugHandler this is causing that exception, so that's an easy fix, but my guess is that there still might be another problem, dunno. As a quick fix, if you're compiling your own code, you can change the code to add an if() check around the problem area beginning on line 63, e.g.,

63    String key = (String)iter.next();
64    if ( key != null ) // add this check to void the NullPointerException
65    {
66        String value = params.get(key).toString() ;
67        buffer.append(key + " = " + value + brElt );
68    }
I'll do that on the next release of the code, but that will be awhile...

-- MurrayAltheim, 02-Apr-2007

Hey Murray,

thanks for this Fix! ... but i dont know hot to compile this code for myself... how can i compile the .java file to be a working .jar?

Thanks for Answers!

-- MartinU, 02-Apr-2007 at 09:51 AM GMT+1

Martin, a tutorial on building Java jar files is a bit beyond the scope of help I can provide here. I'd suggest either digging into one of the thousands of Java books on the market, or using the ant build tool (also see the ant user manual), e.g., grabbing an existing ant build.xml file and seeing how it's done from the inside. There's a build file distributed with JSPWiki that builds the JSPWiki.jar file using the "jar" target, so you could use that as a starting point. There's lots of help on the ant site on this as well. These are good skills to learn in any case.

-- MurrayAltheim, 04-Apr-2007


I want to only install EmailNotifierPlugin, but not other CeryleWikiPlugins.

Is it possible? Thanks!

--AnonymousCoward, 02-Apr-2007

Yes, you can install any of the individual plugins by compiling them yourself. You would just download the source distribution (labeled with 'src' in the filename) and compile it into a jar file, installing it as you would the full package, which includes adding the package name to your WEB-INF/jspwiki.properties file as described in the installation instructions, e.g.:

  jspwiki.plugin.searchPath = org.ceryle.wiki.plugin
(You'd still set this property since it is necessary for any and all of the plugins.)

I don't know much about the EmailNotifierPlugin since it was written by John Volkar; you might ask on the jspwiki-users mailing list if you have any specific questions about that plugin.

-- MurrayAltheim, 02-Apr-2007


We are using NewPageHandler to create pages. We need to make the create page more user friendly by catching the null form fields. Do we need to make changes to NewPageHandler?s On the UI all form field are not mandatory. so when the user hits submit the fields that are not filled in result in showing up some garbage (NULL) in the newly created page. Can you provide us some guidance on how to fix this?

--AbhijitPatil, 15-Oct-2007


I am using jspwiki 2.6.0 with ceryle-wikiutil-1.0a12-20070216.jar. I have the following on my main page:

[{INSERT EmailNotifier server='localhost' from='do-not-reply@myserver.net' subject='Wiki Changes' subscriptionPage='NotificationList' minuteOffset='01' hourInterval='0' useAuthentication='false' changedPagePattern='<li><a href=http://www.myserver.net/Wiki/Wiki.jsp?page=CHANGED_PAGE_NAME>CHANGED_PAGE_NAME</a></li> \n'

<html><body>
<p>The following pages have changed in the last 24 hours.</p>
<ul>CHANGED_PAGE_LIST</ul>
<p>
<hr/>
To remove your email address from this list, edit the <a href=http://www.myserver.net/Wiki/Wiki.jsp?page=SUBSCRIPTION_PAGE>SUBSCRIPTION_PAGE</a> page.
</p>
</body></html>
}]

It saves okay and says on my main page:

Wiki next notification at Feb 28, 2008 3:46:00 PM. Subscribe at NotificationList.

But I am still not getting any emails... Any ideas?

--BrianAnderson, 29-Feb-2008


Hello all,

I am trying to use the tag plugin (including HasTagOf, TagCloud, Tag) on my JSPWiki 2.6.1 installation.
It comes seperate from the ceryle plugin lib.
I followed the installation hints, but if I am trying to use a tag, the following error message occurs:

Can't find resource for bundle java.util.PropertyResourceBundle, key plugin.error.pluginfailed

I am using the follwing syntax for tagging a page with the Tag 'Info':

[{Tag Info}] 

Does anybody know something about this problem? Is it possibly a JSPWiki Version problem?

it would really help me out, because I think it's a really great Plugin.

Thanks in advance
Greetz Marius, 31-MAR-2008


@EDIT 03-APR-2008:
I solved the Problem above. The ceryle basic jar (ceryle-wikiutil-1.0a12-20070216.jar) needs also to be put in the WEB_INF/lib directory. Now everything works just fine !

Add new attachment

In order to upload a new attachment to this page, please use the following box to find the file, then click on “Upload”.
« This page (revision-19) was last changed on 03-Apr-2008 17:51 by 212.185.164.140 [RSS]