Examples of BindingException


Examples of org.gatein.management.api.binding.BindingException

                marshalPage(writer, page);
            }

            writer.finish();
        } catch (StaxNavException e) {
            throw new BindingException(e);
        } catch (XMLStreamException e) {
            throw new BindingException(e);
        }
    }
View Full Code Here

Examples of org.gatein.management.api.binding.BindingException

                return pageSet;
            } else {
                throw unknownElement(navigator);
            }
        } catch (StaxNavException e) {
            throw new BindingException(e);
        } catch (XMLStreamException e) {
            throw new BindingException(e);
        }
    }
View Full Code Here

Examples of org.gatein.management.api.binding.BindingException

         {
            outputStream.close();
         }
         catch (IOException e)
         {
            throw new BindingException("Exception closing underlying stream.", e);
         }
      }
View Full Code Here

Examples of org.gatein.management.api.binding.BindingException

         file = File.createTempFile("gatein-export", ".zip");
         zos = new ZipOutputStream(new BufferedOutputStream(new FileOutputStream(file)));
      }
      catch (IOException e)
      {
         throw new BindingException("Could not create temp file for export.", e);
      }

      try
      {
         if (model.getTasks().isEmpty())
         {
            zos.putNextEntry(new ZipEntry(""));
         }
         else
         {
            for (ExportTask task : model.getTasks())
            {
               String entry = task.getEntry();
               zos.putNextEntry(new ZipEntry(entry));

               // Call export task responsible for writing the data.
               task.export(zos);

               zos.closeEntry();
            }
         }
         zos.flush();
         zos.finish();
      }
      catch (Throwable t)
      {
         throw new BindingException("Exception writing data to zip.", t);
      }
      finally
      {
         IOTools.safeClose(zos);
      }

      try
      {
         InputStream inputStream = new BufferedInputStream(new FileInputStream(file));
         IOTools.copy(inputStream, outputStream);
      }
      catch (FileNotFoundException e)
      {
         throw new BindingException("Could not read from temporary zip file " + file, e);
      }
      catch (IOException e)
      {
         throw new BindingException("IOException writing data to final output stream.", e);
      }
   }
View Full Code Here

Examples of org.gatein.management.api.binding.BindingException

         printWriter.write(new JSONObject(json.toString()).toString(3));
         printWriter.flush();
      }
      catch (JSONException e)
      {
         throw new BindingException("Could not marshal to JSON format", e);
      }
      finally
      {
         IOTools.safeClose(printWriter);
      }
View Full Code Here

Examples of org.jboss.ws.core.binding.BindingException

      {
         throw rte;
      }
      catch (Exception ex)
      {
         throw new BindingException(ex);
      }

      if(log.isDebugEnabled()) log.debug("deserialized: " + (value != null ? value.getClass().getName() : null));
      return value;
View Full Code Here

Examples of org.ow2.easybeans.api.binding.BindingException

     */
    public void bind(final EZBRef ref) throws BindingException {
        try {
            new InitialContext().rebind(ref.getJNDIName(), ref);
        } catch (NamingException e) {
            throw new BindingException(
                    "Cannot bind the object with JNDI name '" + ref.getJNDIName() + "' and reference '" + ref + "'.", e);
        }
    }
View Full Code Here

Examples of org.ow2.easybeans.api.binding.BindingException

        }
        if (toUnbind != null) {
            try {
                new InitialContext().unbind(ref.getJNDIName());
            } catch (NamingException e) {
                throw new BindingException("Cannot unbind the object with JNDI name '" + ref.getJNDIName() + "'.", e);
            }
        }
    }
View Full Code Here

Examples of org.qi4j.bootstrap.BindingException

                throw new ConstructionException( message );
            }
        }
        catch( InvalidInjectionException e )
        {
            throw new BindingException( "Could not bind dependency injection", e );
        }
    }
View Full Code Here

Examples of org.qi4j.bootstrap.BindingException

                return;
//                messageBuilder.append( "\nNon-static inner classes can not be used." );
            }

            String message = messageBuilder.toString();
            throw new BindingException( message );
        }

        // Sort based on parameter count
        Collections.sort( boundConstructors, new Comparator<ConstructorModel>()
        {
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.