Examples of SchemaGenerationException


Examples of com.impetus.kundera.configure.schema.SchemaGenerationException

                }
            }
            catch (NumberFormatException nfe)
            {
                log.error("GC_GRACE_SECONDS should be numeric type, Caused by: .", nfe);
                throw new SchemaGenerationException(nfe);
            }
        }
    }
View Full Code Here

Examples of com.impetus.kundera.configure.schema.SchemaGenerationException

                }
            }
            catch (NumberFormatException nfe)
            {
                log.error("Id should be numeric type, Caused by: ", nfe);
                throw new SchemaGenerationException(nfe);
            }
        }
    }
View Full Code Here

Examples of com.impetus.kundera.configure.schema.SchemaGenerationException

                }
            }
            catch (NumberFormatException nfe)
            {
                log.error("Max_Compaction_Threshold should be numeric type, Caused by: .", nfe);
                throw new SchemaGenerationException(nfe);
            }
        }
        String minCompactionThreshold = cfProperties.getProperty(CassandraConstants.MIN_COMPACTION_THRESHOLD);
        if (minCompactionThreshold != null)
        {
            try
            {
                if (builder != null)
                {
                    // Somehow these are not working for cassandra 1.1
                    // though they claim it should work.
                    // appendPropertyToBuilder(builder,
                    // minCompactionThreshold,
                    // CassandraConstants.MIN_COMPACTION_THRESHOLD);
                }
                else
                {
                    cfDef.setMin_compaction_threshold(Integer.parseInt(minCompactionThreshold));
                }
            }
            catch (NumberFormatException nfe)
            {
                log.error("Min_Compaction_Threshold should be numeric type, Caused by: . ", nfe);
                throw new SchemaGenerationException(nfe);
            }
        }
    }
View Full Code Here

Examples of com.impetus.kundera.configure.schema.SchemaGenerationException

     */
    private void validateCompoundKey(TableInfo tableInfo)
    {
        if (tableInfo.getType() != null && tableInfo.getType().equals(Type.SUPER_COLUMN_FAMILY.name()))
        {
            throw new SchemaGenerationException(
                    "Composite/Compound columns are not yet supported over Super column family by Cassandra",
                    "cassandra", databaseName);
        }
    }
View Full Code Here

Examples of org.apache.axis2.rmi.exception.SchemaGenerationException

                 xmlElement.generateWSDLSchema(document, namespacesToPrefixMap);
                 schemaElement.appendChild(xmlElement.getElement());
            }

        } catch (WSDLException e) {
            throw new SchemaGenerationException("Error while creating the extension registry",e);
        } catch (ParserConfigurationException e) {
            e.printStackTrace()//To change body of catch statement use File | Settings | File Templates.
        }
    }
View Full Code Here

Examples of org.apache.axis2.rmi.exception.SchemaGenerationException

            generateBindings();
            generateService();
            generateOperationsAndMessages();
            return this.wsdlDefinition;
        } catch (WSDLException e) {
            throw new SchemaGenerationException("Error in creating a new wsdl definition", e);
        }
    }
View Full Code Here

Examples of org.apache.axis2.rmi.exception.SchemaGenerationException

                    Binding.class, new QName("http://schemas.xmlsoap.org/wsdl/soap/", "binding"));
            soapBinding.setTransportURI("http://schemas.xmlsoap.org/soap/http");
            soapBinding.setStyle("document");
            this.httpSoapBinding.addExtensibilityElement(soapBinding);
        } catch (WSDLException e) {
            throw new SchemaGenerationException("Can not crete a wsdl factory");
        }
        this.wsdlDefinition.addBinding(this.httpSoapBinding);
        this.wsdlDefinition.getBindings().put(this.httpSoapBinding.getQName(),
                this.httpSoapBinding);
    }
View Full Code Here

Examples of org.apache.axis2.rmi.exception.SchemaGenerationException

            SOAPAddress soapAddress = (SOAPAddress) extensionRegistry.createExtension(
                    Port.class, new QName("http://schemas.xmlsoap.org/wsdl/soap/", "address"));
            soapAddress.setLocationURI("http://localhost:8080/axis2/services/" + this.service.getName());
            port.addExtensibilityElement(soapAddress);
        } catch (WSDLException e) {
            throw new SchemaGenerationException("Can not crete a wsdl factory");
        }
        service.addPort(port);
        this.wsdlDefinition.addService(service);
    }
View Full Code Here

Examples of org.apache.axis2.rmi.exception.SchemaGenerationException

                bindingFault.addExtensibilityElement(soapFault);
            }


        } catch (WSDLException e) {
            throw new SchemaGenerationException("Can not crete a wsdl factory");
        }

        return bindingOperation;
    }
View Full Code Here

Examples of org.apache.axis2.rmi.exception.SchemaGenerationException

        if (this.type != null){
            if (type.isSimpleType()){
                this.attribute.setAttribute("type", xsdPrefix + ":" + type.getQname().getLocalPart());
            } else {
                throw new SchemaGenerationException("Attribute type must be a simple type");
            }
        } else {
            throw new SchemaGenerationException("Type can not be null for an attribute");
        }

    }
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.