Package org.apache.wiki

Examples of org.apache.wiki.InternalWikiException


            case URL:
                out.print( getCommentURL(pageName) );
                break;
               
            default:
                throw new InternalWikiException("Impossible format "+m_format);
           
        }

        return EVAL_BODY_INCLUDE;
    }
View Full Code Here


                case NOTFIRST:
                    include = version > 1;
                    break;
               
                default:
                    throw new InternalWikiException("Mode which is not available!");
            }

            if( include )
            {
                // log.debug("INCLD");
View Full Code Here

            }
        }
        catch ( IOException e )
        {
            log.error("Initialization failed: ",e);
            throw new InternalWikiException( e.getClass().getName()+": "+e.getMessage() );
        }
        catch ( JDOMException e )
        {
            log.error("Malformed XML in web.xml",e);
            throw new InternalWikiException( e.getClass().getName()+": "+e.getMessage() );
        }

        if ( m_containerRoles.length > 0 )
        {
            String roles = "";
View Full Code Here

        //  to the repo with no actual change.
        //
       
        toPage = engine.getPage( renameToClean );
       
        if( toPage == null ) throw new InternalWikiException("Rename seems to have failed for some strange reason - please check logs!");

        toPage.setAttribute( WikiPage.CHANGENOTE, fromPage.getName() + " ==> " + toPage.getName() );
        toPage.setAuthor( context.getCurrentUser().getName() );
       
        engine.getPageManager().putPageText( toPage, engine.getPureText( toPage ) );
View Full Code Here

            case DATE:
                prefDateFormat = imgr.get( "common.dateformat" );
                break;
               
            default:
                throw new InternalWikiException( "Got a TimeFormat for which we have no value!" );
        }
       
        try
        {
            SimpleDateFormat fmt = new SimpleDateFormat( prefDateFormat, clientLocale );
View Full Code Here

                case NOTFIRST:
                    include = version > 1;
                    break;
               
                default:
                    throw new InternalWikiException("Mode which is not available!");
            }

            if( include )
            {
                // log.debug("INCLD");
View Full Code Here

        if( name == null || template == null )
        {
            log.fatal("findJSP() was asked to find a null template or name ("+template+","+name+")."+
                      " JSP page '"+
                      ((HttpServletRequest)pageContext.getRequest()).getRequestURI()+"'");
            throw new InternalWikiException("Illegal arguments to findJSP(); please check logs.");
        }

        return findResource( pageContext.getServletContext(), template, name );
    }
View Full Code Here

                return result;
            }
        } catch (ClassCastException e) {
            log.error("Invalid type offered in parsing plugin arguments.", e);
            throw new InternalWikiException("Oops, someone offered !String!");
        } catch (NoSuchElementException e) {
            String msg = "Missing parameter in plugin definition: " + commandline;
            log.warn(msg, e);
            throw new PluginException(msg);
        } catch (IOException e) {
View Full Code Here

        catch( JDOMException e )
        {
            // If we couldn't evaluate constraints it means
            // there's some sort of IO mess or parsing issue
            LOG.error( "Malformed XML in web.xml", e );
            throw new InternalWikiException( e.getClass().getName() + ": " + e.getMessage() );
        }

        s.append( "</tbody>\n" );
        s.append( "</table>\n" );
        return s.toString();
View Full Code Here

            }
        }
        catch( IOException e )
        {
            m_log.error( "Unable to create context", e );
            throw new InternalWikiException( "Big internal booboo, please check logs." );
        }

        // Didn't resolve; return null
        return null;
    }
View Full Code Here

TOP

Related Classes of org.apache.wiki.InternalWikiException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.