Examples of UnsupportedDataTypeException


Examples of javax.activation.UnsupportedDataTypeException

     
      if (File.class.equals(resultClass))
        return (Result) new File(string);
    }

    throw new UnsupportedDataTypeException("Could not convert "
        + object.getClass().getName() + " to " + resultClass.getName());
  }
View Full Code Here

Examples of org.datanucleus.store.exceptions.UnsupportedDataTypeException

    protected void initTypeInfo()
    {
        SQLTypeInfo typeInfo = getTypeInfo();
        if (typeInfo == null)
        {
            throw new UnsupportedDataTypeException(LOCALISER_RDBMS.msg("055000",column));
        }
   
        if (column != null)
        {
            column.setTypeInfo(typeInfo);
View Full Code Here

Examples of org.datanucleus.store.exceptions.UnsupportedDataTypeException

        // NB The connection first arg is not required since will be cached from initialisation stage
        RDBMSTypesInfo typesInfo = (RDBMSTypesInfo)schemaHandler.getSchemaData(null, "types", null);
        JDBCTypeInfo jdbcTypeInfo = (JDBCTypeInfo)typesInfo.getChild("" + jdbcType);
        if (jdbcTypeInfo.getNumberOfChildren() == 0)
        {
            throw new UnsupportedDataTypeException(LOCALISER.msg("051005",
                JDBCUtils.getNameForJDBCType(jdbcType)));
        }

        // Use default type
        return (SQLTypeInfo)jdbcTypeInfo.getChild("DEFAULT");
View Full Code Here

Examples of org.fnlp.util.exception.UnsupportedDataTypeException

        }else if (data instanceof List) {
            list = ngram((List) data,gramSizes);
        }else if(data instanceof String[]){
            list = ngram((String[]) data,gramSizes);
        }else{
            throw new UnsupportedDataTypeException("不支持处理数据类型:"+data.getClass().toString());
        }
        inst.setData(list);
    }
View Full Code Here

Examples of org.fnlp.util.exception.UnsupportedDataTypeException

      int[] newTarget = new int[l.size()];
      for (int i = 0; i < l.size(); ++i)
        newTarget[i] = labelAlphabet.lookupIndex((String) l.get(i));
      instance.setTarget(newTarget);
    }else{
      throw new UnsupportedDataTypeException(t.getClass().toString());
    }
  }
View Full Code Here

Examples of org.fnlp.util.exception.UnsupportedDataTypeException

      for(int i=0;i<ssdata.size();i++){
        ArrayList<String> idata =  (ArrayList<String>) ssdata.get(i);
        data[i] = idata.toArray(new String[idata.size()]);
      }     
    }else{
      throw new UnsupportedDataTypeException(sdata.getClass().toString());
    }
    instance.setData(data);
   
    int len = data[0].length;
    int[][] newData = new int[len][templets.size()];
View Full Code Here

Examples of org.fnlp.util.exception.UnsupportedDataTypeException

   */
 
  public void setDefaultPOS(String pos) throws UnsupportedDataTypeException{
    int lpos = postagAlphabet.lookupIndex(pos);
    if(lpos==-1){     
        throw new UnsupportedDataTypeException("不支持词性:"+pos);
    }
    defaultPOS = pos;
  }
View Full Code Here

Examples of org.fnlp.util.exception.UnsupportedDataTypeException

    Instance inst = new Instance(features.indices());

    String pos = state.getLeftPos();
    int lpos = postagAlphabet.lookupIndex(pos);
    if(lpos==-1)
      throw new UnsupportedDataTypeException("不支持词性:"+pos);
    LabelAlphabet actionList = factory.buildLabelAlphabet(pos);
   
    Predict<Integer> ret = models[lpos].classify(inst, actionList.size());
    Object[] guess = ret.labels;
   
View Full Code Here

Examples of org.jpox.store.exceptions.UnsupportedDataTypeException

    protected void initTypeInfo()
    {
        TypeInfo typeInfo = getTypeInfo();
        if (typeInfo == null)
        {
            throw new UnsupportedDataTypeException(LOCALISER.msg("055000",column));
        }

        if (column != null)
        {
            column.setTypeInfo(typeInfo);
View Full Code Here

Examples of org.jpox.store.exceptions.UnsupportedDataTypeException

    {
        JDBCTypeInfo jti = (JDBCTypeInfo)typesByTypeNumber.get(new Integer(dataType));

        if (jti == null)
        {
            throw new UnsupportedDataTypeException(LOCALISER.msg("051005",
                JDBCUtils.getNameForJDBCType(dataType)));
        }

        return jti.defaultTypeInfo;
    }
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.