Package com.google.gwt.user.client.rpc

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


            log.info( "USER:" + getCurrentUserName() + " REMOVING SNAPSHOT for module: [" + moduleName + "] snapshot: [" + snapshotName + "]" );
            rulesRepository.removeModuleSnapshot( moduleName,
                    snapshotName );
        } else {
            if ( newSnapshotName.equals( "" ) ) {
                throw new SerializationException( "Need to have a new snapshot name." );
            }
            log.info( "USER:" + getCurrentUserName() + " COPYING SNAPSHOT for module: [" + moduleName + "] snapshot: [" + snapshotName + "] to [" + newSnapshotName + "]" );

            rulesRepository.copyModuleSnapshot( moduleName,
                    snapshotName,
View Full Code Here


            if ( e.getCause() instanceof ItemExistsException ) {
                return "DUPLICATE";
            }
            log.error( "An error occurred creating new asset" + ruleName + "] in package [" + initialPackage + "]: ",
                       e );
            throw new SerializationException( e.getMessage() );

        }

    }
View Full Code Here

            if ( e.getCause() instanceof ItemExistsException ) {
                return "DUPLICATE";
            }
            log.error( "An error occurred creating shared asset" + sharedAssetName + "] in package [" + initialPackage + "]: ",
                       e );
            throw new SerializationException( e.getMessage() );

        }

    }
View Full Code Here

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

        try {
            ModuleItem packageItem = rulesRepository.loadModule( packageName );
            suggestionCompletionEngine = new SuggestionCompletionEngineLoaderInitializer().loadFor( packageItem );
        } catch ( RulesRepositoryException e ) {
            log.error( "An error occurred loadSuggestionCompletionEngine: " + e.getMessage() );
            throw new SerializationException( e.getMessage() );
        }
        return suggestionCompletionEngine;
    }
View Full Code Here

            return moduleItem.containsAsset( assetName );

        } catch ( RulesRepositoryException e ) {
            log.error( "An error occurred checking if asset [" + assetName + "] exists in module [" + moduleName + "]: ",
                       e );
            throw new SerializationException( e.getMessage() );
        }
    }
View Full Code Here

                            category,
                            enableCategorySelector,
                            customSelector );
        ModuleItem p = rulesRepository.loadModule(moduleName);
        if (checkIsBinaryUpToDate && !p.isBinaryUpToDate()) {
          throw new SerializationException( "Your package has not been built since last change. Please build the package first, then try \"Create snapshot for deployment\" again" );
        }
       
        if ( replaceExisting ) {
            if(rulesRepository.containsSnapshot(moduleName, snapshotName)) {
                rulesRepository.removeModuleSnapshot( moduleName, snapshotName );
View Full Code Here

            log.info( "USER:" + getCurrentUserName() + " REMOVING SNAPSHOT for module: [" + moduleName + "] snapshot: [" + snapshotName + "]" );
            rulesRepository.removeModuleSnapshot( moduleName,
                    snapshotName );
        } else {
            if ( newSnapshotName.equals( "" ) ) {
                throw new SerializationException( "Need to have a new snapshot name." );
            }
            log.info( "USER:" + getCurrentUserName() + " COPYING SNAPSHOT for module: [" + moduleName + "] snapshot: [" + snapshotName + "] to [" + newSnapshotName + "]" );

            rulesRepository.copyModuleSnapshot( moduleName,
                    snapshotName,
View Full Code Here

    }

    private class DummyEventSerializationPolicy extends EventSerializationPolicy
    {
        public void validateSerialize(Class<?> aClass) throws SerializationException {
            throw new SerializationException("Test-Exception");
        }
View Full Code Here

      try {
        value = declField.get(instance);
        serializeValue(value, declField.getType());

      } catch (IllegalArgumentException e) {
        throw new SerializationException(e);

      } catch (IllegalAccessException e) {
        throw new SerializationException(e);
      }

      if (needsAccessOverride) {
        // Restore the access restrictions
        declField.setAccessible(isAccessible);
View Full Code Here

TOP

Related Classes of com.google.gwt.user.client.rpc.SerializationException

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.