Package de.iritgo.aktera.model

Examples of de.iritgo.aktera.model.ModelException


        {
          handler = (FormularHandler) Class.forName(handlerClassName).newInstance();
        }
        catch (ClassNotFoundException x)
        {
          throw new ModelException("[aktera.edit] Unable to create handler " + handlerClassName + " (" + x + ")");
        }
        catch (InstantiationException x)
        {
          throw new ModelException("[aktera.edit] Unable to create handler " + handlerClassName + " (" + x + ")");
        }
        catch (IllegalAccessException x)
        {
          throw new ModelException("[aktera.edit] Unable to create handler " + handlerClassName + " (" + x + ")");
        }
      }
      else
      {
        String handlerBeanName = ModelTools.getConfigString(configPath, "handler", "bean", null);
View Full Code Here


          formular = (FormularDescriptor) formularOutput.getContent();
        }
      }
      catch (Exception x)
      {
        throw new ModelException("[aktera.edit] Unable to create formular from model " + formularModelName
                + " (" + x + ")");
      }
    }
    else if (formularClassName != null)
    {
      try
      {
        formular = (FormularDescriptor) Class.forName(formularClassName).newInstance();
      }
      catch (ClassNotFoundException x)
      {
        throw new ModelException("[aktera.edit] Unable to create formular from class " + formularClassName
                + " (" + x + ")");
      }
      catch (InstantiationException x)
      {
        throw new ModelException("[aktera.edit] Unable to create formular from class " + formularClassName
                + " (" + x + ")");
      }
      catch (IllegalAccessException x)
      {
        throw new ModelException("[aktera.edit] Unable to create formular from class " + formularClassName
                + " (" + x + ")");
      }
    }

    if (formular == null)
    {
      throw new ModelException("[aktera.edit] No formular defined");
    }

    if (formularModelName != null)
    {
      formular.setId(formularModelName);
View Full Code Here

  }

  public ModelResponse execute(ModelRequest req, ModelResponse res, boolean includeParams,
          boolean includeResponseElements) throws ModelException
  {
    throw new ModelException("Not implemented");
  }
View Full Code Here

                  modified);
        }
        catch (Exception x)
        {
          logger.error("Unable to update persistents: " + x);
          throw new ModelException(x);
        }

        if (! preserveContext)
        {
          UserTools.removeContextObject(wrappedRequest, persistentsId);
View Full Code Here

        {
          handler = (FormularHandler) Class.forName(handlerClassName).newInstance();
        }
        catch (ClassNotFoundException x)
        {
          throw new ModelException("[aktera.save] Unable to create handler " + handlerClassName + " (" + x + ")");
        }
        catch (InstantiationException x)
        {
          throw new ModelException("[aktera.save] Unable to create handler " + handlerClassName + " (" + x + ")");
        }
        catch (IllegalAccessException x)
        {
          throw new ModelException("[aktera.save] Unable to create handler " + handlerClassName + " (" + x + ")");
        }
      }
      else
      {
        String handlerBeanName = ModelTools.getConfigString(configPath, "handler", "bean", null);
View Full Code Here

      InputStream reportStream = klass.getResourceAsStream(reportName);

      if (reportStream == null)
      {
        throw new ModelException("Unable to find report file " + reportName + "!");
      }

      if ("csv".equals(format) || "xls".equals(format))
      {
        parameters.put(JRParameter.IS_IGNORE_PAGINATION, true);
      }

      return JasperFillManager.fillReport(reportStream, parameters, connection);
    }
    catch (SQLException x)
    {
      throw new ModelException("Unable to create report", x);
    }
    catch (JRException x)
    {
      throw new ModelException("Unable to create report", x);
    }
  }
View Full Code Here

        properties.put ("bulkImport", bulkImport);
        res = res && importHandlerConfig.getHandler().analyze(req, doc, importElem, reporter, i18n, properties);
      }
      catch (Exception x)
      {
        throw new ModelException("ImportManager: Unable to call analyze method in import handler '"
                + importHandlerConfig.getId() + "': " + x);
      }
    }

    return res;
View Full Code Here

        properties.put ("bulkImport", bulkImport);
        res = res && importHandlerConfig.getHandler().perform(req, doc, importElem, reporter, i18n, properties);
      }
      catch (Exception x)
      {
        throw new ModelException("ImportManager: Unable to call perform method in import handler '"
                + importHandlerConfig.getId() + "': " + x);
      }
    }

    return res;
View Full Code Here

      containerFactory = new ContainerFactoryLoader().getContainerFactory();
    }
    catch (ContainerException e)
    {
      getLogger().error("Error getting container factory", e);
      throw new ModelException("Error getting container factory", e);
    }

    try
    {
      myContainer = containerFactory.createContainer();
    }
    catch (ContainerException e)
    {
      getLogger().error("Error creating container", e);
      throw new ModelException("Error creating container", e);
    }

    if (myContainer == null)
    {
      throw new ModelException("Factory returned null container");
    }

    try
    {
      maxRetries = myContainer.getSystemConfig().getAttributeAsInteger("syncretries", 0);
View Full Code Here

    ComparableContext c = (ComparableContext) req.getContext();

    if (c == null)
    {
      throw new ModelException("No context was assigned to model!");
    }

    if (! (c.equals(currentContext)))
    {
      // If something
View Full Code Here

TOP

Related Classes of de.iritgo.aktera.model.ModelException

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.