Package org.jasig.portal

Examples of org.jasig.portal.PortalException


        {
            ServletContext ctx =
                PortalSessionManager.getInstance().getServletContext();
            mDepInfoPath = ctx.getRealPath(DEPLOYMENT_PATH);
            if (mDepInfoPath == null)
                throw new PortalException(
                    "Unable to locate WEB-INF directory.");
        }
        return mDepInfoPath;
    }
View Full Code Here


            out.flush();
            out.close();
        }
        catch (Exception e)
        {
            throw new PortalException(
                "Unable to store deployment "
                    + "information in '"
                    + fullName
                    + "'.",
                e);
View Full Code Here

                String sCarCount = newInfo.getProperty(PROP_CAR_COUNT);
                carCount = Integer.parseInt(sCarCount);
                fis.close();
            } catch (Exception e)
            {
                throw new PortalException(
                        "Unable to load deployment information from file '"
                                + mDepFile.getAbsolutePath() + "'.", e);
            }
            for (Iterator itr = newInfo.entrySet().iterator(); itr.hasNext();)
            {
View Full Code Here

                        + PROP_CAR_ID_DEPLOYED_SUFFIX);
                depDate = cFormatter.parse(carDate).getTime();
            }
        } catch (Exception e1)
        {
            throw new PortalException("Unable to parse date '" + carDate
                    + "' for entry '" + resourcePath + "' from file '"
                    + mDepFile.getAbsolutePath() + "'.");
        }
        return depDate;
    }
View Full Code Here

            method = Class.forName("com.caucho.util.Registry").
                getDeclaredMethod("setDefault", paramClasses);
            method.invoke(null, params);
        } catch (IOException ioe) {
            ioe.printStackTrace();
            throw new PortalException(ioe);
        } catch (InvocationTargetException ite) {
            ite.printStackTrace();
            throw new PortalException(ite);
        } catch (InstantiationException ie) {
            ie.printStackTrace();
            throw new PortalException(ie);
        } catch (IllegalAccessException iae) {
            iae.printStackTrace();
            throw new PortalException(iae);
        } catch (NoSuchMethodException nsme) {
            nsme.printStackTrace();
            throw new PortalException(nsme);
        } catch (ResourceMissingException rme) {
            rme.printStackTrace();
            throw new PortalException(rme);
        } catch (ClassNotFoundException cnfe) {
            cnfe.printStackTrace();
            throw new PortalException(cnfe);
        }
    }
View Full Code Here

      if (mimeType.equals("text/html")) {
        filter = new XHTMLURLFilter(handler);
      } else if (mimeType.equals("text/vnd.wap.wml")) {
        filter = new WMLURLFilter(handler);
      } else {
        throw new PortalException("AbsoluteURLFilter.newAbsoluteURLFilter(): Unable to locate AbsoluteURLFilter for mime type '" + mimeType + "'");
      }
    } else {
      throw new PortalException("AbsoluteURLFilter.newAbsoluteURLFilter(): Unable to create AbsoluteURLFilter. Mime type is null.");
    }

    filter.baseUrl = baseUrl;
   
    return filter;
View Full Code Here

        if (this.carResources.hasDescriptors()) {
            try {
                this.carResources.getServices(this.svcHandler);
            }
            catch (final Exception ex) {
                throw new PortalException("Failed to start external portal " + "services in CAR descriptors.", ex);
            }
        }
    }
View Full Code Here

     * Test that when getXstlUri() throws a PortalException that exception
     * is thrown by renderXML().
     * @throws ParserConfigurationException
     */
    public void testRenderXMLGetXsltUriThrowsPortalException() throws ParserConfigurationException {
        PortalException portalException = new PortalException();
       
        MockXSLTChannel mock = new MockXSLTChannel();
        mock.setStaticData(new ChannelStaticData());
        mock.setRuntimeData(new ChannelRuntimeData());
        Document blankDoc = DocumentBuilderFactory.newInstance().newDocumentBuilder().newDocument();
View Full Code Here

            }
            catch (PortalException pe) {
                throw pe;
            }
            catch (Exception e) {
                throw new PortalException(e);
            }
            finally {
                final long pageRenderTime = System.currentTimeMillis() - startTime;
                lastRender = renderTimes.add(pageRenderTime);
               
View Full Code Here

            // this is a worker dispatch, process it
            // determine worker type

            final String workerName = upfs.getMethodNodeId();
            if (workerName == null) {
                throw new PortalException("Unable to determine worker type for name '" + workerName + "', uPFile='" + upfs.getUPFile() + "'.");
            }
           
            final String dispatchClassName = workerProperties.getProperty(workerName);
            if (dispatchClassName == null) {
                throw new PortalException("Unable to find processing class for the worker type '" + workerName + "'. Please check worker.properties");
            }
           
            // try to instantiate a worker class
            try {
                final ClassLoader carClassLoader = this.carResources.getClassLoader();
                final Class<? extends IWorkerRequestProcessor> dispatcherClass = (Class<IWorkerRequestProcessor>)carClassLoader.loadClass(dispatchClassName);
                final IWorkerRequestProcessor wrp = dispatcherClass.newInstance();

                // invoke processor
                try {
                    final PortalControlStructures portalControlStructures = new PortalControlStructures(req, res, cm, uPreferencesManager);
                    wrp.processWorkerDispatch(portalControlStructures);
                }
                catch (PortalException pe) {
                    throw pe;
                }
                catch (RuntimeException re) {
                    throw new PortalException(re);
                }
            }
            catch (ClassNotFoundException cnfe) {
                throw new PortalException("Unable to find processing class '" + dispatchClassName + "' for the worker type '" + workerName + "'. Please check worker.properties", cnfe);
            }
            catch (InstantiationException ie) {
                throw new PortalException("Unable to instantiate processing class '" + dispatchClassName + "' for the worker type '" + workerName + "'. Please check worker.properties", ie);
            }
            catch (IllegalAccessException iae) {
                throw new PortalException("Unable to access processing class '" + dispatchClassName + "' for the worker type '" + workerName + "'. Please check worker.properties", iae);
            }

            return true;
        }
View Full Code Here

TOP

Related Classes of org.jasig.portal.PortalException

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.