Package org.drools.guvnor.client.rpc

Examples of org.drools.guvnor.client.rpc.DetailedSerializableException


                                      int skip,
                                      int numRows,
                                      String tableConfig) throws SerializableException {
        log.debug( "Loading asset list for [" + uuid + "]" );
        if ( numRows == 0 ) {
            throw new DetailedSerializableException( "Unable to return zero results (bug)",
                                                     "probably have the parameters around the wrong way, sigh..." );
        }
        long start = System.currentTimeMillis();
        PackageItem pkg = repository.loadPackageByUUID( uuid );
        AssetItemIterator it;
View Full Code Here


    public TableDataResult queryFullText(String text,
                                         boolean seekArchived,
                                         int skip,
                                         int numRows) throws SerializableException {
        if ( numRows == 0 ) {
            throw new DetailedSerializableException( "Unable to return zero results (bug)",
                                                     "probably have the parameters around the wrong way, sigh..." );
        }
        AssetItemIterator it = repository.queryFullText( text,
                                                         seekArchived );
View Full Code Here

                                         Date modifiedBefore,
                                         boolean seekArchived,
                                         int skip,
                                         int numRows) throws SerializableException {
        if ( numRows == 0 ) {
            throw new DetailedSerializableException( "Unable to return zero results (bug)",
                                                     "probably have the parameters around the wrong way, sigh..." );
        }
        Map<String, String[]> q = new HashMap<String, String[]>() {
            {
                for ( int i = 0; i < qr.length; i++ ) {
View Full Code Here

        try {
            repository.loadState( name ).remove();
            repository.save();

        } catch ( RulesRepositoryException e ) {
            throw new DetailedSerializableException( "Unable to remove status. It is probably still used (even by archived items).",
                                                     e.getMessage() );
        }
    }
View Full Code Here

            repository.loadCategory( categoryPath ).remove();
            repository.save();
        } catch ( RulesRepositoryException e ) {
            log.info( "Unable to remove category [" + categoryPath + "]. It is probably still used: " + e.getMessage() );

            throw new DetailedSerializableException( "Unable to remove category. It is probably still used.",
                                                     e.getMessage() );
        }
    }
View Full Code Here

                                 categoryOperator,
                                 category,
                                 enableCategorySelector,
                                 customSelectorName );
        } catch ( NoClassDefFoundError e ) {
            throw new DetailedSerializableException( "Unable to find a class that was needed when building the package  [" + e.getMessage() + "]",
                                                     "Perhaps you are missing them from the model jars, or from the BRMS itself (lib directory)." );
        } catch ( UnsupportedClassVersionError e ) {
            throw new DetailedSerializableException( "Can not build the package. One or more of the classes that are needed were compiled with an unsupported Java version.",
                                                     "For example the pojo classes were compiled with Java 1.6 and Guvnor is running on Java 1.5. [" + e.getMessage() + "]" );
        }
    }
View Full Code Here

                                     asm );
                repository.save();
            } catch ( Exception e ) {
                e.printStackTrace();
                log.error( "An error occurred building the package [" + item.getName() + "]: " + e.getMessage() );
                throw new DetailedSerializableException( "An error occurred building the package.",
                                                         e.getMessage() );
            }

            return null;
View Full Code Here

                    StringBuffer buf = new StringBuffer();
                    for ( int i = 0; i < res.lines.length; i++ ) {
                        buf.append( res.lines[i].toString() );
                        buf.append( '\n' );
                    }
                    throw new DetailedSerializableException( "Unable to rebuild snapshot [" + snapName,
                                                             buf.toString() + "]" );
                }
            }
        }
    }
View Full Code Here

                                  cl,
                                  rb,
                                  coverage );
        } catch ( Exception e ) {
            if ( e instanceof DetailedSerializableException ) {
                DetailedSerializableException err = (DetailedSerializableException) e;
                result = new SingleScenarioResult();
                if ( err.getErrs() != null ) {
                    result.result = new ScenarioRunResult( err.getErrs(),
                                                           null );
                } else {
                    throw err;
                }
            }
View Full Code Here

                if ( result == null || result.lines.length == 0 ) {
                    rb = loadRuleBase( item,
                                       buildCl );
                    this.ruleBaseCache.put( item.getUUID(),
                                            rb );
                } else throw new DetailedSerializableException( "Build error",
                                                                result.lines );
            }

        }
        return rb;
View Full Code Here

TOP

Related Classes of org.drools.guvnor.client.rpc.DetailedSerializableException

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.