Examples of InternalWikiException


Examples of org.apache.wiki.InternalWikiException

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

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

Examples of org.apache.wiki.InternalWikiException

            }
        }
        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

Examples of org.apache.wiki.InternalWikiException

        //  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

Examples of org.apache.wiki.InternalWikiException

            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

Examples of org.apache.wiki.InternalWikiException

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

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

Examples of org.apache.wiki.InternalWikiException

        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

Examples of org.apache.wiki.InternalWikiException

                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

Examples of org.apache.wiki.InternalWikiException

        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

Examples of org.apache.wiki.InternalWikiException

            }
        }
        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

Examples of org.apache.wiki.InternalWikiException

        try {
            m_pluginPattern = compiler.compile( PLUGIN_INSERT_PATTERN );
        } catch( MalformedPatternException e ) {
            log.fatal( "Internal error: someone messed with pluginmanager patterns.", e );
            throw new InternalWikiException( "PluginManager patterns are broken" );
        }

    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.