Examples of SerializableException


Examples of com.google.gwt.user.client.rpc.SerializableException

    if (item.getContent() != null && item.getContent().length() > 0) {
      try {
        asset.content = (T) getXStream().fromXML(item.getContent());
      } catch (RulesRepositoryException e) {
        log.error("error marshalling asset content: " + asset.metaData.name, e);
        throw new SerializableException(e.getMessage());
      }
    } else {
      asset.content = new WorkingSetConfigData();
    }
  }
View Full Code Here

Examples of com.google.gwt.user.client.rpc.SerializableException

  public void storeAssetContent(RuleAsset asset, AssetItem repoAsset) throws SerializableException {
    try {
      repoAsset.updateContent(getXStream().toXML(asset.content));
    } catch (Exception e) {
      log.error("error marshalling asset content: " + asset.metaData.name, e);
      throw new SerializableException(e.getMessage());
    }
  }
View Full Code Here

Examples of com.google.gwt.user.client.rpc.SerializableException

        } catch ( RulesRepositoryException e ) {
            if ( e.getCause() instanceof ItemExistsException ) {
                return "DUPLICATE";
            } else {
                log.error( e );
                throw new SerializableException( e.getMessage() );
            }
        }

    }
View Full Code Here

Examples of com.google.gwt.user.client.rpc.SerializableException

            name = cleanHTML( name );
            String uuid = repository.createState( name ).getNode().getUUID();
            repository.save();
            return uuid;
        } catch ( RepositoryException e ) {
            throw new SerializableException( "Unable to create the status." );
        }
    }
View Full Code Here

Examples of com.google.gwt.user.client.rpc.SerializableException

            log.info( "USER:" + repository.getSession().getUserID() + " REMOVING SNAPSHOT for package: [" + packageName + "] snapshot: [" + snapshotName + "]" );
            repository.removePackageSnapshot( packageName,
                                              snapshotName );
        } else {
            if ( newSnapshotName.equals( "" ) ) {
                throw new SerializableException( "Need to have a new snapshot name." );
            }
            log.info( "USER:" + repository.getSession().getUserID() + " COPYING SNAPSHOT for package: [" + packageName + "] snapshot: [" + snapshotName + "] to [" + newSnapshotName + "]" );

            repository.copyPackageSnapshot( packageName,
                                            snapshotName,
View Full Code Here

Examples of com.google.gwt.user.client.rpc.SerializableException

            PackageItem pkg = repository.loadPackage( packageName );
            BRMSSuggestionCompletionLoader loader = new BRMSSuggestionCompletionLoader();
            return loader.getSuggestionEngine( pkg );
        } catch ( RulesRepositoryException e ) {
            log.error( e );
            throw new SerializableException( e.getMessage() );
        }

    }
View Full Code Here

Examples of org.voltdb.exceptions.SerializableException

        public void shutdownPrepare(RpcController controller, ShutdownPrepareRequest request, RpcCallback<ShutdownPrepareResponse> done) {
            String originName = HStoreThreadManager.formatSiteName(request.getSenderSite());
           
            // See if they gave us the original error. If they did, then we'll
            // try to be helpful and print it out here
            SerializableException error = null;
            if (request.hasError() && request.getError().isEmpty() == false) {
                error = SerializableException.deserializeFromBuffer(request.getError().asReadOnlyByteBuffer());
            }
            LOG.warn(String.format("Got %s from %s [hasError=%s]%s",
                     request.getClass().getSimpleName(), originName, (error != null),
View Full Code Here

Examples of org.voltdb.exceptions.SerializableException

            RpcCallback<ShutdownPrepareResponse> callback = new ShutdownPrepareCallback(this.num_sites, latch);
            ShutdownPrepareRequest.Builder builder = ShutdownPrepareRequest.newBuilder()
                                                        .setSenderSite(this.catalog_site.getId());
            // Pack the error into a SerializableException
            if (error != null) {
                SerializableException sError = new SerializableException(error);
                ByteBuffer buffer = sError.serializeToBuffer();
                buffer.rewind();
                builder.setError(ByteString.copyFrom(buffer));
                if (debug.val)
                    LOG.debug("Serializing error message in shutdown request");
            }
View Full Code Here

Examples of org.voltdb.exceptions.SerializableException

        if (debug.val)
            LOG.debug(String.format("%s got hit with a %s! " +
                      "Going to clean-up our mess and re-execute [restarts=%d]",
                      orig_ts , status, orig_ts.getRestartCounter()));
        int base_partition = orig_ts.getBasePartition();
        SerializableException orig_error = orig_ts.getPendingError();

        //LOG.info("In transactionRestart()");
               
        // If this txn has been restarted too many times, then we'll just give up
        // and reject it outright
View Full Code Here

Examples of org.voltdb.exceptions.SerializableException

        if (result.getStatus() != Status.OK) {
            if (trace.val)
                LOG.trace(String.format("Received non-success response %s from partition %d for %s",
                          result.getStatus(), result.getPartitionId(), ts));

            SerializableException error = null;
            if (needs_profiling) ts.profiler.startDeserialization();
            try {
                ByteBuffer buffer = result.getError().asReadOnlyByteBuffer();
                error = SerializableException.deserializeFromBuffer(buffer);
            } catch (Exception ex) {
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.