Package javax.portlet

Examples of javax.portlet.PortletException


                //     "End:
                // *******************************************JetspeedRequestDispatcher
                // Failure Report******************************************");
                if (pw != null)
                    pw.flush();
                throw new PortletException(e);
            } else {
                //log.error(
                //    "End:
                // *******************************************JetspeedRequestDispatcher
                // Failure Report******************************************");
                if (pw != null)
                    pw.flush();
                throw new PortletException(e);
            }
        }
    }
View Full Code Here


         catch (java.io.IOException ignore) { }
         catch (com.enterprisedt.net.ftp.FTPException ignore) { }

         DebugFile.decIdent();
       }
       throw new PortletException("TransformerConfigurationException " + tce.getMessage(), tce);
     }
     catch (TransformerException tex) {
       if (DebugFile.trace) {
         DebugFile.writeln("TransformerException " + tex.getMessageAndLocation());

         try {
           DebugFile.write("--------------------------------------------------------------------------------\n");
           DebugFile.write(FileSystem.readfile(sTemplatePath));
           DebugFile.write("\n--------------------------------------------------------------------------------\n");
           DebugFile.write(sXML);
           DebugFile.write("\n--------------------------------------------------------------------------------\n");
         }
         catch (java.io.IOException ignore) { }
         catch (com.enterprisedt.net.ftp.FTPException ignore) { }

         DebugFile.decIdent();
       }
       throw new PortletException("TransformerException " + tex.getMessage(), tex);
     }

     if (DebugFile.trace) {
       DebugFile.decIdent();
       DebugFile.writeln("End CallsTab.render()");
View Full Code Here

       oFS.writefilestr ("file://"+sCacheFilesDir+File.separator+sCachedFile, sOutput,
                         sEncoding==null ? "ISO8859_1" : sEncoding);
     }
     catch (Exception xcpt) {
       throw new PortletException(xcpt.getClass().getName() + " " + xcpt.getMessage(), xcpt);
     }

     return sOutput;
   } // render
View Full Code Here

       sOutput = "";
       String sTrace = "";
       try {
         sTrace = StackTraceUtil.getStackTrace(xcpt);
       } catch (Exception ignore) {}
         throw new PortletException(xcpt.getClass().getName() + " " + xcpt.getMessage()+"<BR/>"+sTrace, xcpt);
     }

     return sOutput;
   } // render
View Full Code Here

            if(mode.equals("start")) {
                try {
                    //todo: this only goes into the "starting" state, doesn't make it to "running" -- what's up with that?
                    PortletManager.getManagedBean(actionRequest, new AbstractName(URI.create(brokerURI))).startRecursive();
                } catch (Exception e) {
                    throw new PortletException(e);
                }
            } else if(mode.equals("stop")) {
                try {
                    PortletManager.getManagedBean(actionRequest,  new AbstractName(URI.create(brokerURI))).stop();
                } catch (Exception e) {
                    throw new PortletException(e);
                }
            } else if(mode.equals("edit")) {
                //todo: is there anything to edit?
            } else if(mode.equals("delete")) {
                //todo: add a method to JMSManager to handle this
View Full Code Here

                AbstractName abstractName = PortletManager.getNameFor(renderRequest, brokers[i]);
                String displayName = abstractName.getName().get("name").toString();
                beans.add(new BrokerWrapper(displayName, abstractName.toString(), brokers[i]));
            }
        } catch (Exception e) {
            throw new PortletException(e);
        }
        return beans;
    }
View Full Code Here

            } else if(mode.equals("start")) {
                AbstractName connectorAbstractName = new AbstractName(URI.create(connectorURI));
                try {
                    PortletManager.getManagedBean(actionRequest, connectorAbstractName).startRecursive();
                } catch (Exception e) {
                    throw new PortletException(e);
                }
                actionResponse.setRenderParameter("mode", "list");
            } else if(mode.equals("stop")) {
                AbstractName connectorAbstractName = new AbstractName(URI.create(connectorURI));
                try {
                    PortletManager.getManagedBean(actionRequest, connectorAbstractName).stop();
                } catch (Exception e) {
                    throw new PortletException(e);
                }
                actionResponse.setRenderParameter("mode", "list");
            } else if(mode.equals("edit")) {
                actionResponse.setRenderParameter("connectorURI", connectorURI);
                actionResponse.setRenderParameter("brokerURI", brokerURI);
View Full Code Here

            }
            else {
                log.error("Error attempting to retrieve the web managers");
            }
        } catch (Exception e) {
            throw new PortletException(e);
        }
    }
View Full Code Here

                }
            } else {
                log.error("Error attempting to retrieve the web managers");
            }
        } catch (Exception e) {
            throw new PortletException(e);
        }
        if (WindowState.NORMAL.equals(renderRequest.getWindowState())) {
            normalView.include(renderRequest, renderResponse);
        } else {
            maximizedView.include(renderRequest, renderResponse);
View Full Code Here

        if (list == null || !repo.equals(listRepo)) {
            try {
                list = pluginInstaller.listPlugins(new URL(repo), user, pass);
            } catch (FailedLoginException e) {
                throw new PortletException("Invalid login for repository '" + repo + "'", e);
            }
            session.setAttribute(CONFIG_LIST_SESSION_KEY, list);
            session.setAttribute(CONFIG_LIST_REPO_SESSION_KEY, repo);
        }
        return list;
View Full Code Here

TOP

Related Classes of javax.portlet.PortletException

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.