Examples of PortletException


Examples of javax.portlet.PortletException

                uninstallConfig(actionRequest);
                messageStatus = "Uninstalled application<br /><br />";
            } else {
                messageStatus = "Invalid value for changeState: " + action
                        + "<br /><br />";
                throw new PortletException("Invalid value for changeState: "
                        + action);
            }
        } catch (NoSuchConfigException e) {
            // ignore this for now
            messageStatus = "Configuration not found<br /><br />";
            throw new PortletException("Configuration not found", e);
        } catch (InvalidConfigException e) {
            messageStatus = "Configuration not found<br /><br />";
            throw new PortletException("Configuration not found", e);
        } catch (Exception e) {
            messageStatus = "Encountered an unhandled exception<br /><br />";
            throw new PortletException("Exception", e);
        }
    }
View Full Code Here

Examples of javax.portlet.PortletException

                    kernel.setAttribute(gbeanName, "PortNumber", new Integer(
                            actionRequest.getParameter("portNumber")));
                    kernel.setAttribute(gbeanName, "DatabaseName",
                            actionRequest.getParameter("databaseName"));
                } catch (Exception e) {
                    throw new PortletException(e);
                }
            }
            actionResponse.setRenderParameter("mode", "detail");
        }
        actionResponse.setRenderParameter("name", actionRequest
View Full Code Here

Examples of javax.portlet.PortletException

            info.setDatabaseName((String) kernel.getAttribute(gbeanName,
                    "DatabaseName"));
            info.setGlobalJNDIName((String) kernel.getAttribute(gbeanName,
                    "globalJNDIName"));
        } catch (Exception e) {
            throw new PortletException(e);
        }
        request.setAttribute("ds", info);
        if ("config".equals(request.getParameter("mode"))) {
            configView.include(request, response);
        } else {
View Full Code Here

Examples of javax.portlet.PortletException

        DeploymentConfiguration deploymentConfiguration = createDeploymentConfiguration(initParameters);
        try {
            vaadinService = createPortletService(deploymentConfiguration);
        } catch (ServiceException e) {
            throw new PortletException("Could not initialized VaadinPortlet", e);
        }
        // Sets current service even though there are no request and response
        vaadinService.setCurrentInstances(null, null);

        portletInitialized();
View Full Code Here

Examples of net.sf.jportlet.portlet.PortletException

        /* Render */
        Portlet.Markup markup = request.getClient(  ).getMarkup(  );
        String         templatePath = ( String ) __templatePaths.get( markup );
        if ( templatePath == null )
        {
            throw new PortletException( "No template for markup: " + markup );
        }

        VelocityService srv = ( VelocityService ) getPortletContext(  ).getService( VelocityService.NAME );
        srv.merge( templatePath, request, response );
        if ( _log.isDebugEnabled(  ) )
View Full Code Here

Examples of net.sf.jportlet.portlet.PortletException

            return Interceptor.CONTINUE;
        }
        catch ( IOException io )
        {
            throw new PortletException( io );
        }
    }
View Full Code Here

Examples of net.sf.jportlet.portlet.PortletException

            __log.debug( "Adding Portlet. name=" + name );
        }

        if ( _portletDescriptors.put( name, descriptor ) != null )
        {
            throw new PortletException( "Duplicate portlet: " + name );
        }
    }
View Full Code Here

Examples of net.sf.jportlet.portlet.PortletException

            {
                throw (PortletException)cause;
            }
            else
            {
                throw new PortletException( e );
            }
        }
    }
View Full Code Here

Examples of net.sf.jportlet.portlet.PortletException

        {
            return beforeService( proxy, event.getPortletRequest(), event.getPortletResponse());
        }
        catch( IOException io )
        {
            throw new PortletException( io );
        }
    }
View Full Code Here

Examples of net.sf.jportlet.portlet.PortletException

                stmt.execute(  );
            }
        }
        catch ( Exception e )
        {
            throw new PortletException( e );
        }
        finally
        {
            try
            {
                close( null, stmt, cnn );
            }
            catch ( Exception e )
            {
                throw new PortletException( e );
            }
        }
    }
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.